2d03ea739f6b60761bcc4b6dc1aeec26cc71e77f
[gnulib.git] / ChangeLog
1 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
4
5         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
6         when one needs search access to a directory but not read access.
7         On systems where it is available, it works in some cases where
8         O_RDONLY does not, namely on directories that are searchable but
9         not readable, and which need only to be searchable.  If O_SEARCH
10         is not available, fall back to the traditional method of using
11         O_RDONLY.
12
13         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15         when opening a directory that needs only to be searchable.
16         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18         * lib/openat-proc.c (openat_proc_name): Likewise.
19         * lib/openat.c (openat_needs_fchdir): Likewise.
20         * lib/save-cwd.c (save_cwd): Likewise.
21         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22
23 2010-08-28  Bruno Haible  <bruno@clisp.org>
24
25         New module 'host-cpu-c-abi'.
26         * modules/host-cpu-c-abi: New file.
27         * m4/host-cpu-c-abi.m4: New file, based on part of
28         clisp/src/m4/general.m4.
29         Requested by Sam Steingold <sds@gnu.org>.
30
31 2010-08-31  Eric Blake  <eblake@redhat.com>
32         and Jim Meyering  <meyering@redhat.com>
33
34         hash: factor, and guard against misbehaving hasher function
35         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
36         of table->hasher's return value.  Also protect against a hash value
37         so large that adding it to table->bucket results in a NULL pointer.
38         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
39         Use it in place of open-coded check-and-abort.
40
41 2010-08-30  Bruno Haible  <bruno@clisp.org>
42
43         hash: silence spurious clang warning
44         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
45         Reported by Eric Blake.
46
47 2010-08-30  Eric Blake  <eblake@redhat.com>
48
49         strstr, memmem, strcasestr: avoid leaked shell message
50         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
51         FreeBSD.
52         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54
55         tests: silence clang warning
56         * tests/test-malloca.c (do_allocation): Avoid dead store.
57
58 2010-08-29  Bruno Haible  <bruno@clisp.org>
59
60         gettext: Fix recent mistake.
61         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62
63 2010-08-29  Bruno Haible  <bruno@clisp.org>
64
65         selinux-h: Offer a --without-selinux option.
66         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
67         --without-selinux was specified, skip all tests and define
68         HAVE_SELINUX_SELINUX_H to 0.
69         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
70         set LIB_SELINUX to empty.
71         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
72         gl_LIBSELINUX. If --without-selinux was specified, replace
73         selinux/context.h.
74         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
75
76 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77             Bruno Haible  <bruno@clisp.org>
78
79         Make the module 'realloc-gnu' work again on AIX and OSF/1.
80         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
81         of HAVE_REALLOC.
82         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
83         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
84         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
85         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
86
87 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
88             Bruno Haible  <bruno@clisp.org>
89
90         Make the module 'calloc-gnu' work again on AIX and OSF/1.
91         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
92         HAVE_CALLOC.
93         * lib/xmalloc.c: Update accordingly.
94         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
95         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
96         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
97
98 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
99             Bruno Haible  <bruno@clisp.org>
100
101         Make the module 'malloc-gnu' work again on AIX and OSF/1.
102         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
103         HAVE_MALLOC.
104         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
105         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
106         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
107
108 2010-08-29  Bruno Haible  <bruno@clisp.org>
109
110         Update modules list.
111         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
112         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
113         (String handling <string.h>): Add astrxfrm.
114         (File system functions): Add readlinkat.
115
116 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117
118         Tests for module 'realloc-gnu'.
119         * modules/realloc-gnu-tests: New file.
120         * tests/test-realloc-gnu.c: New file.
121
122         Tests for module 'calloc-gnu'.
123         * modules/calloc-gnu-tests: New file.
124         * tests/test-calloc-gnu.c: New file.
125
126         Tests for module 'malloc-gnu'.
127         * modules/malloc-gnu-tests: New file.
128         * tests/test-malloc-gnu.c: New file.
129
130 2010-08-28  Bruno Haible  <bruno@clisp.org>
131
132         Rename module 'realloc' -> 'realloc-gnu'.
133         * modules/realloc-gnu: New file, copied from modules/realloc.
134         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
135         obsolete.
136         * modules/mgetgroups (Depends-on): Update.
137         * doc/posix-functions/realloc.texi: Update.
138         * NEWS: Mention the change.
139
140         Rename module 'calloc' -> 'calloc-gnu'.
141         * modules/calloc-gnu: New file, copied from modules/calloc.
142         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
143         obsolete.
144         * doc/posix-functions/calloc.texi: Update.
145         * NEWS: Mention the change.
146
147         Rename module 'malloc' -> 'malloc-gnu'.
148         * modules/malloc-gnu: New file, copied from modules/malloc.
149         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
150         obsolete.
151         * modules/argp (Depends-on): Update.
152         * modules/regex (Depends-on): Update.
153         * doc/posix-functions/malloc.texi: Update.
154         * NEWS: Mention the change.
155
156 2010-08-28  Eric Blake  <eblake@redhat.com>
157
158         pread, pwrite: add missing dependency
159         * modules/pread (Depends-on): Add extensions.
160         * modules/pwrite (Depends-on): Likewise.
161
162 2010-08-28  Bruno Haible  <bruno@clisp.org>
163
164         unistr/u*-strchr: Fix tests dependencies.
165         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
166         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
167         Reported by Ian Beckwith <ianb@erislabs.net>.
168
169 2010-08-28  Bruno Haible  <bruno@clisp.org>
170
171         read-file: Don't occupy too much unused memory.
172         * lib/read-file.c (fread_file): Shrink the buffer at the end.
173
174 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
175             Eric Blake  <eblake@redhat.com>
176             Bruno Haible  <bruno@clisp.org>
177
178         read-file: Avoid memory reallocations with regular files.
179         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
180         (fread_file): With regular files, use the remaining length as the
181         initial buffer size.  Check against overflow.
182         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
183         sys_stat.
184
185 2010-08-28  Bruno Haible  <bruno@clisp.org>
186
187         ftello: Relax license.
188         * modules/ftello (License): Relax to LGPLv2+.
189         Reported by Eric Blake.
190
191 2010-08-28  Bruno Haible  <bruno@clisp.org>
192
193         Avoid relocwrapper link errors due to gnulib replacement functions.
194         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
195         function.
196         Reported by Ben Pfaff <blp@cs.stanford.edu>.
197
198 2010-08-28  Bruno Haible  <bruno@clisp.org>
199
200         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
201         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
202         defined.
203         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
204         Suggested by Eric Blake.
205
206 2010-08-28  Bruno Haible  <bruno@clisp.org>
207
208         sys_socket, netdb: Ensure socklen_t gets defined.
209         * modules/sys_socket (Depends-on): Add socklen.
210         * modules/netdb (Depends-on): Likewise.
211         * modules/getaddrinfo (Depends-on): Remove socklen.
212         * modules/getsockopt (Depends-on): Likewise.
213         * modules/setsockopt (Depends-on): Likewise.
214         * tests/test-sys_socket.c: Check that socklen_t is defined.
215         * tests/test-netdb.c: Likewise.
216         * m4/socklen.m4: Update comments.
217         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
218
219 2010-08-27  Eric Blake  <eblake@redhat.com>
220
221         login_tty: add missing dependency
222         * modules/login_tty (Depends-on): Add pty.
223
224 2010-08-26  Eric Blake  <eblake@redhat.com>
225
226         lib-symbol-versions: fix m4 quoting
227         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
228         format for AC_LINK_IFELSE.
229
230         glob: fix compile test
231         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
232
233         btowc: fix missing file
234         * modules/btowc (Files): Also ship locale-fr.m4.
235
236         lseek: fix link test
237         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
238         AC_LINK_IFELSE.
239
240         include_next: silence autoconf 2.68 warning
241         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
242         AC_COMPILE_IFELSE as special.
243         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
244         autoconf < 2.68.
245
246         acl: fix compilation test
247         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
248         AC_COMPILE_IFELSE.
249
250 2010-08-26  Bruno Haible  <bruno@clisp.org>
251
252         Modernize AC_TRY_RUN invocations.
253         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
254         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
255         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
256         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
257         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
258         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
259         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
260         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
261         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
262         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
263         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
264         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
265         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
266         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
267         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
268         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
269         gl_MBRLEN_NUL_RETVAL): Likewise.
270         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
271         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
272         Likewise.
273         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
274         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
275         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
276         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
277         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
278         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
279         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
280         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
281         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
282         Likewise.
283         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
284         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
285         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
286         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
287         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
288         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
289         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
290         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
291         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
293
294 2010-08-26  Bruno Haible  <bruno@clisp.org>
295
296         Modernize AC_TRY_LINK invocations.
297         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
298         AC_TRY_LINK.
299         * m4/argp.m4 (gl_ARGP): Likewise.
300         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
301         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
302         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
303         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
304         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
305         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
306         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
307         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
308         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
309         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
310         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
311         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
312         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
313         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
314         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
315         * m4/hostent.m4 (gl_HOSTENT): Likewise.
316         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
317         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
318         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
319         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
320         Likewise.
321         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
322         Likewise.
323         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
324         Likewise.
325         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
326         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
327         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
328         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
329         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
330         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
331         * m4/servent.m4 (gl_SERVENT): Likewise.
332         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
333         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
334         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
335         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
336         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
337         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
338         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
339         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
340         * modules/tsearch-tests (configure.ac): Likewise.
341
342 2010-08-26  Bruno Haible  <bruno@clisp.org>
343
344         Modernize AC_TRY_COMPILE invocations.
345         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
346         AC_TRY_COMPILE.
347         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
348         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
349         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
350         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
351         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
352         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
353         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
354         * m4/lock.m4 (gl_LOCK): Likewise.
355         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
356         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
357         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
358         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
359         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
360         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
361         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
362         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
363         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
364         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
365         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
366         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
367         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
368         extraneous semicolon.
369
370 2010-08-26  Jim Meyering  <meyering@redhat.com>
371
372         stat-time: relax license LGPL
373         * modules/stat-time (License): Change from GPL to LGPL,
374         with consent from all contributors, for use in libguile.
375         Requested by Ludovic Courtès.
376
377 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
378
379         poll: return immediately on POLLHUP.
380         * lib/poll.c (poll): Always set timeout before wait_timeout is
381         computed.
382
383 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
384
385         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
386         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
387         rmdir ("dir/.//"), unlinkat.
388
389 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
390
391         stdbool: avoid spurious failure with modern xlc
392         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
393
394 2010-08-24  Bruno Haible  <bruno@clisp.org>
395
396         getloadavg: simplify code
397         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
398         gl_have_func. Update comments.
399
400 2010-08-24  Eric Blake  <eblake@redhat.com>
401
402         getloadavg: don't define SVR4 on cygwin
403         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
404         only define SVR4 when -lkvm is required.
405         Reported by Yaakov Selkowitz.
406
407 2010-08-24  Bruno Haible  <bruno@clisp.org>
408
409         priv-set: fix comment
410         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
411
412 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
413
414         priv-set: fix comments
415         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
416         to match code, as suggested by David Bartley in:
417         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
418
419 2010-08-23  Eric Blake  <eblake@redhat.com>
420
421         stdbool: avoid rejecting clang
422         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
423         * tests/test-stdbool.c: Enable more tests if using the system
424         <stdbool.h> instead of the gnulib replacement.
425         (main): Move xlc bug test to a runtime test for all compilers.
426         Reported by Anders Kaseorg.
427
428         argz: fix shell quoting issue
429         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
430         Reported by Charles Wilson.
431
432 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
433             Erik Faye-Lund <kusmabite@gmail.com>
434
435         poll, select: handle ERROR_BROKEN_PIPE.
436         * lib/poll.c (win32_compute_revents): Return POLLHUP when
437         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
438         * lib/select.c (win32_compute_revents): Do not mark a pipe
439         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
440
441 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
442
443         fts: allow compilation with C++
444         * lib/fts_.h: Specify extern "C" linkage with C++.
445
446 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
447
448         Fix gnulib-tool sed script de-commentation for AIX sed.
449         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
450         sed.
451
452 2010-08-17  Eric Blake  <eblake@redhat.com>
453
454         test-stddef: test for (some) offsetof bugs
455         * tests/test-stddef.c: Enhance test to ensure correct type of
456         offsetof.
457         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
458         that we are not fixing at this time.
459
460 2010-08-15  Bruno Haible  <bruno@clisp.org>
461
462         stpncpy: Allow stpncpy to be defined as a macro.
463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
464         if it's already correctly declared.
465         * lib/string.in.h (stpncpy): Undefine before redefining.
466         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
467
468 2010-08-14  Bruno Haible  <bruno@clisp.org>
469
470         Rename module 'memxfrm' to 'amemxfrm'.
471         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
472         (amemxfrm): Renamed from memxfrm.
473         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
474         (amemxfrm): Renamed from memxfrm.
475         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
476         * NEWS: Mention the change.
477         * MODULES.html.sh (String handling <string.h>): Update.
478         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
479         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
480         * lib/unicase/u16-casexfrm.c: Likewise.
481         * lib/unicase/u32-casexfrm.c: Likewise.
482         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
483         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
484         * lib/uninorm/u16-normxfrm.c: Likewise.
485         * lib/uninorm/u32-normxfrm.c: Likewise.
486         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
487         memxfrm.
488         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
489         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
490         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
491         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
492         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
493         Suggested by Paul Eggert.
494
495 2010-08-14  Bruno Haible  <bruno@clisp.org>
496
497         Tests for module 'astrxfrm'.
498         * modules/astrxfrm-tests: New file.
499         * tests/test-astrxfrm.c: New file.
500
501         New module 'astrxfrm'.
502         * lib/astrxfrm.h: New file.
503         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
504         * modules/astrxfrm: New file.
505
506 2010-08-14  Reuben Thomas <rrt@sc3d.org>
507
508         regex: Tweak doc.
509         * doc/regex.texi (Overview): Don't mention regex.c.
510         (GNU Regular Expression Compiling): Likewise.
511         (Match-end-of-line Operator): Mention 'not_eol'.
512
513 2010-08-14  Brian Gough  <bjg@gnu.org>
514             Bruno Haible  <bruno@clisp.org>
515
516         git-merge-changelog: add doc relating to use with bzr and hg.
517         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
518
519 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
520
521         pthread: fix pthread.h creation for srcdir != builddir
522         * modules/pthread (Makefile.am): Fix the rule to work also in a
523         non-srcdir build.
524
525 2010-08-13  Karl Berry  <karl@gnu.org>
526
527         * doc/regex.texi (Predefined Syntaxes): @smallexample.
528         * doc/posix-*/*: force line break before @url of POSIX
529         specifications.
530         Suggested by Werner Lemberg.
531
532 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
533
534         strtod: fix const diagnostic
535         * lib/strtod.c (strtod): Don't assign const char * to char *,
536         as this elicits a warning from GCC when warnings are enabled.
537
538 2010-08-10  Pádraig Brady <P@draigbrady.com>
539         and Eric Blake  <eblake@redhat.com>
540
541         copy-acl: ignore ENOTSUP on HP-UX
542         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
543         so that it is available for HP-UX.
544         * lib/copy-acl.c (qcopy_acl): Use it.
545         Reported by Patrick M. Callahan.
546
547 2010-08-10  Eric Blake  <eblake@redhat.com>
548
549         open, chown: relax license
550         * modules/open (License): Change to LGPLv2+, with consent by all
551         authors, for use in augeas.
552         * modules/chown (License): Likewise.
553         * modules/lchown (Likewise): Likewise.
554         Requested by Adam Stokes.
555
556 2010-08-09  Karl Berry  <karl@gnu.org>
557
558         * build-aux/ar-lib: new file, import from Automake.
559         * config/srclist.txt: autocheck for updates.
560
561 2010-08-09  Eric Blake  <eblake@redhat.com>
562
563         readlinkat: adjust client modules
564         * modules/areadlinkat (Depends-on): Use readlinkat, not
565         symlinkat.
566         * modules/areadlinkat-with-size (Depends-on): Likewise.
567
568         mknod: be more vocal about danger of running tests as root
569         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
570         root, since that is just asking for problems.
571         Suggested by Bruno Haible, based on a report by Rainer Tammer.
572
573         readlinkat: split into its own module
574         * modules/symlinkat: Split readlinkat...
575         * modules/readlinkat: ...into separate module.
576         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
577         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
578         * lib/symlinkat.c (readlinkat): Move...
579         * lib/readlinkat.c: ...into new file.
580         * modules/symlinkat-tests: Split readlinkat test...
581         * modules/readlinkat-tests: ...into separate module.
582         * tests/test-symlinkat.c: Split...
583         * tests/test-readlinkat.c: ...into new file.
584         * NEWS: Document the split.
585         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
586         * lib/unistd.in.h (readlinkat): Likewise.
587         Suggested by Bruno Haible.
588
589 2010-08-08  Bruno Haible  <bruno@clisp.org>
590
591         memxfrm: Speed up.
592         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
593         that usually only one call to strxfrm is necessary for each string
594         part.
595         Reported by Paul Eggert <eggert@cs.ucla.edu>.
596
597 2010-08-07  Karl Berry  <karl@gnu.org>
598
599         * doc/posix-headers/limits.texi,
600         * doc/posix-functions/malloc.texi,
601         * doc/posix-functions/strsignal.texi: missing @item.
602         * doc/ld-version-script.texi: spurious leading i.
603         * doc/regex.texi (Interval Operators): no commas inside @var.
604
605 2010-08-01  Bruno Haible  <bruno@clisp.org>
606
607         Integrate the regex documentation.
608         * doc/gnulib.texi: Define 'cn' index.
609         (Regular expressions): New a chapter that includes regex.texi and
610         regexprops-generic.texi.
611         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
612         syntax.
613
614         Whitespace cleanup.
615         * doc/regex.texi: Remove trailing spaces.
616
617         Add regex documentation.
618         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
619         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
620         Written by Kathy A. Hargreaves and Karl Berry.
621
622 2010-08-01  Bruno Haible  <bruno@clisp.org>
623
624         link: Update documentation.
625         * doc/posix-functions/link.texi: Update regarding Solaris.
626
627 2010-07-31  Bruno Haible  <bruno@clisp.org>
628
629         Update modules list.
630         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
631         (String handling <string.h>): Add memcmp2, memxfrm.
632         (Container data structures): Add xlist, xsublist, xoset.
633         (Core language properties): Add alignof, unused-parameter.
634         (Process control, Numeric conversion functions <stdlib.h>): Renamed
635         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
636         (Unibyte characters <ctype.h>): New section.
637         (String handling <string.h>): New section.
638         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
639         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
640         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
641         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
642         tan, tanh, tanl, y0, y1, yn.
643         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
644         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
645         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
646         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
647         unlockpt, vdprintf, vdprintf-posix.
648         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
649         (File system functions): Add concat-filename, sys_file, sys_ioctl,
650         xconcat-filename.
651         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
652         getdtablesize, pipe2, pipe2-safer.
653         (Security): New section.
654         (Networking functions): Add accept4.
655         (Signal handling): Add sigpipe.
656         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
657         mbmemcasecoll.
658         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
659         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
660         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
661         pipe-filter-ii.
662         (Misc): Add argp-version-etc, login_tty, parse-duration.
663
664 2010-07-31  Bruno Haible  <bruno@clisp.org>
665
666         Improve doc in MODULES.html.
667         * modules/linkat (Description): Add the word "function".
668         * modules/mkfifo (Description): Likewise.
669         * modules/mknod (Description): Likewise.
670         * modules/remove (Description): Likewise.
671         * modules/renameat (Description): Likewise.
672         * modules/stat (Description): Likewise.
673         * modules/symlink (Description): Likewise.
674         * modules/unlink (Description): Likewise.
675
676 2010-07-31  Bruno Haible  <bruno@clisp.org>
677
678         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
679         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
680         option --enable/disable-c++ instead of --enable/disable-cxx.
681         * NEWS: Mention the change.
682
683 2010-07-31  Bruno Haible  <bruno@clisp.org>
684
685         readlink, areadlink: Relax test a bit.
686         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
687         alternative to ENOTDIR.
688         * tests/test-areadlink.h (test_areadlink): Likewise.
689         Reported by Rainer Tammer.
690
691 2010-07-31  Bruno Haible  <bruno@clisp.org>
692
693         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
694         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
695         character, perform the search using U_STRCHR.
696         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
697         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
698         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
699         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
700         Suggested by Paolo Bonzini.
701
702 2010-07-31  Bruno Haible  <bruno@clisp.org>
703
704         unistr/u*-strstr: Fix dependencies.
705         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
706         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
707         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
708
709 2010-07-31  Bruno Haible  <bruno@clisp.org>
710
711         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
712         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
713         the beginning of the loop.
714         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
715         cases in 'switch' statement.
716
717         unistr/u8-strchr: Fix several bugs.
718         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
719         the string. When not found, return NULL, not a pointer near the end.
720
721         More tests for unistr/u8-strchr.
722         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
723         that the function does not read past the first occurrence of the byte
724         being searched.
725         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
726         * tests/unistr/test-u16-strchr.c (main): New function.
727         * tests/unistr/test-u32-strchr.c (main): New function.
728
729 2010-07-31  Bruno Haible  <bruno@clisp.org>
730
731         posix-modules: Ignore backup files of documentation files.
732         * posix-modules: grep only through files named *.texi.
733
734 2010-07-31  Bruno Haible  <bruno@clisp.org>
735
736         symlinkat: Fix documentation.
737         * doc/posix-functions/readlinkat.texi: Fix module name.
738
739 2010-07-31  Bruno Haible  <bruno@clisp.org>
740
741         fchownat: Replace also when chown has the trailing slash bug.
742         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
743         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
744         introduced on 2010-04-10.
745         Reported by Rainer Tammer.
746
747 2010-07-31  Bruno Haible  <bruno@clisp.org>
748
749         linkat: Work around AIX 7.1 bug.
750         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
751         whether linkat handles trailing slash correctly. If not, replace linkat
752         and define LINKAT_TRAILING_SLASH_BUG.
753         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
754         check whether (fd1,file1) points to a directory if file1 or file2 ends
755         in a slash. Code taken from lib/link.c.
756         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
757         Reported by Rainer Tammer.
758
759 2010-07-31  Bruno Haible  <bruno@clisp.org>
760
761         Correctly determine whether pow is available in libc on AIX 7 with xlc.
762         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
763         This disables an xlc optimization that was causing wrong test results.
764         Reported by Rainer Tammer.
765
766 2010-07-31  Bruno Haible  <bruno@clisp.org>
767
768         iconv: Work around AIX 6.1..7.1 bug.
769         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
770         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
771         cross-compiling, guess no on all versions of AIX.
772         Reported by Rainer Tammer.
773
774 2010-07-31  Bruno Haible  <bruno@clisp.org>
775
776         readlink: Relax test a bit.
777         * tests/test-readlink.h (test_readlink): Allow different errno value
778         when readlink is called with a file name that ends in / and refers to
779         a file.
780         Suggested by Eric Blake.
781         Reported by Rainer Tammer.
782
783 2010-07-31  Bruno Haible  <bruno@clisp.org>
784
785         copysign: Does not require -lm on glibc systems.
786         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
787         gl_COMMON_DOUBLE_MATHFUNC.
788         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
789
790 2010-07-31  Bruno Haible  <bruno@clisp.org>
791
792         duplocale: Work around AIX 7.1 bug.
793         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
794         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
795         * lib/duplocale.c (rpl_duplocale): Update comment.
796         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
797         Reported by Rainer Tammer.
798
799 2010-07-30  Bruno Haible  <bruno@clisp.org>
800
801         dirfd: Avoid link error on AIX 7.1.
802         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
803         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
804         exist, set REPLACE_DIRFD.
805         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
806         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
807         * doc/posix-functions/dirfd.texi: Update.
808         Reported by Rainer Tammer.
809
810 2010-07-30  Eric Blake  <eblake@redhat.com>
811
812         strtod: next round of AIX fixes
813         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
814         exponent.
815         * tests/test-strtod.c (main): Enhance tests.
816         * doc/posix-functions/strtod.texi (strtod): Document next bug.
817         Reported by Rainer Tammer.
818
819         futimens: fix configure check
820         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
821         Reported by Bruno Haible.
822
823 2010-07-30  Bruno Haible  <bruno@clisp.org>
824
825         getline: Update regarding AIX.
826         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
827         Reported by Rainer Tammer.
828
829 2010-07-30  Bruno Haible  <bruno@clisp.org>
830
831         wcwidth: Drop replacement on AIX 7.
832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
833         AIX 7.
834         Reported by Rainer Tammer.
835
836 2010-07-30  Bruno Haible  <bruno@clisp.org>
837
838         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
839         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
840         a 'char *'.
841         Reported by Rainer Tammer.
842
843 2010-07-30  Bruno Haible  <bruno@clisp.org>
844
845         unlink: Update regarding AIX.
846         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
847         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
848         Reported by Rainer Tammer.
849
850 2010-07-30  Bruno Haible  <bruno@clisp.org>
851
852         symlink: Update regarding AIX.
853         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
854         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
855         Reported by Rainer Tammer.
856
857 2010-07-30  Bruno Haible  <bruno@clisp.org>
858
859         strndup: Update regarding AIX.
860         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
861         AIX 7.
862         Reported by Rainer Tammer.
863
864 2010-07-30  Bruno Haible  <bruno@clisp.org>
865
866         stat: Update regarding AIX.
867         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
868         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
869         Reported by Rainer Tammer.
870
871 2010-07-30  Bruno Haible  <bruno@clisp.org>
872
873         truncl: Fix autoconf test.
874         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
875         whether truncl works.
876         Reported by Rainer Tammer.
877
878 2010-07-30  Bruno Haible  <bruno@clisp.org>
879
880         round: Update regarding AIX.
881         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
882         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
883         Reported by Rainer Tammer.
884
885 2010-07-30  Bruno Haible  <bruno@clisp.org>
886
887         rename: Update regarding AIX.
888         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
889         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
890         Reported by Rainer Tammer.
891
892 2010-07-30  Bruno Haible  <bruno@clisp.org>
893
894         printf.m4: Update regarding AIX.
895         * m4/printf.m4: Update comments regarding AIX.
896         Reported by Rainer Tammer.
897
898 2010-07-30  Bruno Haible  <bruno@clisp.org>
899
900         iconv: Update regarding AIX.
901         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
902         AIX 7.
903         Reported by Rainer Tammer.
904
905 2010-07-30  Bruno Haible  <bruno@clisp.org>
906
907         getopt: Update regarding AIX.
908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
909         no on AIX.
910         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
911         Reported by Rainer Tammer.
912
913 2010-07-30  Bruno Haible  <bruno@clisp.org>
914
915         ldexpl; Update regarding AIX.
916         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
917         on AIX 7.
918         Reported by Rainer Tammer.
919
920 2010-07-30  Bruno Haible  <bruno@clisp.org>
921
922         frexpl: Update regarding AIX.
923         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
924         on AIX 7.
925         Reported by Rainer Tammer.
926
927 2010-07-30  Bruno Haible  <bruno@clisp.org>
928
929         open, fopen: Update regarding AIX.
930         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
931         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
932         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
933         * doc/posix-functions/fopen.texi: Likewise.
934         Reported by Rainer Tammer.
935
936 2010-07-30  Bruno Haible  <bruno@clisp.org>
937
938         chown: Update doc regarding AIX.
939         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
940         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
941         Reported by Rainer Tammer.
942
943 2010-07-30  Eric Blake  <eblake@redhat.com>
944
945         strtod: fix bug in replacement function on AIX
946         * lib/strtod.c (strtod): Special case broken "0x" parse in
947         underlying strtod.
948         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
949         * doc/posix-functions/strtod.texi (strtod): Likewise.
950         Reported by Rainer Tammer.
951
952 2010-07-30  Bruno Haible  <bruno@clisp.org>
953
954         mbrlen: Fix cross-compilation guess for AIX.
955         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
956         guess. Leftover from 2008-12-22.
957
958 2010-07-30  Bruno Haible  <bruno@clisp.org>
959
960         mbrtowc: Fix cross-compilation guess for AIX.
961         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
962         guess. Leftover from 2008-12-21.
963
964 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
965
966         init.sh: work around trap limitation of some shells
967         * tests/init.sh (setup_): Move exit trap outside of shell function.
968
969 2010-07-29  Eric Blake  <eblake@redhat.com>
970
971         strtod: aid debugging
972         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
973         understanding why strtod is rejected.
974
975 2010-07-28  Bruno Haible  <bruno@clisp.org>
976
977         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
978         * lib/unistr/u8-chr.c: Include <string.h>.
979         * tests/unistr/test-u8-chr.c: Likewise.
980         * tests/unistr/test-u16-chr.c: Likewise.
981         * tests/unistr/test-u32-chr.c: Likewise.
982         * tests/unistr/test-u8-strchr.c: Likewise.
983         * tests/unistr/test-u16-strchr.c: Likewise.
984         * tests/unistr/test-u32-strchr.c: Likewise.
985         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
986         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
987         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
988         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
989
990 2010-07-28  Bruno Haible  <bruno@clisp.org>
991
992         Use spaces for indentation, not tabs.
993         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
994
995 2010-07-27  Bruno Haible  <bruno@clisp.org>
996
997         mbspcasecmp: Fix function specification.
998         * lib/string.in.h (mbspcasecmp): Fix specification comment.
999         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1000         Reported by Eric Blake <eblake@redhat.com>.
1001
1002 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1003
1004         timespec: use cast and not conditional, as truncation isn't possible
1005         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1006         instead of a conditional.  Comment about the situation in more detail.
1007         This undoes most of the 2009-10-29 patch.
1008
1009 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1010
1011         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1012         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1013         * lib/unistr/u8-strchr.c: Likewise.
1014         * modules/unistr/u8-chr: Depend on memchr.
1015
1016         unistr/u*-strchr: add tests
1017         * modules/unistr/u8-strchr-tests: New file.
1018         * modules/unistr/u16-strchr-tests: New file.
1019         * modules/unistr/u32-strchr-tests: New file.
1020         * tests/unistr/test-strchr.h: New file.
1021         * tests/unistr/test-u8-strchr.c: New file.
1022         * tests/unistr/test-u16-strchr.c: New file.
1023         * tests/unistr/test-u32-strchr.c: New file.
1024
1025         unistr/u*-chr: test multibyte sequences more
1026         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1027         test vector.
1028         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1029         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1030         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1031
1032         unistr/u*-chr: test multibyte sequences
1033         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1034
1035         unistr/u*-chr: prepare for multibyte tests
1036         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1037         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1038         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1039         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1040         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1041         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1042
1043 2010-07-18  Bruno Haible  <bruno@clisp.org>
1044
1045         unistr/u8-strchr: Optimize non-ASCII argument case.
1046         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1047         because the first byte often matches anyway.
1048         Reported by Pádraig Brady <P@draigbrady.com>.
1049
1050 2010-07-15  Karl Berry  <karl@gnu.org>
1051
1052         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1053
1054 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1055
1056         getcwd: on Solaris, work better if ancestors are inaccessible
1057         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1058         buffer and size, try again with a large buffer.  This works better
1059         on Solaris, since its getcwd succeeds even if the path to the root
1060         is inaccessible, and this is helpful in common cases such as .zfs
1061         hidden directories.  Problem reported by J Chapman Flack in
1062         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1063         Use system getcwd if it's declared, not merely if it's partly
1064         working; use the partly-working test only to avoid needless effort
1065         if the system getcwd fails.
1066         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1067         comment that was already obsolete and is now even more obsolete.
1068         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1069         now might call strdup.
1070
1071 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1072
1073         pthread: Add enough so that coreutils/src/sort.c compiles.
1074         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1075         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1076         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1077         Include <sys/types.h>, in case it defines pthread_t.
1078         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1079         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1080         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1081         (pthread_rwlockattr_t, pthread_spinlock_t):
1082         New typedefs, if HAVE_PTHREAD_T is not defined.
1083         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1084         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1085         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1086         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1087         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1088         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1089         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1090         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1091         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1092         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1093         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1094         New macros.
1095         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1096         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1097         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1098         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1099         (pthread_spin_unlock): New dummy functions.
1100         (pthread_create): Return EAGAIN; don't set errno.
1101         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1102         require AC_C_INLINE.
1103         * modules/pthread (Depends-on): Add sched, time.
1104         (pthread.h): Use AM_V_GEN.
1105
1106 2010-07-13  Bruno Haible  <bruno@clisp.org>
1107
1108         striconveh: Don't malloc memory if the result buffer is sufficient.
1109         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1110         buffer if its size is sufficient.
1111         Reported by Ludovic Courtès <ludo@gnu.org>.
1112
1113 2010-07-13  Bruno Haible  <bruno@clisp.org>
1114
1115         strtod: Add safety check.
1116         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1117
1118 2010-07-12  Bruno Haible  <bruno@clisp.org>
1119
1120         Unify tests that set gl_cv_func_ldexpl_no_libm.
1121         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1122         gl_FUNC_LDEXPL.
1123         (gl_FUNC_LDEXPL): Invoke it.
1124         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1125
1126 2010-07-12  Bruno Haible  <bruno@clisp.org>
1127
1128         Unify tests that set gl_cv_func_ldexp_no_libm.
1129         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1130         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1131         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1132         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1133         * modules/strtod (Files): Add m4/ldexp.m4.
1134
1135 2010-07-12  Bruno Haible  <bruno@clisp.org>
1136
1137         Unify tests that set gl_cv_func_frexpl_no_libm.
1138         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1139         gl_FUNC_FREXPL_NO_LIBM.
1140         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1141         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1142
1143 2010-07-12  Bruno Haible  <bruno@clisp.org>
1144
1145         Unify tests that set gl_cv_func_frexp_no_libm.
1146         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1147         gl_FUNC_FREXP_NO_LIBM.
1148         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1149         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1150
1151 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1152
1153         memcoll: clarify sizes versus lengths, document better, and tweak perf
1154         * lib/memcoll.c (strcoll_loop, memcoll0):
1155         Improve quality of descriptive comments.  Name variables
1156         consistently as to whether they are lengths (which do not include
1157         terminating null) versus sizes (which do).
1158         * lib/xmemcoll.c (xmemcoll0): Likewise.
1159         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1160         returned when s1size == 0; this is easier to compile and saves
1161         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1162
1163 2010-07-12  Bruno Haible  <bruno@clisp.org>
1164
1165         Tests for module '_Exit'.
1166         * modules/_Exit-tests: New file.
1167         * tests/test-_Exit.sh: New file.
1168         * tests/test-_Exit.c: New file.
1169
1170         New module '_Exit'.
1171         * lib/stdlib.in.h (__attribute__): New macro.
1172         (_Exit): New declaration.
1173         * lib/_Exit.c: New file.
1174         * m4/_Exit.m4: New file.
1175         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1176         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1177         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1178         * modules/_Exit: New file.
1179         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1180         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1181
1182 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1183
1184         strtod: make it more-accurate typically, and don't require libm
1185         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1186         Include limits.h.  Don't include string.h.
1187         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1188         (locale_isspace): New function, so that no casts are needed to
1189         check whether *s is a space.
1190         (ldexp): Provide an unused dummy if not available.
1191         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1192         (strtod): Use them.  This implementation prefers to use the
1193         underlying strtod if available, falling back on our own code
1194         only to fix known bugs.  This is more likely to produce an
1195         accurate result.  Also, it avoids the use of libm functions.
1196         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1197         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1198         was absent, but it caused a test failure with coreutils.
1199         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1200         with libm.
1201         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1202         * modules/strtod-tests (Makefile.am): Likewise.
1203
1204 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1205             Bruno Haible  <bruno@clisp.org>
1206
1207         unistr/u8-strchr: Optimize ASCII argument case.
1208         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1209
1210 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1211
1212         (x)memcoll: minor tweaks
1213         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1214         is after the type that it qualifies.
1215         (memcoll0): Likewise.
1216         * lib/memcoll.h (memcoll0): Likewise.
1217         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1218         * lib/xmemcoll.h (xmemcoll0): Likewise.
1219         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1220         differs from memcoll in that the NUL byte is part of the argument.
1221         Omit the abort-checks, as performance is a real issue here.  Plus,
1222         the checks were wrong anyway (an off-by-one error).  Omit local
1223         variable 'diff', as it's a bit clearer that way.
1224         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1225         no longer needed.
1226
1227 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1228
1229         (x)memcoll: speedup when input is known to be NUL delimited
1230         * lib/memcoll.c: Include stdlib.
1231         (memcoll0) New function.
1232         (strcoll_loop) New function, refactored for use in both memcoll
1233         and memcoll0.
1234         * lib/memcoll.h: Add prototype for memcoll0.
1235         * lib/xmemcoll.c: (xmemcoll0) New function.
1236         (collate_error) New function, refactored for use in both xmemcoll
1237         and xmemcoll0.
1238         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1239         * m4/memcoll.m4: add inline invocation.
1240
1241 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1242
1243         * build-aux/bootstrap: Remove any local translations
1244         from the translation project synchronization directory,
1245         so that local only translations are not distributed.
1246
1247 2010-07-04  Bruno Haible  <bruno@clisp.org>
1248
1249         fsusage: Clarify which code applies to which platforms.
1250         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1251         platform.
1252         * lib/fsusage.c (get_fs_usage): Likewise.
1253
1254 2010-07-04  Bruno Haible  <bruno@clisp.org>
1255
1256         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1257         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1258         Reported by Martin Lambers <marlam@marlam.de>.
1259
1260 2010-07-04  Jim Meyering  <meyering@redhat.com>
1261
1262         hash: once again explicitly disallow insertion of NULL
1263         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1264         inserting a NULL pointer cannot work with these functions.
1265         Add a comment with details.
1266         This reverts part of the 2010-07-01 commit, 5bef1a35
1267         "hash: extend module to deal with non-pointer keys".
1268
1269 2010-07-01  Bruno Haible  <bruno@clisp.org>
1270
1271         stdbool: Update doc.
1272         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1273         Info from Christian Weisgerber <naddy@mips.inka.de>.
1274
1275 2010-07-01  Jim Meyering  <meyering@redhat.com>
1276
1277         hash: extend module to deal with non-pointer keys
1278         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1279         but that allows insertion of non-pointer entries.
1280         Do not disallow an ENTRY value of NULL.
1281         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1282         * lib/hash.h (hash_insert0): Declare.
1283
1284 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1285
1286         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1287         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1288         not present (i.e. with autoconf 2.59 and when using gettextize, not
1289         gnulib), require AC_GNU_SOURCE instead.
1290
1291 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1292
1293         idpriv-drop: Fix tests.
1294         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1295         not to the test-idpriv-droptemp program.
1296
1297 2010-06-29  Bruno Haible  <bruno@clisp.org>
1298
1299         string: Fix syntax error with g++ 2.96.
1300         * lib/string.in.h (__pure__): Remove definition.
1301         (_GL_ATTRIBUTE_PURE): New macro.
1302         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1303         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1304         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1305
1306 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1307
1308         unitypes: Fix bug introduced on 2010-05-18.
1309         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1310
1311 2010-06-22  Eric Blake  <eblake@redhat.com>
1312
1313         memmem: slight optimization
1314         * lib/str-two-way.h (critical_factorization): Update comments.
1315         Reduce work during factorization phase.
1316         Reported by Carlos Bueno <carlos@bueno.org>.
1317
1318 2010-06-21  Bruno Haible  <bruno@clisp.org>
1319
1320         Fix HAVE_CALLOC_POSIX misnomer.
1321         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1322         !HAVE_CALLOC_POSIX.
1323         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1324         HAVE_CALLOC_POSIX.
1325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1326         instead of HAVE_CALLOC_POSIX.
1327         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1328         HAVE_CALLOC_POSIX.
1329
1330         Use modern idiom for calloc() replacement.
1331         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1332         AC_FUNC_CALLOC.
1333         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1334         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1335         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1336         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1337         (gl_REPLACE_CALLOC): New macro.
1338
1339 2010-06-21  Bruno Haible  <bruno@clisp.org>
1340
1341         Fix HAVE_REALLOC_POSIX misnomer.
1342         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1343         !HAVE_REALLOC_POSIX.
1344         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1345         HAVE_REALLOC_POSIX.
1346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1347         instead of HAVE_REALLOC_POSIX.
1348         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1349         HAVE_REALLOC_POSIX.
1350
1351         Use modern idiom for realloc() replacement.
1352         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1353         AC_FUNC_REALLOC.
1354         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1355         Autoconf's AC_FUNC_REALLOC.
1356         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1357         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1358         (gl_REPLACE_REALLOC): New macro.
1359         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1360
1361 2010-06-21  Bruno Haible  <bruno@clisp.org>
1362
1363         Fix HAVE_MALLOC_POSIX misnomer.
1364         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
1365         !HAVE_MALLOC_POSIX.
1366         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
1367         HAVE_MALLOC_POSIX.
1368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
1369         instead of HAVE_MALLOC_POSIX.
1370         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
1371         HAVE_MALLOC_POSIX.
1372
1373         Use modern idiom for malloc() replacement.
1374         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
1375         AC_FUNC_MALLOC.
1376         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
1377         Autoconf's AC_FUNC_MALLOC.
1378         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1379         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
1380         (gl_REPLACE_MALLOC): New macro.
1381         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1382
1383 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
1384
1385         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
1386         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
1387         This macro takes 3 arguments, not 4.
1388
1389 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
1390
1391         ipv6: fix detection under mingw
1392         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
1393         in6_addr.
1394
1395 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
1396
1397         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
1398         that strtod() works when cross-compiling to a glibc version known
1399         to work.
1400
1401 2010-06-15  Bruno Haible  <bruno@clisp.org>
1402
1403         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
1404
1405 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
1406
1407         select: Correct timeout.
1408         * lib/select.c (rpl_select): Compute wait_timeout correctly.
1409
1410 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1411
1412         git-version-gen: init shell var to avoid env var influence
1413         * build-aux/git-version-gen (v): Init shell var to empty.
1414
1415 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
1416
1417         priv-set: Don't assume that priv.h exists merely because getppriv does.
1418         See Jan Andersen's bug report about AIX 5L in
1419         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
1420         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
1421         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
1422         * lib/priv-set.h: Likewise.
1423         * tests/test-priv-set.c: Likewise.
1424
1425 2010-06-13  Bruno Haible  <bruno@clisp.org>
1426
1427         relocatable: Make it easier to test whether to install wrappers.
1428         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
1429         RELOCATABLE_VIA_WRAPPER.
1430
1431 2010-06-13  Bruno Haible  <bruno@clisp.org>
1432
1433         gnulib-tool: Display specified modules and dependencies differently.
1434         * gnulib-tool (func_show_module_list): New function.
1435         (func_import, func_create_testdir): Invoke it.
1436         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1437
1438 2010-06-13  Bruno Haible  <bruno@clisp.org>
1439
1440         gnulib-tool: Align code of func_import and func_create_testdir.
1441         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
1442         specified_modules.
1443
1444 2010-06-12  Jim Meyering  <meyering@redhat.com>
1445
1446         test-inttostr: avoid spurious failure on Solaris 9
1447         * tests/test-inttostr.c (main): Skip the test when snprintf fails
1448         to accept "%ju".  Reported by Bruno Haible.
1449
1450 2010-06-11  Jim Meyering  <meyering@redhat.com>
1451
1452         test-sys_socket: mark variables as used more readably
1453         * tests/test-sys_socket.c (main): Mark otherwise unused variables
1454         as "used" explicitly via (void) statement casts.  This is more
1455         readable than using them in an artificial return expression.
1456         Suggestion from Bruno Haible.
1457
1458 2010-06-11  Bruno Haible  <bruno@clisp.org>
1459
1460         Avoid some more warnings from "gcc -Wwrite-strings".
1461         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
1462         to 'const char *'.
1463         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
1464         * tests/test-c-strcasestr.c (main): Likewise.
1465         * tests/test-mbscasestr1.c (main): Likewise.
1466         * tests/test-mbscasestr2.c (main): Likewise.
1467         * tests/test-memmem.c (main): Likewise.
1468         * tests/test-strstr.c (main): Likewise.
1469         * tests/test-strcasestr.c (main): Likewise.
1470
1471 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1472
1473         init.sh: change framework_failure_ to fail with status 99, not 1
1474         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
1475         automake's parallel-tests rule that this is an unexpected failure,
1476         even if the test is listed in XFAIL_TESTS.
1477
1478 2010-06-11  Jim Meyering  <meyering@redhat.com>
1479
1480         test-inttostr: avoid warnings about 4-6KB literal strings
1481         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
1482         Include "macros.h", for its definition of ASSERT.
1483         (CK): s/assert/ASSERT/
1484         * modules/inttostr-tests (Files): Add macros.h.
1485
1486         init.sh: don't use $ME_ or skip_ before they are defined
1487         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
1488         their first uses.  Also hoist their companions: warn_, fail_,
1489         framework_failure_, $stderr_fileno.  Prompted by a patch from
1490         Stefano Lattarini.
1491
1492         test-sys_socket: avoid set-but-not-used warnings from gcc
1493         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
1494         avoid warning about set-but-not-used variables.
1495
1496         test-xvasprintf: avoid 'const' discard warnings
1497         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
1498         "const" when assigning from literal strings.
1499         (test_xasprintf): Add "void" in function argument list to placate
1500         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
1501
1502         tests: avoid compilation warnings in argmatch and exclude tests...
1503         in packages that define ARGMATCH_DIE_DECL, like coreutils.
1504         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
1505         Since it always exits, declare with the "noreturn" attribute.
1506         * tests/test-argmatch.c: Likewise.
1507
1508         tests: avoid 'const' discard warnings in mbsstr tests
1509         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
1510         * tests/test-mbsstr2.c (main): Likewise.
1511
1512         test-verify: avoid warning from gcc's -Wmissing-declarations
1513         * tests/test-verify.c (function): Declare to be static.
1514
1515         test-inttostr.c: include <string.h> for use of strcmp
1516         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
1517
1518         test-linkat: avoid failed assertion on "other" architectures
1519         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
1520         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
1521         sparc: https://bugs.launchpad.net/bugs/591968
1522
1523 2010-06-11  Jim Meyering  <meyering@redhat.com>
1524
1525         printf.m4: avoid autoconf's "Expanded Before Required" warning
1526         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
1527         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
1528         autoconf warning.
1529
1530 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
1531
1532         Replacement header templates are now named with ".in", not "_".
1533         * doc/gnulib-intro.texi: Correct.
1534
1535 2010-06-10  Jim Meyering  <meyering@redhat.com>
1536
1537         inttostr-tests: depend on snprintf, not snprintf-posix
1538         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
1539         snprintf-posix, to avoid this aclocal failure:
1540           missing file gnulib-tests/vasnprintf.c
1541           configure.ac:45: error: expected source file, required through \
1542           AC_LIBSOURCES, not found
1543
1544 2010-06-10  Jim Meyering  <meyering@redhat.com>
1545
1546         inttostr: add a new function, inttostr, and tests
1547         The namesake function was not available.  The existence of the
1548         template file, inttostr.c makes its addition nontrivial.
1549         * lib/anytostr.c: Rename from inttostr.c.
1550         (anytostr): Rename from inttostr.
1551         * lib/inttostr.c: New file.
1552         * modules/inttostr (Files): Add anytostr.c.
1553         (Makefile.am): Set lib_SOURCES instead of ...
1554         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
1555         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
1556         * lib/offtostr.c: Likewise.
1557         * lib/uinttostr.c: Likewise.
1558         * lib/umaxtostr.c: Likewise.
1559         * modules/inttostr-tests: New file.
1560         * tests/test-inttostr.c: New file.  Test these functions.
1561
1562 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
1563             Bruno Haible  <bruno@clisp.org>
1564
1565         Add "Extending Gnulib" chapter to manual.
1566         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
1567         chapter.
1568         (Extending Gnulib): New chapter.
1569         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
1570         chapter.
1571
1572 2010-06-09  Bruno Haible  <bruno@clisp.org>
1573
1574         Avoid relocwrapper link errors due to gnulib replacement functions.
1575         * lib/areadlink.c: Use the system's malloc, realloc functions.
1576         (areadlink): Set errno to ENOMEM explicitly.
1577         * modules/areadlink (Depends-on): Remove malloc-posix.
1578         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1579
1580 2010-06-09  Bruno Haible  <bruno@clisp.org>
1581
1582         Avoid relocwrapper link errors due to gnulib replacement functions.
1583         * lib/canonicalize-lgpl.c: Use the system's malloc function.
1584         * lib/malloca.c: Likewise.
1585         * lib/relocatable.c: Likewise.
1586         * lib/progreloc.c: Use the system's malloc, sprintf functions.
1587         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
1588         * lib/setenv.c: Use the system's malloc, realloc functions.
1589         * lib/strerror.c: Use the system's sprintf function.
1590         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1591
1592 2010-06-04  Bruno Haible  <bruno@clisp.org>
1593
1594         Prefer documented low-level autoconf macro names.
1595         * m4/lib-link.m4: Use m4_translit instead of translit.
1596         * m4/environ.m4: Likewise.
1597         * m4/mathfunc.m4: Likewise.
1598         * m4/onceonly.m4: Likewise.
1599         * m4/stdint.m4: Likewise.
1600         Suggested by Eric Blake.
1601
1602 2010-06-04  Martin Lambers  <marlam@marlam.de>
1603             Bruno Haible  <bruno@clisp.org>
1604
1605         havelib: Allow library names with '+' characters.
1606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1607         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
1608
1609 2010-06-09  Bruno Haible  <bruno@clisp.org>
1610
1611         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
1612         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
1613         realloc failed.
1614
1615 2010-06-08  Peter Simons  <simons@cryp.to>
1616
1617         maint.mk: make the news-check rule more configurable
1618         * top/maint.mk (news-check-lines-spec) New variable.
1619         (news-check): Use "sed -n 1,10p" in place of "head".
1620
1621 2010-06-07  Jim Meyering  <meyering@redhat.com>
1622
1623         do-release-commit-and-tag: fix typo in --help
1624         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
1625
1626         regex: avoid new dead-code warning with gcc-4.6.0
1627         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
1628         if-block containing a while-loop.  It's been unused for at least
1629         5 years.
1630
1631 2010-06-05  Bruno Haible  <bruno@clisp.org>
1632
1633         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
1634         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
1635
1636 2010-06-04  Bruno Haible  <bruno@clisp.org>
1637
1638         Update to GNU gettext 0.18.1.
1639         * modules/gettext (configure.ac): Require gettext infrastructure from
1640         version 0.18.1.
1641
1642 2010-06-03  Bruno Haible  <bruno@clisp.org>
1643
1644         Don't use AC_LIBOBJ with file names in subdirectories.
1645         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
1646         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
1647         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
1648         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
1649         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
1650         gl_LIBUNISTRING_LIBSOURCE.
1651         (Makefile.am): Augment lib_SOURCES here, conditionally.
1652         * NEWS: Drop requirement for Automake option 'subdir-objects'.
1653
1654 2010-06-03  Bruno Haible  <bruno@clisp.org>
1655
1656         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
1657         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
1658         expansion does not end with a newline.
1659         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
1660         unnecessary newline.
1661
1662 2010-06-03  Bruno Haible  <bruno@clisp.org>
1663
1664         Reduce dependencies.
1665         * tests/test-quotearg.h: New file, extracted from
1666         tests/test-quotearg.c.
1667         * tests/test-quotearg-simple.c: New file, extracted from
1668         tests/test-quotearg.c.
1669         * tests/test-quotearg.c: Don't include <ctype.h>.
1670         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
1671         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
1672         use_quote_double_quotes, use_quotearg_colon): Moved to
1673         tests/test-quotearg.h.
1674         (results_g, flag_results, custom_quotes, custom_results): Moved
1675         to tests/test-quotearg-simple.c.
1676         (main): Moved the part that does not depend on gettext to
1677         tests/test-quotearg-simple.c. Return 77 if the test cannot be
1678         performed.
1679         * modules/quotearg-simple: New file.
1680         * modules/quotearg-simple-tests: New file.
1681         * modules/quotearg (Depends-on): Add quotearg-simple.
1682         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
1683         (Files): Add tests/test-quotearg.h.
1684         Reported by Paolo Bonzini.
1685
1686 2010-06-03  Bruno Haible  <bruno@clisp.org>
1687
1688         Reduce dependencies.
1689         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
1690
1691 2010-06-03  Bruno Haible  <bruno@clisp.org>
1692
1693         time: Undefine more broken macros.
1694         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
1695         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
1696         Reported by Eric Blake.
1697
1698 2010-06-03  Bruno Haible  <bruno@clisp.org>
1699
1700         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
1701         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
1702         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
1703         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
1704         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
1705         Reported by Ludovic Courtès <ludo@gnu.org>.
1706
1707 2010-06-02  Eric Blake  <eblake@redhat.com>
1708
1709         time: work with mingw + pthreads-win32 library
1710         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
1711         if timespec is defined only in pthread.h.
1712         * modules/time (Makefile.am): Substitute it.
1713         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
1714         <pthread.h>, when needed.
1715         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
1716         from the library.
1717
1718 2010-05-31  Bruno Haible  <bruno@clisp.org>
1719
1720         Avoid expanding two macros in the wrong order.
1721         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
1722         gl_LIBUNISTRING if it is defined.
1723         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
1724         autoconf >= 2.64.
1725         Reported by Ludovic Courtès <ludo@gnu.org>.
1726
1727 2010-05-27  Jim Meyering  <meyering@redhat.com>
1728
1729         maint.mk: also prohibit "#undef" of always-defined symbols
1730         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
1731         Allow more than one space before the symbol name.
1732         (sc_prohibit_always-defined_macros): Use grep's -E, now that
1733         the regexp uses alternation.
1734
1735 2010-05-26  Eric Blake  <eblake@redhat.com>
1736
1737         maint.mk: avoid echo -e
1738         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
1739         Convert all uses of echo -* to printf.
1740         Reported by Matthias Bolte.
1741
1742 2010-05-25  Bruno Haible  <bruno@clisp.org>
1743
1744         Update to GNU gettext 0.18, part 2.
1745         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
1746         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
1747
1748 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1749
1750         Add missing include in test-pwrite.c.
1751         * tests/test-pwrite.c: Include string.h, for strcmp.
1752
1753 2010-05-24  Bruno Haible  <bruno@clisp.org>
1754
1755         * NEWS: Mention requirement for Automake option 'subdir-objects'.
1756
1757 2010-05-24  Bruno Haible  <bruno@clisp.org>
1758
1759         Don't use conversion with transliteration in u{8,16,32}_strcoll.
1760         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
1761         iconveh_error argument.
1762         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
1763         U_STRCONV_TO_LOCALE.
1764         * lib/unistr/u16-strcoll.c: Likewise.
1765         * lib/unistr/u32-strcoll.c: Likewise.
1766         * modules/unistr/u8-strcoll (Depends-on): Add
1767         uniconv/u8-strconv-to-enc, localcharset. Remove
1768         uniconv/u8-strconv-to-locale.
1769         (configure.ac): Bump version number.
1770         * modules/unistr/u16-strcoll (Depends-on): Add
1771         uniconv/u16-strconv-to-enc, localcharset. Remove
1772         uniconv/u16-strconv-to-locale.
1773         (configure.ac): Bump version number.
1774         * modules/unistr/u32-strcoll (Depends-on): Add
1775         uniconv/u32-strconv-to-enc, localcharset. Remove
1776         uniconv/u32-strconv-to-locale.
1777         (configure.ac): Bump version number.
1778
1779 2010-05-24  Bruno Haible  <bruno@clisp.org>
1780
1781         Avoid a test failure on NetBSD 5.0.
1782         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
1783         an iconv() bug.
1784
1785 2010-05-24  Bruno Haible  <bruno@clisp.org>
1786
1787         Adjust #include directive style.
1788         * modules/regex (Includes): Recommend to write <regex.h>.
1789
1790 2010-05-24  Bruno Haible  <bruno@clisp.org>
1791
1792         regex: Don't require alloca.
1793         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
1794         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
1795         only inside if (0).
1796
1797 2010-05-23  Jim Meyering  <meyering@redhat.com>
1798
1799         test-renameat.c: include <sys/stat.h>
1800         * tests/test-renameat.c: Include <sys/stat.h>; required for
1801         definition of S_IS* macros.
1802
1803 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
1804
1805         Update maintainer documentation for 'relocatable-prog' module.
1806         * doc/relocatable-maint.texi: Update.
1807         Comments by Bruno Haible.
1808
1809 2010-05-23  Bruno Haible  <bruno@clisp.org>
1810
1811         git-merge-changelog: Enable --split-merged-entry by default.
1812         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
1813         (usage): Don't mention this option any more.
1814         Reported by Ralf Wildenhues.
1815
1816 2010-05-23  Jim Meyering  <meyering@redhat.com>
1817
1818         test-pwrite: do not leave behind a test file named "out"
1819         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
1820         The trivial-looking use of init.sh is really necessary.
1821         It ensures that the temporary file, "out", is created in
1822         a temporary directory, and removed upon termination.
1823         * tests/test-pwrite.sh: Re-add file.
1824         * modules/pwrite-tests: Reference it.
1825
1826 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1827
1828         Fix output redirection buglet in init.sh.
1829         * tests/init.sh: Fix redirection of stderr.
1830
1831 2010-05-20  Simon Josefsson  <simon@josefsson.org>
1832
1833         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
1834
1835 2010-05-17  Simon Josefsson  <simon@josefsson.org>
1836
1837         * modules/valgrind-tests: New file.
1838         * m4/valgrind-tests.m4: New file.
1839         * doc/valgrind-tests.texi: New file.
1840         * doc/gnulib.texi (Running self-tests under valgrind): New
1841         section.
1842
1843 2010-05-19  Bruno Haible  <bruno@clisp.org>
1844
1845         Clean up dead code in recent commit.
1846         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
1847         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
1848         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
1849         Suggested by Paolo Bonzini.
1850
1851 2010-05-19  Bruno Haible  <bruno@clisp.org>
1852
1853         Avoid valgrind error reports from libunistring.
1854         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
1855         * modules/libunistring (Files): Add it.
1856         * modules/libunistring-optional (Files): Likewise.
1857
1858 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
1859             Bruno Haible  <bruno@clisp.org>
1860
1861         New module 'libunistring-optional'.
1862         * modules/libunistring-optional: New file.
1863         * m4/libunistring-base.m4: New file.
1864         * m4/libunistring-optional.m4: New file.
1865         * lib/unicase.in.h: Renamed from lib/unicase.h.
1866         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
1867         * lib/unictype.in.h: Renamed from lib/unictype.h.
1868         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
1869         * lib/uniname.in.h: Renamed from lib/uniname.h.
1870         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
1871         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
1872         * lib/unistr.in.h: Renamed from lib/unistr.h.
1873         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
1874         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
1875         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
1876         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
1877         gl_LIBUNISTRING. If the library was found, determine the installed
1878         version and set LIBUNISTRING_VERSION.
1879         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
1880         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
1881         handle a configuration option --with-included-libunistring.
1882         * modules/libunistring (Files): Add m4/absolute-header.m4.
1883         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
1884         Add m4/libunistring-base.m4.
1885         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1886         (Makefile.am): Build unicase.h from unicase.in.h.
1887         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
1888         Add m4/libunistring-base.m4.
1889         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1890         (Makefile.am): Build uniconv.h from uniconv.in.h.
1891         * modules/unictype/base (Files): Use unictype.in.h instead of
1892         unictype.h. Add m4/libunistring-base.m4.
1893         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1894         (Makefile.am): Build unictype.h from unictype.in.h.
1895         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
1896         Add m4/libunistring-base.m4.
1897         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1898         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
1899         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
1900         Add m4/libunistring-base.m4.
1901         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1902         (Makefile.am): Build uniname.h from uniname.in.h.
1903         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
1904         Add m4/libunistring-base.m4.
1905         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1906         (Makefile.am): Build uninorm.h from uninorm.in.h.
1907         * modules/unistdio/base (Files): Use unistdio.in.h instead of
1908         unistdio.h. Add m4/libunistring-base.m4.
1909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1910         (Makefile.am): Build unistdio.h from unistdio.in.h.
1911         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
1912         Add m4/libunistring-base.m4.
1913         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1914         (Makefile.am): Build unistr.h from unistr.in.h.
1915         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
1916         Add m4/libunistring-base.m4.
1917         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1918         (Makefile.am): Build unitypes.h from unitypes.in.h.
1919         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1920         Add m4/libunistring-base.m4.
1921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1922         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1923         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1924         uniwidth.h. Add m4/libunistring-base.m4.
1925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1926         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1927         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1928         instead of augmenting lib_SOURCES.
1929         * modules/unicase/empty-suffix-context: Likewise.
1930         * modules/unicase/locale-language: Likewise.
1931         * modules/unicase/tolower: Likewise.
1932         * modules/unicase/totitle: Likewise.
1933         * modules/unicase/toupper: Likewise.
1934         * modules/unicase/u8-casecmp: Likewise.
1935         * modules/unicase/u8-casecoll: Likewise.
1936         * modules/unicase/u8-casefold: Likewise.
1937         * modules/unicase/u8-casexfrm: Likewise.
1938         * modules/unicase/u8-ct-casefold: Likewise.
1939         * modules/unicase/u8-ct-tolower: Likewise.
1940         * modules/unicase/u8-ct-totitle: Likewise.
1941         * modules/unicase/u8-ct-toupper: Likewise.
1942         * modules/unicase/u8-is-cased: Likewise.
1943         * modules/unicase/u8-is-casefolded: Likewise.
1944         * modules/unicase/u8-is-lowercase: Likewise.
1945         * modules/unicase/u8-is-titlecase: Likewise.
1946         * modules/unicase/u8-is-uppercase: Likewise.
1947         * modules/unicase/u8-prefix-context: Likewise.
1948         * modules/unicase/u8-suffix-context: Likewise.
1949         * modules/unicase/u8-tolower: Likewise.
1950         * modules/unicase/u8-totitle: Likewise.
1951         * modules/unicase/u8-toupper: Likewise.
1952         * modules/unicase/u16-casecmp: Likewise.
1953         * modules/unicase/u16-casecoll: Likewise.
1954         * modules/unicase/u16-casefold: Likewise.
1955         * modules/unicase/u16-casexfrm: Likewise.
1956         * modules/unicase/u16-ct-casefold: Likewise.
1957         * modules/unicase/u16-ct-tolower: Likewise.
1958         * modules/unicase/u16-ct-totitle: Likewise.
1959         * modules/unicase/u16-ct-toupper: Likewise.
1960         * modules/unicase/u16-is-cased: Likewise.
1961         * modules/unicase/u16-is-casefolded: Likewise.
1962         * modules/unicase/u16-is-lowercase: Likewise.
1963         * modules/unicase/u16-is-titlecase: Likewise.
1964         * modules/unicase/u16-is-uppercase: Likewise.
1965         * modules/unicase/u16-prefix-context: Likewise.
1966         * modules/unicase/u16-suffix-context: Likewise.
1967         * modules/unicase/u16-tolower: Likewise.
1968         * modules/unicase/u16-totitle: Likewise.
1969         * modules/unicase/u16-toupper: Likewise.
1970         * modules/unicase/u32-casecmp: Likewise.
1971         * modules/unicase/u32-casecoll: Likewise.
1972         * modules/unicase/u32-casefold: Likewise.
1973         * modules/unicase/u32-casexfrm: Likewise.
1974         * modules/unicase/u32-ct-casefold: Likewise.
1975         * modules/unicase/u32-ct-tolower: Likewise.
1976         * modules/unicase/u32-ct-totitle: Likewise.
1977         * modules/unicase/u32-ct-toupper: Likewise.
1978         * modules/unicase/u32-is-cased: Likewise.
1979         * modules/unicase/u32-is-casefolded: Likewise.
1980         * modules/unicase/u32-is-lowercase: Likewise.
1981         * modules/unicase/u32-is-titlecase: Likewise.
1982         * modules/unicase/u32-is-uppercase: Likewise.
1983         * modules/unicase/u32-prefix-context: Likewise.
1984         * modules/unicase/u32-suffix-context: Likewise.
1985         * modules/unicase/u32-tolower: Likewise.
1986         * modules/unicase/u32-totitle: Likewise.
1987         * modules/unicase/u32-toupper: Likewise.
1988         * modules/unicase/ulc-casecmp: Likewise.
1989         * modules/unicase/ulc-casecoll: Likewise.
1990         * modules/unicase/ulc-casexfrm: Likewise.
1991         * modules/uniconv/u8-conv-from-enc: Likewise.
1992         * modules/uniconv/u8-conv-to-enc: Likewise.
1993         * modules/uniconv/u8-strconv-from-enc: Likewise.
1994         * modules/uniconv/u8-strconv-from-locale: Likewise.
1995         * modules/uniconv/u8-strconv-to-enc: Likewise.
1996         * modules/uniconv/u8-strconv-to-locale: Likewise.
1997         * modules/uniconv/u16-conv-from-enc: Likewise.
1998         * modules/uniconv/u16-conv-to-enc: Likewise.
1999         * modules/uniconv/u16-strconv-from-enc: Likewise.
2000         * modules/uniconv/u16-strconv-from-locale: Likewise.
2001         * modules/uniconv/u16-strconv-to-enc: Likewise.
2002         * modules/uniconv/u16-strconv-to-locale: Likewise.
2003         * modules/uniconv/u32-conv-from-enc: Likewise.
2004         * modules/uniconv/u32-conv-to-enc: Likewise.
2005         * modules/uniconv/u32-strconv-from-enc: Likewise.
2006         * modules/uniconv/u32-strconv-from-locale: Likewise.
2007         * modules/uniconv/u32-strconv-to-enc: Likewise.
2008         * modules/uniconv/u32-strconv-to-locale: Likewise.
2009         * modules/unictype/bidicategory-byname: Likewise.
2010         * modules/unictype/bidicategory-name: Likewise.
2011         * modules/unictype/bidicategory-of: Likewise.
2012         * modules/unictype/bidicategory-test: Likewise.
2013         * modules/unictype/block-list: Likewise.
2014         * modules/unictype/block-test: Likewise.
2015         * modules/unictype/category-C: Likewise.
2016         * modules/unictype/category-Cc: Likewise.
2017         * modules/unictype/category-Cf: Likewise.
2018         * modules/unictype/category-Cn: Likewise.
2019         * modules/unictype/category-Co: Likewise.
2020         * modules/unictype/category-Cs: Likewise.
2021         * modules/unictype/category-L: Likewise.
2022         * modules/unictype/category-Ll: Likewise.
2023         * modules/unictype/category-Lm: Likewise.
2024         * modules/unictype/category-Lo: Likewise.
2025         * modules/unictype/category-Lt: Likewise.
2026         * modules/unictype/category-Lu: Likewise.
2027         * modules/unictype/category-M: Likewise.
2028         * modules/unictype/category-Mc: Likewise.
2029         * modules/unictype/category-Me: Likewise.
2030         * modules/unictype/category-Mn: Likewise.
2031         * modules/unictype/category-N: Likewise.
2032         * modules/unictype/category-Nd: Likewise.
2033         * modules/unictype/category-Nl: Likewise.
2034         * modules/unictype/category-No: Likewise.
2035         * modules/unictype/category-P: Likewise.
2036         * modules/unictype/category-Pc: Likewise.
2037         * modules/unictype/category-Pd: Likewise.
2038         * modules/unictype/category-Pe: Likewise.
2039         * modules/unictype/category-Pf: Likewise.
2040         * modules/unictype/category-Pi: Likewise.
2041         * modules/unictype/category-Po: Likewise.
2042         * modules/unictype/category-Ps: Likewise.
2043         * modules/unictype/category-S: Likewise.
2044         * modules/unictype/category-Sc: Likewise.
2045         * modules/unictype/category-Sk: Likewise.
2046         * modules/unictype/category-Sm: Likewise.
2047         * modules/unictype/category-So: Likewise.
2048         * modules/unictype/category-Z: Likewise.
2049         * modules/unictype/category-Zl: Likewise.
2050         * modules/unictype/category-Zp: Likewise.
2051         * modules/unictype/category-Zs: Likewise.
2052         * modules/unictype/category-and: Likewise.
2053         * modules/unictype/category-and-not: Likewise.
2054         * modules/unictype/category-byname: Likewise.
2055         * modules/unictype/category-name: Likewise.
2056         * modules/unictype/category-none: Likewise.
2057         * modules/unictype/category-of: Likewise.
2058         * modules/unictype/category-or: Likewise.
2059         * modules/unictype/category-test: Likewise.
2060         * modules/unictype/combining-class: Likewise.
2061         * modules/unictype/ctype-alnum: Likewise.
2062         * modules/unictype/ctype-alpha: Likewise.
2063         * modules/unictype/ctype-blank: Likewise.
2064         * modules/unictype/ctype-cntrl: Likewise.
2065         * modules/unictype/ctype-digit: Likewise.
2066         * modules/unictype/ctype-graph: Likewise.
2067         * modules/unictype/ctype-lower: Likewise.
2068         * modules/unictype/ctype-print: Likewise.
2069         * modules/unictype/ctype-punct: Likewise.
2070         * modules/unictype/ctype-space: Likewise.
2071         * modules/unictype/ctype-upper: Likewise.
2072         * modules/unictype/ctype-xdigit: Likewise.
2073         * modules/unictype/decimal-digit: Likewise.
2074         * modules/unictype/digit: Likewise.
2075         * modules/unictype/mirror: Likewise.
2076         * modules/unictype/numeric: Likewise.
2077         * modules/unictype/property-alphabetic: Likewise.
2078         * modules/unictype/property-ascii-hex-digit: Likewise.
2079         * modules/unictype/property-bidi-arabic-digit: Likewise.
2080         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2081         * modules/unictype/property-bidi-block-separator: Likewise.
2082         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2083         * modules/unictype/property-bidi-common-separator: Likewise.
2084         * modules/unictype/property-bidi-control: Likewise.
2085         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2086         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2087         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2088         * modules/unictype/property-bidi-european-digit: Likewise.
2089         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2090         * modules/unictype/property-bidi-left-to-right: Likewise.
2091         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2092         * modules/unictype/property-bidi-other-neutral: Likewise.
2093         * modules/unictype/property-bidi-pdf: Likewise.
2094         * modules/unictype/property-bidi-segment-separator: Likewise.
2095         * modules/unictype/property-bidi-whitespace: Likewise.
2096         * modules/unictype/property-byname: Likewise.
2097         * modules/unictype/property-combining: Likewise.
2098         * modules/unictype/property-composite: Likewise.
2099         * modules/unictype/property-currency-symbol: Likewise.
2100         * modules/unictype/property-dash: Likewise.
2101         * modules/unictype/property-decimal-digit: Likewise.
2102         * modules/unictype/property-default-ignorable-code-point: Likewise.
2103         * modules/unictype/property-deprecated: Likewise.
2104         * modules/unictype/property-diacritic: Likewise.
2105         * modules/unictype/property-extender: Likewise.
2106         * modules/unictype/property-format-control: Likewise.
2107         * modules/unictype/property-grapheme-base: Likewise.
2108         * modules/unictype/property-grapheme-extend: Likewise.
2109         * modules/unictype/property-grapheme-link: Likewise.
2110         * modules/unictype/property-hex-digit: Likewise.
2111         * modules/unictype/property-hyphen: Likewise.
2112         * modules/unictype/property-id-continue: Likewise.
2113         * modules/unictype/property-id-start: Likewise.
2114         * modules/unictype/property-ideographic: Likewise.
2115         * modules/unictype/property-ids-binary-operator: Likewise.
2116         * modules/unictype/property-ids-trinary-operator: Likewise.
2117         * modules/unictype/property-ignorable-control: Likewise.
2118         * modules/unictype/property-iso-control: Likewise.
2119         * modules/unictype/property-join-control: Likewise.
2120         * modules/unictype/property-left-of-pair: Likewise.
2121         * modules/unictype/property-line-separator: Likewise.
2122         * modules/unictype/property-logical-order-exception: Likewise.
2123         * modules/unictype/property-lowercase: Likewise.
2124         * modules/unictype/property-math: Likewise.
2125         * modules/unictype/property-non-break: Likewise.
2126         * modules/unictype/property-not-a-character: Likewise.
2127         * modules/unictype/property-numeric: Likewise.
2128         * modules/unictype/property-other-alphabetic: Likewise.
2129         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2130         * modules/unictype/property-other-grapheme-extend: Likewise.
2131         * modules/unictype/property-other-id-continue: Likewise.
2132         * modules/unictype/property-other-id-start: Likewise.
2133         * modules/unictype/property-other-lowercase: Likewise.
2134         * modules/unictype/property-other-math: Likewise.
2135         * modules/unictype/property-other-uppercase: Likewise.
2136         * modules/unictype/property-paired-punctuation: Likewise.
2137         * modules/unictype/property-paragraph-separator: Likewise.
2138         * modules/unictype/property-pattern-syntax: Likewise.
2139         * modules/unictype/property-pattern-white-space: Likewise.
2140         * modules/unictype/property-private-use: Likewise.
2141         * modules/unictype/property-punctuation: Likewise.
2142         * modules/unictype/property-quotation-mark: Likewise.
2143         * modules/unictype/property-radical: Likewise.
2144         * modules/unictype/property-sentence-terminal: Likewise.
2145         * modules/unictype/property-soft-dotted: Likewise.
2146         * modules/unictype/property-space: Likewise.
2147         * modules/unictype/property-terminal-punctuation: Likewise.
2148         * modules/unictype/property-test: Likewise.
2149         * modules/unictype/property-titlecase: Likewise.
2150         * modules/unictype/property-unassigned-code-value: Likewise.
2151         * modules/unictype/property-unified-ideograph: Likewise.
2152         * modules/unictype/property-uppercase: Likewise.
2153         * modules/unictype/property-variation-selector: Likewise.
2154         * modules/unictype/property-white-space: Likewise.
2155         * modules/unictype/property-xid-continue: Likewise.
2156         * modules/unictype/property-xid-start: Likewise.
2157         * modules/unictype/property-zero-width: Likewise.
2158         * modules/unictype/scripts: Likewise.
2159         * modules/unictype/syntax-c-ident: Likewise.
2160         * modules/unictype/syntax-c-whitespace: Likewise.
2161         * modules/unictype/syntax-java-ident: Likewise.
2162         * modules/unictype/syntax-java-whitespace: Likewise.
2163         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2164         * modules/unilbrk/u8-width-linebreaks: Likewise.
2165         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2166         * modules/unilbrk/u16-width-linebreaks: Likewise.
2167         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2168         * modules/unilbrk/u32-width-linebreaks: Likewise.
2169         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2170         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2171         * modules/uniname/uniname: Likewise.
2172         * modules/uninorm/canonical-decomposition: Likewise.
2173         * modules/uninorm/composition: Likewise.
2174         * modules/uninorm/decomposing-form: Likewise.
2175         * modules/uninorm/decomposition: Likewise.
2176         * modules/uninorm/filter: Likewise.
2177         * modules/uninorm/nfc: Likewise.
2178         * modules/uninorm/nfd: Likewise.
2179         * modules/uninorm/nfkc: Likewise.
2180         * modules/uninorm/nfkd: Likewise.
2181         * modules/uninorm/u8-normalize: Likewise.
2182         * modules/uninorm/u8-normcmp: Likewise.
2183         * modules/uninorm/u8-normcoll: Likewise.
2184         * modules/uninorm/u8-normxfrm: Likewise.
2185         * modules/uninorm/u16-normalize: Likewise.
2186         * modules/uninorm/u16-normcmp: Likewise.
2187         * modules/uninorm/u16-normcoll: Likewise.
2188         * modules/uninorm/u16-normxfrm: Likewise.
2189         * modules/uninorm/u32-normalize: Likewise.
2190         * modules/uninorm/u32-normcmp: Likewise.
2191         * modules/uninorm/u32-normcoll: Likewise.
2192         * modules/uninorm/u32-normxfrm: Likewise.
2193         * modules/unistdio/u8-asnprintf: Likewise.
2194         * modules/unistdio/u8-asprintf: Likewise.
2195         * modules/unistdio/u8-snprintf: Likewise.
2196         * modules/unistdio/u8-sprintf: Likewise.
2197         * modules/unistdio/u8-u8-asnprintf: Likewise.
2198         * modules/unistdio/u8-u8-asprintf: Likewise.
2199         * modules/unistdio/u8-u8-snprintf: Likewise.
2200         * modules/unistdio/u8-u8-sprintf: Likewise.
2201         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2202         * modules/unistdio/u8-u8-vasprintf: Likewise.
2203         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2204         * modules/unistdio/u8-u8-vsprintf: Likewise.
2205         * modules/unistdio/u8-vasnprintf: Likewise.
2206         * modules/unistdio/u8-vasprintf: Likewise.
2207         * modules/unistdio/u8-vsnprintf: Likewise.
2208         * modules/unistdio/u8-vsprintf: Likewise.
2209         * modules/unistdio/u16-asnprintf: Likewise.
2210         * modules/unistdio/u16-asprintf: Likewise.
2211         * modules/unistdio/u16-snprintf: Likewise.
2212         * modules/unistdio/u16-sprintf: Likewise.
2213         * modules/unistdio/u16-u16-asnprintf: Likewise.
2214         * modules/unistdio/u16-u16-asprintf: Likewise.
2215         * modules/unistdio/u16-u16-snprintf: Likewise.
2216         * modules/unistdio/u16-u16-sprintf: Likewise.
2217         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2218         * modules/unistdio/u16-u16-vasprintf: Likewise.
2219         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2220         * modules/unistdio/u16-u16-vsprintf: Likewise.
2221         * modules/unistdio/u16-vasnprintf: Likewise.
2222         * modules/unistdio/u16-vasprintf: Likewise.
2223         * modules/unistdio/u16-vsnprintf: Likewise.
2224         * modules/unistdio/u16-vsprintf: Likewise.
2225         * modules/unistdio/u32-asnprintf: Likewise.
2226         * modules/unistdio/u32-asprintf: Likewise.
2227         * modules/unistdio/u32-snprintf: Likewise.
2228         * modules/unistdio/u32-sprintf: Likewise.
2229         * modules/unistdio/u32-u32-asnprintf: Likewise.
2230         * modules/unistdio/u32-u32-asprintf: Likewise.
2231         * modules/unistdio/u32-u32-snprintf: Likewise.
2232         * modules/unistdio/u32-u32-sprintf: Likewise.
2233         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2234         * modules/unistdio/u32-u32-vasprintf: Likewise.
2235         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2236         * modules/unistdio/u32-u32-vsprintf: Likewise.
2237         * modules/unistdio/u32-vasnprintf: Likewise.
2238         * modules/unistdio/u32-vasprintf: Likewise.
2239         * modules/unistdio/u32-vsnprintf: Likewise.
2240         * modules/unistdio/u32-vsprintf: Likewise.
2241         * modules/unistdio/ulc-asnprintf: Likewise.
2242         * modules/unistdio/ulc-asprintf: Likewise.
2243         * modules/unistdio/ulc-fprintf: Likewise.
2244         * modules/unistdio/ulc-snprintf: Likewise.
2245         * modules/unistdio/ulc-sprintf: Likewise.
2246         * modules/unistdio/ulc-vasnprintf: Likewise.
2247         * modules/unistdio/ulc-vasprintf: Likewise.
2248         * modules/unistdio/ulc-vfprintf: Likewise.
2249         * modules/unistdio/ulc-vsnprintf: Likewise.
2250         * modules/unistdio/ulc-vsprintf: Likewise.
2251         * modules/unistr/u8-check: Likewise.
2252         * modules/unistr/u8-chr: Likewise.
2253         * modules/unistr/u8-cmp: Likewise.
2254         * modules/unistr/u8-cmp2: Likewise.
2255         * modules/unistr/u8-cpy: Likewise.
2256         * modules/unistr/u8-cpy-alloc: Likewise.
2257         * modules/unistr/u8-endswith: Likewise.
2258         * modules/unistr/u8-mblen: Likewise.
2259         * modules/unistr/u8-mbsnlen: Likewise.
2260         * modules/unistr/u8-mbtouc: Likewise.
2261         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2262         * modules/unistr/u8-mbtoucr: Likewise.
2263         * modules/unistr/u8-move: Likewise.
2264         * modules/unistr/u8-next: Likewise.
2265         * modules/unistr/u8-prev: Likewise.
2266         * modules/unistr/u8-set: Likewise.
2267         * modules/unistr/u8-startswith: Likewise.
2268         * modules/unistr/u8-stpcpy: Likewise.
2269         * modules/unistr/u8-stpncpy: Likewise.
2270         * modules/unistr/u8-strcat: Likewise.
2271         * modules/unistr/u8-strchr: Likewise.
2272         * modules/unistr/u8-strcmp: Likewise.
2273         * modules/unistr/u8-strcoll: Likewise.
2274         * modules/unistr/u8-strcpy: Likewise.
2275         * modules/unistr/u8-strcspn: Likewise.
2276         * modules/unistr/u8-strdup: Likewise.
2277         * modules/unistr/u8-strlen: Likewise.
2278         * modules/unistr/u8-strmblen: Likewise.
2279         * modules/unistr/u8-strmbtouc: Likewise.
2280         * modules/unistr/u8-strncat: Likewise.
2281         * modules/unistr/u8-strncmp: Likewise.
2282         * modules/unistr/u8-strncpy: Likewise.
2283         * modules/unistr/u8-strnlen: Likewise.
2284         * modules/unistr/u8-strpbrk: Likewise.
2285         * modules/unistr/u8-strrchr: Likewise.
2286         * modules/unistr/u8-strspn: Likewise.
2287         * modules/unistr/u8-strstr: Likewise.
2288         * modules/unistr/u8-strtok: Likewise.
2289         * modules/unistr/u8-to-u16: Likewise.
2290         * modules/unistr/u8-to-u32: Likewise.
2291         * modules/unistr/u8-uctomb: Likewise.
2292         * modules/unistr/u16-check: Likewise.
2293         * modules/unistr/u16-chr: Likewise.
2294         * modules/unistr/u16-cmp: Likewise.
2295         * modules/unistr/u16-cmp2: Likewise.
2296         * modules/unistr/u16-cpy: Likewise.
2297         * modules/unistr/u16-cpy-alloc: Likewise.
2298         * modules/unistr/u16-endswith: Likewise.
2299         * modules/unistr/u16-mblen: Likewise.
2300         * modules/unistr/u16-mbsnlen: Likewise.
2301         * modules/unistr/u16-mbtouc: Likewise.
2302         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2303         * modules/unistr/u16-mbtoucr: Likewise.
2304         * modules/unistr/u16-move: Likewise.
2305         * modules/unistr/u16-next: Likewise.
2306         * modules/unistr/u16-prev: Likewise.
2307         * modules/unistr/u16-set: Likewise.
2308         * modules/unistr/u16-startswith: Likewise.
2309         * modules/unistr/u16-stpcpy: Likewise.
2310         * modules/unistr/u16-stpncpy: Likewise.
2311         * modules/unistr/u16-strcat: Likewise.
2312         * modules/unistr/u16-strchr: Likewise.
2313         * modules/unistr/u16-strcmp: Likewise.
2314         * modules/unistr/u16-strcoll: Likewise.
2315         * modules/unistr/u16-strcpy: Likewise.
2316         * modules/unistr/u16-strcspn: Likewise.
2317         * modules/unistr/u16-strdup: Likewise.
2318         * modules/unistr/u16-strlen: Likewise.
2319         * modules/unistr/u16-strmblen: Likewise.
2320         * modules/unistr/u16-strmbtouc: Likewise.
2321         * modules/unistr/u16-strncat: Likewise.
2322         * modules/unistr/u16-strncmp: Likewise.
2323         * modules/unistr/u16-strncpy: Likewise.
2324         * modules/unistr/u16-strnlen: Likewise.
2325         * modules/unistr/u16-strpbrk: Likewise.
2326         * modules/unistr/u16-strrchr: Likewise.
2327         * modules/unistr/u16-strspn: Likewise.
2328         * modules/unistr/u16-strstr: Likewise.
2329         * modules/unistr/u16-strtok: Likewise.
2330         * modules/unistr/u16-to-u32: Likewise.
2331         * modules/unistr/u16-to-u8: Likewise.
2332         * modules/unistr/u16-uctomb: Likewise.
2333         * modules/unistr/u32-check: Likewise.
2334         * modules/unistr/u32-chr: Likewise.
2335         * modules/unistr/u32-cmp: Likewise.
2336         * modules/unistr/u32-cmp2: Likewise.
2337         * modules/unistr/u32-cpy: Likewise.
2338         * modules/unistr/u32-cpy-alloc: Likewise.
2339         * modules/unistr/u32-endswith: Likewise.
2340         * modules/unistr/u32-mblen: Likewise.
2341         * modules/unistr/u32-mbsnlen: Likewise.
2342         * modules/unistr/u32-mbtouc: Likewise.
2343         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2344         * modules/unistr/u32-mbtoucr: Likewise.
2345         * modules/unistr/u32-move: Likewise.
2346         * modules/unistr/u32-next: Likewise.
2347         * modules/unistr/u32-prev: Likewise.
2348         * modules/unistr/u32-set: Likewise.
2349         * modules/unistr/u32-startswith: Likewise.
2350         * modules/unistr/u32-stpcpy: Likewise.
2351         * modules/unistr/u32-stpncpy: Likewise.
2352         * modules/unistr/u32-strcat: Likewise.
2353         * modules/unistr/u32-strchr: Likewise.
2354         * modules/unistr/u32-strcmp: Likewise.
2355         * modules/unistr/u32-strcoll: Likewise.
2356         * modules/unistr/u32-strcpy: Likewise.
2357         * modules/unistr/u32-strcspn: Likewise.
2358         * modules/unistr/u32-strdup: Likewise.
2359         * modules/unistr/u32-strlen: Likewise.
2360         * modules/unistr/u32-strmblen: Likewise.
2361         * modules/unistr/u32-strmbtouc: Likewise.
2362         * modules/unistr/u32-strncat: Likewise.
2363         * modules/unistr/u32-strncmp: Likewise.
2364         * modules/unistr/u32-strncpy: Likewise.
2365         * modules/unistr/u32-strnlen: Likewise.
2366         * modules/unistr/u32-strpbrk: Likewise.
2367         * modules/unistr/u32-strrchr: Likewise.
2368         * modules/unistr/u32-strspn: Likewise.
2369         * modules/unistr/u32-strstr: Likewise.
2370         * modules/unistr/u32-strtok: Likewise.
2371         * modules/unistr/u32-to-u16: Likewise.
2372         * modules/unistr/u32-to-u8: Likewise.
2373         * modules/unistr/u32-uctomb: Likewise.
2374         * modules/uniwbrk/u8-wordbreaks: Likewise.
2375         * modules/uniwbrk/u16-wordbreaks: Likewise.
2376         * modules/uniwbrk/u32-wordbreaks: Likewise.
2377         * modules/uniwbrk/ulc-wordbreaks: Likewise.
2378         * modules/uniwbrk/wordbreak-property: Likewise.
2379         * modules/uniwidth/u8-strwidth: Likewise.
2380         * modules/uniwidth/u8-width: Likewise.
2381         * modules/uniwidth/u16-strwidth: Likewise.
2382         * modules/uniwidth/u16-width: Likewise.
2383         * modules/uniwidth/u32-strwidth: Likewise.
2384         * modules/uniwidth/u32-width: Likewise.
2385         * modules/uniwidth/width: Likewise.
2386         * modules/unicase/cased-tests (Makefile.am): Link all test programs
2387         with $(LIBUNISTRING).
2388         * modules/unicase/ignorable-tests: Likewise.
2389         * modules/unicase/locale-language-tests: Likewise.
2390         * modules/unicase/tolower-tests: Likewise.
2391         * modules/unicase/totitle-tests: Likewise.
2392         * modules/unicase/toupper-tests: Likewise.
2393         * modules/unicase/u8-casecmp-tests: Likewise.
2394         * modules/unicase/u8-casecoll-tests: Likewise.
2395         * modules/unicase/u8-casefold-tests: Likewise.
2396         * modules/unicase/u8-is-cased-tests: Likewise.
2397         * modules/unicase/u8-is-casefolded-tests: Likewise.
2398         * modules/unicase/u8-is-lowercase-tests: Likewise.
2399         * modules/unicase/u8-is-titlecase-tests: Likewise.
2400         * modules/unicase/u8-is-uppercase-tests: Likewise.
2401         * modules/unicase/u8-tolower-tests: Likewise.
2402         * modules/unicase/u8-totitle-tests: Likewise.
2403         * modules/unicase/u8-toupper-tests: Likewise.
2404         * modules/unicase/u16-casecmp-tests: Likewise.
2405         * modules/unicase/u16-casecoll-tests: Likewise.
2406         * modules/unicase/u16-casefold-tests: Likewise.
2407         * modules/unicase/u16-is-cased-tests: Likewise.
2408         * modules/unicase/u16-is-casefolded-tests: Likewise.
2409         * modules/unicase/u16-is-lowercase-tests: Likewise.
2410         * modules/unicase/u16-is-titlecase-tests: Likewise.
2411         * modules/unicase/u16-is-uppercase-tests: Likewise.
2412         * modules/unicase/u16-tolower-tests: Likewise.
2413         * modules/unicase/u16-totitle-tests: Likewise.
2414         * modules/unicase/u16-toupper-tests: Likewise.
2415         * modules/unicase/u32-casecmp-tests: Likewise.
2416         * modules/unicase/u32-casecoll-tests: Likewise.
2417         * modules/unicase/u32-casefold-tests: Likewise.
2418         * modules/unicase/u32-is-cased-tests: Likewise.
2419         * modules/unicase/u32-is-casefolded-tests: Likewise.
2420         * modules/unicase/u32-is-lowercase-tests: Likewise.
2421         * modules/unicase/u32-is-titlecase-tests: Likewise.
2422         * modules/unicase/u32-is-uppercase-tests: Likewise.
2423         * modules/unicase/u32-tolower-tests: Likewise.
2424         * modules/unicase/u32-totitle-tests: Likewise.
2425         * modules/unicase/u32-toupper-tests: Likewise.
2426         * modules/unicase/ulc-casecmp-tests: Likewise.
2427         * modules/unicase/ulc-casecoll-tests: Likewise.
2428         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
2429         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
2430         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
2431         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
2432         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
2433         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
2434         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
2435         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
2436         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
2437         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
2438         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
2439         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
2440         * modules/unictype/bidicategory-byname-tests: Likewise.
2441         * modules/unictype/bidicategory-name-tests: Likewise.
2442         * modules/unictype/bidicategory-of-tests: Likewise.
2443         * modules/unictype/bidicategory-test-tests: Likewise.
2444         * modules/unictype/block-list-tests: Likewise.
2445         * modules/unictype/block-of-tests: Likewise.
2446         * modules/unictype/block-test-tests: Likewise.
2447         * modules/unictype/category-C-tests: Likewise.
2448         * modules/unictype/category-Cc-tests: Likewise.
2449         * modules/unictype/category-Cf-tests: Likewise.
2450         * modules/unictype/category-Cn-tests: Likewise.
2451         * modules/unictype/category-Co-tests: Likewise.
2452         * modules/unictype/category-Cs-tests: Likewise.
2453         * modules/unictype/category-L-tests: Likewise.
2454         * modules/unictype/category-Ll-tests: Likewise.
2455         * modules/unictype/category-Lm-tests: Likewise.
2456         * modules/unictype/category-Lo-tests: Likewise.
2457         * modules/unictype/category-Lt-tests: Likewise.
2458         * modules/unictype/category-Lu-tests: Likewise.
2459         * modules/unictype/category-M-tests: Likewise.
2460         * modules/unictype/category-Mc-tests: Likewise.
2461         * modules/unictype/category-Me-tests: Likewise.
2462         * modules/unictype/category-Mn-tests: Likewise.
2463         * modules/unictype/category-N-tests: Likewise.
2464         * modules/unictype/category-Nd-tests: Likewise.
2465         * modules/unictype/category-Nl-tests: Likewise.
2466         * modules/unictype/category-No-tests: Likewise.
2467         * modules/unictype/category-P-tests: Likewise.
2468         * modules/unictype/category-Pc-tests: Likewise.
2469         * modules/unictype/category-Pd-tests: Likewise.
2470         * modules/unictype/category-Pe-tests: Likewise.
2471         * modules/unictype/category-Pf-tests: Likewise.
2472         * modules/unictype/category-Pi-tests: Likewise.
2473         * modules/unictype/category-Po-tests: Likewise.
2474         * modules/unictype/category-Ps-tests: Likewise.
2475         * modules/unictype/category-S-tests: Likewise.
2476         * modules/unictype/category-Sc-tests: Likewise.
2477         * modules/unictype/category-Sk-tests: Likewise.
2478         * modules/unictype/category-Sm-tests: Likewise.
2479         * modules/unictype/category-So-tests: Likewise.
2480         * modules/unictype/category-Z-tests: Likewise.
2481         * modules/unictype/category-Zl-tests: Likewise.
2482         * modules/unictype/category-Zp-tests: Likewise.
2483         * modules/unictype/category-Zs-tests: Likewise.
2484         * modules/unictype/category-and-not-tests: Likewise.
2485         * modules/unictype/category-and-tests: Likewise.
2486         * modules/unictype/category-byname-tests: Likewise.
2487         * modules/unictype/category-name-tests: Likewise.
2488         * modules/unictype/category-none-tests: Likewise.
2489         * modules/unictype/category-of-tests: Likewise.
2490         * modules/unictype/category-or-tests: Likewise.
2491         * modules/unictype/category-test-withtable-tests: Likewise.
2492         * modules/unictype/combining-class-tests: Likewise.
2493         * modules/unictype/ctype-alnum-tests: Likewise.
2494         * modules/unictype/ctype-alpha-tests: Likewise.
2495         * modules/unictype/ctype-blank-tests: Likewise.
2496         * modules/unictype/ctype-cntrl-tests: Likewise.
2497         * modules/unictype/ctype-digit-tests: Likewise.
2498         * modules/unictype/ctype-graph-tests: Likewise.
2499         * modules/unictype/ctype-lower-tests: Likewise.
2500         * modules/unictype/ctype-print-tests: Likewise.
2501         * modules/unictype/ctype-punct-tests: Likewise.
2502         * modules/unictype/ctype-space-tests: Likewise.
2503         * modules/unictype/ctype-upper-tests: Likewise.
2504         * modules/unictype/ctype-xdigit-tests: Likewise.
2505         * modules/unictype/decimal-digit-tests: Likewise.
2506         * modules/unictype/digit-tests: Likewise.
2507         * modules/unictype/mirror-tests: Likewise.
2508         * modules/unictype/numeric-tests: Likewise.
2509         * modules/unictype/property-alphabetic-tests: Likewise.
2510         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
2511         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
2512         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
2513         * modules/unictype/property-bidi-block-separator-tests: Likewise.
2514         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
2515         * modules/unictype/property-bidi-common-separator-tests: Likewise.
2516         * modules/unictype/property-bidi-control-tests: Likewise.
2517         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
2518         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
2519         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
2520         * modules/unictype/property-bidi-european-digit-tests: Likewise.
2521         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
2522         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
2523         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
2524         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
2525         * modules/unictype/property-bidi-pdf-tests: Likewise.
2526         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
2527         * modules/unictype/property-bidi-whitespace-tests: Likewise.
2528         * modules/unictype/property-byname-tests: Likewise.
2529         * modules/unictype/property-combining-tests: Likewise.
2530         * modules/unictype/property-composite-tests: Likewise.
2531         * modules/unictype/property-currency-symbol-tests: Likewise.
2532         * modules/unictype/property-dash-tests: Likewise.
2533         * modules/unictype/property-decimal-digit-tests: Likewise.
2534         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
2535         * modules/unictype/property-deprecated-tests: Likewise.
2536         * modules/unictype/property-diacritic-tests: Likewise.
2537         * modules/unictype/property-extender-tests: Likewise.
2538         * modules/unictype/property-format-control-tests: Likewise.
2539         * modules/unictype/property-grapheme-base-tests: Likewise.
2540         * modules/unictype/property-grapheme-extend-tests: Likewise.
2541         * modules/unictype/property-grapheme-link-tests: Likewise.
2542         * modules/unictype/property-hex-digit-tests: Likewise.
2543         * modules/unictype/property-hyphen-tests: Likewise.
2544         * modules/unictype/property-id-continue-tests: Likewise.
2545         * modules/unictype/property-id-start-tests: Likewise.
2546         * modules/unictype/property-ideographic-tests: Likewise.
2547         * modules/unictype/property-ids-binary-operator-tests: Likewise.
2548         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
2549         * modules/unictype/property-ignorable-control-tests: Likewise.
2550         * modules/unictype/property-iso-control-tests: Likewise.
2551         * modules/unictype/property-join-control-tests: Likewise.
2552         * modules/unictype/property-left-of-pair-tests: Likewise.
2553         * modules/unictype/property-line-separator-tests: Likewise.
2554         * modules/unictype/property-logical-order-exception-tests: Likewise.
2555         * modules/unictype/property-lowercase-tests: Likewise.
2556         * modules/unictype/property-math-tests: Likewise.
2557         * modules/unictype/property-non-break-tests: Likewise.
2558         * modules/unictype/property-not-a-character-tests: Likewise.
2559         * modules/unictype/property-numeric-tests: Likewise.
2560         * modules/unictype/property-other-alphabetic-tests: Likewise.
2561         * modules/unictype/property-other-default-ignorable-code-point-tests:
2562         Likewise.
2563         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
2564         * modules/unictype/property-other-id-continue-tests: Likewise.
2565         * modules/unictype/property-other-id-start-tests: Likewise.
2566         * modules/unictype/property-other-lowercase-tests: Likewise.
2567         * modules/unictype/property-other-math-tests: Likewise.
2568         * modules/unictype/property-other-uppercase-tests: Likewise.
2569         * modules/unictype/property-paired-punctuation-tests: Likewise.
2570         * modules/unictype/property-paragraph-separator-tests: Likewise.
2571         * modules/unictype/property-pattern-syntax-tests: Likewise.
2572         * modules/unictype/property-pattern-white-space-tests: Likewise.
2573         * modules/unictype/property-private-use-tests: Likewise.
2574         * modules/unictype/property-punctuation-tests: Likewise.
2575         * modules/unictype/property-quotation-mark-tests: Likewise.
2576         * modules/unictype/property-radical-tests: Likewise.
2577         * modules/unictype/property-sentence-terminal-tests: Likewise.
2578         * modules/unictype/property-soft-dotted-tests: Likewise.
2579         * modules/unictype/property-space-tests: Likewise.
2580         * modules/unictype/property-terminal-punctuation-tests: Likewise.
2581         * modules/unictype/property-test-tests: Likewise.
2582         * modules/unictype/property-titlecase-tests: Likewise.
2583         * modules/unictype/property-unassigned-code-value-tests: Likewise.
2584         * modules/unictype/property-unified-ideograph-tests: Likewise.
2585         * modules/unictype/property-uppercase-tests: Likewise.
2586         * modules/unictype/property-variation-selector-tests: Likewise.
2587         * modules/unictype/property-white-space-tests: Likewise.
2588         * modules/unictype/property-xid-continue-tests: Likewise.
2589         * modules/unictype/property-xid-start-tests: Likewise.
2590         * modules/unictype/property-zero-width-tests: Likewise.
2591         * modules/unictype/scripts-tests: Likewise.
2592         * modules/unictype/syntax-c-ident-tests: Likewise.
2593         * modules/unictype/syntax-c-whitespace-tests: Likewise.
2594         * modules/unictype/syntax-java-ident-tests: Likewise.
2595         * modules/unictype/syntax-java-whitespace-tests: Likewise.
2596         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
2597         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
2598         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
2599         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
2600         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
2601         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
2602         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
2603         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
2604         * modules/uniname/uniname-tests: Likewise.
2605         * modules/uninorm/canonical-decomposition-tests: Likewise.
2606         * modules/uninorm/compat-decomposition-tests: Likewise.
2607         * modules/uninorm/composition-tests: Likewise.
2608         * modules/uninorm/decomposing-form-tests: Likewise.
2609         * modules/uninorm/decomposition-tests: Likewise.
2610         * modules/uninorm/filter-tests: Likewise.
2611         * modules/uninorm/nfc-tests: Likewise.
2612         * modules/uninorm/nfd-tests: Likewise.
2613         * modules/uninorm/nfkc-tests: Likewise.
2614         * modules/uninorm/nfkd-tests: Likewise.
2615         * modules/uninorm/u8-normcmp-tests: Likewise.
2616         * modules/uninorm/u8-normcoll-tests: Likewise.
2617         * modules/uninorm/u16-normcmp-tests: Likewise.
2618         * modules/uninorm/u16-normcoll-tests: Likewise.
2619         * modules/uninorm/u32-normcmp-tests: Likewise.
2620         * modules/uninorm/u32-normcoll-tests: Likewise.
2621         * modules/unistdio/u8-asnprintf-tests: Likewise.
2622         * modules/unistdio/u8-vasnprintf-tests: Likewise.
2623         * modules/unistdio/u8-vasprintf-tests: Likewise.
2624         * modules/unistdio/u8-vsnprintf-tests: Likewise.
2625         * modules/unistdio/u8-vsprintf-tests: Likewise.
2626         * modules/unistdio/u16-asnprintf-tests: Likewise.
2627         * modules/unistdio/u16-vasnprintf-tests: Likewise.
2628         * modules/unistdio/u16-vasprintf-tests: Likewise.
2629         * modules/unistdio/u16-vsnprintf-tests: Likewise.
2630         * modules/unistdio/u16-vsprintf-tests: Likewise.
2631         * modules/unistdio/u32-asnprintf-tests: Likewise.
2632         * modules/unistdio/u32-vasnprintf-tests: Likewise.
2633         * modules/unistdio/u32-vasprintf-tests: Likewise.
2634         * modules/unistdio/u32-vsnprintf-tests: Likewise.
2635         * modules/unistdio/u32-vsprintf-tests: Likewise.
2636         * modules/unistdio/ulc-asnprintf-tests: Likewise.
2637         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
2638         * modules/unistdio/ulc-vasprintf-tests: Likewise.
2639         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
2640         * modules/unistdio/ulc-vsprintf-tests: Likewise.
2641         * modules/unistr/u8-check-tests: Likewise.
2642         * modules/unistr/u8-chr-tests: Likewise.
2643         * modules/unistr/u8-cmp-tests: Likewise.
2644         * modules/unistr/u8-cmp2-tests: Likewise.
2645         * modules/unistr/u8-cpy-alloc-tests: Likewise.
2646         * modules/unistr/u8-cpy-tests: Likewise.
2647         * modules/unistr/u8-mblen-tests: Likewise.
2648         * modules/unistr/u8-mbsnlen-tests: Likewise.
2649         * modules/unistr/u8-mbtouc-tests: Likewise.
2650         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
2651         * modules/unistr/u8-mbtoucr-tests: Likewise.
2652         * modules/unistr/u8-move-tests: Likewise.
2653         * modules/unistr/u8-next-tests: Likewise.
2654         * modules/unistr/u8-prev-tests: Likewise.
2655         * modules/unistr/u8-set-tests: Likewise.
2656         * modules/unistr/u8-stpcpy-tests: Likewise.
2657         * modules/unistr/u8-stpncpy-tests: Likewise.
2658         * modules/unistr/u8-strcat-tests: Likewise.
2659         * modules/unistr/u8-strcmp-tests: Likewise.
2660         * modules/unistr/u8-strcoll-tests: Likewise.
2661         * modules/unistr/u8-strcpy-tests: Likewise.
2662         * modules/unistr/u8-strdup-tests: Likewise.
2663         * modules/unistr/u8-strlen-tests: Likewise.
2664         * modules/unistr/u8-strmblen-tests: Likewise.
2665         * modules/unistr/u8-strmbtouc-tests: Likewise.
2666         * modules/unistr/u8-strncat-tests: Likewise.
2667         * modules/unistr/u8-strncmp-tests: Likewise.
2668         * modules/unistr/u8-strncpy-tests: Likewise.
2669         * modules/unistr/u8-strnlen-tests: Likewise.
2670         * modules/unistr/u8-to-u16-tests: Likewise.
2671         * modules/unistr/u8-to-u32-tests: Likewise.
2672         * modules/unistr/u8-uctomb-tests: Likewise.
2673         * modules/unistr/u16-check-tests: Likewise.
2674         * modules/unistr/u16-chr-tests: Likewise.
2675         * modules/unistr/u16-cmp-tests: Likewise.
2676         * modules/unistr/u16-cmp2-tests: Likewise.
2677         * modules/unistr/u16-cpy-alloc-tests: Likewise.
2678         * modules/unistr/u16-cpy-tests: Likewise.
2679         * modules/unistr/u16-mblen-tests: Likewise.
2680         * modules/unistr/u16-mbsnlen-tests: Likewise.
2681         * modules/unistr/u16-mbtouc-tests: Likewise.
2682         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
2683         * modules/unistr/u16-mbtoucr-tests: Likewise.
2684         * modules/unistr/u16-move-tests: Likewise.
2685         * modules/unistr/u16-next-tests: Likewise.
2686         * modules/unistr/u16-prev-tests: Likewise.
2687         * modules/unistr/u16-set-tests: Likewise.
2688         * modules/unistr/u16-stpcpy-tests: Likewise.
2689         * modules/unistr/u16-stpncpy-tests: Likewise.
2690         * modules/unistr/u16-strcat-tests: Likewise.
2691         * modules/unistr/u16-strcmp-tests: Likewise.
2692         * modules/unistr/u16-strcoll-tests: Likewise.
2693         * modules/unistr/u16-strcpy-tests: Likewise.
2694         * modules/unistr/u16-strdup-tests: Likewise.
2695         * modules/unistr/u16-strlen-tests: Likewise.
2696         * modules/unistr/u16-strmblen-tests: Likewise.
2697         * modules/unistr/u16-strmbtouc-tests: Likewise.
2698         * modules/unistr/u16-strncat-tests: Likewise.
2699         * modules/unistr/u16-strncmp-tests: Likewise.
2700         * modules/unistr/u16-strncpy-tests: Likewise.
2701         * modules/unistr/u16-strnlen-tests: Likewise.
2702         * modules/unistr/u16-to-u32-tests: Likewise.
2703         * modules/unistr/u16-to-u8-tests: Likewise.
2704         * modules/unistr/u16-uctomb-tests: Likewise.
2705         * modules/unistr/u32-check-tests: Likewise.
2706         * modules/unistr/u32-chr-tests: Likewise.
2707         * modules/unistr/u32-cmp-tests: Likewise.
2708         * modules/unistr/u32-cmp2-tests: Likewise.
2709         * modules/unistr/u32-cpy-alloc-tests: Likewise.
2710         * modules/unistr/u32-cpy-tests: Likewise.
2711         * modules/unistr/u32-mblen-tests: Likewise.
2712         * modules/unistr/u32-mbsnlen-tests: Likewise.
2713         * modules/unistr/u32-mbtouc-tests: Likewise.
2714         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
2715         * modules/unistr/u32-mbtoucr-tests: Likewise.
2716         * modules/unistr/u32-move-tests: Likewise.
2717         * modules/unistr/u32-next-tests: Likewise.
2718         * modules/unistr/u32-prev-tests: Likewise.
2719         * modules/unistr/u32-set-tests: Likewise.
2720         * modules/unistr/u32-stpcpy-tests: Likewise.
2721         * modules/unistr/u32-stpncpy-tests: Likewise.
2722         * modules/unistr/u32-strcat-tests: Likewise.
2723         * modules/unistr/u32-strcmp-tests: Likewise.
2724         * modules/unistr/u32-strcoll-tests: Likewise.
2725         * modules/unistr/u32-strcpy-tests: Likewise.
2726         * modules/unistr/u32-strdup-tests: Likewise.
2727         * modules/unistr/u32-strlen-tests: Likewise.
2728         * modules/unistr/u32-strmblen-tests: Likewise.
2729         * modules/unistr/u32-strmbtouc-tests: Likewise.
2730         * modules/unistr/u32-strncat-tests: Likewise.
2731         * modules/unistr/u32-strncmp-tests: Likewise.
2732         * modules/unistr/u32-strncpy-tests: Likewise.
2733         * modules/unistr/u32-strnlen-tests: Likewise.
2734         * modules/unistr/u32-to-u16-tests: Likewise.
2735         * modules/unistr/u32-to-u8-tests: Likewise.
2736         * modules/unistr/u32-uctomb-tests: Likewise.
2737         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
2738         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
2739         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
2740         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
2741         * modules/uniwidth/u8-strwidth-tests: Likewise.
2742         * modules/uniwidth/u8-width-tests: Likewise.
2743         * modules/uniwidth/u16-strwidth-tests: Likewise.
2744         * modules/uniwidth/u16-width-tests: Likewise.
2745         * modules/uniwidth/u32-strwidth-tests: Likewise.
2746         * modules/uniwidth/u32-width-tests: Likewise.
2747         * modules/uniwidth/width-tests: Likewise.
2748
2749 2010-05-18  Richard Jones  <rjones@redhat.com>
2750
2751         doc: users.txt: list hivex
2752         * users.txt: Add hivex.
2753
2754 2010-05-18  Richard Jones  <rjones@redhat.com>
2755
2756         doc: users.txt: list febootstrap
2757         * users.txt: Add febootstrap.
2758
2759 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
2760
2761         bootstrap: fix an error when gnulib is not used as a git submodule
2762         * build-aux/bootstrap (gnulib_path): If its length is zero then
2763         assign "gnulib" to it.
2764         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
2765
2766 2010-05-16  Bruno Haible  <bruno@clisp.org>
2767
2768         Avoid autoconf warnings about AM_ICONV.
2769         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
2770         2.64.
2771
2772 2010-05-16  Bruno Haible  <bruno@clisp.org>
2773
2774         absolute-header: Make the macro usable in more situations.
2775         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
2776         from gl_ABSOLUTE_HEADER.
2777         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
2778
2779 2010-05-16  James Youngman  <jay@gnu.org>
2780
2781         doc: update users.txt
2782         * users.txt: Add CSSC.
2783
2784 2010-05-16  Jim Meyering  <meyering@redhat.com>
2785
2786         init.sh: fix an error in the previous change; add more comments
2787         * tests/init.sh: Compare exit code in loop against 9, not 2.
2788         Patch by Bruno Haible.
2789         Make the two tests more similar by adding an empty "then" clause.
2790         Add comments.
2791
2792         init.sh: avoid unnecessary shell re-exec
2793         * tests/init.sh: Improve the re-exec-required check to first test the
2794         current shell.  If it passes the test, do not search for a shell that
2795         does pass, and do not re-exec.  This test is particularly contorted to
2796         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
2797         of $(...) evokes a syntax error and causes immediate shell exit with
2798         status 2.  Bruno Haible reported that the re-exec made it impossible
2799         to single-step through any init.sh-using script.
2800
2801 2010-05-16  Bruno Haible  <bruno@clisp.org>
2802
2803         Fix collision between gnulib's and libintl's printf replacements.
2804         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
2805         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
2806         (printf): When using GNU C, map the __printf__ function to rpl_printf
2807         via __asm__. When not using GNU C, define rpl_printf instead of
2808         __printf__.
2809         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
2810         commit.
2811         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
2812         commit.
2813         * m4/asm-underscore.m4: New file.
2814         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
2815         * modules/stdio (Files): Add m4/asm-underscore.m4.
2816         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
2817         Reported by Ben Pfaff.
2818
2819 2010-05-16  Bruno Haible  <bruno@clisp.org>
2820
2821         verify: Avoid skipping the test on openSUSE 11.0.
2822         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
2823
2824 2010-05-13  Bruno Haible  <bruno@clisp.org>
2825
2826         Avoid useless warnings from G++.
2827         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
2828         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
2829         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2830
2831 2010-05-11  Jim Meyering  <meyering@redhat.com>
2832
2833         maint.mk: tweak preceding change
2834         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
2835         regexps tighter by anchoring at EOL, and make the new group "shy"
2836         for slightly decreased overhead.
2837
2838 2010-05-11  Eric Blake  <eblake@redhat.com>
2839
2840         maint.mk: gnulib doesn't guarantee NSIG
2841         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
2842
2843 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2844
2845         test-pwrite.c: Remove unused variable declaration.
2846         * tests/test-pwrite.c (main): Remove read_buf declaration.
2847
2848         Remove useless test-pwrite.sh file.
2849         * tests/test-pwrite.sh: Delete file.
2850         * modules/pwrite-tests: Remove references.
2851         Reported by Bruno Haible.
2852
2853 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2854
2855         init.sh: fix a typo
2856         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
2857
2858 2010-05-10  Jim Meyering  <meyering@redhat.com>
2859
2860         maint.mk: avoid using a temporary file in the always-defined-macros check
2861         * top/maint.mk (.re-defmac): Remove rule.
2862         (gl_trap_): Remove definition.
2863         (sc_prohibit_always-defined_macros): Rewrite not to create and
2864         depend on a temporary file.  Instead, depend on GNU grep's ability
2865         to read a list of regular expressions from stdin when given "-f -".
2866
2867 2010-05-09  Bruno Haible  <bruno@clisp.org>
2868
2869         Update to GNU gettext 0.18, part 1.
2870         * m4/gettext.m4: Update to GNU gettext 0.18.
2871         * m4/intl.m4: Likewise.
2872         * m4/po.m4: Likewise.
2873         * modules/gettext (Files): Add m4/fcntl-o.m4.
2874         (configure.ac): Require gettext infrastructure from version 0.18.
2875
2876 2010-05-09  Jim Meyering  <meyering@redhat.com>
2877
2878         init.sh: enable MALLOC_PERTURB_
2879         * tests/init.sh: Enable glibc's malloc-perturbing option.
2880
2881         maint.mk: improve sc_cross_check_PATH_usage_in_tests
2882         With my recent change in init.sh from the two-line form:
2883             -#   : ${srcdir=.}
2884             -#   . "$srcdir/init.sh"; path_prepend_ .
2885             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
2886         I noticed that using the one-line form would cause this test
2887         to fail with a false-positive, or to stop working altogether,
2888         depending on whether help-version changed or all the tests did.
2889         * top/maint.mk (_hv_regex): Remove this definition.
2890         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
2891         (_hv_regex_strong): Use a stronger regex to check for conformance.
2892         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
2893         Give a separate diagnostic for lack of conforming use.
2894
2895         maint.mk: prohibit definition of symbols defined by gnulib
2896         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
2897         definition of symbols defined by gnulib.
2898
2899 2010-05-09  Bruno Haible  <bruno@clisp.org>
2900
2901         acl: Avoid test failure on Cygwin-hosted mingw.
2902         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
2903
2904 2010-05-09  Bruno Haible  <bruno@clisp.org>
2905
2906         error: Use system's fcntl function.
2907         * lib/error.c (fcntl): Undefine.
2908
2909 2010-05-09  Jim Meyering  <meyering@redhat.com>
2910
2911         verify: adjust formatting to be more consistent
2912         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
2913         argument-list '('s, and after one comma.
2914
2915 2010-05-09  Bruno Haible  <bruno@clisp.org>
2916
2917         error: More reliable output on mingw.
2918         * lib/error.c: Include <windows.h>.
2919         (is_open): New function.
2920         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2921         defined.
2922
2923 2010-05-09  Bruno Haible  <bruno@clisp.org>
2924
2925         vasnprintf: Fix syntax errors in libintl build on mingw.
2926         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2927         pad_ourselves and prec_ourselves after use.
2928
2929 2010-05-08  Bruno Haible  <bruno@clisp.org>
2930
2931         * lib/config.charset: Update comments for Cygwin 1.7.
2932         * lib/localcharset.c: Likewise.
2933
2934 2010-05-07  Jim Meyering  <meyering@redhat.com>
2935
2936         init.sh: improve comments
2937         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2938         . "${srcdir=.}/init.sh"; path_prepend_ .
2939         Add a note about path_prepend_ and the alternative of using
2940         TESTS_ENVIRONMENT.
2941
2942 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2943
2944         exclude: Unescape hashed patterns in wildcard mode.
2945         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2946         to the hash list.
2947         * tests/test-exclude8.sh: New test case.
2948         * modules/exclude-tests: Add new test.
2949
2950 2010-05-05  Eric Blake  <eblake@redhat.com>
2951
2952         verify: automate tests
2953         * modules/verify-tests: New module.
2954         * tests/test-verify.sh: New file.
2955         * tests/test-verify.c: Guard each negative test with a unique id.
2956         Also avoid warning about unused left hand of comma expressions.
2957
2958 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2959
2960         Further improvements to verify.h, suggested by Eric Blake.
2961         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
2962         the GL_* versions, to avoid collision with OpenGL.
2963         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
2964         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
2965         than testing merely whether it's defined.
2966
2967         Modify verify.h to pacify gcc -Wredundant_decls.
2968         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
2969         These use the prefix "GL_" since they're likely to be useful elsewhere.
2970         We may need to break them out into a different .h file.
2971         (__COUNTER__): Define to 0 if the compiler doesn't support it.
2972         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
2973         of verify_function__.
2974
2975 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2976
2977         Tests for module pwrite.
2978         * modules/pwrite-tests: New file.
2979         * tests/test-pwrite.sh: New file.
2980         * tests/test-pwrite.c: New file.
2981
2982         New module pwrite.
2983         * lib/unistd.in.h (pwrite): New declaration.
2984         * lib/pwrite.c: New file, from glibc with modifications.
2985         * m4/pwrite.m4: New file.
2986         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
2987         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
2988         REPLACE_PWRITE.
2989         * modules/pwrite: New file.
2990         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
2991         REPLACE_PWRITE.
2992         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
2993         * doc/posix-functions/pwrite.texi: Mention the new module.
2994
2995 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2996
2997         pread: Update documentation.
2998         * doc/posix-functions/pread.texi: Mention the 'pread' module.
2999
3000 2010-05-04  Eric Blake  <eblake@redhat.com>
3001
3002         docs: update cygwin progress
3003         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3004         this bug.
3005         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3006         Added in cygwin 1.7.2.
3007         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3008         Likewise.
3009         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3010         Likewise.
3011         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3012         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3013         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3014         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3015         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3016         Mention nproc module.
3017         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3018         bug in cygwin 1.7.5 addition.
3019         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3020         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3021         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3022         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3023         1.7.5.
3024         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3025         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3026         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3027         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3028         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3029         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3030         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3031         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3032         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3033         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3034         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3035         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3036         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3037         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3038         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3039         Likewise.
3040         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3041         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3042         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3043         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3044         Likewise.
3045         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3046         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3047         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3048         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3049         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3050         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3051         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3052         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3053         Likewise.
3054         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3055         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3056         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3057         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3058         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3059         Likewise.
3060         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3061         Likewise.
3062         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3063         Likewise.
3064         * doc/glibc-functions/xdrrec_endofrecord.texi
3065         (xdrrec_endofrecord): Likewise.
3066         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3067         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3068         Likewise.
3069         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3070         Likewise.
3071
3072 2010-05-04  Jim Meyering  <meyering@redhat.com>
3073
3074         gendocs.sh: make its "-s FILE" option more useful
3075         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3076         $PACKAGE to reflect the probably-different basename of "FILE".
3077
3078 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3079
3080         bootstrap: don't ignore download_po_files failure
3081         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3082         failure.
3083
3084 2010-05-03  Jim Meyering  <meyering@redhat.com>
3085
3086         maint.mk: allow to pass options to gendocs.sh
3087         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3088         (gendocs_options_): New overridable variable.
3089
3090         gnu-web-doc-update: don't ignore configure or build failure
3091         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3092
3093         announce-gen: backslash-escape '@'s in --help output
3094         * build-aux/announce-gen: Fix syntax errors.
3095
3096         maint.mk, announce-gen: allow project-specific announcement mail headers
3097         * top/maint.mk (translation_project_): Define default.
3098         (announcement_Cc_, announcement_mail_headers_): Likewise.
3099         (announcement): Invoke announce-gen with new --mail-headers option.
3100         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3101
3102         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3103         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3104         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3105         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3106         line in the "err2" output file when running "make check" in verbose
3107         mode (i.e., with set -x enabled).
3108
3109 2010-05-03  Bruno Haible  <bruno@clisp.org>
3110
3111         wctob: Fix for weird platforms.
3112         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3113         argument value.
3114
3115 2010-05-03  Jim Meyering  <meyering@redhat.com>
3116
3117         maint.mk: prohibit unwarranted use of <strings.h>
3118         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3119         strings.h in a file that does not also use strcasecmp, strncasecmp,
3120         ffs or ffsll.
3121
3122         maint.mk: remove obsolete comments
3123         * top/maint.mk: Remove stale, commented-out rules.
3124
3125 2010-05-02  Bruno Haible  <bruno@clisp.org>
3126
3127         wcwidth: Declare also when it's aliased.
3128         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3129         macro.
3130
3131 2010-05-02  Bruno Haible  <bruno@clisp.org>
3132
3133         Fix regression from 2010-04-25.
3134         * gnulib-tool (func_modules_transitive_closure): Check the status of
3135         all modules, not only of the tests that are of the form foo-tests where
3136         foo is a module.
3137
3138 2010-05-02  Bruno Haible  <bruno@clisp.org>
3139
3140         wctob: Work around nasty Cygwin 1.7.2 bug.
3141         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3142         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3143
3144 2010-05-01  Bruno Haible  <bruno@clisp.org>
3145
3146         fpurge: Sharper test.
3147         * tests/test-fpurge.c (main): Add one more ftell check.
3148         * modules/fpurge-tests (Depends-on): Add ftell.
3149         Suggested by Eric Blake.
3150
3151 2010-05-01  Bruno Haible  <bruno@clisp.org>
3152
3153         ftello: Another test.
3154         * tests/test-ftello3.c: New file.
3155         * modules/ftello-tests (Files): Add it.
3156         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3157         MOSTLYCLEANFILES.
3158
3159         ftell: Another test.
3160         * tests/test-ftell3.c: New file.
3161         * modules/ftell-tests (Files): Add it.
3162         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3163         MOSTLYCLEANFILES.
3164
3165 2010-05-01  Bruno Haible  <bruno@clisp.org>
3166
3167         ftell, ftello: Work around Solaris bug.
3168         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3169         * lib/ftello.c: Include stdio-impl.h.
3170         (ftello): On Solaris, when _IOWRT is set, compute the result without
3171         looking at _IOREAD.
3172         * modules/ftello (Files): Add lib/stdio-impl.h.
3173         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3174         * doc/posix-functions/ftello.texi: Likewise.
3175         Reported by Eric Blake.
3176
3177 2010-05-01  Bruno Haible  <bruno@clisp.org>
3178
3179         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3180         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3181         the _IOWRT flag is also set.
3182
3183 2010-05-01  Bruno Haible  <bruno@clisp.org>
3184
3185         Fix doc about a HP-UX stdio bug.
3186         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3187         * doc/posix-functions/ftello.texi: Likewise.
3188
3189 2010-05-01  Bruno Haible  <bruno@clisp.org>
3190
3191         lseek test: Fix failure on Solaris.
3192         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3193         output.
3194
3195 2010-04-30  Jim Meyering  <meyering@redhat.com>
3196
3197         bootstrap: don't ignore failure to generate po*/Makevars
3198         * build-aux/bootstrap (with_gettext): Don't ignore failure
3199         to create po/Makevars or runtime-po/Makevars.
3200
3201 2010-04-29  Eric Blake  <eblake@redhat.com>
3202
3203         headers: relax license to LGPLv2+
3204         * modules/fcntl-h (License): Relax license.
3205         * modules/getopt-posix (License): Likewise.
3206         * modules/locale (License): Likewise.
3207         * modules/math (License): Likewise.
3208         * modules/pty (License): Likewise.
3209         * modules/sched (License): Likewise.
3210         * modules/search (License): Likewise.
3211         * modules/spawn (License): Likewise.
3212         * modules/stdarg (License): Likewise.
3213         * modules/sysexits (License): Likewise.
3214
3215 2010-04-29  Jim Meyering  <meyering@redhat.com>
3216
3217         inttypes: relax license to LGPLv2+
3218         * modules/inttypes (License): Relax license.
3219
3220 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3221
3222         * top/maint.mk (indent): Run twice to produce idempotent results.
3223
3224 2010-04-28  Bruno Haible  <bruno@clisp.org>
3225
3226         getdate: Generate getdate.c in the source directory.
3227         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3228         MOSTLYCLEANFILES.
3229         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3230
3231 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3232
3233         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3234         is not declared as a const *; avoid warnings in that case.
3235
3236 2010-04-28  Eric Blake  <eblake@redhat.com>
3237
3238         canonicalize-lgpl: avoid compiler warning
3239         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3240         declaration' / 'extraneous semicolon' warning with some compilers.
3241         Reported by Andreas Gruenbacher.
3242
3243 2010-04-28  Jim Meyering  <meyering@redhat.com>
3244
3245         init.sh: ensure a more reliable exit status when exiting via trap
3246         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3247         Inspired by patches from Dmitry V. Levin.
3248         Also trap on signal 3 (SIGQUIT).
3249
3250 2010-04-27  Bruno Haible  <bruno@clisp.org>
3251
3252         Update doc about utimes().
3253         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3254         'utimens' module.
3255         Reported by Andreas Gruenbacher <agruen@suse.de>.
3256
3257 2010-04-27  Eric Blake  <eblake@redhat.com>
3258
3259         full-read, full-write: relax license
3260         * modules/full-read (License): Drop to LGPLv2+.
3261         * modules/full-write (License): Likewise.
3262         * modules/safe-read (License): Likewise.
3263         * modules/safe-write (License): Likewise.
3264
3265         pthread: mention library for linking
3266         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3267
3268 2010-04-27  Jim Meyering  <meyering@redhat.com>
3269
3270         maint.mk: fix a bug introduced in last change
3271         * top/maint.mk (gl_assured_headers_): Now that all names are on
3272         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3273         is not anchored to end of word, it should be adequate.
3274
3275         maint.mk: avoid side-effect in latest syntax-check
3276         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3277         to run commands via $(shell...), and hence to incur cost only when
3278         the new rule is actually run.
3279
3280         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3281         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3282         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3283         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3284         (gl_assured_headers_, az_, AZ_): Define.
3285         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3286
3287 2010-04-26  Jim Meyering  <jim@meyering.net>
3288             Bruno Haible  <bruno@clisp.org>
3289
3290         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3291         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3292         Prompted by an exchange with Gilles Espinasse.
3293
3294 2010-04-26  Jim Meyering  <meyering@redhat.com>
3295
3296         git-version-gen: aesthetic tweak
3297         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3298         so that the command remains on a single line.
3299
3300 2010-04-26  Eric Blake  <eblake@redhat.com>
3301
3302         git-version-gen: allow use on EBCDIC hosts
3303         * build-aux/git-version-gen (dirty): Use literal rather than tying
3304         ourselves to ascii.
3305         Reported by Steve Goetze.
3306
3307 2010-04-25  Bruno Haible  <bruno@clisp.org>
3308
3309         netdb: Add support for GNULIB_POSIXCHECK.
3310         * lib/netdb.in.h: Include warn-on-use.h.
3311         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3312         functions are used when GNULIB_POSIXCHECK is defined and the
3313         getaddrinfo module is not in use.
3314         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3315         freeaddrinfo, gai_strerror, getnameinfo are declared.
3316         * modules/netdb (Depends-on): Add warn-on-use.
3317         (Makefile.am): Include warn-on-use.h in netdb.h.
3318
3319 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3320
3321         build: avoid "make check" failure without .git/ directory
3322         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3323         there is no .git/ directory.
3324
3325 2010-04-25  Bruno Haible  <bruno@clisp.org>
3326
3327         ptsname: Fix misuse of ttyname_r.
3328         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3329         of errno.
3330
3331 2010-04-25  Bruno Haible  <bruno@clisp.org>
3332
3333         ttyname_r: Make it work on Solaris 10.
3334         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3335         if the system function has the POSIX declaration. Test whether the
3336         function fails if the buffer is less than 128 bytes large.
3337         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3338         system's ttyname_r function. Provide a reasonably large buffer.
3339         * modules/ttyname_r (Depends-on): Add extensions.
3340         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3341
3342 2010-04-25  Bruno Haible  <bruno@clisp.org>
3343
3344         Use the 'extensions' module for some more functions on Solaris.
3345         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3346         module.
3347         * doc/posix-functions/ctime_r.texi: Likewise.
3348         * doc/posix-functions/getgrgid_r.texi: Likewise.
3349         * doc/posix-functions/getgrnam_r.texi: Likewise.
3350         * doc/posix-functions/getpwnam_r.texi: Likewise.
3351         * doc/posix-functions/getpwuid_r.texi: Likewise.
3352         * doc/posix-functions/readdir_r.texi: Likewise.
3353         * doc/posix-functions/sigwait.texi: Likewise.
3354         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3355         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3356
3357 2010-04-25  Bruno Haible  <bruno@clisp.org>
3358
3359         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3360         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3361         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3362         * lib/ttyname_r.c: Include <limits.h>.
3363         (ttyname_r): Define using the system's ttyname_r function, if it exists
3364         and not on Solaris.
3365         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
3366         set.
3367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
3368         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
3369         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
3370         Reported by Simon Josefsson.
3371
3372 2010-04-25  Bruno Haible  <bruno@clisp.org>
3373
3374         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
3375         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
3376         * doc/posix-functions/ctime_r.texi: Likewise.
3377         * doc/posix-functions/getgrgid_r.texi: Likewise.
3378         * doc/posix-functions/getgrnam_r.texi: Likewise.
3379         * doc/posix-functions/getlogin_r.texi: Likewise.
3380         * doc/posix-functions/getpwnam_r.texi: Likewise.
3381         * doc/posix-functions/getpwuid_r.texi: Likewise.
3382         * doc/posix-functions/readdir_r.texi: Likewise.
3383         * doc/posix-functions/sigwait.texi: Likewise.
3384         * doc/posix-functions/ttyname_r.texi: Likewise.
3385         Reported by Simon Josefsson.
3386
3387 2010-04-25  Bruno Haible  <bruno@clisp.org>
3388
3389         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
3390         * gnulib-tool (func_usage): Document that --with-*-tests options apply
3391         also to --create-testdir.
3392         (func_acceptable): Don't consider the status of *-tests modules here.
3393         (func_modules_transitive_closure): Consider it here, before including a
3394         test module.
3395         (func_import, func_create_testdir): Set inc_all_direct_tests,
3396         inc_all_indirect_tests.
3397         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
3398         --create-testdir and --create-megatestdir.
3399
3400 2010-04-25  Bruno Haible  <bruno@clisp.org>
3401
3402         gnulib-tool: Add --without-*-tests options.
3403         * gnulib-tool (func_usage): Document the --without-*-tests options.
3404         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
3405         excl_unportable_tests): New variables.
3406         Fail if they are specified with --import or --update.
3407         (func_acceptable): Respect the excl_*_tests variables.
3408         (func_import): Set the excl_*_tests variables to empty.
3409
3410 2010-04-25  Simon Josefsson  <simon@josefsson.org>
3411             Bruno Haible  <bruno@clisp.org>
3412
3413         Work around a MacOS X 10.4 bug with openpty.
3414         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
3415         * tests/test-openpty.c (main): Close the master side explicitly.
3416
3417 2010-04-25  Bruno Haible  <bruno@clisp.org>
3418
3419         strnlen: Fix a C++ test error on MacOS X and Solaris.
3420         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
3421         the function is not declared.
3422         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
3423         Simon Josefsson.
3424
3425 2010-04-24  Bruno Haible  <bruno@clisp.org>
3426
3427         Avoid a gcc warning.
3428         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
3429         of correct type for %08lx directive.
3430         Reported by Eric Blake.
3431
3432 2010-04-24  Bruno Haible  <bruno@clisp.org>
3433
3434         vasnprintf: Correct errno value in case of out-of-memory.
3435         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
3436         or sprintf. Use the errno value from SNPRINTF or sprintf.
3437         Reported by Ian Beckwith <ianb@erislabs.net>.
3438
3439 2010-04-24  Bruno Haible  <bruno@clisp.org>
3440
3441         ansi-c++-opt: Find correct compiler when cross-compiling.
3442         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
3443         AC_CHECK_PROGS.
3444         Reported by Simon Josefsson.
3445
3446 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
3447
3448         vc-list-files: Add support for subversion
3449         * build-aux/vc-list-files: Use "svn list" to generate the list of
3450         files controlled by subversion.
3451
3452 2010-04-23  Jim Meyering  <meyering@redhat.com>
3453
3454         vc-list-files tests: convert to use init.sh
3455         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
3456         path_prepend_.
3457         Use Exit, not exit.
3458         Use skip_ rather than open coding it.
3459         Remove trap set-up and compare definitions.
3460         * tests/test-vc-list-files-git.sh: Likewise.
3461         * modules/vc-list-files-tests (Files): Add tests/init.sh.
3462
3463 2010-04-22  Simon Josefsson  <simon@josefsson.org>
3464
3465         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
3466         backup files.
3467
3468 2010-04-21  Simon Josefsson  <simon@josefsson.org>
3469
3470         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
3471
3472 2010-04-20  Eric Blake  <eblake@redhat.com>
3473
3474         tests: be robust to ignored SIGPIPE
3475         * tests/test-select-in.sh: Consume all output.
3476         * tests/test-lseek.sh: Check correct exit status, while avoiding
3477         EPIPE.
3478
3479 2010-04-20  Simon Josefsson  <simon@josefsson.org>
3480             Bruno Haible  <bruno@clisp.org>
3481
3482         visibility: Don't use -fvisibility if it leads to a warning.
3483         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
3484         yes, don't pretend that visibility works if it leads to a warning.
3485         Reported by Mike Gran <spk121@yahoo.com>.
3486
3487 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
3488
3489         * build-aux/bootstrap: Use "git -h" for testing for supported options
3490         instead of "git --help".  The short-form option only shows a summary,
3491         and doesn't layout the full man page.  Grep for the full option name
3492         in the summary, too.
3493
3494 2010-04-19  Bruno Haible  <bruno@clisp.org>
3495
3496         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
3497         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
3498         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
3499         mention of RELOCATABLE_STRIP.
3500         Reported by Sylvain Beucler <beuc@beuc.net>.
3501
3502 2010-04-19  Bruno Haible  <bruno@clisp.org>
3503
3504         * lib/diffseq.h: Fix typo in comment.
3505         Reported by Eric Blake.
3506
3507 2010-04-19  Bruno Haible  <bruno@clisp.org>
3508
3509         ioctl: Move autoconf macro to a .m4 file.
3510         * m4/ioctl.m4: New file, extracted from modules/ioctl.
3511         * modules/ioctl (Files): Add it.
3512         (configure.ac): Simply invoke gl_FUNC_IOCTL.
3513         Reported by Ian Beckwith <ianb@erislabs.net>.
3514
3515 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
3516             Bruno Haible  <bruno@clisp.org>
3517
3518         diffseq: Accommodate use-case with abstract arrays.
3519         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
3520         is not defined.
3521         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
3522         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
3523
3524 2010-04-18  Bruno Haible  <bruno@clisp.org>
3525
3526         * doc/posix-headers/stdbool.texi: More precise wording.
3527
3528 2010-04-17  Jim Meyering  <meyering@redhat.com>
3529
3530         maint.mk: use gnu-style indentation in an embedded perl script
3531         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
3532         Rename variable: s/two/last_two_bytes/
3533
3534 2010-04-16  Eric Blake  <eblake@redhat.com>
3535
3536         test-stdbool: skip test that fails with Solaris CC
3537         * tests/test-stdbool.c (f): Skip test that causes compilation
3538         error under buggy C++ compiler.
3539         * lib/stdbool.in.h: Document the limitation.
3540         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
3541
3542         setenv: allow compilation with C++
3543         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
3544         register keyword.
3545
3546         stdint: allow test to pass with C++
3547         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
3548
3549         getopt: allow compilation with C++
3550         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
3551         struct.
3552         * lib/getopt.c (_getopt_internal_r): Use correct type.
3553         Reported by Dagobert Michelson, via Joel E. Denny.
3554
3555 2010-04-16  Bruno Haible  <bruno@clisp.org>
3556
3557         Override netdb.h always.
3558         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
3559         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
3560         Reported by Ludovic Courtès <ludo@gnu.org>.
3561
3562 2010-04-15  Bruno Haible  <bruno@clisp.org>
3563
3564         openpty: Fix mistake from 2010-03-21.
3565         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
3566         Reported by Simon Josefsson.
3567
3568 2010-04-15  Eric Blake  <eblake@redhat.com>
3569
3570         test-forkpty: fix expected signature
3571         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
3572         Reported by Simon Josefsson.
3573
3574 2010-04-15  Jim Meyering  <meyering@redhat.com>
3575
3576         maint.mk: texinfo_suffix_re_: correct the default regexp
3577         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
3578
3579         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
3580         make it configurable via texinfo_suffix_re_.
3581
3582 2010-04-14  Eric Blake  <eblake@redhat.com>
3583
3584         strtok_r: relax license to LGPLv2+
3585         * modules/strtok_r (License): Relax license.
3586         Reported by Matthias Bolte.
3587
3588 2010-04-14  Simon Josefsson  <simon@josefsson.org>
3589
3590         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
3591         version 1.4.4 by default instead of requiring the libgcrypt
3592         version used during build.  This makes it possible to use the
3593         application with older but still binary compatible libgcrypt
3594         versions.
3595
3596 2010-04-13  Eric Blake  <eblake@redhat.com>
3597
3598         getopt-gnu: match recent glibc fixes and posix ruling
3599         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
3600         '+' handling, when requesting extensions.
3601         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
3602         'W;' handling.
3603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
3604         * doc/posix-functions/getopt.texi (getopt): Document this.
3605         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3606         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3607         Likewise.
3608
3609         getopt: merge bug fixes from glibc
3610         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
3611         diagnostics.  Honor '+:' correctly.  Reject ';'.
3612
3613         getopt-posix: detect MacOS bug
3614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
3615         optind when missing a required argument.
3616         * doc/posix-functions/getopt.texi (getopt): Document the bug.
3617         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3618         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3619         Likewise.
3620
3621         getopt-posix: avoid spurious failure on Solaris
3622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
3623         an indicator that setting optind=1 is sufficient for reset.
3624
3625         getopt-posix: avoid spurious failure on FreeBSD
3626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
3627         in POSIX mode, since the m4 test uses it.
3628
3629         gnulib-tool: silence warning on BSD sh
3630         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
3631
3632 2010-04-13  Jim Meyering  <meyering@redhat.com>
3633
3634         doc: users.txt: GNU patch now uses gnulib
3635         * users.txt: Add patch.
3636
3637 2010-04-12  Jim Meyering  <meyering@redhat.com>
3638
3639         maint.mk: generate more concise timing data for syntax-check rules
3640         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
3641         " done" from each line that reports a syntax-check test duration.
3642
3643 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
3644
3645         git-version-gen: use "git update-index..." rather than "git status"
3646         * build-aux/git-version-gen: Use git update-index --refresh, not
3647         "git status".  With some versions of git, "git status" would fail
3648         to update the index and result in an unwarranted "-dirty" suffix.
3649
3650 2010-04-11  Jim Meyering  <meyering@redhat.com>
3651
3652         openat: correct formatting (no semantic change)
3653         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
3654         Suggested by Bruno Haible.
3655
3656 2010-04-11  Bruno Haible  <bruno@clisp.org>
3657
3658         Stricter declaration checking in testdirs.
3659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3660         If for_tests is true, augment AM_CPPFLAGS to define
3661         GNULIB_STRICT_CHECKING.
3662         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
3663         GNULIB_STRICT_CHECKING is defined, verify that the function is
3664         declared.
3665
3666 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
3667             Bruno Haible  <bruno@clisp.org>
3668
3669         libunistring: Improve configure output.
3670         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
3671         Don't say "consider installing GNU libunistring" when checking again
3672         with libiconv.
3673
3674 2010-04-11  Bruno Haible  <bruno@clisp.org>
3675
3676         libunistring: Correct value of $LTLIBUNISTRING.
3677         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
3678         correct the value of $LTLIBUNISTRING.
3679
3680 2010-04-11  Bruno Haible  <bruno@clisp.org>
3681
3682         havelib: Add static libraries to LIBS in the right order.
3683         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
3684         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
3685
3686 2010-04-11  Bruno Haible  <bruno@clisp.org>
3687
3688         libunistring: Detect libunistring also when it depends on libiconv.
3689         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
3690         the second AC_LIB_HAVE_LINKFLAGS invocation.
3691
3692 2010-04-11  James Youngman  <jay@gnu.org>
3693
3694         close-stream: declare local scalars to be "const"
3695         * lib/close-stream.c (close_stream): Make boolean variables const
3696         to document the fact that we set but do not change them.
3697
3698 2010-04-11  Bruno Haible  <bruno@clisp.org>
3699
3700         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
3701
3702 2010-04-11  Jim Meyering  <meyering@redhat.com>
3703
3704         maint.mk: don't include dist-check.mk
3705         * top/maint.mk: Remove bogus include directive.
3706
3707         maint.mk: improve empty-line-at-EOF check
3708         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
3709         solution, rather than tail+Perl-based one.  The latter would read
3710         a few kilobytes from the end of each file, and did not handle empty
3711         files properly.
3712
3713         maint.mk: print the elapsed time for each syntax-check rule
3714         * top/maint.mk (sc_m_rules_): Save start time in a file.
3715         (sc_z_rules_): New rules: remove temp file and print elapsed time.
3716         (local-check): Interpose the .z rules
3717
3718 2010-04-11  Jim Meyering  <meyering@redhat.com>
3719
3720         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
3721         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
3722         empty file with one that ends in an empty line.
3723
3724 2010-04-10  Bruno Haible  <bruno@clisp.org>
3725
3726         mkdir: Make it work on mingw64.
3727         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
3728         * lib/mkdir.c: Update comment.
3729         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
3730
3731 2010-04-10  Bruno Haible  <bruno@clisp.org>
3732
3733         Don't override improved macro from newer autoconf.
3734         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
3735         autoconf >= 2.62.
3736         Reported by Joel E. Denny <jdenny@clemson.edu>.
3737
3738 2010-04-10  Jim Meyering  <meyering@redhat.com>
3739
3740         maint.mk: new syntax-check rule: prohibit empty lines at end of file
3741         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
3742
3743         maint.mk: correct a diagnostic
3744         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
3745         in diagnostic; now use $prohibit.
3746
3747 2010-04-10  Bruno Haible  <address@hidden>
3748
3749         fchownat: Fix a C++ test error on Solaris 8.
3750         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
3751         the function does not exist.
3752
3753 2010-04-10  Bruno Haible  <bruno@clisp.org>
3754
3755         vasnprintf: Add more tests.
3756         * tests/test-vasnprintf-posix.c: Include <errno.h>.
3757         (test_function): Test converting an invalid wide string.
3758
3759         vasnprintf: Correct handling of unconvertible wide string arguments.
3760         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
3761         VASNPRINTF.
3762         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
3763         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
3764         smaller than the expected maximum need for the directive. Set errno to
3765         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
3766         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
3767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
3768         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
3769         * modules/vasnprintf (Files): Add m4/printf.m4.
3770         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3771
3772 2010-04-10  Bruno Haible  <bruno@clisp.org>
3773
3774         vasnprintf: Fix crash in %ls directive.
3775         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
3776         string is passed as argument to %ls, with no precision and no width.
3777         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3778
3779 2010-04-10  Bruno Haible  <bruno@clisp.org>
3780
3781         vasnprintf: Fix multiple test failures on mingw.
3782         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
3783         _snprintf, or snwprintf, not _snwprintf.
3784
3785 2010-04-10  Bruno Haible  <bruno@clisp.org>
3786
3787         write: Fix a C++ test error on mingw.
3788         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
3789
3790 2010-04-10  Bruno Haible  <bruno@clisp.org>
3791
3792         vasnprintf test: Reduce code duplication.
3793         * tests/test-vasnprintf.c (test_function): New function, extracted from
3794         test_vasnprintf.
3795         (test_vasnprintf, test_asnprintf): Invoke it.
3796
3797 2010-04-10  Bruno Haible  <bruno@clisp.org>
3798
3799         strnlen: Fix warning in C++ mode on MacOS X.
3800         * lib/string.in.h (strnlen): Use the modern idiom.
3801         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
3802         defining strnlen as a macro already in <config.h>.
3803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3804         REPLACE_STRNLEN.
3805         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
3806         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3807
3808 2010-04-08  James Youngman  <jay@gnu.org>
3809
3810         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
3811         the example.
3812
3813 2010-04-09  Jim Meyering  <meyering@redhat.com>
3814
3815         maint.mk: print better diagnostic when there is no $(_hv_file)
3816         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
3817         announce that when $(_hv_file) (aka help-version) does not exist.
3818
3819         init.sh: run tr in the "C" locale to avoid multibyte interpretation
3820         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
3821         not try to interpret its random input bytes.  Jarno Rajahalme reported
3822         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
3823         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
3824         (mktempd_): Likewise, just in case.
3825
3826         ftruncate: add two years to projected module removal date: 2012
3827         * m4/ftruncate.m4: Adjust comments.
3828
3829         ftruncate: mark module as obsolete; even MinGW provides it, now
3830         * modules/ftruncate (Status): Obsolete.
3831         (Notice): Say that.
3832         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
3833         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
3834
3835 2010-04-08  Bruno Haible  <bruno@clisp.org>
3836
3837         Fix side effects from tests-related modules.
3838         * modules/dprintf-posix (Comment): New section.
3839         * modules/fprintf-posix (Comment): Likewise.
3840         * modules/obstack-printf-posix (Comment): Likewise.
3841         * modules/printf-posix (Comment): Likewise.
3842         * modules/snprintf-posix (Comment): Likewise.
3843         * modules/sprintf-posix (Comment): Likewise.
3844         * modules/vasnprintf-posix (Comment): Likewise.
3845         * modules/vasprintf-posix (Comment): Likewise.
3846         * modules/vdprintf-posix (Comment): Likewise.
3847         * modules/vfprintf-posix (Comment): Likewise.
3848         * modules/vprintf-posix (Comment): Likewise.
3849         * modules/vsnprintf-posix (Comment): Likewise.
3850         * modules/vsprintf-posix (Comment): Likewise.
3851         * modules/xprintf-posix (Comment): Likewise.
3852         * modules/xvasprintf-posix (Comment): Likewise.
3853         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
3854         * modules/floorf-tests (Depends-on): Likewise.
3855         * modules/round-tests (Depends-on): Likewise.
3856         * modules/roundf-tests (Depends-on): Likewise.
3857         * modules/trunc-tests (Depends-on): Likewise.
3858         * modules/truncf-tests (Depends-on): Likewise.
3859         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
3860         'fprintf-posix' module is not present.
3861         * tests/test-floorf2.c (check): Likewise.
3862         * tests/test-trunc2.c (check): Likewise.
3863         * tests/test-truncf2.c (check): Likewise.
3864         * tests/test-round2.c (equal): Likewise.
3865         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3866
3867 2010-04-07  Karl Berry  <karl@gnu.org>
3868
3869         * config/srclist.txt,
3870         * config/srclistvars.sh,
3871         * config/srclist-update: doc fixes.
3872
3873 2010-04-07  Jim Meyering  <meyering@redhat.com>
3874
3875         maint.mk: add a PATH crosschecking syntax-check rule
3876         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
3877         Useful if you use a test like the one in help-version (coreutils,
3878         diffutils, grep, gzip) that ensures $(VERSION) matches what is
3879         printed by prog --version.
3880
3881 2010-04-06  Bruno Haible  <bruno@clisp.org>
3882
3883         Fix link error on mingw.
3884         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
3885         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
3886
3887 2010-04-06  Bruno Haible  <bruno@clisp.org>
3888
3889         Assume rmdir exists.
3890         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
3891
3892 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
3893
3894         doc: update users.txt
3895         * users.txt: Add gcal.
3896
3897 2010-04-06  Jim Meyering  <meyering@redhat.com>
3898
3899         init.sh: simply unset TMPDIR rather than risking env -i
3900         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
3901         although it probably works fine on all Unix-based systems, some
3902         systems (Cygwin?) cannot tolerate a totally cleared environment.
3903         Suggestion from Eric Blake.
3904
3905 2010-04-06  Jim Meyering  <meyering@redhat.com>
3906
3907         init.sh: portability fix: use env's POSIX-specified -i option not -u
3908         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
3909         than unportable env -u.  Solaris 5.11's env lacks support for -u.
3910
3911 2010-04-05  Bruno Haible  <bruno@clisp.org>
3912
3913         btowc: Work around Cygwin 1.7.2 bug.
3914         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
3915         does not map NUL to 0.
3916         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
3917
3918 2010-04-05  Bruno Haible  <bruno@clisp.org>
3919
3920         Make the multithread modules work on Cygwin 1.7.2.
3921         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3922         imported symbols can be declared weak, so that it returns "no" on
3923         Cygwin 1.7.2.
3924
3925 2010-04-05  Bruno Haible  <bruno@clisp.org>
3926
3927         Use the module 'strncat'.
3928         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3929
3930         Tests for module 'strncat'.
3931         * modules/strncat-tests: New file.
3932         * tests/test-strncat.c: New file.
3933
3934         New module 'strncat'.
3935         * lib/string.in.h (strncat): New declaration.
3936         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3937         * m4/strncat.m4: New file, based on m4/memchr.m4.
3938         * modules/strncat: New file.
3939         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3940         is declared.
3941         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3942         REPLACE_STRNCAT.
3943         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3944         REPLACE_STRNCAT.
3945         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3946         module.
3947         * tests/test-string-c++.cc: Check signature of strncat.
3948
3949 2010-04-05  Jim Meyering  <meyering@redhat.com>
3950
3951         xstrtoumax-tests: convert to use init.sh
3952         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3953         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3954         Use Exit, not exit.
3955         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3956
3957         xstrtoimax-tests: convert to use init.sh
3958         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
3959         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3960         Use Exit, not exit.
3961         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3962
3963 2010-04-05  Bruno Haible  <bruno@clisp.org>
3964
3965         sys_socket: Avoid #define replacements in C++ mode.
3966         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
3967         warning to the function if possible, rather than #defining the symbol
3968         to a dysfunctional alias.
3969
3970 2010-04-05  Bruno Haible  <bruno@clisp.org>
3971
3972         fseeko: Fix C++ test error on mingw.
3973         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
3974         gl_FUNC_FSEEKO.
3975         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
3976         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
3977         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
3978         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
3979
3980 2010-04-05  Bruno Haible  <bruno@clisp.org>
3981
3982         duplocale: Improve test output.
3983         * tests/test-duplocale.c (main): Print reason for skipped test.
3984
3985 2010-04-05  Bruno Haible  <bruno@clisp.org>
3986
3987         Assume rmdir exists.
3988         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
3989         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
3990
3991 2010-04-05  Bruno Haible  <bruno@clisp.org>
3992
3993         Fix link error on Solaris 8 with cc.
3994         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
3995
3996 2010-04-05  Bruno Haible  <bruno@clisp.org>
3997
3998         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3999         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4000
4001 2010-04-05  Bruno Haible  <bruno@clisp.org>
4002
4003         vasprintf: Update documentation.
4004         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4005
4006 2010-04-05  Bruno Haible  <bruno@clisp.org>
4007
4008         ptsname: Improve test.
4009         * tests/test-ptsname.c (main): Also try the various master names of BSD
4010         systems.
4011
4012 2010-04-05  Bruno Haible  <bruno@clisp.org>
4013
4014         memchr: Avoid a possible C++ test error.
4015         * lib/string.in.h (memchr): Provide declaration if function is missing.
4016         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4017         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4019         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4020
4021 2010-04-05  Bruno Haible  <bruno@clisp.org>
4022
4023         strtok_r: Improve idiom.
4024         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4025         AC_LIBOBJ is used.
4026
4027 2010-04-05  Bruno Haible  <bruno@clisp.org>
4028
4029         strdup: Improve idiom.
4030         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4031         AC_LIBOBJ is used.
4032         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4033         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4034         when AC_LIBOBJ is used.
4035
4036 2010-04-05  Bruno Haible  <bruno@clisp.org>
4037
4038         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4039         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4040         don't set REPLACE_MBSINIT to 1.
4041         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4042         don't set REPLACE_MBRTOWC to 1.
4043         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4044         exist, don't set REPLACE_MBSRTOWCS to 1.
4045         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4046         exist, don't set REPLACE_MBSNRTOWCS to 1.
4047         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4048         don't set REPLACE_WCRTOMB to 1.
4049         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4050         exist, don't set REPLACE_WCSRTOMBS to 1.
4051         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4052         exist, don't set REPLACE_WCSNRTOMBS to 1.
4053
4054 2010-04-05  Bruno Haible  <bruno@clisp.org>
4055
4056         ldexpl: Improve idiom.
4057         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4058         make sure to set HAVE_DECL_LDEXPL to 0.
4059
4060 2010-04-05  Jim Meyering  <meyering@redhat.com>
4061
4062         xstrtol-tests: convert to use init.sh
4063         * modules/xstrtol-tests (Files): Add tests/init.sh.
4064         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4065         Use Exit, not exit.
4066         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4067
4068         atexit-tests: convert to use init.sh
4069         * modules/atexit-tests (Files): Add tests/init.sh.
4070         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4071         Use Exit, not exit.
4072         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4073
4074         init.sh: fix typo
4075         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4076
4077         init.sh: make it easier for a test script to write to the tty, ...
4078         when using automake's parallel-tests mode.
4079         * tests/init.sh (stderr_fileno_): Define overridable variable.
4080         (warn_): New function, to use it.
4081         (fail_, skip_, framework_failure_): Use warn_.
4082
4083 2010-04-04  Bruno Haible  <bruno@clisp.org>
4084
4085         btowc: Avoid warning.
4086         * lib/btowc.c: Include <stdlib.h>.
4087         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4088
4089 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4090             Bruno Haible  <bruno@clisp.org>
4091
4092         wchar: Port to NetBSD 1.5.
4093         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4094         * lib/wctype.in.h (WEOF): Likewise.
4095
4096 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4097             Bruno Haible  <bruno@clisp.org>
4098
4099         Port extended stdio to NetBSD 1.5.
4100         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4101         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4102         older.
4103
4104 2010-04-04  Bruno Haible  <bruno@clisp.org>
4105
4106         string: Remove unused substitution.
4107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4108         HAVE_DECL_STRERROR.
4109         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4110
4111 2010-04-04  Bruno Haible  <bruno@clisp.org>
4112
4113         strtod: Avoid a possible C++ test error.
4114         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4115         set REPLACE_STRTOD.
4116
4117 2010-04-04  Bruno Haible  <bruno@clisp.org>
4118
4119         strerror: Update documentation.
4120         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4121
4122 2010-04-04  Bruno Haible  <bruno@clisp.org>
4123
4124         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4125         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4126         _GL_CXXALIAS_SYS_CAST.
4127
4128 2010-04-04  Bruno Haible  <bruno@clisp.org>
4129
4130         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4131         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4132         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4133         REPLACE_FREXPL to 1.
4134         * doc/posix-functions/frexpl.texi: Update documentation.
4135
4136 2010-04-04  Bruno Haible  <bruno@clisp.org>
4137
4138         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4139         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4140
4141 2010-04-04  Bruno Haible  <bruno@clisp.org>
4142
4143         Implement nanosleep for native Windows.
4144         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4145
4146 2010-04-04  Bruno Haible  <bruno@clisp.org>
4147
4148         math: Fix some C++ test errors on Solaris 8.
4149         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4150
4151 2010-04-04  Bruno Haible  <bruno@clisp.org>
4152
4153         math: Fix some C++ test errors on Cygwin.
4154         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4155         truncl): Provide declaration if the system does not have it.
4156         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4157         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4158         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4159         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4160         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4161         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4162         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4163         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4164         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4165         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4166         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4167         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4168         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4169         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4170         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4171         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4173         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4174         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4175         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4176         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4177         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4178
4179 2010-04-04  Bruno Haible  <bruno@clisp.org>
4180
4181         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4182         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4183         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4184         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4185         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4186         * m4/isinf.m4 (gl_ISINF): Likewise.
4187         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4188
4189 2010-04-04  Bruno Haible  <bruno@clisp.org>
4190
4191         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4192         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4193
4194 2010-04-04  Bruno Haible  <bruno@clisp.org>
4195
4196         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4197         * modules/tmpfile (configure.ac): Update.
4198
4199         tmpfile: Fix C++ test error on mingw.
4200         * lib/stdio.in.h (tmpfile): New declaration.
4201         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4202         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4203         * modules/tmpfile (Depends-on): Add stdio.
4204         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4205         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4206         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4207         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4208         REPLACE_TMPFILE.
4209         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4210
4211 2010-04-04  Bruno Haible  <bruno@clisp.org>
4212
4213         ioctl: Fix C++ test error on mingw.
4214         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4215         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4216         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4217
4218 2010-04-03  Bruno Haible  <bruno@clisp.org>
4219
4220         wcwidth: Fix C++ test error on mingw.
4221         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4223         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4224
4225 2010-04-03  Bruno Haible  <bruno@clisp.org>
4226
4227         nanosleep: Fix C++ test error on mingw.
4228         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4229         * lib/time.in.h (nanosleep): Use modern idiom.
4230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4231         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4232         REPLACE_NANOSLEEP to 1.
4233         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4234         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4235
4236 2010-04-03  Bruno Haible  <bruno@clisp.org>
4237
4238         strptime: Fix C++ test error on mingw.
4239         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4240         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4241         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4242         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4243         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4244         not REPLACE_STRPTIME.
4245         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4246         REPLACE_STRPTIME.
4247
4248 2010-04-03  Bruno Haible  <bruno@clisp.org>
4249
4250         timegm: Fix C++ test error on mingw.
4251         * lib/time.in.h (timegm): Use modern idiom.
4252         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4253         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4254         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4255         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4256
4257 2010-04-03  Bruno Haible  <bruno@clisp.org>
4258
4259         timegm: Assume declaration if function exists.
4260         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4261         if it exists. Don't clobber ac_cv_func_timegm.
4262
4263 2010-04-03  Bruno Haible  <bruno@clisp.org>
4264
4265         time_r: Fix C++ test error on mingw.
4266         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4267         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4268         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4269         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4270         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4271
4272 2010-04-03  Bruno Haible  <bruno@clisp.org>
4273
4274         time_r: Minor updates.
4275         * modules/time_r (Description): Mention the provided functions.
4276         * lib/time_r.c: Don't include <string.h>.
4277         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4278         * doc/posix-functions/localtime_r.texi: Likewise.
4279
4280 2010-04-03  Bruno Haible  <bruno@clisp.org>
4281
4282         time: Fix regression introduced on 2010-03-08.
4283         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4284         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4285
4286 2010-04-03  Jim Meyering  <meyering@redhat.com>
4287
4288         maint.mk: don't silently disable project-specific syntax-check rules
4289         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4290         that they need to convert their project-specific syntax-check rules
4291         to use the new _sc_search_regexp.
4292
4293 2010-04-03  Bruno Haible  <bruno@clisp.org>
4294
4295         fchdir: Fix regression introduced on 2010-03-08.
4296         * lib/unistd.in.h (fchdir): Fix declaration.
4297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4299         REPLACE_FCHDIR.
4300         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4301         REPLACE_FCHDIR.
4302
4303 2010-04-03  Bruno Haible  <bruno@clisp.org>
4304
4305         getpagesize: Fix C++ test error on mingw.
4306         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4307         system does not declare the function.
4308         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4309         declared.
4310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4311         HAVE_DECL_GETPAGESIZE.
4312         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4313
4314 2010-04-03  Bruno Haible  <bruno@clisp.org>
4315
4316         stdio: Make C++ tests work on mingw.
4317         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4318         does not declare the function.
4319
4320 2010-04-03  Bruno Haible  <bruno@clisp.org>
4321
4322         ftello: Fix C++ test error on mingw.
4323         * lib/stdio.in.h (ftello): Use modern idiom.
4324         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4325         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4326         is missing and that it needs to be replaced.
4327         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4329         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4330
4331 2010-04-03  Bruno Haible  <bruno@clisp.org>
4332
4333         fseeko: Fix C++ test error on mingw.
4334         * lib/stdio.in.h (fseeko): Use modern idiom.
4335         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4336         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4337         is missing and that it needs to be replaced.
4338         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4340         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4341
4342 2010-04-03  Bruno Haible  <bruno@clisp.org>
4343
4344         mkstemp: Fix C++ test error on mingw.
4345         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4347         function is missing and that it needs to be replaced.
4348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4349         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4350
4351 2010-04-03  Bruno Haible  <bruno@clisp.org>
4352
4353         stpncpy: Fix C++ test error on mingw.
4354         * lib/string.in.h (stpncpy): Use modern idiom.
4355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4356         function is missing and that it needs to be replaced.
4357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4358         REPLACE_STPNCPY.
4359         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4360
4361 2010-04-03  Bruno Haible  <bruno@clisp.org>
4362
4363         sys_stat: Fix C++ test error on mingw.
4364         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
4365         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
4366
4367 2010-04-03  Bruno Haible  <bruno@clisp.org>
4368
4369         pty: Update doc.
4370         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
4371
4372 2010-04-03  Bruno Haible  <bruno@clisp.org>
4373
4374         unistd: Fix C++ test error on mingw.
4375         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
4376
4377 2010-04-03  Bruno Haible  <bruno@clisp.org>
4378
4379         Update doc regarding mingw.
4380         * doc/glibc-functions/openpty.texi: Update regarding mingw.
4381         * doc/glibc-functions/login_tty.texi: Likewise.
4382         * doc/glibc-functions/forkpty.texi: Likewise.
4383
4384 2010-04-03  Bruno Haible  <bruno@clisp.org>
4385
4386         stdlib: Avoid compilation failure of c-strtold on mingw.
4387         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
4388
4389 2010-04-03  Bruno Haible  <bruno@clisp.org>
4390
4391         locale: Make C++ tests work on Cygwin and mingw.
4392         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
4393         cannot provide the function.
4394         Reported by Simon Josefsson.
4395
4396 2010-04-03  Bruno Haible  <bruno@clisp.org>
4397
4398         localename: Port to MacOS X 10.6.
4399         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
4400         memory layout of the locales in MacOS X 10.6 as well.
4401         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
4402
4403 2010-04-02  Bruno Haible  <bruno@clisp.org>
4404
4405         gnulib-tool: Ensure that long-running tests are executed last.
4406         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
4407         running tests after the one for the other tests.
4408
4409 2010-04-02  Bruno Haible  <bruno@clisp.org>
4410
4411         gnulib-tool: Ensure the tests in the main directory are executed first.
4412         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
4413         start with the current directory.
4414
4415 2010-04-02  Bruno Haible  <bruno@clisp.org>
4416
4417         Tests for module 'havelib', moved here from GNU gettext.
4418         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
4419         modifications.
4420         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
4421         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
4422         with modifications.
4423         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
4424         modifications.
4425         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
4426         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
4427         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
4428         with modifications.
4429         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
4430         with modifications.
4431         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
4432         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
4433         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
4434         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
4435         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
4436         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
4437         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
4438         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
4439         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
4440         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
4441         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
4442         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
4443         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
4444         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
4445         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
4446         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
4447         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
4448         with modifications.
4449         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
4450         with modifications.
4451         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
4452         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
4453         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
4454         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
4455         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
4456         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
4457         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
4458         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
4459         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
4460         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
4461         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
4462         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
4463         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
4464         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
4465         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
4466         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
4467         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
4468         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
4469         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
4470         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
4471         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
4472         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
4473         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
4474         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
4475         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
4476         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
4477         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
4478         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
4479         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
4480         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
4481         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
4482         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
4483         * tests/havelib/rpathx/rpathx.c: New file, from
4484         gettext/autoconf-lib-link.
4485         * tests/havelib/rpathx/Makefile.am: New file, from
4486         gettext/autoconf-lib-link.
4487         * tests/havelib/rpathx/configure.ac: New file, from
4488         gettext/autoconf-lib-link with modifications.
4489         * tests/havelib/rpathy/rpathy.c: New file, from
4490         gettext/autoconf-lib-link.
4491         * tests/havelib/rpathy/Makefile.am: New file, from
4492         gettext/autoconf-lib-link.
4493         * tests/havelib/rpathy/configure.ac: New file, from
4494         gettext/autoconf-lib-link with modifications.
4495         * tests/havelib/rpathz/rpathz.c: New file, from
4496         gettext/autoconf-lib-link.
4497         * tests/havelib/rpathz/Makefile.am: New file, from
4498         gettext/autoconf-lib-link.
4499         * tests/havelib/rpathz/configure.ac: New file, from
4500         gettext/autoconf-lib-link with modifications.
4501         * tests/havelib/rpathlx/usex.c: New file, from
4502         gettext/autoconf-lib-link.
4503         * tests/havelib/rpathlx/Makefile.am: New file, from
4504         gettext/autoconf-lib-link.
4505         * tests/havelib/rpathlx/configure.ac: New file, from
4506         gettext/autoconf-lib-link with modifications.
4507         * tests/havelib/rpathly/usey.c: New file, from
4508         gettext/autoconf-lib-link.
4509         * tests/havelib/rpathly/Makefile.am: New file, from
4510         gettext/autoconf-lib-link.
4511         * tests/havelib/rpathly/configure.ac: New file, from
4512         gettext/autoconf-lib-link with modifications.
4513         * tests/havelib/rpathlz/usez.c: New file, from
4514         gettext/autoconf-lib-link.
4515         * tests/havelib/rpathlz/Makefile.am: New file, from
4516         gettext/autoconf-lib-link.
4517         * tests/havelib/rpathlz/configure.ac: New file, from
4518         gettext/autoconf-lib-link with modifications.
4519         * tests/havelib/rpathlyx/usey.c: New file, from
4520         gettext/autoconf-lib-link.
4521         * tests/havelib/rpathlyx/Makefile.am: New file, from
4522         gettext/autoconf-lib-link.
4523         * tests/havelib/rpathlyx/configure.ac: New file, from
4524         gettext/autoconf-lib-link with modifications.
4525         * tests/havelib/rpathlzyx/usez.c: New file, from
4526         gettext/autoconf-lib-link.
4527         * tests/havelib/rpathlzyx/Makefile.am: New file, from
4528         gettext/autoconf-lib-link.
4529         * tests/havelib/rpathlzyx/configure.ac: New file, from
4530         gettext/autoconf-lib-link with modifications.
4531         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
4532         with modifications.
4533
4534 2010-04-02  Bruno Haible  <bruno@clisp.org>
4535
4536         gnulib-tool: Create distributed built sources also for the tests.
4537         * gnulib-tool (func_create_testdir): Also generate distributed built
4538         sources in the tests directory.
4539
4540 2010-04-02  Bruno Haible  <bruno@clisp.org>
4541
4542         gnulib-tool: Obey user's environment variables.
4543         * gnulib-tool (func_create_testdir): When creating built sources,
4544         respect the environment variables for autoconf, automake, etc. given by
4545         the user.
4546
4547 2010-04-02  Bruno Haible  <bruno@clisp.org>
4548
4549         gnulib-tool: Provide the value of --m4-base to modules.
4550         * gnulib-tool (func_import, func_create_testdir): Emit a definition
4551         of gl_m4_base.
4552
4553 2010-04-02  Eric Blake  <eblake@redhat.com>
4554
4555         maint.mk: fix some fallout
4556         * NEWS: Document the incompatible change, and its effect on cfg.mk.
4557         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
4558
4559 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4560
4561         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
4562         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
4563         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
4564         (sc_cast_of_x_alloc_return_value): Likewise.
4565         (sc_cast_of_alloca_return_value): Likewise.
4566         (sc_space_tab): Likewise.
4567         (sc_prohibit_atoi_atof): Likewise.
4568         (sc_prohibit_magic_number_exit): Likewise.
4569         (sc_error_exit_success): Likewise.
4570         (sc_file_system): Likewise.
4571         (sc_prohibit_have_config_h): Likewise.
4572         (sc_require_config_h): Likewise.
4573         (sc_prohibit_HAVE_MBRTOWC): Likewise.
4574         (sc_obsolete_symbols): Likewise.
4575         (sc_changelog): Likewise.
4576         (sc_program_name): Likewise.
4577         (sc_the_the): Likewise.
4578         (sc_trailing_blank): Likewise.
4579         (sc_two_space_separator_in_usage): Likewise.
4580         (sc_useless_cpp_parens): Likewise.
4581         (sc_GPL_version): Likewise.
4582         (sc_GFDL_version): Likewise.
4583         (sc_texinfo_acronym): Likewise.
4584         (sc_prohibit_cvs_keyword): Likewise.
4585         (sc_prohibit_stat_st_blocks): Likewise.
4586         (sc_prohibit_S_IS_definition): Likewise.
4587         (sc_redundant_const): Likewise.
4588         (sc_makefile_TAB_only_indentation): Likewise.
4589         (sc_m4_quote_check): Likewise.
4590         (sc_makefile_path_separator_check): Likewise.
4591         (sc_copyright_check): Likewise.
4592         (sc_Wundef_boolean): Likewise.
4593         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4594
4595         maint.mk: match 0 or more whitespace-before-function-call '('
4596         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
4597         that have zero or two-and-more spaces between the function name
4598         and the open parenthesis.
4599         (sc_error_message_warn_fatal): Likewise.
4600         (sc_error_message_uppercase): Likewise.
4601         (sc_error_message_period): Likewise.
4602
4603 2010-03-31  Eric Blake  <eblake@redhat.com>
4604
4605         maint.mk: check for [ as well as test
4606         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
4607         Based on a libvirt report by Matthias Bolte.
4608
4609         gnumakefile: don't squelch _version output
4610         * top/GNUmakefile (_version): Create one-shot dependency rather
4611         than using $(shell) when version must be regenerated.
4612         (_autoreconf): Run verbosely, by default.
4613
4614         sys_time: avoid compiler warnings
4615         * lib/sys_time.in.h (includes): Ensure gcc pragma is
4616         unconditional, fixing regression from 2010-03-29.
4617         Reported by Simon Josefsson.
4618
4619 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4620
4621         maint.mk: s/_header_without_use/_sc_header_without_use/
4622         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
4623         (sc_prohibit_assert_without_use): Use the new name.
4624         (sc_prohibit_close_stream_without_use): Likewise.
4625         (sc_prohibit_getopt_without_use): Likewise.
4626         (sc_prohibit_quotearg_without_use): Likewise.
4627         (sc_prohibit_quote_without_use): Likewise.
4628         (sc_prohibit_long_options_without_use): Likewise.
4629         (sc_prohibit_inttostr_without_use): Likewise.
4630         (sc_prohibit_ignore_value_without_use): Likewise.
4631         (sc_prohibit_error_without_use): Likewise.
4632         (sc_prohibit_xalloc_without_use): Likewise.
4633         (sc_prohibit_hash_without_use): Likewise.
4634         (sc_prohibit_hash_pjw_without_use): Likewise.
4635         (sc_prohibit_safe_read_without_use): Likewise.
4636         (sc_prohibit_argmatch_without_use): Likewise.
4637         (sc_prohibit_canonicalize_without_use): Likewise.
4638         (sc_prohibit_root_dev_ino_without_use): Likewise.
4639         (sc_prohibit_openat_without_use): Likewise.
4640         (sc_prohibit_c_ctype_without_use): Likewise.
4641         (sc_prohibit_signal_without_use): Likewise.
4642         (sc_prohibit_intprops_without_use): Likewise.
4643
4644 2010-03-30  Eric Blake  <eblake@redhat.com>
4645
4646         maint: improve module indicators
4647         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
4648         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
4649         columns, and avoid extra macro expansion.
4650
4651         fdopendir: work around FreeBSD bug
4652         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
4653         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
4654         * modules/dirent (Makefile.am): Substitute it.
4655         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
4656         declaration.
4657         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
4658         fix.
4659         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4660
4661 2010-03-29  Bruno Haible  <bruno@clisp.org>
4662
4663         Emit #pragma system_header after the inclusion guard, not before.
4664         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
4665         guard that spans the entire file, not before. This enables an
4666         optimization in GCC's preprocessor.
4667         * lib/ctype.in.h: Likewise.
4668         * lib/dirent.in.h: Likewise.
4669         * lib/errno.in.h: Likewise.
4670         * lib/float.in.h: Likewise.
4671         * lib/getopt.in.h: Likewise.
4672         * lib/iconv.in.h: Likewise.
4673         * lib/langinfo.in.h: Likewise.
4674         * lib/locale.in.h: Likewise.
4675         * lib/math.in.h: Likewise.
4676         * lib/netdb.in.h: Likewise.
4677         * lib/netinet_in.in.h: Likewise.
4678         * lib/pty.in.h: Likewise.
4679         * lib/sched.in.h: Likewise.
4680         * lib/se-selinux.in.h: Likewise.
4681         * lib/search.in.h: Likewise.
4682         * lib/spawn.in.h: Likewise.
4683         * lib/stdarg.in.h: Likewise.
4684         * lib/stdint.in.h: Likewise.
4685         * lib/string.in.h: Likewise.
4686         * lib/strings.in.h: Likewise.
4687         * lib/sys_file.in.h: Likewise.
4688         * lib/sys_ioctl.in.h: Likewise.
4689         * lib/sys_time.in.h: Likewise.
4690         * lib/sys_times.in.h: Likewise.
4691         * lib/sys_utsname.in.h: Likewise.
4692         * lib/sys_wait.in.h: Likewise.
4693         * lib/sysexits.in.h: Likewise.
4694         * lib/wctype.in.h: Likewise.
4695
4696 2010-03-28  James Youngman  <jay@gnu.org>
4697
4698         save-cwd: don't leak a file descriptor when the caller execs.
4699         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
4700         saved file descriptor.
4701         * modules/save-cwd (Depends-on): Depend on cloexec.
4702
4703 2010-03-29  Bruno Haible  <bruno@clisp.org>
4704
4705         Remove vestiges of fts-lgpl module.
4706         * lib/fts_.h: Assume GNULIB_FTS is 1.
4707         * lib/fts.c: Likewise.
4708         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4709
4710 2010-03-28  Bruno Haible  <bruno@clisp.org>
4711
4712         Fix definition of tests witness macro.
4713         * gnulib-tool (func_import): Fix definition of witness macro.
4714
4715 2010-03-28  Bruno Haible  <bruno@clisp.org>
4716
4717         Fix ioctl's protoype on glibc systems.
4718         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
4719         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
4720         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
4721         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
4722         signature. If not, arrange to replace the ioctl function.
4723         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
4724         REPLACE_IOCTL.
4725         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
4726         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
4727         Reported by Ludovic Courtès <ludo@gnu.org>.
4728
4729 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
4730
4731         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
4732         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
4733         made it so grep -r --include=GLOB* ... did not work.
4734
4735 2010-03-26  Jim Meyering  <meyering@redhat.com>
4736             Eric Blake  <eblake@redhat.com>
4737
4738         maint.mk: prohibit use of test's -o and -a operators
4739         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
4740
4741 2010-03-28  Bruno Haible  <bruno@clisp.org>
4742
4743         Remove unused GNULIB_XYZ macro definitions.
4744         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
4745         invocation.
4746
4747 2010-03-28  Bruno Haible  <bruno@clisp.org>
4748
4749         Mark privileged tests modules.
4750         * modules/idpriv-drop-tests (Status): New section.
4751         * modules/idpriv-droptemp-tests (Status): New section.
4752
4753 2010-03-28  Bruno Haible  <bruno@clisp.org>
4754
4755         Split C++ tests into separate tests modules.
4756         * modules/dirent-c++-tests: New file, extracted from
4757         modules/dirent-tests.
4758         * modules/dirent-tests: Depend on it.
4759         * modules/fcntl-h-c++-tests: New file, extracted from
4760         modules/fcntl-h-tests.
4761         * modules/fcntl-h-tests: Depend on it.
4762         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
4763         * modules/glob-tests: Depend on it.
4764         * modules/iconv-h-c++-tests: New file, extracted from
4765         modules/iconv-h-tests.
4766         * modules/iconv-h-tests: Depend on it.
4767         * modules/langinfo-c++-tests: New file, extracted from
4768         modules/langinfo-tests.
4769         * modules/langinfo-tests: Depend on it.
4770         * modules/locale-c++-tests: New file, extracted from
4771         modules/locale-tests.
4772         * modules/locale-tests: Depend on it.
4773         * modules/math-c++-tests: New file, extracted from modules/math-tests.
4774         * modules/math-tests: Depend on it.
4775         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
4776         * modules/pty-tests: Depend on it.
4777         * modules/search-c++-tests: New file, extracted from
4778         modules/search-tests.
4779         * modules/search-tests: Depend on it.
4780         * modules/signal-c++-tests: New file, extracted from
4781         modules/signal-tests.
4782         * modules/signal-tests: Depend on it.
4783         * modules/spawn-c++-tests: New file, extracted from
4784         modules/spawn-tests.
4785         * modules/spawn-tests: Depend on it.
4786         * modules/stdio-c++-tests: New file, extracted from
4787         modules/stdio-tests.
4788         * modules/stdio-tests: Depend on it.
4789         * modules/stdlib-c++-tests: New file, extracted from
4790         modules/stdlib-tests.
4791         * modules/stdlib-tests: Depend on it.
4792         * modules/string-c++-tests: New file, extracted from
4793         modules/string-tests.
4794         * modules/string-tests: Depend on it.
4795         * modules/sys_ioctl-c++-tests: New file, extracted from
4796         modules/sys_ioctl-tests.
4797         * modules/sys_ioctl-tests: Depend on it.
4798         * modules/sys_select-c++-tests: New file, extracted from
4799         modules/sys_select-tests.
4800         * modules/sys_select-tests: Depend on it.
4801         * modules/sys_socket-c++-tests: New file, extracted from
4802         modules/sys_socket-tests.
4803         * modules/sys_socket-tests: Depend on it.
4804         * modules/sys_stat-c++-tests: New file, extracted from
4805         modules/sys_stat-tests.
4806         * modules/sys_stat-tests: Depend on it.
4807         * modules/sys_time-c++-tests: New file, extracted from
4808         modules/sys_time-tests.
4809         * modules/sys_time-tests: Depend on it.
4810         * modules/time-c++-tests: New file, extracted from modules/time-tests.
4811         * modules/time-tests: Depend on it.
4812         * modules/unistd-c++-tests: New file, extracted from
4813         modules/unistd-tests.
4814         * modules/unistd-tests: Depend on it.
4815         * modules/wchar-c++-tests: New file, extracted from
4816         modules/wchar-tests.
4817         * modules/wchar-tests: Depend on it.
4818         * modules/wctype-c++-tests: New file, extracted from
4819         modules/wctype-tests.
4820         * modules/wctype-tests: Depend on it.
4821         Reported by Simon Josefsson.
4822
4823 2010-03-28  Bruno Haible  <bruno@clisp.org>
4824
4825         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
4826         * gnulib-tool (func_exists_module): New function, extracted from
4827         func_verify_module.
4828         (func_verify_module): Use it.
4829         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
4830         'foo' only if 'foo' exists.
4831         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
4832         module.
4833
4834 2010-03-28  Bruno Haible  <bruno@clisp.org>
4835
4836         gnulib-tool: Add support for special categories of tests.
4837         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
4838         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
4839         (func_usage): Document them.
4840         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
4841         inc_unportable_tests, inc_all_tests): New variables.
4842         (func_acceptable): Consider these variables.
4843         (func_modules_transitive_closure): Make it work when the 'Status' field
4844         consists of multiple words.
4845         (func_import): Store and restore the values of inc_cxx_tests,
4846         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
4847         inc_all_tests in gnulib-comp.m4.
4848         (func_create_testdir): Set inc_all_tests to true.
4849         * doc/gnulib.texi (Extra tests modules): New section.
4850         Suggested by Jim Meyering.
4851
4852 2010-03-28  Bruno Haible  <bruno@clisp.org>
4853
4854         ansi-c++-opt: Allow turning off the C++ build by default.
4855         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
4856         gl_CXX_CHOICE_DEFAULT_NO is defined.
4857         Requested by Eric Blake.
4858
4859 2010-03-28  Bruno Haible  <bruno@clisp.org>
4860
4861         unistd: Avoid #define replacements in C++ mode.
4862         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4863         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4864         setsockopt, shutdown, select): In C++, attach a warning to the function
4865         if possible, rather than #defining the symbol to a dysfunctional alias.
4866         Reported by John W. Eaton <jwe@gnu.org>.
4867
4868 2010-03-28  Bruno Haible  <bruno@clisp.org>
4869
4870         Fix link errors on mingw.
4871         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
4872         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
4873         $(LIBSOCKET).
4874         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
4875         $(LIBSOCKET).
4876
4877 2010-03-28  Bruno Haible  <bruno@clisp.org>
4878             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4879
4880         lib-ignore: Determine different options for different compilers.
4881         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
4882         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
4883         Add comments.
4884         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
4885         * NEWS: Mention the change.
4886
4887 2010-03-27  Bruno Haible  <bruno@clisp.org>
4888
4889         Remove unused GNULIB_XYZ macro definitions.
4890         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4891         * modules/fseek (configure.ac): Likewise.
4892         * modules/ioctl (configure.ac): Likewise.
4893         * modules/open (configure.ac): Likewise.
4894         * modules/stdlib-safer (configure.ac): Likewise.
4895
4896 2010-03-27  Bruno Haible  <bruno@clisp.org>
4897
4898         Add a remark about certain modules.
4899         * modules/malloc (Comment): New section.
4900         * modules/realloc (Comment): Likewise.
4901         * modules/sigpipe (Comment): Likewise.
4902
4903 2010-03-27  Bruno Haible  <bruno@clisp.org>
4904
4905         Resolve conflict between the two kinds of module indicators.
4906         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
4907         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
4908         * modules/canonicalize (configure.ac): Invoke
4909         gl_MODULE_INDICATOR_FOR_TESTS.
4910         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
4911         GNULIB_XYZ.
4912         * tests/test-dirent-c++.cc: Likewise.
4913         * tests/test-dirent-safer.c: Likewise.
4914         * tests/test-dup2.c: Likewise.
4915         * tests/test-fchdir.c: Likewise.
4916         * tests/test-fcntl-h-c++.cc: Likewise.
4917         * tests/test-getopt.c: Likewise.
4918         * tests/test-getopt.h: Likewise.
4919         * tests/test-langinfo-c++.cc: Likewise.
4920         * tests/test-locale-c++.cc: Likewise.
4921         * tests/test-math-c++.cc: Likewise.
4922         * tests/test-pty-c++.cc: Likewise.
4923         * tests/test-search-c++.cc: Likewise.
4924         * tests/test-signal-c++.cc: Likewise.
4925         * tests/test-spawn-c++.cc: Likewise.
4926         * tests/test-stdio-c++.cc: Likewise.
4927         * tests/test-stdlib-c++.cc: Likewise.
4928         * tests/test-string-c++.cc: Likewise.
4929         * tests/test-sys_ioctl-c++.cc: Likewise.
4930         * tests/test-sys_select-c++.cc: Likewise.
4931         * tests/test-sys_socket-c++.cc: Likewise.
4932         * tests/test-sys_stat-c++.cc: Likewise.
4933         * tests/test-sys_time-c++.cc: Likewise.
4934         * tests/test-time-c++.cc: Likewise.
4935         * tests/test-unistd-c++.cc: Likewise.
4936         * tests/test-wchar-c++.cc: Likewise.
4937         * tests/uninorm/test-u8-nfc.c: Likewise.
4938         * tests/uninorm/test-u8-nfd.c: Likewise.
4939         * tests/uninorm/test-u8-nfkc.c: Likewise.
4940         * tests/uninorm/test-u8-nfkd.c: Likewise.
4941         * tests/uninorm/test-u16-nfc.c: Likewise.
4942         * tests/uninorm/test-u16-nfd.c: Likewise.
4943         * tests/uninorm/test-u16-nfkc.c: Likewise.
4944         * tests/uninorm/test-u16-nfkd.c: Likewise.
4945         * tests/uninorm/test-u32-nfc.c: Likewise.
4946         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4947         * tests/uninorm/test-u32-nfd.c: Likewise.
4948         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4949         * tests/uninorm/test-u32-nfkc.c: Likewise.
4950         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4951         * tests/uninorm/test-u32-nfkd.c: Likewise.
4952         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4953         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4954
4955 2010-03-27  Bruno Haible  <bruno@clisp.org>
4956
4957         Distinguish two kinds of module indicators.
4958         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
4959         gl_MODULE_INDICATOR.
4960         (gl_MODULE_INDICATOR): New macro.
4961         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4962         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
4963         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4964         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4965         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4966         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4967         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4968         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4969         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4970         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4971         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4972         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4973         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4974         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4975         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4976         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4977         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4978         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4979         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4980         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4981         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4982         * modules/cloexec (configure.ac): Likewise.
4983         * modules/getopt-gnu (configure.ac): Likewise.
4984         * modules/uninorm/u8-normalize (configure.ac): Likewise.
4985         * modules/uninorm/u16-normalize (configure.ac): Likewise.
4986         * modules/uninorm/u32-normalize (configure.ac): Likewise.
4987         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
4988
4989 2010-03-27  Bruno Haible  <bruno@clisp.org>
4990
4991         New module description field 'Comment'.
4992         * gnulib-tool: New option --extract-comment.
4993         (func_usage): Document it.
4994         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
4995         (func_get_comment): New function.
4996         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
4997
4998 2010-03-27  Bruno Haible  <bruno@clisp.org>
4999
5000         Addendum to 2010-02-07 commit.
5001         * gnulib-tool (func_usage): Document --extract-applicability option.
5002
5003 2010-03-27  Bruno Haible  <bruno@clisp.org>
5004
5005         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5006         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5007         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5008         rather than link errors.
5009
5010 2010-03-27  Bruno Haible  <bruno@clisp.org>
5011
5012         Avoid side effects from tests-related modules on the compilation of lib.
5013         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5014         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5015         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5016         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5017         macro.
5018         (func_import): Define a witness macro. Assign it a value that depends
5019         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5020         tests-related modules.
5021         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5022         Reported by Jim Meyering.
5023
5024 2010-03-27  Bruno Haible  <bruno@clisp.org>
5025
5026         Factorize common .m4 code.
5027         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5028         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5029         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5030         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5031         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5032         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5033         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5034         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5035         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5036         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5037         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5038         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5039         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5040         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5041         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5042         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5043         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5044         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5046         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5047         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5048         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5049         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5051         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5052         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5053         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5055         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5056         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5057         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5058         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5059
5060 2010-03-27  Bruno Haible  <bruno@clisp.org>
5061
5062         Fix a compilation error on Cygwin with g++ >= 4.3.
5063         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5064         if it is undefined or if we alias it to chmod.
5065         (lstat): Don't warn about the use of this function if it is undefined
5066         or if we alias it to stat.
5067         Reported by Simon Josefsson.
5068
5069 2010-03-27  Bruno Haible  <bruno@clisp.org>
5070
5071         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5072         * modules/getlogin (configure.ac): Update.
5073
5074         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5075         * modules/getlogin_r (configure.ac): Update.
5076
5077         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5079         * modules/inet_ntop (configure.ac): Update.
5080
5081         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5082         * modules/inet_pton (configure.ac): Update.
5083
5084         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5085         * modules/mbslen (configure.ac): Update.
5086
5087         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5088         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5089         * modules/forkpty (configure.ac): Update.
5090         * modules/openpty (configure.ac): Update.
5091
5092 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5093
5094         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5095         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5096
5097 2010-03-25  Eric Blake  <eblake@redhat.com>
5098
5099         maint: use pragma consistently across replacement headers
5100         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5101         * lib/dirent.in.h (system_header): Likewise.
5102         * lib/errno.in.h (system_header): Likewise.
5103         * lib/float.in.h (system_header): Likewise.
5104         * lib/getopt.in.h (system_header): Likewise.
5105         * lib/iconv.in.h (system_header): Likewise.
5106         * lib/inttypes.in.h (system_header): Likewise.
5107         * lib/langinfo.in.h (system_header): Likewise.
5108         * lib/locale.in.h (system_header): Likewise.
5109         * lib/math.in.h (system_header): Likewise.
5110         * lib/netdb.in.h (system_header): Likewise.
5111         * lib/netinet_in.in.h (system_header): Likewise.
5112         * lib/pty.in.h (system_header): Likewise.
5113         * lib/sched.in.h (system_header): Likewise.
5114         * lib/se-selinux.in.h (system_header): Likewise.
5115         * lib/search.in.h (system_header): Likewise.
5116         * lib/spawn.in.h (system_header): Likewise.
5117         * lib/stdarg.in.h (system_header): Likewise.
5118         * lib/stdint.in.h (system_header): Likewise.
5119         * lib/string.in.h (system_header): Likewise.
5120         * lib/strings.in.h (system_header): Likewise.
5121         * lib/sys_file.in.h (system_header): Likewise.
5122         * lib/sys_ioctl.in.h (system_header): Likewise.
5123         * lib/sys_socket.in.h (system_header): Likewise.
5124         * lib/sys_times.in.h (system_header): Likewise.
5125         * lib/sys_utsname.in.h (system_header): Likewise.
5126         * lib/sys_wait.in.h (system_header): Likewise.
5127         * lib/sysexits.in.h (system_header): Likewise.
5128         * lib/unistd.in.h (system_header): Likewise.
5129         * lib/wctype.in.h (system_header): Likewise.
5130
5131         arpa/inet: fix mingw compilation warning
5132         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5133         Reported by Matthew Bolte.
5134
5135 2010-03-25  Bruno Haible  <bruno@clisp.org>
5136
5137         Avoid collision between gnulib wrapper and libintl wrapper.
5138         * lib/printf.c (printf): Don't define if a printf wrapper is already
5139         defined in intl/printf.c.
5140         Reported by Michel Boaventura <michel@michelboaventura.com>.
5141
5142 2010-03-25  Bruno Haible  <bruno@clisp.org>
5143
5144         Use ANSI C.
5145         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5146
5147 2010-03-25  Bruno Haible  <bruno@clisp.org>
5148
5149         Minor formatting changes.
5150         * lib/acosl.c: Insert space before function argument list.
5151         * lib/argz.c: Likewise.
5152         * lib/asinl.c: Likewise.
5153         * lib/expl.c: Likewise.
5154         * lib/gen-uni-tables.c: Likewise.
5155         * lib/gettext.h: Likewise.
5156         * lib/glthread/lock.h: Likewise.
5157         * lib/tanl.c: Likewise.
5158         * lib/uniname/uniname.c: Likewise.
5159         * tests/test-idpriv-drop.c: Likewise.
5160         * tests/test-idpriv-droptemp.c: Likewise.
5161         * tests/test-lock.c: Likewise.
5162         * tests/test-tls.c: Likewise.
5163         * lib/argp-help.c: Insert space before function-like macro argument
5164         list.
5165         * lib/memcmp.c: Likewise.
5166         * tests/test-base64.c: Likewise.
5167         * lib/localename.c: Insert space before sizeof's argument list.
5168         * lib/safe-alloc.h: Likewise.
5169         * lib/file-set.h: Insert space before macro argument list.
5170         * tests/test-argp.c: Likewise.
5171         * lib/argp-namefrob.h: Insert space before function parameter list.
5172         * lib/getaddrinfo.c: Likewise.
5173         * lib/netdb.in.h: Likewise.
5174         * lib/parse-duration.h: Likewise.
5175         * lib/parse-duration.c: Likewise.
5176         * lib/poll.c: Likewise.
5177         * lib/select.c: Likewise.
5178         * lib/trim.h: Likewise.
5179         * tests/test-usleep.c: Likewise.
5180         * lib/ldexpl.c: Insert space before function parameter list and before
5181         function argument list.
5182         * lib/logl.c: Likewise.
5183         * lib/sqrtl.c: Likewise.
5184         * lib/trim.c: Likewise.
5185         * lib/cosl.c: Use GNU style indentation. Insert space before function
5186         argument list.
5187         * lib/sinl.c: Likewise.
5188         * lib/tsearch.c: Insert space after 'for'.
5189         Reported by Jim Meyering.
5190
5191 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5192
5193         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5194         config header before grepping, as it's not present before
5195         autoreconf/configure are run.  Reported by Simon Josefsson.
5196
5197 2010-03-23  Bruno Haible  <bruno@clisp.org>
5198
5199         pt_chown: Make it work with automake < 1.11.
5200         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5201         Reported by Simon Josefsson.
5202
5203 2010-03-23  Bruno Haible  <bruno@clisp.org>
5204
5205         pt_chown: Don't depend on GPLed modules.
5206         * lib/pt_chown.c: Don't include idpriv.h.
5207         (main): Don't drop privileges.
5208         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5209         Reported by Simon Josefsson.
5210
5211 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5212
5213         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5214         suggestions from karl@freefriends.org (Karl Berry).
5215
5216 2010-03-22  Eric Blake  <eblake@redhat.com>
5217
5218         gethostname: further tweaks
5219         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5220         are overriding gethostname.
5221         Suggested by Bruno Haible.
5222
5223 2010-03-21  Bruno Haible  <bruno@clisp.org>
5224
5225         Fix comments.
5226         * lib/forkpty.c (rpl_forkpty): Fix comment.
5227         * lib/openpty.c (rpl_openpty): Likewise.
5228         Reported by Eric Blake.
5229
5230 2010-03-22  Eric Blake  <eblake@redhat.com>
5231
5232         gethostname: fix build on mingw
5233         * lib/unistd.in.h (includes): Work around fact that mingw
5234         <winsock2.h> re-includes <unistd.h>, by avoiding any
5235         redeclarations if we are being included by <winsock2.h>.
5236         Reported by Matthias Bolte.
5237
5238 2010-03-21  Bruno Haible  <bruno@clisp.org>
5239
5240         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5241         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5242         modifications.
5243         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5244         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5245         provide the replacement.
5246         * modules/forkpty (Depends-on): Add openpty, login_tty.
5247         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5248         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5249         * doc/glibc-functions/forkpty.texi: More supported platforms.
5250         * config/srclist.txt: Add forkpty.c (commented).
5251
5252 2010-03-21  Bruno Haible  <bruno@clisp.org>
5253
5254         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5255         (Makefile.am): Verify that PTY_LIB is defined.
5256
5257         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5258
5259 2010-03-21  Bruno Haible  <bruno@clisp.org>
5260
5261         Tests for module 'login_tty'.
5262         * modules/login_tty-tests: New file.
5263         * tests/test-login_tty.c: New file.
5264
5265         New module 'login_tty'.
5266         * lib/login_tty.c: New file.
5267         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5268         * modules/login_tty: New file.
5269         * doc/glibc-functions/login_tty.texi: Mention the new module.
5270
5271 2010-03-21  Bruno Haible  <bruno@clisp.org>
5272
5273         login_tty: Documentation.
5274         * doc/glibc-functions/login_tty.texi: New file.
5275         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5276
5277 2010-03-21  Bruno Haible  <bruno@clisp.org>
5278
5279         pty: Consistent macro naming.
5280         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5281         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5282         * modules/pty (configure.ac): Update.
5283
5284 2010-03-21  Bruno Haible  <bruno@clisp.org>
5285
5286         Tests for openpty: Make stricter.
5287         * tests/test-openpty.c (main): Add test of canonical processing and
5288         erase.
5289         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5290
5291         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5292         * lib/openpty.c (openpty): New replacement function.
5293         * lib/pty.in.h: Include <termios.h>.
5294         (openpty): Update declaration. Add comments.
5295         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5296         is not declared, arrange to provide the replacement. Check for _getpty
5297         and posix_openpt.
5298         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5299         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5300         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5301         * modules/pty-tests (test_pty_c___LDADD): New variable.
5302         * doc/glibc-functions/openpty.texi: More supported platforms.
5303
5304 2010-03-21  Bruno Haible  <bruno@clisp.org>
5305
5306         setenv: Tweaks.
5307         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5308         the test program.
5309         * doc/posix-functions/setenv.texi: Update platforms list.
5310
5311 2010-03-21  Bruno Haible  <bruno@clisp.org>
5312
5313         New module 'unlockpt'.
5314         * lib/unlockpt.c: New file, from glibc with modifications.
5315         * m4/unlockpt.m4: New file.
5316         * modules/unlockpt: New file.
5317         * lib/stdlib.in.h (unlockpt): New declaration.
5318         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5319         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5320         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5321         HAVE_UNLOCKPT.
5322         * doc/posix-functions/unlockpt.texi: Mention the new module.
5323         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5324         * config/srclist.txt: Add unlockpt.c (commented).
5325
5326 2010-03-21  Jim Meyering  <meyering@redhat.com>
5327
5328         maint.mk: prohibit inclusion of "intprops.h" without use
5329         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5330
5331 2010-03-21  Bruno Haible  <bruno@clisp.org>
5332
5333         New module 'grantpt'.
5334         * lib/grantpt.c: New file, from glibc with modifications.
5335         * m4/grantpt.m4: New file.
5336         * modules/grantpt: New file.
5337         * lib/stdlib.in.h (grantpt): New declaration.
5338         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5339         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5340         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5341         HAVE_GRANTPT.
5342         * doc/posix-functions/grantpt.texi: Mention the new module.
5343         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5344         * config/srclist.txt: Add grantpt.c (commented).
5345
5346 2010-03-21  Bruno Haible  <bruno@clisp.org>
5347
5348         New module 'pt_chown'.
5349         * lib/pt_chown.c: New file, from glibc with modifications.
5350         * lib/pty-private.h: New file, from glibc with modifications.
5351         * modules/pt_chown: New file.
5352         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5353
5354 2010-03-21  Bruno Haible  <bruno@clisp.org>
5355
5356         Tests for module 'ptsname'.
5357         * modules/ptsname-tests: New file.
5358         * tests/test-ptsname.c: New file.
5359
5360         New module 'ptsname'.
5361         * lib/ptsname.c: New file, from glibc with modifications.
5362         * m4/ptsname.m4: New file.
5363         * modules/ptsname: New file.
5364         * lib/stdlib.in.h (ptsname): New declaration.
5365         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
5366         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
5367         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
5368         HAVE_PTSNAME.
5369         * doc/posix-functions/ptsname.texi: Mention the new module.
5370         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
5371         * config/srclist.txt: Add ptsname.c (commented).
5372
5373 2010-03-21  Bruno Haible  <bruno@clisp.org>
5374
5375         Tests for module 'ttyname_r'.
5376         * modules/ttyname_r-tests: New file.
5377         * tests/test-ttyname_r.c: New file.
5378
5379         New module 'ttyname_r'.
5380         * lib/ttyname_r.c: New file.
5381         * m4/ttyname_r.m4: New file.
5382         * modules/ttyname_r: New file.
5383         * lib/unistd.in.h (ttyname_r): New declaration.
5384         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
5385         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
5386         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
5387         HAVE_TTYNAME_R.
5388         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
5389         * doc/posix-functions/ttyname_r.texi: Mention the new module.
5390
5391 2010-03-20  Bruno Haible  <bruno@clisp.org>
5392
5393         signal: Undefine macro definitions in C++ mode.
5394         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
5395         sigfillset): Undefine macro definitions from the system header in C++
5396         mode.
5397         Reported by John W. Eaton <jwe@gnu.org>.
5398
5399 2010-03-20  Bruno Haible  <bruno@clisp.org>
5400
5401         Ensure no #include statements inside extern "C" { ... }.
5402         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
5403         contain #include statements.
5404         * lib/time.in.h: Likewise.
5405
5406 2010-03-20  Bruno Haible  <bruno@clisp.org>
5407
5408         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
5409         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
5410         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
5411         Reported by John W. Eaton <jwe@gnu.org>.
5412
5413 2010-03-20  Bruno Haible  <bruno@clisp.org>
5414
5415         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
5416         Reported by Jim Meyering.
5417
5418 2010-03-20  Bruno Haible  <bruno@clisp.org>
5419
5420         pipe: Set errno upon failure.
5421         * lib/pipe.h: Specify that when -1 is returned, errno is set.
5422         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
5423         errno value in error message.
5424
5425 2010-03-20  Bruno Haible  <bruno@clisp.org>
5426             Jim Meyering  <meyering@redhat.com>
5427
5428         lchown: Avoid "unused variable" warning.
5429         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
5430
5431 2010-03-20  Bruno Haible  <bruno@clisp.org>
5432
5433         Work around unlink() bug on MacOS X 10.5.6.
5434         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
5435         attempting to unlink a parent directory.
5436         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
5437         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
5438         activate for the replacement function.
5439         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
5440
5441 2010-03-20  Bruno Haible  <bruno@clisp.org>
5442
5443         Fix link errors on Solaris 8.
5444         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
5445         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
5446
5447 2010-03-19  Jim Meyering  <meyering@redhat.com>
5448
5449         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
5450         The _LIBC implementation of build_range_exp correctly honors the
5451         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
5452         However, the non-_LIBC implementation would ignore that syntax-bit
5453         flag and return REG_ERANGE unconditionally.
5454         This change makes it honor that flag.
5455         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
5456         Make two pointer parameters "const".
5457         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
5458         (parse_bracket_exp): Update caller.
5459
5460         regex.m4: correct the reversed range endpoint ([b-a]) test
5461         * m4/regex.m4: When requiring that [b-a] evoke failure,
5462         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
5463         test pass once again for x86-based systems.
5464
5465 2010-03-19  Bruno Haible  <bruno@clisp.org>
5466
5467         scandir: Fix link error on Solaris 8.
5468         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
5469         macros.
5470
5471 2010-03-19  Bruno Haible  <bruno@clisp.org>
5472
5473         getusershell: Fix documentation.
5474         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
5475         module.
5476         * doc/glibc-functions/setusershell.texi: Likewise.
5477
5478         getusershell: Provide declaration, missing on Solaris 9.
5479         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
5480         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
5481         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
5482         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
5483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5484         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
5485         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
5486         HAVE_GETUSERSHELL.
5487         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
5488
5489 2010-03-19  Bruno Haible  <bruno@clisp.org>
5490
5491         wctype: Provide iswblank function.
5492         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
5493         exists and is fine.
5494         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
5495         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
5496         * tests/test-wctype.c (main): Re-enable the iswblank tests.
5497         * doc/posix-functions/iswblank.texi: Update.
5498
5499 2010-03-19  Bruno Haible  <bruno@clisp.org>
5500
5501         Tests of module 'pty' in C++ mode.
5502         * modules/pty-tests: New file.
5503         * tests/test-pty-c++.cc: New file.
5504         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5505
5506 2010-03-19  Eric Blake  <eblake@redhat.com>
5507
5508         logb: fix documentation
5509         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
5510         1.5 declaration bug.
5511
5512         forkpty, openpty: prefer glibc's const-safe prototype
5513         * lib/forkpty.c (rpl_forkpty): New file.
5514         * lib/openpty.c (rpl_openpty): Likewise.
5515         * modules/forkpty (Files): Distribute it.
5516         * modules/openpty (Files): Likewise.
5517         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
5518         check...
5519         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
5520         replacement for for non-const BSD signature.
5521         * modules/pty (Makefile.am): Substitute witnesses.
5522         * lib/pty.in.h (forkpty, openpty): Declare replacements.
5523         * tests/test-forkpty.c: Update signature check.
5524         * tests/test-openpty.c: Likewise.
5525         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
5526         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5527
5528         forkpty, openpty: split functions into new modules
5529         * modules/pty (Makefile.am): Substitute new witnesses.
5530         (Libraries): Move library detection...
5531         * modules/forkpty: ...into new module.
5532         * modules/openpty: Another new module.
5533         * modules/pty-tests: Rename and split...
5534         * modules/forkpty-tests: ...to this...
5535         * modules/openpty-tests: ...and this.
5536         * tests/test-pty.c: Rename and split...
5537         * tests/test-forkpty.c: ...to this...
5538         * tests/test-openpty.c: ...and this.
5539         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
5540         (gl_PTY): Split library searching...
5541         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
5542         (gl_FORKPTY, gl_OPENPTY): New macros.
5543         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
5544         * NEWS: Mention the split.
5545         * MODULES.html.sh (Misc): Document the modules.
5546         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
5547         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5548
5549         pty: improve replacement header
5550         * lib/pty.in.h: New file.
5551         * modules/pty (Files): Ship it.
5552         (Makefile.am): Always build replacement.
5553         * m4/pty.m4: Rename...
5554         * m4/pty_h.m4: ...to this.
5555         (gl_PTY): Modernize setting of witness macros; update check of
5556         forkpty to take proper advantage of cache.
5557         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
5558
5559         getopt: avoid compiler warning
5560         * lib/getopt.c (attribute_hidden): Remove unused macro.
5561
5562 2010-03-18  Bruno Haible  <bruno@clisp.org>
5563
5564         Fix link errors on Solaris 8.
5565         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
5566         * modules/search-tests (test_search_c___LDADD): Likewise.
5567         * modules/signal-tests (test_signal_c___LDADD): Likewise.
5568         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
5569         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
5570         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
5571         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
5572         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
5573         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
5574
5575 2010-03-18  Bruno Haible  <bruno@clisp.org>
5576
5577         Fix bug introduced on 2010-03-14.
5578         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
5579         (gl_SPAWN_H): Require it.
5580         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
5581         Reported by Simon Josefsson.
5582
5583 2010-03-18  Bruno Haible  <bruno@clisp.org>
5584
5585         Fix typo introduced on 2009-12-31.
5586         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
5587         posix_spawn_file_actions_adddup2.
5588
5589 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
5590         and Eric Blake  <eblake@redhat.com>
5591
5592         test-vc-list-files-git: make more robust
5593         * tests/test-vc-list-files-git.sh: Unset problematic environment
5594         variables.  Chain commands together.
5595
5596 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
5597
5598         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
5599         `AC_CHECK_DECL' invocation.
5600
5601 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
5602
5603         * lib/inttostr.c (inttostr): Make sure the invocation of verify
5604         appears before executable statements. Suggested by Petr Sumbera
5605         <Petr.Sumbera@Sun.COM>.
5606
5607 2010-03-14  Bruno Haible  <bruno@clisp.org>
5608
5609         * tests/test-flock.c (test_exclusive): Comment out a test that causes
5610         portability problems. Instead use a simpler test.
5611         (main): Check that invalid arguments are rejected only on Linux.
5612
5613 2010-03-14  Bruno Haible  <bruno@clisp.org>
5614
5615         Fix bug introduced on 2009-12-31.
5616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5617         gl_PREREQ_SYS_H_WINSOCK2 always.
5618         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
5619         SYS_SOCKET_H variable.
5620         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
5621         Update comments.
5622         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
5623         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5624         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5625         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5626         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5627
5628 2010-03-14  Bruno Haible  <bruno@clisp.org>
5629
5630         Fix values returned by sinl, cosl.
5631         * lib/trigl.h: Add specification comments.
5632         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
5633         that combines the values from the precomputed table with the values of
5634         the Chebyshev polynomials.
5635
5636 2010-03-14  Bruno Haible  <bruno@clisp.org>
5637
5638         Fix compilation error when modules 'posix_spawn[p]' are not used.
5639         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
5640         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
5641
5642 2010-03-14  Bruno Haible  <bruno@clisp.org>
5643
5644         Fix compilation error on mingw when module 'time_r' is not used.
5645         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
5646         is 1.
5647         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
5648         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5649         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
5650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
5651
5652 2010-03-14  Bruno Haible  <bruno@clisp.org>
5653
5654         Fix compilation error with Sun C.
5655         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
5656         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
5657         instead of GCC specific ULONG_LONG_MAX.
5658         * lib/xstrtoll.c: Likewise.
5659         * lib/xstrtoull.c: Likewise.
5660
5661 2010-03-13  Bruno Haible  <bruno@clisp.org>
5662
5663         Allow the user to disable C++ code and tests.
5664         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
5665         (gl_PROG_ANSI_CXX): Require it.
5666
5667 2010-03-13  Bruno Haible  <bruno@clisp.org>
5668
5669         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
5670         cases.
5671
5672 2010-03-13  Bruno Haible  <bruno@clisp.org>
5673
5674         Test that gnulib does not break the standard C++ headers.
5675         * tests/test-locale-c++2.cc: New file.
5676         * modules/locale-tests (Files): Add it.
5677         (Makefile.am): Compile it for test-locale-c++.
5678         * tests/test-math-c++2.cc: New file.
5679         * modules/math-tests (Files): Add it.
5680         (Makefile.am): Compile it for test-math-c++.
5681         * tests/test-signal-c++2.cc: New file.
5682         * modules/signal-tests (Files): Add it.
5683         (Makefile.am): Compile it for test-signal-c++.
5684         * tests/test-stdio-c++2.cc: New file.
5685         * modules/stdio-tests (Files): Add it.
5686         (Makefile.am): Compile it for test-stdio-c++.
5687         * tests/test-stdlib-c++2.cc: New file.
5688         * modules/stdlib-tests (Files): Add it.
5689         (Makefile.am): Compile it for test-stdlib-c++.
5690         * tests/test-string-c++2.cc: New file.
5691         * modules/string-tests (Files): Add it.
5692         (Makefile.am): Compile it for test-string-c++.
5693         * tests/test-time-c++2.cc: New file.
5694         * modules/time-tests (Files): Add it.
5695         (Makefile.am): Compile it for test-time-c++.
5696         Reported by John W. Eaton <jwe@gnu.org>.
5697
5698 2010-03-13  Bruno Haible  <bruno@clisp.org>
5699
5700         * gnulib-tool (func_usage): Clarify which options are available for
5701         --create-testdir and --create-megatestdir.
5702
5703 2010-03-13  Bruno Haible  <bruno@clisp.org>
5704
5705         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
5706         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
5707         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
5708         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5709         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
5710         when appropriate.
5711         Reported by Jim Meyering.
5712
5713 2010-03-12  Simon Josefsson  <simon@josefsson.org>
5714
5715         * gnulib-tool (func_import): Explain origin of code.
5716
5717 2010-03-12  Bruno Haible  <bruno@clisp.org>
5718
5719         Fix problem with automake's definition of CXXLINK.
5720         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
5721         Reported by Simon Josefsson and Ludovic Courtès.
5722
5723 2010-03-12  Bruno Haible  <bruno@clisp.org>
5724
5725         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
5726         stable releases.
5727
5728 2010-03-11  Bruno Haible  <bruno@clisp.org>
5729
5730         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
5731         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
5732         whether the system provides one variant or multiple variants of the
5733         function.
5734         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
5735         C++ compilers.
5736         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
5737         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
5738         Reported by Jim Meyering.
5739
5740 2010-03-09  Simon Josefsson  <simon@josefsson.org>
5741
5742         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
5743
5744 2010-03-08  Bruno Haible  <bruno@clisp.org>
5745
5746         gnulib-tool: Add support for --libtool in --create-testdir.
5747         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
5748         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
5749
5750 2010-03-08  Eric Blake  <eblake@redhat.com>
5751
5752         gnulib-tool.texi: mention possibility of git submodule
5753         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
5754         submodules.
5755         * doc/.gitignore: Ignore another generated file.
5756
5757 2010-03-08  Karl Berry  <karl@gnu.org>
5758
5759         * doc/gnulib-tool.texi (VCS Issues): Mention third option
5760         of committing gnulib files while skipping others.
5761
5762 2010-03-07  Bruno Haible  <bruno@clisp.org>
5763
5764         Tests of module 'wctype' in C++ mode.
5765         * tests/test-wctype-c++.cc: New file.
5766         * modules/wctype-tests (Files): Add it and tests/signature.h.
5767         (Depends-on): Add ansi-c++-opt.
5768         (Makefile.am): Arrange to compile and run test-wctype-c++.
5769
5770         Tests of module 'wchar' in C++ mode.
5771         * tests/test-wchar-c++.cc: New file.
5772         * modules/wchar-tests (Files): Add it and tests/signature.h.
5773         (Depends-on): Add ansi-c++-opt.
5774         (Makefile.am): Arrange to compile and run test-wchar-c++.
5775         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
5776         gl_MODULE_INDICATOR.
5777
5778         Tests of module 'unistd' in C++ mode.
5779         * tests/test-unistd-c++.cc: New file.
5780         * modules/unistd-tests (Files): Add it and tests/signature.h.
5781         (Depends-on): Add ansi-c++-opt.
5782         (Makefile.am): Arrange to compile and run test-unistd-c++.
5783         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
5784         gl_MODULE_INDICATOR.
5785
5786         Tests of module 'time' in C++ mode.
5787         * tests/test-time-c++.cc: New file.
5788         * modules/time-tests (Files): Add it and tests/signature.h.
5789         (Depends-on): Add ansi-c++-opt.
5790         (Makefile.am): Arrange to compile and run test-time-c++.
5791         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5792
5793         Tests of module 'sys_time' in C++ mode.
5794         * tests/test-sys_time-c++.cc: New file.
5795         * modules/sys_time-tests (Files): Add it and tests/signature.h.
5796         (Depends-on): Add ansi-c++-opt.
5797         (Makefile.am): Arrange to compile and run test-sys_time-c++.
5798         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
5799         gl_MODULE_INDICATOR.
5800
5801         Tests of module 'sys_stat' in C++ mode.
5802         * tests/test-sys_stat-c++.cc: New file.
5803         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
5804         (Depends-on): Add ansi-c++-opt.
5805         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
5806         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
5807         gl_MODULE_INDICATOR.
5808
5809         Tests of module 'sys_socket' in C++ mode.
5810         * tests/test-sys_socket-c++.cc: New file.
5811         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
5812         (Depends-on): Add ansi-c++-opt.
5813         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
5814         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
5815         gl_MODULE_INDICATOR.
5816
5817         Tests of module 'sys_select' in C++ mode.
5818         * tests/test-sys_select-c++.cc: New file.
5819         * modules/sys_select-tests (Files): Add it and tests/signature.h.
5820         (Depends-on): Add ansi-c++-opt.
5821         (Makefile.am): Arrange to compile and run test-sys_select-c++.
5822         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
5823         gl_MODULE_INDICATOR.
5824
5825         Tests of module 'sys_ioctl' in C++ mode.
5826         * tests/test-sys_ioctl-c++.cc: New file.
5827         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
5828         (Depends-on): Add ansi-c++-opt.
5829         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
5830         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
5831         gl_MODULE_INDICATOR.
5832
5833         Tests of module 'string' in C++ mode.
5834         * tests/test-string-c++.cc: New file.
5835         * modules/string-tests (Files): Add it and tests/signature.h.
5836         (Depends-on): Add ansi-c++-opt.
5837         (Makefile.am): Arrange to compile and run test-string-c++.
5838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
5839         gl_MODULE_INDICATOR.
5840
5841         Tests of module 'stdlib' in C++ mode.
5842         * tests/test-stdlib-c++.cc: New file.
5843         * modules/stdlib-tests (Files): Add it and tests/signature.h.
5844         (Depends-on): Add ansi-c++-opt.
5845         (Makefile.am): Arrange to compile and run test-stdlib-c++.
5846         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
5847         gl_MODULE_INDICATOR.
5848
5849         Tests of module 'stdio' in C++ mode.
5850         * tests/test-stdio-c++.cc: New file.
5851         * modules/stdio-tests (Files): Add it and tests/signature.h.
5852         (Depends-on): Add ansi-c++-opt.
5853         (Makefile.am): Arrange to compile and run test-stdio-c++.
5854         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
5855         gl_MODULE_INDICATOR.
5856
5857         Tests of module 'spawn' in C++ mode.
5858         * tests/test-spawn-c++.cc: New file.
5859         * modules/spawn-tests (Files): Add it and tests/signature.h.
5860         (Depends-on): Add ansi-c++-opt.
5861         (Makefile.am): Arrange to compile and run test-spawn-c++.
5862         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
5863         gl_MODULE_INDICATOR.
5864
5865         Tests of module 'signal' in C++ mode.
5866         * tests/test-signal-c++.cc: New file.
5867         * modules/signal-tests (Files): Add it and tests/signature.h.
5868         (Depends-on): Add ansi-c++-opt.
5869         (Makefile.am): Arrange to compile and run test-signal-c++.
5870         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
5871         gl_MODULE_INDICATOR.
5872
5873         Tests of module 'search' in C++ mode.
5874         * tests/test-search-c++.cc: New file.
5875         * modules/search-tests (Files): Add it and tests/signature.h.
5876         (Depends-on): Add ansi-c++-opt.
5877         (Makefile.am): Arrange to compile and run test-search-c++.
5878         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
5879         gl_MODULE_INDICATOR.
5880
5881         Tests of module 'math' in C++ mode.
5882         * tests/test-math-c++.cc: New file.
5883         * modules/math-tests (Files): Add it and tests/signature.h.
5884         (Depends-on): Add ansi-c++-opt.
5885         (Makefile.am): Arrange to compile and run test-math-c++.
5886         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5887
5888         Tests of module 'locale' in C++ mode.
5889         * tests/test-locale-c++.cc: New file.
5890         * modules/locale-tests (Files): Add it and tests/signature.h.
5891         (Depends-on): Add ansi-c++-opt.
5892         (Makefile.am): Arrange to compile and run test-locale-c++.
5893         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
5894         gl_MODULE_INDICATOR.
5895
5896         Tests of module 'langinfo' in C++ mode.
5897         * tests/test-langinfo-c++.cc: New file.
5898         * modules/langinfo-tests (Files): Add it and tests/signature.h.
5899         (Depends-on): Add ansi-c++-opt.
5900         (Makefile.am): Arrange to compile and run test-langinfo-c++.
5901         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
5902         gl_MODULE_INDICATOR.
5903
5904         Tests of module 'iconv-h' in C++ mode.
5905         * tests/test-iconv-h-c++.cc: New file.
5906         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
5907         (Depends-on): Add ansi-c++-opt.
5908         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
5909
5910         Tests of module 'glob' in C++ mode.
5911         * tests/test-glob-c++.cc: New file.
5912         * modules/glob-tests (Files): Add it.
5913         (Depends-on): Add ansi-c++-opt.
5914         (Makefile.am): Arrange to compile and run test-glob-c++.
5915
5916         Tests of module 'fcntl-h' in C++ mode.
5917         * tests/test-fcntl-h-c++.cc: New file.
5918         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5919         (Depends-on): Add ansi-c++-opt.
5920         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5921         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5922         gl_MODULE_INDICATOR.
5923
5924         Tests of module 'dirent' in C++ mode.
5925         * tests/test-dirent-c++.cc: New file.
5926         * modules/dirent-tests (Files): Add it and tests/signature.h.
5927         (Depends-on): Add ansi-c++-opt.
5928         (Makefile.am): Arrange to compile and run test-dirent-c++.
5929         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5930         gl_MODULE_INDICATOR.
5931
5932         New module 'ansi-c++-opt'.
5933         * modules/ansi-c++-opt: New file.
5934         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5935
5936         Document C++ namespace mode.
5937         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5938
5939         wctype: Avoid #define replacements in C++ mode.
5940         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5941         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5942         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5943         In C++, define a namespaced alias symbol.
5944         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5945         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5946         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5947         rule.
5948
5949         wchar: Avoid #define replacements in C++ mode.
5950         * lib/wchar.in.h: Include c++defs.h.
5951         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5952         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5953         symbol.
5954         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
5955         * modules/wchar (Depends-on): Add c++defs.
5956         (Makefile.am): Update wchar.h rule.
5957
5958         unistd: Avoid #define replacements in C++ mode.
5959         * lib/unistd.in.h: Include c++defs.h.
5960         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
5961         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
5962         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
5963         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
5964         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
5965         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
5966         symbol.
5967         (environ): Update.
5968         * modules/unistd (Depends-on): Add c++defs.
5969         (Makefile.am): Update unistd.h rule.
5970
5971         time: Avoid #define replacements in C++ mode.
5972         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
5973         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
5974         define a namespaced alias symbol.
5975         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
5976         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
5977         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
5978         * modules/time (Depends-on): Add c++defs, warn-on-use.
5979         (Makefile.am): Update time.h rule.
5980         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5981         * modules/nanosleep (configure.ac): Likewise.
5982         * modules/strptime (configure.ac): Likewise.
5983         * modules/timegm (configure.ac): Likewise.
5984
5985         sys_time: Avoid #define replacements in C++ mode.
5986         * lib/sys_time.in.h: Include c++defs.h.
5987         (gettimeofday): In C++, define a namespaced alias symbol.
5988         * modules/sys_time (Depends-on): Add c++defs.
5989         (Makefile.am): Update sys/time.h rule.
5990
5991         sys_stat: Avoid #define replacements in C++ mode.
5992         * lib/sys_stat.in.h: Include c++defs.h.
5993         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
5994         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
5995         namespaced alias symbol.
5996         In C++, define a namespaced alias symbol.
5997         * modules/sys_stat (Depends-on): Add c++defs.
5998         (Makefile.am): Update sys/stat.h rule.
5999
6000         sys_socket: Avoid #define replacements in C++ mode.
6001         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6002         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6003         definitions also when the system has a <sys/socket.h>.
6004         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6005         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6006         In C++, define a namespaced alias symbol.
6007         * modules/sys_socket (Depends-on): Add c++defs.
6008         (Makefile.am): Update sys/socket.h rule.
6009
6010         sys_select: Avoid #define replacements in C++ mode.
6011         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6012         definitions also when the system has a <sys/select.h>.
6013         (select): In C++, define a namespaced alias symbol.
6014         * modules/sys_select (Depends-on): Add c++defs.
6015         (Makefile.am): Update sys/select.h rule.
6016
6017         sys_ioctl: Avoid #define replacements in C++ mode.
6018         * lib/sys_ioctl.in.h: Include c++defs.h.
6019         (ioctl): In C++, define a namespaced alias symbol.
6020         * modules/sys_ioctl (Depends-on): Add c++defs.
6021         (Makefile.am): Update sys/ioctl.h rule.
6022
6023         string: Avoid #define replacements in C++ mode.
6024         * lib/string.in.h: Include c++defs.h.
6025         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6026         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6027         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6028         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6029         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6030         * modules/string (Depends-on): Add c++defs.
6031         (Makefile.am): Update string.h rule.
6032
6033         stdlib: Avoid #define replacements in C++ mode.
6034         * lib/stdlib.in.h: Include c++defs.h.
6035         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6036         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6037         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6038         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6039         symbol.
6040         * modules/stdlib (Depends-on): Add c++defs.
6041         (Makefile.am): Update stdlib.h rule.
6042
6043         stdio: Avoid #define replacements in C++ mode.
6044         * lib/stdio.in.h: Include c++defs.h.
6045         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6046         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6047         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6048         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6049         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6050         namespaced alias symbol.
6051         * modules/stdio (Depends-on): Add c++defs.
6052         (Makefile.am): Update stdio.h rule.
6053
6054         spawn: Avoid #define replacements in C++ mode.
6055         * lib/spawn.in.h: Include c++defs.h.
6056         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6057         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6058         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6059         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6060         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6061         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6062         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6063         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6064         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6065         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6066         In C++, define a namespaced alias symbol.
6067         * modules/spawn (Depends-on): Add c++defs.
6068         (Makefile.am): Update spawn.h rule.
6069
6070         signal: Avoid #define replacements in C++ mode.
6071         * lib/signal.in.h: Include c++defs.h.
6072         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6073         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6074         namespaced alias symbol.
6075         * modules/signal (Depends-on): Add c++defs.
6076         (Makefile.am): Update signal.h rule.
6077
6078         search: Avoid #define replacements in C++ mode.
6079         * lib/search.in.h: Include c++defs.h.
6080         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6081         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6082         symbol.
6083         * modules/search (Depends-on): Add c++defs.
6084         (Makefile.am): Update search.h rule.
6085
6086         math: Avoid #define replacements in C++ mode.
6087         * lib/math.in.h: Include c++defs.h.
6088         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6089         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6090         trunc, truncl): In C++, define a namespaced alias symbol.
6091         * modules/math (Depends-on): Add c++defs.
6092         (Makefile.am): Update math.h rule.
6093
6094         locale: Avoid #define replacements in C++ mode.
6095         * lib/locale.in.h: Include c++defs.h.
6096         (duplocale): In C++, define a namespaced alias symbol.
6097         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6098         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6099         * modules/locale (Depends-on): Add c++defs.
6100         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6101
6102         langinfo: Avoid #define replacements in C++ mode.
6103         * lib/langinfo.in.h: Include c++defs.h.
6104         (nl_langinfo): In C++, define a namespaced alias symbol.
6105         * modules/langinfo (Depends-on): Add c++defs.
6106         (Makefile.am): Update langinfo.h rule.
6107
6108         iconv-h: Avoid #define replacements in C++ mode.
6109         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6110         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6111         symbol.
6112         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6113         whenever iconv is present.
6114         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6115         (Makefile.am): Update iconv.h rule.
6116
6117         glob: Avoid #define replacements in C++ mode.
6118         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6119         (_gl_glob_errfunc_fn): New type.
6120         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6121         symbol.
6122         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6123         (Makefile.am): Update glob.h rule.
6124
6125         fcntl-h: Avoid #define replacements in C++ mode.
6126         * lib/fcntl.in.h: Include c++defs.h.
6127         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6128         * modules/fcntl-h (Depends-on): Add c++defs.
6129         (Makefile.am): Update fcntl.h rule.
6130
6131         dirent: Avoid #define replacements in C++ mode.
6132         * lib/dirent.in.h: Include c++defs.h.
6133         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6134         namespaced alias symbol.
6135         (dirfd): Update declaration.
6136         * modules/dirent (Depends-on): Add c++defs.
6137         (Makefile.am): Update dirent.h rule.
6138
6139         ctype: Make it usable in C++ code.
6140         * lib/ctype.in.h: Include c++defs.h.
6141         (isblank): Declare as extern "C".
6142         * modules/ctype (Depends-on): Add c++defs.
6143         (Makefile.am): Update ctype.h rule.
6144
6145         New module 'c++defs'.
6146         * modules/c++defs: New file.
6147         * build-aux/c++defs.h: New file.
6148         Reported by John W. Eaton <jwe@gnu.org>.
6149
6150 2010-03-07  Bruno Haible  <bruno@clisp.org>
6151
6152         logb: Provide missing declaration for Cygwin.
6153         * lib/math.in.h (logb): New declaration.
6154         * m4/logb.m4: New file.
6155         * modules/logb (Files): Add m4/logb.m4.
6156         (Depends-on): Add math.
6157         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6158         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6160         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6161         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6162
6163 2010-03-07  Bruno Haible  <bruno@clisp.org>
6164
6165         Fix test-cond link error.
6166         * tests/test-cond.c: Include <stdio.h>.
6167
6168 2010-03-07  Bruno Haible  <bruno@clisp.org>
6169
6170         Fix test-dirent-safer link error.
6171         * modules/dirent-safer-tests (Makefile.am): Define
6172         test_dirent_safer_LDADD.
6173
6174 2010-03-07  Bruno Haible  <bruno@clisp.org>
6175
6176         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6177         among default module list.
6178
6179 2010-03-07  Bruno Haible  <bruno@clisp.org>
6180
6181         Fix link error on platforms with GNU libiconv.
6182         * modules/unistr/u8-strcoll-tests (Makefile): Define
6183         test_u8_strcoll_LDADD.
6184         * modules/unistr/u16-strcoll-tests (Makefile): Define
6185         test_u16_strcoll_LDADD.
6186         * modules/unistr/u32-strcoll-tests (Makefile): Define
6187         test_u32_strcoll_LDADD.
6188
6189 2010-03-07  Bruno Haible  <bruno@clisp.org>
6190
6191         Use POSIX declarations for socket functions.
6192         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6193         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6194         rpl_sendto): Change declaration to match POSIX.
6195         * lib/connect.c (rpl_connect): Likewise.
6196         * lib/accept.c (rpl_accept): Likewise.
6197         * lib/bind.c (rpl_bind): Likewise.
6198         * lib/getpeername.c (rpl_getpeername): Likewise.
6199         * lib/getsockname.c (rpl_getsockname): Likewise.
6200         * lib/recv.c (rpl_recv): Likewise.
6201         * lib/send.c (rpl_send): Likewise.
6202         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6203         * lib/sendto.c (rpl_sendto): Likewise.
6204
6205 2010-03-06  Bruno Haible  <bruno@clisp.org>
6206
6207         Clarify access, euidaccess, faccessat.
6208         * doc/posix-functions/faccessat.texi: Mention security problem under
6209         "Other problems", not "Portability problems".
6210         * doc/posix-functions/access.texi: Likewise. Mention a related security
6211         problem.
6212         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6213         * lib/euidaccess.c: Add comments about platforms.
6214         * lib/unistd.in.h (access, euidaccess): Add warnings.
6215
6216 2010-03-07  Bruno Haible  <bruno@clisp.org>
6217
6218         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6219         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6220         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6221         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6222         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6223         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6224         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6225         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6226         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6228         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6229         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6230         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6231         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6232         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6233         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6234         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6235         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6236         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6237         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6238         Likewise.
6239         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6240         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6241         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6242         Likewise.
6243         * tests/test-spawn.c (main): Make it work when
6244         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6245
6246 2010-03-07  Bruno Haible  <bruno@clisp.org>
6247
6248         Fix incorrect Makefile.am generation in German locale.
6249         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6250         Execute sed command with character range in C locale.
6251
6252 2010-03-06  Bruno Haible  <bruno@clisp.org>
6253
6254         Tests for module 'iconv-h'.
6255         * modules/iconv-h-tests: New file.
6256         * tests/test-iconv-h.c: New file.
6257
6258         New module 'iconv-h'.
6259         * modules/iconv-h: New file.
6260         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6261         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6262         (configure.ac): Remove gl_ICONV_H.
6263         (Makefile.am): Remove rule for iconv.h.
6264
6265 2010-03-06  Bruno Haible  <bruno@clisp.org>
6266
6267         More consistent naming of *.m4 files.
6268         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6269         * modules/wctype (Files): Update.
6270
6271         More consistent naming of *.m4 files.
6272         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6273         * modules/wchar (Files): Update.
6274
6275 2010-03-06  Jim Meyering  <meyering@redhat.com>
6276
6277         euidaccess: relax license to LGPLv2+
6278         * modules/euidaccess (License): Relax to LGPLv2+.
6279
6280 2010-03-06  Bruno Haible  <bruno@clisp.org>
6281
6282         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6283         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6284         (Makefile.am): Augment lib_SOURCES instead.
6285
6286 2010-03-04  Jim Meyering  <meyering@redhat.com>
6287
6288         utime: remove obsolete module
6289         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6290         unnecessary for years, and has been marked as obsolete for 10 months.
6291         * modules/utime: Remove file.
6292         * lib/utime.c: Remove file.
6293         * m4/utime.m4: Remove file.
6294         * m4/utimes-null.m4: Remove file.
6295         * doc/posix-functions/utime.texi (utime): Remove reference to
6296         the module.  Move the sole "fixed by gnulib" item into the
6297         "problems not fixed by Gnulib" list.
6298         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6299
6300 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6301
6302         * modules/exit (License): Relax license to LGPLv2+.
6303         (Status): Mark as obsolete.
6304         * NEWS: Mention deprecated 'exit' module.
6305         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6306         of now obsolete 'exit'.
6307
6308 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6309
6310         fts-lgpl: remove unused module
6311         * modules/fts-lgpl: Remove.
6312         * MODULES.html.sh (func_all_modules): Adjust.
6313         * check-module (find_included_lib_files): Adjust.
6314         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6315
6316 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6317
6318         copy-acl: enhance Solaris ACL error handling
6319         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6320         * lib/set-mode-acl.c (qset_acl): Likewise.
6321
6322 2010-03-02  Bruno Haible  <bruno@clisp.org>
6323
6324         spawn: Don't override the system defined values on FreeBSD 8.
6325         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6326         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6327         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6328         if HAVE_POSIX_SPAWN is 1.
6329         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6330
6331 2010-03-01  Bruno Haible  <bruno@clisp.org>
6332
6333         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6334         regarding Automake.
6335
6336 2010-02-25  Bruno Haible  <bruno@clisp.org>
6337
6338         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6339         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6340         setting, not afterwards.
6341         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6342
6343 2010-02-24  Eric Blake  <eblake@redhat.com>
6344
6345         bootstrap, git-version-gen: use timestamp
6346         * build-aux/git-version-gen (scriptversion): Force UTC.
6347         * build-aux/bootstrap (scriptversion): New variable.
6348
6349         bootstrap: allow older git
6350         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6351         older than 1.6.4.  Requested by the libvirt project.
6352
6353 2010-02-23  Eric Blake  <eblake@redhat.com>
6354
6355         warn-on-use: work with old autoconf
6356         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6357         AS_VAR semantics of autoconf 2.60.
6358         Reported by Bruno Haible.
6359
6360         bootstrap: improve some comments
6361         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6362         clarification comments.
6363
6364         gettimeofday: provide correct function
6365         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
6366         when replacement is declared, otherwise provide gettimeofday.
6367         Reported by Michael Goffioul.
6368
6369 2010-02-23  Jim Meyering  <meyering@redhat.com>
6370
6371         lib-ignore: relax license to "unlimited", not LGPLv2+
6372         * modules/lib-ignore (License): Relax to "unlimited".
6373
6374 2010-02-23  Jim Meyering  <meyering@redhat.com>
6375
6376         lib-ignore: relax license to LGPLv2+
6377         * modules/lib-ignore (License): Relax to LGPLv2+.
6378
6379 2010-02-22  Eric Blake  <eblake@redhat.com>
6380
6381         lseek: avoid bash 3.2 broken pipe bug
6382         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
6383         warning from bash 3.2.
6384         Reported by Ben Pfaff, with analysis from Bruno Haible.
6385
6386         bootstrap: support non-FSF copyright holder
6387         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
6388         bootstrap.conf override of COPYRIGHT_HOLDER.
6389         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
6390
6391         bootstrap: interoperate with gettext 0.14.1
6392         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
6393
6394         bootstrap: allow for alternate submodule location
6395         * build-aux/bootstrap (gnulib_path): New variable; use instead of
6396         hardcoding submodule location.
6397         (gnulib_mk): Allow direct use of Makefile.am.
6398
6399         bootstrap: use GNULIB_SRCDIR to reduce disk usage
6400         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
6401         rather than reconfiguring where the submodule points.
6402
6403         gettimeofday: restore support for platforms that lack function
6404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
6405         replacement if function is missing.
6406         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
6407         * modules/sys_time (Makefile.am): Substitute it.
6408         * lib/sys_time.in.h (gettimeofday): Check it.
6409         Reported by Michael Goffioul.
6410
6411 2010-02-21  Bruno Haible  <bruno@clisp.org>
6412
6413         * lib/stdio.in.h (obstack_printf): Fix typo.
6414
6415 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
6416
6417         vc-list-files: use bzr ls's -R option
6418         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
6419         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
6420
6421 2010-02-21  Jim Meyering  <meyering@redhat.com>
6422
6423         init.sh: fix EXEEXT shims to work also for names like test-prog
6424         * tests/init.sh: Re-exec a better shell, when needed.
6425         If the current shell lacks support for posix $(...), an init.sh-using
6426         test will now try to find a shell that supports that.  If EXEEXT is
6427         nonempty, we also require support for hyphen-in-alias-name and shell
6428         substitutions like ${var#glob}.  Failure to find such a shell results
6429         in a skipped test.
6430
6431 2010-02-21  Bruno Haible  <bruno@clisp.org>
6432
6433         Really work around around "broken pipe" error message from bash 3.2.
6434         * gnulib-tool (func_reset_sigpipe): Remove function.
6435         (echo): In bash 3.2, define to a function that uses printf.
6436         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
6437
6438 2010-02-20  Bruno Haible  <bruno@clisp.org>
6439
6440         Restore support for automake 1.9.6 with autoconf 2.61.
6441         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
6442         Reported by James Youngman <jay@gnu.org>.
6443
6444 2010-02-20  Bruno Haible  <bruno@clisp.org>
6445
6446         Improve *printf warning condition.
6447         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
6448         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
6449         and the function is overridden due to SIGPIPE emulation.
6450
6451 2010-02-20  Bruno Haible  <bruno@clisp.org>
6452
6453         * lib/stdio.in.h: Tweak comments.
6454
6455 2010-02-19  Bruno Haible  <bruno@clisp.org>
6456
6457         Make it easier to find modules. New gnulib-tool option '--find'.
6458         * gnulib-tool: New option --find.
6459         (func_usage): Document it.
6460         (func_sanitize_modulelist): New function, extracted from
6461         func_all_modules.
6462         (func_all_modules): Invoke it.
6463         * doc/gnulib-tool.texi (Which modules?): New node.
6464
6465 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
6466
6467         * lib/sys_select.in.h: Provide select replacement even if
6468         sys/select.h exists on a system, for Interix.
6469
6470 2010-02-18  Jim Meyering  <meyering@redhat.com>
6471
6472         init.sh: don't use $(...) just yet
6473         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
6474         to accommodate e.g., Solaris' /bin/sh.
6475
6476 2010-02-17  Bruno Haible  <bruno@clisp.org>
6477
6478         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
6479         Reported by Ludovic Courtès <ludo@gnu.org>.
6480
6481 2010-02-16  Simon Josefsson  <simon@josefsson.org>
6482
6483         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
6484         linking with -lintl.
6485
6486 2010-02-17  Simon Josefsson  <simon@josefsson.org>
6487
6488         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
6489         if not provided by the system's netdb.h.  Reported by
6490         ludo@gnu.org (Ludovic Courtès).
6491
6492 2010-02-15  Jim Meyering  <meyering@redhat.com>
6493
6494         init.sh: improve portability and efficiency
6495         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
6496         "dummy" in a for loop.
6497         Use '!', not '^' to select the complement of a character set used
6498         in a "case" statement.
6499         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
6500         Suggestions from Eric Blake.
6501
6502         init.sh: automatically accommodate programs with the .exe suffix
6503         Automatically arrange for an invocation of "prog" to execute the
6504         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
6505         may use the simpler "prog", yet still work when built on a system
6506         that requires specifying the added suffix.
6507         Do this by constructing a function named "prog" that invokes
6508         "prog.exe" for each .exe file in selected directories.
6509         * tests/init.sh (find_exe_basenames_): New function.
6510         (create_exe_shim_functions_): New function.
6511         (path_prepend_): Use it.
6512
6513         maint.mk: mark syntax-check sc_*.m rules as .PHONY
6514         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
6515         "make -t syntax-check" doesn't create a ton of sc_*.m files.
6516
6517 2010-02-14  Jim Meyering  <meyering@redhat.com>
6518
6519         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
6520         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
6521         (sc_prohibit_hash_pjw_without_use): New rule.
6522
6523         maint.mk: allow the default upload destination dir to be overridden
6524         * top/maint.mk (upload_dest_dir_): Define with a default that
6525         preserves the status quo.
6526         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
6527         Reported by Peter Simons.
6528
6529         maint.mk: prohibit inclusion of "hash.h" without_use
6530         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
6531
6532 2010-02-10  Jim Meyering  <meyering@redhat.com>
6533
6534         maint.mk: prohibit inclusion of "ignore-value.h" without_use
6535         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
6536
6537 2010-02-09  Eric Blake  <ebb9@byu.net>
6538         and Bruno Haible  <bruno@clisp.org>
6539
6540         obstack-printf-posix: ensure declaration
6541         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
6542         extracted from gl_FUNC_OBSTACK_PRINTF.
6543         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
6544         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
6545         Likewise.
6546         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
6547         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
6548         0.
6549
6550 2010-02-08  Bruno Haible  <bruno@clisp.org>
6551
6552         gnulib-tool: Fix typo in 2010-02-07 commit.
6553         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
6554         Reported by Eric Blake.
6555
6556 2010-02-07  Bruno Haible  <bruno@clisp.org>
6557
6558         gnulib-tool: Fix up caching patches.
6559         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
6560         option --no-cache. Use associative arrays when supported by the shell.
6561         (sed_comments): New variable.
6562         (modcache): Renamed from do_cache.
6563         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
6564         abbreviate unnecessarily.
6565         (have_associative): New variable.
6566         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
6567         way also for ksh and zsh.
6568         (func_init_sed_convert_to_cache_statements): New function, extracted
6569         from func_cache_lookup_module. Add support for associative arrays.
6570         Don't set the c_MODULE_cached variable here. Ignore all lines before
6571         the first field header. Remove only the final newline, not all trailing
6572         newlines. Support empty fields correctly. Limit the use of 'eval' to
6573         assignments.
6574         (func_get_description, func_get_status, func_get_notice,
6575         func_get_applicability, func_get_filelist, func_get_dependencies,
6576         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
6577         func_get_automake_snippet, func_get_include_directive,
6578         func_get_link_directive, func_get_license, func_get_maintainer):
6579         Update documentation. List the unoptimized code first. Add support for
6580         associative arrays. Limit the use of 'eval' to assignments.
6581         (func_get_applicability): Undo stylistic pessimisations.
6582         (func_get_automake_snippet, func_get_include_directive): Reduce code
6583         duplication.
6584         (func_modules_transitive_closure, func_modules_add_dummy,
6585         func_modules_notice, func_modules_to_filelist, func_add_file,
6586         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
6587         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
6588         func_create_testdir, func_create_megatestdir): Update documentation.
6589
6590 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6591
6592         * gnulib-tool (func_cache_lookup_module): Store the module name
6593         belonging to the cache variable; error out if two different
6594         module names map to the same cache variable name.
6595
6596 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6597
6598         gnulib-tool: Make caching optional.
6599         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
6600         Update matching short versions of --no-changelog.
6601         (func_usage): Update.
6602         (sed_extract_cache_prog): Renamed from ...
6603         (sed_extract_prog): ... this; revert to old extraction script.
6604         (func_get_description, func_get_status)
6605         (func_get_notice, func_get_applicability, func_get_filelist)
6606         (func_get_dependencies, func_get_autoconf_early_snippet)
6607         (func_get_autoconf_snippet, func_get_automake_snippet)
6608         (func_get_include_directive, func_get_link_directive)
6609         (func_get_license, func_get_maintainer): If $do_cache is false,
6610         use old, non-caching extraction scripts.
6611         Suggestion by Bruno Haible.
6612
6613 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6614
6615         gnulib-tool: cache module metainformation.
6616         * gnulib-tool (sed_extract_prog): Match newline before each
6617         header, and rewrite header to a shell variable suffix.
6618         (func_cache_var, func_cache_lookup_module): New functions,
6619         to turn a module name into a cache variable prefix, and to
6620         look up and cache module metainformation.
6621         (func_get_description, func_get_status)
6622         (func_get_notice, func_get_applicability, func_get_filelist)
6623         (func_get_dependencies, func_get_autoconf_early_snippet)
6624         (func_get_autoconf_snippet, func_get_automake_snippet)
6625         (func_get_include_directive, func_get_link_directive)
6626         (func_get_license, func_get_maintainer): Use
6627         func_cache_lookup_module.
6628
6629 2010-02-07  Bruno Haible  <bruno@clisp.org>
6630
6631         fnctl: Fix missing dependency.
6632         * modules/fcntl (Depends-on): Add getdtablesize.
6633         Reported by John W. Eaton <jwe@gnu.org>.
6634
6635 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6636
6637         Argp: fix recognition of short alias options.
6638
6639         * lib/argp-parse.c (convert_options): Fix improper use of
6640         `|' between character values.
6641         * tests/test-argp.c (group1_option): New alias option
6642         --read (-r).
6643         (group1_parser): Special handling for 'r'.
6644         (test15): New test case.
6645         (test_fun): Add test15.
6646         * tests/test-argp-2.sh: Update expected --help and --usage
6647         outputs.
6648
6649 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6650
6651         * tests/test-argp.c: Fix indentation.
6652
6653 2010-02-04  Eric Blake  <ebb9@byu.net>
6654
6655         gettimeofday: expose type of second argument
6656         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
6657         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
6658         * tests/test-gettimeofday.c: Use it to silence warning.
6659         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
6660         the issue.
6661
6662 2010-02-03  Jim Meyering  <meyering@redhat.com>
6663
6664         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
6665         * lib/regcomp.c (TYPE_SIGNED): Define.
6666         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
6667
6668         regcomp.c: avoid a new -Wshadow warning
6669         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
6670
6671 2010-02-01  Jim Meyering  <meyering@redhat.com>
6672
6673         removing useless parentheses in cpp #define directives
6674         For motivation, see commit c0221df4, "define STREQ(a,b)
6675         consistently, removing useless parentheses"
6676         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
6677         * lib/mountlist.c (MNT_IGNORE): Likewise.
6678         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
6679
6680 2010-02-01  Eric Blake  <ebb9@byu.net>
6681
6682         sys_time: use link-warning
6683         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
6684         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
6685         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
6686         * modules/sys_time (Depends-on): Add warn-on-use.
6687         (Makefile.am): Always build replacement.
6688         (configure.ac): Update substitutions.
6689         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
6690         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
6691         bother with SYS_TIME_H.
6692         * modules/gettimeofday (configure.ac): Declare indicator.
6693         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
6694         in use.
6695
6696         closein-tests: silence compiler warning
6697         * tests/test-closein.c (main): Ignore fread result.
6698         * modules/closein-tests (Depends-on): Add ignore-value.
6699
6700         tests: silence warning about system return
6701         * tests/test-areadlink-with-size.c (main): Ignore system result.
6702         * tests/test-areadlink.c (main): Likewise.
6703         * tests/test-areadlinkat-with-size.c (main): Likewise.
6704         * tests/test-areadlinkat.c (main): Likewise.
6705         * tests/test-canonicalize-lgpl.c (main): Likewise.
6706         * tests/test-canonicalize.c (main): Likewise.
6707         * tests/test-chown.c (main): Likewise.
6708         * tests/test-fchownat.c (main): Likewise.
6709         * tests/test-fdutimensat.c (main): Likewise.
6710         * tests/test-fstatat.c (main): Likewise.
6711         * tests/test-futimens.c (main): Likewise.
6712         * tests/test-lchown.c (main): Likewise.
6713         * tests/test-link.c (main): Likewise.
6714         * tests/test-linkat.c (main): Likewise.
6715         * tests/test-lstat.c (main): Likewise.
6716         * tests/test-mkdir.c (main): Likewise.
6717         * tests/test-mkdirat.c (main): Likewise.
6718         * tests/test-mkfifo.c (main): Likewise.
6719         * tests/test-mkfifoat.c (main): Likewise.
6720         * tests/test-mknod.c (main): Likewise.
6721         * tests/test-readlink.c (main): Likewise.
6722         * tests/test-remove.c (main): Likewise.
6723         * tests/test-rename.c (main): Likewise.
6724         * tests/test-renameat.c (main): Likewise.
6725         * tests/test-rmdir.c (main): Likewise.
6726         * tests/test-symlink.c (main): Likewise.
6727         * tests/test-symlinkat.c (main): Likewise.
6728         * tests/test-unlink.c (main): Likewise.
6729         * tests/test-unlinkat.c (main): Likewise.
6730         * tests/test-utimens.c (main): Likewise.
6731         * tests/test-utimensat.c (main): Likewise.
6732         * modules/areadlink-tests (Depends-on): Add ignore-value.
6733         * modules/areadlink-with-size-tests (Depends-on): Likewise.
6734         * modules/areadlinkat-tests (Depends-on): Likewise.
6735         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
6736         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6737         * modules/canonicalize-tests (Depends-on): Likewise.
6738         * modules/chown-tests (Depends-on): Likewise.
6739         * modules/fdutimensat-tests (Depends-on): Likewise.
6740         * modules/futimens-tests (Depends-on): Likewise.
6741         * modules/lchown-tests (Depends-on): Likewise.
6742         * modules/link-tests (Depends-on): Likewise.
6743         * modules/linkat-tests (Depends-on): Likewise.
6744         * modules/lstat-tests (Depends-on): Likewise.
6745         * modules/mkdir-tests (Depends-on): Likewise.
6746         * modules/mkfifo-tests (Depends-on): Likewise.
6747         * modules/mkfifoat-tests (Depends-on): Likewise.
6748         * modules/mknod-tests (Depends-on): Likewise.
6749         * modules/openat-tests (Depends-on): Likewise.
6750         * modules/readlink-tests (Depends-on): Likewise.
6751         * modules/remove-tests (Depends-on): Likewise.
6752         * modules/rename-tests (Depends-on): Likewise.
6753         * modules/renameat-tests (Depends-on): Likewise.
6754         * modules/rmdir-tests (Depends-on): Likewise.
6755         * modules/symlink-tests (Depends-on): Likewise.
6756         * modules/symlinkat-tests (Depends-on): Likewise.
6757         * modules/unlink-tests (Depends-on): Likewise.
6758         * modules/utimens-tests (Depends-on): Likewise.
6759         * modules/utimensat-tests (Depends-on): Likewise.
6760
6761 2010-01-31  Bruno Haible  <bruno@clisp.org>
6762
6763         Perform the same test for many <math.h> functions.
6764         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
6765         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
6766         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
6767         of gl_MATHFUNC.
6768         * modules/acos (configure.ac): Likewise.
6769         * modules/asin (configure.ac): Likewise.
6770         * modules/atan (configure.ac): Likewise.
6771         * modules/atan2 (configure.ac): Likewise.
6772         * modules/cbrt (configure.ac): Likewise.
6773         * modules/copysign (configure.ac): Likewise.
6774         * modules/cos (configure.ac): Likewise.
6775         * modules/cosh (configure.ac): Likewise.
6776         * modules/erf (configure.ac): Likewise.
6777         * modules/erfc (configure.ac): Likewise.
6778         * modules/exp (configure.ac): Likewise.
6779         * modules/fmod (configure.ac): Likewise.
6780         * modules/hypot (configure.ac): Likewise.
6781         * modules/j0 (configure.ac): Likewise.
6782         * modules/j1 (configure.ac): Likewise.
6783         * modules/jn (configure.ac): Likewise.
6784         * modules/lgamma (configure.ac): Likewise.
6785         * modules/log (configure.ac): Likewise.
6786         * modules/log10 (configure.ac): Likewise.
6787         * modules/log1p (configure.ac): Likewise.
6788         * modules/pow (configure.ac): Likewise.
6789         * modules/remainder (configure.ac): Likewise.
6790         * modules/sin (configure.ac): Likewise.
6791         * modules/sinh (configure.ac): Likewise.
6792         * modules/tan (configure.ac): Likewise.
6793         * modules/tanh (configure.ac): Likewise.
6794         * modules/y0 (configure.ac): Likewise.
6795         * modules/y1 (configure.ac): Likewise.
6796         * modules/yn (configure.ac): Likewise.
6797         Suggested by Paolo Bonzini.
6798
6799 2010-01-31  Bruno Haible  <bruno@clisp.org>
6800
6801         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
6802
6803 2010-01-31  Bruno Haible  <bruno@clisp.org>
6804
6805         Work around getdelim() bug on FreeBSD 8.0.
6806         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
6807         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
6808         not work.
6809         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
6810         is 1.
6811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
6812         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
6813         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
6814         a non-zero size.
6815         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
6816
6817 2010-01-31  Bruno Haible  <bruno@clisp.org>
6818
6819         Work around getline() bug on FreeBSD 8.0.
6820         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
6821         and a non-zero size.
6822         * tests/test-getline.c (main): Likewise.
6823         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
6824         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
6825
6826 2010-01-28  Eric Blake  <ebb9@byu.net>
6827
6828         regex: fix build failure
6829         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
6830         platforms.
6831
6832 2010-01-28  Jim Meyering  <meyering@redhat.com>
6833
6834         regex: do not ignore memory allocation failure
6835         * lib/regex_internal.c (create_cd_newstate): Detect
6836         re_node_set_init_copy failure.   Extracted from glibc commit
6837         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6838
6839         regex: sync more white-space changes from libc
6840         * lib/regex_internal.c: White-space only changes.
6841         * lib/regexec.c: Likewise.
6842
6843         regex: add many uses of __attribute_warn_unused_result__
6844         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
6845         * lib/regexec.c: Likewise.
6846         Extracted from a messy glibc commit.
6847
6848         regcomp.c: spelling and merge-artifact from glibc
6849         * lib/regcomp.c: Merge remainder of glibc's
6850         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6851
6852         regcomp.c: sync white-space changes from glibc
6853         * lib/regcomp.c: Merge to accommodate white space
6854         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6855
6856         regcomp.c: do not ignore internal return values
6857         * lib/regcomp.c: Do not ignore internal return values.
6858         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
6859         but without its white-space changes and spelling fixes.
6860
6861         regex_internal.h: define __attribute_warn_unused_result__
6862         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
6863
6864         maint: add a syntax-check rule to check for vulnerable Makefile.in
6865         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
6866
6867 2010-01-27  Jim Meyering  <meyering@redhat.com>
6868
6869         ncftpput-ftp: clean up spaces
6870         * build-aux/ncftpput-ftp: Make Copyright line consistent.
6871         Remove trailing blanks.
6872
6873 2010-01-27  Simon Josefsson  <simon@josefsson.org>
6874
6875         * build-aux/git-version-gen: Fix copyright statement.
6876         * build-aux/gnupload: Likewise.
6877         * tests/test-arcfour.c: Likewise.
6878         * tests/test-arctwo.c: Likewise.
6879         * tests/test-count-one-bits.c: Likewise.
6880         * tests/test-crc.c: Likewise.
6881         * tests/test-des.c: Likewise.
6882         * tests/test-gc-arcfour.c: Likewise.
6883         * tests/test-gc-arctwo.c: Likewise.
6884         * tests/test-gc-des.c: Likewise.
6885         * tests/test-gc-hmac-md5.c: Likewise.
6886         * tests/test-gc-hmac-sha1.c: Likewise.
6887         * tests/test-gc-md2.c: Likewise.
6888         * tests/test-gc-md4.c: Likewise.
6889         * tests/test-gc-md5.c: Likewise.
6890         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6891         * tests/test-gc-rijndael.c: Likewise.
6892         * tests/test-gc-sha1.c: Likewise.
6893         * tests/test-gc.c: Likewise.
6894         * tests/test-gethostname.c: Likewise.
6895         * tests/test-gettimeofday.c: Likewise.
6896         * tests/test-hash.c: Likewise.
6897         * tests/test-hmac-md5.c: Likewise.
6898         * tests/test-hmac-sha1.c: Likewise.
6899         * tests/test-md2.c: Likewise.
6900         * tests/test-md4.c: Likewise.
6901         * tests/test-md5.c: Likewise.
6902         * tests/test-memchr.c: Likewise.
6903         * tests/test-memchr2.c: Likewise.
6904         * tests/test-memcmp.c: Likewise.
6905         * tests/test-memmem.c: Likewise.
6906         * tests/test-memrchr.c: Likewise.
6907         * tests/test-rawmemchr.c: Likewise.
6908         * tests/test-read-file.c: Likewise.
6909         * tests/test-rijndael.c: Likewise.
6910         * tests/test-sockets.c: Likewise.
6911         * tests/test-strchrnul.c: Likewise.
6912         * tests/test-strstr.c: Likewise.
6913         * tests/test-strtod.c: Likewise.
6914         * build-aux/ncftpput-ftp: Likewise.
6915
6916 2010-01-26  Eric Blake  <ebb9@byu.net>
6917
6918         ignore-value: update recommended header name
6919         * modules/ignore-value (Include): Only use <> for headers that
6920         exist in glibc.
6921
6922 2010-01-26  Jim Meyering  <meyering@redhat.com>
6923
6924         test-userspec.c: avoid compiler warnings
6925         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6926         and "initialization discards qualifiers..." warnings.
6927         Put the first "uid" in its own scope, and make char* members "const".
6928
6929 2010-01-25  Bruno Haible  <bruno@clisp.org>
6930
6931         gnulib-tool: Make warning diagnostics consistent.
6932         * gnulib-tool (func_warning): New function.
6933         Use it everywhere where gnulib-tool produces output to stderr and it is
6934         not a fatal error.
6935
6936 2010-01-25  Bruno Haible  <bruno@clisp.org>
6937
6938         Fix test dependencies.
6939         * modules/xstrtol-tests (Depends-on): Add inttypes.
6940         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6941
6942 2010-01-25 Pádraig Brady <P@draigBrady.com>
6943
6944         syntax-check: detect incorrect boolean macro values in config.h
6945         * modules/maintainer-makefile (configure.ac): Parameterize the location
6946         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6947         The logic is from Eric Blake and the location indicated by Jim Meyering.
6948         Note the more natural CONFIG_HEADER name is prohibited by automake
6949         for backwards compatibility reasons.
6950         * top/maint.mk (sc_Wundef_boolean): New rule.
6951
6952 2010-01-25  Jim Meyering  <meyering@redhat.com>
6953
6954         bootstrap: detect MacOS 10.6's shasum, too
6955         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
6956         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
6957
6958 2010-01-23  Jim Meyering  <meyering@redhat.com>
6959
6960         xstrtoll: new module
6961         * modules/xstrtoll: New file.
6962         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
6963         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
6964         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
6965         ./configure fails if you use this module and lack "long long".
6966         * modules/xstrtoll-tests: New module.
6967         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
6968         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
6969         new init.sh-based test framework.
6970
6971 2010-01-24  Bruno Haible  <bruno@clisp.org>
6972
6973         Tests for module 'yn'.
6974         * modules/yn-tests: New file.
6975         * tests/test-yn.c: New file.
6976
6977         Tests for module 'y1'.
6978         * modules/y1-tests: New file.
6979         * tests/test-y1.c: New file.
6980
6981         Tests for module 'y0'.
6982         * modules/y0-tests: New file.
6983         * tests/test-y0.c: New file.
6984
6985         Tests for module 'tanh'.
6986         * modules/tanh-tests: New file.
6987         * tests/test-tanh.c: New file.
6988
6989         Tests for module 'tan'.
6990         * modules/tan-tests: New file.
6991         * tests/test-tan.c: New file.
6992
6993         Tests for module 'sqrt'.
6994         * modules/sqrt-tests: New file.
6995         * tests/test-sqrt.c: New file.
6996
6997         Tests for module 'sinh'.
6998         * modules/sinh-tests: New file.
6999         * tests/test-sinh.c: New file.
7000
7001         Tests for module 'sin'.
7002         * modules/sin-tests: New file.
7003         * tests/test-sin.c: New file.
7004
7005         Tests for module 'rint'.
7006         * modules/rint-tests: New file.
7007         * tests/test-rint.c: New file.
7008
7009         Tests for module 'remainder'.
7010         * modules/remainder-tests: New file.
7011         * tests/test-remainder.c: New file.
7012
7013         Tests for module 'pow'.
7014         * modules/pow-tests: New file.
7015         * tests/test-pow.c: New file.
7016
7017         Tests for module 'nextafter'.
7018         * modules/nextafter-tests: New file.
7019         * tests/test-nextafter.c: New file.
7020
7021         Tests for module 'modf'.
7022         * modules/modf-tests: New file.
7023         * tests/test-modf.c: New file.
7024
7025         Tests for module 'logb'.
7026         * modules/logb-tests: New file.
7027         * tests/test-logb.c: New file.
7028
7029         Tests for module 'log1p'.
7030         * modules/log1p-tests: New file.
7031         * tests/test-log1p.c: New file.
7032
7033         Tests for module 'log10'.
7034         * modules/log10-tests: New file.
7035         * tests/test-log10.c: New file.
7036
7037         Tests for module 'log'.
7038         * modules/log-tests: New file.
7039         * tests/test-log.c: New file.
7040
7041         Tests for module 'lgamma'.
7042         * modules/lgamma-tests: New file.
7043         * tests/test-lgamma.c: New file.
7044
7045         Tests for module 'ldexp'.
7046         * modules/ldexp-tests: New file.
7047         * tests/test-ldexp.c: New file.
7048
7049         Tests for module 'jn'.
7050         * modules/jn-tests: New file.
7051         * tests/test-jn.c: New file.
7052
7053         Tests for module 'j1'.
7054         * modules/j1-tests: New file.
7055         * tests/test-j1.c: New file.
7056
7057         Tests for module 'j0'.
7058         * modules/j0-tests: New file.
7059         * tests/test-j0.c: New file.
7060
7061         Tests for module 'hypot'.
7062         * modules/hypot-tests: New file.
7063         * tests/test-hypot.c: New file.
7064
7065         Tests for module 'fmod'.
7066         * modules/fmod-tests: New file.
7067         * tests/test-fmod.c: New file.
7068
7069         Tests for module 'fabs'.
7070         * modules/fabs-tests: New file.
7071         * tests/test-fabs.c: New file.
7072
7073         Tests for module 'exp'.
7074         * modules/exp-tests: New file.
7075         * tests/test-exp.c: New file.
7076
7077         Tests for module 'erfc'.
7078         * modules/erfc-tests: New file.
7079         * tests/test-erfc.c: New file.
7080
7081         Tests for module 'erf'.
7082         * modules/erf-tests: New file.
7083         * tests/test-erf.c: New file.
7084
7085         Tests for module 'cosh'.
7086         * modules/cosh-tests: New file.
7087         * tests/test-cosh.c: New file.
7088
7089         Tests for module 'cos'.
7090         * modules/cos-tests: New file.
7091         * tests/test-cos.c: New file.
7092
7093         Tests for module 'copysign'.
7094         * modules/copysign-tests: New file.
7095         * tests/test-copysign.c: New file.
7096
7097         Tests for module 'cbrt'.
7098         * modules/cbrt-tests: New file.
7099         * tests/test-cbrt.c: New file.
7100
7101         Tests for module 'atan2'.
7102         * modules/atan2-tests: New file.
7103         * tests/test-atan2.c: New file.
7104
7105         Tests for module 'atan'.
7106         * modules/atan-tests: New file.
7107         * tests/test-atan.c: New file.
7108
7109         Tests for module 'asin'.
7110         * modules/asin-tests: New file.
7111         * tests/test-asin.c: New file.
7112
7113         Tests for module 'acos'.
7114         * modules/acos-tests: New file.
7115         * tests/test-acos.c: New file.
7116
7117 2010-01-24  Bruno Haible  <bruno@clisp.org>
7118
7119         Fix tests for common <math.h> functions.
7120         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7121         code snippet that references the function pointer, rather than merely
7122         calling the function. Substitute the FUNC_LIBM variable.
7123         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7124         * modules/acos (configure.ac): Likewise.
7125         * modules/asin (configure.ac): Likewise.
7126         * modules/atan (configure.ac): Likewise.
7127         * modules/atan2 (configure.ac): Likewise.
7128         * modules/cbrt (configure.ac): Likewise.
7129         * modules/copysign (configure.ac): Likewise.
7130         * modules/cos (configure.ac): Likewise.
7131         * modules/cosh (configure.ac): Likewise.
7132         * modules/erf (configure.ac): Likewise.
7133         * modules/erfc (configure.ac): Likewise.
7134         * modules/exp (configure.ac): Likewise.
7135         * modules/fabs (configure.ac): Likewise.
7136         * modules/fmod (configure.ac): Likewise.
7137         * modules/hypot (configure.ac): Likewise.
7138         * modules/j0 (configure.ac): Likewise.
7139         * modules/j1 (configure.ac): Likewise.
7140         * modules/jn (configure.ac): Likewise.
7141         * modules/ldexp (configure.ac): Likewise.
7142         * modules/lgamma (configure.ac): Likewise.
7143         * modules/log (configure.ac): Likewise.
7144         * modules/log10 (configure.ac): Likewise.
7145         * modules/log1p (configure.ac): Likewise.
7146         * modules/logb (configure.ac): Likewise.
7147         * modules/modf (configure.ac): Likewise.
7148         * modules/nextafter (configure.ac): Likewise.
7149         * modules/pow (configure.ac): Likewise.
7150         * modules/remainder (configure.ac): Likewise.
7151         * modules/rint (configure.ac): Likewise.
7152         * modules/sin (configure.ac): Likewise.
7153         * modules/sinh (configure.ac): Likewise.
7154         * modules/tan (configure.ac): Likewise.
7155         * modules/tanh (configure.ac): Likewise.
7156         * modules/y0 (configure.ac): Likewise.
7157         * modules/y1 (configure.ac): Likewise.
7158         * modules/yn (configure.ac): Likewise.
7159
7160 2010-01-24  Bruno Haible  <bruno@clisp.org>
7161
7162         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7163         * tests/test-acosl.c (x): New variable.
7164         (main): Store argument in x and fetch it from x.
7165         * tests/test-asinl.c (x): New variable.
7166         (main): Store argument in x and fetch it from x.
7167         * tests/test-atanl.c (x): New variable.
7168         (main): Store argument in x and fetch it from x.
7169         * tests/test-cosl.c (x): New variable.
7170         (main): Store argument in x and fetch it from x.
7171         * tests/test-expl.c (x): New variable.
7172         (main): Store argument in x and fetch it from x.
7173         * tests/test-logl.c (x): New variable.
7174         (main): Store argument in x and fetch it from x.
7175         * tests/test-sinl.c (x): New variable.
7176         (main): Store argument in x and fetch it from x.
7177         * tests/test-sqrtl.c (x): New variable.
7178         (main): Store argument in x and fetch it from x.
7179         * tests/test-tanl.c (x): New variable.
7180         (main): Store argument in x and fetch it from x.
7181
7182 2010-01-24  Bruno Haible  <bruno@clisp.org>
7183
7184         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7185         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7186         assignments to the initial TESTS_ENVIRONMENT.
7187         * doc/gnulib.texi (Unit test modules): Document it.
7188         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7189         TESTS_ENVIRONMENT.
7190         * modules/btowc-tests (Makefile.am): Likewise.
7191         * modules/c-stack-tests (Makefile.am): Likewise.
7192         * modules/c-strcase-tests (Makefile.am): Likewise.
7193         * modules/copy-file-tests (Makefile.am): Likewise.
7194         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7195         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7196         * modules/mbrtowc-tests (Makefile.am): Likewise.
7197         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7198         * modules/mbscasestr-tests (Makefile.am): Likewise.
7199         * modules/mbschr-tests (Makefile.am): Likewise.
7200         * modules/mbscspn-tests (Makefile.am): Likewise.
7201         * modules/mbsinit-tests (Makefile.am): Likewise.
7202         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7203         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7204         * modules/mbspbrk-tests (Makefile.am): Likewise.
7205         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7206         * modules/mbsrchr-tests (Makefile.am): Likewise.
7207         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7208         * modules/mbsspn-tests (Makefile.am): Likewise.
7209         * modules/mbsstr-tests (Makefile.am): Likewise.
7210         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7211         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7212         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7213         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7214         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7215         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7216         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7217         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7218         * modules/wcrtomb-tests (Makefile.am): Likewise.
7219         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7220         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7221         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7222         assignments from TESTS_ENVIRONMENT.
7223         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7224         augmentation.
7225         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7226         * modules/atexit-tests (Makefile.am): Likewise.
7227         * modules/binary-io-tests (Makefile.am): Likewise.
7228         * modules/closein-tests (Makefile.am): Likewise.
7229         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7230         * modules/exclude-tests (Makefile.am): Likewise.
7231         * modules/fflush-tests (Makefile.am): Likewise.
7232         * modules/fpending-tests (Makefile.am): Likewise.
7233         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7234         * modules/freadahead-tests (Makefile.am): Likewise.
7235         * modules/freadptr-tests (Makefile.am): Likewise.
7236         * modules/freadseek-tests (Makefile.am): Likewise.
7237         * modules/fseek-tests (Makefile.am): Likewise.
7238         * modules/fseeko-tests (Makefile.am): Likewise.
7239         * modules/ftell-tests (Makefile.am): Likewise.
7240         * modules/ftello-tests (Makefile.am): Likewise.
7241         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7242         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7243         * modules/lseek-tests (Makefile.am): Likewise.
7244         * modules/parse-duration-tests (Makefile.am): Likewise.
7245         * modules/perror-tests (Makefile.am): Likewise.
7246         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7247         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7248         * modules/pipe-tests (Makefile.am): Likewise.
7249         * modules/pread-tests (Makefile.am): Likewise.
7250         * modules/printf-posix-tests (Makefile.am): Likewise.
7251         * modules/select-tests (Makefile.am): Likewise.
7252         * modules/sigpipe-tests (Makefile.am): Likewise.
7253         * modules/tsearch-tests (Makefile.am): Likewise.
7254         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7255         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7256         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7257         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7258         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7259         * modules/version-etc-tests (Makefile.am): Likewise.
7260         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7261         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7262         * modules/xalloc-die-tests (Makefile.am): Likewise.
7263         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7264         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7265         * modules/xstrtol-tests (Makefile.am): Likewise.
7266         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7267         * modules/yesno-tests (Makefile.am): Likewise.
7268         Suggested by Jim Meyering.
7269
7270 2010-01-24  Bruno Haible  <bruno@clisp.org>
7271
7272         More documentation.
7273         * doc/gnulib.texi (Writing modules): New chapter.
7274         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7275         the new chapter.
7276
7277 2010-01-24  Jim Meyering  <meyering@redhat.com>
7278
7279         maint.mk: do not prepend "./" after filtering
7280         * top/maint.mk (_prepend_srcdir_prefix): New variable
7281         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7282         "./" when $(srcdir) is ".".
7283
7284         define STREQ(a,b) consistently, removing useless parentheses
7285         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7286         since the only risk is that "a" or "b" contains an unparenthesized
7287         comma, but if either did that, STREQ would have 3 or more arguments.
7288         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7289         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7290         * lib/hash-triple.c (STREQ): Likewise.
7291         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7292         * lib/getugroups.c (STREQ): Likewise.
7293
7294 2010-01-23  Jim Meyering  <meyering@redhat.com>
7295
7296         maint.mk: fix syntax-check in a non-srcdir build directory
7297         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7298         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7299
7300 2010-01-22  Jim Meyering  <meyering@redhat.com>
7301
7302         userspec: add unit tests
7303         * tests/test-userspec.c: New file.
7304         * modules/userspec-tests: Likewise.
7305
7306 2010-01-21  Jim Meyering  <meyering@redhat.com>
7307
7308         maint.mk: handle source file names containing "." robustly
7309         * top/maint.mk (_dot_escaped_srcdir): Define.
7310         (VC_LIST): Use it in LHS of sed substitution.
7311
7312 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7313
7314         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7315         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7316         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7317         from a non-srcdir build.
7318
7319 2010-01-20  Eric Blake  <ebb9@byu.net>
7320
7321         warn-on-use: use instead of link-warning
7322         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7323         * modules/unistd (Depends-on, Makefile.am): Likewise.
7324         * modules/arpa_inet (Depends-on): Replace link-warning with
7325         warn-on-use.
7326         (Makefile.am): Update rules accordingly.
7327         * modules/ctype (Depends-on, Makefile.am): Likewise.
7328         * modules/dirent (Depends-on, Makefile.am): Likewise.
7329         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7330         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7331         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7332         * modules/locale (Depends-on, Makefile.am): Likewise.
7333         * modules/math (Depends-on, Makefile.am): Likewise.
7334         * modules/search (Depends-on, Makefile.am): Likewise.
7335         * modules/signal (Depends-on, Makefile.am): Likewise.
7336         * modules/spawn (Depends-on, Makefile.am): Likewise.
7337         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7338         * modules/string (Depends-on, Makefile.am): Likewise.
7339         * modules/strings (Depends-on, Makefile.am): Likewise.
7340         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7341         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7342         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7343         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7344         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7345         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7346         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7347         * modules/wchar (Depends-on, Makefile.am): Likewise.
7348         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7349         should be poisoned.
7350         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7351         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7352         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7353         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7354         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7355         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7356         * m4/math_h.m4 (gl_MATH_H): Likewise.
7357         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7358         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7359         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7360         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7361         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7362         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7363         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7364         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
7365         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7366         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7367         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7369         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7370         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7371         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7372         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7373         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
7374         GL_LINK_WARNING.
7375         * lib/ctype.in.h: Likewise.
7376         * lib/dirent.in.h: Likewise.
7377         * lib/fcntl.in.h: Likewise.
7378         * lib/inttypes.in.h: Likewise.
7379         * lib/langinfo.in.h: Likewise.
7380         * lib/locale.in.h: Likewise.
7381         * lib/math.in.h: Likewise.
7382         * lib/search.in.h: Likewise.
7383         * lib/signal.in.h: Likewise.
7384         * lib/spawn.in.h: Likewise.
7385         * lib/stdio.in.h: Likewise.
7386         * lib/stdlib.in.h: Likewise.
7387         * lib/string.in.h: Likewise.
7388         * lib/strings.in.h: Likewise.
7389         * lib/sys_file.in.h: Likewise.
7390         * lib/sys_ioctl.in.h: Likewise.
7391         * lib/sys_select.in.h: Likewise.
7392         * lib/sys_socket.in.h: Likewise.
7393         * lib/sys_stat.in.h: Likewise.
7394         * lib/sys_times.in.h: Likewise.
7395         * lib/sys_utsname.in.h: Likewise.
7396         * lib/unistd.in.h: Likewise.
7397         * lib/wchar.in.h: Likewise.
7398
7399 2010-01-20  Bruno Haible  <bruno@clisp.org>
7400
7401         Avoid duplicate -lm.
7402         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
7403         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
7404         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
7405         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
7406         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
7407         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
7408         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
7409         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
7410         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
7411         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
7412         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
7413         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7414         Reported by Paolo Bonzini.
7415
7416 2010-01-19  Bruno Haible  <bruno@clisp.org>
7417
7418         langinfo, nl_langinfo: Relicense under LGPLv2+.
7419         * modules/langinfo (License): Change to LGPLv2+.
7420         * modules/nl_langinfo (License): Likewise.
7421         Patch by David Lutterkort <lutter@redhat.com>.
7422
7423 2010-01-19  Bruno Haible  <bruno@clisp.org>
7424
7425         Avoid compilation error with cc on OSF/1 5.1.
7426         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
7427         statement, not before.
7428         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7429
7430 2010-01-18  Bruno Haible  <bruno@clisp.org>
7431
7432         Avoid a link error due to the __printf__ symbol.
7433         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
7434         and 2.6.x.
7435         (__format__, __printf__): Remove definitions.
7436         * lib/argp-fmtstream.h: Likewise.
7437         * lib/argp.h: Likewise.
7438         * lib/error.h: Likewise.
7439         * lib/vasnprintf.h: Likewise.
7440         * lib/xprintf.h: Likewise.
7441         * lib/xvasprintf.h: Likewise.
7442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7443
7444 2010-01-18  Bruno Haible  <bruno@clisp.org>
7445
7446         Tests for module 'tanl'.
7447         * modules/tanl-tests: New file.
7448         * tests/test-tanl.c: New file.
7449
7450         Tests for module 'sqrtl'.
7451         * modules/sqrtl-tests: New file.
7452         * tests/test-sqrtl.c: New file.
7453
7454         Tests for module 'sinl'.
7455         * modules/sinl-tests: New file.
7456         * tests/test-sinl.c: New file.
7457
7458         Tests for module 'logl'.
7459         * modules/logl-tests: New file.
7460         * tests/test-logl.c: New file.
7461
7462         Tests for module 'expl'.
7463         * modules/expl-tests: New file.
7464         * tests/test-expl.c: New file.
7465
7466         Tests for module 'cosl'.
7467         * modules/cosl-tests: New file.
7468         * tests/test-cosl.c: New file.
7469
7470         Tests for module 'atanl'.
7471         * modules/atanl-tests: New file.
7472         * tests/test-atanl.c: New file.
7473
7474         Tests for module 'asinl'.
7475         * modules/asinl-tests: New file.
7476         * tests/test-asinl.c: New file.
7477
7478         Tests for module 'acosl'.
7479         * modules/acosl-tests: New file.
7480         * tests/test-acosl.c: New file.
7481
7482         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7483         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7484         tanl): Use the standard gnulib idiom.
7485         * lib/cosl.c: Don't include trigl.c and sincosl.c.
7486         * lib/sinl.c: Likewise.
7487         * lib/tanl.c: Don't include trigl.c.
7488         (kernel_tanl): Make static.
7489         * lib/sincosl.c: Include trigl.h first.
7490         * lib/trigl.c: Likewise.
7491         * m4/acosl.m4: New file.
7492         * m4/asinl.m4: New file.
7493         * m4/atanl.m4: New file.
7494         * m4/cosl.m4: New file.
7495         * m4/expl.m4: New file.
7496         * m4/logl.m4: New file.
7497         * m4/sinl.m4: New file.
7498         * m4/sqrtl.m4: New file.
7499         * m4/tanl.m4: New file.
7500         * m4/mathl.m4: Remove file.
7501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
7502         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7503         Don't initialize GNULIB_MATHL.
7504         * modules/acosl: New file.
7505         * modules/asinl: New file.
7506         * modules/atanl: New file.
7507         * modules/cosl: New file.
7508         * modules/expl: New file.
7509         * modules/logl: New file.
7510         * modules/sinl: New file.
7511         * modules/sqrtl: New file.
7512         * modules/tanl: New file.
7513         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
7514         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
7515         substitute GNULIB_MATHL.
7516         * modules/mathl: Rewritten.
7517         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
7518         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
7519         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
7520         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
7521         * doc/posix-functions/expl.texi: Mention the 'expl' module.
7522         * doc/posix-functions/logl.texi: Mention the 'logl' module.
7523         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
7524         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
7525         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
7526
7527 2010-01-18  Bruno Haible  <bruno@clisp.org>
7528
7529         sqrt: Make gl_FUNC_SQRT requirable.
7530         * m4/sqrt.m4: New file.
7531         * modules/sqrt (Files): Add it.
7532         (configure.ac): Invoke gl_FUNC_SQRT.
7533
7534 2010-01-18  Bruno Haible  <bruno@clisp.org>
7535
7536         New modules for common <math.h> functions.
7537         * m4/mathfunc.m4: New file.
7538         * modules/acos: New file.
7539         * modules/asin: New file.
7540         * modules/atan: New file.
7541         * modules/atan2: New file.
7542         * modules/cbrt: New file.
7543         * modules/copysign: New file.
7544         * modules/cos: New file.
7545         * modules/cosh: New file.
7546         * modules/erf: New file.
7547         * modules/erfc: New file.
7548         * modules/exp: New file.
7549         * modules/fabs: New file.
7550         * modules/fmod: New file.
7551         * modules/hypot: New file.
7552         * modules/j0: New file.
7553         * modules/j1: New file.
7554         * modules/jn: New file.
7555         * modules/ldexp: New file.
7556         * modules/lgamma: New file.
7557         * modules/log: New file.
7558         * modules/log10: New file.
7559         * modules/log1p: New file.
7560         * modules/logb: New file.
7561         * modules/modf: New file.
7562         * modules/nextafter: New file.
7563         * modules/pow: New file.
7564         * modules/remainder: New file.
7565         * modules/rint: New file.
7566         * modules/sin: New file.
7567         * modules/sinh: New file.
7568         * modules/sqrt: New file.
7569         * modules/tan: New file.
7570         * modules/tanh: New file.
7571         * modules/y0: New file.
7572         * modules/y1: New file.
7573         * modules/yn: New file.
7574         * doc/posix-functions/acos.texi: Mention the 'acos' module.
7575         * doc/posix-functions/asin.texi: Mention the 'asin' module.
7576         * doc/posix-functions/atan.texi: Mention the 'atan' module.
7577         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
7578         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
7579         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
7580         * doc/posix-functions/cos.texi: Mention the 'cos' module.
7581         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
7582         * doc/posix-functions/erf.texi: Mention the 'erf' module.
7583         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
7584         * doc/posix-functions/exp.texi: Mention the 'exp' module.
7585         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
7586         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
7587         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
7588         * doc/posix-functions/j0.texi: Mention the 'j0' module.
7589         * doc/posix-functions/j1.texi: Mention the 'j1' module.
7590         * doc/posix-functions/jn.texi: Mention the 'jn' module.
7591         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
7592         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
7593         * doc/posix-functions/log.texi: Mention the 'log' module.
7594         * doc/posix-functions/log10.texi: Mention the 'log10' module.
7595         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
7596         * doc/posix-functions/logb.texi: Mention the 'logb' module.
7597         * doc/posix-functions/modf.texi: Mention the 'modf' module.
7598         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
7599         * doc/posix-functions/pow.texi: Mention the 'pow' module.
7600         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
7601         * doc/posix-functions/rint.texi: Mention the 'rint' module.
7602         * doc/posix-functions/sin.texi: Mention the 'sin' module.
7603         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
7604         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
7605         * doc/posix-functions/tan.texi: Mention the 'tan' module.
7606         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
7607         * doc/posix-functions/y0.texi: Mention the 'y0' module.
7608         * doc/posix-functions/y1.texi: Mention the 'y1' module.
7609         * doc/posix-functions/yn.texi: Mention the 'yn' module.
7610
7611 2010-01-18  Jim Meyering  <meyering@redhat.com>
7612
7613         ignore-value: relax license to LGPLv2+
7614         * modules/ignore-value (License): Relax to LGPLv2+.
7615
7616         getdate: don't leak when TZ contains two or more '"'s
7617         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
7618         double quote in TZ after the first one.
7619
7620         readtokens: do not leak internal token_lengths buffer
7621         * lib/readtokens.c (readtokens): Free the local, lengths,
7622         when the supplied "token_lengths" parameter is NULL.
7623
7624 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7625
7626         Fix a couple of missing LIBTHREAD link failures on AIX.
7627         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
7628         $(LIBTHREAD).
7629         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
7630
7631         Link test-poll against INET_PTON_LIB.
7632         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
7633         for inet_pton on Solaris 10.
7634
7635 2010-01-17  Bruno Haible  <bruno@clisp.org>
7636
7637         unistdio/*-sprintf: Fix typo in module description.
7638         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
7639         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
7640         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
7641         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
7642         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
7643         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
7644         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
7645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7646
7647 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7648
7649         gnulib-tool: fix filelist for AIX, HP-UX ksh.
7650         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
7651         variables in shell case patterns, for AIX and HP-UX ksh.
7652
7653         Split large sed scripts, for HP-UX sed.
7654         * modules/stdio: Split sed scripts around 50 sed commands,
7655         to avoid HP-UX limit of 99 commands, in the near future.
7656         * modules/string: Likewise.
7657         * modules/unistd: Likewise.
7658
7659         gnulib-tool: avoid writing in the current directory.
7660         * gnulib-tool (func_emit_lib_Makefile_am)
7661         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
7662         not in the current directory, so concurrent gnulib-tool
7663         instances do not interfere.
7664
7665 2010-01-16  Jim Meyering  <meyering@redhat.com>
7666
7667         doc: update users.txt
7668         * users.txt: Add grep.
7669         (diffutils, gzip): Update URLs.
7670
7671 2010-01-12  Bruno Haible  <bruno@clisp.org>
7672
7673         posix_spawn: Avoid test failure on Cygwin.
7674         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
7675         characters.
7676         Reported by Simon Josefsson.
7677
7678 2010-01-12  Bruno Haible  <bruno@clisp.org>
7679
7680         * tests/test-cond.c (main): When skipping the test, show the reason.
7681
7682 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7683
7684         * lib/striconv.c (str_cd_iconv): Avoid if before free.
7685
7686 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7687
7688         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
7689         VC_LIST_ALWAYS_EXCLUDE_REGEX.
7690
7691 2010-01-12  Eric Blake  <ebb9@byu.net>
7692
7693         build: guarantee AS_VAR_IF
7694         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
7695         (gl_AS_VAR_IF): Move...
7696         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
7697         Reported by Simon Josefsson.
7698
7699 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7700
7701         * lib/stdio.in.h: Fix typo.
7702
7703 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7704
7705         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
7706         libgpg-error.
7707
7708 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7709
7710         * tests/test-xalloc-die.sh: Use $EXEEXT.
7711
7712 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7713             Bruno Haible  <bruno@clisp.org>
7714
7715         getlogin, getlogin_r: Avoid test failure.
7716         * tests/test-getlogin.c: Include <stdio.h>.
7717         (main): Skip the test when the function fails because stdin is not a
7718         tty.
7719         * tests/test-getlogin_r.c: Include <stdio.h>.
7720         (main): Skip the test when the function fails because stdin is not a
7721         tty.
7722
7723 2010-01-11  Eric Blake  <ebb9@byu.net>
7724
7725         tests: avoid more large file warnings
7726         * tests/test-fflush.c: Avoid warning about ftell use.
7727         * tests/test-fseek.c: Avoid warning about fseek use.
7728
7729 2010-01-10  Bruno Haible  <bruno@clisp.org>
7730
7731         nproc: Work better on Linux when /proc and /sys are not mounted.
7732         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
7733         as lower bound when, on glibc/Linux systems,
7734         sysconf (_SC_NPROCESSORS_CONF) returns 1.
7735         Suggested by Pádraig Brady <P@draigbrady.com>.
7736         Reported by Dmitry V. Levin <ldv@altlinux.org>.
7737
7738         nproc: Refactor.
7739         * lib/nproc.c (num_processors_via_affinity_mask): New function,
7740         extracted from num_processors.
7741         (num_processors): Call it.
7742
7743 2010-01-11  Jim Meyering  <meyering@redhat.com>
7744
7745         utimecmp: avoid new warning from upcoming gcc-4.5.0
7746         * lib/utimecmp.c (BILLION): Define using #define rather than an
7747         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
7748
7749 2010-01-11  Eric Blake  <ebb9@byu.net>
7750
7751         math: add portability warnings for classification macros
7752         * modules/math (Depends-on): Add warn-on-use.
7753         (Makefile.am): Provide new substitutions.
7754         * m4/math_h.m4 (gl_MATH_H): Require inline.
7755         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
7756         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
7757         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
7758         implement warnings.
7759
7760         unistd: warn on use of environ without module
7761         * modules/unistd (Depends-on): Add warn-on-use.
7762         (Makefile.am): Provide new substitutions.
7763         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
7764         * lib/unistd.in.h (environ): Wrap with a warning helper function.
7765
7766         stdio: warn on suspicious uses
7767         * modules/stdio (Depends-on): Add warn-on-use.
7768         (Makefile.am): Provide new substitutions.
7769         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
7770         fseeko.
7771         * lib/stdio.in.h (gets): Always warn on use.
7772         (fseek, ftell): Adjust when warnings are issued, and honor
7773         _GL_NO_LARGE_FILES as a way to silence the warning.
7774         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
7775         any warning about large file offsets.
7776         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
7777         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
7778         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
7779         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
7780         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
7781         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
7782         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
7783         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
7784
7785         warn-on-use: new module
7786         * modules/warn-on-use: New file.
7787         * build-aux/warn-on-use.h: Likewise.
7788         * m4/warn-on-use.m4: Likewise.
7789         * MODULES.html.sh (Support for building): Mention it.
7790
7791 2010-01-10  Bruno Haible  <bruno@clisp.org>
7792
7793         Tests for module 'unistr/u32-strdup'.
7794         * modules/unistr/u32-strdup-tests: New file.
7795         * tests/unistr/test-u32-strdup.c: New file.
7796
7797         Tests for module 'unistr/u16-strdup'.
7798         * modules/unistr/u16-strdup-tests: New file.
7799         * tests/unistr/test-u16-strdup.c: New file.
7800
7801         Tests for module 'unistr/u8-strdup'.
7802         * modules/unistr/u8-strdup-tests: New file.
7803         * tests/unistr/test-u8-strdup.c: New file.
7804         * tests/unistr/test-strdup.h: New file.
7805
7806         Tests for module 'unistr/u32-strncmp'.
7807         * modules/unistr/u32-strncmp-tests: New file.
7808         * tests/unistr/test-u32-strncmp.c: New file.
7809
7810         Tests for module 'unistr/u16-strncmp'.
7811         * modules/unistr/u16-strncmp-tests: New file.
7812         * tests/unistr/test-u16-strncmp.c: New file.
7813
7814         Tests for module 'unistr/u8-strncmp'.
7815         * modules/unistr/u8-strncmp-tests: New file.
7816         * tests/unistr/test-u8-strncmp.c: New file.
7817         * tests/unistr/test-strncmp.h: New file.
7818
7819         Tests for module 'unistr/u32-strcoll'.
7820         * modules/unistr/u32-strcoll-tests: New file.
7821         * tests/unistr/test-u32-strcoll.c: New file.
7822
7823         Tests for module 'unistr/u16-strcoll'.
7824         * modules/unistr/u16-strcoll-tests: New file.
7825         * tests/unistr/test-u16-strcoll.c: New file.
7826
7827         Tests for module 'unistr/u8-strcoll'.
7828         * modules/unistr/u8-strcoll-tests: New file.
7829         * tests/unistr/test-u8-strcoll.c: New file.
7830
7831         Tests for module 'unistr/u32-strcmp'.
7832         * modules/unistr/u32-strcmp-tests: New file.
7833         * tests/unistr/test-u32-strcmp.c: New file.
7834         * tests/unistr/test-u32-strcmp.h: New file.
7835
7836         Tests for module 'unistr/u16-strcmp'.
7837         * modules/unistr/u16-strcmp-tests: New file.
7838         * tests/unistr/test-u16-strcmp.c: New file.
7839         * tests/unistr/test-u16-strcmp.h: New file.
7840
7841         Tests for module 'unistr/u8-strcmp'.
7842         * modules/unistr/u8-strcmp-tests: New file.
7843         * tests/unistr/test-u8-strcmp.c: New file.
7844         * tests/unistr/test-u8-strcmp.h: New file.
7845         * tests/unistr/test-strcmp.h: New file.
7846
7847         Tests for module 'unistr/u32-strncat'.
7848         * modules/unistr/u32-strncat-tests: New file.
7849         * tests/unistr/test-u32-strncat.c: New file.
7850
7851         Tests for module 'unistr/u16-strncat'.
7852         * modules/unistr/u16-strncat-tests: New file.
7853         * tests/unistr/test-u16-strncat.c: New file.
7854
7855         Tests for module 'unistr/u8-strncat'.
7856         * modules/unistr/u8-strncat-tests: New file.
7857         * tests/unistr/test-u8-strncat.c: New file.
7858         * tests/unistr/test-strncat.h: New file.
7859
7860         Tests for module 'unistr/u32-strcat'.
7861         * modules/unistr/u32-strcat-tests: New file.
7862         * tests/unistr/test-u32-strcat.c: New file.
7863
7864         Tests for module 'unistr/u16-strcat'.
7865         * modules/unistr/u16-strcat-tests: New file.
7866         * tests/unistr/test-u16-strcat.c: New file.
7867
7868         Tests for module 'unistr/u8-strcat'.
7869         * modules/unistr/u8-strcat-tests: New file.
7870         * tests/unistr/test-u8-strcat.c: New file.
7871         * tests/unistr/test-strcat.h: New file.
7872
7873         Tests for module 'unistr/u32-stpncpy'.
7874         * modules/unistr/u32-stpncpy-tests: New file.
7875         * tests/unistr/test-u32-stpncpy.c: New file.
7876
7877         Tests for module 'unistr/u16-stpncpy'.
7878         * modules/unistr/u16-stpncpy-tests: New file.
7879         * tests/unistr/test-u16-stpncpy.c: New file.
7880
7881         Tests for module 'unistr/u8-stpncpy'.
7882         * modules/unistr/u8-stpncpy-tests: New file.
7883         * tests/unistr/test-u8-stpncpy.c: New file.
7884         * tests/unistr/test-stpncpy.h: New file.
7885
7886         Tests for module 'unistr/u32-strncpy'.
7887         * modules/unistr/u32-strncpy-tests: New file.
7888         * tests/unistr/test-u32-strncpy.c: New file.
7889
7890         Tests for module 'unistr/u16-strncpy'.
7891         * modules/unistr/u16-strncpy-tests: New file.
7892         * tests/unistr/test-u16-strncpy.c: New file.
7893
7894         Tests for module 'unistr/u8-strncpy'.
7895         * modules/unistr/u8-strncpy-tests: New file.
7896         * tests/unistr/test-u8-strncpy.c: New file.
7897         * tests/unistr/test-strncpy.h: New file.
7898
7899         Tests for module 'unistr/u32-stpcpy'.
7900         * modules/unistr/u32-stpcpy-tests: New file.
7901         * tests/unistr/test-u32-stpcpy.c: New file.
7902
7903         Tests for module 'unistr/u16-stpcpy'.
7904         * modules/unistr/u16-stpcpy-tests: New file.
7905         * tests/unistr/test-u16-stpcpy.c: New file.
7906
7907         Tests for module 'unistr/u8-stpcpy'.
7908         * modules/unistr/u8-stpcpy-tests: New file.
7909         * tests/unistr/test-u8-stpcpy.c: New file.
7910         * tests/unistr/test-stpcpy.h: New file.
7911
7912         Tests for module 'unistr/u32-strcpy'.
7913         * modules/unistr/u32-strcpy-tests: New file.
7914         * tests/unistr/test-u32-strcpy.c: New file.
7915
7916         Tests for module 'unistr/u16-strcpy'.
7917         * modules/unistr/u16-strcpy-tests: New file.
7918         * tests/unistr/test-u16-strcpy.c: New file.
7919
7920         Tests for module 'unistr/u8-strcpy'.
7921         * modules/unistr/u8-strcpy-tests: New file.
7922         * tests/unistr/test-u8-strcpy.c: New file.
7923         * tests/unistr/test-strcpy.h: New file.
7924
7925         Tests for module 'unistr/u32-strnlen'.
7926         * modules/unistr/u32-strnlen-tests: New file.
7927         * tests/unistr/test-u32-strnlen.c: New file.
7928
7929         Tests for module 'unistr/u16-strnlen'.
7930         * modules/unistr/u16-strnlen-tests: New file.
7931         * tests/unistr/test-u16-strnlen.c: New file.
7932
7933         Tests for module 'unistr/u8-strnlen'.
7934         * modules/unistr/u8-strnlen-tests: New file.
7935         * tests/unistr/test-u8-strnlen.c: New file.
7936         * tests/unistr/test-strnlen.h: New file.
7937
7938         Tests for module 'unistr/u32-strlen'.
7939         * modules/unistr/u32-strlen-tests: New file.
7940         * tests/unistr/test-u32-strlen.c: New file.
7941
7942         Tests for module 'unistr/u16-strlen'.
7943         * modules/unistr/u16-strlen-tests: New file.
7944         * tests/unistr/test-u16-strlen.c: New file.
7945
7946         Tests for module 'unistr/u8-strlen'.
7947         * modules/unistr/u8-strlen-tests: New file.
7948         * tests/unistr/test-u8-strlen.c: New file.
7949
7950         Tests for module 'unistr/u32-prev'.
7951         * modules/unistr/u32-prev-tests: New file.
7952         * tests/unistr/test-u32-prev.c: New file.
7953
7954         Tests for module 'unistr/u16-prev'.
7955         * modules/unistr/u16-prev-tests: New file.
7956         * tests/unistr/test-u16-prev.c: New file.
7957
7958         Tests for module 'unistr/u8-prev'.
7959         * modules/unistr/u8-prev-tests: New file.
7960         * tests/unistr/test-u8-prev.c: New file.
7961
7962         Tests for module 'unistr/u32-next'.
7963         * modules/unistr/u32-next-tests: New file.
7964         * tests/unistr/test-u32-next.c: New file.
7965
7966         Tests for module 'unistr/u16-next'.
7967         * modules/unistr/u16-next-tests: New file.
7968         * tests/unistr/test-u16-next.c: New file.
7969
7970         Tests for module 'unistr/u8-next'.
7971         * modules/unistr/u8-next-tests: New file.
7972         * tests/unistr/test-u8-next.c: New file.
7973
7974         Tests for module 'unistr/u32-strmbtouc'.
7975         * modules/unistr/u32-strmbtouc-tests: New file.
7976         * tests/unistr/test-u32-strmbtouc.c: New file.
7977
7978         Tests for module 'unistr/u16-strmbtouc'.
7979         * modules/unistr/u16-strmbtouc-tests: New file.
7980         * tests/unistr/test-u16-strmbtouc.c: New file.
7981
7982         Tests for module 'unistr/u8-strmbtouc'.
7983         * modules/unistr/u8-strmbtouc-tests: New file.
7984         * tests/unistr/test-u8-strmbtouc.c: New file.
7985
7986         Tests for module 'unistr/u32-strmblen'.
7987         * modules/unistr/u32-strmblen-tests: New file.
7988         * tests/unistr/test-u32-strmblen.c: New file.
7989
7990         Tests for module 'unistr/u16-strmblen'.
7991         * modules/unistr/u16-strmblen-tests: New file.
7992         * tests/unistr/test-u16-strmblen.c: New file.
7993
7994         Tests for module 'unistr/u8-strmblen'.
7995         * modules/unistr/u8-strmblen-tests: New file.
7996         * tests/unistr/test-u8-strmblen.c: New file.
7997
7998         Tests for module 'unistr/u32-cpy-alloc'.
7999         * modules/unistr/u32-cpy-alloc-tests: New file.
8000         * tests/unistr/test-u32-cpy-alloc.c: New file.
8001
8002         Tests for module 'unistr/u16-cpy-alloc'.
8003         * modules/unistr/u16-cpy-alloc-tests: New file.
8004         * tests/unistr/test-u16-cpy-alloc.c: New file.
8005
8006         Tests for module 'unistr/u8-cpy-alloc'.
8007         * modules/unistr/u8-cpy-alloc-tests: New file.
8008         * tests/unistr/test-u8-cpy-alloc.c: New file.
8009         * tests/unistr/test-cpy-alloc.h: New file.
8010
8011         Tests for module 'unistr/u32-mbsnlen'.
8012         * modules/unistr/u32-mbsnlen-tests: New file.
8013         * tests/unistr/test-u32-mbsnlen.c: New file.
8014
8015         Tests for module 'unistr/u16-mbsnlen'.
8016         * modules/unistr/u16-mbsnlen-tests: New file.
8017         * tests/unistr/test-u16-mbsnlen.c: New file.
8018
8019         Tests for module 'unistr/u8-mbsnlen'.
8020         * modules/unistr/u8-mbsnlen-tests: New file.
8021         * tests/unistr/test-u8-mbsnlen.c: New file.
8022
8023         Tests for module 'unistr/u32-chr'.
8024         * modules/unistr/u32-chr-tests: New file.
8025         * tests/unistr/test-u32-chr.c: New file.
8026
8027         Tests for module 'unistr/u16-chr'.
8028         * modules/unistr/u16-chr-tests: New file.
8029         * tests/unistr/test-u16-chr.c: New file.
8030
8031         Tests for module 'unistr/u8-chr'.
8032         * modules/unistr/u8-chr-tests: New file.
8033         * tests/unistr/test-u8-chr.c: New file.
8034         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8035
8036         Tests for module 'unistr/u32-cmp2'.
8037         * modules/unistr/u32-cmp2-tests: New file.
8038         * tests/unistr/test-u32-cmp2.c: New file.
8039
8040         Tests for module 'unistr/u16-cmp2'.
8041         * modules/unistr/u16-cmp2-tests: New file.
8042         * tests/unistr/test-u16-cmp2.c: New file.
8043
8044         Tests for module 'unistr/u8-cmp2'.
8045         * modules/unistr/u8-cmp2-tests: New file.
8046         * tests/unistr/test-u8-cmp2.c: New file.
8047         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8048
8049         Tests for module 'unistr/u32-cmp'.
8050         * modules/unistr/u32-cmp-tests: New file.
8051         * tests/unistr/test-u32-cmp.c: New file.
8052
8053         Tests for module 'unistr/u16-cmp'.
8054         * modules/unistr/u16-cmp-tests: New file.
8055         * tests/unistr/test-u16-cmp.c: New file.
8056
8057         Tests for module 'unistr/u8-cmp'.
8058         * modules/unistr/u8-cmp-tests: New file.
8059         * tests/unistr/test-u8-cmp.c: New file.
8060         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8061
8062         Tests for module 'unistr/u32-set'.
8063         * modules/unistr/u32-set-tests: New file.
8064         * tests/unistr/test-u32-set.c: New file.
8065
8066         Tests for module 'unistr/u16-set'.
8067         * modules/unistr/u16-set-tests: New file.
8068         * tests/unistr/test-u16-set.c: New file.
8069
8070         Tests for module 'unistr/u8-set'.
8071         * modules/unistr/u8-set-tests: New file.
8072         * tests/unistr/test-u8-set.c: New file.
8073         * tests/unistr/test-set.h: New file.
8074
8075         Tests for module 'unistr/u32-move'.
8076         * modules/unistr/u32-move-tests: New file.
8077         * tests/unistr/test-u32-move.c: New file.
8078
8079         Tests for module 'unistr/u16-move'.
8080         * modules/unistr/u16-move-tests: New file.
8081         * tests/unistr/test-u16-move.c: New file.
8082
8083         Tests for module 'unistr/u8-move'.
8084         * modules/unistr/u8-move-tests: New file.
8085         * tests/unistr/test-u8-move.c: New file.
8086         * tests/unistr/test-move.h: New file.
8087
8088         Tests for module 'unistr/u32-cpy'.
8089         * modules/unistr/u32-cpy-tests: New file.
8090         * tests/unistr/test-u32-cpy.c: New file.
8091
8092         Tests for module 'unistr/u16-cpy'.
8093         * modules/unistr/u16-cpy-tests: New file.
8094         * tests/unistr/test-u16-cpy.c: New file.
8095
8096         Tests for module 'unistr/u8-cpy'.
8097         * modules/unistr/u8-cpy-tests: New file.
8098         * tests/unistr/test-u8-cpy.c: New file.
8099         * tests/unistr/test-cpy.h: New file.
8100
8101 2010-01-09  Bruno Haible  <bruno@clisp.org>
8102
8103         Tests for module 'unistr/u32-uctomb'.
8104         * modules/unistr/u32-uctomb-tests: New file.
8105         * tests/unistr/test-u32-uctomb.c: New file.
8106
8107         Tests for module 'unistr/u16-uctomb'.
8108         * modules/unistr/u16-uctomb-tests: New file.
8109         * tests/unistr/test-u16-uctomb.c: New file.
8110
8111         Tests for module 'unistr/u8-uctomb'.
8112         * modules/unistr/u8-uctomb-tests: New file.
8113         * tests/unistr/test-u8-uctomb.c: New file.
8114
8115         Tests for module 'unistr/u32-mbtoucr'.
8116         * modules/unistr/u32-mbtoucr-tests: New file.
8117         * tests/unistr/test-u32-mbtoucr.c: New file.
8118
8119         Tests for module 'unistr/u16-mbtoucr'.
8120         * modules/unistr/u16-mbtoucr-tests: New file.
8121         * tests/unistr/test-u16-mbtoucr.c: New file.
8122
8123         Tests for module 'unistr/u8-mbtoucr'.
8124         * modules/unistr/u8-mbtoucr-tests: New file.
8125         * tests/unistr/test-u8-mbtoucr.c: New file.
8126
8127         Tests for module 'unistr/u32-mbtouc'.
8128         * modules/unistr/u32-mbtouc-tests: New file.
8129         * tests/unistr/test-u32-mbtouc.c: New file.
8130
8131         Tests for module 'unistr/u16-mbtouc'.
8132         * modules/unistr/u16-mbtouc-tests: New file.
8133         * tests/unistr/test-u16-mbtouc.c: New file.
8134
8135         Tests for module 'unistr/u8-mbtouc'.
8136         * modules/unistr/u8-mbtouc-tests: New file.
8137         * tests/unistr/test-u8-mbtouc.c: New file.
8138
8139         Tests for module 'unistr/u32-mbtouc-unsafe'.
8140         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8141         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8142         * tests/unistr/test-u32-mbtouc.h: New file.
8143
8144         Tests for module 'unistr/u16-mbtouc-unsafe'.
8145         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8146         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8147         * tests/unistr/test-u16-mbtouc.h: New file.
8148
8149         Tests for module 'unistr/u8-mbtouc-unsafe'.
8150         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8151         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8152         * tests/unistr/test-u8-mbtouc.h: New file.
8153
8154         Tests for module 'unistr/u32-mblen'.
8155         * modules/unistr/u32-mblen-tests: New file.
8156         * tests/unistr/test-u32-mblen.c: New file.
8157
8158         Tests for module 'unistr/u16-mblen'.
8159         * modules/unistr/u16-mblen-tests: New file.
8160         * tests/unistr/test-u16-mblen.c: New file.
8161
8162         Tests for module 'unistr/u8-mblen'.
8163         * modules/unistr/u8-mblen-tests: New file.
8164         * tests/unistr/test-u8-mblen.c: New file.
8165
8166         Tests for module 'unistr/u32-to-u16'.
8167         * modules/unistr/u32-to-u16-tests: New file.
8168         * tests/unistr/test-u32-to-u16.c: New file.
8169
8170         Tests for module 'unistr/u32-to-u8'.
8171         * modules/unistr/u32-to-u8-tests: New file.
8172         * tests/unistr/test-u32-to-u8.c: New file.
8173
8174         Tests for module 'unistr/u16-to-u32'.
8175         * modules/unistr/u16-to-u32-tests: New file.
8176         * tests/unistr/test-u16-to-u32.c: New file.
8177
8178         Tests for module 'unistr/u16-to-u8'.
8179         * modules/unistr/u16-to-u8-tests: New file.
8180         * tests/unistr/test-u16-to-u8.c: New file.
8181
8182         Tests for module 'unistr/u8-to-u32'.
8183         * modules/unistr/u8-to-u32-tests: New file.
8184         * tests/unistr/test-u8-to-u32.c: New file.
8185
8186         Tests for module 'unistr/u8-to-u16'.
8187         * modules/unistr/u8-to-u16-tests: New file.
8188         * tests/unistr/test-u8-to-u16.c: New file.
8189
8190         Tests for module 'unistr/u32-check'.
8191         * modules/unistr/u32-check-tests: New file.
8192         * tests/unistr/test-u32-check.c: New file.
8193
8194         Tests for module 'unistr/u16-check'.
8195         * modules/unistr/u16-check-tests: New file.
8196         * tests/unistr/test-u16-check.c: New file.
8197
8198         Tests for module 'unistr/u8-check'.
8199         * modules/unistr/u8-check-tests: New file.
8200         * tests/unistr/test-u8-check.c: New file.
8201
8202         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8203         (category_equals): New function.
8204         (main): Add more tests.
8205         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8206
8207         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8208
8209 2010-01-10  Bruno Haible  <bruno@clisp.org>
8210
8211         unistr/u*-strcoll: Try harder to distinguish different strings.
8212         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8213         compare s1 and s2 to see if they are different.
8214
8215 2010-01-10  Bruno Haible  <bruno@clisp.org>
8216
8217         unistr/u*-stpncpy: Fix the return value.
8218         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8219         description of the return value consistent with stpncpy in glibc.
8220         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8221         written non-NUL unit.
8222
8223 2010-01-10  Bruno Haible  <bruno@clisp.org>
8224
8225         unistr/u*-next: Add missing dependencies.
8226         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8227         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8228         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8229
8230 2010-01-10  Bruno Haible  <bruno@clisp.org>
8231
8232         unistr/u8-mbsnlen: Fix return value for incomplete character.
8233         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8234         u8_mblen.
8235         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8236         Remove unistr/u8-mblen.
8237         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8238         u16_mblen.
8239         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8240         Remove unistr/u16-mblen.
8241
8242 2010-01-10  Bruno Haible  <bruno@clisp.org>
8243
8244         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8245         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8246         Reported by Brian Gough <bjg@gnu.org> and
8247         Chris Clayton <chris2553@googlemail.com> via
8248         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8249
8250 2010-01-09  Bruno Haible  <bruno@clisp.org>
8251
8252         unistr/u16-to-u32: Reject invalid input.
8253         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8254         u16_mbtouc.
8255         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8256         Remove unistr/u16-mbtouc.
8257
8258         unistr/u16-to-u8: Reject invalid input.
8259         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8260         u16_mbtouc.
8261         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8262         Remove unistr/u16-mbtouc.
8263
8264         unistr/u8-to-u32: Reject invalid input.
8265         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8266         u8_mbtouc.
8267         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8268         Remove unistr/u8-mbtouc.
8269
8270         unistr/u8-to-u16: Reject invalid input.
8271         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8272         u8_mbtouc.
8273         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8274         Remove unistr/u8-mbtouc.
8275
8276 2010-01-09  Bruno Haible  <bruno@clisp.org>
8277
8278         Tests for module 'getlogin'.
8279         * modules/getlogin-tests: New file.
8280         * tests/test-getlogin.c: New file.
8281
8282         New module 'getlogin'.
8283         * lib/unistd.in.h (getlogin): New declaration.
8284         * lib/getlogin.c: New file.
8285         * m4/getlogin.m4: New file.
8286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8287         HAVE_GETLOGIN.
8288         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8289         HAVE_GETLOGIN.
8290         * modules/getlogin: New file.
8291         * doc/posix-functions/getlogin.texi: Mention the new module.
8292         Reported by John W. Eaton <jwe@gnu.org>.
8293
8294 2010-01-09  Bruno Haible  <bruno@clisp.org>
8295
8296         getlogin_r: Support for native Windows.
8297         * lib/getlogin_r.c: Include <windows.h>
8298         (getlogin_r): Implement for native Windows.
8299         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8300         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8301         via John W. Eaton <jwe@gnu.org>.
8302
8303 2010-01-09  Bruno Haible  <bruno@clisp.org>
8304
8305         getlogin_r: Small fixes.
8306         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8307         succeeds.
8308         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8309         before testing whether getlogin_r is declared. No need to set
8310         HAVE_DECL_GETLOGIN_R to 1.
8311         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8312
8313 2010-01-09  Bruno Haible  <bruno@clisp.org>
8314
8315         * lib/unistd.in.h (getlogin_r): Add comment.
8316
8317 2010-01-09  Bruno Haible  <bruno@clisp.org>
8318
8319         Tests for module 'getlogin_r'.
8320         * modules/getlogin_r-tests: New file.
8321         * tests/test-getlogin_r.c: New file.
8322
8323 2010-01-09  Jim Meyering  <meyering@redhat.com>
8324
8325         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8326         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8327         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8328
8329 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8330
8331         * lib/dup2.c (rpl_dup2): Improve comment.
8332
8333 2010-01-08  Eric Blake  <ebb9@byu.net>
8334
8335         maint.mk: allow packages to add makefile @@ exceptions
8336         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8337         (sc_makefile_check): Rename...
8338         (sc_makefile_at_at_check): ...to this, and use hook.
8339
8340         dup2: work around mingw bug
8341         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8342         Reported by Simon Josefsson.
8343
8344 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8345
8346         glob: Fix C++ compilation.
8347         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8348         C++.
8349
8350 2010-01-07  Bruno Haible  <bruno@clisp.org>
8351
8352         Fix indentation of wctype.in.h, broken since 2007-01-06.
8353         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8354
8355 2010-01-07  Bruno Haible  <bruno@clisp.org>
8356
8357         mbslen: Avoid collision with system function.
8358         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8359         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8360         * m4/mbslen.m4: New file.
8361         * modules/mbslen (Files): Add it.
8362         (configure.ac): Invoke gl_MBSLEN.
8363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
8364         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
8365         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
8366         via Ian Beckwith <ianb@erislabs.net>.
8367
8368 2010-01-07  Bruno Haible  <bruno@clisp.org>
8369
8370         dirent: Document the last fix.
8371         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
8372
8373 2010-01-07  Bruno Haible  <bruno@clisp.org>
8374
8375         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
8376         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
8377         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
8378         va_list are defined.
8379         * doc/posix-headers/stdio.texi: Document the bug of missing types.
8380         Reported by Eric Blake.
8381
8382 2010-01-07  Bruno Haible  <bruno@clisp.org>
8383
8384         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
8385         * modules/xlist (Depends-on): Add 'list',
8386         * modules/xoset (Depends-on): Add 'oset'.
8387         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8388
8389 2010-01-07  Bruno Haible  <bruno@clisp.org>
8390
8391         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
8392         * doc/posix-functions/strncasecmp.texi: Likewise.
8393
8394 2010-01-07  Bruno Haible  <bruno@clisp.org>
8395
8396         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
8397
8398 2010-01-07  John W. Eaton  <jwe@octave.org>
8399
8400         wctype: allow C++ use
8401         * lib/wctype.in.h: Add extern "C" block for C++.
8402
8403 2010-01-06  Eric Blake  <ebb9@byu.net>
8404
8405         maint.mk: detect incorrect GFDL usage
8406         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
8407
8408 2010-01-06  Jim Meyering  <meyering@redhat.com>
8409         and Eric Blake  <ebb9@byu.net>
8410
8411         maint.mk: ignore multi-line copyright in NEWS
8412         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
8413
8414 2010-01-06  Eric Blake  <ebb9@byu.net>
8415
8416         select: add missing dependency
8417         * modules/select-tests (Depends-on): Move sockets dependency...
8418         * modules/select (Depends-on): ...here.
8419         Reported by Ian Beckwith.
8420
8421         doc: regenerate INSTALL
8422         * doc/INSTALL: Reflect recent autoconf update.
8423         * doc/INSTALL.ISO: Likewise.
8424         * doc/INSTALL.UTF-8: Likewise.
8425
8426         pread: fix compilation on glibc
8427         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
8428         Reported by Ralf Wildenhues.
8429
8430         dirent: fix test failure
8431         * lib/dirent.in.h (includes): Guarantee ino_t.
8432         Reported by Ralf Wildenhues.
8433
8434 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
8435
8436         linkat, renameat: avoid bad free
8437         * lib/at-func2.c (at_func2): Fix typo.
8438         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
8439
8440 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8441
8442         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
8443         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
8444         to avoid failure of symlink test later.
8445
8446 2010-01-06  Eric Blake  <ebb9@byu.net>
8447
8448         stdio, unistd: guarantee ssize_t
8449         * lib/unistd.in.h (includes): Ensure that types required by POSIX
8450         2008 are exposed when needed.
8451         * lib/stdio.in.h (includes): Likewise.
8452         Reported by Ralf Wildenhues.
8453
8454 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
8455
8456         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
8457         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
8458         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
8459
8460 2010-01-06  Jim Meyering  <meyering@redhat.com>
8461
8462         readtokens: this module *does* require xalloc.h
8463         It uses only functions that were omitted by the old syntax-check rule.
8464         * lib/readtokens.c: Include "xalloc.h" once again.
8465         * modules/readtokens (Depends-on): Add xalloc.
8466         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
8467
8468 2010-01-05  Eric Blake  <ebb9@byu.net>
8469
8470         maint: support 'make announcement' from a VPATH build
8471         * top/maint.mk (announcement): Look for correct NEWS file.
8472
8473 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
8474
8475         utimens (fdutimens): ignore a negative FD, per contract
8476         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
8477         when we have a valid file descriptor.  Otherwise, using a brand
8478         new glibc (with just-patched futimens that now fails with EBADF)
8479         would cause this function to fail with ENOSYS.
8480         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
8481         See also http://bugzilla.redhat.com/552320.
8482
8483 2010-01-05  Eric Blake  <ebb9@byu.net>
8484
8485         strcase: document what it provides
8486         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
8487         gnulib module.
8488         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
8489         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
8490
8491 2010-01-05  Jim Meyering  <meyering@redhat.com>
8492
8493         maint: remove useless inclusions of "xalloc.h"
8494         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
8495         * lib/readtokens.c: Likewise.
8496         * lib/same.c: Likewise.
8497         * modules/getloadavg (Depends-on): Remove xalloc.
8498         * modules/readtokens: Likewise.
8499         * modules/same: Likewise.
8500
8501         maint.mk: include 4 more function names in alloca.h-checking regexp
8502         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
8503         regexp.  Before, we would give a false-positive (saying alloca.h
8504         is included unnecessarily) when the only uses involved omitted symbols.
8505
8506         xalloc.h: use consistent formatting
8507         * lib/xalloc.h: Move declarations to start in the first column.
8508
8509 2010-01-05  Eric Blake  <ebb9@byu.net>
8510
8511         mkdir: avoid xalloc
8512         * lib/mkdir.c (includes): Drop unused header.
8513         Reported by John W. Eaton.
8514
8515 2010-01-04  Jim Meyering  <meyering@redhat.com>
8516
8517         nl_langinfo: avoid configure-time syntax error
8518         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
8519         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
8520         the empty string.  Don't let that provoke a shell syntax error.
8521
8522         regcomp, regexec, fnmatch: avoid array bounds read error
8523         * lib/regcomp.c (build_equiv_class): From glibc:
8524         Use only the low 24 bits of a findidx return value as an index
8525         into the weights array.  Patch by Ulrich Drepper:
8526         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
8527         * lib/regexec.c (check_node_accept_bytes): Likewise.
8528         * lib/fnmatch_loop.c (FCT): Likewise.
8529
8530         regcomp: skip collseq lookup when there are no rules
8531         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
8532         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
8533
8534         regcomp: recognize ill-formed { } expressions
8535         * lib/regcomp.c (parse_dup_op): From glibc:
8536         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
8537
8538         regcomp: fix typo in comment
8539         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
8540         s/satisfy/satisfies/.
8541
8542         regcomp: sync from glibc: remove dead store
8543         * lib/regcomp.c (duplicate_node_closure): Remove useless
8544         search_duplicated_node call and dead store.
8545
8546         regcomp: sync from glibc; always use nl_langinfo
8547         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
8548         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
8549         * modules/regex (Depends-on): Add nl_langinfo.
8550
8551 2010-01-04  Eric Blake  <ebb9@byu.net>
8552
8553         fdopendir: fix configure test
8554         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
8555
8556 2010-01-01  Bruno Haible  <bruno@clisp.org>
8557
8558         wchar: Remove unused configure check.
8559         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
8560
8561 2010-01-01  Eric Blake  <ebb9@byu.net>
8562
8563         headers: make check of system header explicit
8564         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
8565         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
8566         ourselves.
8567         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8568         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
8570         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
8571         internals.
8572         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
8573         missing.
8574         Suggested by Bruno Haible.
8575
8576 2010-01-01  Jim Meyering  <meyering@redhat.com>
8577
8578         ChangeLog: tweak to eliminate unnecessary copyright line
8579         * ChangeLog: Remove a copyright line that was mistakenly updated
8580         by today's update-copyright run.  Reported by Eric Blake.
8581
8582         test-update-copyright: don't let envvar setting cause test failure
8583         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8584
8585 2010-01-01  Bruno Haible  <bruno@clisp.org>
8586
8587         localename: Avoid gcc warning.
8588         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
8589         function if it is not used.
8590
8591 2010-01-01  Jim Meyering  <meyering@redhat.com>
8592
8593         update nearly all FSF copyright year lists to include 2010
8594         Use the same procedure as for 2009, outlined in
8595         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
8596
8597         version-etc: set COPYRIGHT_YEAR to 2010
8598         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
8599
8600 2009-12-31  Eric Blake  <ebb9@byu.net>
8601
8602         doc: correct availability of cygwin 1.5.x getopt
8603         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
8604         variables.
8605         * doc/posix-functions/opterr.texi (opterr): Likewise.
8606         * doc/posix-functions/optind.texi (optind): Likewise.
8607         * doc/posix-functions/optopt.texi (optopt): Likewise.
8608         * doc/posix-functions/tzname.texi (tzname): Likewise.
8609
8610         openat: update maintainer
8611         * modules/openat (Maintainer): Add myself.
8612
8613         utimens: avoid shadowing warning
8614         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
8615         buffers into one, to avoid shadowing, as well as avoiding a
8616         redundant stat.
8617         Reported by Jim Meyering.
8618
8619         test-dup2: avoid compiler warning
8620         * tests/test-dup2.c (is_inheritable): Only define if used.
8621
8622 2010-01-01  Bruno Haible  <bruno@clisp.org>
8623
8624         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
8625         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
8626         defined, use wctomb instead of wcrtomb.
8627
8628 2010-01-01  Bruno Haible  <bruno@clisp.org>
8629
8630         iconv: Reject native Solaris iconv.
8631         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
8632         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
8633
8634 2009-12-31  Bruno Haible  <bruno@clisp.org>
8635
8636         * tests/test-signal.c (main): Remove test of 'SIG'.
8637
8638 2009-12-31  Bruno Haible  <bruno@clisp.org>
8639
8640         spawn: Fix incomplete fix.
8641         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8642         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8643         warnings for GNULIB_POSIXCHECK again.
8644         Reported by Eric Blake.
8645
8646 2009-12-31  Bruno Haible  <bruno@clisp.org>
8647
8648         Avoid namespace pollution on glibc systems.
8649         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
8650         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
8651         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
8652         glibc systems.
8653
8654 2009-12-31  Bruno Haible  <bruno@clisp.org>
8655
8656         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
8657         (gl_REPLACE_WCHAR_H): Turn into a no-op.
8658         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
8659         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8660         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8661         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8662         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8663
8664 2009-12-31  Bruno Haible  <bruno@clisp.org>
8665
8666         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8667         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
8668         afterwards.
8669
8670 2009-12-31  Bruno Haible  <bruno@clisp.org>
8671
8672         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
8673         SYS_UTSNAME_H.
8674
8675 2009-12-31  Bruno Haible  <bruno@clisp.org>
8676
8677         spawn: Fix misapplied patch.
8678         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8679         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8680         warnings for GNULIB_POSIXCHECK.
8681
8682 2009-12-31  Bruno Haible  <bruno@clisp.org>
8683
8684         times: Update after sys_times changed.
8685         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
8686         * modules/times (Files): Add it.
8687         (configure.ac): Invoke gl_FUNC_TIMES.
8688
8689 2009-12-31  Bruno Haible  <bruno@clisp.org>
8690
8691         Use AC_C_INLINE where necessary.
8692         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
8693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8694         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8695         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8696         * m4/mbfile.m4 (gl_MBFILE): Likewise.
8697         * m4/mbiter.m4 (gl_MBITER): Likewise.
8698         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8699         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8700         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
8701         * modules/u64 (configure.ac): Likewise.
8702
8703 2009-12-31  Bruno Haible  <bruno@clisp.org>
8704
8705         Use AC_C_INLINE instead of module 'inline' where possible.
8706         * modules/inline (Description): Clarify purpose.
8707         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
8708         * modules/count-one-bits (Depends-on): Remove inline.
8709         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
8710         * modules/openat (Depends-on): Remove inline.
8711         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
8712         instead of depending on module 'inline'.
8713         * modules/filevercmp (Depends-on, configure.ac): Likewise.
8714         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
8715         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
8716         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
8717         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
8718         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
8719         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
8720         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
8721         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
8722         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
8723         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
8724         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
8725         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
8726         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
8727         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
8728         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
8729         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
8730         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
8731         Likewise.
8732         * modules/unictype/property-ascii-hex-digit (Depends-on,
8733         configure.ac): Likewise.
8734         * modules/unictype/property-bidi-arabic-digit (Depends-on,
8735         configure.ac): Likewise.
8736         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
8737         configure.ac): Likewise.
8738         * modules/unictype/property-bidi-block-separator (Depends-on,
8739         configure.ac): Likewise.
8740         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
8741         configure.ac): Likewise.
8742         * modules/unictype/property-bidi-common-separator (Depends-on,
8743         configure.ac): Likewise.
8744         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
8745         Likewise.
8746         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
8747         configure.ac): Likewise.
8748         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
8749         configure.ac): Likewise.
8750         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
8751         configure.ac): Likewise.
8752         * modules/unictype/property-bidi-european-digit (Depends-on,
8753         configure.ac): Likewise.
8754         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
8755         configure.ac): Likewise.
8756         * modules/unictype/property-bidi-left-to-right (Depends-on,
8757         configure.ac): Likewise.
8758         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
8759         configure.ac): Likewise.
8760         * modules/unictype/property-bidi-other-neutral (Depends-on,
8761         configure.ac): Likewise.
8762         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
8763         Likewise.
8764         * modules/unictype/property-bidi-segment-separator (Depends-on,
8765         configure.ac): Likewise.
8766         * modules/unictype/property-bidi-whitespace (Depends-on,
8767         configure.ac): Likewise.
8768         * modules/unictype/property-combining (Depends-on, configure.ac):
8769         Likewise.
8770         * modules/unictype/property-composite (Depends-on, configure.ac):
8771         Likewise.
8772         * modules/unictype/property-currency-symbol (Depends-on,
8773         configure.ac): Likewise.
8774         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
8775         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
8776         Likewise.
8777         * modules/unictype/property-default-ignorable-code-point (Depends-on,
8778         configure.ac): Likewise.
8779         * modules/unictype/property-deprecated (Depends-on, configure.ac):
8780         Likewise.
8781         * modules/unictype/property-diacritic (Depends-on, configure.ac):
8782         Likewise.
8783         * modules/unictype/property-extender (Depends-on, configure.ac):
8784         Likewise.
8785         * modules/unictype/property-format-control (Depends-on, configure.ac):
8786         Likewise.
8787         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
8788         Likewise.
8789         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
8790         Likewise.
8791         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
8792         Likewise.
8793         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
8794         Likewise.
8795         * modules/unictype/property-hyphen (Depends-on, configure.ac):
8796         Likewise.
8797         * modules/unictype/property-id-continue (Depends-on, configure.ac):
8798         Likewise.
8799         * modules/unictype/property-id-start (Depends-on, configure.ac):
8800         Likewise.
8801         * modules/unictype/property-ideographic (Depends-on, configure.ac):
8802         Likewise.
8803         * modules/unictype/property-ids-binary-operator (Depends-on,
8804         configure.ac): Likewise.
8805         * modules/unictype/property-ids-trinary-operator (Depends-on,
8806         configure.ac): Likewise.
8807         * modules/unictype/property-ignorable-control (Depends-on,
8808         configure.ac): Likewise.
8809         * modules/unictype/property-iso-control (Depends-on, configure.ac):
8810         Likewise.
8811         * modules/unictype/property-join-control (Depends-on, configure.ac):
8812         Likewise.
8813         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
8814         Likewise.
8815         * modules/unictype/property-line-separator (Depends-on, configure.ac):
8816         Likewise.
8817         * modules/unictype/property-logical-order-exception (Depends-on,
8818         configure.ac): Likewise.
8819         * modules/unictype/property-lowercase (Depends-on, configure.ac):
8820         Likewise.
8821         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
8822         * modules/unictype/property-non-break (Depends-on, configure.ac):
8823         Likewise.
8824         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
8825         Likewise.
8826         * modules/unictype/property-numeric (Depends-on, configure.ac):
8827         Likewise.
8828         * modules/unictype/property-other-alphabetic (Depends-on,
8829         configure.ac): Likewise.
8830         * modules/unictype/property-other-default-ignorable-code-point
8831         (Depends-on, configure.ac): Likewise.
8832         * modules/unictype/property-other-grapheme-extend (Depends-on,
8833         configure.ac): Likewise.
8834         * modules/unictype/property-other-id-continue (Depends-on,
8835         configure.ac): Likewise.
8836         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
8837         Likewise.
8838         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
8839         Likewise.
8840         * modules/unictype/property-other-math (Depends-on, configure.ac):
8841         Likewise.
8842         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
8843         Likewise.
8844         * modules/unictype/property-paired-punctuation (Depends-on,
8845         configure.ac): Likewise.
8846         * modules/unictype/property-paragraph-separator (Depends-on,
8847         configure.ac): Likewise.
8848         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
8849         Likewise.
8850         * modules/unictype/property-pattern-white-space (Depends-on,
8851         configure.ac): Likewise.
8852         * modules/unictype/property-private-use (Depends-on, configure.ac):
8853         Likewise.
8854         * modules/unictype/property-punctuation (Depends-on, configure.ac):
8855         Likewise.
8856         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
8857         Likewise.
8858         * modules/unictype/property-radical (Depends-on, configure.ac):
8859         Likewise.
8860         * modules/unictype/property-sentence-terminal (Depends-on,
8861         configure.ac): Likewise.
8862         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
8863         Likewise.
8864         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
8865         * modules/unictype/property-terminal-punctuation (Depends-on,
8866         configure.ac): Likewise.
8867         * modules/unictype/property-titlecase (Depends-on, configure.ac):
8868         Likewise.
8869         * modules/unictype/property-unassigned-code-value (Depends-on,
8870         configure.ac): Likewise.
8871         * modules/unictype/property-unified-ideograph (Depends-on,
8872         configure.ac): Likewise.
8873         * modules/unictype/property-uppercase (Depends-on, configure.ac):
8874         Likewise.
8875         * modules/unictype/property-variation-selector (Depends-on,
8876         configure.ac): Likewise.
8877         * modules/unictype/property-white-space (Depends-on, configure.ac):
8878         Likewise.
8879         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
8880         Likewise.
8881         * modules/unictype/property-xid-start (Depends-on, configure.ac):
8882         Likewise.
8883         * modules/unictype/property-zero-width (Depends-on, configure.ac):
8884         Likewise.
8885         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
8886         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
8887         Likewise.
8888
8889 2009-12-31  Bruno Haible  <bruno@clisp.org>
8890
8891         Remove unnecessary AC_C_INLINE invocation.
8892         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
8893         since 2009-08-21.
8894
8895 2009-12-31  Jim Meyering  <meyering@redhat.com>
8896
8897         maint.mk: don't require explicit gpg_key_ID in cfg.mk
8898         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
8899         With this change, we can all remove the gpg_key_ID = ... definition
8900         from our respective cfg.mk files.
8901
8902         maint.mk: create announcement template in ~/, not in /tmp
8903         * top/maint.mk (emit_upload_commands): Adjust.
8904         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
8905         Remove temporary file, .ci-msg.
8906
8907 2009-12-31  Eric Blake  <ebb9@byu.net>
8908
8909         link-warning: always build headers with link warnings
8910         * modules/arpa_inet (Makefile.am): Always build replacement
8911         header.
8912         * modules/ctype (Makefile.am): Likewise.
8913         * modules/dirent (Makefile.am): Likewise.
8914         * modules/inttypes (Makefile.am): Likewise.
8915         * modules/langinfo (Makefile.am): Likewise.
8916         * modules/locale (Makefile.am): Likewise.
8917         * modules/spawn (Makefile.am): Likewise.
8918         * modules/sys_file (Makefile.am): Likewise.
8919         * modules/sys_ioctl (Makefile.am): Likewise.
8920         * modules/sys_select (Makefile.am): Likewise.
8921         * modules/sys_socket (Makefile.am): Likewise.
8922         * modules/sys_times (Makefile.am): Likewise.
8923         * modules/sys_utsname (Makefile.am): Likewise.
8924         * modules/sys_wait (Makefile.am): Likewise.
8925         * modules/wchar (Makefile.am): Likewise.
8926         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8927         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8928         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8929         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8930         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8931         Likewise.
8932         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8933         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8934         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8935         Likewise.
8936         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8937         Likewise.
8938         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8939         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8940         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8941         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8942         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8943         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8944         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8945         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8946         (gl_WCHAR_H_DEFAULTS): Likewise.
8947
8948 2009-12-31  Eric Blake  <ebb9@byu.net>
8949
8950         signal, spawn: use link warnings
8951         * lib/signal.in.h (sigset_t): Make unconditional.
8952         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8953         (sigpending, sigprocmask, sigaction): Add link warnings.
8954         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
8955         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
8956         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
8957         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
8958         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
8959         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
8960         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
8961         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
8962         (posix_spawn_file_actions_destroy)
8963         (posix_spawn_file_actions_addopen)
8964         (posix_spawn_file_actions_addclose)
8965         (posix_spawn_file_actions_adddup2): Likewise.
8966         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
8967         * tests/test-signal.c (main): Enhance test.
8968
8969         spawn: improve wrapper support
8970         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
8971         (gl_SPAWN_H_DEFAULTS): New defaults.
8972         * modules/spawn (Makefile.am): Substitute them.
8973         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
8974         Only declare if missing or broken.
8975
8976         sys_times, sys_utsname: use include_next
8977         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
8978         header.
8979         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
8980         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8981         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8982         * modules/sys_times (Depends-on): Add include_next.
8983         (Makefile.am): Substitute additional values.
8984         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8985         * lib/sys_times.in.h (includes): Include native header, if
8986         available.
8987         * lib/sys_utsname.in.h (includes): Likewise.
8988         * tests/test-sys_times.c (main): Enhance test.
8989
8990         fdutimensat: revert prior patch
8991         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
8992         utimens.h.
8993         Reported by Bruno Haible.
8994
8995 2009-12-30  Eric Blake  <ebb9@byu.net>
8996
8997         sys_wait: drop link-warning dependency
8998         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
8999         link-warning efforts.
9000         * lib/sys_wait.in.h: Likewise.
9001
9002         fdutimensat: remove bogus dependency
9003         * modules/fdutimensat (Depends-on): Drop inline.
9004
9005         unistd: fix typo
9006         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9007
9008 2009-12-30  Bruno Haible  <bruno@clisp.org>
9009
9010         Fix compilation error with Solaris cc.
9011         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9012         * lib/unicase/u16-is-invariant.c: Likewise.
9013         * lib/unicase/u32-is-invariant.c: Likewise.
9014         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9015
9016 2009-12-30  Bruno Haible  <bruno@clisp.org>
9017
9018         Fix test crash.
9019         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9020         locales.
9021         Reported by Simon Josefsson <simon@josefsson.org>.
9022
9023 2009-12-30  Bruno Haible  <bruno@clisp.org>
9024
9025         Fix compilation error on most platforms.
9026         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9027         Reported by Simon Josefsson <simon@josefsson.org>
9028         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9029
9030 2009-12-30  Eric Blake  <ebb9@byu.net>
9031
9032         futimens, utimensat: work around ntfs-3g bug
9033         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9034         a ctime bug is present, and expand workaround to cover ntfs-3g.
9035         * lib/utimens.c (fdutimens, lutimens): Likewise.
9036         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9037         (validate_timespec): Adjust return value.
9038         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9039         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9040         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9041
9042 2009-12-29  Eric Blake  <ebb9@byu.net>
9043
9044         link-warning: make usage consistent
9045         * modules/ctype (Depends-on): Add link-warning.
9046         (Makefile.am): Update rules accordingly.
9047         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9048         * modules/locale (Depends-on, Makefile.am): Likewise.
9049         * modules/sys_file (Makefile.am): Likewise.
9050         * modules/getopt-posix (Makefile.am): Delete unused link warning
9051         efforts.
9052         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9053         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9054         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9055         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9056
9057         stdio: remove unused variables
9058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9059         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9060         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9061
9062         tests: test more substitute headers
9063         * modules/ctype-tests: New file.
9064         * modules/dirent-tests: Likewise.
9065         * modules/spawn-tests: Likewise.
9066         * modules/sys_file-tests: Likewise.
9067         * modules/sys_ioctl-tests: Likewise.
9068         * modules/sys_wait-tests: Likewise.
9069         * tests/test-ctype.c: Likewise.
9070         * tests/test-dirent.c: Likewise.
9071         * tests/test-spawn.c: Likewise.
9072         * tests/test-sys_file.c: Likewise.
9073         * tests/test-sys_ioctl.c: Likewise.
9074         * tests/test-sys_wait.c: Likewise.
9075         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9076         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9077         whether or not flock is in use.
9078
9079         tests: remove License section from module
9080         * modules/arpa_inet-tests: Remove unneeded section.
9081         * modules/byteswap-tests: Likewise.
9082         * modules/ceilf-tests: Likewise.
9083         * modules/ceill-tests: Likewise.
9084         * modules/crypto/des-tests: Likewise.
9085         * modules/crypto/gc-arcfour-tests: Likewise.
9086         * modules/crypto/gc-arctwo-tests: Likewise.
9087         * modules/crypto/gc-des-tests: Likewise.
9088         * modules/crypto/gc-hmac-md5-tests: Likewise.
9089         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9090         * modules/crypto/gc-md2-tests: Likewise.
9091         * modules/crypto/gc-md4-tests: Likewise.
9092         * modules/crypto/gc-md5-tests: Likewise.
9093         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9094         * modules/crypto/gc-rijndael-tests: Likewise.
9095         * modules/crypto/gc-sha1-tests: Likewise.
9096         * modules/crypto/gc-tests: Likewise.
9097         * modules/crypto/md2-tests: Likewise.
9098         * modules/crypto/md4-tests: Likewise.
9099         * modules/fcntl-h-tests: Likewise.
9100         * modules/floorf-tests: Likewise.
9101         * modules/floorl-tests: Likewise.
9102         * modules/frexp-nolibm-tests: Likewise.
9103         * modules/frexp-tests: Likewise.
9104         * modules/frexpl-nolibm-tests: Likewise.
9105         * modules/frexpl-tests: Likewise.
9106         * modules/getaddrinfo-tests: Likewise.
9107         * modules/inttypes-tests: Likewise.
9108         * modules/isfinite-tests: Likewise.
9109         * modules/isinf-tests: Likewise.
9110         * modules/ldexpl-tests: Likewise.
9111         * modules/locale-tests: Likewise.
9112         * modules/math-tests: Likewise.
9113         * modules/netdb-tests: Likewise.
9114         * modules/netinet_in-tests: Likewise.
9115         * modules/printf-frexp-tests: Likewise.
9116         * modules/printf-frexpl-tests: Likewise.
9117         * modules/priv-set-tests: Likewise.
9118         * modules/random_r-tests: Likewise.
9119         * modules/round-tests: Likewise.
9120         * modules/roundf-tests: Likewise.
9121         * modules/roundl-tests: Likewise.
9122         * modules/search-tests: Likewise.
9123         * modules/select-tests: Likewise.
9124         * modules/signal-tests: Likewise.
9125         * modules/stdbool-tests: Likewise.
9126         * modules/stddef-tests: Likewise.
9127         * modules/stdint-tests: Likewise.
9128         * modules/stdio-tests: Likewise.
9129         * modules/stdlib-tests: Likewise.
9130         * modules/string-tests: Likewise.
9131         * modules/strings-tests: Likewise.
9132         * modules/sys_select-tests: Likewise.
9133         * modules/sys_socket-tests: Likewise.
9134         * modules/sys_stat-tests: Likewise.
9135         * modules/sys_time-tests: Likewise.
9136         * modules/sys_utsname-tests: Likewise.
9137         * modules/sysexits-tests: Likewise.
9138         * modules/time-tests: Likewise.
9139         * modules/trunc-tests: Likewise.
9140         * modules/truncf-tests: Likewise.
9141         * modules/truncl-tests: Likewise.
9142         * modules/tsearch-tests: Likewise.
9143         * modules/unistd-tests: Likewise.
9144         * modules/wchar-tests: Likewise.
9145         * modules/wctype-tests: Likewise.
9146
9147         tests: fix license on several tests
9148         * tests/test-des.c: Update to GPLv3+.
9149         * tests/test-flock.c: Likewise.
9150         * tests/test-fsync.c: Likewise.
9151         * tests/test-futimens.h: Likewise.
9152         * tests/test-gc-arcfour.c: Likewise.
9153         * tests/test-gc-arctwo.c: Likewise.
9154         * tests/test-gc-des.c: Likewise.
9155         * tests/test-gc-hmac-md5.c: Likewise.
9156         * tests/test-gc-hmac-sha1.c: Likewise.
9157         * tests/test-gc-md2.c: Likewise.
9158         * tests/test-gc-md4.c: Likewise.
9159         * tests/test-gc-md5.c: Likewise.
9160         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9161         * tests/test-gc-rijndael.c: Likewise.
9162         * tests/test-gc-sha1.c: Likewise.
9163         * tests/test-gc.c: Likewise.
9164         * tests/test-getcwd.c: Likewise.
9165         * tests/test-link.c: Likewise.
9166         * tests/test-link.h: Likewise.
9167         * tests/test-lutimens.h: Likewise.
9168         * tests/test-md2.c: Likewise.
9169         * tests/test-md4.c: Likewise.
9170         * tests/test-mkdir.h: Likewise.
9171         * tests/test-rename.c: Likewise.
9172         * tests/test-rename.h: Likewise.
9173         * tests/test-safe-alloc.c: Likewise.
9174         * tests/test-utimens-common.h: Likewise.
9175         * tests/test-utimens.h: Likewise.
9176
9177         maint: sync license texts
9178         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9179         * doc/gpl-3.0.texi: Revert copyright year update.
9180         * doc/lgpl-3.0.texi: Likewise.
9181
9182 2009-12-29  Jim Meyering  <meyering@redhat.com>
9183
9184         update nearly all FSF copyright year lists to include 2009
9185         The files named by the following are exempted:
9186             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9187               test -f "$dst" && { echo "$dst"; continue; }
9188               test -d "$dst" || continue
9189               echo "$dst"/$(basename "$src")
9190             done > exempt
9191             git ls-files tests/unictype >> exempt
9192         In the remaining files, convert to all-interval notation if
9193         - there is already at least one year interval like 2000-2003
9194         - the file is maintained by me
9195         - the file is in lib/uni*/, where that style already prevails
9196         Otherwise, use update-copyright's default.
9197
9198 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9199         and Eric Blake  <ebb9@byu.net>
9200
9201         tests: don't require debug system() to pass
9202         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9203         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9204         * tests/test-unlink.h (test_unlink_func): Likewise.
9205         * tests/test-fstatat.c (main): ...into callers.
9206         * tests/test-lstat.c (main): Likewise.
9207         * tests/test-rmdir.c (main): Likewise.
9208         * tests/test-unlink.c (main): Likewise.
9209         * tests/test-unlinkat.c (main): Likewise.
9210         * tests/test-areadlink-with-size.c (main): Don't require a
9211         debug-only system call to pass, aiding cross-testing to mingw.
9212         * tests/test-areadlink.c (main): Likewise.
9213         * tests/test-areadlinkat-with-size.c (main): Likewise.
9214         * tests/test-areadlinkat.c (main): Likewise.
9215         * tests/test-canonicalize-lgpl.c (main): Likewise.
9216         * tests/test-canonicalize.c (main): Likewise.
9217         * tests/test-chown.c (main): Likewise.
9218         * tests/test-fchownat.c (main): Likewise.
9219         * tests/test-lchown.c (main): Likewise.
9220         * tests/test-fdutimensat.c (main): Likewise.
9221         * tests/test-futimens.c (main): Likewise.
9222         * tests/test-link.c (main): Likewise.
9223         * tests/test-linkat.c (main): Likewise.
9224         * tests/test-mkdir.c (main): Likewise.
9225         * tests/test-mkdirat.c (main): Likewise.
9226         * tests/test-mkfifo.c (main): Likewise.
9227         * tests/test-mkfifoat.c (main): Likewise.
9228         * tests/test-mknod.c (main): Likewise.
9229         * tests/test-readlink.c (main): Likewise.
9230         * tests/test-remove.c (main): Likewise.
9231         * tests/test-rename.c (main): Likewise.
9232         * tests/test-renameat.c (main): Likewise.
9233         * tests/test-symlink.c (main): Likewise.
9234         * tests/test-symlinkat.c (main): Likewise.
9235         * tests/test-utimens.c (main): Likewise.
9236         * tests/test-utimensat.c (main): Likewise.
9237
9238 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9239
9240         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9241         on $(UNUSED_PARAMETER_H) to avoid build failure.
9242
9243 2009-12-28  Jim Meyering  <meyering@redhat.com>
9244
9245         update-copyright: you may specify a max. line length other than 72
9246         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9247
9248         maint: use consistent FSF copyright line syntax
9249         * lib/posixtm.c: Add missing comma in FSF copyright line.
9250         * lib/posixtm.h: Likewise.
9251         * lib/getugroups.c: Add missing ", Inc.".
9252
9253         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9254         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9255         FSF copyright line.  Remove trailing blanks.
9256
9257 2009-12-28  Eric Blake  <ebb9@byu.net>
9258
9259         test-dup2: reduce dependencies
9260         * modules/cloexec (Configure.ac): Set witness.
9261         * modules/dup2-tests (Depends-on): Drop cloexec.
9262         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9263         not present.
9264         Suggested by Bruno Haible.
9265
9266 2009-12-26  Bruno Haible  <bruno@clisp.org>
9267
9268         Remove an unneeded dependency.
9269         * modules/fseterr (Depends-on): Remove dup2.
9270
9271 2009-12-26  Eric Blake  <ebb9@byu.net>
9272
9273         tests: use macros.h in more places
9274         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9275         (ASSERT_STREAM): Provide default of stderr.
9276         * tests/test-dirent-safer.c: Include macros.h, using alternate
9277         stream for assertions.
9278         * tests/test-dup-safer.c: Likewise.
9279         * tests/test-freopen-safer.c: Likewise.
9280         * tests/test-getopt.c: Likewise.
9281         * tests/test-openat-safer.c: Likewise.
9282         * tests/test-pipe.c: Likewise.
9283         * tests/test-popen-safer.c: Likewise.
9284         * modules/dirent-safer-tests (Files): Include macros.h.
9285         * modules/unistd-safer-tests (Files): Likewise.
9286         * modules/freopen-safer-tests (Files): Likewise.
9287         * modules/getopt-posix-tests (Files): Likewise.
9288         * modules/openat-safer-tests (Files): Likewise.
9289         * modules/pipe-tests (Files): Likewise.
9290
9291 2009-12-26  Bruno Haible  <bruno@clisp.org>
9292
9293         javacomp: Portability fix.
9294         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9295         that it also works on Solaris.
9296
9297 2009-12-26  Bruno Haible  <bruno@clisp.org>
9298
9299         localename: Fix storage allocation of gl_locale_name_thread's result.
9300         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9301         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9302         all platforms that have 'uselocale'.
9303         (gl_locale_name_thread_unsafe): New function, extracted from
9304         gl_locale_name_thread.
9305         (gl_locale_name_thread): Call struniq on all platforms that have
9306         'uselocale'.
9307         * tests/test-localename.c (test_locale_name_thread): Check that the
9308         resulting strings are permanently allocated.
9309         * modules/localename-tests (Depends-on): Add strdup.
9310
9311 2009-12-26  Bruno Haible  <bruno@clisp.org>
9312
9313         * tests/test-localename.c (categories): Fill in the strings.
9314
9315 2009-12-26  Jim Meyering  <meyering@redhat.com>
9316
9317         isdir: complete the removal of m4/isdir.m4
9318         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9319
9320         isdir: clean up, since at least grep still uses it
9321         * lib/isdir.c: Include "isdir.h".
9322         (S_ISDIR): Remove now-unneeded definition.
9323         * modules/isdir (Files): Add lib/isdir.h.
9324         * lib/isdir.h: New file, with declaration.
9325         * m4/isdir.m4: Remove file -- unneeded.
9326
9327 2009-12-25  Bruno Haible  <bruno@clisp.org>
9328
9329         selinux-h: Make generated .h files standalone.
9330         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9331         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9332         * lib/se-selinux.in.h: Likewise.
9333         * modules/selinux-h (Depends-on): Add unused-parameter.
9334         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9335         selinux/selinux.h and selinux/context.h.
9336         Suggested by Eric Blake.
9337
9338 2009-12-25  Bruno Haible  <bruno@clisp.org>
9339
9340         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9341         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9342         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9343         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9344         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9345
9346 2009-12-24  Bruno Haible  <bruno@clisp.org>
9347
9348         openat: Fix warning.
9349         * lib/openat-proc.c: Include <unistd.h>.
9350
9351 2009-12-24  Bruno Haible  <bruno@clisp.org>
9352
9353         New module 'unused-parameter'.
9354         * build-aux/unused-parameter.h: New file, extracted from earlier
9355         gnulib-common.m4.
9356         * modules/unused-parameter: New file.
9357         * lib/unistr.h: Include unused-parameter.h.
9358         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9359         _GL_UNUSED.
9360         * modules/unistr/base (Depends-on): Add unused-parameter.
9361
9362 2009-12-24  Bruno Haible  <bruno@clisp.org>
9363
9364         Add missing dependencies to 'extensions' module.
9365         * m4/extensions.m4: Add comment.
9366         * modules/accept4 (Depends-on): Add extensions.
9367         * modules/dup3 (Depends-on): Likewise.
9368         * modules/fcntl (Depends-on): Likewise.
9369         * modules/futimens (Depends-on): Likewise.
9370         * modules/mknod (Depends-on): Likewise.
9371         * modules/pipe2 (Depends-on): Likewise.
9372         * modules/stat-time (Depends-on): Likewise.
9373         * modules/strcasestr-simple (Depends-on): Likewise.
9374         * modules/strsignal (Depends-on): Likewise.
9375         * modules/utimensat (Depends-on): Likewise.
9376         * modules/localcharset (Depends-on): Likewise. Needed because of
9377         gl_FCNTL_O_FLAGS.
9378         * modules/wcrtomb (Depends-on): Likewise. Needed because of
9379         AC_TYPE_MBSTATE_T.
9380         * modules/wcsnrtombs (Depends-on): Likewise.
9381         * modules/wcsrtombs (Depends-on): Likewise.
9382
9383 2009-12-24  Bruno Haible  <bruno@clisp.org>
9384
9385         binary-io: Avoid gcc warning due to SET_BINARY.
9386         * lib/binary-io.h (SET_BINARY): Cast the result to void.
9387         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
9388
9389 2009-12-24  Bruno Haible  <bruno@clisp.org>
9390
9391         Avoid future namespace pollution on glibc systems.
9392         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
9393         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
9394         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
9395         glibc systems.
9396
9397 2009-12-24  Bruno Haible  <bruno@clisp.org>
9398
9399         Refactor common macros used in tests.
9400         * tests/macros.h: New file.
9401         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
9402         and/or <stdlib.h>, if appropriate.
9403         (ASSERT, SIZEOF): Remove macros.
9404         * tests/test-areadlink-with-size.c: Likewise.
9405         * tests/test-areadlinkat.c: Likewise.
9406         * tests/test-areadlinkat-with-size.c: Likewise.
9407         * tests/test-argmatch.c: Likewise.
9408         * tests/test-argv-iter.c: Likewise.
9409         * tests/test-array-mergesort.c: Likewise.
9410         * tests/test-array_list.c: Likewise.
9411         * tests/test-array_oset.c: Likewise.
9412         * tests/test-avltree_list.c: Likewise.
9413         * tests/test-avltree_oset.c: Likewise.
9414         * tests/test-avltreehash_list.c: Likewise.
9415         * tests/test-base64.c: Likewise.
9416         * tests/test-binary-io.c: Likewise.
9417         * tests/test-bitrotate.c: Likewise.
9418         * tests/test-btowc.c: Likewise.
9419         * tests/test-byteswap.c: Likewise.
9420         * tests/test-c-ctype.c: Likewise.
9421         * tests/test-c-stack.c: Likewise.
9422         * tests/test-c-strcasecmp.c: Likewise.
9423         * tests/test-c-strcasestr.c: Likewise.
9424         * tests/test-c-strncasecmp.c: Likewise.
9425         * tests/test-c-strstr.c: Likewise.
9426         * tests/test-canonicalize-lgpl.c: Likewise.
9427         * tests/test-canonicalize.c: Likewise.
9428         * tests/test-carray_list.c: Likewise.
9429         * tests/test-ceilf1.c: Likewise.
9430         * tests/test-ceilf2.c: Likewise.
9431         * tests/test-ceill.c: Likewise.
9432         * tests/test-chown.c: Likewise.
9433         * tests/test-cloexec.c: Likewise.
9434         * tests/test-copy-acl.c: Likewise.
9435         * tests/test-copy-file.c: Likewise.
9436         * tests/test-count-one-bits.c: Likewise.
9437         * tests/test-dprintf-posix.c: Likewise.
9438         * tests/test-dup2.c: Likewise.
9439         * tests/test-dup3.c: Likewise.
9440         * tests/test-duplocale.c: Likewise.
9441         * tests/test-fbufmode.c: Likewise.
9442         * tests/test-fchdir.c: Likewise.
9443         * tests/test-fchownat.c: Likewise.
9444         * tests/test-fcntl-safer.c: Likewise.
9445         * tests/test-fcntl.c: Likewise.
9446         * tests/test-fdopendir.c: Likewise.
9447         * tests/test-fdutimensat.c: Likewise.
9448         * tests/test-fflush2.c: Likewise.
9449         * tests/test-file-has-acl.c: Likewise.
9450         * tests/test-filevercmp.c: Likewise.
9451         * tests/test-flock.c: Likewise.
9452         * tests/test-floorf1.c: Likewise.
9453         * tests/test-floorf2.c: Likewise.
9454         * tests/test-floorl.c: Likewise.
9455         * tests/test-fnmatch.c: Likewise.
9456         * tests/test-fopen.h: Likewise.
9457         * tests/test-fpending.c: Likewise.
9458         * tests/test-fprintf-posix.c: Likewise.
9459         * tests/test-fpurge.c: Likewise.
9460         * tests/test-freadable.c: Likewise.
9461         * tests/test-freadahead.c: Likewise.
9462         * tests/test-freading.c: Likewise.
9463         * tests/test-freadptr.c: Likewise.
9464         * tests/test-freadptr2.c: Likewise.
9465         * tests/test-freadseek.c: Likewise.
9466         * tests/test-freopen.c: Likewise.
9467         * tests/test-frexp.c: Likewise.
9468         * tests/test-frexpl.c: Likewise.
9469         * tests/test-fseek.c: Likewise.
9470         * tests/test-fseeko.c: Likewise.
9471         * tests/test-fstatat.c: Likewise.
9472         * tests/test-fstrcmp.c: Likewise.
9473         * tests/test-fsync.c: Likewise.
9474         * tests/test-ftell.c: Likewise.
9475         * tests/test-ftello.c: Likewise.
9476         * tests/test-func.c: Likewise.
9477         * tests/test-futimens.c: Likewise.
9478         * tests/test-fwritable.c: Likewise.
9479         * tests/test-fwriting.c: Likewise.
9480         * tests/test-getcwd.c: Likewise.
9481         * tests/test-getdate.c: Likewise.
9482         * tests/test-getdelim.c: Likewise.
9483         * tests/test-getdtablesize.c: Likewise.
9484         * tests/test-getgroups.c: Likewise.
9485         * tests/test-getline.c: Likewise.
9486         * tests/test-getndelim2.c: Likewise.
9487         * tests/test-glob.c: Likewise.
9488         * tests/test-hash.c: Likewise.
9489         * tests/test-i-ring.c: Likewise.
9490         * tests/test-iconv-utf.c: Likewise.
9491         * tests/test-iconv.c: Likewise.
9492         * tests/test-idpriv-drop.c: Likewise.
9493         * tests/test-idpriv-droptemp.c: Likewise.
9494         * tests/test-inet_ntop.c: Likewise.
9495         * tests/test-inet_pton.c: Likewise.
9496         * tests/test-isblank.c: Likewise.
9497         * tests/test-isfinite.c: Likewise.
9498         * tests/test-isinf.c: Likewise.
9499         * tests/test-isnan.c: Likewise.
9500         * tests/test-isnand.h: Likewise.
9501         * tests/test-isnanf.h: Likewise.
9502         * tests/test-isnanl.h: Likewise.
9503         * tests/test-lchown.c: Likewise.
9504         * tests/test-ldexpl.c: Likewise.
9505         * tests/test-link.c: Likewise.
9506         * tests/test-linkat.c: Likewise.
9507         * tests/test-linked_list.c: Likewise.
9508         * tests/test-linkedhash_list.c: Likewise.
9509         * tests/test-localename.c: Likewise.
9510         * tests/test-lseek.c: Likewise.
9511         * tests/test-lstat.c: Likewise.
9512         * tests/test-mbmemcasecmp.c: Likewise.
9513         * tests/test-mbmemcasecoll.c: Likewise.
9514         * tests/test-mbrtowc.c: Likewise.
9515         * tests/test-mbscasecmp.c: Likewise.
9516         * tests/test-mbscasestr1.c: Likewise.
9517         * tests/test-mbscasestr2.c: Likewise.
9518         * tests/test-mbscasestr3.c: Likewise.
9519         * tests/test-mbscasestr4.c: Likewise.
9520         * tests/test-mbschr.c: Likewise.
9521         * tests/test-mbscspn.c: Likewise.
9522         * tests/test-mbsinit.c: Likewise.
9523         * tests/test-mbsncasecmp.c: Likewise.
9524         * tests/test-mbsnrtowcs.c: Likewise.
9525         * tests/test-mbspbrk.c: Likewise.
9526         * tests/test-mbspcasecmp.c: Likewise.
9527         * tests/test-mbsrchr.c: Likewise.
9528         * tests/test-mbsrtowcs.c: Likewise.
9529         * tests/test-mbsspn.c: Likewise.
9530         * tests/test-mbsstr1.c: Likewise.
9531         * tests/test-mbsstr2.c: Likewise.
9532         * tests/test-mbsstr3.c: Likewise.
9533         * tests/test-memchr.c: Likewise.
9534         * tests/test-memchr2.c: Likewise.
9535         * tests/test-memcmp.c: Likewise.
9536         * tests/test-memmem.c: Likewise.
9537         * tests/test-memrchr.c: Likewise.
9538         * tests/test-mkdir.c: Likewise.
9539         * tests/test-mkdirat.c: Likewise.
9540         * tests/test-mkfifo.c: Likewise.
9541         * tests/test-mkfifoat.c: Likewise.
9542         * tests/test-mknod.c: Likewise.
9543         * tests/test-nanosleep.c: Likewise.
9544         * tests/test-nl_langinfo.c: Likewise.
9545         * tests/test-obstack-printf.c: Likewise.
9546         * tests/test-open.c: Likewise.
9547         * tests/test-openat.c: Likewise.
9548         * tests/test-pipe-filter-gi1.c: Likewise.
9549         * tests/test-pipe-filter-gi2-main.c: Likewise.
9550         * tests/test-pipe-filter-ii1.c: Likewise.
9551         * tests/test-pipe-filter-ii2-main.c: Likewise.
9552         * tests/test-pipe2.c: Likewise.
9553         * tests/test-popen.h: Likewise.
9554         * tests/test-posixtm.c: Likewise.
9555         * tests/test-pread.c: Likewise.
9556         * tests/test-printf-frexp.c: Likewise.
9557         * tests/test-printf-frexpl.c: Likewise.
9558         * tests/test-printf-posix.c: Likewise.
9559         * tests/test-priv-set.c: Likewise.
9560         * tests/test-quotearg.c: Likewise.
9561         * tests/test-random_r.c: Likewise.
9562         * tests/test-rawmemchr.c: Likewise.
9563         * tests/test-rbtree_list.c: Likewise.
9564         * tests/test-rbtree_oset.c: Likewise.
9565         * tests/test-rbtreehash_list.c: Likewise.
9566         * tests/test-readlink.c: Likewise.
9567         * tests/test-remove.c: Likewise.
9568         * tests/test-rename.c: Likewise.
9569         * tests/test-renameat.c: Likewise.
9570         * tests/test-rmdir.c: Likewise.
9571         * tests/test-round1.c: Likewise.
9572         * tests/test-roundf1.c: Likewise.
9573         * tests/test-roundl.c: Likewise.
9574         * tests/test-safe-alloc.c: Likewise.
9575         * tests/test-sameacls.c: Likewise.
9576         * tests/test-set-mode-acl.c: Likewise.
9577         * tests/test-setenv.c: Likewise.
9578         * tests/test-sigaction.c: Likewise.
9579         * tests/test-signbit.c: Likewise.
9580         * tests/test-sleep.c: Likewise.
9581         * tests/test-snprintf-posix.c: Likewise.
9582         * tests/test-snprintf.c: Likewise.
9583         * tests/test-sprintf-posix.c: Likewise.
9584         * tests/test-stat-time.c: Likewise.
9585         * tests/test-stat.c: Likewise.
9586         * tests/test-strcasestr.c: Likewise.
9587         * tests/test-strchrnul.c: Likewise.
9588         * tests/test-strerror.c: Likewise.
9589         * tests/test-striconv.c: Likewise.
9590         * tests/test-striconveh.c: Likewise.
9591         * tests/test-striconveha.c: Likewise.
9592         * tests/test-strsignal.c: Likewise.
9593         * tests/test-strstr.c: Likewise.
9594         * tests/test-strtod.c: Likewise.
9595         * tests/test-strverscmp.c: Likewise.
9596         * tests/test-symlink.c: Likewise.
9597         * tests/test-symlinkat.c: Likewise.
9598         * tests/test-trunc1.c: Likewise.
9599         * tests/test-trunc2.c: Likewise.
9600         * tests/test-truncf1.c: Likewise.
9601         * tests/test-truncf2.c: Likewise.
9602         * tests/test-truncl.c: Likewise.
9603         * tests/test-uname.c: Likewise.
9604         * tests/test-unlink.c: Likewise.
9605         * tests/test-unlinkat.c: Likewise.
9606         * tests/test-unsetenv.c: Likewise.
9607         * tests/test-usleep.c: Likewise.
9608         * tests/test-utimens.c: Likewise.
9609         * tests/test-utimensat.c: Likewise.
9610         * tests/test-vasnprintf-posix.c: Likewise.
9611         * tests/test-vasnprintf-posix2.c: Likewise.
9612         * tests/test-vasnprintf.c: Likewise.
9613         * tests/test-vasprintf-posix.c: Likewise.
9614         * tests/test-vasprintf.c: Likewise.
9615         * tests/test-vdprintf-posix.c: Likewise.
9616         * tests/test-vfprintf-posix.c: Likewise.
9617         * tests/test-vprintf-posix.c: Likewise.
9618         * tests/test-vsnprintf-posix.c: Likewise.
9619         * tests/test-vsnprintf.c: Likewise.
9620         * tests/test-vsprintf-posix.c: Likewise.
9621         * tests/test-wcrtomb.c: Likewise.
9622         * tests/test-wcsnrtombs.c: Likewise.
9623         * tests/test-wcsrtombs.c: Likewise.
9624         * tests/test-wctype.c: Likewise.
9625         * tests/test-wcwidth.c: Likewise.
9626         * tests/test-xfprintf-posix.c: Likewise.
9627         * tests/test-xmemdup0.c: Likewise.
9628         * tests/test-xprintf-posix.c: Likewise.
9629         * tests/test-xvasprintf.c: Likewise.
9630         * tests/unicase/test-locale-language.c: Likewise.
9631         * tests/unicase/test-mapping-part1.h: Likewise.
9632         * tests/unicase/test-predicate-part1.h: Likewise.
9633         * tests/unicase/test-u8-casecmp.c: Likewise.
9634         * tests/unicase/test-u8-casecoll.c: Likewise.
9635         * tests/unicase/test-u8-casefold.c: Likewise.
9636         * tests/unicase/test-u8-is-cased.c: Likewise.
9637         * tests/unicase/test-u8-is-casefolded.c: Likewise.
9638         * tests/unicase/test-u8-is-lowercase.c: Likewise.
9639         * tests/unicase/test-u8-is-titlecase.c: Likewise.
9640         * tests/unicase/test-u8-is-uppercase.c: Likewise.
9641         * tests/unicase/test-u8-tolower.c: Likewise.
9642         * tests/unicase/test-u8-totitle.c: Likewise.
9643         * tests/unicase/test-u8-toupper.c: Likewise.
9644         * tests/unicase/test-u16-casecmp.c: Likewise.
9645         * tests/unicase/test-u16-casecoll.c: Likewise.
9646         * tests/unicase/test-u16-casefold.c: Likewise.
9647         * tests/unicase/test-u16-is-cased.c: Likewise.
9648         * tests/unicase/test-u16-is-casefolded.c: Likewise.
9649         * tests/unicase/test-u16-is-lowercase.c: Likewise.
9650         * tests/unicase/test-u16-is-titlecase.c: Likewise.
9651         * tests/unicase/test-u16-is-uppercase.c: Likewise.
9652         * tests/unicase/test-u16-tolower.c: Likewise.
9653         * tests/unicase/test-u16-totitle.c: Likewise.
9654         * tests/unicase/test-u16-toupper.c: Likewise.
9655         * tests/unicase/test-u32-casecmp.c: Likewise.
9656         * tests/unicase/test-u32-casecoll.c: Likewise.
9657         * tests/unicase/test-u32-casefold.c: Likewise.
9658         * tests/unicase/test-u32-is-cased.c: Likewise.
9659         * tests/unicase/test-u32-is-casefolded.c: Likewise.
9660         * tests/unicase/test-u32-is-lowercase.c: Likewise.
9661         * tests/unicase/test-u32-is-titlecase.c: Likewise.
9662         * tests/unicase/test-u32-is-uppercase.c: Likewise.
9663         * tests/unicase/test-u32-tolower.c: Likewise.
9664         * tests/unicase/test-u32-totitle.c: Likewise.
9665         * tests/unicase/test-u32-toupper.c: Likewise.
9666         * tests/unicase/test-ulc-casecmp.c: Likewise.
9667         * tests/unicase/test-ulc-casecoll.c: Likewise.
9668         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9669         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9670         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9671         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9672         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9673         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9674         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9675         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9676         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9677         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9678         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9679         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9680         * tests/unictype/test-bidi_byname.c: Likewise.
9681         * tests/unictype/test-bidi_name.c: Likewise.
9682         * tests/unictype/test-bidi_of.c: Likewise.
9683         * tests/unictype/test-bidi_test.c: Likewise.
9684         * tests/unictype/test-block_list.c: Likewise.
9685         * tests/unictype/test-block_of.c: Likewise.
9686         * tests/unictype/test-block_test.c: Likewise.
9687         * tests/unictype/test-categ_and.c: Likewise.
9688         * tests/unictype/test-categ_and_not.c: Likewise.
9689         * tests/unictype/test-categ_byname.c: Likewise.
9690         * tests/unictype/test-categ_name.c: Likewise.
9691         * tests/unictype/test-categ_none.c: Likewise.
9692         * tests/unictype/test-categ_of.c: Likewise.
9693         * tests/unictype/test-categ_or.c: Likewise.
9694         * tests/unictype/test-categ_test_withtable.c: Likewise.
9695         * tests/unictype/test-combining.c: Likewise.
9696         * tests/unictype/test-decdigit.c: Likewise.
9697         * tests/unictype/test-digit.c: Likewise.
9698         * tests/unictype/test-mirror.c: Likewise.
9699         * tests/unictype/test-numeric.c: Likewise.
9700         * tests/unictype/test-pr_byname.c: Likewise.
9701         * tests/unictype/test-pr_test.c: Likewise.
9702         * tests/unictype/test-predicate-part1.h: Likewise.
9703         * tests/unictype/test-scripts.c: Likewise.
9704         * tests/unictype/test-sy_c_ident.c: Likewise.
9705         * tests/unictype/test-sy_java_ident.c: Likewise.
9706         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
9707         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
9708         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
9709         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
9710         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
9711         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
9712         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
9713         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
9714         * tests/uninorm/test-canonical-decomposition.c: Likewise.
9715         * tests/uninorm/test-compat-decomposition.c: Likewise.
9716         * tests/uninorm/test-composition.c: Likewise.
9717         * tests/uninorm/test-decomposing-form.c: Likewise.
9718         * tests/uninorm/test-decomposition.c: Likewise.
9719         * tests/uninorm/test-u8-nfc.c: Likewise.
9720         * tests/uninorm/test-u8-nfd.c: Likewise.
9721         * tests/uninorm/test-u8-nfkc.c: Likewise.
9722         * tests/uninorm/test-u8-nfkd.c: Likewise.
9723         * tests/uninorm/test-u8-normcmp.c: Likewise.
9724         * tests/uninorm/test-u8-normcoll.c: Likewise.
9725         * tests/uninorm/test-u16-nfc.c: Likewise.
9726         * tests/uninorm/test-u16-nfd.c: Likewise.
9727         * tests/uninorm/test-u16-nfkc.c: Likewise.
9728         * tests/uninorm/test-u16-nfkd.c: Likewise.
9729         * tests/uninorm/test-u16-normcmp.c: Likewise.
9730         * tests/uninorm/test-u16-normcoll.c: Likewise.
9731         * tests/uninorm/test-u32-nfc.c: Likewise.
9732         * tests/uninorm/test-u32-nfd.c: Likewise.
9733         * tests/uninorm/test-u32-nfkc.c: Likewise.
9734         * tests/uninorm/test-u32-nfkd.c: Likewise.
9735         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9736         * tests/uninorm/test-u32-normcmp.c: Likewise.
9737         * tests/uninorm/test-u32-normcoll.c: Likewise.
9738         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
9739         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9740         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9741         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9742         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9743         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9744         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9745         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9746         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9747         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9748         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9749         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9750         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9751         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9752         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9753         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9754         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9755         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9756         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9757         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9758         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9759         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9760         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9761         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9762         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9763         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9764         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9765         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9766         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9767         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
9768         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
9769         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
9770         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
9771         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9772         * tests/uniwidth/test-u8-width.c: Likewise.
9773         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9774         * tests/uniwidth/test-u16-width.c: Likewise.
9775         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9776         * tests/uniwidth/test-u32-width.c: Likewise.
9777         * tests/uniwidth/test-uc_width.c: Likewise.
9778         * tests/uniwidth/test-uc_width2.c: Likewise.
9779         * modules/acl-tests (Files): Add tests/macros.h.
9780         * modules/areadlink-tests (Files): Likewise.
9781         * modules/areadlink-with-size-tests (Files): Likewise.
9782         * modules/areadlinkat-tests (Files): Likewise.
9783         * modules/areadlinkat-with-size-tests (Files): Likewise.
9784         * modules/argmatch-tests (Files): Likewise.
9785         * modules/argv-iter-tests (Files): Likewise.
9786         * modules/array-list-tests (Files): Likewise.
9787         * modules/array-mergesort-tests (Files): Likewise.
9788         * modules/array-oset-tests (Files): Likewise.
9789         * modules/avltree-list-tests (Files): Likewise.
9790         * modules/avltree-oset-tests (Files): Likewise.
9791         * modules/avltreehash-list-tests (Files): Likewise.
9792         * modules/base64-tests (Files): Likewise.
9793         * modules/binary-io-tests (Files): Likewise.
9794         * modules/bitrotate-tests (Files): Likewise.
9795         * modules/btowc-tests (Files): Likewise.
9796         * modules/byteswap-tests (Files): Likewise.
9797         * modules/c-ctype-tests (Files): Likewise.
9798         * modules/c-stack-tests (Files): Likewise.
9799         * modules/c-strcase-tests (Files): Likewise.
9800         * modules/c-strcasestr-tests (Files): Likewise.
9801         * modules/c-strstr-tests (Files): Likewise.
9802         * modules/canonicalize-lgpl-tests (Files): Likewise.
9803         * modules/canonicalize-tests (Files): Likewise.
9804         * modules/carray-list-tests (Files): Likewise.
9805         * modules/ceilf-tests (Files): Likewise.
9806         * modules/ceill-tests (Files): Likewise.
9807         * modules/chown-tests (Files): Likewise.
9808         * modules/cloexec-tests (Files): Likewise.
9809         * modules/copy-file-tests (Files): Likewise.
9810         * modules/count-one-bits-tests (Files): Likewise.
9811         * modules/dprintf-posix-tests (Files): Likewise.
9812         * modules/dup2-tests (Files): Likewise.
9813         * modules/dup3-tests (Files): Likewise.
9814         * modules/duplocale-tests (Files): Likewise.
9815         * modules/fbufmode-tests (Files): Likewise.
9816         * modules/fchdir-tests (Files): Likewise.
9817         * modules/fcntl-safer-tests (Files): Likewise.
9818         * modules/fcntl-tests (Files): Likewise.
9819         * modules/fdopendir-tests (Files): Likewise.
9820         * modules/fdutimensat-tests (Files): Likewise.
9821         * modules/fflush-tests (Files): Likewise.
9822         * modules/filevercmp-tests (Files): Likewise.
9823         * modules/flock-tests (Files): Likewise.
9824         * modules/floorf-tests (Files): Likewise.
9825         * modules/floorl-tests (Files): Likewise.
9826         * modules/fnmatch-tests (Files): Likewise.
9827         * modules/fopen-safer-tests (Files): Likewise.
9828         * modules/fopen-tests (Files): Likewise.
9829         * modules/fpending-tests (Files): Likewise.
9830         * modules/fprintf-posix-tests (Files): Likewise.
9831         * modules/fpurge-tests (Files): Likewise.
9832         * modules/freadable-tests (Files): Likewise.
9833         * modules/freadahead-tests (Files): Likewise.
9834         * modules/freading-tests (Files): Likewise.
9835         * modules/freadptr-tests (Files): Likewise.
9836         * modules/freadseek-tests (Files): Likewise.
9837         * modules/freopen-tests (Files): Likewise.
9838         * modules/frexp-nolibm-tests (Files): Likewise.
9839         * modules/frexp-tests (Files): Likewise.
9840         * modules/frexpl-nolibm-tests (Files): Likewise.
9841         * modules/frexpl-tests (Files): Likewise.
9842         * modules/fseek-tests (Files): Likewise.
9843         * modules/fseeko-tests (Files): Likewise.
9844         * modules/fstrcmp-tests (Files): Likewise.
9845         * modules/fsync-tests (Files): Likewise.
9846         * modules/ftell-tests (Files): Likewise.
9847         * modules/ftello-tests (Files): Likewise.
9848         * modules/func-tests (Files): Likewise.
9849         * modules/futimens-tests (Files): Likewise.
9850         * modules/fwritable-tests (Files): Likewise.
9851         * modules/fwriting-tests (Files): Likewise.
9852         * modules/getcwd-tests (Files): Likewise.
9853         * modules/getdate-tests (Files): Likewise.
9854         * modules/getdelim-tests (Files): Likewise.
9855         * modules/getdtablesize-tests (Files): Likewise.
9856         * modules/getgroups-tests (Files): Likewise.
9857         * modules/getline-tests (Files): Likewise.
9858         * modules/getndelim2-tests (Files): Likewise.
9859         * modules/glob-tests (Files): Likewise.
9860         * modules/hash-tests (Files): Likewise.
9861         * modules/i-ring-tests (Files): Likewise.
9862         * modules/iconv-tests (Files): Likewise.
9863         * modules/iconv_open-utf-tests (Files): Likewise.
9864         * modules/idpriv-drop-tests (Files): Likewise.
9865         * modules/idpriv-droptemp-tests (Files): Likewise.
9866         * modules/inet_ntop-tests (Files): Likewise.
9867         * modules/inet_pton-tests (Files): Likewise.
9868         * modules/isblank-tests (Files): Likewise.
9869         * modules/isfinite-tests (Files): Likewise.
9870         * modules/isinf-tests (Files): Likewise.
9871         * modules/isnan-tests (Files): Likewise.
9872         * modules/isnand-nolibm-tests (Files): Likewise.
9873         * modules/isnand-tests (Files): Likewise.
9874         * modules/isnanf-nolibm-tests (Files): Likewise.
9875         * modules/isnanf-tests (Files): Likewise.
9876         * modules/isnanl-nolibm-tests (Files): Likewise.
9877         * modules/isnanl-tests (Files): Likewise.
9878         * modules/lchown-tests (Files): Likewise.
9879         * modules/ldexpl-tests (Files): Likewise.
9880         * modules/link-tests (Files): Likewise.
9881         * modules/linkat-tests (Files): Likewise.
9882         * modules/linked-list-tests (Files): Likewise.
9883         * modules/linkedhash-list-tests (Files): Likewise.
9884         * modules/localename-tests (Files): Likewise.
9885         * modules/lseek-tests (Files): Likewise.
9886         * modules/lstat-tests (Files): Likewise.
9887         * modules/mbmemcasecmp-tests (Files): Likewise.
9888         * modules/mbmemcasecoll-tests (Files): Likewise.
9889         * modules/mbrtowc-tests (Files): Likewise.
9890         * modules/mbscasecmp-tests (Files): Likewise.
9891         * modules/mbscasestr-tests (Files): Likewise.
9892         * modules/mbschr-tests (Files): Likewise.
9893         * modules/mbscspn-tests (Files): Likewise.
9894         * modules/mbsinit-tests (Files): Likewise.
9895         * modules/mbsncasecmp-tests (Files): Likewise.
9896         * modules/mbsnrtowcs-tests (Files): Likewise.
9897         * modules/mbspbrk-tests (Files): Likewise.
9898         * modules/mbspcasecmp-tests (Files): Likewise.
9899         * modules/mbsrchr-tests (Files): Likewise.
9900         * modules/mbsrtowcs-tests (Files): Likewise.
9901         * modules/mbsspn-tests (Files): Likewise.
9902         * modules/mbsstr-tests (Files): Likewise.
9903         * modules/memchr-tests (Files): Likewise.
9904         * modules/memchr2-tests (Files): Likewise.
9905         * modules/memcmp-tests (Files): Likewise.
9906         * modules/memmem-tests (Files): Likewise.
9907         * modules/memrchr-tests (Files): Likewise.
9908         * modules/mkdir-tests (Files): Likewise.
9909         * modules/mkfifo-tests (Files): Likewise.
9910         * modules/mkfifoat-tests (Files): Likewise.
9911         * modules/mknod-tests (Files): Likewise.
9912         * modules/nanosleep-tests (Files): Likewise.
9913         * modules/nl_langinfo-tests (Files): Likewise.
9914         * modules/obstack-printf-tests (Files): Likewise.
9915         * modules/open-tests (Files): Likewise.
9916         * modules/openat-tests (Files): Likewise.
9917         * modules/pipe-filter-gi-tests (Files): Likewise.
9918         * modules/pipe-filter-ii-tests (Files): Likewise.
9919         * modules/pipe2-tests (Files): Likewise.
9920         * modules/popen-safer-tests (Files): Likewise.
9921         * modules/popen-tests (Files): Likewise.
9922         * modules/posixtm-tests (Files): Likewise.
9923         * modules/pread-tests (Files): Likewise.
9924         * modules/printf-frexp-tests (Files): Likewise.
9925         * modules/printf-frexpl-tests (Files): Likewise.
9926         * modules/printf-posix-tests (Files): Likewise.
9927         * modules/priv-set-tests (Files): Likewise.
9928         * modules/quotearg-tests (Files): Likewise.
9929         * modules/random_r-tests (Files): Likewise.
9930         * modules/rawmemchr-tests (Files): Likewise.
9931         * modules/rbtree-list-tests (Files): Likewise.
9932         * modules/rbtree-oset-tests (Files): Likewise.
9933         * modules/rbtreehash-list-tests (Files): Likewise.
9934         * modules/readlink-tests (Files): Likewise.
9935         * modules/remove-tests (Files): Likewise.
9936         * modules/rename-tests (Files): Likewise.
9937         * modules/renameat-tests (Files): Likewise.
9938         * modules/rmdir-tests (Files): Likewise.
9939         * modules/round-tests (Files): Likewise.
9940         * modules/roundf-tests (Files): Likewise.
9941         * modules/roundl-tests (Files): Likewise.
9942         * modules/safe-alloc-tests (Files): Likewise.
9943         * modules/setenv-tests (Files): Likewise.
9944         * modules/sigaction-tests (Files): Likewise.
9945         * modules/signbit-tests (Files): Likewise.
9946         * modules/sleep-tests (Files): Likewise.
9947         * modules/snprintf-posix-tests (Files): Likewise.
9948         * modules/snprintf-tests (Files): Likewise.
9949         * modules/sprintf-posix-tests (Files): Likewise.
9950         * modules/stat-tests (Files): Likewise.
9951         * modules/stat-time-tests (Files): Likewise.
9952         * modules/strcasestr-tests (Files): Likewise.
9953         * modules/strchrnul-tests (Files): Likewise.
9954         * modules/strerror-tests (Files): Likewise.
9955         * modules/striconv-tests (Files): Likewise.
9956         * modules/striconveh-tests (Files): Likewise.
9957         * modules/striconveha-tests (Files): Likewise.
9958         * modules/strsignal-tests (Files): Likewise.
9959         * modules/strstr-tests (Files): Likewise.
9960         * modules/strtod-tests (Files): Likewise.
9961         * modules/strverscmp-tests (Files): Likewise.
9962         * modules/symlink-tests (Files): Likewise.
9963         * modules/symlinkat-tests (Files): Likewise.
9964         * modules/trunc-tests (Files): Likewise.
9965         * modules/truncf-tests (Files): Likewise.
9966         * modules/truncl-tests (Files): Likewise.
9967         * modules/uname-tests (Files): Likewise.
9968         * modules/unicase/cased-tests (Files): Likewise.
9969         * modules/unicase/ignorable-tests (Files): Likewise.
9970         * modules/unicase/locale-language-tests (Files): Likewise.
9971         * modules/unicase/tolower-tests (Files): Likewise.
9972         * modules/unicase/totitle-tests (Files): Likewise.
9973         * modules/unicase/toupper-tests (Files): Likewise.
9974         * modules/unicase/u8-casecmp-tests (Files): Likewise.
9975         * modules/unicase/u8-casecoll-tests (Files): Likewise.
9976         * modules/unicase/u8-casefold-tests (Files): Likewise.
9977         * modules/unicase/u8-is-cased-tests (Files): Likewise.
9978         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
9979         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
9980         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
9981         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
9982         * modules/unicase/u8-tolower-tests (Files): Likewise.
9983         * modules/unicase/u8-totitle-tests (Files): Likewise.
9984         * modules/unicase/u8-toupper-tests (Files): Likewise.
9985         * modules/unicase/u16-casecmp-tests (Files): Likewise.
9986         * modules/unicase/u16-casecoll-tests (Files): Likewise.
9987         * modules/unicase/u16-casefold-tests (Files): Likewise.
9988         * modules/unicase/u16-is-cased-tests (Files): Likewise.
9989         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
9990         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
9991         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
9992         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
9993         * modules/unicase/u16-tolower-tests (Files): Likewise.
9994         * modules/unicase/u16-totitle-tests (Files): Likewise.
9995         * modules/unicase/u16-toupper-tests (Files): Likewise.
9996         * modules/unicase/u32-casecmp-tests (Files): Likewise.
9997         * modules/unicase/u32-casecoll-tests (Files): Likewise.
9998         * modules/unicase/u32-casefold-tests (Files): Likewise.
9999         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10000         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10001         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10002         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10003         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10004         * modules/unicase/u32-tolower-tests (Files): Likewise.
10005         * modules/unicase/u32-totitle-tests (Files): Likewise.
10006         * modules/unicase/u32-toupper-tests (Files): Likewise.
10007         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10008         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10009         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10010         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10011         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10012         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10013         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10014         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10015         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10016         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10017         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10018         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10019         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10020         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10021         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10022         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10023         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10024         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10025         * modules/unictype/block-list-tests (Files): Likewise.
10026         * modules/unictype/block-of-tests (Files): Likewise.
10027         * modules/unictype/block-test-tests (Files): Likewise.
10028         * modules/unictype/category-C-tests (Files): Likewise.
10029         * modules/unictype/category-Cc-tests (Files): Likewise.
10030         * modules/unictype/category-Cf-tests (Files): Likewise.
10031         * modules/unictype/category-Cn-tests (Files): Likewise.
10032         * modules/unictype/category-Co-tests (Files): Likewise.
10033         * modules/unictype/category-Cs-tests (Files): Likewise.
10034         * modules/unictype/category-L-tests (Files): Likewise.
10035         * modules/unictype/category-Ll-tests (Files): Likewise.
10036         * modules/unictype/category-Lm-tests (Files): Likewise.
10037         * modules/unictype/category-Lo-tests (Files): Likewise.
10038         * modules/unictype/category-Lt-tests (Files): Likewise.
10039         * modules/unictype/category-Lu-tests (Files): Likewise.
10040         * modules/unictype/category-M-tests (Files): Likewise.
10041         * modules/unictype/category-Mc-tests (Files): Likewise.
10042         * modules/unictype/category-Me-tests (Files): Likewise.
10043         * modules/unictype/category-Mn-tests (Files): Likewise.
10044         * modules/unictype/category-N-tests (Files): Likewise.
10045         * modules/unictype/category-Nd-tests (Files): Likewise.
10046         * modules/unictype/category-Nl-tests (Files): Likewise.
10047         * modules/unictype/category-No-tests (Files): Likewise.
10048         * modules/unictype/category-P-tests (Files): Likewise.
10049         * modules/unictype/category-Pc-tests (Files): Likewise.
10050         * modules/unictype/category-Pd-tests (Files): Likewise.
10051         * modules/unictype/category-Pe-tests (Files): Likewise.
10052         * modules/unictype/category-Pf-tests (Files): Likewise.
10053         * modules/unictype/category-Pi-tests (Files): Likewise.
10054         * modules/unictype/category-Po-tests (Files): Likewise.
10055         * modules/unictype/category-Ps-tests (Files): Likewise.
10056         * modules/unictype/category-S-tests (Files): Likewise.
10057         * modules/unictype/category-Sc-tests (Files): Likewise.
10058         * modules/unictype/category-Sk-tests (Files): Likewise.
10059         * modules/unictype/category-Sm-tests (Files): Likewise.
10060         * modules/unictype/category-So-tests (Files): Likewise.
10061         * modules/unictype/category-Z-tests (Files): Likewise.
10062         * modules/unictype/category-Zl-tests (Files): Likewise.
10063         * modules/unictype/category-Zp-tests (Files): Likewise.
10064         * modules/unictype/category-Zs-tests (Files): Likewise.
10065         * modules/unictype/category-and-not-tests (Files): Likewise.
10066         * modules/unictype/category-and-tests (Files): Likewise.
10067         * modules/unictype/category-byname-tests (Files): Likewise.
10068         * modules/unictype/category-name-tests (Files): Likewise.
10069         * modules/unictype/category-none-tests (Files): Likewise.
10070         * modules/unictype/category-of-tests (Files): Likewise.
10071         * modules/unictype/category-or-tests (Files): Likewise.
10072         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10073         * modules/unictype/combining-class-tests (Files): Likewise.
10074         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10075         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10076         * modules/unictype/ctype-blank-tests (Files): Likewise.
10077         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10078         * modules/unictype/ctype-digit-tests (Files): Likewise.
10079         * modules/unictype/ctype-graph-tests (Files): Likewise.
10080         * modules/unictype/ctype-lower-tests (Files): Likewise.
10081         * modules/unictype/ctype-print-tests (Files): Likewise.
10082         * modules/unictype/ctype-punct-tests (Files): Likewise.
10083         * modules/unictype/ctype-space-tests (Files): Likewise.
10084         * modules/unictype/ctype-upper-tests (Files): Likewise.
10085         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10086         * modules/unictype/decimal-digit-tests (Files): Likewise.
10087         * modules/unictype/digit-tests (Files): Likewise.
10088         * modules/unictype/mirror-tests (Files): Likewise.
10089         * modules/unictype/numeric-tests (Files): Likewise.
10090         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10091         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10092         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10093         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10094         Likewise.
10095         * modules/unictype/property-bidi-block-separator-tests (Files):
10096         Likewise.
10097         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10098         Likewise.
10099         * modules/unictype/property-bidi-common-separator-tests (Files):
10100         Likewise.
10101         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10102         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10103         Likewise.
10104         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10105         Likewise.
10106         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10107         Likewise.
10108         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10109         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10110         Likewise.
10111         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10112         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10113         Likewise.
10114         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10115         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10116         * modules/unictype/property-bidi-segment-separator-tests (Files):
10117         Likewise.
10118         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10119         * modules/unictype/property-byname-tests (Files): Likewise.
10120         * modules/unictype/property-combining-tests (Files): Likewise.
10121         * modules/unictype/property-composite-tests (Files): Likewise.
10122         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10123         * modules/unictype/property-dash-tests (Files): Likewise.
10124         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10125         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10126         Likewise.
10127         * modules/unictype/property-deprecated-tests (Files): Likewise.
10128         * modules/unictype/property-diacritic-tests (Files): Likewise.
10129         * modules/unictype/property-extender-tests (Files): Likewise.
10130         * modules/unictype/property-format-control-tests (Files): Likewise.
10131         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10132         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10133         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10134         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10135         * modules/unictype/property-hyphen-tests (Files): Likewise.
10136         * modules/unictype/property-id-continue-tests (Files): Likewise.
10137         * modules/unictype/property-id-start-tests (Files): Likewise.
10138         * modules/unictype/property-ideographic-tests (Files): Likewise.
10139         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10140         * modules/unictype/property-ids-trinary-operator-tests (Files):
10141         Likewise.
10142         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10143         * modules/unictype/property-iso-control-tests (Files): Likewise.
10144         * modules/unictype/property-join-control-tests (Files): Likewise.
10145         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10146         * modules/unictype/property-line-separator-tests (Files): Likewise.
10147         * modules/unictype/property-logical-order-exception-tests (Files):
10148         Likewise.
10149         * modules/unictype/property-lowercase-tests (Files): Likewise.
10150         * modules/unictype/property-math-tests (Files): Likewise.
10151         * modules/unictype/property-non-break-tests (Files): Likewise.
10152         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10153         * modules/unictype/property-numeric-tests (Files): Likewise.
10154         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10155         * modules/unictype/property-other-default-ignorable-code-point-tests
10156         (Files): Likewise.
10157         * modules/unictype/property-other-grapheme-extend-tests (Files):
10158         Likewise.
10159         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10160         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10161         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10162         * modules/unictype/property-other-math-tests (Files): Likewise.
10163         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10164         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10165         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10166         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10167         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10168         * modules/unictype/property-private-use-tests (Files): Likewise.
10169         * modules/unictype/property-punctuation-tests (Files): Likewise.
10170         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10171         * modules/unictype/property-radical-tests (Files): Likewise.
10172         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10173         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10174         * modules/unictype/property-space-tests (Files): Likewise.
10175         * modules/unictype/property-terminal-punctuation-tests (Files):
10176         Likewise.
10177         * modules/unictype/property-test-tests (Files): Likewise.
10178         * modules/unictype/property-titlecase-tests (Files): Likewise.
10179         * modules/unictype/property-unassigned-code-value-tests (Files):
10180         Likewise.
10181         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10182         * modules/unictype/property-uppercase-tests (Files): Likewise.
10183         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10184         * modules/unictype/property-white-space-tests (Files): Likewise.
10185         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10186         * modules/unictype/property-xid-start-tests (Files): Likewise.
10187         * modules/unictype/property-zero-width-tests (Files): Likewise.
10188         * modules/unictype/scripts-tests (Files): Likewise.
10189         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10190         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10191         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10192         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10193         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10194         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10195         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10196         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10197         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10198         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10199         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10200         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10201         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10202         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10203         * modules/uninorm/composition-tests (Files): Likewise.
10204         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10205         * modules/uninorm/decomposition-tests (Files): Likewise.
10206         * modules/uninorm/filter-tests (Files): Likewise.
10207         * modules/uninorm/nfc-tests (Files): Likewise.
10208         * modules/uninorm/nfd-tests (Files): Likewise.
10209         * modules/uninorm/nfkc-tests (Files): Likewise.
10210         * modules/uninorm/nfkd-tests (Files): Likewise.
10211         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10212         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10213         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10214         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10215         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10216         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10217         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10218         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10219         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10220         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10221         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10222         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10223         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10224         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10225         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10226         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10227         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10228         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10229         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10230         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10231         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10232         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10233         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10234         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10235         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10236         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10237         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10238         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10239         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10240         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10241         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10242         * modules/uniwidth/u8-width-tests (Files): Likewise.
10243         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10244         * modules/uniwidth/u16-width-tests (Files): Likewise.
10245         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10246         * modules/uniwidth/u32-width-tests (Files): Likewise.
10247         * modules/uniwidth/width-tests (Files): Likewise.
10248         * modules/unlink-tests (Files): Likewise.
10249         * modules/unsetenv-tests (Files): Likewise.
10250         * modules/usleep-tests (Files): Likewise.
10251         * modules/utimens-tests (Files): Likewise.
10252         * modules/utimensat-tests (Files): Likewise.
10253         * modules/vasnprintf-posix-tests (Files): Likewise.
10254         * modules/vasnprintf-tests (Files): Likewise.
10255         * modules/vasprintf-posix-tests (Files): Likewise.
10256         * modules/vasprintf-tests (Files): Likewise.
10257         * modules/vdprintf-posix-tests (Files): Likewise.
10258         * modules/vfprintf-posix-tests (Files): Likewise.
10259         * modules/vprintf-posix-tests (Files): Likewise.
10260         * modules/vsnprintf-posix-tests (Files): Likewise.
10261         * modules/vsnprintf-tests (Files): Likewise.
10262         * modules/vsprintf-posix-tests (Files): Likewise.
10263         * modules/wcrtomb-tests (Files): Likewise.
10264         * modules/wcsnrtombs-tests (Files): Likewise.
10265         * modules/wcsrtombs-tests (Files): Likewise.
10266         * modules/wctype-tests (Files): Likewise.
10267         * modules/wcwidth-tests (Files): Likewise.
10268         * modules/xmemdup0-tests (Files): Likewise.
10269         * modules/xprintf-posix-tests (Files): Likewise.
10270         * modules/xvasprintf-tests (Files): Likewise.
10271
10272 2009-12-24  Eric Blake  <ebb9@byu.net>
10273
10274         test-nanosleep: fix typo
10275         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10276         patch.
10277         Reported by Bruno Haible.
10278
10279 2009-12-24  Bruno Haible  <bruno@clisp.org>
10280
10281         Reduce namespace pollution on glibc systems.
10282         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10283         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10284         systems.
10285         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10286         <getopt.h> on glibc systems.
10287         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10288         systems.
10289         * lib/fcntl.c: Include <unistd.h> here instead.
10290
10291 2009-12-24  Bruno Haible  <bruno@clisp.org>
10292
10293         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10294
10295 2009-12-24  Eric Blake  <ebb9@byu.net>
10296
10297         tests: add signature checks
10298         * tests/signature.h (SIGNATURE_CHECK): New file.
10299         * modules/atexit-tests (Files): Use it.
10300         * modules/btowc-tests (Files): Likewise.
10301         * modules/canonicalize-lgpl-tests (Files): Likewise.
10302         * modules/ceilf-tests (Files): Likewise.
10303         * modules/ceill-tests (Files): Likewise.
10304         * modules/chown-tests (Files): Likewise.
10305         * modules/dprintf-posix-tests (Files): Likewise.
10306         * modules/dup2-tests (Files): Likewise.
10307         * modules/dup3-tests (Files): Likewise.
10308         * modules/duplocale-tests (Files): Likewise.
10309         * modules/fchdir-tests (Files): Likewise.
10310         * modules/fcntl-tests (Files): Likewise.
10311         * modules/fdopendir-tests (Files): Likewise.
10312         * modules/fflush-tests (Files): Likewise.
10313         * modules/flock-tests (Files): Likewise.
10314         * modules/floorf-tests (Files): Likewise.
10315         * modules/floorl-tests (Files): Likewise.
10316         * modules/fnmatch-tests (Files): Likewise.
10317         * modules/fopen-tests (Files): Likewise.
10318         * modules/fprintf-posix-tests (Files): Likewise.
10319         * modules/freopen-tests (Files): Likewise.
10320         * modules/frexp-nolibm-tests (Files): Likewise.
10321         * modules/frexp-tests (Files): Likewise.
10322         * modules/frexpl-nolibm-tests (Files): Likewise.
10323         * modules/frexpl-tests (Files): Likewise.
10324         * modules/fseek-tests (Files): Likewise.
10325         * modules/fseeko-tests (Files): Likewise.
10326         * modules/fsync-tests (Files): Likewise.
10327         * modules/ftell-tests (Files): Likewise.
10328         * modules/ftello-tests (Files): Likewise.
10329         * modules/futimens-tests (Files): Likewise.
10330         * modules/getaddrinfo-tests (Files): Likewise.
10331         * modules/getcwd-tests (Files): Likewise.
10332         * modules/getdelim-tests (Files): Likewise.
10333         * modules/getdtablesize-tests (Files): Likewise.
10334         * modules/getgroups-tests (Files): Likewise.
10335         * modules/gethostname-tests (Files): Likewise.
10336         * modules/getline-tests (Files): Likewise.
10337         * modules/getopt-posix-tests (Files): Likewise.
10338         * modules/gettimeofday-tests (Files): Likewise.
10339         * modules/glob-tests (Files): Likewise.
10340         * modules/iconv-tests (Files): Likewise.
10341         * modules/inet_ntop-tests (Files): Likewise.
10342         * modules/inet_pton-tests (Files): Likewise.
10343         * modules/isblank-tests (Files): Likewise.
10344         * modules/lchown-tests (Files): Likewise.
10345         * modules/ldexpl-tests (Files): Likewise.
10346         * modules/link-tests (Files): Likewise.
10347         * modules/linkat-tests (Files): Likewise.
10348         * modules/lseek-tests (Files): Likewise.
10349         * modules/lstat-tests (Files): Likewise.
10350         * modules/mbrtowc-tests (Files): Likewise.
10351         * modules/mbsinit-tests (Files): Likewise.
10352         * modules/mbsnrtowcs-tests (Files): Likewise.
10353         * modules/mbsrtowcs-tests (Files): Likewise.
10354         * modules/memchr-tests (Files): Likewise.
10355         * modules/memcmp-tests (Files): Likewise.
10356         * modules/memmem-tests (Files): Likewise.
10357         * modules/memrchr-tests (Files): Likewise.
10358         * modules/mkdir-tests (Files): Likewise.
10359         * modules/mkfifo-tests (Files): Likewise.
10360         * modules/mkfifoat-tests (Files): Likewise.
10361         * modules/mknod-tests (Files): Likewise.
10362         * modules/nanosleep-tests (Files): Likewise.
10363         * modules/nl_langinfo-tests (Files): Likewise.
10364         * modules/obstack-printf-tests (Files): Likewise.
10365         * modules/open-tests (Files): Likewise.
10366         * modules/openat-tests (Files): Likewise.
10367         * modules/perror-tests (Files): Likewise.
10368         * modules/pipe2-tests (Files): Likewise.
10369         * modules/poll-tests (Files): Likewise.
10370         * modules/popen-tests (Files): Likewise.
10371         * modules/posix_spawn-tests (Files): Likewise.
10372         * modules/posix_spawnp-tests (Files): Likewise.
10373         * modules/pread-tests (Files): Likewise.
10374         * modules/printf-posix-tests (Files): Likewise.
10375         * modules/pty-tests (Files): Likewise.
10376         * modules/random_r-tests (Files): Likewise.
10377         * modules/rawmemchr-tests (Files): Likewise.
10378         * modules/readlink-tests (Files): Likewise.
10379         * modules/remove-tests (Files): Likewise.
10380         * modules/rename-tests (Files): Likewise.
10381         * modules/renameat-tests (Files): Likewise.
10382         * modules/rmdir-tests (Files): Likewise.
10383         * modules/round-tests (Files): Likewise.
10384         * modules/roundf-tests (Files): Likewise.
10385         * modules/roundl-tests (Files): Likewise.
10386         * modules/select-tests (Files): Likewise.
10387         * modules/setenv-tests (Files): Likewise.
10388         * modules/sigaction-tests (Files): Likewise.
10389         * modules/sleep-tests (Files): Likewise.
10390         * modules/snprintf-posix-tests (Files): Likewise.
10391         * modules/snprintf-tests (Files): Likewise.
10392         * modules/sprintf-posix-tests (Files): Likewise.
10393         * modules/stat-tests (Files): Likewise.
10394         * modules/strcasestr-tests (Files): Likewise.
10395         * modules/strchrnul-tests (Files): Likewise.
10396         * modules/strerror-tests (Files): Likewise.
10397         * modules/strsignal-tests (Files): Likewise.
10398         * modules/strstr-tests (Files): Likewise.
10399         * modules/strtod-tests (Files): Likewise.
10400         * modules/strverscmp-tests (Files): Likewise.
10401         * modules/symlink-tests (Files): Likewise.
10402         * modules/symlinkat-tests (Files): Likewise.
10403         * modules/times-tests (Files): Likewise.
10404         * modules/trunc-tests (Files): Likewise.
10405         * modules/truncf-tests (Files): Likewise.
10406         * modules/truncl-tests (Files): Likewise.
10407         * modules/tsearch-tests (Files): Likewise.
10408         * modules/uname-tests (Files): Likewise.
10409         * modules/unlink-tests (Files): Likewise.
10410         * modules/unsetenv-tests (Files): Likewise.
10411         * modules/usleep-tests (Files): Likewise.
10412         * modules/utimensat-tests (Files): Likewise.
10413         * modules/vasprintf-tests (Files): Likewise.
10414         * modules/vdprintf-posix-tests (Files): Likewise.
10415         * modules/vfprintf-posix-tests (Files): Likewise.
10416         * modules/vprintf-posix-tests (Files): Likewise.
10417         * modules/vsnprintf-posix-tests (Files): Likewise.
10418         * modules/vsnprintf-tests (Files): Likewise.
10419         * modules/vsprintf-posix-tests (Files): Likewise.
10420         * modules/wcrtomb-tests (Files): Likewise.
10421         * modules/wcsnrtombs-tests (Files): Likewise.
10422         * modules/wcsrtombs-tests (Files): Likewise.
10423         * modules/wcwidth-tests (Files): Likewise.
10424         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
10425         * tests/test-isinf.c (isinf): Likewise.
10426         * tests/test-isnan.c (isnan): Likewise.
10427         * tests/test-signbit.c (signbit): Likewise.
10428         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
10429         declaration, either as macro or with correct signature.
10430         (select): Ensure function under test is declared with correct
10431         signature in correct header.
10432         * tests/test-atexit.c (atexit): Likewise.
10433         * tests/test-btowc.c (btowc): Likewise.
10434         * tests/test-canonicalize-lgpl.c (realpath)
10435         (canonicalize_file_name): Likewise.
10436         * tests/test-ceilf1.c (ceilf): Likewise.
10437         * tests/test-ceill.c (ceill): Likewise.
10438         * tests/test-chown.c (chown): Likewise.
10439         * tests/test-dprintf-posix.c (dprintf): Likewise.
10440         * tests/test-dup2.c (dup2): Likewise.
10441         * tests/test-dup3.c (dup3): Likewise.
10442         * tests/test-duplocale.c (duplocale): Likewise.
10443         * tests/test-fchdir.c (fchdir): Likewise.
10444         * tests/test-fchownat.c (fchownat): Likewise.
10445         * tests/test-fcntl.c (fcntl): Likewise.
10446         * tests/test-fdopendir.c (fdopendir): Likewise.
10447         * tests/test-fflush.c (fflush): Likewise.
10448         * tests/test-flock.c (flock): Likewise.
10449         * tests/test-floorf1.c (floorf): Likewise.
10450         * tests/test-floorl.c (floorl): Likewise.
10451         * tests/test-fnmatch.c (fnmatch): Likewise.
10452         * tests/test-fopen.c (fopen): Likewise.
10453         * tests/test-fprintf-posix.c (fprintf): Likewise.
10454         * tests/test-freopen.c (freopen): Likewise.
10455         * tests/test-frexp.c (frexp): Likewise.
10456         * tests/test-frexpl.c (frexpl): Likewise.
10457         * tests/test-fseek.c (fseek): Likewise.
10458         * tests/test-fseeko.c (fseeko): Likewise.
10459         * tests/test-fstatat.c (fstatat): Likewise.
10460         * tests/test-fsync.c (fsync): Likewise.
10461         * tests/test-ftell.c (ftell): Likewise.
10462         * tests/test-ftello.c (ftello): Likewise.
10463         * tests/test-futimens.c (futimens): Likewise.
10464         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
10465         (gai_strerror): Likewise.
10466         * tests/test-getcwd.c (getcwd): Likewise.
10467         * tests/test-getdelim.c (getdelim): Likewise.
10468         * tests/test-getdtablesize.c (getdtablesize): Likewise.
10469         * tests/test-getgroups.c (getgroups): Likewise.
10470         * tests/test-gethostname.c (gethostname): Likewise.
10471         * tests/test-getline.c (getline): Likewise.
10472         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
10473         Likewise.
10474         * tests/test-gettimeofday.c (gettimeofday): Likewise.
10475         * tests/test-glob.c (glob, globfree): Likewise.
10476         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
10477         * tests/test-inet_ntop.c (inet_ntop): Likewise.
10478         * tests/test-inet_pton.c (inet_pton): Likewise.
10479         * tests/test-isblank.c (isblank): Likewise.
10480         * tests/test-lchown.c (lchown): Likewise.
10481         * tests/test-ldexpl.c (ldexpl): Likewise.
10482         * tests/test-link.c (link): Likewise.
10483         * tests/test-linkat.c (linkat): Likewise.
10484         * tests/test-lseek.c (lseek): Likewise.
10485         * tests/test-lstat.c (lstat): Likewise.
10486         * tests/test-mbrtowc.c (mbrtowc): Likewise.
10487         * tests/test-mbsinit.c (mbsinit): Likewise.
10488         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
10489         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
10490         * tests/test-memchr.c (memchr): Likewise.
10491         * tests/test-memcmp.c (memcmp): Likewise.
10492         * tests/test-memmem.c (memmem): Likewise.
10493         * tests/test-memrchr.c (memrchr): Likewise.
10494         * tests/test-mkdir.c (mkdir): Likewise.
10495         * tests/test-mkdirat.c (mkdirat): Likewise.
10496         * tests/test-mkfifo.c (mkfifo): Likewise.
10497         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
10498         * tests/test-mknod.c (mknod): Likewise.
10499         * tests/test-nanosleep.c (nanosleep): Likewise.
10500         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
10501         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
10502         Likewise.
10503         * tests/test-open.c (open): Likewise.
10504         * tests/test-openat.c (openat): Likewise.
10505         * tests/test-perror.c (perror): Likewise.
10506         * tests/test-pipe2.c (pipe2): Likewise.
10507         * tests/test-poll.c (poll): Likewise.
10508         * tests/test-popen.c (popen, pclose): Likewise.
10509         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
10510         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
10511         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
10512         (posix_spawn_file_actions_destroy)
10513         (posix_spawn_file_actions_addclose)
10514         (posix_spawn_file_actions_addopen)
10515         (posix_spawn_file_actions_adddup2): Likewise.
10516         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
10517         * tests/test-pread.c (pread): Likewise.
10518         * tests/test-printf-posix.c (printf): Likewise.
10519         * tests/test-pty.c (openpty, forkpty): Likewise.
10520         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
10521         (random_r): Likewise.
10522         * tests/test-rawmemchr.c (rawmemchr): Likewise.
10523         * tests/test-readlink.c (readlink): Likewise.
10524         * tests/test-remove.c (remove): Likewise.
10525         * tests/test-rename.c (rename): Likewise.
10526         * tests/test-renameat.c (renameat): Likewise.
10527         * tests/test-rmdir.c (rmdir): Likewise.
10528         * tests/test-round1.c (round): Likewise.
10529         * tests/test-roundf1.c (roundf): Likewise.
10530         * tests/test-roundl.c (roundl): Likewise.
10531         * tests/test-setenv.c (setenv): Likewise.
10532         * tests/test-sigaction.c (sigaction): Likewise.
10533         * tests/test-sleep.c (sleep): Likewise.
10534         * tests/test-snprintf.c (snprintf): Likewise.
10535         * tests/test-sprintf-posix.c (sprintf): Likewise.
10536         * tests/test-stat.c (stat): Likewise.
10537         * tests/test-stpncpy.c (stpncpy): Likewise.
10538         * tests/test-strcasestr.c (strcasestr): Likewise.
10539         * tests/test-strchrnul.c (strchrnul): Likewise.
10540         * tests/test-strerror.c (strerror): Likewise.
10541         * tests/test-strsignal.c (strsignal): Likewise.
10542         * tests/test-strstr.c (strstr): Likewise.
10543         * tests/test-strtod.c (strtod): Likewise.
10544         * tests/test-strverscmp.c (strverscmp): Likewise.
10545         * tests/test-symlink.c (symlink): Likewise.
10546         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
10547         * tests/test-times.c (times): Likewise.
10548         * tests/test-trunc1.c (trunc): Likewise.
10549         * tests/test-truncf1.c (truncf): Likewise.
10550         * tests/test-truncl.c (truncl): Likewise.
10551         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
10552         Likewise.
10553         * tests/test-uname.c (uname): Likewise.
10554         * tests/test-unlink.c (unlink): Likewise.
10555         * tests/test-unlinkat.c (unlinkat): Likewise.
10556         * tests/test-unsetenv.c (unsetenv): Likewise.
10557         * tests/test-usleep.c (usleep): Likewise.
10558         * tests/test-utimensat.c (utimensat): Likewise.
10559         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
10560         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
10561         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
10562         * tests/test-vprintf-posix.c (vprintf): Likewise.
10563         * tests/test-vsnprintf.c (vsnprintf): Likewise.
10564         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
10565         * tests/test-wcrtomb.c (wcrtomb): Likewise.
10566         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
10567         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
10568         * tests/test-wcwidth.c (wcwidth): Likewise.
10569
10570         build: pull in conditional headers during GNULIB_POSIXCHECK
10571         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
10572         definitions from any conditionally-included headers.
10573         * lib/stdlib.in.h (includes): Likewise.
10574         * lib/unistd.in.h (includes): Likewise.
10575
10576 2009-12-24  Bruno Haible  <bruno@clisp.org>
10577
10578         * tests/test-argv-iter.c: Include header file being tested immediately
10579         after config.h.
10580         * tests/test-base64.c: Likewise.
10581         * tests/test-flock.c: Likewise.
10582         * tests/test-fsync.c: Likewise.
10583         * tests/test-getdate.c: Likewise.
10584         * tests/test-getndelim2.c: Likewise.
10585         * tests/test-isfinite.c: Likewise.
10586         * tests/test-isinf.c: Likewise.
10587         * tests/test-strerror.c: Likewise.
10588         * tests/test-strsignal.c: Likewise.
10589
10590 2009-12-23  Eric Blake  <ebb9@byu.net>
10591
10592         unistd: work around cygwin bug
10593         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
10594         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
10595         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10596
10597 2009-12-23  Bruno Haible  <bruno@clisp.org>
10598
10599         localename: More tests.
10600         * tests/test-localename.c (SIZEOF): New macro.
10601         (categories): New variable.
10602         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
10603         test_locale_name_default): Add test w.r.t. thread locale.
10604         (test_locale_name_thread): New function.
10605         (main): Invoke it.
10606
10607         localename: Make aware of thread locale.
10608         * lib/localename.h (gl_locale_name_thread): New declaration.
10609         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
10610         behaviour with respect to thread locale.
10611         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
10612         <langinfo.h>, glthread/lock.h.
10613         (SIZE_BITS): New macro.
10614         (string_hash): New function.
10615         (struct hash_node): New type.
10616         (HASH_TABLE_SIZE): New macro.
10617         (struniq_hash_table, struniq_lock): New variables.
10618         (struniq): New function.
10619         (gl_locale_name_thread): New function.
10620         (gl_locale_name): Invoke it.
10621         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
10622         * modules/localename (Depends-on): Add lock.
10623         Reported by Mike Gran <spk121@yahoo.com>.
10624
10625 2009-12-23  Eric Blake  <ebb9@byu.net>
10626
10627         va-args: new module
10628         * modules/va-args: New file.
10629         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
10630         * MODULES.html.sh (Core language properties): Mention it.
10631
10632         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
10633         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
10634         named alias for __attribute__((__unused__)).
10635         * lib/chown.c: Update client.
10636         * lib/fchmodat.c: Likewise.
10637         * lib/fts.c: Likewise.
10638         * lib/getdate.y: Likewise.
10639         * lib/getgroups.c: Likewise.
10640         * lib/getopt.c: Likewise.
10641         * lib/getugroups.c: Likewise.
10642         * lib/mkdir.c: Likewise.
10643         * lib/mkfifo.c: Likewise.
10644         * lib/mkfifoat.c: Likewise.
10645         * lib/mknod.c: Likewise.
10646         * lib/mknodat.c: Likewise.
10647         * lib/readlink.c: Likewise.
10648         * lib/se-context.in.h: Likewise.
10649         * lib/se-selinux.in.h: Likewise.
10650         * lib/sockets.c: Likewise.
10651         * lib/symlink.c: Likewise.
10652         * lib/symlinkat.c: Likewise.
10653         * lib/unicodeio.c: Likewise.
10654         * lib/unistr.h: Likewise.
10655         * tests/test-areadlink.c: Likewise.
10656         * tests/test-areadlinkat.c: Likewise.
10657         * tests/test-filenamecat.c: Likewise.
10658         * tests/test-fseeko.c: Likewise.
10659         * tests/test-ftello.c: Likewise.
10660         * tests/test-getdate.c: Likewise.
10661         * tests/test-getgroups.c: Likewise.
10662         * tests/test-gethostname.c: Likewise.
10663         * tests/test-quotearg.c: Likewise.
10664         * tests/test-version-etc.c: Likewise.
10665         * tests/test-xalloc-die.c: Likewise.
10666         * tests/test-xfprintf-posix.c: Likewise.
10667         * tests/test-xprintf-posix.c: Likewise.
10668         * tests/test-xvasprintf.c: Likewise.
10669
10670         tests: avoid compiler warnings
10671         * tests/test-fcntl.c (main): Delete unused parameters.
10672         * tests/test-freopen-safer.c (main): Likewise.
10673         * tests/test-xalloc-die.c (main): Mark unused parameters.
10674         * tests/test-fseeko.c (main): Likewise.
10675         * tests/test-ftello.c (main): Likewise.
10676         * tests/test-nanosleep.c (main): Avoid declaration warning.
10677         * tests/test-sleep.c (main): Likewise.
10678         * tests/test-unsetenv.c (main): Silence warning about string
10679         literal.
10680         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10681
10682 2009-12-23  Bruno Haible  <bruno@clisp.org>
10683
10684         * tests/test-localename.c (test_locale_name): New function, extracted
10685         from main. Also test mixed situations.
10686         (test_locale_name_posix, test_locale_name_environ,
10687         test_locale_name_default): New functions.
10688         (main): Invoke them all.
10689         * modules/localename-tests (configure.ac): Test for newlocale.
10690
10691 2009-12-23  Bruno Haible  <bruno@clisp.org>
10692
10693         unistd: Ensure getcwd gets declared before being overridden.
10694         * lib/unistd.in.h: Conditionally include <io.h>.
10695
10696 2009-12-22  Bruno Haible  <bruno@clisp.org>
10697
10698         wchar: Diagnose broken combination of glibc and gcc versions and flags.
10699         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
10700         (gl_WCHAR_H): Invoke it.
10701         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
10702         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
10703         Reported by Karl Berry <karl@freefriends.org>.
10704
10705 2009-12-22  Eric Blake  <ebb9@byu.net>
10706
10707         math, unistd: avoid redundant includes
10708         * lib/math.in.h (isnan): No need to re-include <math.h>.
10709         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
10710
10711         getsubopt: work around cygwin bug
10712         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
10713         avoid conflicting with system getsubopt.
10714         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
10715         bug.
10716
10717         getopt: synchronize from glibc
10718         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
10719         parameter order.  Adjust all callers.
10720         (_getopt_internal_r, main): Adjust quoting in error messages.
10721         Drop considerations for outdated POSIX 1003.2 error message.
10722         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
10723         callers.
10724         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
10725
10726         test-getopt: test stderr behavior
10727         * modules/getopt-posix-tests (Depends-on): Add dup2.
10728         * tests/test-getopt.c (ASSERT): Avoid stderr.
10729         (main): Move stderr to a temporary file.
10730         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
10731         Instead, add parameter to inform caller if output occurred.
10732         (test_getopt): Adjust all existing tests to expect silence, and
10733         add new tests of leading ":".
10734         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10735         glibc shortcomings with leading "-:" or "+:" in optstring.
10736         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10737         Likewise.
10738         * doc/posix-functions/getopt.texi (getopt): Likewise.
10739
10740         test-getopt: enhance test
10741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
10742         supports optind=0.
10743         * tests/test-getopt.c (OPTIND_MIN): Move...
10744         * tests/test-getopt.h (OPTIND_MIN): ...here.
10745         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
10746         Require that optind=0 works, since modern BSD supports it in
10747         addition to optreset, and since coreutils expects it.
10748         (test_getopt_long_only): New test.
10749         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10750         glibc shortcomings with 'W;', and enforcement of optind=0.
10751         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10752         Likewise.
10753
10754 2009-12-21  Bruno Haible  <bruno@clisp.org>
10755
10756         localename: Improvements for MacOS X and Cygwin.
10757         * lib/localename.h (gl_locale_name_environ): New declaration.
10758         * lib/localename.c (gl_locale_name_environ): New function, extracted from
10759         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
10760         (gl_locale_name_posix): Invoke it.
10761         (gl_locale_name_default): Add comments. Use Windows native API also on
10762         Cygwin.
10763
10764 2009-12-21  Bruno Haible  <bruno@clisp.org>
10765
10766         Update list of Win32 locale ids.
10767         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
10768         (LANG_SAMI): Renamed from LANG_SAAMI.
10769         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
10770         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
10771         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
10772         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
10773         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
10774         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
10775         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
10776         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
10777         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
10778         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
10779         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
10780         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
10781         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
10782         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
10783         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
10784         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
10785         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
10786         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
10787         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
10788         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
10789         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
10790         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
10791         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
10792         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
10793         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
10794         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
10795         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
10796         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
10797         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
10798         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
10799         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
10800         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
10801         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
10802         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
10803         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
10804         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
10805         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
10806         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
10807         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
10808         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
10809         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
10810         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
10811         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
10812         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
10813         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
10814         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
10815         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
10816         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
10817         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
10818         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
10819         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
10820         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
10821         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
10822         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
10823         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
10824         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
10825         Add more languages and countries for Sami, Sorbian. Add more countries
10826         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
10827         for Pashto. Change country for Syriac, Tswana.
10828
10829 2009-12-21  Eric Blake  <ebb9@byu.net>
10830
10831         test-utimens: avoid spurious failure
10832         * tests/test-chown.h (nap): Factor...
10833         * tests/nap.h: ...into new file.
10834         * tests/test-lchown.h (nap): Avoid duplication.
10835         * tests/test-utimens-common.h (nap): Use shared implementation,
10836         necessary on file systems with 1-second resolution.
10837         * modules/chown-tests (Files): Include new file.
10838         * modules/fdutimensat-tests (Files): Likewise.
10839         * modules/futimens-tests (Files): Likewise.
10840         * modules/lchown-tests (Files): Likewise.
10841         * modules/openat-tests (Files): Likewise.
10842         * modules/utimens-tests (Files): Likewise.
10843         * modules/utimensat-tests (Files): Likewise.
10844
10845 2009-12-19  Eric Blake  <ebb9@byu.net>
10846
10847         futimens, utimensat: work around Linux bug
10848         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
10849         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10850         * lib/utimensat.c (rpl_utimensat): Work around it.
10851         * lib/futimens.c (rpl_futimens): Adjust comment.
10852
10853         utimens: work around Linux ctime bug
10854         * lib/utimens.c (detect_ctime_bug): New helper function.
10855         (update_timespec): Differentiate between workaround needed for
10856         this bug vs. what is needed for systems that lack utimensat.
10857         (fdutimens, lutimens): Work around bug.
10858
10859         utimens: check for ctime update
10860         * tests/test-utimens-common.h (check_ctime): Define.
10861         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
10862         * tests/test-futimens.h (test_futimens): Likewise.
10863         * tests/test-lutimens.h (test_lutimens): Likewise.
10864         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10865         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10866
10867 2009-12-19  Bruno Haible  <bruno@clisp.org>
10868
10869         dprintf-posix: Check against memory leak fixed on 2009-12-15.
10870         * tests/test-dprintf-posix2.sh: New file.
10871         * tests/test-dprintf-posix2.c: New file.
10872         * modules/dprintf-posix-tests (Files): Add them.
10873         (configure.ac): Check for getrlimit and setrlimit.
10874         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10875
10876 2009-12-19  Bruno Haible  <bruno@clisp.org>
10877
10878         fprintf-posix: Check against memory leak fixed on 2009-12-15.
10879         * tests/test-fprintf-posix3.sh: New file.
10880         * tests/test-fprintf-posix3.c: New file.
10881         * modules/fprintf-posix-tests (Files): Add them.
10882         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10883
10884 2009-12-19  Eric Blake  <ebb9@byu.net>
10885
10886         dirfd: fix prototype
10887         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
10888         * lib/dirfd.c (dirfd): Likewise.
10889
10890         canonicalize: reduce memory usage
10891         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
10892         allocation to size.
10893         Reported by Solar Designer <solar@openwall.com>.
10894
10895 2009-12-19  Bruno Haible  <bruno@clisp.org>
10896
10897         New module attribute 'Applicability'.
10898         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
10899         * gnulib-tool: New option --extract-applicability.
10900         (func_usage): Document it.
10901         (sed_extract_prog): Recognize it.
10902         (func_get_applicability): New function.
10903         (func_import): Generalize handling of 'link-warning' module.
10904         * modules/link-warning (Applicability): New section.
10905         * modules/arg-nonnull (Applicability): New section.
10906         Repoted by Simon Josefsson <simon@josefsson.org>.
10907
10908 2009-12-19  Bruno Haible  <bruno@clisp.org>
10909
10910         fflush: tweak
10911         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
10912         * lib/fseeko.c (rpl_fseeko): Likewise.
10913
10914 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
10915
10916         * lib/gl_list.h: Fix typo in comment.
10917
10918 2009-12-16  Eric Blake  <ebb9@byu.net>
10919
10920         fcntl: use to simplify other modules
10921         * modules/cloexec (Depends-on): Add fcntl.
10922         * modules/fchdir (Depends-on): Likewise.
10923         * modules/fd-safer-flag (Depends-on): Likewise.
10924         * modules/unistd-safer (Depends-on): Likewise.
10925         * modules/dup3 (configure.ac): Set module indicator.
10926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10927         missing.
10928         * lib/fchdir.c (_gl_register_dup): Fix comment.
10929         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10930         * lib/dup-safer.c (dup_safer): Likewise.
10931         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10932         * lib/dup3.c (dup3): Likewise.
10933         * tests/test-fchdir.c (main): Enhance test.
10934         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
10935
10936         fcntl: port portions of fcntl to mingw
10937         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10938         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10939         replacement for mingw.
10940         * modules/fcntl (Description): Update.
10941         (Depends-on): Add dup2.
10942         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10943         * modules/fcntl-h (Makefile.am): Substitute it.
10944         * lib/fcntl.in.h (fcntl): Update declaration.
10945         (F_DUPFD, F_GETFD): New macros, when needed.
10946         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10947         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10948         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10949         we now guarantee.
10950
10951         fcntl: work around cygwin bug in F_DUPFD
10952         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10953         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
10954         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
10955         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
10956         * doc/posix-functions/fcntl.texi (fcntl): Document it.
10957
10958         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
10959         * modules/fcntl (Files): List new files.
10960         (configure.ac): Run a test.
10961         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
10962         * lib/fcntl.c (rpl_fcntl): Likewise.
10963         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
10964         (gl_FCNTL_H): Always replace fcntl.h.
10965         * modules/fcntl-h (Makefile.am): Substitute witnesses.
10966         * lib/fcntl.in.h (fcntl): Declare replacement.
10967         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
10968         needed, plus a witness.
10969         * doc/posix-functions/fcntl.texi (fcntl): Document this.
10970         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10971         * tests/test-fcntl.c: New file.
10972         * modules/fcntl-tests: Likewise.
10973
10974         binary-io: avoid potential compilation warning
10975         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
10976         directives.
10977
10978         fflush: avoid compilation error on NetBSD
10979         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
10980         between off_t and fpos_t, since the latter is sometimes a struct.
10981         * lib/fseeko.c (rpl_fseeko): Likewise.
10982         Reported by Alexander Nasonov <alnsn@yandex.ru>.
10983
10984 2009-12-15  Eric Blake  <ebb9@byu.net>
10985
10986         fcntl-h, stdio, sys_ioctl: fix declarations
10987         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
10988         function must not take arguments.
10989         * lib/sys_ioctl.in.h (ioctl): Likewise.
10990         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
10991         (open): Add a link warning.
10992
10993 2009-12-15  Jim Meyering  <meyering@redhat.com>
10994
10995         areadlink, areadlink-with-size: relax license to LGPLv2+
10996         * modules/areadlink (License): Relax to LGPLv2+.
10997         * modules/areadlink-with-size (License): Likewise.
10998
10999 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11000             Bruno Haible  <bruno@clisp.org>
11001
11002         *printf: Fix memory leak.
11003         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11004         * lib/vfprintf.c (vfprintf): Likewise.
11005         * lib/dprintf.c (dprintf): Likewise.
11006         * lib/vdprintf.c (vdprintf): Likewise.
11007
11008 2009-12-14  Eric Blake  <ebb9@byu.net>
11009
11010         accept4: adjust module dependencies
11011         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11012
11013         utimens: one more try at avoiding compiler warning
11014         * lib/utimens.c (lutimens): Lower scope of result.
11015
11016 2009-12-13  Bruno Haible  <bruno@clisp.org>
11017
11018         Move the malloc checking from module 'list' to new module 'xlist'.
11019         * modules/xlist: New file.
11020         * lib/gl_xlist.h: New file.
11021         * lib/gl_xlist.c: New file.
11022         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11023         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11024         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11025         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11026         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11027         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11028         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11029         gl_sortedlist_nx_add): New declarations.
11030         (struct gl_list_implementation): Rename and change methods accordingly.
11031         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11032         (gl_list_nx_create): Renamed from gl_list_create.
11033         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11034         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11035         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11036         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11037         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11038         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11039         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11040         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11041         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11042         gl_list_create_empty.
11043         (gl_list_nx_create): Renamed from gl_list_create.
11044         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11045         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11046         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11047         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11048         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11049         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11050         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11051         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11052         * lib/gl_array_list.c: Don't include xalloc.h.
11053         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11054         NULL upon out-of-memory.
11055         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11056         out-of-memory.
11057         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11058         Change return type to 'int'.
11059         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11060         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11061         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11062         upon out-of-memory.
11063         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11064         upon out-of-memory.
11065         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11066         upon out-of-memory.
11067         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11068         upon out-of-memory.
11069         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11070         out-of-memory.
11071         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11072         Update.
11073         (gl_array_list_implementation): Update.
11074         * lib/gl_carray_list.c: Don't include xalloc.h.
11075         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11076         Return NULL upon out-of-memory.
11077         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11078         out-of-memory.
11079         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11080         Change return type to 'int'.
11081         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11082         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11083         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11084         upon out-of-memory.
11085         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11086         upon out-of-memory.
11087         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11088         out-of-memory.
11089         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11090         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11091         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11092         Update.
11093         (gl_carray_list_implementation): Update.
11094         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11095         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11096         gl_linked_create_empty. Return NULL upon out-of-memory.
11097         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11098         out-of-memory.
11099         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11100         Change return type to 'int'. Return -1 upon out-of-memory.
11101         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11102         out-of-memory.
11103         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11104         upon out-of-memory.
11105         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11106         upon out-of-memory.
11107         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11108         NULL upon out-of-memory.
11109         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11110         upon out-of-memory.
11111         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11112         out-of-memory.
11113         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11114         Update.
11115         * lib/gl_linked_list.c: Don't include xalloc.h.
11116         (gl_linked_list_implementation): Update.
11117         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11118         (add_to_bucket): Change return type to 'int'.
11119         (gl_linkedhash_list_implementation): Update.
11120         * lib/gl_anytree_list1.h (free_subtree): New function.
11121         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11122         gl_tree_create_empty. Return NULL upon out-of-memory.
11123         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11124         Change return type to 'int'. Return -1 upon out-of-memory.
11125         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11126         out-of-memory.
11127         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11128         (gl_tree_remove_node): New function, moved here from
11129         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11130         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11131         Update.
11132         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11133         malloc, not xmalloc. Return NULL upon out-of-memory.
11134         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11135         out-of-memory.
11136         (gl_tree_remove_node_from_tree): New function, extracted from
11137         gl_tree_remove_node.
11138         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11139         upon out-of-memory.
11140         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11141         out-of-memory.
11142         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11143         upon out-of-memory.
11144         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11145         upon out-of-memory.
11146         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11147         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11148         not xmalloc. Return NULL upon out-of-memory.
11149         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11150         out-of-memory.
11151         (gl_tree_remove_node_from_tree): New function, extracted from
11152         gl_tree_remove_node.
11153         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11154         upon out-of-memory.
11155         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11156         out-of-memory.
11157         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11158         upon out-of-memory.
11159         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11160         upon out-of-memory.
11161         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11162         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11163         gl_anytree_list1.h before gl_anyavltree_list2.h.
11164         (gl_avltree_list_implementation): Update.
11165         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11166         gl_anytree_list1.h before gl_anyavltree_list2.h.
11167         (gl_rbtree_list_implementation): Update.
11168         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11169         Change return type to 'int'. Return -1 upon out-of-memory. Use
11170         __builtin_expect.
11171         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11172         (gl_avltreehash_list_implementation): Update.
11173         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11174         (gl_rbtreehash_list_implementation): Update.
11175         * modules/array-list (Depends-on): Remove xalloc.
11176         * modules/carray-list (Depends-on): Likewise.
11177         * modules/linked-list (Depends-on): Likewise.
11178         * modules/linkedhash-list (Depends-on): Likewise.
11179         * modules/avltree-list (Depends-on): Likewise.
11180         * modules/rbtree-list (Depends-on): Likewise.
11181         * modules/avltreehash-list (Depends-on): Likewise.
11182         * modules/rbtreehash-list (Depends-on): Likewise.
11183
11184         * modules/xsublist: New file.
11185         * lib/gl_xsublist.h: New file.
11186         * lib/gl_xsublist.c: New file.
11187         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11188         (gl_sublist_nx_create): New declaration.
11189         * lib/gl_sublist.c: Don't include xalloc.h.
11190         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11191         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11192         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11193         Change return type to 'int'. Return -1 upon out-of-memory.
11194         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11195         upon out-of-memory.
11196         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11197         NULL upon out-of-memory.
11198         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11199         upon out-of-memory.
11200         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11201         NULL upon out-of-memory.
11202         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11203         NULL upon out-of-memory.
11204         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11205         upon out-of-memory.
11206         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11207         (gl_sublist_list_implementation): Update.
11208         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11209         upon out-of-memory.
11210         * modules/sublist (Depends-on): Remove xalloc.
11211
11212         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11213         * tests/test-carray_list.c: Likewise.
11214         * tests/test-linked_list.c: Likewise.
11215         * tests/test-linkedhash_list.c: Likewise.
11216         * tests/test-avltree_list.c: Likewise.
11217         * tests/test-rbtree_list.c: Likewise.
11218         * tests/test-avltreehash_list.c: Likewise.
11219         * tests/test-rbtreehash_list.c: Likewise.
11220         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11221         * modules/carray-list-tests (Makefile.am): Likewise.
11222         * modules/linked-list-tests (Makefile.am): Likewise.
11223         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11224         * modules/avltree-list-tests (Makefile.am): Likewise.
11225         * modules/rbtree-list-tests (Makefile.am): Likewise.
11226         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11227         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11228
11229         * NEWS: Mention the changes.
11230
11231         * lib/clean-temp.c: Include gl_xlist.h.
11232         * modules/clean-temp (Depends-on): Add xlist.
11233
11234         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11235         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11236
11237         * tests/test-array_oset.c: Include gl_xlist.h.
11238         * modules/array-oset-tests (Depends-on): Add xlist.
11239
11240         Reported by José E. Marchesi <jemarch@gnu.org>.
11241
11242 2009-12-13  Bruno Haible  <bruno@clisp.org>
11243
11244         Move the malloc checking from module 'oset' to new module 'xoset'.
11245         * modules/xoset: New file.
11246         * lib/gl_xoset.h: New file.
11247         * lib/gl_xoset.c: New file.
11248         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11249         declarations.
11250         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11251         (struct gl_oset_implementation): Rename and change methods accordingly.
11252         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11253         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11254         'int'. Mark as __warn_unused_result__.
11255         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11256         gl_oset_create_empty.
11257         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11258         'int'.
11259         * lib/gl_array_oset.c: Don't include xalloc.h.
11260         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11261         malloc, not xmalloc.
11262         (grow): Change return type to 'int'. Don't call xalloc_die.
11263         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11264         to 'int'.
11265         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11266         'int'.
11267         (gl_array_oset_implementation): Update.
11268         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11269         gl_tree_create_empty.
11270         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11271         'int'.
11272         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11273         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11274         xmalloc.
11275         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11276         not xmalloc.
11277         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11278         xmalloc.
11279         (gl_avltree_oset_implementation): Update.
11280         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11281         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11282         xmalloc.
11283         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11284         not xmalloc.
11285         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11286         xmalloc.
11287         (gl_rbtree_oset_implementation): Update.
11288         * modules/array-oset (Depends-on): Remove xalloc.
11289         * modules/avltree-oset (Depends-on): Likewise.
11290         * modules/rbtree-oset (Depends-on): Likewise.
11291         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11292         * tests/test-avltree_oset.c: Likewise.
11293         * tests/test-rbtree_oset.c: Likewise.
11294         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11295         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11296         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11297         * NEWS: Mention the change.
11298
11299 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11300
11301         maint.mk: allow a project to override release-prep commands
11302         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11303         commands into a new rule.
11304         (release-prep): New rule.
11305         (release-prep-hook): New overridable variable.
11306
11307 2009-12-13  Bruno Haible  <bruno@clisp.org>
11308
11309         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11310
11311 2009-12-13  Jim Meyering  <meyering@redhat.com>
11312
11313         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11314         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11315
11316 2009-12-12  Bruno Haible  <bruno@clisp.org>
11317
11318         duplocale: Tweak.
11319         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11320
11321 2009-12-12  Karl Berry  <karl@gnu.org>
11322
11323         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11324
11325 2009-12-12  Bruno Haible  <bruno@clisp.org>
11326
11327         * m4/po.m4: Undo incorrect untabification.
11328
11329 2009-12-12  Bruno Haible  <bruno@clisp.org>
11330
11331         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11332         * modules/c-strtod (Depends-on): Add locale.
11333         * modules/c-strtold (Depends-on): Likewise.
11334
11335 2009-12-12  Bruno Haible  <bruno@clisp.org>
11336
11337         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11338
11339 2009-12-11  Eric Blake  <ebb9@byu.net>
11340
11341         setenv: relax requirement in light of POSIX ruling
11342         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11343         not NULL.
11344         * tests/test-setenv.c (main): Relax test.
11345         * tests/test-unsetenv.c (main): Likewise.
11346         * doc/posix-functions/setenv.texi (setenv): Document this.
11347         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11348
11349 2009-12-11  Bruno Haible  <bruno@clisp.org>
11350
11351         New module 'fd-safer-flag'.
11352         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11353         * lib/dup-safer.c (dup_safer_flag): Remove function.
11354         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11355         * lib/fd-safer.c (fd_safer_flag): Remove function.
11356         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11357         * modules/cloexec (configure.ac): Drop indicator macro.
11358         * modules/fd-safer-flag: New file.
11359         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11360         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11361         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11362
11363 2009-12-11  Bruno Haible  <bruno@clisp.org>
11364
11365         Tests for module 'nl_langinfo'.
11366         * modules/nl_langinfo-tests: New file.
11367         * tests/test-nl_langinfo.sh: New file.
11368         * tests/test-nl_langinfo.c: New file.
11369
11370         New module 'nl_langinfo'.
11371         * lib/nl_langinfo.c: New file.
11372         * m4/nl_langinfo.m4: New file.
11373         * modules/nl_langinfo: New file.
11374         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
11375
11376 2009-12-11  Bruno Haible  <bruno@clisp.org>
11377
11378         Tests for module 'langinfo'.
11379         * modules/langinfo-tests: New file.
11380         * tests/test-langinfo.c: New file.
11381
11382         New module 'langinfo'.
11383         * lib/langinfo.in.h: New file.
11384         * m4/langinfo_h.m4: New file.
11385         * modules/langinfo: New file.
11386         * doc/posix-headers/langinfo.texi: Mention the new module.
11387
11388 2009-12-11  Bruno Haible  <bruno@clisp.org>
11389
11390         * lib/config.charset: Untabify.
11391
11392 2009-12-11  Bruno Haible  <bruno@clisp.org>
11393
11394         * modules/unistd-safer (configure.ac): Drop indicator macro.
11395
11396 2009-12-11  Bruno Haible  <bruno@clisp.org>
11397
11398         Move pipe2-safer code to its own file.
11399         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
11400         * lib/pipe-safer.c (pipe2_safer): Remove function.
11401         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
11402         (Makefile.am): Add it to lib_SOURCES.
11403
11404 2009-12-10  Bruno Haible  <bruno@clisp.org>
11405
11406         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
11407
11408 2009-12-10  Bruno Haible  <bruno@clisp.org>
11409
11410         Declare which arguments expect non-NULL values, for GCC and clang.
11411         * build-aux/arg-nonnull.h: New file.
11412         * modules/arg-nonnull: New file.
11413         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
11414         (inet_ntop, inet_pton): Use it.
11415         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
11416         (closedir, dirfd, opendir, scandir, alphasort): Use it.
11417         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
11418         (open, openat): Use it.
11419         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
11420         (fnmatch): Use it.
11421         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
11422         (getopt, getopt_long, getopt_long_only): Use it.
11423         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
11424         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
11425         Use it.
11426         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
11427         (iconv_open): Use it.
11428         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
11429         (strtoimax, strtoumax): Use it.
11430         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
11431         (duplocale): Use it.
11432         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
11433         (frexp, frexpl): Use it.
11434         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
11435         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
11436         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
11437         (tsearch, tfind, tdelete, twalk): Use it.
11438         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
11439         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11440         sigpending): Use it.
11441         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
11442         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11443         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11444         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11445         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11446         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11447         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11448         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11449         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11450         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11451         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11452         Use it.
11453         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
11454         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
11455         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
11456         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
11457         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
11458         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
11459         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
11460         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
11461         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
11462         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
11463         strtoull, unsetenv): Use it.
11464         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
11465         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11466         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11467         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
11468         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
11469         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
11470         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
11471         (strcasecmp, strncasecmp): Use it.
11472         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
11473         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
11474         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
11475         rpl_setsockopt): Use it.
11476         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
11477         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
11478         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
11479         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
11480         (gettimeofday): Use it.
11481         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
11482         (times): Use it.
11483         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
11484         (uname): Use it.
11485         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
11486         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
11487         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
11488         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
11489         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
11490         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
11491         unlinkat, write): Use it.
11492         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
11493         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
11494         * lib/argv-iter.h: Include arg-nonnull.h.
11495         (_ATTRIBUTE_NONNULL_): Remove macro.
11496         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
11497         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
11498         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
11499         optimization.
11500         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
11501         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
11502         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
11503         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
11504         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
11505         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
11506         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
11507         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
11508         * modules/arpa_inet (Depends-on): Add arg-nonnull.
11509         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
11510         * modules/dirent (Depends-on): Add arg-nonnull.
11511         (Makefile.am): Insert arg-nonnull.h into dirent.h.
11512         * modules/fcntl-h (Depends-on): Add arg-nonnull.
11513         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
11514         * modules/fnmatch (Depends-on): Add arg-nonnull.
11515         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
11516         * modules/getopt-posix (Depends-on): Add arg-nonnull.
11517         (Makefile.am): Insert arg-nonnull.h into getopt.h.
11518         * modules/glob (Depends-on): Add arg-nonnull.
11519         (Makefile.am): Insert arg-nonnull.h into glob.h.
11520         * modules/iconv_open (Depends-on): Add arg-nonnull.
11521         (Makefile.am): Insert arg-nonnull.h into iconv.h.
11522         * modules/inttypes (Depends-on): Add arg-nonnull.
11523         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
11524         * modules/locale (Depends-on): Add arg-nonnull.
11525         (Makefile.am): Insert arg-nonnull.h into locale.h.
11526         * modules/math (Depends-on): Add arg-nonnull.
11527         (Makefile.am): Insert arg-nonnull.h into math.h.
11528         * modules/netdb (Depends-on): Add arg-nonnull.
11529         (Makefile.am): Insert arg-nonnull.h into netdb.h.
11530         * modules/search (Depends-on): Add arg-nonnull.
11531         (Makefile.am): Insert arg-nonnull.h into search.h.
11532         * modules/signal (Depends-on): Add arg-nonnull.
11533         (Makefile.am): Insert arg-nonnull.h into signal.h.
11534         * modules/spawn (Depends-on): Add arg-nonnull.
11535         (Makefile.am): Insert arg-nonnull.h into spawn.h.
11536         * modules/stdio (Depends-on): Add arg-nonnull.
11537         (Makefile.am): Insert arg-nonnull.h into stdio.h.
11538         * modules/stdlib (Depends-on): Add arg-nonnull.
11539         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
11540         * modules/string (Depends-on): Add arg-nonnull.
11541         (Makefile.am): Insert arg-nonnull.h into string.h.
11542         * modules/strings (Depends-on): Add arg-nonnull.
11543         (Makefile.am): Insert arg-nonnull.h into strings.h.
11544         * modules/sys_socket (Depends-on): Add arg-nonnull.
11545         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
11546         * modules/sys_stat (Depends-on): Add arg-nonnull.
11547         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
11548         * modules/sys_time (Depends-on): Add arg-nonnull.
11549         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
11550         * modules/sys_times (Depends-on): Add arg-nonnull.
11551         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
11552         * modules/sys_utsname (Depends-on): Add arg-nonnull.
11553         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
11554         * modules/time (Depends-on): Add arg-nonnull.
11555         (Makefile.am): Insert arg-nonnull.h into time.h.
11556         * modules/unistd (Depends-on): Add arg-nonnull.
11557         (Makefile.am): Insert arg-nonnull.h into unistd.h.
11558         * modules/wchar (Depends-on): Add arg-nonnull.
11559         (Makefile.am): Insert arg-nonnull.h into wchar.h.
11560         * modules/argv-iter (Depends-on): Add arg-nonnull.
11561         * tests/test-canonicalize.c (null_ptr): New function.
11562         (main): Use it.
11563         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
11564         (main): Use it.
11565         * tests/test-memmem.c (null_ptr): New function.
11566         (main): Use it.
11567         Reported by Jim Meyering.
11568
11569 2009-12-10  Bruno Haible  <bruno@clisp.org>
11570
11571         Use spaces for indentation, not tabs.
11572         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11573         * m4/*.m4: Untabify.
11574         * build-aux/*.h: Untabify.
11575         * tests/**/*.[hc]: Untabify.
11576         * README: New section "Indent with spaces, not TABs", based on
11577         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
11578         * NEWS: Mention the change.
11579
11580 2009-12-10  Bruno Haible  <bruno@clisp.org>
11581
11582         pty test: Fix link error.
11583         * modules/pty-tests (Makefile.am): Add the default LDADD value to
11584         test_pty_LDADD.
11585
11586 2009-12-07  Simon Josefsson  <simon@josefsson.org>
11587
11588         * modules/pty: New file.
11589         * modules/pty-tests: New file.
11590         * m4/pty.m4: New file.
11591         * tests/test-pty.c: New file.
11592         * doc/glibc-headers/pty.texi: Modified.
11593         * doc/glibc-functions/forkpty.texi: Modified.
11594         * doc/glibc-functions/openpty.texi: Modified.
11595
11596 2009-12-10  Bruno Haible  <bruno@clisp.org>
11597
11598         Avoid syntax error in C++ mode.
11599         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
11600
11601 2009-12-10  Bruno Haible  <bruno@clisp.org>
11602
11603         Use sed with option -e.
11604         * gnulib-tool (func_version, func_emit_copyright_notice,
11605         func_emit_initmacro_end, func_import, func_create_testdir): Pass
11606         option -e to sed.
11607         * modules/link-warning (Makefile.am): Likewise.
11608
11609 2009-12-10  Jim Meyering  <meyering@redhat.com>
11610
11611         mgetgroups: do not write bytes beyond end of malloc'd buffer
11612         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
11613         username, we call getgroups with a one-element-shorter buffer,
11614         but still told it the length was original, max_n_groups.
11615
11616 2009-12-09  Eric Blake  <ebb9@byu.net>
11617
11618         cloexec: relax license
11619         * modules/cloexec (Maintainer): Add myself.
11620         (License): Use LGPL, not GPL.
11621
11622         link-warning: optimize generation
11623         * modules/link-warning (Makefile.am): Reduce process usage.
11624
11625 2009-12-09  Bruno Haible  <bruno@clisp.org>
11626
11627         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
11628         workaround was added on 2009-11-17.
11629
11630 2009-12-09  Jim Meyering  <meyering@redhat.com>
11631             Bruno Haible  <bruno@clisp.org>
11632
11633         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
11634         * modules/link-warning (Makefile.am): Make the comment-removing sed
11635         command more robust in the face of bootstrap-prepended comment lines.
11636
11637 2009-12-09  Bruno Haible  <bruno@clisp.org>
11638
11639         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
11640         most one group.
11641
11642 2009-12-09  Simon Josefsson <simon@josefsson.org>
11643             Bruno Haible  <bruno@clisp.org>
11644
11645         * build-aux/link-warning.h: Add copyright notice.
11646         * modules/link-warning (Makefile.am): Generate link-warning.h from
11647         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
11648         * NEWS: Mention change in link-warning module.
11649         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
11650         * modules/dirent (Makefile.am): Add dependency to dirent.h.
11651         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
11652         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
11653         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
11654         * modules/math (Makefile.am): Add dependency to math.h.
11655         * modules/search (Makefile.am): Add dependency to search.h.
11656         * modules/signal (Makefile.am): Add dependency to signal.h.
11657         * modules/spawn (Makefile.am): Add dependency to spawn.h.
11658         * modules/stdio (Makefile.am): Add dependency to stdio.h.
11659         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
11660         * modules/string (Makefile.am): Add dependency to string.h.
11661         * modules/strings (Makefile.am): Add dependency to strings.h.
11662         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
11663         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
11664         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
11665         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
11666         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
11667         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
11668         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
11669         * modules/unistd (Makefile.am): Add dependency to unistd.h.
11670         * modules/wchar (Makefile.am): Add dependency to wchar.h.
11671
11672 2009-12-09  Bruno Haible  <bruno@clisp.org>
11673
11674         fchdir: Optimize away rpl_fstat when possible.
11675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
11676         REPLACE_OPEN_DIRECTORY.
11677         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
11678
11679 2009-12-09  Bruno Haible  <bruno@clisp.org>
11680
11681         * lib/fchdir.c: Update comment.
11682
11683 2009-12-09  Bruno Haible  <bruno@clisp.org>
11684
11685         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
11686
11687 2009-12-08  Eric Blake  <ebb9@byu.net>
11688
11689         fchdir: avoid memory leak on re-registration.
11690         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
11691
11692 2009-12-08  Jim Meyering  <meyering@redhat.com>
11693
11694         init.sh: avoid Solaris 10 /bin/sh portability problem
11695         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
11696         sourced script:
11697           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
11698           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
11699           bar
11700         tests/init.sh relied on that, accepting a --set-path=DIR argument,
11701         and two tests used that idiom.
11702         * tests/init.sh: Update suggested usage comments.
11703         (path_prepend_): New function, to be used in place
11704         of the --src-path=DIR option.
11705         (setup_): Move PATH-prepending code into path_prepend_.
11706         * tests/test-pread.sh: Adapt to new usage.
11707         * tests/test-xalloc-die.sh: Likewise.
11708
11709 2009-12-08  Simon Josefsson  <simon@josefsson.org>
11710
11711         * doc/gnulib.texi (Glibc pty.h): Add.
11712         * doc/glibc-functions/forkpty.texi: Add.
11713         * doc/glibc-functions/openpty.texi: Add.
11714         Suggested by Bruno Haible.
11715
11716 2009-12-08  Eric Blake  <ebb9@byu.net>
11717
11718         fchdir: fix logic bugs
11719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
11720         * tests/test-fchdir.c (main): Enhance test.
11721         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
11722         is in use.
11723
11724         dup2: fix logic bugs
11725         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
11726         REPLACE_DUP2 to decide when rpl_dup2 is needed.
11727         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
11728         exists.
11729         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
11730
11731 2009-12-07  Eric Blake  <ebb9@byu.net>
11732
11733         unlink: fix m4 detection
11734         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
11735
11736         unistd-safer: add unit test
11737         * modules/unistd-safer-tests: New file.
11738         * tests/test-dup-safer.c: Likewise.
11739         * tests/test-cloexec.c (setmode): Avoid compiler warning.
11740         * tests/test-dup2.c (setmode): Likewise.
11741         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
11742
11743         cloexec: preserve text vs. binary across dup_cloexec
11744         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
11745         mode.
11746         * modules/dup2-tests (Depends-on): Add binary-io.
11747         * modules/cloexec-tests (Depends-on): Likewise.
11748         * tests/test-dup2.c (setmode, is_mode): New helpers.
11749         (main): Add tests that translation mode is preserved.
11750         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
11751         Reported by Bruno Haible.
11752
11753         mgetgroups: reduce duplicate listings
11754         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
11755         resulting array.
11756         * tests/test-chown.h (test_chown): Simplify client.
11757         * tests/test-lchown.h (test_lchown): Likewise.
11758
11759 2009-12-06  Bruno Haible  <bruno@clisp.org>
11760
11761         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
11762         value.
11763
11764 2009-12-06  Bruno Haible  <bruno@clisp.org>
11765
11766         * lib/progname.c: Include stdio.h, stdlib.h.
11767         (set_program_name): Reject a NULL argument.
11768
11769 2009-12-05  Eric Blake  <ebb9@byu.net>
11770
11771         pipe2-safer: new module
11772         * modules/pipe2-safer: New file.
11773         * lib/unistd-safer.h (pipe2_safer): New prototype.
11774         * lib/unistd--.h (pipe2): New wrapper.
11775         * lib/pipe-safer.c (pipe2_safer): New function.
11776         * modules/pipe (Depends-on): Add pipe2-safer.
11777         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
11778
11779         stdlib-safer: preserve cloexec flag for mkostemp[s]
11780         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
11781         fd_safer_flag.
11782
11783         unistd-safer: allow preservation of cloexec status via flag
11784         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
11785         prototypes.
11786         * lib/dup-safer.c (dup_safer_flag): New function.
11787         * lib/fd-safer.c (fd_safer_flag): Likewise.
11788         * modules/cloexec (configure.ac): Set witness.
11789
11790         test-dup2: enhance test
11791         * modules/dup2-tests (Depends-on): Add cloexec.
11792         * tests/test-dup2.c (main): Enhance test.
11793
11794         cloexec: add dup_cloexec
11795         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
11796         header and comments.
11797         * lib/cloexec.c (set_cloexec_flag): Add comments.
11798         (dup_cloexec): New function, with mingw implementation borrowed
11799         from...
11800         * lib/w32spawn.h (dup_noinherit): ...here.
11801         * modules/execute (Depends-on): Add cloexec.
11802         * modules/pipe (Depends-on): Likewise.
11803         * modules/cloexec (Depends-on): Add dup2.
11804         * modules/cloexec-tests (Files): New file.
11805         * tests/test-cloexec.c: Likewise.
11806
11807         test-xalloc-die: fix test for mingw
11808         * modules/xalloc-die-tests (Files): Add tests/init.sh.
11809         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
11810         directory and .exe suffix off argv[0] output.
11811
11812         test-fseeko: fix test for mingw
11813         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
11814         than undefining fseek, so test will pass on mingw.
11815
11816 2009-12-05  Bruno Haible  <bruno@clisp.org>
11817
11818         * lib/progname.h (set_program_name): Clarify specification.
11819         * lib/progname.c (set_program_name): Likewise.
11820         Reported by Jim Meyering.
11821
11822 2009-12-05  Jim Meyering  <meyering@redhat.com>
11823
11824         maint.mk: backslash-escape parens in default regexp
11825         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
11826         backslash-escape the literal parentheses.
11827
11828         maint.mk: news-date-check: use grep -E
11829         * top/maint.mk (today): Define a Make variable, not a...
11830         (news-date-check): ...shell variable.
11831         (news-date-regexp): Use the Make variable.
11832         Use grep's -E option.  Change the failing diagnostic to mention
11833         the variable, $(news-date-regexp).
11834
11835 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
11836
11837         maintainer-makefile: allow customization of NEWS entry format
11838         * top/maint.mk (news-date-regexp): New overridable variable.
11839         (news-date-check): Use it.
11840
11841 2009-12-04  Eric Blake  <ebb9@byu.net>
11842
11843         mgetgroups: add xgetgroups, and avoid ENOSYS failures
11844         * lib/mgetgroups.h (xgetgroups): New prototype.
11845         * lib/mgetgroups.c (xgetgroups): New wrapper.
11846         (mgetgroups): Handle ENOSYS.
11847         * modules/mgetgroups (Depends-on): Add realloc.
11848         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
11849
11850         mgetgroups: avoid argument promotion issues with -1
11851         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
11852         for invalid gid_t.
11853         * tests/test-chown.h (getegid, test_chown): Likewise.
11854         * tests/test-lchown.h (getegid, test_lchown): Likewise.
11855
11856 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
11857
11858         exclude: Fix header file problems.
11859         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
11860
11861 2009-12-01  Jim Meyering  <meyering@redhat.com>
11862
11863         fts: fts_open: do not let an empty string cause immediate failure
11864         This is required in support of GNU rm, for which the command
11865         "rm A '' B" must process and remove both A and B, in spite of
11866         the empty string argument.
11867         * lib/fts.c (fts_open): Do not let the presence of an empty string
11868         cause fts_open to fail immediately.  Most fts-using tools must be
11869         able to process all arguments, in order, and can be expected to
11870         diagnose such arguments themselves.
11871
11872 2009-11-30  Eric Blake  <ebb9@byu.net>
11873
11874         utimens: fix compilation error
11875         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
11876         Declare variable at right scope.
11877
11878 2009-11-29  Jim Meyering  <meyering@redhat.com>
11879
11880         bootstrap: handle perl-5.11's changed --version output
11881         * build-aux/bootstrap (get_version): Handle perl separately,
11882         since perl-5.11's --version output is different.
11883
11884 2009-11-28  Jim Meyering  <meyering@redhat.com>
11885
11886         userspec: depend on the inttostr module, too
11887         * modules/userspec (Depends-on): Add inttostr.
11888
11889         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
11890         * lib/userspec.c (parse_with_separator): Do not accept a user ID
11891         number of MAXUID when it evaluates to (uid_t) -1.
11892         Likewise for group ID.  Reported by Matt McCutchen in
11893         <http://savannah.gnu.org/bugs/?28113>
11894
11895         userspec: reformat to use spaces, not TABs
11896         * lib/userspec.c: Expand TABs to spaces.
11897         Add Emacs' "indent-tabs-mode: nil" hint.
11898
11899 2009-11-27  Eric Blake  <ebb9@byu.net>
11900
11901         getopt-gnu: flush out another BSD bug
11902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
11903         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
11904         flush out BSD bug.
11905         * tests/test-getopt.h (test_getopt): End lists with NULL.
11906         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11907         (test_getopt_long_posix): Enhance test.
11908         * modules/getopt-posix-tests (Depends-on): Add stdbool.
11909         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
11910         getopt-gnu.
11911         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11912         Likewise.
11913
11914 2009-11-27  Simon Josefsson  <simon@josefsson.org>
11915
11916         * modules/idpriv-droptemp-tests (Notice): Fix text.
11917
11918 2009-11-27  Jim Meyering  <meyering@redhat.com>
11919
11920         test-xalloc-die: avoid spurious failure due to libtool argv difference
11921         In a libtool-enabled project, this test would fail due to a difference
11922         in the emitted program name, e.g.,
11923         -test-xalloc-die: memory exhausted
11924         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11925         Use program to avoid that.
11926         * modules/xalloc-die-tests (Depends-on): Add progname.
11927         * tests/test-xalloc-die.c: Include progname.h".
11928         (program_name): Remove decl.
11929         (main): Call set_program_name.
11930         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11931
11932 2009-11-26  Richard Jones  <rjones@redhat.com>
11933
11934         w32sock: leave win32 error in place.
11935         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11936
11937 2009-11-26  Eric Blake  <ebb9@byu.net>
11938
11939         init.sh: suggest to use skip_ and fail_ functions in comments
11940         * tests/init.sh: Add a sentence.
11941
11942 2009-11-25  Bruno Haible  <bruno@clisp.org>
11943
11944         init.sh: add documentation in comments
11945         * tests/init.sh: Add some developer and user documentation.
11946
11947 2009-11-26  Jim Meyering  <meyering@redhat.com>
11948
11949         init.sh: accommodate even those who specify bogus srcdir manually
11950         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11951         configure-time tests to be sanitized, so that there is no need to
11952         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11953         (with no double quotes) suffices.  However, since tests may be
11954         invoked manually, and since you may explicitly set srcdir to the
11955         name of a directory containing spaces, do quote its uses here.
11956         * tests/test-pread.sh: Likewise.
11957         Suggested by Bruno Haible.
11958
11959         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
11960         * tests/test-pread.sh: Write no data into the pipe, because
11961         test-pread actually reads none.  This avoids a diagnostic,
11962         "bash: echo: write error: Broken pipe", that arises in the unusual
11963         event something is ignoring SIGPIPE, and might be interpreted
11964         as some sort of failure.  Reported by Bruno Haible.
11965
11966 2009-11-25  Jim Meyering  <meyering@redhat.com>
11967
11968         test-pread: cover failure with ESPIPE and EINVAL
11969         * tests/test-pread.c (main): Test for failure, too.
11970         * tests/test-pread.sh: Invoke with stdin on a pipe.
11971         Suggested by Eric Blake.
11972
11973         pread: improvement and fix
11974         * modules/pread (Depends-on): Depend on lseek, for portability to
11975         e.g., mingw.  Suggested by Eric Blake.
11976         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
11977
11978         unistd.in.h: correct declaration of pread
11979         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
11980         Reported by Richard W.M. Jones.
11981
11982         test-pread.sh: distribute the test script
11983         * modules/pread-tests (Files): Include test-pread.sh.
11984
11985         test-pread.sh: clean up
11986         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
11987         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
11988         That is unnecessary, since it's always ".".
11989         Suggestion from Eric Blake.
11990
11991         test-pread.sh: make executable
11992         * tests/test-pread.sh: Set executable bit.
11993         Reported by Eric Blake.
11994
11995         correct typo in test-pread.sh
11996         * tests/test-pread.sh: Add #! line.
11997
11998         test pread
11999         * tests/test-pread.c: New file.
12000         * tests/test-pread.sh: Likewise.
12001         * modules/pread-tests: Likewise.
12002
12003         pread: new module
12004         * modules/pread: New file.
12005         * lib/unistd.in.h (pread): Define/declare.
12006         * lib/pread.c (pread): New file.
12007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12008         * modules/unistd (Makefile.am): Substitute witnesses.
12009         * doc/posix-functions/pread.texi (pread): Update.
12010         * MODULES.html.sh: Add pread.
12011
12012 2009-11-25  Jim Meyering  <meyering@redhat.com>
12013
12014         tests/init.sh: new file to be used via most *.sh tests
12015         * tests/init.sh: New file.
12016
12017 2009-11-25  Eric Blake  <ebb9@byu.net>
12018
12019         utimens: work around older Linux failure with symlinks
12020         * lib/utimens.c (lutimensat_works_really): New variable.
12021         (fdutimens, lutimens): Use it to manage kernels that support
12022         nanosecond times on files, but not on symlinks.
12023         Reported by OndÅ™ej Vašík.
12024
12025         utimes: fix configure grammar
12026         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12027
12028 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12029
12030         regex: Fix fastmap for multibyte character ranges.
12031         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12032         characters when a multibyte character range is included.
12033
12034 2009-11-22  Andy Wingo  <wingo@pobox.com>
12035
12036         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12037         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12038
12039 2009-11-24  Bruno Haible  <bruno@clisp.org>
12040
12041         doc: Most *_l functions exist in MacOS X 10.5.
12042         * doc/posix-functions/duplocale.texi: Update platforms list.
12043         * doc/posix-functions/freelocale.texi: Likewise.
12044         * doc/posix-functions/newlocale.texi: Likewise.
12045         * doc/posix-functions/uselocale.texi: Likewise.
12046         * doc/posix-functions/isalnum_l.texi: Likewise.
12047         * doc/posix-functions/isalpha_l.texi: Likewise.
12048         * doc/posix-functions/isblank_l.texi: Likewise.
12049         * doc/posix-functions/iscntrl_l.texi: Likewise.
12050         * doc/posix-functions/isdigit_l.texi: Likewise.
12051         * doc/posix-functions/isgraph_l.texi: Likewise.
12052         * doc/posix-functions/islower_l.texi: Likewise.
12053         * doc/posix-functions/isprint_l.texi: Likewise.
12054         * doc/posix-functions/ispunct_l.texi: Likewise.
12055         * doc/posix-functions/isspace_l.texi: Likewise.
12056         * doc/posix-functions/isupper_l.texi: Likewise.
12057         * doc/posix-functions/iswalnum_l.texi: Likewise.
12058         * doc/posix-functions/iswalpha_l.texi: Likewise.
12059         * doc/posix-functions/iswblank_l.texi: Likewise.
12060         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12061         * doc/posix-functions/iswctype_l.texi: Likewise.
12062         * doc/posix-functions/iswdigit_l.texi: Likewise.
12063         * doc/posix-functions/iswgraph_l.texi: Likewise.
12064         * doc/posix-functions/iswlower_l.texi: Likewise.
12065         * doc/posix-functions/iswprint_l.texi: Likewise.
12066         * doc/posix-functions/iswpunct_l.texi: Likewise.
12067         * doc/posix-functions/iswspace_l.texi: Likewise.
12068         * doc/posix-functions/iswupper_l.texi: Likewise.
12069         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12070         * doc/posix-functions/isxdigit_l.texi: Likewise.
12071         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12072         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12073         * doc/posix-functions/strcoll_l.texi: Likewise.
12074         * doc/posix-functions/strfmon_l.texi: Likewise.
12075         * doc/posix-functions/strftime_l.texi: Likewise.
12076         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12077         * doc/posix-functions/strxfrm_l.texi: Likewise.
12078         * doc/posix-functions/tolower_l.texi: Likewise.
12079         * doc/posix-functions/toupper_l.texi: Likewise.
12080         * doc/posix-functions/towctrans_l.texi: Likewise.
12081         * doc/posix-functions/towlower_l.texi: Likewise.
12082         * doc/posix-functions/towupper_l.texi: Likewise.
12083         * doc/posix-functions/wcscoll_l.texi: Likewise.
12084         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12085         * doc/posix-functions/wctrans_l.texi: Likewise.
12086         * doc/posix-functions/wctype_l.texi: Likewise.
12087         * doc/glibc-functions/strptime_l.texi: Likewise.
12088         * doc/glibc-functions/strtod_l.texi: Likewise.
12089         * doc/glibc-functions/strtof_l.texi: Likewise.
12090         * doc/glibc-functions/strtol_l.texi: Likewise.
12091         * doc/glibc-functions/strtold_l.texi: Likewise.
12092         * doc/glibc-functions/strtoll_l.texi: Likewise.
12093         * doc/glibc-functions/strtoul_l.texi: Likewise.
12094         * doc/glibc-functions/strtoull_l.texi: Likewise.
12095         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12096         * doc/glibc-functions/wcstod_l.texi: Likewise.
12097         * doc/glibc-functions/wcstof_l.texi: Likewise.
12098         * doc/glibc-functions/wcstol_l.texi: Likewise.
12099         * doc/glibc-functions/wcstold_l.texi: Likewise.
12100         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12101         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12102         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12103
12104 2009-11-24  Bruno Haible  <bruno@clisp.org>
12105
12106         duplocale: Fix logic bug.
12107         * lib/duplocale.c: Don't include <langinfo.h>.
12108         (_NL_LOCALE_NAME): Remove macro.
12109         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12110         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12111
12112 2009-11-23  Jim Meyering  <meyering@redhat.com>
12113
12114         test-update-copyright: don't hard-code /usr/bin/perl
12115         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12116         perl to print the current year.  Gilles Espinasse reported that
12117         the replaced use of perl was hard-coded as /usr/bin/perl.
12118
12119 2009-11-23  Bruno Haible  <bruno@clisp.org>
12120
12121         duplocale: Add support for glibc 2.3.x.
12122         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12123
12124 2009-11-22  Bruno Haible  <bruno@clisp.org>
12125
12126         vasnprintf: Tiny optimization.
12127         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12128         MacOS X.
12129
12130 2009-11-22  Bruno Haible  <bruno@clisp.org>
12131
12132         Tests for module 'duplocale'.
12133         * modules/duplocale-tests: New file.
12134         * tests/test-duplocale.c: New file.
12135
12136         New module 'duplocale'.
12137         * m4/duplocale.m4: New file.
12138         * lib/locale.in.h (duplocale): New declaration.
12139         * lib/duplocale.c: New file.
12140         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12141         gl_LOCALE_H_DEFAULTS): New macros.
12142         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12143         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12144         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12145         REPLACE_DUPLOCALE.
12146         * modules/duplocale: New file.
12147         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12148
12149 2009-11-22  Bruno Haible  <bruno@clisp.org>
12150
12151         * modules/locale-tests (configure.ac): Test for newlocale function.
12152         * tests/test-locale.c: When the system has extended locale functions,
12153         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12154
12155         locale: Make locale_t available when possible.
12156         * lib/locale.in.h: Include <xlocale.h> when it exists.
12157         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12158         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12159         * modules/locale (Depends-on): Add extensions.
12160         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12161         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12162
12163 2009-11-22  Bruno Haible  <bruno@clisp.org>
12164
12165         Add comments.
12166         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12167         invocation.
12168         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12169         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12170         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12171
12172 2009-11-22  Bruno Haible  <bruno@clisp.org>
12173
12174         error: account for the possibility of freopen (stdout).
12175         * lib/error.c: Include <unistd.h>.
12176         (flush_stdout): New function, extracted from error and error_at_line.
12177         Determine stdout's fd dynamically.
12178         (error, error_at_line): Invoke flush_stdout.
12179         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12180         * modules/error (Depends-on): Add unistd.
12181
12182 2009-11-22  Bruno Haible  <bruno@clisp.org>
12183
12184         diffseq: Add comment.
12185         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12186
12187 2009-11-22  Jim Meyering  <meyering@redhat.com>
12188
12189         c-stack: avoid defining an unused static function
12190         * lib/c-stack.c (find_stack_direction): Do not define this function
12191         when it will not be used.
12192
12193         diffseq: avoid spurious gcc warnings
12194         * lib/diffseq.h (IF_LINT2): Define.
12195         (compareseq): Use it to initialize two members of "part".
12196         This avoids two used-uninitialized warnings.
12197
12198 2009-11-21  Jim Meyering  <meyering@redhat.com>
12199
12200         c-stack: avoid "ignoring return value of `write'" warning
12201         * lib/c-stack.c: Include "ignore-value.h".
12202         (die): Explicitly ignore each write return value.
12203         * modules/c-stack (Depends-on): Add ignore-value.
12204
12205 2009-11-21  Bruno Haible  <bruno@clisp.org>
12206
12207         diffseq: reduce scope of variable 'best'.
12208         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12209         variable, earlier used for two different purposes.
12210
12211 2009-11-21  Jim Meyering  <meyering@redhat.com>
12212
12213         diffseq: remove useless assignment to "best"
12214         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12215         assignment.  At that point "best" is already guaranteed to be zero.
12216
12217 2009-11-20  Eric Blake  <ebb9@byu.net>
12218
12219         build: mention ftp redirector in release announcements
12220         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12221         values that used to come from cfg.mk; mention FTP redirect URL.
12222         * build-aux/announce-gen: Mention the mirror list.
12223         Suggested by Karl Berry.
12224
12225         nanosleep: improve port to mingw
12226         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12228         LIB_NANOSLEEP, but only when needed.
12229         * modules/select (Link): Document LIBSOCKET.
12230         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12231         enough.
12232
12233         nanosleep: work around cygwin bug
12234         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12235         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12236         bug.
12237         (getnow): Delete, not needed.
12238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12239         LIB_CLOCK_GETTIME.
12240         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12241         clock-time, gettime.
12242         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12243         bug.
12244         * modules/nanosleep-tests: New test.
12245         * tests/test-nanosleep.c: New file.
12246
12247         sleep: work around cygwin bug
12248         * lib/sleep.c (rpl_sleep): Work around the bug.
12249         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12250         (gl_PREREQ_SLEEP): Delete unused macro.
12251         * modules/sleep (Depends-on): Add verify.
12252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12253         * modules/unistd (Makefile.am): Substitute witness.
12254         * lib/unistd.in.h (sleep): Update prototype.
12255         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12256         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12257         * modules/sleep-tests (Depends-on): Check for alarm.
12258
12259 2009-11-20  Jim Meyering  <meyering@redhat.com>
12260
12261         maint.mk: improve sc_prohibit_magic_number_exit
12262         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12263         so it does not match uses like System.exit(1).
12264         Add comments showing how to correct all offenders.
12265
12266 2009-11-19  Eric Blake  <ebb9@byu.net>
12267
12268         xalloc-die-tests: add missing library
12269         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12270
12271         test-xvasprintf: silence compiler warnings
12272         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12273         empty string from gcc.
12274
12275 2009-11-19  Jim Meyering  <meyering@redhat.com>
12276
12277         xfreopen: new module, from coreutils
12278         * modules/xfreopen: New module.
12279         * lib/xfreopen.c: New file.
12280         * lib/xfreopen.h: New file.
12281         * MODULES.html.sh (File stream based Input/Output"): Add it.
12282
12283 2009-11-19  Eric Blake  <ebb9@byu.net>
12284
12285         manywarnings: depend on warnings
12286         * modules/manywarnings (Depends-on): Add warnings.
12287
12288         build: avoid compiler warnings
12289         * lib/select.c (rpl_select): Delete unused variable.
12290         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12291
12292 2009-11-18  Eric Blake  <ebb9@byu.net>
12293
12294         tests: avoid false negative with --with-packager
12295         * tests/test-version-etc.sh: Discard packager information.
12296         * tests/test-argp-version-etc-1.sh: Likewise.
12297         Reported by Mike Frysinger.
12298
12299         utimens: fix regression on Solaris
12300         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12301         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12302         can only change fd timestamps via futimesat.  Instead, use an
12303         additional witness macro to avoid BSD bug.
12304         Reported by Jim Meyering.
12305
12306 2009-11-17  Eric Blake  <ebb9@byu.net>
12307
12308         usleep: use it to simplify tests
12309         * modules/stat-time-tests (Depends-on): Add usleep.
12310         (configure.ac): Drop usleep check.
12311         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12312         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12313         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12314         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12315         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12316         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12317         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12318         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12319         Likewise.
12320         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12321         * tests/test-lchown.h (nap): Likewise.
12322         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12323         * tests/test-stat-time.c (nap): Likewise.
12324         * tests/test-utimens-common.h (nap): Update comments.
12325
12326         usleep: new module
12327         * modules/usleep: New file.
12328         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12329         * lib/usleep.c (usleep): Likewise.
12330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12331         * modules/unistd (Makefile.am): Substitute witnesses.
12332         * lib/unistd.in.h (usleep): Add declaration.
12333         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12334         * MODULES.html.sh (Date and time): Likewise.
12335         * modules/usleep-tests (Depends-on): New test.
12336         * tests/test-usleep.c: New file.
12337
12338         chown: work around OpenBSD bug
12339         * lib/chown.c (rpl_chown): Work around the bug.
12340         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12341         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12342         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12343         * modules/chown (Depends-on): Add stdbool.
12344         * modules/lchown (Depends-on): Likewise.
12345         * doc/posix-functions/chown.texi (chown): Document the bug.
12346         * doc/posix-functions/lchown.texi (lchown): Likewise.
12347         * tests/test-lchown.h (test_chown): Relax test.
12348
12349         mkstemp: avoid conflict with C++ keyword template
12350         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12351         * lib/mkostemp.c (mkostemp): Likewise.
12352         * lib/mkostemps.c (mkostemps): Likewise.
12353         * lib/mkstemp.c (mkstemp): Likewise.
12354         * lib/mkstemps.c (mkstemps): Likewise.
12355
12356         xalloc-die-tests: optimize
12357         * tests/test-xalloc-die.sh: Reduce number of processes.
12358
12359 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12360
12361         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12362         patch from ludo@gnu.org (Ludovic Courtès).
12363
12364 2009-11-17  Jim Meyering  <meyering@redhat.com>
12365
12366         version-etc: use proper license string
12367         * modules/version-etc (License): Use LGPL, not LGPLv3+.
12368         * modules/version-etc-fsf: Likewise.
12369
12370 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12371
12372         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
12373         printed to stdout.  Deal with EOL differences.
12374
12375 2009-11-17  Eric Blake  <ebb9@byu.net>
12376
12377         unsetenv: work around Solaris bug
12378         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
12379         * lib/unsetenv.c (rpl_unsetenv): Work around it.
12380         Reported by Jim Meyering.
12381
12382         vasnprintf: avoid compiler warnings
12383         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
12384         variables.
12385         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
12386
12387 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12388
12389         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
12390         settings since xalloc-die is no longer the self test,
12391         xalloc-die.sh is.
12392
12393 2009-11-17  Jim Meyering  <meyering@redhat.com>
12394
12395         test-xalloc-die.sh: make the code agree with the commit log
12396         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
12397         at the end, just in case you happen to have a test-xalloc-die
12398         program in some other PATH directory.
12399
12400         test-xalloc-die.sh: fix a portability bug
12401         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
12402         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
12403         Otherwise, argv[0] (as often seen in diagnostics) would be too
12404         system-dependent, sometimes with, and sometimes without the leading "./".
12405
12406         version-etc-fsf: relax license to LGPLv3+
12407         * modules/version-etc-fsf (License): Relax license.
12408
12409 2009-11-16  Eric Blake  <ebb9@byu.net>
12410
12411         xalloc-die-tests: avoid printing null pointer
12412         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
12413         shell script.
12414         * tests/test-xalloc-die.c (program_name): Declare.
12415         * tests/test-xalloc-die.sh (tmpfiles): New file.
12416
12417         setenv, unsetenv: work around various bugs
12418         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
12419         (setenv) [HAVE_SETENV]: Work around bugs.
12420         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
12421         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
12422         for bugs.
12423         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
12424         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
12425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
12426         * modules/stdlib (Makefile.am): Update substitutions.
12427         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
12428         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
12429         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12430         * modules/setenv-tests: New test.
12431         * modules/unsetenv-tests: Likewise.
12432         * tests/test-setenv.c: New file.
12433         * tests/test-unsetenv.c: Likewise.
12434
12435 2009-11-16  Jim Meyering  <meyering@redhat.com>
12436
12437         version-etc: relax license to LGPLv3+
12438         * modules/version-etc (License): Relax license.
12439
12440         better AC_REQUIRE expanded-before-required-warning avoidance
12441         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
12442         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
12443         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
12444         which is no longer needed.
12445
12446 2009-11-16  Eric Blake  <ebb9@byu.net>
12447
12448         test-freading: clean up temporary file
12449         * tests/test-freading.c (main): Remove file on success, and use
12450         ASSERT more liberally.
12451         Reported by Jim Meyering.
12452
12453 2009-11-16  Jim Meyering  <meyering@redhat.com>
12454
12455         avoid new AC_REQUIRE expanded-before-required warnings
12456         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
12457         merely using it.
12458         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
12459         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
12460
12461 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12462
12463         * tests/test-xalloc-die.c: New file.
12464         * modules/xalloc-die-tests: New file.
12465         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
12466         XFAIL_TESTS so it can be appended by modules.
12467
12468 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12469
12470         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
12471         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
12472
12473 2009-11-14  Eric Blake  <ebb9@byu.net>
12474
12475         fnmatch: avoid compiler warning
12476         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
12477         to silence compiler warning about mismatch signedness in ?:.
12478         Reported by Robert Millan.
12479
12480         intprops: add double-inclusion guard
12481         * lib/intprops.h: Allow idempotent includes.
12482         Suggested by Bruce Korb.
12483
12484         openat: detect Solaris fchownat bug
12485         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
12486         penalizing glibc chownat when only lchownat is broken.
12487         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
12488         trailing slash bugs.
12489         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
12490         * modules/openat-tests (Files): Include more files.
12491         (Depends-on): Add mgetgroups, sleep, stat-time.
12492         (configure.ac): Add additional checks.
12493         (Makefile.am): Build new test.
12494         * tests/test-fchownat.c: New file.
12495
12496         lchown: detect Solaris and FreeBSD bug
12497         * lib/lchown.c (rpl_lchown): Work around bug.
12498         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
12499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12500         * modules/unistd (Makefile.am): Populate it.
12501         * lib/unistd.in.h (lchown): Update declaration.
12502         * doc/posix-functions/lchown.texi (lchown): Document the bug.
12503         * modules/lchown-tests: New file.
12504         * tests/test-lchown.h (test_lchown): Likewise.
12505         * tests/test-lchown.c (main): Likewise.
12506
12507         chown: detect Solaris and FreeBSD bug
12508         * lib/chown.c (rpl_chown): Work around bug.
12509         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
12510         (gl_PREREQ_CHOWN): Delete.
12511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12512         * modules/unistd (Makefile.am): Populate it.
12513         * lib/unistd.in.h (chown): Update declaration.
12514         * lib/lchown.c (chown): Update client.
12515         * modules/lchown (Depends-on): Add lstat.
12516         * doc/posix-functions/chown.texi (chown): Document the bug.
12517         * doc/posix-functions/getgroups.texi (getgroups): Document
12518         getgroups pitfall.
12519         * modules/chown-tests: New file.
12520         * tests/test-chown.h (test_chown): Likewise.
12521         * tests/test-chown.c (main): Likewise.
12522
12523 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
12524
12525         gnulib-tool: correctly detect absence of m4 directories
12526         * gnulib-tool: Avoid extra newline on data passed to wc -l.
12527
12528 2009-11-14  Jim Meyering  <meyering@redhat.com>
12529
12530         maint.mk: Prohibit inclusion of "xalloc.h" without use.
12531         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12532
12533 2009-11-14  John W. Eaton  <jwe@gnu.org>
12534
12535         strftime.h: wrap funtion declaration in extern "C" block
12536         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
12537
12538 2009-11-13  Eric Blake  <ebb9@byu.net>
12539
12540         getgroups: avoid compiler warning
12541         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
12542
12543         getgroups: work around FreeBSD bug
12544         * lib/getgroups.c (rpl_getgroups): Work around the bug.
12545         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
12546         * doc/posix-functions/getgroups.texi (getgroups): Document it.
12547         * tests/test-getgroups.c (main): Fix buffer overrun.
12548
12549         getgroups: avoid compilation failure
12550         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
12551         * modules/getgroups (Depends-on): Add stdint.
12552
12553 2009-11-13  Jim Meyering  <meyering@redhat.com>
12554
12555         test-getgroups: avoid compilation failure
12556         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
12557
12558 2009-11-13  Eric Blake  <ebb9@byu.net>
12559
12560         mgetgroups: new module, taken from coreutils
12561         * modules/mgetgroups: New file.
12562         * lib/mgetgroups.h: Likewise.
12563         * lib/mgetgroups.c (mgetgroups): Likewise.
12564         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
12565         * MODULES.html.sh (Users and groups): Mention it.
12566
12567         getgroups: don't expose GETGROUPS_T to user
12568         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
12569         an element at a time if GETGROUPS_T is wrong size.
12570         * lib/getugroups.h (getugroups): Change signature.
12571         * lib/unistd.in.h (getgroups): Likewise.
12572         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
12573         signature needs fixing.
12574         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
12575         AC_TYPE_GETGROUPS.
12576         * modules/group-member (Depends-on): Add getgroups.
12577         * lib/group-member.c (group_info, get_group_info): Use gid_t.
12578         (group_member): Rely on getgroups replacement.
12579         * lib/getugroups.c (getugroups): Use gid_t.
12580         * tests/test-getgroups.c (main): Likewise.
12581         * NEWS: Mention the signature change.
12582         * doc/posix-functions/getgroups.texi (getgroups): Mention the
12583         problem with signature.
12584         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
12585         GETGROUPS_T is still useful for setgroups.
12586
12587         getgroups, getugroups: provide stubs for mingw
12588         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
12589         * lib/getugroups.c (getugroups): Likewise.
12590         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
12591         function.  Modernize replacement scheme.
12592         (gl_PREREQ_GETGROUPS): Delete.
12593         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
12594         * modules/getgroups (configure.ac): Declare witness.
12595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12596         * modules/unistd (Depends-on): Substitute witness.
12597         * lib/unistd.in.h (getgroups): Declare replacement.
12598
12599         getgroups: avoid calling exit
12600         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
12601         drop xalloc.
12602         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
12603         dependencies.
12604         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
12605         exiting, in the rare case of malloc failure.
12606
12607         getgroups: fix logic error
12608         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
12609         has more than 20 groups.
12610         * modules/getgroups-tests: New test.
12611         * tests/test-getgroups.c: New file.
12612
12613 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12614
12615         * tests/test-base64.c: Improve.
12616
12617 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12618
12619         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
12620         Blake <ebb9@byu.net>.
12621
12622 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12623
12624         * tests/test-xvasprintf.c: Add %s%s related checks.
12625
12626 2009-11-12  Eric Blake  <ebb9@byu.net>
12627
12628         version-etc: match standards.texi style
12629         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
12630         and use <> only for URLs.
12631
12632 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
12633
12634         fts: do not fail on a submount during traversal
12635         * lib/fts.c (fts_build): Read the stat info again after opening
12636         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
12637         Original report at http://bugzilla.redhat.com/501848.
12638
12639 2009-11-12  Jim Meyering  <meyering@redhat.com>
12640
12641         bootstrap: sync from coreutils
12642         * build-aux/bootstrap (bootstrap_epilogue): New function.
12643         Use git_modules_config in one more place.  This make bootstrap's
12644         --gnulib-srcdir option more useful for testing.
12645
12646         bootstrap: generalize autoheader check
12647         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
12648         AC_CONFIG_HEADERS.
12649
12650 2009-11-11  Eric Blake  <ebb9@byu.net>
12651
12652         mkfifoat: use new modules for Solaris and BSD bugs
12653         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
12654         * lib/mkfifoat.c (mknodat): Split...
12655         * lib/mknodat.c (mknodat): ...into new file.
12656         * modules/mkfifoat (Files): Ship new file.
12657         (Depends-on): Add mkfifo, mknod.
12658         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
12659         (Depends-on): Add symlink.
12660         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
12661         redundant with test_mkfifo.h.
12662         (do_mkfifoat, do_mknodat): New helpers.
12663
12664         mknod: new module
12665         * modules/mknod: New file.
12666         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
12667         * lib/mknod.c (mknod): Likewise.
12668         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12669         defaults.
12670         * modules/sys_stat (Makefile.am): Substitute them.
12671         * lib/sys_stat.in.h (mknod): Declare replacement.
12672         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12673         Document it.
12674         * doc/posix-functions/mknod.texi (mknod): Likewise.
12675         * modules/mknod-tests: New test.
12676         * tests/test-mknod.c: Likewise.
12677
12678         mkfifo: new module
12679         * modules/mkfifo: New file.
12680         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12681         * lib/mkfifo.c (mkfifo): Likewise.
12682         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12683         defaults.
12684         * modules/sys_stat (Makefile.am): Substitute them.
12685         * lib/sys_stat.in.h (mkfifo): Declare replacement.
12686         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12687         Document it.
12688         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
12689         * modules/mkfifo-tests: New test.
12690         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
12691         from test-mkfifoat.c.
12692         * tests/test-mkfifo.c: New file.
12693
12694         readlink: detect FreeBSD bug
12695         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
12696         slash on symlink.
12697         * doc/posix-functions/readlink.texi (readlink): Document the bug.
12698         * tests/test-readlink.h (test_readlink): Enhance test.
12699
12700         symlink: detect FreeBSD bug
12701         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
12702         slash on symlink.
12703         * doc/posix-functions/symlink.texi (symlink): Document the bug.
12704         * tests/test-symlink.h (test_symlink): Enhance test.
12705
12706 2009-11-10  Eric Blake  <ebb9@byu.net>
12707
12708         link: detect FreeBSD bug
12709         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
12710         symlink.
12711         * doc/posix-functions/link.texi (link): Document the bug.
12712         * tests/test-link.h (test_link): Enhance test.
12713         * tests/test-linkat.c (main): Update caller.
12714
12715         unlink, remove: detect FreeBSD bug
12716         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
12717         slash on symlink.
12718         * doc/posix-functions/unlink.texi (unlink): Document the bug.
12719         * doc/posix-functions/remove.texi (remove): Likewise.
12720         * tests/test-unlink.h (test_unlink): Enhance test.
12721         * tests/test-remove.c (main): Likewise.
12722
12723 2009-11-09  Eric Blake  <ebb9@byu.net>
12724
12725         rename: detect FreeBSD bug
12726         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
12727         slash on symlink.
12728         * modules/renameat-tests (Depends-on): Add filenamecat.
12729         * tests/test-rename.h (test_rename): Allow one more errno.
12730         * tests/test-renameat.c (main): Likewise.
12731         * doc/posix-functions/rename.texi (rename): Document the bug.
12732
12733         open: detect FreeBSD bug
12734         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
12735         symlink.
12736         * doc/posix-functions/open.texi (open): Document the bug.
12737         * doc/posix-functions/utimes.texi (utimes): Likewise.
12738         * tests/test-open.h (test_open): Add parameters, and test symlink
12739         handling.
12740         * tests/test-open.c (main): Adjust caller.
12741         * tests/test-fcntl-safer.c (main): Likewise.
12742         * modules/open-tests (Depends-on): Add stdbool, symlink.
12743         * modules/fcntl-safer-tests (Depends-on): Likewise.
12744         * tests/test-openat.c (main): Add test-open tests.
12745
12746         stat: detect FreeBSD bug
12747         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
12748         symlink.
12749         * doc/posix-functions/stat.texi (stat): Document the bug.
12750         * tests/test-stat.h (test_stat_func): Add argument.
12751         * tests/test-stat.c (main): Adjust caller.
12752         * tests/test-fstatat.c (main): Likewise.
12753         * modules/stat-tests (Depends-on): Add stdbool, symlink.
12754         Reported by Jim Meyering.
12755
12756 2009-11-09  James Youngman  <jay@gnu.org>
12757
12758         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
12759         * lib/strftime.c: Correct placement of #include "ignore-value.h".
12760
12761 2009-11-08  Jim Meyering  <meyering@redhat.com>
12762
12763         utimens: remove invalid futimesat call
12764         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
12765         It used the file descriptor of the target file as the DIR_FD
12766         parameter and NULL as the file name.  That caused failure with
12767         errno == EFAULT on FreeBSD-8.0-rc2
12768
12769 2009-11-07  Eric Blake  <ebb9@byu.net>
12770
12771         fflush, freadseek: use fseeko, not fseek
12772         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12773         (clear_ungetc_buffer): Avoid potential problems on large files.
12774         * lib/freadseek.c (freadseek): Likewise.
12775         * modules/freadseek (Depends-on): Add fseeko.
12776         * modules/fseek (configure.ac): Set a witness.
12777         * tests/test-fflush.c (main): Use fseeko.
12778         * tests/test-fpurge.c (fseek): Disable link warning.
12779         * tests/test-freadable.c (fseek): Likewise.
12780         * tests/test-freading.c (fseek): Likewise.
12781         * tests/test-fseeko.c (fseek): Likewise.
12782         * tests/test-ftell.c (fseek): Likewise.
12783         * tests/test-ftello.c (fseek): Likewise.
12784         * tests/test-fwritable.c (fseek): Likewise.
12785         * tests/test-fwriting.c (fseek): Likewise.
12786
12787 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12788
12789         * modules/memchr (Depends-on): Drop getpagesize dependency.
12790
12791 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12792
12793         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
12794         Reported by Ludovic Courtès.
12795         * build-aux/pmccabe2html: Improve example usage.
12796         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
12797
12798 2009-11-06  Jim Meyering  <meyering@redhat.com>
12799
12800         do-release-commit-and-tag: New module.
12801         Automate the release-commit and tag process.
12802         * build-aux/do-release-commit-and-tag: New script, from coreutils.
12803         * modules/do-release-commit-and-tag: New file.
12804         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12805
12806 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12807
12808         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
12809         because test-select.c uses inet_pton.
12810
12811 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12812
12813         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
12814         GETADDRINFO_LIB.  Bump serial number.
12815         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
12816         Suggested by Eric Blake <ebb9@byu.net>.
12817
12818 2009-11-05  Eric Blake  <ebb9@byu.net>
12819
12820         strtod: detect darwin bug
12821         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
12822         Reported by Leo Davis.
12823
12824         freopen-safer: new module
12825         * modules/freopen-safer: New module.
12826         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
12827         * lib/freopen-safer.c (freopen_safer): New file.
12828         * lib/stdio-safer.h (freopen_safer): New declaration.
12829         * lib/stdio--.h (freopen): New override.
12830         * MODULES.html.sh (File stream based Input/Output): Mention it.
12831         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
12832         freopen-safer module.
12833         * doc/posix-functions/stderr.texi (stderr): Likewise.
12834         * doc/posix-functions/stdin.texi (stdin): Likewise.
12835         * doc/posix-functions/stdout.texi (stdout): Likewise.
12836         * modules/freopen-safer-tests: New test.
12837         * tests/test-reopen-safer.c: New file.
12838
12839 2009-11-05  Jim Meyering  <meyering@redhat.com>
12840
12841         maint.mk: Prohibit inclusion of "close-stream.h" without use.
12842         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12843
12844 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12845
12846         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
12847
12848 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12849
12850         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
12851
12852 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12853
12854         Fix link error.
12855         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12856         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12857
12858 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12859
12860         * tests/test-func.c: Also test value of __func__.
12861
12862 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12863
12864         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
12865         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
12866
12867 2009-11-05  Bruno Haible  <bruno@clisp.org>
12868
12869         Fix link error.
12870         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12871         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12872         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
12873
12874 2009-11-05  Bruno Haible  <bruno@clisp.org>
12875
12876         Tests for module 'inet_pton'.
12877         * modules/inet_pton-tests: New file.
12878         * tests/test-inet_pton.c: New file.
12879
12880 2009-11-05  Bruno Haible  <bruno@clisp.org>
12881
12882         Tests for module 'inet_ntop'.
12883         * modules/inet_ntop-tests: New file.
12884         * tests/test-inet_ntop.c: New file.
12885
12886 2009-11-04  Eric Blake  <ebb9@byu.net>
12887
12888         stdlib-safer: wrap all mkstemp variants
12889         * modules/mkostemp (configure.ac): Set witness.
12890         * modules/mkostemps (configure.ac): Likewise.
12891         * modules/mkstemps (configure.ac): Likewise.
12892         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
12893         (mkstemps_safer): Wrap more functions.
12894         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
12895         wrapping.
12896         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
12897         (mkstemps_safer): Implement the wrappers.
12898
12899         mkstemps, mkostemps: new modules
12900         * modules/mkostemps: New module.
12901         * modules/mkstemps: Likewise.
12902         * lib/mkostemps.c (mkostemps): New file.
12903         * lib/mkstemps.c (mkstemps): Likewise.
12904         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
12905         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
12906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
12907         * modules/stdlib (Makefile.am): Substitute them.
12908         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
12909         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
12910         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12911         * doc/gnulib.texi (Glibc stdlib.h): Include them.
12912         * MODULES.html.sh (File system functions): Mention them.
12913
12914         tempname: resync from glibc
12915         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
12916         same values for __GT_FILE as glibc.  Abort even when assertions
12917         are disabled.
12918         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12919         match its value otherwise.  Allow idempotent inclusion.
12920         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12921         * lib/mkostemp.c (mkostemp): Likewise.
12922         * lib/mkstemp.c (mkstemp): Likewise.
12923         * lib/tmpfile.c (tmpfile): Likewise.
12924         * NEWS: Document this.
12925
12926         utimens: fix use of futimens on older Linux
12927         * lib/utimens.c (fdutimens): Use updated, rather than original,
12928         timespec to avoid bug in older Linux kernel.
12929         Reported by Simon Josefsson.
12930
12931 2009-11-04  Bruno Haible  <bruno@clisp.org>
12932
12933         Make num_processors more flexible and consistent.
12934         * lib/nproc.h (enum nproc_query): New type.
12935         (num_processors): Add a 'query' argument.
12936         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12937         (num_processors): Add a 'query' argument. Test the value of the
12938         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12939         mingw, count the number of CPUs available for the current process.
12940         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12941         Check for sched_getaffinity and sched_getaffinity_np.
12942         * modules/nproc (Depends-on): Add c-ctype, extensions.
12943         * NEWS: Mention the change.
12944
12945 2009-11-03  Bruno Haible  <bruno@clisp.org>
12946
12947         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12948
12949 2009-11-03  Jim Meyering  <meyering@redhat.com>
12950
12951         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12952         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12953         if it is defined.
12954
12955 2009-11-02  Eric Blake  <ebb9@byu.net>
12956
12957         mktime, timegm: share common declaration
12958         * lib/mktime-internal.h: New file.
12959         * lib/mktime.c: Use it rather than open-coding a declaration.
12960         * lib/timegm.c: Likewise.
12961         * modules/mktime (Files): Ship it.
12962         * modules/timegm (Files): Likewise.
12963         Suggested by Bruno Haible.
12964
12965         test-update-copyright: update test to match script changes
12966         * tests/test-update-copyright.sh: Avoid hard-coding perl
12967         location.  Don't update *.bak created by earlier runs.
12968
12969 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12970             Simon Josefsson  <simon@josefsson.org>
12971             Bruno Haible  <bruno@clisp.org>
12972
12973         Fix link error on Solaris 8.
12974         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
12975         also in libnsl. Define also INET_PTON_LIB.
12976         * modules/inet_pton (Link): New section.
12977
12978 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12979             Bruno Haible  <bruno@clisp.org>
12980
12981         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
12982         * modules/inet_ntop (Link): New section.
12983         Reported by Boyan Kasarov <bkasarov@gmail.com>.
12984
12985 2009-11-02  Eric Blake  <ebb9@byu.net>
12986
12987         maint: avoid compiler warnings in m4 macros
12988         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
12989         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
12990
12991 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12992
12993         * m4/pmccabe2html.m4: Remove file.
12994         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
12995         function.  Change maintainer.
12996         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
12997         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
12998         Courtès).
12999
13000 2009-10-31  Eric Blake  <ebb9@byu.net>
13001
13002         fseeko: fix m4 regression
13003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13004         regression from 2009-10-27.
13005         Reported by Ralf Wildenhues.
13006
13007 2009-10-31  Jim Meyering  <meyering@redhat.com>
13008
13009         inttostr: aesthetics and improved (compile-time) safety
13010         Define inttype_is_signed rather than inttype_is_unsigned,
13011         since the sole use is via "#if inttype_is_signed".
13012         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13013         inttype_is_unsigned.
13014         * lib/offtostr.c (inttype_is_signed): Likewise.
13015         * lib/uinttostr.c (inttype_is_signed): Likewise.
13016         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13017         * lib/inttostr.c (inttostr): Use verify to cross-check the
13018         inttype_is_signed value and the signedness of the actual type.
13019         * modules/inttostr (Depends-on): Add verify.
13020
13021 2009-10-30  Eric Blake  <ebb9@byu.net>
13022
13023         build: avoid compiler warnings
13024         * lib/fchmodat.c (lchmod): Mark unused variables.
13025         * lib/getopt.c (_getopt_initialize): Likewise.
13026         * lib/mktime.c (__mktime_internal): Provide prototype.
13027         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13028         older gcc that do not understand #pragma GCC diagnostic.
13029         * lib/uinttostr.c (inttype_is_unsigned): Define.
13030         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13031
13032 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13033
13034         stat: fix compilation on AIX
13035         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13036         only see struct stat64.
13037
13038 2009-10-30  Eric Blake  <ebb9@byu.net>
13039
13040         exclude: make more robust
13041         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13042         rather than masking a coding bug.
13043         Suggested by Bruno Haible.
13044
13045 2009-10-30  Jim Meyering  <meyering@redhat.com>
13046
13047         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13048         Rather than putting #!/usr/bin/perl on the first line,
13049         start with a variant of what's recommended by "man perlrun" that
13050         invokes the first "perl" program from your shell's search path.
13051         * build-aux/gitlog-to-changelog: Replace #!... as above.
13052         Add a "Local Variables" perl mode setting.
13053         Prompted by a patch from Ludovic Courtès.
13054         Improved by Eric Blake.
13055         * build-aux/useless-if-before-free: Likewise.
13056         * build-aux/announce-gen: Likewise.
13057         * build-aux/update-copyright: Likewise.
13058
13059 2009-10-29  Eric Blake  <ebb9@byu.net>
13060
13061         filenamecat-lgpl: adjust clients
13062         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13063         filenamecat.
13064         * modules/renameat (Depends-on): Likewise.
13065
13066         filenamecat: split into filenamecat-lgpl
13067         * modules/filenamecat-lgpl: New module.
13068         * modules/filenamecat (Files): Move library-safe files into
13069         filenamecat-lgpl.
13070         (Depends-on): Add filenamecat-lgpl.
13071         (configure.ac): Declare witness.
13072         * lib/filenamecat.h (file_name_concat): Only declare when using
13073         GPL module.
13074         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13075         Move...
13076         * lib/filenamecat-lgpl.c: ...into new file.
13077         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13078         (gl_FILE_NAME_CONCAT): Use it.
13079         * MODULES.html.sh (File system functions): Mention new module.
13080
13081         argp: avoid memory leak
13082         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13083         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13084         base_name, since the latter malloc()s and can call exit().
13085         Leak introduced 2006-07-03.
13086
13087         dirname-lgpl: adjust clients that don't need full dirname
13088         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13089         * modules/filenamecat (Depends-on): Likewise.
13090         * modules/linkat (Depends-on): Likewise.
13091         * modules/mkancesdirs (Depends-on): Likewise.
13092         * modules/mkdir (Depends-on): Likewise.
13093         * modules/openat (Depends-on): Likewise.
13094         * modules/savewd (Depends-on): Likewise.
13095         * modules/rename (Depends-on): Likewise.
13096         (License): Relax license.
13097         * modules/mkdir-tests (Depends-on): Drop progname.
13098         (Makefile.am): Delete unneeded LDADD.
13099         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13100
13101         dirname: split into dirname-lgpl
13102         * modules/dirname-lgpl: New module.
13103         * modules/dirname (Files): Move library-safe files into
13104         dirname-lgpl.
13105         (Depends-on): Add dirname-lgpl.
13106         (configure.ac): Declare witness.
13107         * modules/double-slash-root (License): Relax license.
13108         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13109         module.
13110         * lib/dirname.c (dir_len, mdir_name): Move...
13111         * lib/dirname-lgpl.c: ...into new file.
13112         * lib/basename.c (last_component, base_len): Move...
13113         * lib/basename-lgpl.c: ...into new file.
13114         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13115         (gl_DIRNAME): Use it.
13116         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13117         Mention new module.
13118         * modules/dirname-tests (Depends-on): Add progname.
13119         * tests/test-dirname.c (program_name): Delete.
13120
13121         mkdir: make safe for libraries
13122         * modules/mkdir (Depends-on): Drop xalloc.
13123         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13124         exit.
13125
13126         tests: avoid some compiler warnings
13127         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13128         literals.
13129         * tests/test-memchr.c (main): Avoid type mismatch.
13130         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13131         * tests/test-base64.c (main): Likewise.
13132         * tests/test-getdelim.c (main): Likewise.
13133         * tests/test-gethostname.c (main): Likewise.
13134         * tests/test-getline.c (main): Likewise.
13135         * tests/test-netinet_in.c (main): Likewise.
13136         * tests/test-select.c (open_server_socket, main): Likewise.
13137         * tests/test-select-stdin.c (main): Likewise.
13138         * tests/test-sockets.c (main): Likewise.
13139         * tests/test-strsignal.c (main): Likewise.
13140         * tests/test-sys_select.c (main): Likewise.
13141         * tests/test-sys_socket.c (main): Likewise.
13142         * tests/test-u64.c (main): Likewise.
13143         * tests/test-xfprintf-posix.c (main): Likewise.
13144         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13145
13146         sockets: avoid compiler warning
13147         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13148
13149         maint: detect usage(1) and other suspicious exits
13150         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13151
13152 2009-10-29  Jim Meyering  <meyering@redhat.com>
13153
13154         timespec: long-to-int truncation could make timespec_cmp malfunction
13155         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13156         a multiple of 2^32 nanoseconds as no difference.
13157
13158 2009-10-28  Jim Meyering  <meyering@redhat.com>
13159
13160         fprintftime: wrap macro code argument in "do {...} while(0)"
13161         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13162         cpy macro must be a statement that can be followed by a semicolon.
13163         Now that the else clause contains a comment and is hence longer
13164         than one line, I require curly braces.  That in turn requires
13165         that we wrap this code block in the standard do...while(0).
13166
13167         fprintftime: remove stray semicolon from previous change
13168         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13169
13170         fprintftime: avoid a warning about ignored fwrite return value
13171         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13172         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13173         that is unsafe.
13174         * modules/fprintftime (Depends-on): Add ignore-value.
13175
13176         exclude: avoid an unwarranted warning
13177         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13178
13179 2009-10-27  Eric Blake  <ebb9@byu.net>
13180
13181         fseek: avoid compilation failure when fflush is replaced
13182         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13183         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13184         module is in use.
13185         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13186         module is not in use; since REPLACE_FSEEK worked otherwise.
13187         (GNULIB_FTELLO): Likewise for ftell.
13188         Reported by Ian Beckwith and others.
13189
13190 2009-10-27  Bruno Haible  <bruno@clisp.org>
13191
13192         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13193         Reported by Jim Meyering.
13194
13195 2009-10-27  Jim Meyering  <jim@meyering.net>
13196             Bruno Haible  <bruno@clisp.org>
13197
13198         Avoid warning despite dropping the return value of fwrite.
13199         * lib/unicodeio.c: Include ignore-value.h.
13200         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13201         * modules/unicodeio (Depends-on): Add ignore-value.
13202
13203 2009-10-26  Eric Blake  <ebb9@byu.net>
13204
13205         areadlinkat: fix fallback path
13206         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13207         pointer and zero.
13208
13209 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13210
13211         Use a better IO block size for modern systems
13212         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13213         * lib/md2.c: Likewise.
13214         * lib/md4.c: Likewise.
13215         * lib/md5.c: Likewise.
13216         * lib/sha1.c: Likewise.
13217         * lib/sha256.c: Likewise.
13218         * lib/sha512.c: Likewise.
13219
13220 2009-10-22  Eric Blake  <ebb9@byu.net>
13221
13222         tests: avoid several compiler warnings
13223         * tests/test-getcwd.c (main): Avoid buffer underflow.
13224         * tests/test-getdate.c (main): String literals are not safe with
13225         putenv, so use setenv.  Declare unused argument.
13226         * modules/getdate-tests (Depends-on): Add setenv.
13227         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13228         problems with string literals in char *.
13229         * tests/test-hash.c (main): Avoid shadowing declaration.
13230         (insert_new): Treat string literals as char const *.
13231         * tests/test-getopt.h (test_getopt): Likewise.
13232         (getopt_loop): Alter types to minimize casting elsewhere.
13233         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13234         (test_getopt_long_posix): Likewise.
13235         (do_getopt_long): Add wrapper to minimize casting.
13236         * tests/test-atexit.c (clear_temp_file): Use void.
13237         * tests/test-areadlink-with-size.c (main): Declare unused
13238         arguments.
13239         * tests/test-areadlink.c (main): Likewise.
13240         * tests/test-areadlinkat-with-size.c (main): Likewise.
13241         * tests/test-areadlinkat.c (main): Likewise.
13242         * tests/test-canonicalize-lgpl.c (main): Likewise.
13243         * tests/test-canonicalize.c (main): Likewise.
13244         * tests/test-dirent-safer.c (main): Likewise.
13245         * tests/test-dirname.c (main): Likewise.
13246         * tests/test-dup2.c (main): Likewise.
13247         * tests/test-fchdir.c (main): Likewise.
13248         * tests/test-fcntl-h.c (main): Likewise.
13249         * tests/test-fcntl-safer.c (main): Likewise.
13250         * tests/test-fdopendir.c (main): Likewise.
13251         * tests/test-fdutimensat.c (main): Likewise.
13252         * tests/test-fflush.c (main): Likewise.
13253         * tests/test-filenamecat.c (main): Likewise.
13254         * tests/test-filevercmp.c (main): Likewise.
13255         * tests/test-fopen-safer.c (main): Likewise.
13256         * tests/test-fopen.c (main): Likewise.
13257         * tests/test-fpending.c (main): Likewise.
13258         * tests/test-fpurge.c (main): Likewise.
13259         * tests/test-freading.c (main): Likewise.
13260         * tests/test-fstatat.c (main): Likewise.
13261         * tests/test-fsync.c (main): Likewise.
13262         * tests/test-futimens.c (main): Likewise.
13263         * tests/test-getndelim2.c (main): Likewise.
13264         * tests/test-gettimeofday.c (main): Likewise.
13265         * tests/test-getopt.c (main): Likewise.
13266         * tests/test-i-ring.c (main): Likewise.
13267         * tests/test-inttypes.c (main): Likewise.
13268         * tests/test-link.c (main): Likewise.
13269         * tests/test-lstat.c (main): Likewise.
13270         * tests/test-math.c (main): Likewise.
13271         * tests/test-md5.c (main): Likewise.
13272         * tests/test-memchr2.c (main): Likewise.
13273         * tests/test-memrchr.c (main): Likewise.
13274         * tests/test-mkdir.c (main): Likewise.
13275         * tests/test-mkdirat.c (main): Likewise.
13276         * tests/test-mkfifoat.c (main): Likewise.
13277         * tests/test-open.c (main): Likewise.
13278         * tests/test-openat-safer.c (main): Likewise.
13279         * tests/test-openat.c (main): Likewise.
13280         * tests/test-quotearg.c (main): Likewise.
13281         * tests/test-rawmemchr.c (main): Likewise.
13282         * tests/test-readlink.c (main): Likewise.
13283         * tests/test-remove.c (main): Likewise.
13284         * tests/test-rename.c (main): Likewise.
13285         * tests/test-renameat.c (main): Likewise.
13286         * tests/test-rmdir.c (main): Likewise.
13287         * tests/test-sha1.c (main): Likewise.
13288         * tests/test-signal.c (main): Likewise.
13289         * tests/test-sigaction.c (main): Likewise.
13290         * tests/test-stat.c (main): Likewise.
13291         * tests/test-stat-time.c (main): Likewise.
13292         * tests/test-stddef.c (main): Likewise.
13293         * tests/test-stdint.c (main): Likewise.
13294         * tests/test-stdio.c (main): Likewise.
13295         * tests/test-stdlib.c (main): Likewise.
13296         * tests/test-strchrnul.c (main): Likewise.
13297         * tests/test-strerror.c (main): Likewise.
13298         * tests/test-string.c (main): Likewise.
13299         * tests/test-strtod.c (main): Likewise.
13300         * tests/test-strverscmp.c (main): Likewise.
13301         * tests/test-symlink.c (main): Likewise.
13302         * tests/test-symlinkat.c (main): Likewise.
13303         * tests/test-sys_stat.c (main): Likewise.
13304         * tests/test-sys_time.c (main): Likewise.
13305         * tests/test-time.c (main): Likewise.
13306         * tests/test-unistd.c (main): Likewise.
13307         * tests/test-unlink.c (main): Likewise.
13308         * tests/test-unlinkat.c (main): Likewise.
13309         * tests/test-utimens.c (main): Likewise.
13310         * tests/test-utimensat.c (main): Likewise.
13311         * tests/test-version-etc.c (main): Likewise.
13312         * tests/test-wchar.c (main): Likewise.
13313         * tests/test-wctype.c (main): Likewise.
13314         * tests/test-xprintf-posix.c (main): Likewise.
13315         * tests/test-posixtm.c (main): Likewise.
13316         (STREQ): Delete unused macro.
13317         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13318         shadowed variables.
13319         * tests/test-memchr.c (main): Likewise.
13320
13321 2009-10-21  Eric Blake  <ebb9@byu.net>
13322
13323         areadlinkat: avoid failure on older glibc
13324         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13325         rather than mis-comparing 0 against FUNC_RESULT of char*.
13326
13327 2009-10-21  Bruno Haible  <bruno@clisp.org>
13328
13329         * modules/stpncpy (License): Relicense under LGPLv2+.
13330         Reported by David Lutterkort <lutter@redhat.com>.
13331
13332 2009-10-20  Eric Blake  <ebb9@byu.net>
13333
13334         utimensat: work around Solaris 9 bug
13335         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13336         has trailing slash bugs.
13337         * tests/test-lutimens.h (test_lutimens): Enhance test.
13338         * tests/test-utimens.h (test_utimens): Likewise.
13339         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13340         * doc/posix-functions/utimes.texi (utimes): Likewise.
13341         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13342         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13343         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13344         * doc/posix-functions/futimens.texi (futimens): Likewise.
13345
13346         fdutimensat: new module
13347         * modules/fdutimensat: New file.
13348         * lib/fdutimensat.c (fdutimensat): Likewise.
13349         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13350         * MODULES.html.sh (File system functions): Mention module.
13351         * modules/fdutimensat-tests: New test.
13352         * tests/test-fdutimensat.c: Likewise.
13353
13354         doc: regenerate INSTALL
13355         * doc/INSTALL: Reflect recent autoconf update.
13356         * doc/INSTALL.ISO: Likewise.
13357         * doc/INSTALL.UTF-8: Likewise.
13358
13359 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13360
13361         acl: warn if ACL support is not detected
13362         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13363
13364 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
13365
13366         * lib/nproc.h: Add extern "C" block for C++.
13367
13368 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
13369             Bruno Haible  <bruno@clisp.org>
13370
13371         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
13372         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
13373         * doc/posix-functions/isalpha.texi: Likewise.
13374         * doc/posix-functions/isblank.texi: Likewise.
13375         * doc/posix-functions/iscntrl.texi: Likewise.
13376         * doc/posix-functions/isdigit.texi: Likewise.
13377         * doc/posix-functions/isgraph.texi: Likewise.
13378         * doc/posix-functions/islower.texi: Likewise.
13379         * doc/posix-functions/isprint.texi: Likewise.
13380         * doc/posix-functions/ispunct.texi: Likewise.
13381         * doc/posix-functions/isspace.texi: Likewise.
13382         * doc/posix-functions/isupper.texi: Likewise.
13383         * doc/posix-functions/isxdigit.texi: Likewise.
13384
13385 2009-10-18  Bruno Haible  <bruno@clisp.org>
13386
13387         Tests for module 'isblank'.
13388         * modules/isblank-tests: New file.
13389         * tests/test-isblank.c: New file.
13390
13391         New module 'isblank'.
13392         * lib/isblank.c: New file.
13393         * m4/isblank.m4: New file.
13394         * modules/isblank: New file.
13395         * doc/posix-functions/isblank.texi: Mention the new module.
13396
13397 2009-10-18  Bruno Haible  <bruno@clisp.org>
13398
13399         New module 'ctype'.
13400         * lib/ctype.in.h: New file.
13401         * m4/ctype.m4: New file.
13402         * modules/ctype: New file.
13403         * doc/posix-headers/ctype.texi: Mention the new module.
13404
13405 2009-10-18  Jim Meyering  <meyering@redhat.com>
13406
13407         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
13408         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
13409         right after its initialization, rather than farther down.
13410         Keeping these in close proximity makes it easier to ensure
13411         that each such variable is initialized.  E.g.,
13412
13413             LIB_CLOCK_GETTIME=
13414             AC_SUBST([LIB_CLOCK_GETTIME])
13415
13416         This change also increments these serial numbers.
13417         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
13418         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13420
13421 2009-10-18  Bruno Haible  <bruno@clisp.org>
13422
13423         Don't let environment variables perturb build.
13424         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
13425         (gl_PREREQ_GETHRXTIME): ... not here.
13426
13427 2009-10-18  Bruno Haible  <bruno@clisp.org>
13428
13429         Avoid symlink attack in localcharset module.
13430         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
13431         (O_NOFOLLOW): Define fallback.
13432         (get_charset_aliases): Don't open the file if it is a symbolic link.
13433         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
13434         gl_FCNTL_H.
13435         (gl_FCNTL_H): Require it.
13436         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
13437         * modules/localcharset (Files): Add m4/fcntl_h.m4.
13438         Reported by Fergal Glynn <fglynn@veracode.com>.
13439
13440 2009-10-18  Bruno Haible  <bruno@clisp.org>
13441
13442         Implement nproc for mingw.
13443         * lib/nproc.c: Include <windows.h>
13444         (num_processors): On native Windows platforms, try GetSystemInfo.
13445
13446 2009-10-18  Bruno Haible  <bruno@clisp.org>
13447
13448         Implement nproc for IRIX.
13449         * lib/nproc.c: Include <sys/sysmp.h>.
13450         (num_processors): On IRIX systems, try sysmp.
13451         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
13452
13453 2009-10-18  Bruno Haible  <bruno@clisp.org>
13454
13455         Implement nproc for HP-UX.
13456         * lib/nproc.c: Include <sys/pstat.h>
13457         (num_processors): On HP-UX systems, try pstat_getdynamic.
13458         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
13459         pstat_getdynamic.
13460
13461 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
13462             Bruno Haible  <bruno@clisp.org>
13463
13464         Implement nproc for NetBSD, OpenBSD.
13465         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
13466         (ARRAY_SIZE): New macro.
13467         (num_processors): On BSD systems, try sysctl of HW_NCPU.
13468         * m4/nproc.m4: New file.
13469         * modules/nproc (Files): Add m4/nproc.m4.
13470         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
13471         (Makefile.am): Instead, augment lib_SOURCES.
13472
13473 2009-10-18  Bruno Haible  <bruno@clisp.org>
13474
13475         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
13476         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
13477         sys/param.h.
13478
13479 2009-10-16  Eric Blake  <ebb9@byu.net>
13480
13481         utimensat: new module
13482         * modules/utimensat: New file.
13483         * lib/utimensat.c (utimensat): Likewise.
13484         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13485         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
13486         so we can work around Linux bugs.
13487         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13488         * modules/sys_stat (Makefile.am): Substitute them.
13489         * lib/sys_stat.in.h (utimensat): Declare it.
13490         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13491         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13492         * modules/utimensat-tests: New test.
13493         * tests/test-utimensat.c: Likewise.
13494
13495         utimens: let lutimens work on non-symlinks
13496         * lib/utimens.c (lutimens): Fall back to utimens rather than
13497         failing with ENOSYS, when file is not a symlink.
13498         (utimens): Reduce redirection.
13499         * tests/test-lutimens.h (test_lutimens): Update test to cover
13500         non-symlinks.
13501         * tests/test-utimens.h (test_utimens): Update test to cover
13502         symlinks.
13503         * tests/test-utimens.c (main): Update caller.
13504
13505         utimens: cache whether utimensat syscall works
13506         * lib/utimens.c (utimensat_works_really): New cache variable.
13507         (fdutimens, lutimens): Use it to avoid failing syscall.
13508
13509         test-stat-time, test-utimens: improve portability
13510         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
13511         ext4 on alpha, and for cygwin.
13512         * tests/test-utimens-common.h: New file.
13513         (nap): Factor delays into single function.
13514         * tests/test-lutimens.h (test_lutimens): Use new header.
13515         * tests/test-futimens.h (test_futimens): Likewise.
13516         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
13517         timestamps to occur from same machine, as was done previously for
13518         test_utimens.
13519         * modules/utimens-tests (Files): Ship new file.
13520         * modules/futimens-tests (Files): Likewise.
13521         Reported in part by Jim Meyering.
13522
13523         sys_stat: sort replacement declarations
13524         * lib/sys_stat.in.h: Sort declarations.
13525         * lib/futimens.c (futimens): Fix typo.
13526
13527 2009-10-15  Jim Meyering  <meyering@redhat.com>
13528
13529         don't let environment settings perturb build
13530         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
13531         could cause a configure-time and/or build-time malfunction.
13532         Typically, a configure-time function-in-library test is performed
13533         via code like this:
13534
13535           LIB_VAR=
13536           AC_SUBST([LIB_VAR])
13537           prefix_saved_LIBS=$LIBS
13538             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
13539                        [test "$ac_cv_search_FUNC" = "none required" ||
13540                         LIB_VAR=$ac_cv_search_FUNC])
13541           LIBS=$prefix_saved_LIBS
13542
13543         However, in each of the files affected by this change, the LIB_VAR=
13544         initialization was omitted.  Thus, when set in the environment, its
13545         value would propagate into generated Makefiles when FUNC is not found
13546         in LIB_NAME.
13547         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
13548         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13549         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13550
13551 2009-10-14  Eric Blake  <ebb9@byu.net>
13552
13553         fchdir: avoid infinite recursion in mingw
13554         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
13555         recursing.
13556
13557         test-stat-time: port to mingw
13558         * tests/test-stat-time.c (force_unlink): Return a value.
13559         (test_ctime) [W32]: Fix compilation error.
13560         (nap): Don't call usleep with too large an argument.  Use
13561         force_unlink.
13562         * doc/pastposix-functions/usleep.texi (usleep): Document the
13563         portability issue.
13564
13565 2009-10-13  Jim Meyering  <meyering@redhat.com>
13566
13567         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
13568         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
13569         * modules/pipe-filter-ii: Likewise.
13570         * modules/sys_socket-tests: Likewise.
13571         * modules/tsearch-tests: Likewise.
13572         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
13573         (check): Depend on it.
13574
13575 2009-10-12  Eric Blake  <ebb9@byu.net>
13576
13577         utimens-tests: port to NFS file systems
13578         * tests/test-utimens.h (test_utimens): Refactor utimecmp
13579         comparisons to avoid spurious failures from timestamp drift
13580         between NFS machines.
13581
13582 2009-10-12  Eric Blake  <ebb9@byu.net>
13583
13584         stat-time-tests: minor cleanups
13585         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
13586         * tests/test-stat-time.c (nap): Separate assignment from call.
13587         Suggested by Paolo Bonzini and Bruno Haible.
13588
13589         sys_stat: guarantee struct timespec
13590         * lib/sys_stat.in.h (includes): Always include <time.h>
13591         * modules/sys_stat (Depends-on): Add time.
13592         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
13593         mode_t permission values.
13594         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
13595         get at subsecond timestamps.
13596
13597 2009-10-10  Eric Blake  <ebb9@byu.net>
13598
13599         futimens: new module
13600         * modules/futimens: New file.
13601         * lib/futimens.c (futimens): Likewise.
13602         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
13603         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
13604         we can work around Linux bugs.
13605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13606         * modules/sys_stat (Makefile.am): Substitute them.
13607         * lib/sys_stat.in.h (futimens): Declare it.
13608         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13609         * doc/posix-functions/futimens.texi (futimens): Likewise.
13610         * modules/futimens-tests: New test.
13611         * tests/test-futimens.c: Likewise.
13612
13613         utimens: introduce fdutimens
13614         * lib/utimens.h (fdutimens): New prototype.
13615         * lib/utimens.c (gl_futimens): Move guts...
13616         (fdutimens): ...to new interface.
13617         * tests/test-utimens.c (do_fdutimens): Use it.
13618
13619         utimens: add UTIME_NOW and UTIME_OMIT support
13620         * lib/utimens.c (validate_timespec, update_timespec): New helper
13621         functions.
13622         (gl_futimens, lutimens): Use them.
13623         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
13624         stdbool, sys_stat.
13625         (Link): Mention resulting library dependency.
13626         * modules/utimecmp (Link): Likewise.
13627         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
13628         (Makefile.am): Pick up library dependency.
13629         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
13630         definition.
13631         * tests/test-sys_stat.c: Test the definitions.
13632         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
13633         * NEWS: Document library dependency.
13634
13635         utimecmp: support symlink timestamps
13636         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
13637         hashing when possible.  Use pathconf when available.
13638         (SYSCALL_RESOLUTION): Recognize tighter resolution.
13639         * modules/utimecmp (Depends-on): Add lstat.
13640
13641         utimens: add lutimens interface
13642         * lib/utimens.c (lutimens): New function.
13643         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
13644         * lib/utimens.h (lutimens): Declare new interface.
13645         * tests/test-utimens.c (main): Enhance test.
13646         * tests/test-lutimens.h (test_lutimens): New file.
13647         * modules/utimens-tests (Files): Distribute it.
13648         (Depends-on): Add symlink.
13649         (configure.ac): Check for usleep.
13650
13651         utimens: validate futimens usage
13652         * lib/utimens.c (gl_futimens): Require valid fd up front, using
13653         fewer syscalls on failure later on.  Avoid compiler warning on
13654         mingw.
13655         * modules/utimens (Depends-on): Add dup2.
13656
13657         utimens: add test
13658         * modules/utimens-tests: New test.
13659         * tests/test-utimens.h: New file.
13660         * tests/test-futimens.h: Likewise.
13661         * tests/test-utimens.c: Likewise.
13662
13663         doc: mention timestamp portability issues
13664         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
13665         instead.
13666         * doc/posix-functions/utime.texi (utime): Likewise.
13667         * doc/posix-functions/utimes.texi (utimes): Likewise.
13668         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
13669         instead.
13670         * doc/posix-functions/futimens.texi (futimens): Mention utimens
13671         module.
13672         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13673         Mention weakness with symlink timestamps.
13674         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
13675         to utimensat/futimens instead.
13676         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
13677
13678         test-dup2: enhance test
13679         * tests/test-dup2.c (main): Also check AT_FDCWD.
13680
13681         test-stat-time: avoid more spurious failures
13682         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
13683         xfs; and avoid race if the two timestamps cross quantization edge.
13684
13685         relocatable: prefer 'file system' over 'filesystem'
13686         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
13687         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
13688         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
13689         * doc/relocatable.texi (Enabling Relocatability): Likewise.
13690         * lib/relocatable.c (compute_curr_prefix): Likewise.
13691
13692 2009-10-10  Jim Meyering  <meyering@redhat.com>
13693
13694         stat-time-tests: check for the usleep function
13695         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
13696
13697 2009-10-10  Bruno Haible  <bruno@clisp.org>
13698
13699         * modules/xnanosleep: Put the Link section after the Include section.
13700
13701 2009-10-09  Eric Blake  <ebb9@byu.net>
13702
13703         dup2: work around FreeBSD 6.1 bug
13704         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
13705         * doc/posix-functions/dup2.texi (dup2): Document it.
13706         Reported by Nelson H. F. Beebe and Jim Meyering.
13707
13708         test-stat-time: port to buggy NFS clients
13709         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
13710         (test_ctime): Also skip test if mtime and ctime are skewed.
13711
13712         maint: prefer 'file system' over 'filesystem'
13713         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13714         * doc/posix-functions/lstat.texi (lstat): Likewise.
13715         * lib/file-has-acl.c (file_has_acl): Likewise.
13716         * lib/fwriteerror.c [TEST]: Likewise.
13717         * tests/test-areadlink.h (test_areadlink): Likewise.
13718         * tests/test-areadlinkat-with-size.c (main): Likewise.
13719         * tests/test-areadlinkat.c (main): Likewise.
13720         * tests/test-canonicalize-lgpl.c (main): Likewise.
13721         * tests/test-canonicalize.c (main): Likewise.
13722         * tests/test-fstatat.c (main): Likewise.
13723         * tests/test-linkat.c (main): Likewise.
13724         * tests/test-lstat.h (test_lstat_func): Likewise.
13725         * tests/test-mkdir.h (test_mkdir): Likewise.
13726         * tests/test-readlink.h (test_readlink): Likewise.
13727         * tests/test-remove.c (main): Likewise.
13728         * tests/test-rename.h (test_rename): Likewise.
13729         * tests/test-renameat.c (main): Likewise.
13730         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13731         * tests/test-symlink.h (test_symlink): Likewise.
13732         * tests/test-symlinkat.c (main): Likewise.
13733         * tests/test-unlink.h (test_unlink_func): Likewise.
13734         * tests/test-unlinkat.c (main): Likewise.
13735
13736         maint: make realtime library usage explicit
13737         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
13738         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
13739         * modules/settime (Link): Likewise.
13740         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
13741
13742         test-stat-time: speed up execution
13743         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
13744         warning on mingw.
13745         (nap): New helper function.
13746         (prepare_test): Use it to reduce sleep time.
13747         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
13748         execution.
13749         * modules/stat-time-tests (configure.ac): Check for usleep.
13750
13751 2009-10-09  Jim Meyering  <meyering@redhat.com>
13752
13753         selinux-h: always use getfilecon wrappers
13754         * lib/getfilecon.c: New file.
13755         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
13756         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
13757         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
13758         (fgetfilecon): Provide a stub.
13759         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
13760         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
13761         file unconditionally.
13762         When <selinux/selinux.h> is found, arrange to use wrappers.
13763         * modules/selinux-h (Files): Add getfilecon.c.
13764         (Makefile.am): Substitute include-next-related bits
13765         into the now-always-generated selinux/selinux.h file.
13766         * doc/glibc-functions/lgetfilecon.texi: New file.
13767         * doc/glibc-functions/fgetfilecon.texi: New file.
13768         * doc/glibc-functions/getfilecon.texi: New file.
13769         * doc/glibc-functions/getfilecon-desc.texi: New file.
13770         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
13771         which to pull in the new files.
13772         * MODULES.html.sh (Misc): Add selinux-h.
13773
13774 2009-10-08  Jim Meyering  <meyering@redhat.com>
13775
13776         unistd: fix comment typo
13777         * lib/unistd.in.h (euidaccess): Fix a comment typo.
13778
13779 2009-10-08  Eric Blake  <ebb9@byu.net>
13780
13781         areadlink: use SIZE_MAX consistently
13782         * modules/areadlink (Depends-on): Add stdint.
13783         * modules/areadlink-with-size (Depends-on): Likewise.
13784         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
13785         gives NULL; drop sys/types, since unistd gives size_t; and add
13786         stdint for SIZE_MAX.
13787         (SIZE_MAX): Rely on headers.
13788         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
13789         and add stdint.
13790         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
13791         (SIZE_MAX): Likewise.
13792         (INITIAL_BUF_SIZE): Turn into enum.
13793         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
13794
13795 2009-10-08  Jim Meyering  <meyering@redhat.com>
13796
13797         areadlinkat: avoid compilation failure
13798         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
13799         Fix typo in comment.
13800
13801 2009-10-07  Eric Blake  <ebb9@byu.net>
13802
13803         areadlinkat-with-size: new module
13804         * modules/areadlinkat-with-size: New module.
13805         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
13806         * lib/areadlink.h (areadlinkat): Declare it.
13807         * MODULES.html.sh (File system functions): Mention it.
13808         * modules/areadlinkat-with-size-tests: New test.
13809         * tests/test-areadlinkat-with-size.c: New file.
13810
13811         xreadlinkat: new module
13812         * modules/xreadlinkat: New module.
13813         * lib/xreadlinkat.c (xreadlinkat): New file.
13814         * lib/xreadlink.h (xreadlinkat): Declare it.
13815         * MODULES.html.sh (File system functions): Mention it.
13816
13817         areadlinkat: new module
13818         * lib/at-func.c (FUNC_FAIL): New define.
13819         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
13820         * modules/areadlinkat: New module.
13821         * lib/linkat.c (areadlinkat): Move...
13822         * lib/areadlinkat.c (areadlinkat): ...to new file.
13823         * lib/areadlink.h (areadlinkat): Declare it.
13824         * modules/linkat (Depends-on): Add areadlinkat.
13825         * MODULES.html.sh (File system functions): Mention it.
13826         * modules/areadlinkat-tests: New test.
13827         * tests/test-areadlinkat.c: New file.
13828
13829         areadlink, areadlink-with-size: add tests
13830         * modules/areadlink-tests: New test.
13831         * modules/areadlink-with-size-tests: Likewise.
13832         * tests/test-areadlink.h: New file.
13833         * tests/test-areadlink.c: Likewise.
13834         * tests/test-areadlink-with-size.c: Likewise.
13835
13836         maint: minor cleanups
13837         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
13838         _UNUSED_PARAMETER_ instead.
13839         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
13840         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
13841         * modules/linkat-tests (Files): Distribute test-link.h.
13842
13843         openat, utimens: whitespace cleanup
13844         * lib/openat.c: Prefer space throughout, rather than mix of 8
13845         spaces vs. tabs.
13846         * lib/at-func.c: Likewise.
13847         * lib/utimens.c: Likewise.
13848
13849         openat: avoid using wrong fd
13850         * lib/openat.c (openat_permissive): Reject user's fd if saving the
13851         working directory chooses same fd.
13852         * lib/at-func.c (AT_FUNC_NAME): Likewise.
13853
13854         mkdir, mkdirat: fix cygwin 1.5.x bug
13855         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
13856         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
13857         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
13858         bug.
13859         (gl_PREREQ_MKDIR): Delete unused macro.
13860         * modules/mkdir (Files): Track file rename.
13861         (configure.ac): Update macro name.
13862         * modules/openat (Depends-on): Add mkdir.
13863         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
13864
13865         mkdir, mkdirat: add tests
13866         * modules/mkdir-tests: New test.
13867         * tests/test-mkdir.h: New file.
13868         * tests/test-mkdir.c: Likewise.
13869         * tests/test-mkdirat.c: Likewise.
13870         * modules/openat-tests (Files): Add new files.
13871         (Makefile.am): Run new test.
13872
13873 2009-10-06  Eric Blake  <ebb9@byu.net>
13874
13875         doc: tweak *at function documentation
13876         * doc/posix-functions/faccessat.texi (faccessat): Mention
13877         known issue with replacement.
13878         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
13879         * doc/posix-functions/linkat.texi (linkat): Likewise.
13880         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13881         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13882         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13883         * doc/posix-functions/renameat.texi (renameat): Likewise.
13884         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13885
13886         openat: fix GNU/Hurd bug in unlinkat
13887         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
13888         broken.
13889         * doc/posix-functions/unlink.texi (unlink): Document this.
13890         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
13891
13892         fdopendir: fix GNU/Hurd bug
13893         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
13894         allowing non-directory fds.
13895         * lib/fdopendir.c (rpl_fdopendir): Work around it.
13896         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13897         * modules/dirent (Makefile.am): Substitute it.
13898         * lib/dirent.in.h (fdopendir): Declare replacement.
13899         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
13900         * tests/test-fdopendir.c (main): Test something other than
13901         /dev/null, since on Hurd that behaves like a directory.
13902
13903         test-symlink: port to GNU/Hurd
13904         * tests/test-symlink.h (test_symlink): Relax expected errno.
13905
13906         doc: tweak more cygwin information
13907         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
13908         now compatible with glibc.
13909         * doc/posix-functions/getopt.texi (getopt): Likewise.
13910
13911         getopt-gnu: add another test
13912         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
13913         guarantee behavior relied on by m4.
13914         * tests/test-getopt.c (main): Use it.
13915         * modules/getopt-posix-tests (Depends-on): Add setenv.
13916         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
13917
13918         getopt: fix compilation on darwin
13919         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13920         include.
13921         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13922         Reported by Ludovic Courtès.
13923
13924 2009-10-06  Bruno Haible  <bruno@clisp.org>
13925
13926         * modules/size_max (Description): Discourage its use.
13927         Reported by Simon Josefsson.
13928
13929 2009-10-06  Jim Meyering  <meyering@redhat.com>
13930
13931         linkat: avoid compilation failure
13932         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13933
13934 2009-10-05  Eric Blake  <ebb9@byu.net>
13935
13936         linkat: support Linux 2.6.17
13937         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13938         linkat on Linux, but allow cache variable override.
13939         * lib/linkat.c (rpl_linkat): Define override.
13940         * modules/linkat (Depends-on): Add symlinkat.
13941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13942         * modules/unistd (Makefile.am): Substitute it.
13943         * lib/unistd.in.h (linkat): Declare replacement.
13944         Reported by Pádraig Brady.
13945
13946         quotearg: port test to systems with C.UTF-8 locale
13947         * tests/test-quotearg.c (struct result_strings): Add another
13948         member, differentiating between C.ASCII and C.UTF-8 handling.
13949         (compare_strings): Add parameter.
13950         (main): Adjust all callers.
13951
13952         getopt: avoid clash with FreeBSD _getopt_internal
13953         * lib/getopt.in.h (_getopt_internal): Override the name.
13954         * lib/getopt_int.h (includes): Pick up any overrides.
13955         Reported by Reuben Thomas.
13956
13957         hash: allow C89 compilation
13958         * lib/hash.c (check_tuning): Move declaration before statement.
13959         Reported by Reuben Thomas.
13960
13961 2009-10-05  Karl Berry  <karl@gnu.org>
13962
13963         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
13964
13965 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
13966             Bruno Haible  <bruno@clisp.org>
13967
13968         * lib/uname.c (uname): Use a table-driven algorithm to compute
13969         Windows NT versions.
13970
13971 2009-10-04  Bruno Haible  <bruno@clisp.org>
13972
13973         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
13974         program_invocation_short_name.
13975         * modules/progname (configure.ac): Test for presence of
13976         program_invocation_short_name.
13977         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13978
13979 2009-10-04  Bruno Haible  <bruno@clisp.org>
13980
13981         * lib/progname.c (set_program_name): Fix comment.
13982         Reported by Jim Meyering.
13983
13984 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13985             Bruno Haible  <bruno@clisp.org>
13986
13987         * lib/uname.c: Include <string.h>.
13988         (uname): Do only one call to GetVersionEx in the common case.
13989
13990 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13991             Bruno Haible  <bruno@clisp.org>
13992
13993         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
13994         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
13995         (uname): Add support for Windows CE and various non-x86 CPU types.
13996
13997 2009-10-03  Bruno Haible  <bruno@clisp.org>
13998
13999         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14000         invocation to tests/configure.ac.
14001         Reported by Ian Beckwith <ianb@erislabs.net>.
14002
14003 2009-10-02  Eric Blake  <ebb9@byu.net>
14004
14005         fchdir: avoid compiler warning
14006         * lib/fchdir.c (canonicalize_file_name)
14007         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14008
14009         test-open: support mingw errno values
14010         * tests/test-open.h (test_open): Relax test.
14011         * tests/test-fopen.h (test_fopen): Likewise.
14012         * tests/test-openat-safer.c (main): Likewise.
14013
14014         open: fix opening directory on mingw
14015         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14016
14017         test-open: on GNU/Hurd, /dev/null is a directory
14018         * tests/test-fopen.h (main): Rename...
14019         (test_fopen): ...to this.  Use a guaranteed non-directory when
14020         confirming open behavior on trailing slash.
14021         * tests/test-openat-safer.c (main): Likewise.
14022         * tests/test-open.h (main): Likewise....
14023         (test_open): ...to this.
14024         * tests/test-fopen.c (main): Adjust caller.
14025         * tests/test-fopen-safer.c (main): Likewise.
14026         * tests/test-open.c (main): Likewise.
14027         * tests/test-fcntl-safer.c (main): Likewise.
14028         Reported by Samuel Thibault.
14029
14030         rename, fchdir: don't ignore chdir failure
14031         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14032         * lib/rename.c (rpl_rename) [W32]: Likewise.
14033         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14034         an empty destination directory if source cannot be renamed,
14035         although there is still possibility for failure.
14036         * doc/posix-functions/rename.texi (rename): Document the race.
14037         Reported by Jim Meyering.
14038
14039         maint: cleanup whitespace in recent commits
14040         * lib/rename.c (rpl_rename): Remove tabs.
14041         * tests/test-link.h (test_link): Likewise.
14042         * lib/fchdir.c (get_name): Likewise.
14043         Reported by Jim Meyering.
14044
14045 2009-10-02  Ben Pfaff  <blp@gnu.org>
14046
14047         relocatable-prog-wrapper: Add missing dependency on
14048         double-slash-root.
14049         * modules/relocatable-prog-wrapper: Add dependency.
14050         Reported by Ian Beckwith <ianb@erislabs.net>.
14051
14052 2009-10-02  Eric Blake  <ebb9@byu.net>
14053
14054         renameat: fix Solaris bugs
14055         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14056         needed fixing.
14057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14058         * modules/stdio (Makefile.am): Substitute it.
14059         * lib/stdio.in.h (renameat): Declare replacement.
14060         * lib/renameat.c (rpl_renameat): Implement fix.
14061
14062         renameat: new module
14063         * modules/renameat: New file.
14064         * lib/renameat.c (renameat): Likewise.
14065         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14067         * modules/stdio (Makefile.am): Substitute them.
14068         * lib/stdio.in.h (renameat): Declare it.
14069         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14070         * doc/posix-functions/renameat.texi (renameat): Likewise.
14071         * modules/renameat-tests: New test.
14072         * tests/test-renameat.c: Likewise.
14073
14074         rename: fix mingw bugs
14075         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14076         directory overwrite bugs.
14077
14078         rename: fix another cygwin 1.5 bug
14079         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14080         checks.
14081         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14082         unnecessary cygwin workarounds.  Also work around bug with moving
14083         full directory onto an empty one.
14084         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14085
14086         rename-dest-slash: merge into rename module
14087         * modules/rename-dest-slash (Status): Mark obsolete.
14088         (Depends-on): Add rename.
14089         (Files): Let rename do it all.
14090         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14091         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14092         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14093         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14094         * lib/rename.c (rpl_rename): Update comments.
14095
14096         rename: fix cygwin 1.5.x bugs
14097         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14098         * lib/rename.c (rpl_rename): Work around them.
14099         * modules/rename (Depends-on): Add same-inode.
14100
14101         rename: fix Solaris 10 bug
14102         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14103         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14104         was the only bug.
14105
14106         rename: fix Solaris 9 bug
14107         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14108         on non-directory.  Avoid calling exit.
14109         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14110         strdup.
14111         * modules/rename-tests (Depends-on): Drop lstat.
14112         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14113         (gl_PREREQ_RENAME): Delete unused macro.
14114
14115         rename-dest-slash: fix NetBSD bug
14116         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14117         links.
14118         * modules/rename-dest-slash (Depends-on): Add same-inode.
14119
14120         rename-tests: new test, exposes several platform bugs
14121         * modules/rename-tests: New file.
14122         * tests/test-rename.h: Likewise.
14123         * tests/test-rename.c: Likewise.
14124         * doc/posix-functions/rename.texi (rename): Improve documentation,
14125         including bugs that will eventually be fixed in gnulib.
14126
14127 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14128
14129         * lib/uname.c: Include <stdlib.h>
14130         (uname): Assume version info is available.
14131
14132 2009-10-02  Jim Meyering  <meyering@redhat.com>
14133
14134         gnu-web-doc-update: correct --help output
14135         * build-aux/gnu-web-doc-update: Make --help output relevant.
14136
14137         gnu-web-doc-update: add standard options
14138         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14139
14140         gnu-web-doc-update: New module.
14141         Use this script to automatically update the on-line web documentation
14142         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14143         * modules/gnu-web-doc-update: New file, from coreutils.
14144         * build-aux/gnu-web-doc-update: New script.
14145
14146 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14147
14148         link: LoadLibrary is not needed.
14149         * lib/link.c: Use GetModuleHandle.
14150
14151 2009-10-01  Eric Blake  <ebb9@byu.net>
14152
14153         getopt: bump serial number
14154         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14155         change.
14156
14157         tests: tighten link, rmdir, and remove tests
14158         * tests/test-link.h (includes): No need to use <config.h> here.
14159         Clean up if directory hard link was created, otherwise test for
14160         trailing '.'.
14161         * tests/test-linkat.c (main): Simplify.
14162         * tests/test-remove.c (main): Enhance test for trailing '.'.
14163         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14164
14165 2009-10-01  Jim Meyering  <meyering@redhat.com>
14166
14167         maint.mk: requiring "make major" was annoying, for a "minor" release.
14168         What is intended is "stable", to contrast with alpha and beta,
14169         so require "make stable", not "make major".
14170         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14171         (get_tool_versions): Likewise.
14172         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14173
14174 2009-09-30  Ben Pfaff  <blp@gnu.org>
14175
14176         Fix broken build of replacement for Windows tmpfile().
14177         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14178         flags argument added along with the 'mkostemp' module.
14179
14180 2009-09-28  Bruno Haible  <bruno@clisp.org>
14181
14182         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14183         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14184         to 'remove_elt'.
14185         (gl_list_remove): Update.
14186         * lib/gl_list.c (gl_list_remove): Update.
14187         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14188         to 'remove_elt'.
14189         (gl_oset_remove): Update.
14190         * lib/gl_list.c (gl_oset_remove): Update.
14191         Reported by Eric Blake.
14192
14193 2009-09-28  Eric Blake  <ebb9@byu.net>
14194
14195         doc: mention yet more cygwin 1.7 status
14196         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14197         cygwin.
14198         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14199         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14200
14201         argp: fix test failure
14202         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14203         that are not upper-case.  Pass correct range to tolower.
14204
14205 2009-09-27  Jim Meyering  <meyering@redhat.com>
14206
14207         test-yesno: work around sparc-dash here-document infelicity
14208         Without this change, the literal \177 byte in a here document
14209         would make dash 0.5.5.1-3 access uninitialized memory.
14210         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14211         Instead, use a marker, "@", and filter through tr to create the desired
14212         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14213
14214 2009-09-27  Bruno Haible  <bruno@clisp.org>
14215
14216         Disable untested support for new flavours of ACLs on AIX.
14217         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14218         progress.
14219         * lib/set-mode-acl.c (qset_acl): Likewise.
14220
14221 2008-12-07  Bruno Haible  <bruno@clisp.org>
14222
14223         Add support for new flavours of ACLs on AIX. (Untested.)
14224         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14225         (file_has_acl): Add support for newer AIX.
14226         * lib/set-mode-acl.c (qset_acl): Likewise.
14227         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14228         Rainer Tammer <tammer@tammer.net>.
14229
14230 2009-09-26  Eric Blake  <ebb9@byu.net>
14231
14232         argp: fix compilation of getopt
14233         * lib/getopt.in.h (includes): Use different guard than glibc.
14234         Reported by Sergey Poznyakoff.
14235
14236         doc: mention more cygwin 1.7 status
14237         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14238         bug.
14239         * doc/posix-functions/execl.texi (execl): Likewise.
14240         * doc/posix-functions/execle.texi (execle): Likewise.
14241         * doc/posix-functions/execlp.texi (execlp): Likewise.
14242         * doc/posix-functions/execv.texi (execv): Likewise.
14243         * doc/posix-functions/execve.texi (execve): Likewise.
14244         * doc/posix-functions/execvp.texi (execvp): Likewise.
14245         * doc/glibc-functions/canonicalize_file_name.texi
14246         (canonicalize_file_name): Cygwin 1.7 now provides this.
14247         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14248         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14249         on AT_SYMLINK_NOFOLLOW.
14250
14251 2009-09-24  Eric Blake  <ebb9@byu.net>
14252
14253         test-linkat: make test more robust
14254         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14255
14256         getopt: fix inclusion guards for cygwin
14257         * modules/getopt-posix (Depends-on): Add include-next.
14258         (Makefile.am): Substitute more items in replacement header.
14259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14260         <getopt.h>.
14261         * lib/getopt.in.h (includes): Use split inclusion guard, and
14262         prefer <getopt.h> over include <unistd.h> when one is present.
14263         (option): Also override name of 'struct option'.
14264
14265         same-inode: revert prior change; it is not yet ready
14266         * NEWS: Undo mention of this change.
14267         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14268         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14269         * lib/cycle-check.c (cycle_check): Likewise.
14270         * lib/same.c (same_name): Likewise.
14271         * lib/at-func2.c (at_func2): Likewise.
14272
14273 2009-09-23  Eric Blake  <ebb9@byu.net>
14274
14275         linkat: new module
14276         * modules/linkat: New file.
14277         * lib/at-func2.c (at_func2): Likewise.
14278         * lib/linkat.c (linkat): Likewise.
14279         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14280         * lib/openat-priv.h (at_func2): Add declaration.
14281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14282         * modules/unistd (Makefile.am): Substitute them.
14283         * lib/unistd.in.h (linkat): Declare it.
14284         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14285         * doc/posix-functions/linkat.texi (linkat): Likewise.
14286         * doc/posix-functions/link.texi (link): Tweak wording.
14287         * tests/test-link.c (main): Move guts...
14288         * tests/test-link.h (test_link): ...into new file.
14289         * modules/linkat-tests: New test.
14290         * tests/test-linkat.c: Likewise.
14291         * modules/link-tests (Files): Ship new file.
14292         (Depends-on): Add stdbool.
14293
14294         dirname: add library-safe mdir_name
14295         * lib/dirname.h (mdir_name): New prototype.
14296         * lib/dirname.c (dir_name): Move guts...
14297         (mdir_name): ...to new function that avoids xalloc_die.
14298
14299         fchdir: another mingw fix
14300         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14301         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14302         on mingw (where it has not yet been ported), and make it optional
14303         elsewhere.
14304         (_gl_register_fd): Use it.
14305
14306         same-inode: make SAME_INODE tri-state, to port to mingw
14307         * NEWS: Mention this change.
14308         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14309         st_ino always being 0.
14310         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14311         * lib/cycle-check.c (cycle_check): Likewise.
14312         * lib/same.c (same_name): Likewise.
14313
14314         lstat: avoid mingw compilation error
14315         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14316         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14317         lstat ourselves.
14318         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14319         was adequate.
14320         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14321         the checks for lstat.
14322         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14323
14324         link: fix test failure on Solaris 9
14325         * lib/link.c (rpl_link): Don't assume link will catch bogus
14326         trailing slash on source.
14327
14328         test-symlinkat: enhance test
14329         * tests/test-readlink.c (main): Move guts...
14330         * tests/test-readlink.h (test_readlink): ...into new file.
14331         * tests/test-symlink.c (main): Move guts...
14332         * tests/test-symlink.h (test_symlink): ...into new file.
14333         * tests/test-symlinkat.c (main): Use new files for further
14334         coverage.
14335         (do_symlink, do_readlink): New helper functions.
14336         * modules/symlink-tests (Files): Ship new file.
14337         (Depends-on): Add stdbool.
14338         * modules/readlink-tests (Files): Ship new file.
14339         (Depends-on): Add stdbool.
14340         * modules/symlinkat-tests (Files): Use new files.
14341
14342 2009-09-23  Eric Blake  <ebb9@byu.net>
14343
14344         readlink: document portability issue with symlink length
14345         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14346         systems have bogus st_size on symlinks, and mention the
14347         areadlink-with-size module.
14348         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14349         * doc/posix-functions/readlink.texi (readlink): Mention the
14350         areadlink module, and ERANGE failure.
14351         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14352         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14353
14354         readlink: fix Solaris 9 bug with trailing slash
14355         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14356         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14357         * doc/posix-functions/readlink.texi (readlink): Document this.
14358         * modules/readlink-tests: New test.
14359         * tests/test-readlink.c: Likewise.
14360
14361         readlink: fix cygwin 1.5.x bug with return type
14362         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14363         * lib/unistd.in.h (readlink): Use ssize_t.
14364         * lib/readlink.c (readlink): Likewise.
14365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14366         * modules/unistd (Makefile.am): Substitute it.
14367         * lib/unistd.in.h (readlink): Declare replacement.
14368         * doc/posix-functions/readlink.texi (readlink): Document this.
14369
14370         symlink: use throughout gnulib
14371         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
14372         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
14373         symlink is not used.
14374         * modules/symlinkat (Depends-on): Add symlink.
14375         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14376         * modules/canonicalize-tests (Depends-on): Likewise.
14377         * modules/lstat-tests (Depends-on): Likewise.
14378         * modules/openat-tests (Depends-on): Likewise.
14379         * modules/remove-tests (Depends-on): Likewise.
14380         * modules/rmdir-tests (Depends-on): Likewise.
14381         * modules/unlink-tests (Depends-on): Likewise.
14382         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
14383         * tests/test-canonicalize.c (symlink): Likewise.
14384         * tests/test-fstatat.c (symlink): Likewise.
14385         * tests/test-lstat.c (symlink): Likewise.
14386         * tests/test-remove.c (symlink): Likewise.
14387         * tests/test-rmdir.c (symlink): Likewise.
14388         * tests/test-unlink.c (symlink): Likewise.
14389         * tests/test-unlinkat.c (symlink): Likewise.
14390
14391         symlink: new module, for Solaris 9 bug
14392         * modules/symlink: New file.
14393         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14394         * lib/symlink.c: Likewise.
14395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14396         * modules/unistd (Makefile.am): Substitute them.
14397         * lib/unistd.in.h (symlink): Declare replacement.
14398         * MODULES.html.sh (File system functions): Mention it.
14399         * doc/posix-functions/symlink.texi (symlink): Likewise.
14400         * modules/symlink-tests: New test.
14401         * tests/test-symlink.c: Likewise.
14402
14403 2009-09-23  Bruno Haible  <bruno@clisp.org>
14404
14405         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
14406         when needed.
14407         Test case: gnulib-tool --import --with-tests atexit inttypes.
14408         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
14409
14410 2009-09-23  Bruno Haible  <bruno@clisp.org>
14411
14412         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
14413         subcommand, not in a subshell.
14414
14415 2009-09-22  Eric Blake  <ebb9@byu.net>
14416
14417         unistd: sort replacement declarations
14418         * lib/unistd.in.h: Sort declarations.
14419
14420         open, openat: minor optimization
14421         * lib/open.c (open): If open succeeded, len is non-zero.
14422         * lib/openat.c (rpl_openat): Likewise.
14423
14424         link-follow: ensure correct result
14425         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
14426         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
14427         distinguish between possible failures.
14428
14429 2009-09-21  Eric Blake  <ebb9@byu.net>
14430
14431         fts: avoid compiler warning
14432         * lib/fts.c (dirent_inode_sort_may_be_useful)
14433         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
14434
14435 2009-09-19  Bruno Haible  <bruno@clisp.org>
14436
14437         * lib/progreloc.c (canonicalize_file_name): New declaration.
14438
14439 2009-09-19  Eric Blake  <ebb9@byu.net>
14440
14441         link: fix quoting
14442         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
14443
14444         openat: fix openat bugs on Solaris 9
14445         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
14446         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
14447         * modules/openat (Depends-on): Add open.
14448         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
14449         * modules/fcntl-h (Makefile.am): Substitute it.
14450         * lib/fcntl.in.h (openat): Declare replacement.
14451         * doc/posix-functions/openat.texi (openat): Document this.
14452
14453         openat: move fstatat and unlinkat into correct files
14454         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
14455         compiled.
14456         * lib/openat.c (fstatat, unlinkat): Move...
14457         * lib/fstatat.c (fstatat): ...into correct files.
14458         * lib/unlinkat.c (unlinkat): Likewise.
14459
14460         openat: fix unlinkat bugs on Solaris 9
14461         * lib/unlinkat.c (unlinkat): New file.
14462         * modules/openat (Depends-on): Add unlink.
14463         (Files): Distribute it.
14464         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
14465         trailing slash behavior is broken.
14466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14467         * modules/unistd (Makefile.am): Substitute it.
14468         * lib/unistd.in.h (unlinkat): Declare replacement.
14469         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
14470
14471         openat: fix fstatat bugs on Solaris 9
14472         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
14473         stat.
14474         * doc/posix-functions/fstatat.texi (fstatat): Document this.
14475
14476         test-unlinkat: enhance test, to expose Solaris 9 bug
14477         * tests/test-unlink.c (main): Factor guts...
14478         * tests/test-unlink.h (test_rmdir_func): ...into new file.
14479         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
14480         * tests/test-rmdir.c (main): Adjust caller.
14481         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
14482         (unlinker): New helper function.
14483         (rmdirat): Enhance check.
14484         * modules/rmdir-tests (Depends-on): Add stdbool.
14485         * modules/unlink-tests (Depends-on): Likewise.
14486         (Files): Add test-unlink.h.
14487         * modules/openat-tests (Files): Likewise.
14488         (Depends-on): Add unlinkdir.
14489
14490         test-fstatat: new test, to expose Solaris 9 bugs
14491         * tests/test-stat.c (main): Factor guts...
14492         * tests/test-stat.h (test_stat_func): ...into new file.
14493         * tests/test-lstat.c (main): Factor guts...
14494         * tests/test-lstat.h (test_lstat_func): ...into new file.
14495         * tests/test-fstatat.c: New file.
14496         * modules/stat-tests (Files): Add test-stat.h.
14497         * modules/lstat-tests (Files): Add test-lstat.h.
14498         (Depends-on): Add stdbool.
14499         * modules/openat-tests (Depends-on): Add pathmax.
14500         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
14501         (Makefile.am): Run new test.
14502
14503         remove: new module, for mingw and Solaris 9 bugs
14504         * modules/remove: New file.
14505         * lib/remove.c: Likewise.
14506         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
14507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14508         * modules/stdio (Makefile.am): Use them.
14509         * lib/stdio.in.h (remove): Declare replacement.
14510         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14511         * doc/posix-functions/remove.texi (remove): Likewise.
14512         * modules/remove-tests: New test.
14513         * tests/test-remove.c: Likewise.
14514
14515         unlink: new module, for Solaris 9 bug
14516         * modules/unlink: New file.
14517         * lib/unlink.c: Likewise.
14518         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14520         * modules/unistd (Makefile.am): Use them.
14521         * lib/unistd.in.h (stat): Declare replacement.
14522         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14523         * doc/posix-functions/unlink.texi (unlink): Likewise.
14524         * modules/unlink-tests: New test.
14525         * tests/test-unlink.c: Likewise.
14526
14527         lstat: fix Solaris 9 bug
14528         * lib/lstat.c (lstat): Also check for trailing slash on
14529         non-symlink, non-directories.  Use stat module to simplify logic.
14530         * doc/posix-functions/lstat.texi (lstat): Document it.
14531         * modules/lstat-tests (Depends-on): Add errno, same-inode.
14532         (configure.ac): Check for symlink.
14533         * tests/test-lstat.c (main): Add more tests.
14534
14535         stat: add as dependency to other modules
14536         * modules/chown (Depends-on): Add stat.
14537         * modules/euidaccess (Depends-on): Likewise.
14538         * modules/fchdir (Depends-on): Likewise.
14539         * modules/isdir (Depends-on): Likewise.
14540         * modules/link (Depends-on): Likewise.
14541         * modules/lstat (Depends-on): Likewise.
14542         * modules/mkdir-p (Depends-on): Likewise.
14543         * modules/modechange (Depends-on): Likewise.
14544         * modules/open (Depends-on): Likewise.
14545         * modules/readlink (Depends-on): Likewise.
14546         * modules/same (Depends-on): Likewise.
14547
14548         stat: fix Solaris 9 bug
14549         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
14550         slash.
14551         * lib/stat.c (rpl_stat): Work around it.
14552         * doc/posix-functions/stat.texi (stat): Update documentation.
14553
14554         stat: new module, for mingw bug
14555         * modules/stat: New file.
14556         * lib/stat.c: Likewise.
14557         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14559         * modules/sys_stat (Makefile.am): Use them.
14560         * lib/sys_stat.in.h (stat): Declare replacement.
14561         * lib/openat.c (fstatat): Deal with lstat and stat being function
14562         macros.
14563         * modules/openat (Depends-on): Add inline.
14564         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14565         * doc/posix-functions/stat.texi (stat): Likewise.
14566         * modules/stat-tests: New test.
14567         * tests/test-stat.c: Likewise.
14568
14569 2009-09-19  Jim Meyering  <meyering@redhat.com>
14570
14571         syntax-check: detect unnecessary inclusion of canonicalize.h
14572         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
14573
14574 2009-09-19  Eric Blake  <ebb9@byu.net>
14575
14576         canonicalize-lgpl: adjust clients to use correct header
14577         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14578         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
14579         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
14580         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
14581         * lib/progreloc.c (includes): Likewise.
14582
14583 2009-09-19  Jim Meyering  <meyering@redhat.com>
14584
14585         test-posixtm.c: correct a comment
14586         * tests/test-posixtm.c: Correct first-line comment.
14587         Spotted by Eric Blake.
14588
14589 2009-09-16  Jim Meyering  <meyering@redhat.com>
14590
14591         posixtm-tests: make T const-correct; add a test case
14592         * tests/test-posixtm.c (T): Declare const.
14593         Add a test for -(2^31+1).
14594         Remove useless can-succeed-only-in-2002 test.
14595
14596         posixtm-tests: adjust the sole failing test
14597         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
14598         expected output matches what mktime now produces.  Cross-checked via
14599         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
14600
14601         posixtm: move #ifdef'd tests into a new module
14602         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
14603         * tests/test-posixtm.c: ... this new file.
14604         * modules/posixtm-tests: New module.
14605
14606 2009-09-19  Eric Blake  <ebb9@byu.net>
14607
14608         openat: simplify use of at-func.c
14609         * lib/at-func.c (includes): Include prerequisites here, to
14610         simplify requirements on client files.
14611         * lib/openat-priv.h: Add double-inclusion guard.
14612         * lib/faccessat.c (includes): Simplify.
14613         * lib/fchmodat.c (includes): Likewise.
14614         * lib/fchownat.c (includes): Likewise.
14615         * lib/mkdirat.c (includes): Likewise.
14616         * lib/mkfifoat.c (includes): Likewise.
14617         * lib/symlinkat.c (includes): Likewise.
14618
14619         openat: allow return of fd 0
14620         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
14621         * modules/save-cwd (Depends-on): Replace fcntl-safer with
14622         unistd-safer.
14623         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
14624         <fcntl.h>; this module does not leak fds.
14625         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
14626         must be allowed to return 0, leaving openat_safer to add the
14627         safety.
14628         (openat_permissive): Avoid writing to just-opened fd 2 if
14629         restoring the current directory fails.
14630         * lib/openat-die.c (openat_restore_fail): Add comment.
14631         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
14632         (save_cwd): Guarantee safe fd, but without use of open_safer.
14633         * tests/test-openat.c: New test.
14634         * modules/openat-tests (Files, Makefile.am): Distribute and build
14635         new file.
14636
14637         relocatable-prog-wrapper: fix build
14638         * modules/relocatable-prog-wrapper (Files): Update name of
14639         canonicalize m4 file, broken on 2009-09-17.
14640         Reported by emad hajjar <aleppos@hotmail.com>.
14641
14642 2009-09-19  Bruno Haible  <bruno@clisp.org>
14643
14644         * lib/safe-alloc.h: Use the standard header with GPL copyright.
14645         * lib/safe-alloc.c: Likewise.
14646         Reported by Ian Beckwith <ianb@erislabs.net>.
14647
14648 2009-09-18  Bruno Haible  <bruno@clisp.org>
14649
14650         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
14651         Reported by <erobles@sensacd.com.mx>.
14652
14653 2009-09-17  Eric Blake  <ebb9@byu.net>
14654
14655         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
14656         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
14657         slashes when checking if last component is missing.
14658         * tests/test-canonicalize.c (main): Test this.
14659
14660         canonicalize, canonicalize-lgpl: honor // if distinct from /
14661         * modules/canonicalize (Files): Add double-slash-root.m4.
14662         * modules/canonicalize-lgpl (Files): Likewise.
14663         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14664         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
14665         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
14666         fallback definition.
14667         (canonicalize_filename_mode): Use it to protect //.
14668         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
14669         (__realpath): Likewise.
14670         * tests/test-canonicalize.c (main): Test this.
14671         * tests/test-canonicalize-lgpl.c (main): Likewise.
14672         * modules/canonicalize-tests (Depends-on): Add same-inode.
14673         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14674
14675         canonicalize-lgpl: fix glibc bug with trailing slash
14676         * m4/canonicalize-lgpl.m4: Move contents...
14677         * m4/canonicalize.m4: ...here.
14678         (gl_CANONICALIZE_LGPL): Factor realpath check...
14679         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
14680         glibc 2.3.5 bug, fixed 2005-04-27.
14681         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
14682         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
14683         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
14684         * modules/canonicalize-lgpl (Files): Manage file rename.
14685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14686         * modules/stdlib (Makefile.am): Substitute witness.
14687         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
14688         is needed.
14689         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
14690         replacement is required.
14691         * lib/canonicalize.c (canonicalize_file_name): Likewise.
14692         * doc/glibc-functions/canonicalize_file_name.texi
14693         (canonicalize_file_name): Document this.
14694         * doc/posix-functions/realpath.texi (realpath): Likewise.
14695
14696         canonicalize-lgpl: reject non-directory with trailing slash
14697         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
14698         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
14699         catches failures in glibc 2.3.5.
14700         * tests/test-canonicalize.c (main): Likewise.
14701
14702         canonicalize-lgpl: use native realpath if it works
14703         * lib/canonicalize-lgpl.c (realpath): Guard with
14704         FUNC_REALPATH_WORKS.
14705         * lib/stdlib.in.h (realpath): Make declaration optional based on
14706         HAVE_REALPATH.
14707         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
14708         native realpath works.
14709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14710         * modules/stdlib (Makefile.am): Substitute witness.
14711
14712         canonicalize, canonicalize-lgpl: use <stdlib.h>
14713         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
14714         (Include): Mention <stdlib.h>.
14715         (configure.ac): Mention functions we provide.
14716         * modules/canonicalize (configure.ac): Likewise.
14717         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
14718         realpath if canonicalize_file_name is missing.
14719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
14720         * modules/stdlib (Makefile.am): Substitute witnesses.
14721         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
14722         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
14723         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
14724         * NEWS: Document this.
14725         * doc/glibc-functions/canonicalize_file_name.texi
14726         (canonicalize_file_name): Likewise.
14727         * doc/posix-functions/realpath.texi (realpath): Likewise.
14728         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
14729
14730         test-canonicalize: consolidate into single C program
14731         * tests/test-canonicalize.sh: Delete; move setup into...
14732         * tests/test-canonicalize.c (main): ...the program, making it
14733         easier to run in debugger.  Add some tests.
14734         * modules/canonicalize-tests (Files): Remove unused file.
14735         (Depends-on): Add progname.
14736         (configure.ac, Makefile.am): Simplify.
14737
14738         test-canonicalize-lgpl: consolidate into single C program
14739         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
14740         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
14741         easier to run in debugger.  Add some tests.
14742         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
14743         (configure.ac, Makefile.am): Simplify.
14744
14745         canonicalize: avoid resolvepath
14746         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
14747         unnecessary checks.
14748         * lib/canonicalize.c (includes): Simplify.
14749         (canonicalize_file_name): Drop resolvepath implementation.
14750         * modules/canonicalize (Depends-on): Drop filenamecat.
14751
14752         canonicalize: don't lose errno
14753         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
14754         over calls to free.
14755
14756         canonicalize: simplify errno handling
14757         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
14758         assignment.
14759
14760         canonicalize, canonicalize-lgpl: update module dependencies
14761         * modules/canonicalize (Depends-on): Add extensions, lstat,
14762         pathmax, stdlib.
14763         (Files): Drop pathmax.h.
14764         (configure.ac): Adjust macro name.
14765         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
14766         lstat, stdlib, sys_stat.
14767         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
14768         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
14769         extensions.
14770         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
14771         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
14772         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
14773         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
14774         declaration, if available.
14775         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
14776         we can rely on the readlink module.
14777         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
14778         (includes): Use <unistd.h> unconditionally.
14779
14780 2009-09-17  Eric Blake  <ebb9@byu.net>
14781
14782         maint: make Include sections of modules consistent
14783         * modules/alloca: Use only header name; no need to list #include.
14784         * modules/alloca-opt: Likewise.
14785         * modules/arpa_inet: Likewise.
14786         * modules/canon-host: Likewise.
14787         * modules/configmake: Likewise.
14788         * modules/dirent: Likewise.
14789         * modules/eealloc: Likewise.
14790         * modules/environ: Likewise.
14791         * modules/fchdir: Likewise.
14792         * modules/fcntl: Likewise.
14793         * modules/fcntl-h: Likewise.
14794         * modules/gethrxtime: Likewise.
14795         * modules/gettime: Likewise.
14796         * modules/ignore-value: Likewise.
14797         * modules/inet_ntop: Likewise.
14798         * modules/inet_pton: Likewise.
14799         * modules/inttypes: Likewise.
14800         * modules/isnand-nolibm: Likewise.
14801         * modules/isnanf-nolibm: Likewise.
14802         * modules/mbchar: Likewise.
14803         * modules/mbfile: Likewise.
14804         * modules/mbiter: Likewise.
14805         * modules/mbuiter: Likewise.
14806         * modules/netdb: Likewise.
14807         * modules/netinet_in: Likewise.
14808         * modules/nproc: Likewise.
14809         * modules/pagealign_alloc: Likewise.
14810         * modules/poll: Likewise.
14811         * modules/printf-frexp: Likewise.
14812         * modules/pthread: Likewise.
14813         * modules/putenv: Likewise.
14814         * modules/random_r: Likewise.
14815         * modules/relocatable-prog: Likewise.
14816         * modules/search: Likewise.
14817         * modules/select: Likewise.
14818         * modules/selinux-h: Likewise.
14819         * modules/settime: Likewise.
14820         * modules/signal: Likewise.
14821         * modules/size_max: Likewise.
14822         * modules/socklen: Likewise.
14823         * modules/ssize_t: Likewise.
14824         * modules/stdarg: Likewise.
14825         * modules/stdbool: Likewise.
14826         * modules/stddef: Likewise.
14827         * modules/stdint: Likewise.
14828         * modules/stdio: Likewise.
14829         * modules/stdlib: Likewise.
14830         * modules/string: Likewise.
14831         * modules/strings: Likewise.
14832         * modules/sys_file: Likewise.
14833         * modules/sys_ioctl: Likewise.
14834         * modules/sys_select: Likewise.
14835         * modules/sys_socket: Likewise.
14836         * modules/sys_stat: Likewise.
14837         * modules/sys_time: Likewise.
14838         * modules/sys_times: Likewise.
14839         * modules/sys_utsname: Likewise.
14840         * modules/sys_wait: Likewise.
14841         * modules/sysexits: Likewise.
14842         * modules/time: Likewise.
14843         * modules/times: Likewise.
14844         * modules/tmpfile: Likewise.
14845         * modules/trim: Likewise.
14846         * modules/unistd: Likewise.
14847         * modules/wchar: Likewise.
14848         * modules/wctype: Likewise.
14849
14850 2009-09-17  Bruno Haible  <bruno@clisp.org>
14851
14852         Make getdate.y compile on QNX and NetBSD 5 / i386.
14853         * m4/getdate.m4 (gl_GETDATE): Conditionally define
14854         TIME_T_FITS_IN_LONG_INT.
14855         * lib/getdate.y (long_time_t): New type.
14856         (relative_time): Change type of 'seconds' field to long_time_t.
14857         (get_date): Update types of local variables. Check against overflow
14858         during conversion from long_time_t to time_t.
14859         Reported by Matt Kraai <kraai@ftbfs.org>
14860         and Hasso Tepper <hasso@netbsd.org>.
14861
14862 2009-09-17  Bruno Haible  <bruno@clisp.org>
14863
14864         * modules/COPYING: Update copyright years.
14865         * modules/README: Likeiwse.
14866         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
14867         Reported by Ian Beckwith <ianb@erislabs.net>.
14868
14869 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14870
14871         * users.txt: Update references for gnuit package.
14872
14873 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14874
14875         * m4/getdelim.m4: Fix typo in copyright line.
14876
14877 2009-09-17  Bruno Haible  <bruno@clisp.org>
14878
14879         * lib/atoll.c: Use the standard header with GPL copyright.
14880         * lib/argz.in.h: Likewise.
14881         * lib/glob.c: Likewise.
14882         * lib/glob-libc.h: Likewise.
14883         * lib/random_r.c: Likewise.
14884         * lib/siglist.h: Likewise.
14885         * lib/strsignal.c: Likewise.
14886         Reported by Ian Beckwith <ianb@erislabs.net>.
14887
14888 2009-09-17  Eric Blake  <ebb9@byu.net>
14889
14890         rmdir: ensure correct dependency order
14891         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
14892
14893 2009-09-17  Bruno Haible  <bruno@clisp.org>
14894
14895         Disable assertion that fails on NetBSD 5 / i386.
14896         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
14897         Reported by Sam Steingold <sds@gnu.org>
14898         and Hasso Tepper <hasso@netbsd.org>.
14899
14900 2009-09-16  Eric Blake  <ebb9@byu.net>
14901
14902         unlinkdir: port to mingw
14903         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
14904         on which no one can unlink a directory.
14905
14906         stdlib: sort witness names
14907         * modules/stdlib (Makefile.am): Sort replacements.
14908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14909         * lib/stdlib.in.h: Likewise.
14910
14911         parse-duration-tests: avoid link failure
14912         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
14913         LIBINTL.
14914         Reported by Tom G. Christensen.
14915
14916         openat-tests: ensure unlinkat behaves like rmdir
14917         * tests/test-rmdir.c (main): Factor guts...
14918         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14919         * modules/rmdir-tests (Files): Ship new file.
14920         * modules/openat-tests: New test.
14921         * tests/test-unlinkat.c: Likewise.
14922
14923         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14924         * modules/rmdir-errno (Status, Notice): Now obsolete.
14925
14926         rmdir: work around cygwin 1.5.x and mingw bugs
14927         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14928         * lib/rmdir.c (rmdir): Work around it.
14929         * modules/rmdir (Status, Notice): No longer obsolete.
14930         (Files): Add dos.m4.
14931         (Depends-on): Add unistd.
14932         (configure.ac): Set witnesses.
14933         (License): Relax to LGPLv2+.
14934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14935         * modules/unistd (Makefile.am): Substitute witnesses.
14936         * lib/unistd.in.h (rmdir): Declare replacement.
14937         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14938         * modules/rmdir-tests: New tests.
14939         * tests/test-rmdir.c: Likewise.
14940
14941 2009-09-15  Eric Blake  <ebb9@byu.net>
14942
14943         fchdir: improve use of replacement functions
14944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14946         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14947         REPLACE_CLOSEDIR.
14948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14949         * modules/sys_stat (Makefile.am): Substitute correct witness.
14950         * modules/dirent (Makefile.am): Likewise.
14951         * modules/unistd (Makefile.am): Likewise.
14952         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14953         * lib/unistd.in.h (dup): Likewise.
14954         * lib/sys_stat.in.h (fstat): Likewise.
14955
14956         maint: ignore gnulib-tool temp files
14957         * .gitignore: Ignore files created during gnulib-tool --test.
14958
14959 2009-09-13  Jim Meyering  <meyering@redhat.com>
14960
14961         posixtm: don't reject a time that specify "60" as the number of seconds
14962         * lib/posixtm.c (posixtime): The code to reject invalid dates
14963         would also reject a time specified with the .60 suffix.
14964         But POSIX allows that, in order to accommodate leap seconds.
14965         So don't reject it.
14966         (main): Adjust tests accordingly.
14967         * modules/posixtm (Depends-on): Add stpcpy.
14968
14969 2009-09-11  Jim Meyering  <meyering@redhat.com>
14970
14971         announce-gen: include [$release_type] in emitted Subject:
14972         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
14973         e.g., [stable] in the emitted Subject: line.
14974
14975 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14976
14977         Remove obsolete macros from several modules.
14978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
14979         obsolete Autoconf macros with their modern counterparts.
14980         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
14981         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
14982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
14983         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14984         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
14985         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14987         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14988         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14989         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
14990         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14991         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14992         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14993         * m4/sockets.m4 (gl_SOCKETS): Likewise.
14994         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
14995         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
14996         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14997         * m4/time_r.m4 (gl_TIME_R): Likewise.
14998         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14999         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15000         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15001
15002         Fix copyright header in build-aux scripts.
15003         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15004         recommendation.
15005         * build-aux/ncftpput-ftp: Likewise.
15006         * build-aux/update-copyright: Likewise.
15007
15008 2009-09-09  Eric Blake  <ebb9@byu.net>
15009
15010         test-link: allow Linux choice of errno
15011         * tests/test-link.c (main): Relax test for alternate error.
15012
15013         strndup: fix improper m4 caching
15014         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15015         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15016         (gl_PREREQ_STRNDUP): Delete.
15017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15018         * modules/string (Makefile.am): Substitute it.
15019         * lib/string.in.h (strndup): Modernize prototype.
15020
15021         getcwd: port to mingw
15022         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15023         different from the POSIX assumptions made throughout the getcwd
15024         module; fortunately, the mingw getcwd does not need replacement.
15025         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15026         * modules/getcwd-tests: New test.
15027         * tests/test-getcwd.c: Likewise.
15028
15029         link: fix platform bugs
15030         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15031         * lib/link.c (link): Work around them.  Fix related mingw bug.
15032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15033         * modules/unistd (Makefile.am): Substitute it.
15034         * lib/unistd.in.h (link): Declare replacement.
15035         * doc/posix-functions/link.texi (link): Document this.
15036         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15037
15038         test-link: consolidate into single C program, test more cases
15039         * tests/test-link.sh: Delete.
15040         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15041         at least Cygwin and Solaris.
15042         * modules/link-tests (Files): Remove unused file.
15043         (Depends-on): Add errno, sys_stat.
15044         (Makefile.am): Simplify.
15045
15046 2009-09-08  Bruno Haible  <bruno@clisp.org>
15047
15048         Work around towlower, towupper bug on mingw.
15049         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15050         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15051         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15052         * doc/posix-functions/towupper.texi: Likewise.
15053         Reported by Eric Blake.
15054
15055 2009-09-08  Jim Meyering  <meyering@redhat.com>
15056
15057         build: don't try to run autoheader if we don't use it
15058         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15059         is not used in configure.ac.
15060
15061 2009-09-08  Eric Blake  <ebb9@byu.net>
15062
15063         euidaccess: fix compilation error
15064         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15065
15066         rawmemchr: relax license
15067         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15068         okay.
15069         Reported by Jim Meyering.
15070
15071         mkfifoat: new module
15072         * modules/mkfifoat: New file.
15073         * lib/mkfifoat.c: Likewise.
15074         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15076         * modules/sys_stat (Makefile.am): Use them.
15077         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15078         * MODULES.html.sh (File system functions): Mention module.
15079         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15080         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15081         * modules/mkfifoat-tests: New test.
15082         * tests/test-mkfifoat.c: Likewise.
15083
15084         strchrnul: relax license
15085         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15086         okay.
15087         Reported by Jim Meyering.
15088
15089 2009-09-08  Eric Blake  <ebb9@byu.net>
15090
15091         fstatat: fix compilation on Solaris
15092         * lib/fstatat.c (includes): Add fcntl.h.
15093         Reported by Pádraig Brady.
15094
15095 2009-09-07  Eric Blake  <ebb9@byu.net>
15096
15097         rename: modernize replacement
15098         * modules/rename (Depends-on): Add stdio.
15099         (configure.ac): Declare witness.
15100         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15101         stdio take care of replacement.
15102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15103         * modules/stdio (Makefile.am): Substitute them.
15104         * lib/stdio.in.h (rename): Declare replacement.
15105         * lib/rename.c (includes): Allow cross-compilation to non-windows
15106         machines.
15107         * doc/posix-functions/rename.texi (rename): Improve
15108         documentation.
15109
15110         stdio: sort witness names
15111         * modules/stdio (Makefile.am): Sort replacements.
15112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15113         * lib/stdio.in.h: Likewise.
15114
15115         getcwd: minor cleanups
15116         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15117         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15118
15119         openat: provide more convenience names
15120         * modules/faccessat (configure.ac): Add C witness.
15121         * lib/unistd.in.h (readlinkat): Fix typo.
15122         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15123         convenience wrappers.
15124         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15125         wrappers in syntax checks.
15126
15127 2009-09-06  Eric Blake  <ebb9@byu.net>
15128
15129         doc: fix comments in recent patches
15130         * lib/faccessat.c: Mention correct function.
15131         * lib/fchmodat.c: Likewise.
15132         * lib/fchownat.c: Likewise.
15133         * lib/symlinkat.c: Likewise.
15134         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15135         constants.
15136
15137         faccessat, symlinkat: continue cleanup of previous patch
15138         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15139         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15140         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15142         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15143         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15144         set.
15145
15146 2009-09-06  Bruno Haible  <bruno@clisp.org>
15147
15148         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15149         (fstatat): Declare if GNULIB_FSTATAT is set.
15150         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15151         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15152         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15153         * modules/fcntl-h (Files): Remove m4/openat.m4.
15154         * modules/sys_stat (Files): Remove m4/openat.m4.
15155         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15156         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15157         * modules/unistd (Files): Remove m4/openat.m4.
15158         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15159         GNULIB_OPENAT.
15160         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15161         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15163         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15164         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15165         gl_OPENAT_DEFAULTS.
15166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15167         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15168         Don't require gl_OPENAT_DEFAULTS.
15169         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15170         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15171         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15172         (gl_OPENAT_DEFAULTS): Remove macro.
15173
15174 2009-09-06  Bruno Haible  <bruno@clisp.org>
15175
15176         * modules/openat (configure.ac): Remove unneeded witness.
15177
15178 2009-09-06  Bruno Haible  <bruno@clisp.org>
15179
15180         Set errno to ENOSYS when a function is entirely unsupported.
15181         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15182         EOPNOTSUPP.
15183         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15184         * modules/chown (Depends-on): Remove errno.
15185
15186 2009-09-06  Bruno Haible  <bruno@clisp.org>
15187
15188         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15189
15190 2009-09-06  Bruno Haible  <bruno@clisp.org>
15191
15192         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15193
15194 2009-09-06  Ben Pfaff  <blp@gnu.org>
15195             Bruno Haible  <bruno@clisp.org>
15196
15197         Work around a glibc bug in strtok_r.
15198         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15199         Undefine if UNDEFINE_STRTOK_R is set.
15200         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15202         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15203         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15204         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15205         UNDEFINE_STRTOK_R.
15206         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15207
15208 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15209
15210         exclude: minor fix
15211         * lib/exclude.c: Include wctype.h
15212
15213 2009-09-06  Akim Demaille  <demaille@gostai.com>
15214
15215         bootstrap: improve error message
15216         * build-aux/bootstrap (find_tool): Upon failure, report the list
15217         of candidates.
15218         Honor the initial value of the envvar.
15219
15220 2009-09-05  Eric Blake  <ebb9@byu.net>
15221
15222         symlinkat: new module
15223         * modules/symlinkat: New file.
15224         * lib/symlinkat.c: Likewise.
15225         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15227         * modules/unistd (Makefile.am): Use them.
15228         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15229         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15230         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15231         * MODULES.html.sh (File system functions): Mention module.
15232         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15233         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15234         * modules/symlinkat-tests: New test.
15235         * tests/test-symlinkat.c: Likewise.
15236
15237         test-openat-safer: add more checks
15238         * tests/test-openat-safer.c (main): Check more code paths.
15239
15240 2009-09-05  Jim Meyering  <meyering@redhat.com>
15241
15242         syntax-check: detect unnecessary inclusion of openat.h
15243         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15244
15245 2009-09-05  Bruno Haible  <bruno@clisp.org>
15246
15247         Support towlower, towupper.
15248         * doc/posix-functions/towlower.texi: Mention module wctype.
15249         * doc/posix-functions/towupper.texi: Likewise.
15250         * lib/wctype.in.h (towlower, towupper): New functions.
15251         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15252         (ASSERT): New macro.
15253         (e): New variable.
15254         (main): Test also towlower, towupper. Test WEOF argument.
15255         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15256
15257 2009-09-05  Bruno Haible  <bruno@clisp.org>
15258
15259         Fix conversion behaviour when the input is invalid.
15260         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15261         mark occurring in first pass of indirect conversion.
15262         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15263         input.
15264         Found by clang's static analyzer.
15265
15266 2009-09-05  Bruno Haible  <bruno@clisp.org>
15267
15268         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15269         where direct conversion is possible.
15270
15271 2009-09-04  Eric Blake  <ebb9@byu.net>
15272
15273         openat: fail with ENOENT on empty name
15274         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15275         buffer.
15276
15277         link-follow: fix logic bug in prior patch
15278         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15279         reversed sense of yes and no in prior patch.  Avoid confusing
15280         compilation failure with desired semantics.
15281
15282         link-follow: accomodate mingw and cross-compilation
15283         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15284         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15285         cross-compilation results to -1, to make linkat easier to
15286         implement when cross-compiling.  Trivially support mingw.
15287         * modules/link-follow (configure.ac): Call new name.
15288         * NEWS: Mention this.
15289
15290 2009-09-03  Eric Blake  <ebb9@byu.net>
15291
15292         faccessat: compile replacement
15293         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15294         needed.
15295
15296         fts: fix compilation error
15297         * lib/fts.c (includes): Re-add "openat.h", for
15298         openat_needs_fchdir.
15299
15300         faccessat: new module
15301         * modules/faccessat: New file.
15302         * lib/faccessat.c: Likewise.
15303         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15305         * modules/unistd (Makefile.am): Use it.
15306         * lib/unistd.in.h (faccessat): Declare it.
15307         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15308         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15309         * MODULES.html.sh (File system functions): Mention it.
15310         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15311         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15312
15313         euidaccess: prefer POSIX over non-standard implementation
15314         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15315         * lib/euidaccess.c (euidaccess): Use it if available.
15316
15317         openat: make template easier to use
15318         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15319         AT_FUNC_F2 to be undefined.
15320         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15321         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15322         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15323         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15324         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15325         Likewise.
15326         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15327         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15328         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15329         Likewise.
15330
15331         openat: declare in POSIX headers
15332         * NEWS: Mention this.
15333         * modules/openat (configure.ac): Declare witnesses.
15334         (Depends-on): Add fcntl-h, sys_stat, unistd.
15335         (Include): Mention correct headers.
15336         * modules/fcntl-h (Depends-on): Add link-warning.
15337         (Files): Add openat.m4.
15338         (Makefile.am): Substitute witnesses.
15339         * modules/sys_stat (Files, Makefile.am): Likewise.
15340         * modules/unistd (Files, Makefile.am): Likewise.
15341         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15342         (gl_OPENAT_DEFAULTS): New macro.
15343         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15346         (SYS_STAT_H): Remove unused variable.
15347         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15348         * lib/fcntl--.h (includes): Remove unneeded header.
15349         * lib/openat-safer.c (includes): Likewise.
15350         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15351         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15352         appropriate headers.
15353         (__OPENAT_PREFIX): Delete.
15354         * lib/fcntl.in.h (openat): Provide declaration.
15355         (AT_FDCWD): Fix Solaris bug.
15356         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15357         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15358         * lib/fchmodat.c (includes):  Adjust to find declaration.
15359         * lib/fchownat.c (includes): Likewise.
15360         * lib/mkdirat.c (includes): Likewise.
15361         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15362         still visible.
15363
15364 2009-09-02  Eric Blake  <ebb9@byu.net>
15365
15366         errno: use consistently
15367         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
15368         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
15369         * lib/canonicalize.c (ELOOP): Likewise.
15370         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
15371         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
15372         * lib/lchown.c (EOPNOTSUPP): Likewise.
15373         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
15374         * lib/savewd.c (ESTALE): Likewise.
15375         * lib/settime.c (ENOSYS): Likewise.
15376         * lib/utimens.c (ENOSYS): Likewise.
15377         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
15378         * lib/chdir-safer.c (ELOOP): Likewise.
15379         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
15380         * modules/c-stack (Depends-on): Add errno.
15381         * modules/canonicalize (Depends-on): Likewise.
15382         * modules/chdir-safer (Depends-on): Likewise.
15383         * modules/fdopendir (Depends-on): Likewise.
15384         * modules/inet_ntop (Depends-on): Likewise.
15385         * modules/inet_pton (Depends-on): Likewise.
15386         * modules/lchown (Depends-on): Likewise.
15387         * modules/openat (Depends-on): Likewise.
15388         * modules/savewd (Depends-on): Likewise.
15389         * modules/settime (Depends-on): Likewise.
15390         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
15391
15392         fts: avoid leaking fds
15393         * modules/fts (Depends-on): Add cloexec.
15394         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
15395         flag.
15396
15397         fts: make directory fds more robust
15398         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
15399         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
15400
15401         backupfile, chdir-long, fts, savedir: make safer
15402         * lib/backupfile.c (includes): Use "dirent--.h", since
15403         numbered_backup can write to stderr during readdir.
15404         * lib/savedir.c (includes): Likewise.
15405         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
15406         emulation can write to stderr on failure.
15407         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
15408         * lib/getcwd.c: Document why opendir_safer is unused.
15409         * lib/glob.c: Likewise.
15410         * lib/scandir.c: Likewise.
15411         * lib/openat-proc.c: Likewise, for open_safer.
15412         * modules/backupfile (Depends-on): Add dirent-safer.
15413         * modules/savedir (Depends-on): Likewise.
15414         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
15415         * modules/chdir-long (Depends-on): Add openat-safer.
15416
15417         openat-safer: new module
15418         * modules/openat-safer: New file.
15419         * lib/openat-safer.c: Likewise.
15420         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
15421         * lib/fcntl-safer.h (openat_safer): Declare.
15422         * lib/fcntl--.h (openat): Override.
15423         * MODULES.html.sh (File descriptor based I/O): Mention it.
15424         * lib/openat.h: Add double-inclusion guards.
15425         * lib/openat.c (includes): Only include "fcntl-safer.h", not
15426         "fcntl--.h", so we can implement openat.
15427         * modules/openat-safer-tests: New test.
15428         * tests/test-openat-safer.c: New file.
15429
15430         dirent-safer: new module
15431         * modules/dirent-safer: New file.
15432         * lib/dirent--.h: Likewise.
15433         * lib/dirent-safer.h: Likewise.
15434         * lib/opendir-safer.c: Likewise.
15435         * m4/dirent-safer.m4: Likewise.
15436         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
15437         * modules/dirent-safer-tests: New test.
15438         * tests/test-dirent-safer.c: New file.
15439         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
15440
15441         fdopendir: optimize on mingw
15442         * lib/unistd.in.h (_gl_directory_name): New prototype.
15443         * lib/fchdir.c (_gl_directory_name): Implement it.
15444         (fchdir): Use it to simplify implementation.
15445         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
15446         fchdir, when available, to avoid calling [f]chdir().
15447
15448         fdopendir: split into its own module
15449         * lib/openat.c (fdopendir): Move...
15450         * lib/fdopendir.c: ...into new file.
15451         * modules/fdopendir: New module.
15452         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
15453         * modules/openat (Depends-on): Add fdopendir.
15454         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
15455         fdopendir here.
15456         * modules/savedir (Depends-on): Only need fdopendir, not full
15457         openat.
15458         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
15459         * lib/openat.h (fdopendir): Drop prototype.
15460         * lib/dirent.in.h (fdopendir): Provide prototype.
15461         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
15462         * modules/dirent (Makefile.am): Substitute them.
15463         * MODULES.html.sh (File system functions): Mention it.
15464         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
15465         * modules/fdopendir-tests: New file.
15466         * tests/test-fdopendir.c: Likewise.
15467
15468         fchdir: use more consistent macro convention
15469         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
15470         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
15471         REPLACE_FCHDIR, rather than relying on config.h macros.
15472         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
15473         inside a single make-time REPLACE_FCHDIR block, rather than using
15474         the config.h FCHDIR_REPLACEMENT.
15475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
15476         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
15477         Manage fstat replacement.
15478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
15479         REPLACE_FCHDIR.
15480         * modules/sys_stat (Files): Add m4/unistd_h.m4.
15481         (Makefile.am): Substitute REPLACE_FCHDIR.
15482         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
15483         FCHDIR_REPLACEMENT.
15484         * lib/dup-safer.c (dup_safer): Likewise.
15485         * lib/dup2.c (rpl_dup2): Likewise.
15486         * lib/dup3.c (rpl_dup3): Likewise.
15487         * lib/open.c (rpl_open): Likewise.
15488
15489         fchdir: simplify error handling, and support dup3
15490         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
15491         stdbool, malloc-posix, realloc-posix.
15492         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
15493         (ensure_dirs_slot): Return false on allocation failure.
15494         (rpl_dup2): Delete.
15495         (_gl_register_dup): New function.
15496         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
15497         (_gl_register_fd): Close fd on allocation failure.
15498         * lib/fcntl.in.h (_gl_register_fd): Update signature.
15499         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
15500         prototype.
15501         (rpl_dup2_fchdir): Delete prototype.
15502         * lib/open.c (open): Update caller.
15503         * lib/dup2.c (dup2): Track fchdir metadata.
15504         * lib/dup3.c (dup3): Likewise.
15505         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
15506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
15507
15508 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15509
15510         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
15511         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
15512         don't pass arguments to AC_OUTPUT.
15513
15514 2009-09-02  Bruno Haible  <bruno@clisp.org>
15515
15516         * modules/mkdtemp (License): Relicense under LGPLv2+.
15517         Reported by Paolo Bonzini.
15518
15519 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15520
15521         Replace uses of obsolete autoconf macros in Jim's modules.
15522         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
15523         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
15524         can evoke a warning from autoconf when run with -Wobsolete
15525         enabled.  They were declared obsolete for good reasons (see
15526         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
15527         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
15528         should not continue using the deprecated macros.
15529         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
15530         obsolete Autoconf macros with modern counterparts.
15531         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15532         * m4/dos.m4 (gl_AC_DOS): Likewise.
15533         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
15534         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15535         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
15536         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
15537         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15538         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
15539         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
15540         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
15541         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
15542         Likewise.
15543         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15544         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15545         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
15546         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
15547         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15548         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15549
15550 2009-09-01  Eric Blake  <ebb9@byu.net>
15551
15552         fchdir: fix off-by-one bug in previous patch
15553         * lib/fchdir.c (rpl_fstat): Use correct bounds.
15554         (_gl_unregister_fd): Delete useless if.
15555
15556 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
15557
15558         maint.mk: sort the list of syntax-check rules
15559         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
15560         easier to get a sense of progress when the rules are run sequentially
15561         and take a long time.
15562
15563 2009-09-01  Simon Josefsson  <simon@josefsson.org>
15564
15565         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
15566         * modules/netinet_in: Likewise.
15567         * modules/sys_file: Likewise.
15568         * modules/sys_ioctl: Likewise.
15569         * modules/sys_select: Likewise.
15570         * modules/sys_socket: Likewise.
15571         * modules/sys_stat: Likewise.
15572         * modules/sys_time: Likewise.
15573         * modules/sys_times: Likewise.
15574         * modules/sys_utsname: Likewise.
15575         * modules/sys_wait: Likewise.
15576
15577 2009-09-01  Jim Meyering  <meyering@redhat.com>
15578
15579         fts: help ensure that return values are not ignored
15580         * lib/fts_.h (__GNUC_PREREQ): Define.
15581         (__attribute_warn_unused_result__): Define.
15582         (fts_children, fts_close, fts_open, fts_read): Declare with
15583         __attribute_warn_unused_result__.
15584
15585         fts: fts_close now fails also when closing a dir file descriptor fails
15586         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
15587         and propagate to caller, along with errno.
15588
15589         announce-gen: correct formatting in --help output
15590         * build-aux/announce-gen (usage): Move the one-line description in
15591         --help output "up", to where it belongs, just after Usage:.
15592
15593 2009-08-31  Eric Blake  <ebb9@byu.net>
15594
15595         fchdir: port to mingw
15596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
15597         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
15598         opened, then use a substitute.
15599         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
15600         replacement.
15601         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
15602         (_gl_register_fd): No need to check stat if open already filters
15603         all directories.
15604         (fchdir): Fix error condition to match POSIX.
15605         * modules/fchdir (Depends-on): Add sys_stat.
15606         * doc/posix-functions/open.texi (open): Document the limitation.
15607         * modules/fchdir-tests: New file.
15608         * tests/test-fchdir.c: Likewise.
15609
15610         canonicalize: allow cross-testing from cygwin to mingw
15611         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
15612         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
15613         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
15614         Likewise.
15615         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
15616         target does not support symlinks.
15617         * tests/test-canonicalize-lgpl.sh: Likewise.
15618
15619         chown: avoid compilation warning on mingw
15620         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
15621         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
15622         mingw.
15623         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15624         * modules/chown (Depends-on): Add errno.
15625
15626 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15627
15628         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
15629         command.
15630
15631 2009-08-31  Jim Meyering  <meyering@redhat.com>
15632
15633         canonicalize: remove useless initialization
15634         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
15635         initialization of local, "end".
15636
15637 2009-08-30  Bruno Haible  <bruno@clisp.org>
15638
15639         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
15640         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
15641         ENOSYS.
15642
15643 2009-08-30  Bruno Haible  <bruno@clisp.org>
15644
15645         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
15646         /usr/xpg4/bin/tr when it exists.
15647         * tests/test-pipe-filter-gi1.sh: Likewise.
15648
15649 2009-08-30  Bruno Haible  <bruno@clisp.org>
15650
15651         Work around deficient /usr/bin/id program on Solaris.
15652         * tests/test-file-has-acl.sh (ID): New variable.
15653         * tests/test-set-mode-acl.sh (ID): Likewise.
15654         * tests/test-copy-acl.sh (ID): Likewise.
15655         * tests/test-copy-file.sh (ID): Likewise.
15656
15657 2009-08-30  Bruno Haible  <bruno@clisp.org>
15658
15659         New module 'xstriconveh'.
15660         * lib/xstriconveh.h: New file.
15661         * lib/xstriconveh.c: New file.
15662         * modules/xstriconveh: New file.
15663
15664 2009-08-30  Bruno Haible  <bruno@clisp.org>
15665
15666         Make it easier to use mem_cd_iconveh.
15667         * lib/striconveh.h (iconveh_t): New type.
15668         (iconveh_open, iconveh_close): New declarations.
15669         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15670         with a single 'const iconveh_t *' argument.
15671         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
15672         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15673         with a single 'const iconveh_t *' argument.
15674         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
15675         * tests/test-striconveh.c (main): Update.
15676         * NEWS: Mention the change.
15677
15678 2009-08-30  Bruno Haible  <bruno@clisp.org>
15679
15680         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
15681         problem.
15682
15683 2009-08-30  Bruno Haible  <bruno@clisp.org>
15684
15685         Work around iconv_open problem on Solaris.
15686         * lib/iconv_open-solaris.gperf: New file.
15687         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
15688         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
15689         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
15690         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
15691         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
15692         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
15693
15694 2009-08-29  Jim Meyering  <meyering@redhat.com>
15695
15696         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
15697         * top/maint.mk (cvs-check): Remove target; it was just an alias
15698         to the better-named vc-diff-check.
15699         (maintainer-distcheck): Remove rule.  It was used only from
15700         the (alpha/beta/major) target, and all of its commands but one
15701         were coreutils-specific.
15702         (vc-dist): Remove rule.
15703         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
15704         Run vc-diff-check, not vc-dist.
15705         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
15706
15707 2009-08-27  Bruno Haible  <bruno@clisp.org>
15708
15709         * tests/test-bitrotate.c (main): Remove test that uses a shift count
15710         of 0.
15711
15712 2009-08-27  Bruno Haible  <bruno@clisp.org>
15713
15714         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
15715         compilers.
15716         * doc/func.texi: Document the SunPRO C bug.
15717
15718 2009-08-27  Bruno Haible  <bruno@clisp.org>
15719
15720         Fix link error on Solaris.
15721         * tests/test-parse-duration.c (xstrdup): Remove function.
15722
15723 2009-08-26  Pádraig Brady  <P@draigbrady.com>
15724
15725         ignore-value: handle pointer types, too
15726         * lib/ignore-value.h (__attribute__): Remove definition.
15727         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
15728         of a more concise and more-often effective "(void) i" statement.
15729         (ignore_ptr): New function to suppress warnings from functions that
15730         return pointers, and to make it explicit that one function doesn't
15731         handle all cases.
15732
15733 2009-08-25  Bruno Haible  <bruno@clisp.org>
15734
15735         dup2: work around a Linux bug.
15736         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
15737         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
15738         * doc/posix-functions/dup2.texi: Mention the Linux bug.
15739         Reported by Simon Josefsson.
15740
15741 2009-08-25  Jim Meyering  <meyering@redhat.com>
15742
15743         libguestfs uses gnulib
15744         * users.txt: Add libguestfs.
15745
15746 2009-08-24  Eric Blake  <ebb9@byu.net>
15747
15748         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
15749         * lib/pipe2.c (includes): Add binary-io.h.
15750         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
15751
15752 2009-08-24  Bruno Haible  <bruno@clisp.org>
15753
15754         Tolerate declared but missing accept4 syscall.
15755         * lib/accept4.c (accept4): Invoke original accept4 function first, if
15756         available.
15757         * lib/sys_socket.in.h (accept4): If the function is already present,
15758         override it.
15759         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
15760         * modules/accept4 (Makefile.am): Compile accept4.c always.
15761         Reported by Paolo Bonzini and Eric Blake.
15762
15763 2009-08-23  Bruno Haible  <bruno@clisp.org>
15764
15765         New module 'accept4'.
15766         * lib/sys_socket.in.h (accept4): New declaration.
15767         * lib/accept4.c: New file.
15768         * m4/accept4.m4: New file.
15769         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15770         GNULIB_ACCEPT4, HAVE_ACCEPT4.
15771         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
15772         HAVE_ACCEPT4.
15773         * modules/accept4: New file.
15774         * doc/glibc-functions/accept4.texi: Mention the new module.
15775
15776 2009-08-24  Jim Meyering  <meyering@redhat.com>
15777
15778         progname: also set global program_invocation_name, when possible
15779         Before this change, a libtool-enabled program that calls glibc's
15780         error function would report the program name as
15781         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
15782         * modules/progname (configure.ac): Check for a declaration of
15783         program_invocation_name.
15784         * lib/progname.c:  Include <errno.h>.
15785         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
15786         Set program_invocation_name.
15787
15788 2009-08-23  Bruno Haible  <bruno@clisp.org>
15789
15790         * lib/dup3.c: Include <string.h>.
15791
15792 2009-08-23  Bruno Haible  <bruno@clisp.org>
15793
15794         * lib/dup3.c (dup3): Test only once whether the system actually exists.
15795         * lib/pipe2.c (pipe2): Likewise.
15796         Suggested by Eric Blake.
15797
15798 2009-08-23  Bruno Haible  <bruno@clisp.org>
15799
15800         Tolerate declared but missing dup3 syscall.
15801         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
15802         * lib/unistd.in.h (dup3): If the function is already present,
15803         override it.
15804         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
15805         * modules/dup3 (Makefile.am): Compile dup3.c always.
15806         Reported by Paolo Bonzini.
15807
15808 2009-08-23  Bruno Haible  <bruno@clisp.org>
15809
15810         Tolerate declared but missing pipe2 syscall.
15811         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
15812         available.
15813         * lib/unistd.in.h (pipe2): If the function is already present,
15814         override it.
15815         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
15816         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
15817         Reported by Paolo Bonzini.
15818
15819 2009-08-23  Bruno Haible  <bruno@clisp.org>
15820
15821         * lib/pipe2.c (pipe2): Move #ifs inside function.
15822
15823 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15824
15825         quotearg: document limitations of quote_these_too
15826         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
15827         those limitations are created.
15828         * lib/quotearg.h (set_char_quoting): Document that digits and
15829         letters that are special after backslash are not permitted.
15830         (quotearg_char): Cross-reference set_char_quoting documentation.
15831
15832 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
15833
15834         quotearg: implement custom_quoting_style
15835         * lib/quotearg.c: (struct quoting_options): Add left_quote and
15836         right_quote fields.
15837         (set_custom_quoting): New public function.
15838         (quotearg_buffer_restyled): Add left_quote and right_quote
15839         arguments, handle them very much like locale quoting, and update
15840         all uses.
15841         (quotearg_n_custom): New public function.
15842         (quotearg_n_custom_mem): New public function.
15843         (quotearg_custom): New public function.
15844         (quotearg_custom_mem): New public function.
15845         * lib/quotearg.h: Prototype and document new public functions.
15846         (enum quoting_style): For escape_quoting_style and
15847         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
15848         ignored even though they're otherwise like c_quoting_style.
15849         Add custom_quoting_style member and document with comparison to
15850         clocale_quoting_style.
15851         * tests/test-quotearg.c (custom_quotes): New array.
15852         (custom_results): New array.
15853         (main): Extend to test custom quoting.
15854
15855 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15856
15857         quotearg: fix right quote escaping when it's in quote_these_too
15858         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
15859         quote, be sure to prepend only one backslash.
15860         * tests/test-quotearg.c (use_quote_double_quotes): New function.
15861         (main): Test it.
15862
15863 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15864
15865         quotearg-tests: test escaping of embedded locale quotes
15866         * tests/test-quotearg.c (struct result_strings): Add member for
15867         new input.
15868         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
15869         (inputs): Add new input.
15870         (results_g): Add expected results.
15871         (flag_results): Likewise.
15872         (locale_results): Likewise.
15873         (compare_strings): Check those.
15874
15875 2009-08-23  Bruno Haible  <bruno@clisp.org>
15876
15877         Tests for module 'dup3'.
15878         * modules/dup3-tests: New file.
15879         * tests/test-dup3.c: New file.
15880
15881         New module 'dup3'.
15882         * lib/unistd.in.h (dup3): New declaration.
15883         * lib/dup3.c: New file.
15884         * m4/dup3.m4: New file.
15885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
15886         HAVE_DUP3.
15887         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
15888         * modules/dup3: New file.
15889         * doc/glibc-functions/dup3.texi: Mention the new module.
15890
15891 2009-08-23  Bruno Haible  <bruno@clisp.org>
15892
15893         Tweak the dup2 test.
15894         * tests/test-dup2.c (main): Create the test file empty. Verify that an
15895         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
15896         the test file is still empty. Fix argument order of lseek.
15897
15898 2009-08-23  Bruno Haible  <bruno@clisp.org>
15899
15900         Avoid test link errors when the modules getopt-gnu, gettext are used.
15901         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
15902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15903
15904 2009-08-23  Bruno Haible  <bruno@clisp.org>
15905
15906         Fix getdtablesize() on mingw.
15907         * lib/getdtablesize.c (getdtablesize): Implement differently.
15908         * lib/unistd.in.h (getdtablesize): Improve comment.
15909
15910 2009-08-23  Bruno Haible  <bruno@clisp.org>
15911
15912         New module 'mkostemp'.
15913         Based on Ulrich Drepper's 2007-08-10 change in glibc.
15914         * lib/stdlib.in.h (mksotemp): New declaration.
15915         * lib/mkostemp.c: New file, from glibc with modifications.
15916         * lib/tempname.h (GT_FILE): Remove outdated comment.
15917         (gen_tempname): Add flags argument.
15918         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15919         (__GT_FILE): Map to 1.
15920         (small_open, large_open): Remove macros.
15921         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15922         * lib/mkstemp.c (mkstemp): Update.
15923         * lib/mkdtemp.c (mkdtemp): Likewise.
15924         * m4/mkostemp.m4: New file.
15925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15926         HAVE_MKOSTEMP.
15927         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15928         HAVE_MKOSTEMP.
15929         * modules/mkostemp: New file, based on modules/mkstemp.
15930         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15931         * NEWS: Mention the change.
15932
15933 2009-08-23  Bruno Haible  <bruno@clisp.org>
15934
15935         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15936         Reported by Eric Blake.
15937
15938 2009-08-23  Bruno Haible  <bruno@clisp.org>
15939
15940         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15941         Reported by Eric Blake.
15942
15943 2009-08-23  Bruno Haible  <bruno@clisp.org>
15944
15945         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15946         * modules/pipe2 (Depends-on): Likewise.
15947
15948 2009-08-23  Eric Blake  <ebb9@byu.net>
15949
15950         fcntl-h: add O_TTY_INIT support
15951         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15952         * tests/test-fcntl-h.c (o): Test it.
15953         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15954
15955         fcntl-h: rename from fcntl, in preparation for fcntl(2)
15956         * modules/fcntl: Move <fcntl.h> header replacement...
15957         * modules/fcntl-h: ...to new name, so as not to collide with
15958         like-named function.
15959         * tests/test-fcntl.c: Rename...
15960         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
15961         * modules/fcntl-tests: Rename...
15962         * modules/fcntl-h-tests: ...to this.  Update test file name.
15963         * modules/chdir-long (Depends-on): Update clients.
15964         * modules/chdir-safer (Depends-on): Likewise.
15965         * modules/fcntl-safer (Depends-on): Likewise.
15966         * modules/fts (Depends-on): Likewise.
15967         * modules/mkancesdirs (Depends-on): Likewise.
15968         * modules/mkdir-p (Depends-on): Likewise.
15969         * modules/open (Depends-on): Likewise.
15970         * modules/savewd (Depends-on): Likewise.
15971         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
15972         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15973
15974 2009-08-22  Bruno Haible  <bruno@clisp.org>
15975
15976         * modules/binary-io (License): Relicense under LGPL.
15977         * modules/pipe2 (License): Likewise.
15978
15979 2009-08-22  Bruno Haible  <bruno@clisp.org>
15980
15981         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
15982         return value.
15983         * lib/pipe-filter-gi.c (filter_init): Likewise.
15984         Reported by Eric Blake.
15985
15986 2009-08-22  Bruno Haible  <bruno@clisp.org>
15987
15988         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
15989         * modules/pipe (Depends-on): Add pipe2.
15990
15991 2009-08-22  Bruno Haible  <bruno@clisp.org>
15992
15993         Tests for module 'pipe2'.
15994         * modules/pipe2-tests: New file.
15995         * tests/test-pipe2.c: New file.
15996
15997         New module 'pipe2'.
15998         * lib/unistd.in.h (pipe2): New declaration.
15999         * lib/pipe2.c: New file.
16000         * m4/pipe2.m4: New file.
16001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16002         HAVE_PIPE2.
16003         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16004         * modules/pipe2: New file.
16005         * doc/glibc-functions/pipe2.texi: Mention the new module.
16006
16007 2009-08-22  Bruno Haible  <bruno@clisp.org>
16008
16009         Reference some new glibc functions.
16010         * doc/glibc-functions/accept4.texi: New file.
16011         * doc/glibc-functions/dup3.texi: New file.
16012         * doc/glibc-functions/mkostemp.texi: New file.
16013         * doc/glibc-functions/pipe2.texi: New file.
16014         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16015         (Glibc sys/socket.h): Refer to accept4.
16016         (Glibc unistd.h): Refer to dup3, pipe2.
16017         Reported by Eric Blake.
16018
16019 2009-08-22  Jim Meyering  <meyering@redhat.com>
16020             Bruno Haible  <bruno@clisp.org>
16021
16022         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16023         This makes it so packages using automake-1.11's silent-rules option
16024         can print e.g., a single "GEN    configmake.h" line, rather than
16025         the 30+ statements that perform the job.  If you want to see the
16026         actual commands, you can still run "make V=1".
16027         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16028         so that make output is abbreviated when those variables are defined
16029         appropriately.
16030         * modules/argz: Likewise.
16031         * modules/arpa_inet: Likewise.
16032         * modules/byteswap: Likewise.
16033         * modules/configmake: Likewise.
16034         * modules/dirent: Likewise.
16035         * modules/errno: Likewise.
16036         * modules/fcntl: Likewise.
16037         * modules/float: Likewise.
16038         * modules/fnmatch: Likewise.
16039         * modules/getopt-posix: Likewise.
16040         * modules/glob: Likewise.
16041         * modules/iconv_open: Likewise.
16042         * modules/inttypes: Likewise.
16043         * modules/localcharset: Likewise.
16044         * modules/locale: Likewise.
16045         * modules/math: Likewise.
16046         * modules/netdb: Likewise.
16047         * modules/netinet_in: Likewise.
16048         * modules/poll: Likewise.
16049         * modules/posix_spawnp-tests: Likewise.
16050         * modules/sched: Likewise.
16051         * modules/search: Likewise.
16052         * modules/selinux-h: Likewise.
16053         * modules/signal: Likewise.
16054         * modules/spawn: Likewise.
16055         * modules/stdarg: Likewise.
16056         * modules/stdbool: Likewise.
16057         * modules/stddef: Likewise.
16058         * modules/stdint: Likewise.
16059         * modules/stdio: Likewise.
16060         * modules/stdlib: Likewise.
16061         * modules/string: Likewise.
16062         * modules/strings: Likewise.
16063         * modules/sys_file: Likewise.
16064         * modules/sys_ioctl: Likewise.
16065         * modules/sys_select: Likewise.
16066         * modules/sys_socket: Likewise.
16067         * modules/sys_stat: Likewise.
16068         * modules/sys_time: Likewise.
16069         * modules/sys_times: Likewise.
16070         * modules/sys_utsname: Likewise.
16071         * modules/sys_wait: Likewise.
16072         * modules/sysexits: Likewise.
16073         * modules/time: Likewise.
16074         * modules/unistd: Likewise.
16075         * modules/wchar: Likewise.
16076         * modules/wctype: Likewise.
16077
16078 2009-08-22  Jim Meyering  <meyering@redhat.com>
16079
16080         announce-gen: detect write failure
16081         * build-aux/announce-gen: Add Coda at end.
16082         Remove equivalent-but-more-verbose block at top.
16083
16084 2009-08-19  Akim Demaille  <demaille@gostai.com>
16085
16086         bootstrap: --help to stdout.
16087         * bootstrap (usage): Don't send --help to stderr.
16088         Use a here doc instead of a long string.
16089
16090 2009-08-21  Eric Blake  <ebb9@byu.net>
16091
16092         test-popen-safer: split from test-popen
16093         * tests/test-popen.c (main): Move...
16094         * tests/test-popen.h: ...into new file.
16095         * tests/test-popen-safer2.c: New file.
16096         * modules/popen-tests (Files): Add test-popen.h.
16097         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16098         Suggested by Bruno Haible.
16099
16100         test-fcntl-safer: split from test-open
16101         * tests/test-open.c (main): Move...
16102         * tests/test-open.h: ...into new file.
16103         * tests/test-fcntl-safer.c: New file.
16104         * modules/open-tests (Files): Add test-open.h.
16105         * modules/fcntl-safer-tests: New file.
16106         Suggested by Bruno Haible.
16107
16108         test-fopen-safer: split from test-fopen
16109         * tests/test-fopen.c (main): Move...
16110         * tests/test-fopen.h: ...into new file.
16111         * tests/test-fopen-safer.c: New file.
16112         * modules/fopen-tests (Files): Add test-fopen.h.
16113         * modules/fopen-safer-tests: New file.
16114         Suggested by Bruno Haible.
16115
16116 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16117
16118         popen-safer: test O_CLOEXEC at run-time.
16119         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16120
16121 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16122
16123         fcntl: move more flags to the header
16124         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16125         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16126         * lib/fcntl.in.h: Do both things here.
16127
16128 2009-08-21  Jim Meyering  <meyering@redhat.com>
16129
16130         consistently remove $@-t before redirecting to it
16131         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16132         * modules/alloca-opt: Likewise.
16133         * modules/byteswap: Likewise.
16134         * modules/fnmatch: Likewise.
16135         * modules/getopt-posix: Likewise.
16136         * modules/glob: Likewise.
16137         * modules/poll: Likewise.
16138         * modules/posix_spawnp-tests: Likewise.
16139         * modules/sys_socket: Likewise.
16140         * modules/sysexits: Likewise.
16141
16142 2009-08-21  Eric Blake  <ebb9@byu.net>
16143
16144         popen: simplify access to original popen
16145         * lib/popen.c (rpl_popen): No need to worry about popen being a
16146         macro.
16147         Reported by Bruno Haible.
16148
16149 2009-08-20  Eric Blake  <ebb9@byu.net>
16150
16151         build: avoid some compiler warnings
16152         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16153         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16154         type.
16155         (new_exclude_segment, excluded_file_pattern_p)
16156         (excluded_file_name_p): Reduce scope.
16157         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16158         old-style declaration.
16159
16160 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16161
16162         * tests/test-exclude1.sh: Handle Windows EOL.
16163         * tests/test-exclude2.sh: Likewise.
16164         * tests/test-exclude3.sh: Likewise.
16165         * tests/test-exclude4.sh: Likewise.
16166         * tests/test-exclude5.sh: Likewise.
16167         * tests/test-exclude6.sh: Likewise.
16168         * tests/test-exclude7.sh: Likewise.
16169
16170 2009-08-19  Akim Demaille  <demaille@gostai.com>
16171
16172         bootstrap: find sha1sum when named gsha1sum.
16173         * bootstrap (find_tool): New.
16174         ($SHA1SUM): New.
16175         Use it.
16176
16177 2009-08-20  Jim Meyering  <meyering@redhat.com>
16178
16179         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16180         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16181         expression that converts "." in a file name to "\." in the resulting
16182         regexp.  Start with a dummy statement, so that prior shell variable
16183         definitions are expanded portably.  Reported by Simon Josefsson.
16184
16185 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16186
16187         Fix polling for writeability of a screen buffer.
16188         * lib/poll.c: Distinguish input and screen buffers for the
16189         Win32 implementation.
16190         * lib/select.c: Likewise.
16191
16192 2009-08-19  Eric Blake  <ebb9@byu.net>
16193
16194         popen-safer: prevent popen from clobbering std descriptors
16195         * modules/popen-safer: New file.
16196         * lib/popen-safer.c: Likewise.
16197         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16198         * lib/stdio--.h (popen): Provide override.
16199         * lib/stdio-safer.h (popen_safer): Provide declaration.
16200         * tests/test-popen.c (includes): Partially test this.
16201         * modules/popen-safer-tests: New file, for more tests.
16202         * tests/test-popen-safer.c: Likewise.
16203         * MODULES.html.sh (file stream based Input/Output): Mention it.
16204
16205         tests: test some of the *-safer modules
16206         * modules/fopen-safer (Depends-on): Add fopen.
16207         * modules/fcntl-safer (Depends-on): Add fcntl.
16208         * modules/stdlib-safer (Depends-on): Add stdlib.
16209         (configure.ac): Set indicator.
16210         * modules/unistd-safer (configure.ac): Likewise.
16211         * modules/tmpfile-safer (configure.ac): Likewise.
16212         (Depends-on): Add tmpfile.
16213         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16214         active.
16215         * tests/test-fopen.c (includes): Test safer versions when they are
16216         in use.
16217         * tests/test-open.c (includes): Likewise.
16218
16219         popen: fix cygwin 1.5 bug when stdin closed
16220         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16221         * modules/popen: New file.
16222         * modules/popen-tests: Likewise.
16223         * tests/test-popen.c: Likewise.
16224         * m4/popen.m4: Likewise.
16225         * lib/popen.c: Likewise.
16226         * lib/stdio.in.h (popen): New declaration.
16227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16228         * modules/stdio (Makefile.am): Likewise.
16229         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16230
16231 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16232
16233         maint.mk: give full control over update-copyright exclusions
16234         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16235         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16236         (update-copyright): Don't force inclusion of top-level
16237         ChangeLog.  Don't force exclusion of all COPYING files, but make
16238         them the default exclusion instead.
16239
16240 2009-08-16  Bruno Haible  <bruno@clisp.org>
16241
16242         Fix test failures on Solaris 10.
16243         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16244         tests when Solaris iconv() is used.
16245         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16246         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16247         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16248         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16249         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16250
16251 2009-08-16  Bruno Haible  <bruno@clisp.org>
16252
16253         Fix test failures on Solaris 10.
16254         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16255         'tr' program and pass it as first argument.
16256         * tests/test-pipe-filter-gi1.sh: Likewise.
16257         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16258         program as first argument.
16259         * tests/test-pipe-filter-gi1.c (main): Likewise.
16260
16261 2009-08-16  Eric Blake  <ebb9@byu.net>
16262
16263         fpurge: fix previous commits
16264         * modules/fpurge (Makefile.am): Make replacement conditional,
16265         partially reverting 2007-04-29 change; missed in previous
16266         attempt.
16267         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16268         is missing.
16269
16270 2009-08-16  Bruno Haible  <bruno@clisp.org>
16271
16272         Clarify fpurge's effect on the file position.
16273         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16274         * tests/test-fpurge.c (main): Make a second pass for checking the file
16275         position.
16276
16277 2009-08-16  Bruno Haible  <bruno@clisp.org>
16278
16279         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16280         declaration of fpurge is missing.
16281         * tests/test-fpurge.c (main): Check that the file has not more contents
16282         than expected. Close the file before removing it.
16283
16284 2009-08-15  Eric Blake  <ebb9@byu.net>
16285
16286         fpurge: don't wrap working cygwin implementation
16287         * lib/fpurge.c (fpurge): Fix comment typo.
16288         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16289         1.7 to avoid replacement.
16290         * tests/test-fpurge.c (main): Enhance test.
16291
16292 2009-08-15  Eric Blake  <ebb9@byu.net>
16293         and Jim Meyering  <meyering@redhat.com>
16294
16295         test-update-copyright: skip if perl is insufficient
16296         * tests/test-update-copyright.sh: Failure to run maintainer tool
16297         should not cause testsuite failure on cygwin 1.5.
16298
16299 2009-08-14  Eric Blake  <ebb9@byu.net>
16300
16301         doc: mention more functions added in cygwin 1.7.0
16302         * doc/posix-headers/limits.texi (limits.h): Update for recent
16303         cygwin additions.
16304         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16305         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16306         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16307         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16308         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16309
16310 2009-08-14  Eric Blake  <ebb9@byu.net>
16311
16312         maint.mk: simplify update-copyright rule
16313         * top/maint.mk (update-copyright-local): Delete, and document how
16314         to do it in cfg.mk instead.
16315         (update-copyright-exclude-regexp): Delete, and document how to do
16316         it in .x-update-copyright instead.
16317         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16318         exclude ChangeLog.
16319
16320 2009-08-14  Bruno Haible  <bruno@clisp.org>
16321
16322         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16323
16324 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16325
16326         maint.mk: support update-copyright-env
16327         * top/maint.mk (update-copyright-env): Define place-holder.
16328         (update-copyright): Expand $(update-copyright-env) before
16329         invoking update-copyright.
16330
16331 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16332
16333         update-copyright: implement forced reformatting
16334         * build-aux/update-copyright: Implement and document
16335         UPDATE_COPYRIGHT_FORCE.
16336         * tests/test-update-copyright.sh: Test it.
16337
16338 2009-08-14  Eric Blake  <ebb9@byu.net>
16339         and Bruno Haible  <bruno@clisp.org>
16340
16341         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16342         * tests/test-locale.c: Revert previous patch related to NULL.
16343         * tests/test-stdio.c: Likewise.
16344         * tests/test-stdlib.c: Likewise.
16345         * tests/test-string.c: Likewise.
16346         * tests/test-unistd.c: Likewise.
16347         * modules/time-tests (Depends-on): Add verify.
16348         * modules/wchar-tests (Depends-on): Likewise.
16349         * tests/test-time.c: Test for NULL compliance.
16350         * tests/test-wchar.c: Likewise.
16351         * modules/locale (Depends-on): Add stddef.
16352         * modules/stdio (Depends-on): Likewise.
16353         * modules/stdlib (Depends-on): Likewise.
16354         * modules/string (Depends-on): Likewise.
16355         * modules/time (Depends-on): Likewise.
16356         * modules/unistd (Depends-on): Likewise.
16357         * modules/wchar (Depends-on): Likewise.
16358         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16359         * lib/stdlib.in.h (includes): Likewise.
16360         * lib/string.in.h (includes): Likewise.
16361         * lib/time.in.h (includes): Likewise.
16362         * lib/unistd.in.h (includes): Likewise.
16363         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
16364         replaced.
16365         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16366         * m4/stddef_h.m4: New file.
16367         * modules/stddef: Likewise.
16368         * lib/stddef.in.h: Likewise.
16369         * modules/stddef-tests: Likewise.
16370         * tests/test-stddef.c: Likewise.
16371         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
16372         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
16373         * doc/posix-headers/locale.texi (locale.h): Likewise.
16374         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
16375         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16376         * doc/posix-headers/string.texi (string.h): Likewise.
16377         * doc/posix-headers/time.texi (time.h): Likewise.
16378         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
16379         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
16380
16381 2009-08-14  Eric Blake  <ebb9@byu.net>
16382
16383         doc: improve git diff of texinfo files
16384         * .gitattributes: Add rule for *.texi files, with hint on how to
16385         use it.
16386         Copied from m4, and based on a report by Bruno Haible.
16387
16388 2009-08-14  Bruno Haible  <bruno@clisp.org>
16389
16390         Disable multithread support by default on Cygwin 1.5.x for real.
16391         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
16392
16393 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16394
16395         update-copyright: much ado about intervals
16396         * build-aux/update-copyright: Implement and document
16397         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
16398         of copyright year intervals.
16399         Also, document UPDATE_COPYRIGHT_YEAR.
16400         * tests/test-update-copyright.sh: Test it.
16401
16402         update-copyright: convert 2-digit to 4-digit years
16403         * build-aux/update-copyright: Implement and document.
16404         * tests/test-update-copyright.sh: Update.
16405
16406 2009-08-14  Jim Meyering  <meyering@redhat.com>
16407
16408         test-exclude: avoid coreutils "make check" failure
16409         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
16410         just as in test-argmatch.c.
16411
16412 2009-08-13  Eric Blake  <ebb9@byu.net>
16413
16414         test-dup2: fix bad assumption
16415         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
16416         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
16417
16418         test-version-etc: fix CRLF portability issue
16419         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
16420         recognize \r.
16421         * tests/test-argp-version-etc-1.sh: Likewise.
16422
16423         getopt: update client modules
16424         * modules/argp (Depends-on): Use getopt-gnu.
16425         * modules/git-merge-changelog (Depends-on): Likewise.
16426         * modules/long-options (Depends-on): Likewise.
16427         * modules/xstrtol (Depends-on): Likewise.
16428
16429 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16430
16431         * tests/test-version-etc.sh: Don't fail on different
16432         project/version.  Don't fail on CRLF differences.  Rewrite to use
16433         multiple -e instead of multiple sed forks, suggested by Eric Blake
16434         <ebb9@byu.net>.
16435         * tests/test-argp-version-etc-1.sh: Likewise.
16436
16437 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16438
16439         * tests/test-version-etc.sh: Don't fail on different
16440         project/version.
16441
16442 2009-08-12  Bruno Haible  <bruno@clisp.org>
16443
16444         Tests for modules 'getopt-posix', 'getopt-gnu'.
16445         * modules/getopt-posix-tests: New file.
16446         * tests/test-getopt.c: New file.
16447         * tests/test-getopt.h: New file.
16448         * tests/test-getopt_long.h: New file.
16449
16450         New modules 'getopt-posix', 'getopt-gnu'.
16451         * modules/getopt-gnu: New file, renamed from modules/getopt.
16452         * modules/getopt-posix: New file.
16453         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
16454         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
16455         (gl_GETOPT): Remove macro.
16456         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
16457         Disable the test against BSD systems that declare optreset. Test
16458         against mingw bug. Test against lack of support of optional arguments
16459         on many platforms.
16460         * doc/glibc-headers/getopt.texi: Update module name and list of
16461         relevant platforms.
16462         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
16463         'getopt-gnu' and more portability problems.
16464         * NEWS: Mention the changes.
16465
16466 2009-08-12  Bruno Haible  <bruno@clisp.org>
16467
16468         Ensure that optarg etc. get declared by <unistd.h>.
16469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
16470         AC_USE_SYSTEM_EXTENSIONS.
16471         * modules/getopt (Depends-on): Add 'extensions'.
16472
16473 2009-08-12  Bruno Haible  <bruno@clisp.org>
16474
16475         Avoid test link errors.
16476         * modules/pipe-filter-ii-tests (Makefile.am): Define
16477         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
16478         * modules/pipe-filter-gi-tests (Makefile.am): Define
16479         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
16480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16481
16482 2009-08-12  Bruno Haible  <bruno@clisp.org>
16483
16484         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
16485         gl_GETOPT_SUBSTITUTE before.
16486         (gl_GETOPT): Use it.
16487         * m4/argp.m4 (gl_ARGP): Update.
16488         Reported by Sergey Poznyakoff.
16489
16490         * m4/getopt.m4: Reorder macros.
16491         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
16492         (gl_GETOPT_SUBSTITUTE): Remove macro.
16493
16494 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16495
16496         Minor improvement in gitlog-to-changelog
16497
16498         * build-aux/gitlog-to-changelog: New option `--format' makes
16499         output format string configurable.
16500
16501 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16502
16503         Optimize exclude: use hash tables for non-wildcard patterns.
16504
16505         * lib/exclude.c: Include hash.h and mbuiter.h
16506         (struct exclude_pattern, exclude_segment): New data types.
16507         (struct exclude): Rewrite.
16508         (fnmatch_pattern_has_wildcards): New function.
16509         (new_exclude_segment, free_exclude_segment): New functions.
16510         (excluded_file_pattern_p, excluded_file_name_p): New functions.
16511         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
16512         * lib/exclude.h (is_fnmatch_pattern): New prototype.
16513         * modules/exclude: Depend on hash and mbuiter.
16514
16515         * modules/exclude-tests: New file.
16516         * tests/test-exclude.c: New file.
16517         * tests/test-exclude1.sh: New file.
16518         * tests/test-exclude2.sh: New file.
16519         * tests/test-exclude3.sh: New file.
16520         * tests/test-exclude4.sh: New file.
16521         * tests/test-exclude5.sh: New file.
16522         * tests/test-exclude6.sh: New file.
16523         * tests/test-exclude7.sh: New file.
16524
16525 2009-08-12  Bruno Haible  <bruno@clisp.org>
16526
16527         Ensure that getopt() gets declared by <unistd.h>.
16528         * lib/unistd.in.h: Conditionally include getopt.h.
16529         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
16530         Set GNULIB_UNISTD_H_GETOPT.
16531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16532         GNULIB_UNISTD_H_GETOPT.
16533         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
16534
16535 2009-08-12  Bruno Haible  <bruno@clisp.org>
16536
16537         Clarify logic.
16538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
16539         gl_replace_getopt instead of GETOPT_H.
16540
16541 2009-08-12  Bruno Haible  <bruno@clisp.org>
16542
16543         * m4/getopt.m4: Add comments.
16544
16545 2009-08-12  Bruno Haible  <bruno@clisp.org>
16546
16547         Disable multithread support by default on Cygwin 1.5.x.
16548         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
16549         set gl_use_threads=no if not specified otherwise.
16550
16551 2009-08-11  Bruno Haible  <bruno@clisp.org>
16552
16553         Avoid compilation error on NetBSD 5.0.
16554         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
16555         * tests/test-stdio.c: Likewise.
16556         * tests/test-stdlib.c: Likewise.
16557         * tests/test-string.c: Likewise.
16558         * tests/test-unistd.c: Likewise.
16559         Reported by Greg Troxel <gdt@ir.bbn.com>
16560         at <https://savannah.gnu.org/support/?106973>.
16561
16562 2009-08-11  Bruno Haible  <bruno@clisp.org>
16563
16564         * modules/dup2-tests (Depends-on): Remove close.
16565
16566         Undo 2009-07-19 commit.
16567         * modules/acl-tests (Depends-on): Remove close.
16568         * modules/binary-io-tests (Depends-on): Likewise.
16569         * modules/closein-tests (Depends-on): Likewise.
16570         * modules/flock-tests (Depends-on): Likewise.
16571         * modules/fsync-tests (Depends-on): Likewise.
16572         * modules/lseek-tests (Depends-on): Likewise.
16573         * modules/pipe-tests (Depends-on): Likewise.
16574         * modules/posix_spawn-tests (Depends-on): Likewise.
16575         * modules/posix_spawnp-tests (Depends-on): Likewise.
16576         * modules/stat-time-tests (Depends-on): Likewise.
16577         * modules/yesno-tests (Depends-on): Likewise.
16578
16579 2009-08-10  Bruno Haible  <bruno@clisp.org>
16580
16581         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
16582
16583 2009-08-10  Bruno Haible  <bruno@clisp.org>
16584
16585         Fix a gcc warning.
16586         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
16587
16588 2009-08-10  Bruno Haible  <bruno@clisp.org>
16589
16590         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
16591         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
16592         not only the first time.
16593         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
16594         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
16595         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
16596         is 1, not only the the first time.
16597
16598 2009-08-10  Bruno Haible  <bruno@clisp.org>
16599
16600         Make it possible to use module 'gethostname' without module 'close'.
16601         * lib/unistd.in.h (close): Evoke a link error only if
16602         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16604         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16605         * modules/unistd (Makefile.am): Substitute
16606         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16607         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
16608         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16609         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16610         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16611         * modules/sys_ioctl (Makefile.am): Substitute
16612         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16613         * modules/socket (configure.ac): On native Windows, set
16614         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
16615         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16616         Reported by Sam Steingold <sds@gnu.org>.
16617
16618 2009-08-10  Bruno Haible  <bruno@clisp.org>
16619
16620         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
16621         * modules/ioctl (configure.ac): Likewise.
16622
16623 2009-08-10  Bruno Haible  <bruno@clisp.org>
16624
16625         Avoid collision between gnulib wrapper and libintl wrapper.
16626         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
16627         already defined in intl/printf.c.
16628         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
16629         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
16630
16631 2009-08-09  Bruno Haible  <bruno@clisp.org>
16632
16633         Make <sys/select.h> really self-contained, also on Solaris 10.
16634         * lib/sys_select.in.h: Include <string.h>.
16635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
16636         Solaris 10 problem.
16637         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
16638         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
16639         Reported by Jim Meyering.
16640
16641 2009-08-09  Bruno Haible  <bruno@clisp.org>
16642
16643         Avoid warnings from 'aclocal' that are due to a use of macro name
16644         AM_XGETTEXT_OPTION that is not defined in automake.
16645         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
16646         automake.
16647         * modules/error (configure.ac): Likewise.
16648         * modules/propername (configure.ac): Likewise.
16649         * modules/vasprintf (configure.ac): Likewise.
16650         * modules/verror (configure.ac): Likewise.
16651         * modules/xprintf (configure.ac): Likewise.
16652         * modules/xvasprintf (configure.ac): Likewise.
16653
16654 2009-08-08  Bruno Haible  <bruno@clisp.org>
16655
16656         Avoid compilation error in C++ mode.
16657         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
16658         Reported by Sam Steingold <sds@gnu.org>.
16659
16660 2009-08-08  Bruno Haible  <bruno@clisp.org>
16661
16662         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
16663         for the various Unix platforms.
16664         * doc/posix-headers/limits.texi: Update platforms list regarding
16665         HOST_NAME_MAX.
16666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16667
16668 2009-08-07  Jim Meyering  <meyering@redhat.com>
16669
16670         selinux-at: fix typo in a comment
16671         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
16672         Spotted by Paolo Bonzini.
16673
16674         selinux-at: remove redundant m4 code, add documentation
16675         * modules/selinux-at (configure.ac): Remove redundant code.
16676         LIB_SELINUX is already set via the dependent module, selinux-h.
16677         (Include): Add quotes around selinux-at.h.
16678         * lib/selinux-at.h: Add documentation.
16679         Reported by Bruno Haible in
16680         http://marc.info/?l=gnulib-bug&m=124958988300749
16681
16682 2009-08-07  Bruno Haible  <bruno@clisp.org>
16683
16684         Avoid link error on MacOS X 10.3 and 10.4.
16685         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
16686         on non-ELF systems.
16687         * lib/argp-pv.c (argp_program_version): Likewise.
16688         Reported by Simon Josefsson.
16689
16690 2009-08-07  Simon Josefsson  <simon@josefsson.org>
16691
16692         * tests/test-version-etc.sh: Use $EXEEXT.
16693
16694 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
16695
16696         update-copyright: update documentation to point to maint.mk
16697         * build-aux/update-copyright: Here.
16698
16699 2009-08-06  Jim Meyering  <meyering@redhat.com>
16700
16701         maint.mk: support update-copyright-local
16702         * top/maint.mk (update-copyright-local): Define place-holder.
16703         (update-copyright): Depend on $(update-copyright-local).
16704
16705 2009-08-06  Jim Meyering  <meyering@redhat.com>
16706
16707         selinux-at: new module
16708         Initially written for coreutils, this module will soon be
16709         used by findutils, too.
16710         * MODULES.html.sh [Misc]: Add selinux-at.
16711         * lib/selinux-at.h: New file, from coreutils.
16712         * lib/selinux-at.c: Likewise.
16713         * modules/selinux-at: Likewise.
16714         (License): Change from LGPL to GPL, since it depends
16715         on the GPL'd openat module.
16716
16717         doc: update README
16718         * README: Remove references to cogito.
16719         Remove cvs-repo-updating instructions from 2007.
16720         Don't imply that CVS is better if you have limited disk space.
16721
16722 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16723
16724         update-copyright: support C-style comments
16725         * build-aux/update-copyright: Implement and document.
16726         * tests/test-update-copyright.sh: Test.
16727
16728 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16729
16730         update-copyright: support omitted "(C)"
16731         * build-aux/update-copyright: Implement and document.  Also,
16732         allow variable whitespace before "(C)".
16733         * tests/test-update-copyright.sh: Test.
16734
16735 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16736
16737         update-copyright: don't trip on non-FSF copyright statements
16738         * build-aux/update-copyright: Fix so that the first correctly
16739         formatted FSF copyright statement is recognized no matter what
16740         appears before it.  Update documentation.
16741         * tests/test-update-copyright.sh: Test that.
16742
16743 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16744
16745         update-copyright: clean up code a little
16746         * build-aux/update-copyright: Append "_re" to the name of any
16747         variable holding a regular expression.
16748         Replace "old" and "new" with "stmt" in variable names.
16749         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
16750         handled correctly.
16751         Format code more consistently.
16752
16753 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16754
16755         update-copyright-tests: improve portability
16756         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
16757         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
16758
16759 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16760
16761         update-copyright: support @copyright{} and &copy;
16762         * build-aux/update-copyright: Implement and document.
16763         * tests/test-update-copyright.sh: Test.
16764
16765 2009-08-04  Jim Meyering  <meyering@redhat.com>
16766
16767         update-copyright-tests: correctly test EOL=\r\n handling
16768         * tests/test-update-copyright.sh: Put \r at the end of some lines
16769         for the dos-eol tests.  Based on a patch by Joel E. Denny.
16770
16771         maint.mk: make update-copyright exclusion list more configurable
16772         * top/maint.mk (update-copyright): Default to excluding COPYING,
16773         but allow an override, in case someone does want to update that file.
16774
16775         maint.mk: don't update copyright date in COPYING
16776         * top/maint.mk (update-copyright): Exclude COPYING.
16777
16778         maint.mk: add a copyright-updating rule
16779         * top/maint.mk (update-copyright): New rule.
16780         Derived from coreutils/Makefile.am.
16781
16782         update-copyright: rename some variables
16783         * build-aux/update-copyright: Rename a few variables for clarity.
16784         Tweak syntax.  List Joel E. Denny as coauthor.
16785
16786 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16787
16788         update-copyright: fix bug for 2-digit last year and add tests
16789         * build-aux/update-copyright: Fix bug.
16790         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
16791         specified.
16792         * modules/update-copyright-tests: New
16793         * tests/test-update-copyright.sh: New.
16794
16795 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16796
16797         update-copyright: handle leading tabs in line prefix
16798         * build-aux/update-copyright: Count leading tabs as 8 spaces
16799         when computing margin.  This helps with the formatting of
16800         ChangeLogs, for example.
16801         Fix documentation a little.
16802
16803 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16804
16805         update-copyright: support EOL=\r\n
16806         * build-aux/update-copyright: Implement that.
16807
16808 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16809
16810         update-copyright: automatically format copyright statements
16811         * build-aux/update-copyright: Implement that.
16812         Also, be a little more predictable and safer by always failing
16813         when the full copyright format is not perfectly recognized as an
16814         unbroken whole.  Discussed at
16815         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
16816         Rewrite documentation.
16817
16818 2009-08-03  Bruno Haible  <bruno@clisp.org>
16819
16820         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
16821
16822 2009-08-02  Bruno Haible  <bruno@clisp.org>
16823
16824         Tests for module 'uname'.
16825         * modules/uname-tests: New file.
16826         * tests/test-uname.c: New file.
16827
16828         New module 'uname'.
16829         * lib/uname.c: New file.
16830         * m4/uname.m4: New file.
16831         * modules/uname: New file.
16832         * doc/posix-functions/uname.texi: Mention the new module.
16833
16834 2009-08-02  Bruno Haible  <bruno@clisp.org>
16835
16836         Tests for module 'sys_utsname'.
16837         * modules/sys_utsname-tests: New file.
16838         * tests/test-sys_utsname.c: New file.
16839
16840         New module 'sys_utsname'.
16841         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
16842         * m4/sys_utsname_h.m4: New file.
16843         * modules/sys_utsname: New file.
16844         * doc/posix-headers/sys_utsname.texi: Mention the new module.
16845
16846 2009-08-02  Bruno Haible  <bruno@clisp.org>
16847
16848         Implicitly initialize the sockets library.
16849         * lib/gethostname.c: Include sockets.h.
16850         (rpl_gethostname): Invoke gl_sockets_startup.
16851         * lib/socket.c: Include sockets.h.
16852         (rpl_socket): Invoke gl_sockets_startup.
16853         * modules/gethostname (Depends-on): Add sockets.
16854         * modules/socket (Depends-on): Likewise.
16855         * tests/test-poll.c: Don't include sockets.h.
16856         (main): Don't invoke gl_sockets_startup.
16857         * tests/test-select.c: Don't include sockets.h.
16858         (main): Don't invoke gl_sockets_startup.
16859
16860 2009-08-02  Bruno Haible  <bruno@clisp.org>
16861
16862         Allow multiple calls to gl_sockets_startup.
16863         * lib/sockets.c (initialized_sockets_version): New variable.
16864         (gl_sockets_startup): Do nothing if already called for this or a higher
16865         version.
16866         (gl_sockets_cleanup): Reset initialized_sockets_version.
16867
16868 2009-08-03  Simon Josefsson  <simon@josefsson.org>
16869
16870         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
16871         different project/version.
16872
16873 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
16874             Bruno Haible  <bruno@clisp.org>
16875
16876         Tests for module 'pipe-filter-gi'.
16877         * modules/pipe-filter-gi-tests: New file.
16878         * tests/test-pipe-filter-gi1.sh: New file.
16879         * tests/test-pipe-filter-gi1.c: New file.
16880         * tests/test-pipe-filter-gi2.sh: New file.
16881         * tests/test-pipe-filter-gi2-main.c: New file.
16882         * tests/test-pipe-filter-gi2-child.c: New file.
16883
16884         New module 'pipe-filter-gi'.
16885         * lib/pipe-filter-gi.c: New file.
16886         * modules/pipe-filter-gi: New file.
16887
16888 2009-08-02  Bruno Haible  <bruno@clisp.org>
16889             Paolo Bonzini  <bonzini@gnu.org>
16890
16891         Tests for module 'pipe-filter-ii'.
16892         * modules/pipe-filter-ii-tests: New file.
16893         * tests/test-pipe-filter-ii1.sh: New file.
16894         * tests/test-pipe-filter-ii1.c: New file.
16895         * tests/test-pipe-filter-ii2.sh: New file.
16896         * tests/test-pipe-filter-ii2-main.c: New file.
16897         * tests/test-pipe-filter-ii2-child.c: New file.
16898
16899         New module 'pipe-filter-ii'.
16900         * lib/pipe-filter.h: New file.
16901         * lib/pipe-filter-ii.c: New file.
16902         * lib/pipe-filter-aux.h: New file.
16903         * modules/pipe-filter-ii: New file.
16904
16905 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16906
16907         * lib/gc-libgcrypt.c: Change copyright to FSF.
16908         * lib/gc-gnulib.c: Likewise.
16909
16910 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
16911
16912         * lib/gethostname.c: Include limits.h.
16913
16914 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16915             Bruno Haible  <bruno@clisp.org>
16916
16917         Ensure HOST_NAME_MAX as part of the gethostname module.
16918         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16919         define also HOST_NAME_MAX.
16920         * tests/test-gethostname.c: Include <limits.h>.
16921         (main): Check also HOST_NAME_MAX.
16922         * doc/posix-headers/limits.texi: Document the mingw problem.
16923
16924 2009-08-02  Bruno Haible  <bruno@clisp.org>
16925
16926         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16927         Add comments.
16928
16929 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16930
16931         * lib/gethostname.c: Add Windows wrapper.
16932         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16933         * modules/gethostname: Depend on sys_socket & errno, for also
16934         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16935         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16936
16937 2009-07-31  Jim Meyering  <meyering@redhat.com>
16938
16939         getloadavg: fix symbol name in comment
16940         * lib/getloadavg.c: Correct a typo I introduced when adding
16941         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16942         Matt Kraai spotted the problem.
16943
16944 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16945
16946         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16947         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16948         code also if ! defined N_NAME_POINTER.
16949         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16950         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16951         but the n_name member is a 12-byte array.
16952
16953 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
16954
16955         update-copyright: generalize comment handling
16956         * build-aux/update-copyright: Handle copyright statements
16957         within more comment styles.
16958         Document usage.
16959         Report any file with an external copyright holder or parse failure.
16960
16961 2009-07-29  Jim Meyering  <meyering@redhat.com>
16962
16963         mktime: correct setting of REPLACE_MKTIME
16964         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
16965
16966         update-copyright: new module
16967         * modules/update-copyright: New file.
16968         * build-aux/update-copyright: New file.
16969         * MODULES.html.sh (maint+release support): Add update-copyright.
16970
16971 2009-07-27  Bruno Haible  <bruno@clisp.org>
16972
16973         Fix compilation error when <ctime> is used and mktime is replaced.
16974         * lib/time.in.h (mktime): New declaration.
16975         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
16976         REPLACE_MKTIME instead of defining mktime in config.h.
16977         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
16978         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
16979         Reported by Ross McFarland <rwmcfa1@neces.com>.
16980
16981 2009-07-27  Bruno Haible  <bruno@clisp.org>
16982
16983         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
16984         Reported by Matt Kraai <mkraai@beckman.com>.
16985
16986 2009-07-25  Jim Meyering  <meyering@redhat.com>
16987
16988         maint.mk: avoid warnings about missing files
16989         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
16990         diagnostic when .prev-version does not exist.
16991         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
16992         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
16993         nonexistent cfg.mk.
16994         Suggestions from Simon Josefsson.
16995
16996 2009-07-25  Bruno Haible  <bruno@clisp.org>
16997
16998         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
16999         defined as macros. Needed on QNX 6.4.1.
17000         Reported by Matt Kraai <mkraai@beckman.com>.
17001
17002 2009-07-23  Jim Meyering  <meyering@redhat.com>
17003
17004         maint.mk: invoke "make dist" with a working value of XZ_OPT
17005         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17006
17007 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17008
17009         Make fseeko.c compile on QNX.
17010         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17011
17012 2009-07-22  Peter Simons  <simons@cryp.to>
17013
17014         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17015         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17016         * lib/md4.h: Likewise.
17017         * lib/md5.h: Likewise.
17018         * lib/sha1.h: Likewise.
17019         * lib/sha256.h: Likewise.
17020         * lib/sha512.h: Likewise.
17021
17022         tests-sha1: don't assign literal string to 'char *' variable
17023         * tests/test-sha1.c (main): Declare locals with "const" to match
17024         attributes of the right hand side.
17025
17026 2009-07-21  Eric Blake  <ebb9@byu.net>
17027
17028         dup2: fix more mingw problems
17029         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17030         fd to itself.
17031         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17032         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17033         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17034         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17035         care of mingw bugs.
17036
17037 2009-07-21  Jim Meyering  <meyering@redhat.com>
17038
17039         vc-list-files: avoid failure when /bin/sh is dash
17040         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17041         On some Debian based systems, /bin/sh is a symlink to dash, and running
17042         this command would omit the "/" following each 'tests' prefix:
17043           dash -x build-aux/vc-list-files -C . tests
17044         That is because bash and dash work differently:
17045           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17046           bash ok
17047           dash odd
17048
17049 2009-07-21  Eric Blake  <ebb9@byu.net>
17050
17051         dup2-tests: test previous patch
17052         * modules/dup2-tests: New file.
17053         * tests/test-dup2.c: Likewise.
17054         * tests/test-open.c (main): Avoid unspecified behavior.
17055         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17056         test.
17057
17058         dup2: work around mingw and cygwin 1.5 bug
17059         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17061         * modules/unistd (Makefile.am): Substitute it.
17062         * lib/unistd.in.h (dup2): Declare the replacement.
17063         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17064         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17065         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17066         * modules/execute (Depends-on): Add dup2.
17067         * modules/fseterr (Depends-on): Likewise.
17068         * modules/pipe (Depends-on): Likewise.
17069         * modules/posix_spawn-internal (Depends-on): Likewise.
17070
17071 2009-07-21  Bruno Haible  <bruno@clisp.org>
17072
17073         * modules/.gitattributes: New file.
17074
17075 2009-07-20  Bruno Haible  <bruno@clisp.org>
17076
17077         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17078         (main): Use it.
17079
17080 2009-07-20  Eric Blake  <ebb9@byu.net>
17081
17082         test-pipe: make a bit more robust.
17083         * tests/test-pipe.c (myerr): Allow error messages regardless of
17084         what we do to stderr.
17085         (test_pipe): Rearrange to avoid deadlock.
17086         (child_main): Try a larger read, to ensure we avoided deadlock.
17087         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17088         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17089         if misused.
17090
17091 2009-07-19  Jim Meyering  <meyering@redhat.com>
17092
17093         fts: avoid false-positive cycle-detection
17094         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17095         for each new command line argument.
17096
17097 2009-07-19  Bruno Haible  <bruno@clisp.org>
17098
17099         Fix build error on mingw with the modules sys_select and unistd.
17100         * modules/acl-tests (Depends-on): Add close.
17101         * modules/binary-io-tests (Depends-on): Likewise.
17102         * modules/closein-tests (Depends-on): Likewise.
17103         * modules/flock-tests (Depends-on): Likewise.
17104         * modules/fsync-tests (Depends-on): Likewise.
17105         * modules/lseek-tests (Depends-on): Likewise.
17106         * modules/pipe-tests (Depends-on): Likewise.
17107         * modules/posix_spawn-tests (Depends-on): Likewise.
17108         * modules/posix_spawnp-tests (Depends-on): Likewise.
17109         * modules/stat-time-tests (Depends-on): Likewise.
17110         * modules/yesno-tests (Depends-on): Likewise.
17111
17112 2009-07-19  Bruno Haible  <bruno@clisp.org>
17113
17114         Unify conditionals.
17115         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17116         macros, not at the compiler macros.
17117         * lib/pipe.c: Likewise.
17118         * lib/execute.c: Likewise.
17119         * lib/spawni.c: Likewise.
17120
17121 2009-07-19  Bruno Haible  <bruno@clisp.org>
17122
17123         Fix handling of closed stdin/stdout/stderr on mingw.
17124         * lib/w32spawn.h: Include unistd.h.
17125         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17126         file descriptor with O_NOINHERIT flag.
17127         (fd_safer_noinherit): New function, based on fd-safer.c.
17128         (dup_safer_noinherit): New function, based on dup-safer.c.
17129         (undup_safer_noinherit): New function.
17130         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17131         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17132         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17133         instead of fd_safer.
17134         * tests/test-pipe.c: Include <windows.h>.
17135         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17136
17137         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17138         from main.
17139         (test_pipe): Pass an extra argument for disambiguation.
17140         (main): Invoke parent_main or child_main.
17141
17142         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17143         consistently.
17144
17145 2009-07-18  Eric Blake  <ebb9@byu.net>
17146
17147         test-pipe: fix mingw build
17148         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17149
17150 2009-07-18  Bruno Haible  <bruno@clisp.org>
17151
17152         * modules/pipe-tests (Makefile.am): Fix typo.
17153
17154 2009-07-18  Eric Blake  <ebb9@byu.net>
17155
17156         error: fix mingw build
17157         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17158         Reported by Bruno Haible.
17159
17160         error: avoid undefined use of stdout
17161         * lib/error.c (error, error_at_line): Check that fd 1 is open
17162         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17163         is handling faults and the close_stdout module wants to report the
17164         detection of closed stdout as an error.
17165
17166 2009-07-17  Eric Blake  <ebb9@byu.net>
17167
17168         pipe: be robust in face of closed fds
17169         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17170         should cause child to misbehave.
17171         * modules/pipe-tests: New module.
17172         * tests/test-pipe.c: New file.
17173         * tests/test-pipe.sh: New file.
17174         Reported by Akim Demaille.
17175
17176 2009-07-14  Bruno Haible  <bruno@clisp.org>
17177
17178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17179         Reported by anonymous kc.
17180
17181 2009-07-07  Jim Meyering  <meyering@redhat.com>
17182
17183         maint.mk: don't look for translatable strings in *.m4 or *.mk
17184         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17185         when searching for translatable strings.
17186
17187 2009-07-05  Jim Meyering  <meyering@redhat.com>
17188
17189         remove superfluous parentheses in STREQ definition
17190         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17191         * lib/getugroups.c (STREQ): Likewise.
17192         * lib/fnmatch.c (STREQ): Likewise.
17193         Spotted by Bruno Haible.
17194
17195 2009-07-04  Jim Meyering  <meyering@redhat.com>
17196
17197         argv-iter: new module
17198         * MODULES.html.sh: Add argv-iter.
17199         * lib/argv-iter.c, lib/argv-iter.h: New files.
17200         * modules/argv-iter: New file.
17201         * modules/argv-iter-tests: New file.
17202         * tests/test-argv-iter.c: Test it.
17203
17204 2009-07-04  Bruno Haible  <bruno@clisp.org>
17205
17206         Fix assertion.
17207         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17208         contains more exact copies of a given entry than file2, leave the extra
17209         copies unpaired rather than aborting.
17210         Reported by Eric Blake.
17211
17212 2009-07-02  Bruno Haible  <bruno@clisp.org>
17213
17214         Speedup git-merge-changelog for git cherry-pick.
17215         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17216         (entries_mapping_get): New function, extracted from compute_mapping.
17217         (entries_mapping_reverse_get): New function.
17218         (compute_mapping): Add a 'full' argument. Return the result in a
17219         'struct entries_mapping'.
17220         (main): Update. Access the mappings through entries_mapping_get.
17221         Reported by Eric Blake.
17222
17223 2009-07-02  Bruno Haible  <bruno@clisp.org>
17224
17225         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17226         best_i.
17227
17228 2009-07-02  Bruno Haible  <bruno@clisp.org>
17229
17230         Speed up approximate search for matching ChangeLog entries.
17231         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17232         argument. Call fstrcmp_bounded instead of fstrcmp.
17233         (compute_mapping, try_split_merged_entry, main): Update callers.
17234
17235 2009-07-02  Bruno Haible  <bruno@clisp.org>
17236
17237         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17238
17239 2009-06-30  Bruno Haible  <bruno@clisp.org>
17240
17241         Reduce the number of uc_is_cased calls.
17242         * lib/unicase.h (casing_suffix_context_t): Add
17243         'first_char_except_ignorable' field.
17244         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17245         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17246         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17247         Update initializer.
17248         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17249         case-ignorable characters.
17250         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17251         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17252         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17253         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17254         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17255
17256 2009-06-30  Bruno Haible  <bruno@clisp.org>
17257
17258         Tests for module 'unicase/ignorable'.
17259         * modules/unicase/ignorable-tests: New file.
17260         * tests/unicase/test-ignorable.c: New file, generated by
17261         gen-uni-tables.
17262
17263         Tests for module 'unicase/cased'.
17264         * modules/unicase/cased-tests: New file.
17265         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17266         * tests/unicase/test-predicate-part1.h: New file, derived from
17267         tests/unictype/test-predicate-part1.h.
17268         * tests/unicase/test-predicate-part2.h: New file, same as
17269         tests/unictype/test-predicate-part2.h.
17270
17271         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17272         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17273         (output_casing_properties): New function.
17274         (main): Call it.
17275         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17276         * lib/unicase/cased.c: Include unictype/bitmap.h.
17277         (uc_is_cased): Define through a bitmap lookup.
17278         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17279         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17280         (uc_is_case_ignorable): Define through a bitmap lookup.
17281         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17282         lib/unictype/bitmap.h.
17283         (Depends-on): Add inline. Clean up.
17284         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17285         lib/unictype/bitmap.h.
17286         (Depends-on): Add inline. Clean up.
17287         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17288         recognition.
17289         * tests/unicase/test-u16-tolower.c (main): Likewise.
17290         * tests/unicase/test-u32-tolower.c (main): Likewise.
17291
17292 2009-06-30  Bruno Haible  <bruno@clisp.org>
17293
17294         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17295         * lib/unicase/u16-casemap.c: Likewise.
17296         * lib/unicase/u32-casemap.c: Likewise.
17297
17298 2009-06-29  Bruno Haible  <bruno@clisp.org>
17299
17300         Define u32_casefold as a wrapper around u32_ct_casefold.
17301         * lib/unicase/u32-casefold.c: Update.
17302         * modules/unicase/u32-casefold (Depends-on): Add
17303         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17304         unicase/empty-suffix-context. Clean up.
17305
17306         Define u16_casefold as a wrapper around u16_ct_casefold.
17307         * lib/unicase/u16-casefold.c: Update.
17308         * modules/unicase/u16-casefold (Depends-on): Add
17309         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17310         unicase/empty-suffix-context. Clean up.
17311
17312         Define u8_casefold as a wrapper around u8_ct_casefold.
17313         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17314         * lib/unicase/u8-casefold.c: Update.
17315         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17316         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17317
17318         Define u32_totitle as a wrapper around u32_ct_totitle.
17319         * lib/unicase/u32-totitle.c: Update.
17320         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17321         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17322
17323         Define u16_totitle as a wrapper around u16_ct_totitle.
17324         * lib/unicase/u16-totitle.c: Update.
17325         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17326         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17327
17328         Define u8_totitle as a wrapper around u8_ct_totitle.
17329         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17330         functions.
17331         (FUNC): Delegate to U_CT_TOTITLE.
17332         * lib/unicase/u8-totitle.c: Update.
17333         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17334         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17335
17336         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17337         invocation.
17338         * modules/unicase/u32-tolower (Depends-on): Add
17339         unicase/empty-prefix-context, unicase/empty-suffix-context.
17340
17341         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17342         invocation.
17343         * modules/unicase/u16-tolower (Depends-on): Add
17344         unicase/empty-prefix-context, unicase/empty-suffix-context.
17345
17346         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17347         * modules/unicase/u8-tolower (Depends-on): Add
17348         unicase/empty-prefix-context, unicase/empty-suffix-context.
17349
17350         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17351         invocation.
17352         * modules/unicase/u32-toupper (Depends-on): Add
17353         unicase/empty-prefix-context, unicase/empty-suffix-context.
17354
17355         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17356         invocation.
17357         * modules/unicase/u16-toupper (Depends-on): Add
17358         unicase/empty-prefix-context, unicase/empty-suffix-context.
17359
17360         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17361         * modules/unicase/u8-toupper (Depends-on): Add
17362         unicase/empty-prefix-context, unicase/empty-suffix-context.
17363
17364         New module 'unicase/u32-ct-casefold'.
17365         * lib/unicase/u32-ct-casefold.c: New file.
17366         * modules/unicase/u32-ct-casefold: New file.
17367
17368         New module 'unicase/u16-ct-casefold'.
17369         * lib/unicase/u16-ct-casefold.c: New file.
17370         * modules/unicase/u16-ct-casefold: New file.
17371
17372         New module 'unicase/u8-ct-casefold'.
17373         * lib/unicase/u8-ct-casefold.c: New file.
17374         * lib/unicase/u-ct-casefold.h: New file, derived from
17375         lib/unicase/u-casefold.h.
17376         * modules/unicase/u8-ct-casefold: New file.
17377
17378         New module 'unicase/u32-ct-totitle'.
17379         * lib/unicase/u32-ct-totitle.c: New file.
17380         * modules/unicase/u32-ct-totitle: New file.
17381
17382         New module 'unicase/u16-ct-totitle'.
17383         * lib/unicase/u16-ct-totitle.c: New file.
17384         * modules/unicase/u16-ct-totitle: New file.
17385
17386         New module 'unicase/u8-ct-totitle'.
17387         * lib/unicase/u8-ct-totitle.c: New file.
17388         * lib/unicase/u-ct-totitle.h: New file, derived from
17389         lib/unicase/u-totitle.h.
17390         * modules/unicase/u8-ct-totitle: New file.
17391
17392         New module 'unicase/u32-ct-tolower'.
17393         * lib/unicase/u32-ct-tolower.c: New file.
17394         * modules/unicase/u32-ct-tolower: New file.
17395
17396         New module 'unicase/u16-ct-tolower'.
17397         * lib/unicase/u16-ct-tolower.c: New file.
17398         * modules/unicase/u16-ct-tolower: New file.
17399
17400         New module 'unicase/u8-ct-tolower'.
17401         * lib/unicase/u8-ct-tolower.c: New file.
17402         * modules/unicase/u8-ct-tolower: New file.
17403
17404         New module 'unicase/u32-ct-toupper'.
17405         * lib/unicase/u32-ct-toupper.c: New file.
17406         * modules/unicase/u32-ct-toupper: New file.
17407
17408         New module 'unicase/u16-ct-toupper'.
17409         * lib/unicase/u16-ct-toupper.c: New file.
17410         * modules/unicase/u16-ct-toupper: New file.
17411
17412         New module 'unicase/u8-ct-toupper'.
17413         * lib/unicase/u8-ct-toupper.c: New file.
17414         * modules/unicase/u8-ct-toupper: New file.
17415
17416         Add context arguments to u*_casemap functions.
17417         * lib/unicase/unicasemap.h: Include unicase.h.
17418         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
17419         suffix_context arguments.
17420         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
17421         functions.
17422         (FUNC): Add prefix_context and suffix_context arguments. Use
17423         uc_is_cased and uc_is_case_ignorable.
17424         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
17425         * lib/unicase/u16-casemap.c: Likewise.
17426         * lib/unicase/u32-casemap.c: Likewise.
17427         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
17428         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17429         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
17430         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17431         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
17432         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17433
17434         New module 'unicase/u32-suffix-context'.
17435         * lib/unicase/u32-suffix-context.c: New file.
17436         * modules/unicase/u32-suffix-context: New file.
17437
17438         New module 'unicase/u16-suffix-context'.
17439         * lib/unicase/u16-suffix-context.c: New file.
17440         * modules/unicase/u16-suffix-context: New file.
17441
17442         New module 'unicase/u8-suffix-context'.
17443         * lib/unicase/u8-suffix-context.c: New file.
17444         * lib/unicase/u-suffix-context.h: New file.
17445         * modules/unicase/u8-suffix-context: New file.
17446
17447         New module 'unicase/empty-suffix-context'.
17448         * lib/unicase/empty-suffix-context.c: New file.
17449         * modules/unicase/empty-suffix-context: New file.
17450
17451         New module 'unicase/u32-prefix-context'.
17452         * lib/unicase/u32-prefix-context.c: New file.
17453         * modules/unicase/u32-prefix-context: New file.
17454
17455         New module 'unicase/u16-prefix-context'.
17456         * lib/unicase/u16-prefix-context.c: New file.
17457         * modules/unicase/u16-prefix-context: New file.
17458
17459         New module 'unicase/u8-prefix-context'.
17460         * lib/unicase/u8-prefix-context.c: New file.
17461         * lib/unicase/u-prefix-context.h: New file.
17462         * lib/unicase/context.h: New file.
17463         * modules/unicase/u8-prefix-context: New file.
17464
17465         New module 'unicase/empty-prefix-context'.
17466         * lib/unicase/empty-prefix-context.c: New file.
17467         * modules/unicase/empty-prefix-context: New file.
17468
17469         New module 'unicase/ignorable'.
17470         * lib/unicase/ignorable.c: New file.
17471         * modules/unicase/ignorable: New file.
17472
17473         New module 'unicase/cased'.
17474         * lib/unicase/caseprop.h: New file.
17475         * lib/unicase/cased.c: New file.
17476         * modules/unicase/cased: New file.
17477
17478         New functions for case mapping of substrings.
17479         * lib/unicase.h (casing_prefix_context_t): New type.
17480         (unicase_empty_prefix_context): New variable.
17481         (u8_casing_prefix_context, u16_casing_prefix_context,
17482         u32_casing_prefix_context, u8_casing_prefixes_context,
17483         u16_casing_prefixes_context, u32_casing_prefixes_context): New
17484         declarations.
17485         (casing_suffix_context_t): New type.
17486         (unicase_empty_suffix_context): New variable.
17487         (u8_casing_suffix_context, u16_casing_suffix_context,
17488         u32_casing_suffix_context, u8_casing_suffixes_context,
17489         u16_casing_suffixes_context, u32_casing_suffixes_context,
17490         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
17491         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
17492         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
17493         declarations.
17494
17495 2009-06-28  Jim Meyering  <meyering@redhat.com>
17496
17497         boostrap: indent only with spaces
17498         * build-aux/bootstrap: Indent only with spaces, never TABs.
17499
17500         bootstrap: split long lines
17501         * build-aux/bootstrap: Keep line length < 80.
17502
17503         bootstrap: sync from coreutils
17504         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
17505         just as autoreconf does.  Verify a list of prerequisite
17506         package-name,version-number pairs if defined in bootstrap.conf.
17507         Refer to README-prereq, if prerequisites are not satisfied.
17508
17509 2009-06-27  Eric Blake  <ebb9@byu.net>
17510
17511         tests: add test for bogus NULL definition
17512         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
17513         * tests/test-stdlib.c: Likewise.
17514         * tests/test-string.c: Likewise.
17515         * tests/test-locale.c: Likewise.
17516         * tests/test-unistd.c: Likewise.
17517         * modules/stdio-tests (Depends-on): Add verify.
17518         * modules/stdlib-tests (Depends-on): Likewise.
17519         * modules/string-tests (Depends-on): Likewise.
17520         * modules/locale-tests (Depends-on): Likewise.
17521         * modules/unistd-tests (Depends-on): Likewise.
17522
17523 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17524
17525         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
17526         self-explaining comment.
17527         * m4/selinux-selinux-h: Update serial.
17528         (gl_LIBSELINUX): New macro, adding a warning for missing development
17529         packages to code extracted from...
17530         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
17531         Add warning for missing development packages here, too.
17532
17533 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
17534
17535         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
17536
17537 2009-06-25  Eric Blake  <ebb9@byu.net>
17538
17539         version-etc: fix regression
17540         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
17541         gcc.
17542         (version_etc): Use it, to catch bugs with trailing NULL.
17543         * lib/version-etc.c (version_etc_arn): Delete unused argument.
17544         (version_etc_va): Fix logic bug.
17545         * modules/version-etc-tests: Add test.
17546         * tests/test-version-etc.c: New file.
17547         * tests/test-version-etc.sh: Likewise.
17548
17549 2009-06-25  Sam Steingold  <sds@gnu.org>
17550
17551         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
17552         mbtowc declaration.
17553
17554 2009-06-25  Eric Blake  <ebb9@byu.net>
17555
17556         fpurge: migrate into <stdio.h>
17557         * lib/fpurge.h: Delete...
17558         * lib/stdio.in.h (fpurge): ...and declare here, instead.
17559         * lib/fpurge.c (fpurge): Change declaring header.
17560         * modules/fpurge (Files): Drop deleted file.
17561         (Depends-on): Add stdio.
17562         (configure.ac): Set witness.
17563         * modules/stdio (Makefile.am): Support fpurge macros.
17564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
17566         * lib/fflush.c: Update client.
17567         * tests/test-fpurge.c: Likewise.
17568         * NEWS: Mention the change.
17569
17570 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17571
17572         * lib/argp-version-etc.c (program_authors): Add const
17573         qualifier.
17574         * lib/version-etc.c: Fix typos in the comments.
17575         * modules/argp-version-etc: Depends on version-etc.
17576
17577 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17578
17579         argp-version-etc: new module.
17580
17581         * lib/argp-version-etc.c: New file.
17582         * lib/argp-version-etc.h: New file.
17583         * modules/argp-version-etc: New file.
17584         * modules/argp-version-etc-tests: New file.
17585         * tests/test-argp-version-etc.c: New test.
17586         * tests/test-argp-version-etc-1.sh: New test.
17587
17588 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17589
17590         Provide additional interfaces and documentation for version-etc
17591         module.
17592
17593         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
17594         interfaces.
17595         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
17596         prototypes.
17597
17598 2009-06-24  Bruno Haible  <bruno@clisp.org>
17599
17600         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
17601         HAVE_LIB${NAME} macro.
17602         Reported by Sam Steingold <sds@gnu.org>.
17603
17604 2009-06-23  Simon Josefsson  <simon@josefsson.org>
17605
17606         * modules/hash-tests (test_hash_LDADD): Link to libintl when
17607         needed.
17608
17609 2009-06-21  Bruno Haible  <bruno@clisp.org>
17610
17611         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
17612         work.
17613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
17614         together with LIB${NAME}, LTLIB${NAME}.
17615         Reported by Sam Steingold <sds@gnu.org>.
17616
17617 2009-06-20  Jim Meyering  <meyering@redhat.com>
17618
17619         tests: make sc_require_test_exit_idiom more generic
17620         * top/maint.mk (Exit_witness_file): New overridable variable.
17621         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
17622         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
17623
17624 2009-06-19  Jim Meyering  <meyering@redhat.com>
17625
17626         hash: reverse order of src/dst parameters in an internal interface
17627         * lib/hash.c (transfer_entries): Reverse order of parameters to
17628         put DST before SRC.  Adjust callers.
17629
17630         tests: test-hash: avoid wholesale duplication
17631         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
17632         Instead, use a loop and add a single conditional.
17633
17634         tests: test-hash: allow seed selection via a command line argument
17635         * tests/test-hash.c (get_seed): New function.
17636         (main): Use it.
17637
17638 2009-06-19  Eric Blake  <ebb9@byu.net>
17639
17640         hash: avoid memory leak on allocation failure
17641         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
17642         failure.  Factor repeated algorithm...
17643         (transfer_entries): ...into new helper routine.
17644         (hash_delete): React to hash_rehash return value.
17645
17646         hash: reduce memory pressure in hash_rehash no-op case
17647         * lib/hash.c (next_prime): Avoid overflow.
17648         (hash_initialize): Factor bucket size computation...
17649         (compute_bucket_size): ...into new helper function.
17650         (hash_rehash): Use new function and open coding to reduce memory
17651         pressure, and avoid a memory leak in USE_OBSTACK code.
17652         Reported by Jim Meyering.
17653
17654 2009-06-18  Eric Blake  <ebb9@byu.net>
17655
17656         hash: make rotation more obvious
17657         * modules/hash (Depends-on): Add bitrotate and stdint.
17658         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
17659         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
17660         (SIZE_MAX): Rely on headers for definition.
17661         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
17662         (raw_hasher): Use rotr_sz.
17663         Suggested by Jim Meyering.
17664
17665         hash: fix memory leak in last patch
17666         * lib/hash.c (hash_rehash): Avoid memory leak.
17667
17668         hash: avoid no-op rehashing
17669         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
17670
17671         hash: provide default callback functions
17672         * lib/hash.c (raw_hasher, raw_comparator): New functions.
17673         (hash_initialize): Use them as defaults.
17674         * tests/test-hash.c (main): Test this.
17675
17676         hash: minor optimization
17677         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
17678         when possible.
17679         (hash_initialize): Document this promise.
17680         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
17681         * tests/test-hash.c (hash_compare_strings): Test this.
17682
17683 2009-06-18  Bruno Haible  <bruno@clisp.org>
17684
17685         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
17686         going to be replaced anyway.
17687
17688 2009-06-18  Bruno Haible  <bruno@clisp.org>
17689
17690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
17691         in one place.
17692         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
17693         be replaced anyway.
17694
17695 2009-06-18  Eric Blake  <ebb9@byu.net>
17696
17697         hash: check for resize before insertion
17698         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
17699         threshold before insertion, so that a pathological hash_rehash
17700         that fills every bucket can still trigger another rehash.
17701
17702 2009-06-18  Jim Meyering  <meyering@redhat.com>
17703
17704         hash-tests: add a loop around the small tests
17705         * tests/test-hash.c (main): Repeat small tests with selected
17706         small initial table sizes.
17707
17708 2009-06-17  Eric Blake  <ebb9@byu.net>
17709
17710         hash: minor cleanups
17711         * lib/hash.h (hash_entry): Make opaque, by moving...
17712         * lib/hash.c (hash_entry): ...here.
17713         (hash_insert): Clarify restrictions on what can be inserted.
17714         (hash_get_next): Clarify when it is safe to remove an element
17715         during traversal.
17716         (check_tuning): Skip verification when tuning is known safe.
17717         (hash_initialize): Clarify restrictions on tuning.
17718
17719 2009-06-17  Jim Meyering  <jim@meyering.net>
17720         and Eric Blake  <ebb9@byu.net>
17721
17722         hash-tests: new module
17723         * modules/hash-tests: New file.
17724         * tests/test-hash.c: New file.
17725
17726 2009-06-17  Eric Blake  <ebb9@byu.net>
17727
17728         strstr-simple: document new module
17729         * MODULES.html.sh: Document new module.
17730
17731         strstr, strcasestr: replace on platforms with broken memchr
17732         * modules/strstr: Split into...
17733         * modules/strstr-simple: ...new module that does not care about
17734         performance, but does care about glibc bug.
17735         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
17736         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
17737         if platform memchr is broken, per Debian bug 521737.
17738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
17739         memchr.
17740         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
17741         * doc/posix-functions/strstr.texi (strstr): Document the fix.
17742         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17743         * modules/mountlist (Depends-on): Add strstr-simple.
17744         * modules/gen-uni-tables (Depends-on): Likewise.
17745         * modules/argz (Depends-on): Add strstr.
17746
17747 2009-06-17  Bruno Haible  <bruno@clisp.org>
17748
17749         * modules/posix_spawn-internal (Depends-on): Add errno.
17750
17751 2009-06-17  Bruno Haible  <bruno@clisp.org>
17752
17753         Define missing ESTALE on Interix 3.5.
17754         * lib/errno.in.h (ESTALE): Assign a value if missing.
17755         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
17756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
17757         missing.
17758         * doc/posix-headers/errno.texi: Mention the Interix bug.
17759         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
17760
17761 2009-06-15  Eric Blake  <ebb9@byu.net>
17762
17763         memchr, memchr2: add valgrind exception
17764         * lib/memchr.valgrind: New file.
17765         * lib/memchr2.valgrind: New file.
17766         * modules/memchr (Files): Distribute valgrind file.
17767         * modules/memchr2 (Files): Likewise.
17768
17769         docs: memchr is no longer obsolete
17770         * MODULES.html.sh: Move memchr from obsolete to string.h section.
17771         * lib/string.in.h (memchr): Simplify logic.
17772
17773 2009-06-14  Jim Meyering  <meyering@redhat.com>
17774
17775         link-follow: fix the "checking..." message to not mention trailing slash
17776         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
17777         never considered trailing slashes.
17778
17779 2009-06-14  Bruno Haible  <bruno@clisp.org>
17780
17781         * m4/memchr.m4: Mention also the bug on IA-64.
17782         * doc/posix-functions/memchr.texi: Likewise.
17783
17784 2009-06-12  Eric Blake  <ebb9@byu.net>
17785
17786         memchr: detect broken x86_64 and alpha implementations
17787         * modules/memchr-tests (Depends-on): Move mmap detection...
17788         * modules/memchr (Depends-on): ...here.
17789         (configure.ac): Set indicator.
17790         * lib/string.in.h (memchr): Declare replacement.
17791         * modules/string (Makefile.am): Trigger replacement.
17792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17793         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
17794         bugs.
17795         * doc/posix-functions/memchr.texi (memchr): Document the bug.
17796         * modules/getpagesize (License): Relax license.
17797
17798 2009-06-11  Bruno Haible  <bruno@clisp.org>
17799
17800         * lib/idpriv.h: Add more references.
17801
17802 2009-06-08  Bruno Haible  <bruno@clisp.org>
17803
17804         Tests for module 'idpriv-droptemp'.
17805         * modules/idpriv-droptemp-tests: New file.
17806         * tests/test-idpriv-droptemp.sh: New file.
17807         * tests/test-idpriv-droptemp.su.sh: New file.
17808         * tests/test-idpriv-droptemp.c: New file.
17809
17810         New module 'idpriv-droptemp'.
17811         * lib/idpriv-droptemp.c: New file.
17812         * modules/idpriv-droptemp: New file.
17813
17814 2009-06-08  Bruno Haible  <bruno@clisp.org>
17815
17816         Tests for module 'idpriv-drop'.
17817         * modules/idpriv-drop-tests: New file.
17818         * tests/test-idpriv-drop.sh: New file.
17819         * tests/test-idpriv-drop.su.sh: New file.
17820         * tests/test-idpriv-drop.c: New file.
17821
17822         New module 'idpriv-drop'.
17823         * lib/idpriv.h: New file.
17824         * lib-idpriv-drop.c: New file.
17825         * m4/idpriv.m4: New file.
17826         * modules/idpriv-drop: New file.
17827
17828 2009-06-08  Bruno Haible  <bruno@clisp.org>
17829
17830         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
17831         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17832         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17833         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17834         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17835         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17836         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17837
17838 2009-06-08  Eric Blake  <ebb9@byu.net>
17839
17840         test-strstr: use memory fence, when possible
17841         * tests/test-strstr.c (main): Use memory fence, in order to be
17842         more likely to trigger Debian bug 521737.
17843         * modules/strstr-tests (Files): Pull in additional files.
17844
17845         memchr: no longer obsolete, for wider field testing
17846         * modules/memchr (Status, Notice): Delete, this module is no
17847         longer obsolete.
17848         * modules/vasnprintf (Depends-on): Add memchr.
17849
17850 2009-06-07  Jim Meyering  <meyering@redhat.com>
17851
17852         hash: declare some functions with the warn_unused_result attribute
17853         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
17854
17855 2009-06-07  Bruno Haible  <bruno@clisp.org>
17856
17857         * tests/test-alignof.c: Don't test int64_t if it does not exist.
17858         Reported by Eric Blake.
17859
17860 2009-06-06  Eric Blake  <ebb9@byu.net>
17861
17862         test-alignof: fix typo with long double
17863         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
17864         compiler error.
17865
17866 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
17867
17868         Escape non-texinfo { and }s.
17869         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
17870         markup error.
17871
17872 2009-06-04  Jim Meyering  <meyering@redhat.com>
17873
17874         gitlog-to-changelog: don't infloop on an empty commit log
17875         * build-aux/gitlog-to-changelog: Warn about an empty log message.
17876         Reported by Boris Petersen <transacid@centerim.org>.
17877
17878 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
17879
17880         version-etc: extend for packagers
17881         Add three new configure options, intended for packagers:
17882           --with-packager="packager name"
17883           --with-packager-version="packager-specific version"
17884           --with-packager-bug-reports="packager bug reporting"
17885         An example with coreutils:
17886           $ ./configure \
17887             --with-packager=Gentoo \
17888             --with-packager-bug-report=http://bugs.gentoo.org/ \
17889             --with-packager-version="patchset 1.6"
17890           $ ./src/ls --version | head -n2
17891           ls (GNU coreutils) 7.1-dirty
17892           Packaged by Gentoo (patchset 1.6)
17893         Note that the bug reporting info via --help doesn't show up because
17894         coreutils uses its own custom emit_bug_reporting_address() implementation
17895         in src/system.h.  If it didn't, it'd look like:
17896           $ ./src/ls --help | tail -n4
17897           Report bugs to <bug-coreutils@gnu.org>.
17898           Report Gentoo bugs to <http://bugs.gentoo.org/>.
17899           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
17900           General help using GNU software: <http://www.gnu.org/gethelp/>.
17901         * lib/version-etc.c: Print new information, if provided.
17902         * m4/version-etc.m4: New file.
17903         * modules/version-etc (Files): Add m4/version-etc.m4.
17904         (configure.ac): Add gl_VERSION_ETC.
17905
17906 2009-05-31  Bruno Haible  <bruno@clisp.org>
17907
17908         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
17909         and 'int64_t'.
17910         * modules/alignof-tests (Dependencies): Add stdint.
17911         Reported by Eric Blake.
17912
17913 2009-05-31  Bruno Haible  <bruno@clisp.org>
17914
17915         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
17916         restriction due to compiler bugs.
17917         Reported by Eric Blake.
17918
17919 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17920             Bruno Haible  <bruno@clisp.org>
17921
17922         Fix test-alignof failure.
17923         * lib/alignof.h (alignof_slot): New macro.
17924         (alignof_type): New macro, with the same semantics as the previous
17925         'alignof'.
17926         (alignof): Alias to alignof_slot.
17927         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17928         check that the results are usable as constant expressions.
17929
17930 2009-05-31  Bruno Haible  <bruno@clisp.org>
17931
17932         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17933         * tests/test-memchr.c (main): Check that memchr does not read past the
17934         first occurrence of the byte.
17935         * tests/test-strstr.c (main): Update comment.
17936         Suggested by Eric Blake.
17937
17938 2009-05-30  Bruno Haible  <bruno@clisp.org>
17939
17940         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17941         detail how to use dumpbin.
17942         Reported by David Byron <dbyron@dbyron.com>.
17943
17944 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17945
17946         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17947
17948 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17949
17950         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17951
17952 2009-05-28  Bruno Haible  <bruno@clisp.org>
17953
17954         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
17955         build-aux/ files.
17956
17957 2009-05-28  Simon Josefsson  <simon@josefsson.org>
17958
17959         * gnulib-tool (func_import): Transform license on build-aux/ files too.
17960
17961 2009-05-27  Simon Josefsson  <simon@josefsson.org>
17962
17963         * gnulib-tool (sed_transform_main_lib_file)
17964         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
17965         regexps.
17966
17967 2009-05-26  Simon Josefsson  <simon@josefsson.org>
17968
17969         * tests/test-strstr.c: Add another self-test.
17970         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
17971         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
17972
17973 2009-05-23  Bruno Haible  <bruno@clisp.org>
17974
17975         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
17976         change.
17977
17978 2009-05-21  Bruno Haible  <bruno@clisp.org>
17979
17980         Simplify use of mode_t varargs.
17981         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
17982         uses 'mode_t' or 'int'.
17983         * lib/openat.c (openat): Likewise.
17984         * lib/open-safer.c (open_safer): Likewise.
17985         * m4/mode_t.m4: New file.
17986         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
17987         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
17988         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
17989         * modules/open (Files): Add m4/mode_t.m4.
17990         * modules/openat (Files): Likewise.
17991         * modules/fcntl-safer (Files): Likewise.
17992         Suggested by Eric Blake.
17993
17994 2009-05-21  Pádraig Brady  <P@draigbrady.com>
17995
17996         * doc/glibc-functions/fallocate.texi: New file.
17997         * doc/gnulib.texi: Include it.
17998
17999 2009-05-21  Eric Blake  <ebb9@byu.net>
18000             Bruno Haible  <bruno@clisp.org>
18001
18002         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18003         invocations.
18004         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18005
18006 2009-05-21  Eric Blake  <ebb9@byu.net>
18007             Bruno Haible  <bruno@clisp.org>
18008
18009         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18010         include_next. Fix of 2008-11-20 commit.
18011         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18012         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18013         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18014         NEXT_MATH_H.
18015         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18016         instead of NEXT_MATH_H.
18017
18018 2009-05-21  Bruno Haible  <bruno@clisp.org>
18019
18020         Avoid redefinition warnings for SIZE_MAX.
18021         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18022         Reported by Simon Josefsson.
18023
18024 2009-05-21  Bruno Haible  <bruno@clisp.org>
18025
18026         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18027         AC_CACHE_VAL.
18028
18029 2009-05-20  Bruno Haible  <bruno@clisp.org>
18030
18031         Make zeroptr.h work on mingw.
18032         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18033         mprotect.
18034         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18035         * modules/memchr2-tests (configure.ac): Likewise.
18036         * modules/memcmp-tests (configure.ac): Likewise.
18037         * modules/memmem-tests (configure.ac): Likewise.
18038         * modules/memrchr-tests (configure.ac): Likewise.
18039         Reported by Simon Josefsson.
18040
18041 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18042
18043         * tests/test-glob.c: Include string.h for strcmp prototype.
18044
18045 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18046
18047         * modules/getdelim (Depends-on): Add explicit stdint, although it
18048         was implicitly already pulled in via realloc-posix.
18049         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18050
18051 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18052
18053         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18054         G. Christensen" <tgc@jupiterrise.com>.
18055         * m4/sys_socket_h.m4: Check for sa_family_t.
18056         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18057         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18058         * tests/test-sys_socket.c: Check that sa_family_t works.
18059
18060 2009-05-18  Eric Blake  <ebb9@byu.net>
18061
18062         maint.mk: allow gnulib_dir in VPATH build
18063         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18064
18065 2009-05-15  Jim Meyering  <meyering@redhat.com>
18066
18067         maint.mk: Give gnulib_dir a default definition.
18068         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18069         Thus, most packages no longer need to specify this variable in cfg.mk
18070
18071 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18072
18073         rename.m4: fix typos that would make non-mingw cross-configure fail
18074         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18075
18076 2009-05-13  Eric Blake  <ebb9@byu.net>
18077
18078         mmap-anon: avoid out-of-order autoconf expansion
18079         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18080         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18081         * modules/memchr-tests (Depends-on): Add extensions.
18082         * modules/memchr2-tests (Depends-on): Add extensions.
18083         * modules/memcmp-tests (Depends-on): Add extensions.
18084         * modules/memmem-tests (Depends-on): Add extensions.
18085         * modules/memrchr-tests (Depends-on): Add extensions.
18086
18087 2009-05-13  Bruno Haible  <bruno@clisp.org>
18088
18089         Make some tests ISO C 99 compliant.
18090         * tests/zerosize-ptr.h: New file.
18091         * tests/test-memchr.c: Include zerosize-ptr.h.
18092         (main): Use a zero-size object pointer instead of NULL.
18093         * tests/test-memchr2.c: Include zerosize-ptr.h.
18094         (main): Use a zero-size object pointer instead of NULL.
18095         * tests/test-memcmp.c: Include zerosize-ptr.h.
18096         (main): Use a zero-size object pointer instead of NULL.
18097         * tests/test-memmem.c: Include zerosize-ptr.h.
18098         (main): Use a zero-size object pointer instead of NULL.
18099         * tests/test-memrchr.c: Include zerosize-ptr.h.
18100         (main): Use a zero-size object pointer instead of NULL.
18101         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18102         m4/mmap-anon.m4.
18103         (Depends-on): Add getpagesize.
18104         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18105         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18106         m4/mmap-anon.m4.
18107         (Depends-on): Add getpagesize.
18108         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18109         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18110         m4/mmap-anon.m4.
18111         (Depends-on): Add getpagesize.
18112         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18113         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18114         m4/mmap-anon.m4.
18115         (Depends-on): Add getpagesize.
18116         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18117         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18118         m4/mmap-anon.m4.
18119         (Depends-on): Add getpagesize.
18120         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18121
18122 2009-05-12  Bruno Haible  <bruno@clisp.org>
18123
18124         Tests for module 'alignof'.
18125         * modules/alignof-tests: New file.
18126         * tests/test-alignof.c: New file.
18127
18128 2009-05-12  Bruno Haible  <bruno@clisp.org>
18129
18130         Fix alignof macro.
18131         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18132         vendor compilers that are always correct.
18133
18134 2009-05-12  Bruno Haible  <bruno@clisp.org>
18135
18136         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18137         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18138         not whether its fully works.
18139
18140 2009-05-12  Bruno Haible  <bruno@clisp.org>
18141
18142         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18143
18144 2009-05-12  Jim Meyering  <meyering@redhat.com>
18145
18146         * top/maint.mk: Adjust backslash alignment.
18147
18148 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18149
18150         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18151
18152 2009-05-11  Eric Blake  <ebb9@byu.net>
18153
18154         argp: avoid undefined behavior
18155         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18156         macros.
18157
18158 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18159
18160         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18161         user.name to prevent git commit from complaining.
18162
18163 2009-05-10  Bruno Haible  <bruno@clisp.org>
18164
18165         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18166         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18167         it rewrites every file name only once.
18168         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18169
18170 2009-05-08  Bruno Haible  <bruno@clisp.org>
18171
18172         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18173         instead of 'max'.
18174
18175 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18176
18177         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18178         sockaddr_storage test.
18179
18180 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18181
18182         * modules/sys_socket (Makefile.am): Substitute
18183         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18184         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18185         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18186         * tests/test-sys_socket.c: Check sockaddr_storage.
18187
18188 2009-05-08  Bruno Haible  <bruno@clisp.org>
18189
18190         New module 'alignof'.
18191         * lib/alignof.h: New file.
18192         * modules/alignof: New file.
18193
18194 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18195             Bruno Haible  <bruno@clisp.org>
18196
18197         Fix test-file-has-acl on FreeBSD.
18198         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18199         mask is implicitly added.
18200         * tests/test-file-has-acl.c: Include <signal.h>.
18201         (main): Terminate the test after 5 seconds.
18202         * modules/acl-tests (configure.ac): Check for alarm function.
18203
18204 2009-05-04  Bruno Haible  <bruno@clisp.org>
18205
18206         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18208         * modules/errno (configure.ac): Drop AC_REQUIRE.
18209         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18210         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18211
18212 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18213
18214         * modules/glob-tests: New module.
18215         * tests/test-glob.c: Add.
18216
18217 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18218
18219         * modules/fnmatch-tests: New module.
18220         * tests/test-fnmatch.c: Add.
18221
18222 2009-05-04  Eric Blake  <ebb9@byu.net>
18223
18224         maint: make the new no-submodule-changes rule VPATH-safe
18225         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18226
18227 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18228             Bruno Haible  <bruno@clisp.org>
18229
18230         acl: Fix infinite loop on FreeBSD.
18231         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18232         of return value from acl_get_entry.
18233         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18234         Likewise.
18235
18236 2009-05-03  Bruno Haible  <bruno@clisp.org>
18237
18238         * lib/acl-internal.h (acl_entries): Clarify return value.
18239         * lib/acl_entries.c (acl_entries): Likewise.
18240
18241 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18242
18243         Bug fix in acl module.
18244         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18245
18246 2009-05-03  Bruno Haible  <bruno@clisp.org>
18247
18248         Create gperf-generated file in the source dir, not in the build dir.
18249         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18250         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18251         * modules/unicase/locale-language (unicase/locale-languages.h):
18252         Likewise.
18253         * modules/unicase/special-casing (unicase/special-casing-table.h):
18254         Likewise.
18255         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18256         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18257         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18258         Reported by Ralf Wildenhues.
18259
18260 2009-05-03  Bruno Haible  <bruno@clisp.org>
18261
18262         * modules/fnmatch (Description, configure.ac): Taken from
18263         fnmatch-posix.
18264         * modules/fnmatch-posix: Turn into a symbolic reference to the
18265         'fnmatch' module, and deprecate.
18266         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18267
18268 2009-05-03  Bruno Haible  <bruno@clisp.org>
18269
18270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18271         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18272         Reported by Ralf Wildenhues.
18273
18274 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18275
18276         * m4/fnmatch.m4: Fix fnmatch re-define.
18277
18278 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18279
18280         priv-set: new module and tests; adapt write-any-file
18281         * lib/priv-set.c: New file.
18282         * lib/priv-set.h: New file.
18283         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18284         * lib/write-any-file.c: Simplify by using priv-set module.
18285         * m4/priv-set.m4: New file.
18286         * modules/priv-set: New file.
18287         * modules/unlinkdir: Add dependency on priv-set module.
18288         * modules/write-any-file: Likewise.
18289
18290         Tests for module 'priv-set'.
18291         * modules/priv-set-tests: New file.
18292         * tests/test-priv-set.c: New file.
18293
18294 2009-05-03  Jim Meyering  <meyering@redhat.com>
18295             Bruno Haible  <bruno@clisp.org>
18296
18297         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18298         use the converted UTF-8 variant of the name instead.
18299
18300 2009-05-03  Jim Meyering  <meyering@redhat.com>
18301
18302         tests: tighten some getdate tests
18303         * tests/test-getdate.c (main): Tighten tests: require equality,
18304         not just greater than.  Set TZ envvar to UTC0.
18305
18306 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18307
18308         getdate: correctly interpret "next monday" when run on a Monday
18309         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18310         that e.g., "next tues" (when run on a tuesday) results in a date
18311         that is one week in the future, and not today's date.
18312         I.e., add a week when the wday is the same as the current one.
18313         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18314         and earlier by Martin Bernreuther and Jan Minář.
18315         * tests/test-getdate.c (main): Check that "next DAY" is always in
18316         the future and that "last DAY" is always in the past.
18317
18318 2009-05-02  Jim Meyering  <meyering@redhat.com>
18319
18320         build: ensure that a release build fails when a submodule is unclean
18321         * top/maint.mk (no-submodule-changes): New rule.
18322         (alpha beta major): Depend on it.
18323
18324 2009-05-02  Bruno Haible  <bruno@clisp.org>
18325
18326         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18327         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18328         shell variable gl_fnmatch_required to detect which variant is
18329         requested.
18330         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18331         gl_FUNC_FNMATCH_POSIX.
18332         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18333         exclude fnmatch-posix.
18334
18335 2009-05-02  Bruno Haible  <bruno@clisp.org>
18336
18337         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18338         * modules/mbsrtowcs (License): Change to LGPLv2+.
18339         * modules/strnlen1 (License): Likewise.
18340         Reported by Simon Josefsson.
18341
18342 2009-05-02  Bruno Haible  <bruno@clisp.org>
18343
18344         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18345         "cross".
18346         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18347         gnulib-tool was called with option --source-base=lib.
18348
18349 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18350
18351         Use automake *-local hooks without commands, for extensibility.
18352         * modules/localcharset (Makefile.am): Rename install-exec-local
18353         rule to install-exec-localcharset, and make it a prerequisite of
18354         install-exec-local.  Likewise, rename the uninstall-local rule to
18355         uninstall-localcharset, and make it a prerequisite of the former.
18356
18357 2009-05-01  Bruno Haible  <bruno@clisp.org>
18358
18359         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18360         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18361         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18362         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18363         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
18364         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18365         m4/locale-zh.m4, m4/codeset.m4.
18366
18367         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18368         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
18369         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18370         m4/locale-zh.m4.
18371
18372         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
18373         REPLACE_WCRTOMB if mbstate_t must be replaced.
18374         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
18375         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
18376
18377 2009-05-01  Bruno Haible  <bruno@clisp.org>
18378
18379         Avoid compiler warnings when redefining macros defined by <libintl.h>.
18380         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
18381         dngettext, dcngettext, textdomain, bindtextdomain,
18382         bind_textdomain_codeset): Undefine before redefining.
18383
18384 2009-04-30  Bruno Haible  <bruno@clisp.org>
18385
18386         Fix bug introduced on 2009-04-25.
18387         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
18388         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
18389         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
18390         is defined.
18391         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
18392         is defined.
18393         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
18394         is defined.
18395         Reported by Elbert_Pol <elbert.pol@gmail.com>.
18396
18397 2009-04-28  Bruno Haible  <bruno@clisp.org>
18398
18399         Comment tweaks.
18400         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
18401         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
18402         * lib/unicase.h (u*_casexfrm): Likewise.
18403         Reported by Paolo Bonzini.
18404
18405 2009-04-28  Bruno Haible  <bruno@clisp.org>
18406
18407         Fix a compilation error.
18408         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
18409         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
18410         Reported by Jim Meyering.
18411
18412 2009-04-27  Bruno Haible  <bruno@clisp.org>
18413
18414         New module 'libunistring'.
18415         * modules/libunistring: New file.
18416         * m4/libunistring.m4: New file.
18417         * MODULES.html.sh (Unicode string functions): Add it.
18418
18419 2009-04-27  Eric Blake  <ebb9@byu.net>
18420
18421         maint.mk: allow package-specific header to provide <config.h>
18422         * top/maint.mk (sc_require_config_h): New variable.
18423         (sc_require_config_h, sc_require_config_h_first): Use it.
18424
18425 2009-04-27  Simon Josefsson  <simon@josefsson.org>
18426
18427         * top/maint.mk (sc_avoid_if_before_free): Except
18428         useless-if-before-free script.
18429
18430 2009-04-27  Eric Blake  <ebb9@byu.net>
18431
18432         maintainer-makefile: depend on all required helper scripts
18433         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
18434         useless-if-before-free.
18435         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
18436         version, rather than assuming gnulib checkout is available.
18437         Reported by Simen Josefsson.
18438
18439 2009-04-26  Bruno Haible  <bruno@clisp.org>
18440
18441         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
18442         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
18443         "../" or "..".
18444
18445 2009-04-26  Bruno Haible  <bruno@clisp.org>
18446
18447         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
18448         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
18449         AC_LIB_HAVE_LINKFLAGS.
18450
18451 2009-04-26  Bruno Haible  <bruno@clisp.org>
18452
18453         Simplify calling convention of u*_conv_from_encoding.
18454         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
18455         u32_conv_from_encoding): Expect a resultbuf argument and return the
18456         result directly as a pointer.
18457         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
18458         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
18459         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
18460         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
18461         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
18462         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18463         Update.
18464         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
18465         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
18466         * lib/vasnprintf.c (VASNPRINTF): Update.
18467         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
18468         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
18469         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
18470         * NEWS: Mention the change.
18471
18472 2009-04-26  Bruno Haible  <bruno@clisp.org>
18473
18474         Simplify calling convention of u*_conv_to_encoding.
18475         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
18476         u32_conv_to_encoding): Expect a resultbuf argument and return the
18477         result directly as a pointer.
18478         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18479         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
18480         freeing scaled_offsets if mem_iconveha failed.
18481         * lib/unicase/u-casexfrm.h (FUNC): Update.
18482         * lib/uninorm/u-normxfrm.h (FUNC): Update.
18483         * lib/vasnprintf.c (VASNPRINTF): Update.
18484         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
18485         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
18486         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
18487         * NEWS: Mention the change.
18488
18489 2009-04-26  Bruno Haible  <bruno@clisp.org>
18490
18491         Avoid test failures on AIX and OSF/1.
18492         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
18493         malloc(0).
18494         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18495         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18496         Likewise.
18497         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
18498         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
18499         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
18500         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
18501         * doc/posix-functions/malloc.texi: Document the portability problem
18502         related to malloc(0).
18503
18504 2009-04-26  Bruno Haible  <bruno@clisp.org>
18505
18506         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
18507         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
18508         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
18509
18510 2009-04-25  Bruno Haible  <bruno@clisp.org>
18511
18512         Avoid link error when creating a namespace clean library.
18513         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
18514         as macro with arguments if already defined as an alias.
18515         * lib/signbitf.c (gl_signbitf): Don't undefine.
18516         * lib/signbitd.c (gl_signbitd): Don't undefine.
18517         * lib/signbitl.c (gl_signbitl): Don't undefine.
18518
18519 2009-04-25  Jim Meyering  <meyering@redhat.com>
18520
18521         vc-list-files: fix another quoting bug
18522         * build-aux/vc-list-files: Avoid sed backslash expansion
18523         of pathological directory names.
18524
18525 2009-04-25  Eric Blake  <ebb9@byu.net>
18526
18527         vc-list-files: fix shell quoting error
18528         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
18529         timestamp.
18530
18531 2009-04-25  Jim Meyering  <meyering@redhat.com>
18532
18533         vc-list-files: restore lost functionality with subdir argument
18534         * build-aux/vc-list-files: When given a non-"." sub-directory
18535         argument, substitute the $dir/ prefix back onto each resulting name.
18536         Otherwise, coreutils' root_tests check would fail.
18537
18538 2009-04-24  Eric Blake  <ebb9@byu.net>
18539
18540         vc-list-files: ignore git symlinks
18541         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
18542         than ls-files, to ignore git symlinks.
18543
18544         maint.mk: import improvements from m4
18545         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
18546         (move_if_change): Delete unused macro.
18547         (news-date-check, vc-diff-check): Support VPATH builds.
18548         (announcement): Likewise.  Split --bootstrap-tools list...
18549         (boostrap-tools): ...into separate list, which can be overridden
18550         in cfg.mk.
18551         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
18552         requiring dependency on useless-if-before-free module.
18553         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
18554         Support VPATH builds.
18555
18556 2009-04-24  Jim Meyering  <meyering@redhat.com>
18557
18558         maint.mk: remove coreutils-specific rules and variables
18559         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
18560         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
18561         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
18562
18563         maint.mk: remove obsolete rule
18564         * top/maint.mk (rel-check): Remove rule.
18565         (WGET, WGETFLAGS): Remove now-unused variables.
18566
18567 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18568
18569         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
18570         consistency.
18571
18572         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
18573         '$(PATH_SEPARATOR)' instead of ':'.
18574
18575 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18576
18577         * lib/getopt1.c (main): Use 'const' for static array.
18578
18579 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18580
18581         * top/maint.mk: Sync with coreutils.
18582         * NEWS: Explain incompatibilities.
18583
18584 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18585             Bruno Haible  <bruno@clisp.org>
18586
18587         Fix cross-compilation results.
18588         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
18589         statement, as third argument of AC_TRY_RUN.
18590         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18591         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18592         Likewise.
18593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18594         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18595         Likewise.
18596         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18597         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
18598         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
18599
18600 2009-04-20  Bruno Haible  <bruno@clisp.org>
18601
18602         Avoid test failure on mingw.
18603         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
18604
18605 2009-04-20  Bruno Haible  <bruno@clisp.org>
18606
18607         Avoid compilation error on mingw.
18608         * modules/localename-tests (Depends-on): Add locale.
18609
18610 2009-04-19  Bruno Haible  <bruno@clisp.org>
18611
18612         Support for building a shared library on Windows platforms.
18613         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
18614         (main): Test the presence of UNINORM_NFC here.
18615         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
18616         (main): Test the presence of UNINORM_NFD here.
18617         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
18618         (main): Test the presence of UNINORM_NFKC here.
18619         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
18620         (main): Test the presence of UNINORM_NFKD here.
18621
18622 2009-04-19  Bruno Haible  <bruno@clisp.org>
18623
18624         Avoid a compiler warning.
18625         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
18626         Change type of variable 'sequence'.
18627
18628 2009-04-19  Bruno Haible  <bruno@clisp.org>
18629
18630         * modules/configmake (Makefile.am): When the contents of configmake.h
18631         does not change, arrange to preserve its modification time.
18632
18633 2009-04-17  Simon Josefsson  <simon@josefsson.org>
18634
18635         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
18636         gettext domain.
18637
18638 2009-04-16  Jim Meyering  <meyering@redhat.com>
18639
18640         useless-if-before-free: improve conversion code
18641         * build-aux/useless-if-before-free: Adjust code-in-comment to match
18642         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
18643
18644 2009-04-14  Bruno Haible  <bruno@clisp.org>
18645
18646         * modules/fcntl (Depends-on): Add extensions.
18647         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
18648
18649 2009-04-12  Ben Pfaff  <blp@gnu.org>
18650
18651         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
18652         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
18653
18654 2009-03-20  Ben Pfaff  <blp@gnu.org>
18655
18656         Make rename replace existing destinations on Windows.
18657         * m4/rename.m4: Add test for Mingw.
18658         * lib/rename.c: Add rename replacement that uses MoveFileEx with
18659         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
18660         * doc/posix-functions/rename.texi: Document.
18661
18662 2009-04-10  Bruno Haible  <bruno@clisp.org>
18663
18664         New include file "iconveh.h".
18665         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
18666         * lib/striconveh.h: Include it.
18667         (enum iconv_ilseq_handler): Remove definition.
18668         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
18669         striconveh.h.
18670         * lib/striconveha.c: Include striconveh.h.
18671         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
18672         * modules/striconveh (Files): Add lib/iconveh.h.
18673         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
18674         lib/striconveh.h.
18675
18676 2009-04-10  Bruno Haible  <bruno@clisp.org>
18677
18678         * lib/uniconv.h: Update comment.
18679
18680 2009-04-10  Bruno Haible  <bruno@clisp.org>
18681
18682         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
18683         always.
18684         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
18685         * lib/unistr/u16-mbtouc-aux.c: Likewise.
18686         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
18687         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
18688         "unistring-notinline.h", so that the function gets defined always.
18689         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
18690         * lib/unistr/u8-uctomb.c: Likewise.
18691         * lib/unistr/u16-mbtouc.c: Likewise.
18692         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
18693         * lib/unistr/u16-uctomb.c: Likewise.
18694         * lib/unistr/u32-mbtouc.c: Likewise.
18695         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
18696         * lib/unistr/u32-uctomb.c: Likewise.
18697
18698 2009-04-10  Bruno Haible  <bruno@clisp.org>
18699
18700         Mark 'utime' obsolete.
18701         * modules/utime (Status, Notice): New sections.
18702         Suggested by Jim Meyering.
18703
18704         Fix cross-compile guess for utime test.
18705         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
18706         autoconf.
18707         * doc/posix-functions/utime.texi: Give more precisions.
18708         Reported by Jan <ipif@ymail.com>.
18709
18710 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
18711
18712         filevercmp: correct today's change
18713         * lib/filevercmp.c: Also handle coreutils' test inputs.
18714         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
18715
18716         Fix regression in 'filevercmp' module. Thanks Sven Joachim
18717         for reporting it.
18718         * lib/filevercmp.c: Special handle for "", "." and "..".
18719         * tests/test-filevercmp.c: Enlarge the set suite.
18720
18721 2009-04-07  Jim Meyering  <meyering@redhat.com>
18722
18723         useless-if-before-free: show how to remove braced useless free, too
18724         * build-aux/useless-if-before-free: still only in a comment, though.
18725
18726 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
18727
18728         maint.mk: import changes to syntax-check macros from coreutils
18729         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
18730         Use them in the relevant macros.
18731
18732 2009-04-06  Bruno Haible  <bruno@clisp.org>
18733
18734         Fix unportable use of bit-fields.
18735         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
18736         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
18737         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
18738
18739 2009-04-06  Bruno Haible  <bruno@clisp.org>
18740
18741         Avoid test failures on AIX and OSF/1.
18742         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
18743         that malloc(0) = NULL.
18744         * tests/unicase/test-u8-tolower.c (check): Likewise.
18745         * tests/unicase/test-u8-totitle.c (check): Likewise.
18746         * tests/unicase/test-u8-toupper.c (check): Likewise.
18747         * tests/unicase/test-u16-casefold.c (check): Likewise.
18748         * tests/unicase/test-u16-tolower.c (check): Likewise.
18749         * tests/unicase/test-u16-totitle.c (check): Likewise.
18750         * tests/unicase/test-u16-toupper.c (check): Likewise.
18751         * tests/unicase/test-u32-casefold.c (check): Likewise.
18752         * tests/unicase/test-u32-tolower.c (check): Likewise.
18753         * tests/unicase/test-u32-totitle.c (check): Likewise.
18754         * tests/unicase/test-u32-toupper.c (check): Likewise.
18755         * tests/uninorm/test-u8-nfc.c (check): Likewise.
18756         * tests/uninorm/test-u8-nfd.c (check): Likewise.
18757         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
18758         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
18759         * tests/uninorm/test-u16-nfc.c (check): Likewise.
18760         * tests/uninorm/test-u16-nfd.c (check): Likewise.
18761         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
18762         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
18763         * tests/uninorm/test-u32-nfc.c (check): Likewise.
18764         * tests/uninorm/test-u32-nfd.c (check): Likewise.
18765         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
18766         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
18767
18768 2009-04-05  Bruno Haible  <bruno@clisp.org>
18769
18770         Work around an autoconf limitation.
18771         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
18772         comment line if it would be longer than 3 KB.
18773
18774 2009-04-05  Bruno Haible  <bruno@clisp.org>
18775
18776         Avoid test failure with libiconv-1.13.
18777         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
18778         of the expected test results.
18779
18780 2009-04-05  Bruno Haible  <bruno@clisp.org>
18781
18782         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
18783         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
18784         that it should be installed.
18785
18786 2009-04-05  Bruno Haible  <bruno@clisp.org>
18787
18788         * gnulib-tool: New option --copy-file.
18789         (func_usage): Document it.
18790         (func_dest_tmpfilename): Moved out of func_import.
18791         (func_add_file, func_update_file): New functions, extracted from
18792         func_import.
18793         (func_import): Update.
18794
18795 2009-04-05  Karl Berry  <karl@gnu.org>
18796
18797         * README: prominently mention gnulib-tool.
18798         Rearrange sections so getting the code is near the top.
18799
18800 2009-04-05  Bruno Haible  <bruno@clisp.org>
18801
18802         * lib/unicase.h: Mention u*_cmp2.
18803         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18804         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
18805         * lib/unicase/ulc-casecmp.c: Likewise.
18806         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
18807         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
18808         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
18809         unistr/u8-cmp.
18810         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
18811         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
18812         unistr/u16-cmp.
18813         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
18814         unistr/u32-cmp.
18815
18816         * lib/uninorm.h: Mention u*_cmp2.
18817         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18818         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
18819         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
18820         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
18821         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
18822         unistr/u8-cmp.
18823         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
18824         unistr/u16-cmp.
18825         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
18826         unistr/u32-cmp.
18827
18828         New module 'unistr/u32-cmp2'.
18829         * lib/unistr/u32-cmp2.c: New file.
18830         * modules/unistr/u32-cmp2: New file.
18831
18832         New module 'unistr/u16-cmp2'.
18833         * lib/unistr/u16-cmp2.c: New file.
18834         * modules/unistr/u16-cmp2: New file.
18835
18836         New module 'unistr/u8-cmp2'.
18837         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
18838         * lib/unistr/u8-cmp2.c: New file.
18839         * lib/unistr/u-cmp2.h: New file.
18840         * modules/unistr/u8-cmp2: New file.
18841
18842 2009-04-05  Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/unictype.h (uc_property_is_valid): New macro.
18845         * tests/unictype/test-pr_byname.c (main): Use it.
18846
18847         * lib/unistr.h: Doc fixes.
18848         * lib/uniconv.h: Doc fixes.
18849         * lib/unictype.h: Doc fixes.
18850
18851 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18852
18853         Port coreutils 7.2 to Solaris 8.
18854
18855         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
18856         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
18857         for Solaris 8.  This is a bit of a hack, as it means it's the
18858         caller's responsibility to add -lnsl if needed, but most likely it
18859         won't be needed since only getaddrinfo uses this and getaddrinfo
18860         isn't needed on Solaris 8.
18861
18862         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
18863         problem to Solaris 8 encountered with coreutils 7.2, which
18864         resulted in a message "fnmatch.c:292: warning: passing argument 4
18865         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
18866         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
18867
18868 2009-04-03  Simon Josefsson  <simon@josefsson.org>
18869
18870         * m4/ld-version-script.m4: Add FIXME comment.
18871
18872 2009-04-02  Simon Josefsson  <simon@josefsson.org>
18873
18874         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
18875         SOVERSION variable.
18876
18877 2009-04-02  Bruno Haible  <bruno@clisp.org>
18878
18879         * Makefile (info, html, dvi, pdf): Combine the rules.
18880         Suggested by Jim Meyering.
18881
18882 2009-04-01  Bruno Haible  <bruno@clisp.org>
18883
18884         * Makefile (info, html, dvi, pdf): New targets.
18885         Reported by Reuben Thomas <rrt@sc3d.org>.
18886
18887 2009-04-01  Bruno Haible  <bruno@clisp.org>
18888
18889         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
18890         can be put into PATH.
18891         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
18892
18893 2009-04-01  Bruno Haible  <bruno@clisp.org>
18894
18895         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
18896
18897 2009-04-01  Bruno Haible  <bruno@clisp.org>
18898
18899         Rename module 'visibility'.
18900         * modules/lib-symbol-visibility: Renamed from modules/visibility.
18901         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
18902         * doc/gnulib.texi: Update.
18903         * MODULES.html.sh (Misc): Update.
18904         * NEWS: Mention the change.
18905
18906 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18907
18908         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
18909         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
18910         Eric Blake <ebb9@byu.net> for review.
18911         * MODULES.html.sh: Add lib-msvc-compat.
18912         * doc/gnulib.texi: Link to new section.
18913         * m4/ld-output-def.m4: New file.
18914         * doc/ld-output-def.texi: New file.
18915
18916 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18917
18918         Rename ld-version-script to lib-symbol-versions.  Suggested by
18919         Bruno Haible <bruno@clisp.org>.
18920         * modules/ld-version-script: Renamed to lib-symbol-versions.
18921         * doc/ld-version-script.texi: Fix module name.
18922         * MODULES.html.sh: Add lib-symbol-versions.
18923
18924 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18925
18926         * modules/u64-tests: New file.
18927         * tests/test-u64.c: New file.
18928
18929 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18930
18931         * MODULES.html.sh: Mention u64.
18932         * modules/u64: New module.
18933         * modules/crypto/sha512: Depend on u64 module instead of providing
18934         u64.h.
18935
18936 2009-03-27  Eric Blake  <ebb9@byu.net>
18937
18938         test-strerror: make debugging EAI_SYSTEM easier
18939         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18940         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18941         failure was EAI_SYSTEM.
18942
18943 2009-03-25  Bruno Haible  <bruno@clisp.org>
18944
18945         Fix a problem with --enable-relocatable on Solaris 7.
18946         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18947         since 2008-02-24.
18948
18949 2009-03-25  Eric Blake  <ebb9@byu.net>
18950
18951         test-sockets: avoid gcc warning
18952         * tests/test-sockets.c (main): Silence compiler warning.
18953
18954 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18955
18956         New modules nproc, pthread, contributed by Glen Lenker.
18957
18958         * MODULES.html.sh: Add pthread, nproc.
18959         * lib/nproc.c: New file.
18960         * lib/nproc.h: New file.
18961         * lib/pthread.in.h: New file.
18962         * m4/pthread.m4: New file.
18963         * modules/nproc: New file.
18964         * modules/pthread: New file.
18965
18966 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18967
18968         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
18969         New variable.
18970
18971 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
18972
18973         filevercmp: handle simple~ and numbered.~3~ backup suffixes
18974         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
18975         * tests/test-filevercmp.c: Add tests for backup suffixes.
18976
18977 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18978
18979         * modules/stdlib (Depends-on): Add stdint, needed when defining
18980         struct random_data on, for example, HP-UX 10.20.  Reported by
18981         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18982
18983 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18984
18985         * lib/readline.c (readline): Call fflush on stdout after printing
18986         prompt.
18987
18988 2009-03-20  Bruno Haible  <bruno@clisp.org>
18989
18990         Remove dependency from 'close' module to -lws2_32 on native Windows.
18991         * lib/close-hook.h: New file.
18992         * lib/close-hook.c: New file.
18993         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
18994         w32sock.h.
18995         (_gl_close_fd_maybe_socket): Remove function.
18996         (rpl_close): Invoke execute_all_close_hooks instead of
18997         _gl_close_fd_maybe_socket.
18998         * lib/sockets.c: Include close-hook.h, w32sock.h.
18999         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19000         (close_sockets_hook): New variable.
19001         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19002         (gl_sockets_cleanup): Unregister it.
19003         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19004         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19005         * modules/close-hook: New file.
19006         * modules/close (Files): Remove lib/w32sock.h.
19007         (Depends-on): Add close-hook.
19008         (Link): Remove section.
19009         * modules/sockets (Files): Add lib/w32sock.h.
19010         (Depends-on): Add close-hook.
19011         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19012         invocation.
19013         * NEWS: Mention that LIB_CLOSE is gone.
19014
19015 2009-03-23  Eric Blake  <ebb9@byu.net>
19016
19017         signal-tests: test previous patch
19018         * tests/test-signal.c: New file.
19019         * modules/signal-tests: Likewise.
19020
19021         signal.h: always support 'volatile sig_atomic_t'
19022         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19023         (gl_SIGNAL_H_DEFAULTS): Add a default.
19024         * modules/signal (Makefile.am): Substitute if needed.
19025         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19026         users can blindly add volatile.
19027         * doc/posix-headers/signal.texi (signal.h): Document it.
19028         Reported by Matthew Woehlke.
19029
19030 2009-03-23  Jim Meyering  <meyering@redhat.com>
19031
19032         pathmax: PATH_MAX: use pathconf only when available
19033         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19034         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19035         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19036         This avoids a link failure in a PSP cross-compilation environment
19037         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19038
19039         * lib/vasnprintf.c (divide): Fix typo in comment.
19040
19041 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19042
19043         * gnulib-tool (func_filter_filelist): Fix comment.
19044
19045 2009-03-20  Bruno Haible  <bruno@clisp.org>
19046
19047         Make sockets.h self-contained.
19048         * lib/sockets.c: Include sockets.h first.
19049         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19050
19051 2009-03-19  Eric Blake  <ebb9@byu.net>
19052
19053         doc: mention more functions added in cygwin 1.7.0
19054         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19055         addition.
19056         * doc/posix-functions/log2f.texi: Likewise.
19057
19058 2009-03-19  Jim Meyering  <meyering@redhat.com>
19059
19060         fsusage: avoid syntax error due to statement-before-declaration
19061         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19062         after all declarations.  Reported by Matthew Woehlke in
19063         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19064
19065 2009-03-18  Eric Blake  <ebb9@byu.net>
19066
19067         build-aux/compile: sync from automake
19068         * build-aux/compile: New file, from automake.
19069         * config/srclist.txt: Mention build-aux/compile.
19070
19071 2009-03-17  Bruno Haible  <bruno@clisp.org>
19072
19073         * lib/git-merge-changelog.c: Fix typo in comment.
19074         Reported by Reuben Thomas <rrt@sc3d.org>.
19075
19076 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19077
19078         * m4/regex.m4: update and improve help for
19079         --without-included-regex.
19080
19081 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19082
19083         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19084         failure on missing include files.
19085
19086 2009-03-17  Eric Blake  <ebb9@byu.net>
19087
19088         doc: mention more functions added in cygwin 1.7.0
19089         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19090         addition.
19091         * doc/posix-functions/fwscanf.texi: Likewise.
19092         * doc/posix-functions/swprintf.texi: Likewise.
19093         * doc/posix-functions/swscanf.texi: Likewise.
19094         * doc/posix-functions/vfwprintf.texi: Likewise.
19095         * doc/posix-functions/vfwscanf.texi: Likewise.
19096         * doc/posix-functions/vswprintf.texi: Likewise.
19097         * doc/posix-functions/vswscanf.texi: Likewise.
19098         * doc/posix-functions/vwprintf.texi: Likewise.
19099         * doc/posix-functions/vwscanf.texi: Likewise.
19100         * doc/posix-functions/wcscasecmp.texi: Likewise.
19101         * doc/posix-functions/wcsdup.texi: Likewise.
19102         * doc/posix-functions/wcsftime.texi: Likewise.
19103         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19104         * doc/posix-functions/wprintf.texi: Likewise.
19105         * doc/posix-functions/wscanf.texi: Likewise.
19106         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19107
19108 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19109
19110         maint.mk: really add $(AM_MAKEFLAGS)
19111         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19112         was inadvertently omitted in the last commit.
19113         Spotted by Bruno Haible.
19114
19115         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19116         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19117         $(AM_MAKEFLAGS)' rather than plain `make'.
19118
19119         gnulib-tool: execute $MAKE not make
19120         * gnulib-tool: Default $MAKE to 'make'.
19121         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19122         than make.  Initialize $MAKE in the do-autobuild script.
19123
19124         gnulib-tool: use $MAKE not make in generated files
19125         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19126         make, in generated files.  Initialize $MAKE in the do-autobuild
19127         script.
19128
19129         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19130
19131         GNUmakefile: disable parallelism only for multiple, recursive targets
19132         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19133         additions in the Makefile.
19134         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19135         by Automake.
19136         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19137         are listed on the command line and at least one of them is
19138         listed in $(ALL_RECURSIVE_TARGETS).
19139
19140 2009-03-14  Bruno Haible  <bruno@clisp.org>
19141
19142         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19143         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19144         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19145         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19146         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19147         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19148         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19149         unistr/u8-uctomb.
19150         * modules/unistr/u8-strchr (Depends-on): Likewise.
19151         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19152         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19153         unistr/u16-uctomb.
19154         * modules/unistr/u16-strchr (Depends-on): Likewise.
19155         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19156
19157 2009-03-12  Bruno Haible  <bruno@clisp.org>
19158
19159         Work around select() bug on Interix 3.5.
19160         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19161         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19162         * m4/select.m4: New file.
19163         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19164         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19165         * modules/select (Files): Add m4/select.m4.
19166         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19167         * modules/nanosleep (Depends-on): Add select.
19168         * modules/poll (Depends-on): Likewise.
19169         * doc/posix-functions/select.texi: Mention the Interix bug.
19170         Reported by Markus Duft <mduft@gentoo.org>.
19171
19172         * lib/select.c: Renamed from lib/winsock-select.c.
19173         * modules/select (Files): Add lib/select.c, remove
19174         lib/winsock-select.c.
19175         (configure.ac): Update.
19176
19177 2009-03-12  Jim Meyering  <meyering@redhat.com>
19178
19179         avoid gcc warnings about unused macro definitions
19180         * lib/readtokens.c (STREQ): Remove unused definition.
19181         * lib/xmalloc.c (SIZE_MAX): Likewise.
19182         * lib/openat-die.c (N_): Likewise.
19183         * lib/mountlist.c (SIZE_MAX): Remove definition.
19184         Instead, include <stdint.h>.
19185         * lib/readutmp.c: Likewise.
19186         * modules/readutmp (Depends-on): Add stdint.
19187         * modules/mountlist (Depends-on): Add stdint.
19188         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19189
19190 2009-03-10  Bruno Haible  <bruno@clisp.org>
19191
19192         Tests for module 'mbmemcasecoll'.
19193         * modules/mbmemcasecoll-tests: New file.
19194         * tests/test-mbmemcasecoll1.sh: New file.
19195         * tests/test-mbmemcasecoll2.sh: New file.
19196         * tests/test-mbmemcasecoll3.sh: New file.
19197         * tests/test-mbmemcasecoll.c: New file.
19198
19199         New module 'mbmemcasecoll'.
19200         * lib/mbmemcasecoll.h: New file.
19201         * lib/mbmemcasecoll.c: New file.
19202         * modules/mbmemcasecoll: New file.
19203
19204         * tests/test-mbmemcasecmp.h: New file, extracted from
19205         tests/test-mbmemcasecmp.c.
19206         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19207         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19208         (main): Update.
19209         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19210
19211 2009-03-09  Bruno Haible  <bruno@clisp.org>
19212
19213         Tests for module 'mbmemcasecmp'.
19214         * modules/mbmemcasecmp-tests: New file.
19215         * tests/test-mbmemcasecmp1.sh: New file.
19216         * tests/test-mbmemcasecmp2.sh: New file.
19217         * tests/test-mbmemcasecmp3.sh: New file.
19218         * tests/test-mbmemcasecmp.c: New file.
19219
19220         New module 'mbmemcasecmp'.
19221         * lib/mbmemcasecmp.h: New file.
19222         * lib/mbmemcasecmp.c: New file.
19223         * modules/mbmemcasecmp: New file.
19224
19225 2009-03-09  Bruno Haible  <bruno@clisp.org>
19226
19227         Tests for module 'unicase/ulc-casecoll'.
19228         * modules/unicase/ulc-casecoll-tests: New file.
19229         * tests/unicase/test-ulc-casecoll1.sh: New file.
19230         * tests/unicase/test-ulc-casecoll2.sh: New file.
19231         * tests/unicase/test-ulc-casecoll.c: New file.
19232
19233         New module 'unicase/ulc-casecoll'.
19234         * lib/unicase.h (ulc_casecoll): New declaration.
19235         * lib/unicase/ulc-casecoll.c: New file.
19236         * modules/unicase/ulc-casecoll: New file.
19237
19238         New module 'unicase/ulc-casexfrm'.
19239         * lib/unicase.h (ulc_casexfrm): New declaration.
19240         * lib/unicase/ulc-casexfrm.c: New file.
19241         * modules/unicase/ulc-casexfrm: New file.
19242
19243 2009-03-09  Bruno Haible  <bruno@clisp.org>
19244
19245         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19246         invocations.
19247
19248         * m4/mbscasecmp.m4: Remove file.
19249         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19250         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19251
19252         * m4/mbscasestr.m4: Remove file.
19253         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19254         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19255
19256         * m4/mbschr.m4: Remove file.
19257         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19258         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19259
19260         * m4/mbscspn.m4: Remove file.
19261         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19262         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19263
19264         * m4/mbslen.m4: Remove file.
19265         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19266         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19267
19268         * m4/mbsncasecmp.m4: Remove file.
19269         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19270         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19271
19272         * m4/mbsnlen.m4: Remove file.
19273         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19274         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19275
19276         * m4/mbspbrk.m4: Remove file.
19277         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19278         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19279
19280         * m4/mbspcasecmp.m4: Remove file.
19281         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19282         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19283
19284         * m4/mbsrchr.m4: Remove file.
19285         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19286         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19287
19288         * m4/mbssep.m4: Remove file.
19289         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19290         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19291
19292         * m4/mbsspn.m4: Remove file.
19293         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19294         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19295
19296         * m4/mbsstr.m4: Remove file.
19297         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19298         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19299
19300         * m4/mbstok_r.m4: Remove file.
19301         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19302         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19303
19304         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19305
19306         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19307         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19308
19309         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19310
19311 2009-03-08  Bruno Haible  <bruno@clisp.org>
19312
19313         Tests for module 'unicase/ulc-casecmp'.
19314         * modules/unicase/ulc-casecmp-tests: New file.
19315         * tests/unicase/test-ulc-casecmp1.sh: New file.
19316         * tests/unicase/test-ulc-casecmp2.sh: New file.
19317         * tests/unicase/test-ulc-casecmp.c: New file.
19318
19319         New module 'unicase/ulc-casecmp'.
19320         * lib/unicase.h (ulc_casecmp): New declaration.
19321         * lib/unicase/ulc-casecmp.c: New file.
19322         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19323         'const SRC_UNIT *'.
19324         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19325         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19326         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19327         * modules/unicase/ulc-casecmp: New file.
19328
19329         Tests for module 'unicase/u32-is-cased'.
19330         * modules/unicase/u32-is-cased-tests: New file.
19331         * tests/unicase/test-u32-is-cased.c: New file.
19332
19333         Tests for module 'unicase/u16-is-cased'.
19334         * modules/unicase/u16-is-cased-tests: New file.
19335         * tests/unicase/test-u16-is-cased.c: New file.
19336
19337         Tests for module 'unicase/u8-is-cased'.
19338         * modules/unicase/u8-is-cased-tests: New file.
19339         * tests/unicase/test-u8-is-cased.c: New file.
19340         * tests/unicase/test-is-cased.h: New file.
19341
19342         New module 'unicase/u32-is-cased'.
19343         * lib/unicase/u32-is-cased.c: New file.
19344         * modules/unicase/u32-is-cased: New file.
19345
19346         New module 'unicase/u16-is-cased'.
19347         * lib/unicase/u16-is-cased.c: New file.
19348         * modules/unicase/u16-is-cased: New file.
19349
19350         New module 'unicase/u8-is-cased'.
19351         * lib/unicase/u8-is-cased.c: New file.
19352         * lib/unicase/u-is-cased.h: New file.
19353         * modules/unicase/u8-is-cased: New file.
19354
19355         Tests for module 'unicase/u32-is-casefolded'.
19356         * modules/unicase/u32-is-casefolded-tests: New file.
19357         * tests/unicase/test-u32-is-casefolded.c: New file.
19358
19359         Tests for module 'unicase/u16-is-casefolded'.
19360         * modules/unicase/u16-is-casefolded-tests: New file.
19361         * tests/unicase/test-u16-is-casefolded.c: New file.
19362
19363         Tests for module 'unicase/u8-is-casefolded'.
19364         * modules/unicase/u8-is-casefolded-tests: New file.
19365         * tests/unicase/test-u8-is-casefolded.c: New file.
19366         * tests/unicase/test-is-casefolded.h: New file.
19367
19368         New module 'unicase/u32-is-casefolded'.
19369         * lib/unicase/u32-is-casefolded.c: New file.
19370         * modules/unicase/u32-is-casefolded: New file.
19371
19372         New module 'unicase/u16-is-casefolded'.
19373         * lib/unicase/u16-is-casefolded.c: New file.
19374         * modules/unicase/u16-is-casefolded: New file.
19375
19376         New module 'unicase/u8-is-casefolded'.
19377         * lib/unicase/u8-is-casefolded.c: New file.
19378         * modules/unicase/u8-is-casefolded: New file.
19379
19380         Tests for module 'unicase/u32-is-titlecase'.
19381         * modules/unicase/u32-is-titlecase-tests: New file.
19382         * tests/unicase/test-u32-is-titlecase.c: New file.
19383
19384         Tests for module 'unicase/u16-is-titlecase'.
19385         * modules/unicase/u16-is-titlecase-tests: New file.
19386         * tests/unicase/test-u16-is-titlecase.c: New file.
19387
19388         Tests for module 'unicase/u8-is-titlecase'.
19389         * modules/unicase/u8-is-titlecase-tests: New file.
19390         * tests/unicase/test-u8-is-titlecase.c: New file.
19391         * tests/unicase/test-is-titlecase.h: New file.
19392
19393         New module 'unicase/u32-is-titlecase'.
19394         * lib/unicase/u32-is-titlecase.c: New file.
19395         * modules/unicase/u32-is-titlecase: New file.
19396
19397         New module 'unicase/u16-is-titlecase'.
19398         * lib/unicase/u16-is-titlecase.c: New file.
19399         * modules/unicase/u16-is-titlecase: New file.
19400
19401         New module 'unicase/u8-is-titlecase'.
19402         * lib/unicase/u8-is-titlecase.c: New file.
19403         * modules/unicase/u8-is-titlecase: New file.
19404
19405         Tests for module 'unicase/u32-is-lowercase'.
19406         * modules/unicase/u32-is-lowercase-tests: New file.
19407         * tests/unicase/test-u32-is-lowercase.c: New file.
19408
19409         Tests for module 'unicase/u16-is-lowercase'.
19410         * modules/unicase/u16-is-lowercase-tests: New file.
19411         * tests/unicase/test-u16-is-lowercase.c: New file.
19412
19413         Tests for module 'unicase/u8-is-lowercase'.
19414         * modules/unicase/u8-is-lowercase-tests: New file.
19415         * tests/unicase/test-u8-is-lowercase.c: New file.
19416         * tests/unicase/test-is-lowercase.h: New file.
19417
19418         New module 'unicase/u32-is-lowercase'.
19419         * lib/unicase/u32-is-lowercase.c: New file.
19420         * modules/unicase/u32-is-lowercase: New file.
19421
19422         New module 'unicase/u16-is-lowercase'.
19423         * lib/unicase/u16-is-lowercase.c: New file.
19424         * modules/unicase/u16-is-lowercase: New file.
19425
19426         New module 'unicase/u8-is-lowercase'.
19427         * lib/unicase/u8-is-lowercase.c: New file.
19428         * modules/unicase/u8-is-lowercase: New file.
19429
19430         Tests for module 'unicase/u32-is-uppercase'.
19431         * modules/unicase/u32-is-uppercase-tests: New file.
19432         * tests/unicase/test-u32-is-uppercase.c: New file.
19433
19434         Tests for module 'unicase/u16-is-uppercase'.
19435         * modules/unicase/u16-is-uppercase-tests: New file.
19436         * tests/unicase/test-u16-is-uppercase.c: New file.
19437
19438         Tests for module 'unicase/u8-is-uppercase'.
19439         * modules/unicase/u8-is-uppercase-tests: New file.
19440         * tests/unicase/test-u8-is-uppercase.c: New file.
19441         * tests/unicase/test-is-uppercase.h: New file.
19442
19443         New module 'unicase/u32-is-uppercase'.
19444         * lib/unicase/u32-is-uppercase.c: New file.
19445         * modules/unicase/u32-is-uppercase: New file.
19446
19447         New module 'unicase/u16-is-uppercase'.
19448         * lib/unicase/u16-is-uppercase.c: New file.
19449         * modules/unicase/u16-is-uppercase: New file.
19450
19451         New module 'unicase/u8-is-uppercase'.
19452         * lib/unicase/u8-is-uppercase.c: New file.
19453         * modules/unicase/u8-is-uppercase: New file.
19454
19455         New module 'unicase/u32-is-invariant'.
19456         * lib/unicase/u32-is-invariant.c: New file.
19457         * modules/unicase/u32-is-invariant: New file.
19458
19459         New module 'unicase/u16-is-invariant'.
19460         * lib/unicase/u16-is-invariant.c: New file.
19461         * modules/unicase/u16-is-invariant: New file.
19462
19463         New module 'unicase/u8-is-invariant'.
19464         * lib/unicase/u8-is-invariant.c: New file.
19465         * lib/unicase/invariant.h: New file.
19466         * lib/unicase/u-is-invariant.h: New file.
19467         * modules/unicase/u8-is-invariant: New file.
19468
19469         Tests for module 'unicase/u32-casecoll'.
19470         * modules/unicase/u32-casecoll-tests: New file.
19471         * tests/unicase/test-u32-casecoll.c: New file.
19472
19473         Tests for module 'unicase/u16-casecoll'.
19474         * modules/unicase/u16-casecoll-tests: New file.
19475         * tests/unicase/test-u16-casecoll.c: New file.
19476
19477         Tests for module 'unicase/u8-casecoll'.
19478         * modules/unicase/u8-casecoll-tests: New file.
19479         * tests/unicase/test-u8-casecoll.c: New file.
19480
19481         New module 'unicase/u32-casecoll'.
19482         * lib/unicase/u32-casecoll.c: New file.
19483         * modules/unicase/u32-casecoll: New file.
19484
19485         New module 'unicase/u16-casecoll'.
19486         * lib/unicase/u16-casecoll.c: New file.
19487         * modules/unicase/u16-casecoll: New file.
19488
19489         New module 'unicase/u8-casecoll'.
19490         * lib/unicase/u8-casecoll.c: New file.
19491         * lib/unicase/u-casecoll.h: New file.
19492         * modules/unicase/u8-casecoll: New file.
19493
19494         New module 'unicase/u32-casexfrm'.
19495         * lib/unicase/u32-casexfrm.c: New file.
19496         * modules/unicase/u32-casexfrm: New file.
19497
19498         New module 'unicase/u16-casexfrm'.
19499         * lib/unicase/u16-casexfrm.c: New file.
19500         * modules/unicase/u16-casexfrm: New file.
19501
19502         New module 'unicase/u8-casexfrm'.
19503         * lib/unicase/u8-casexfrm.c: New file.
19504         * lib/unicase/u-casexfrm.h: New file.
19505         * modules/unicase/u8-casexfrm: New file.
19506
19507         Tests for module 'unicase/u32-casecmp'.
19508         * modules/unicase/u32-casecmp-tests: New file.
19509         * tests/unicase/test-u32-casecmp.c: New file.
19510
19511         Tests for module 'unicase/u16-casecmp'.
19512         * modules/unicase/u16-casecmp-tests: New file.
19513         * tests/unicase/test-u16-casecmp.c: New file.
19514
19515         Tests for module 'unicase/u8-casecmp'.
19516         * modules/unicase/u8-casecmp-tests: New file.
19517         * tests/unicase/test-u8-casecmp.c: New file.
19518         * tests/unicase/test-casecmp.h: New file.
19519
19520         New module 'unicase/u32-casecmp'.
19521         * lib/unicase/u32-casecmp.c: New file.
19522         * modules/unicase/u32-casecmp: New file.
19523
19524         New module 'unicase/u16-casecmp'.
19525         * lib/unicase/u16-casecmp.c: New file.
19526         * modules/unicase/u16-casecmp: New file.
19527
19528         New module 'unicase/u8-casecmp'.
19529         * lib/unicase/u8-casecmp.c: New file.
19530         * lib/unicase/u-casecmp.h: New file.
19531         * modules/unicase/u8-casecmp: New file.
19532
19533         Tests for module 'unicase/u32-casefold'.
19534         * modules/unicase/u32-casefold-tests: New file.
19535         * tests/unicase/test-u32-casefold.c: New file.
19536
19537         Tests for module 'unicase/u16-casefold'.
19538         * modules/unicase/u16-casefold-tests: New file.
19539         * tests/unicase/test-u16-casefold.c: New file.
19540
19541         Tests for module 'unicase/u8-casefold'.
19542         * modules/unicase/u8-casefold-tests: New file.
19543         * tests/unicase/test-u8-casefold.c: New file.
19544
19545         New module 'unicase/u32-casefold'.
19546         * lib/unicase/u32-casefold.c: New file.
19547         * modules/unicase/u32-casefold: New file.
19548
19549         New module 'unicase/u16-casefold'.
19550         * lib/unicase/u16-casefold.c: New file.
19551         * modules/unicase/u16-casefold: New file.
19552
19553         New module 'unicase/u8-casefold'.
19554         * lib/unicase/u8-casefold.c: New file.
19555         * lib/unicase/u-casefold.h: New file.
19556         * modules/unicase/u8-casefold: New file.
19557
19558         New module 'unicase/tocasefold'.
19559         * lib/unicase/casefold.h: New file.
19560         * lib/unicase/tocasefold.c: New file.
19561         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
19562         * modules/unicase/tocasefold: New file.
19563
19564         Tests for module 'unicase/u32-totitle'.
19565         * modules/unicase/u32-totitle-tests: New file.
19566         * tests/unicase/test-u32-totitle.c: New file.
19567
19568         Tests for module 'unicase/u16-totitle'.
19569         * modules/unicase/u16-totitle-tests: New file.
19570         * tests/unicase/test-u16-totitle.c: New file.
19571
19572         Tests for module 'unicase/u8-totitle'.
19573         * modules/unicase/u8-totitle-tests: New file.
19574         * tests/unicase/test-u8-totitle.c: New file.
19575
19576         New module 'unicase/u32-totitle'.
19577         * lib/unicase/u32-totitle.c: New file.
19578         * modules/unicase/u32-totitle: New file.
19579
19580         New module 'unicase/u16-totitle'.
19581         * lib/unicase/u16-totitle.c: New file.
19582         * modules/unicase/u16-totitle: New file.
19583
19584         New module 'unicase/u8-totitle'.
19585         * lib/unicase/u8-totitle.c: New file.
19586         * lib/unicase/u-totitle.h: New file.
19587         * modules/unicase/u8-totitle: New file.
19588
19589         Tests for module 'unicase/u32-tolower'.
19590         * modules/unicase/u32-tolower-tests: New file.
19591         * tests/unicase/test-u32-tolower.c: New file.
19592
19593         Tests for module 'unicase/u16-tolower'.
19594         * modules/unicase/u16-tolower-tests: New file.
19595         * tests/unicase/test-u16-tolower.c: New file.
19596
19597         Tests for module 'unicase/u8-tolower'.
19598         * modules/unicase/u8-tolower-tests: New file.
19599         * tests/unicase/test-u8-tolower.c: New file.
19600
19601         New module 'unicase/u32-tolower'.
19602         * lib/unicase/u32-tolower.c: New file.
19603         * modules/unicase/u32-tolower: New file.
19604
19605         New module 'unicase/u16-tolower'.
19606         * lib/unicase/u16-tolower.c: New file.
19607         * modules/unicase/u16-tolower: New file.
19608
19609         New module 'unicase/u8-tolower'.
19610         * lib/unicase/u8-tolower.c: New file.
19611         * modules/unicase/u8-tolower: New file.
19612
19613         Tests for module 'unicase/u32-toupper'.
19614         * modules/unicase/u32-toupper-tests: New file.
19615         * tests/unicase/test-u32-toupper.c: New file.
19616
19617         Tests for module 'unicase/u16-toupper'.
19618         * modules/unicase/u16-toupper-tests: New file.
19619         * tests/unicase/test-u16-toupper.c: New file.
19620
19621         Tests for module 'unicase/u8-toupper'.
19622         * modules/unicase/u8-toupper-tests: New file.
19623         * tests/unicase/test-u8-toupper.c: New file.
19624
19625         New module 'unicase/u32-toupper'.
19626         * lib/unicase/u32-toupper.c: New file.
19627         * modules/unicase/u32-toupper: New file.
19628
19629         New module 'unicase/u16-toupper'.
19630         * lib/unicase/u16-toupper.c: New file.
19631         * modules/unicase/u16-toupper: New file.
19632
19633         New module 'unicase/u8-toupper'.
19634         * lib/unicase/u8-toupper.c: New file.
19635         * modules/unicase/u8-toupper: New file.
19636
19637         New module 'unicase/u32-casemap'.
19638         * lib/unicase/u32-casemap.c: New file.
19639         * modules/unicase/u32-casemap: New file.
19640
19641         New module 'unicase/u16-casemap'.
19642         * lib/unicase/u16-casemap.c: New file.
19643         * modules/unicase/u16-casemap: New file.
19644
19645         New module 'unicase/u8-casemap'.
19646         * lib/unicase/unicasemap.h: New file.
19647         * lib/unicase/u8-casemap.c: New file.
19648         * lib/unicase/u-casemap.h: New file.
19649         * modules/unicase/u8-casemap: New file.
19650
19651         New module 'unicase/special-casing'.
19652         * lib/unicase/special-casing.h: New file.
19653         * lib/unicase/special-casing.c: New file.
19654         * lib/unicase/special-casing-table.gperf: New file, generated by
19655         gen-uni-tables.c.
19656         * modules/unicase/special-casing: New file.
19657
19658         Tests for module 'unicase/locale-language'.
19659         * modules/unicase/locale-language-tests: New file.
19660         * tests/unicase/test-locale-language.sh: New file.
19661         * tests/unicase/test-locale-language.c: New file.
19662
19663         New module 'unicase/locale-language'.
19664         * lib/unicase/locale-language.c: New file.
19665         * lib/unicase/locale-languages.gperf: New file.
19666         * modules/unicase/locale-language: New file.
19667
19668         Generate more tables for case conversion and case folding.
19669         * lib/gen-uni-tables.c (SCC_*): New enum items.
19670         (struct special_casing_rule): New type.
19671         (casing_rules, num_casing_rules, allocated_casing_rules): New
19672         variables.
19673         (add_casing_rule, fill_casing_rules): New functions.
19674         (struct casefold_rule): New type.
19675         (casefolding_rules, num_casefolding_rules,
19676         allocated_casefolding_rules): New variables.
19677         (fill_casefolding_rules): New function.
19678         (unicode_casefold): New variable.
19679         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
19680         sort_casing_rules, output_casing_rules): New functions.
19681         (main): Accept to more arguments: SpecialCasing.txt and
19682         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
19683         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
19684         Output mapping for casefolding.
19685
19686         * lib/unicase.h: Include stdbool.h, uninorm.h.
19687         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
19688         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
19689         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
19690         arguments.
19691         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
19692         resultp arguments.
19693         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
19694         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
19695         resultp arguments.
19696         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
19697         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
19698         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
19699         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
19700         declarations.
19701         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
19702
19703 2009-03-08  Bruno Haible  <bruno@clisp.org>
19704
19705         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19706         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
19707         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
19708         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19709
19710 2009-03-07  Bruno Haible  <bruno@clisp.org>
19711
19712         Adjust u*_normcmp, u*_normcoll API.
19713         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19714         u16_normcoll, u32_normcoll): Change failure conventions.
19715         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
19716         errno and return -1.
19717         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19718
19719 2009-03-07  Bruno Haible  <bruno@clisp.org>
19720
19721         Tests for module 'uninorm/u32-normcoll'.
19722         * modules/uninorm/u32-normcoll-tests: New file.
19723         * tests/uninorm/test-u32-normcoll.c: New file.
19724
19725         Tests for module 'uninorm/u16-normcoll'.
19726         * modules/uninorm/u16-normcoll-tests: New file.
19727         * tests/uninorm/test-u16-normcoll.c: New file.
19728
19729         Tests for module 'uninorm/u8-normcoll'.
19730         * modules/uninorm/u8-normcoll-tests: New file.
19731         * tests/uninorm/test-u8-normcoll.c: New file.
19732
19733 2009-03-07  Bruno Haible  <bruno@clisp.org>
19734
19735         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
19736         tests/uninorm/test-u32-normcmp.c.
19737         * tests/uninorm/test-u32-normcmp.c: Include it.
19738         (test_nonascii): New function, extracted from main. Add some more
19739         tests.
19740         (main): Invoke test_ascii and test_nonascii.
19741         * modules/uninorm/u32-normcmp-tests (Files): Add
19742         tests/uninorm/test-u32-normcmp.h.
19743         (Depends-on): Remove uninorm/u32-normcmp.
19744
19745         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
19746         tests/uninorm/test-u16-normcmp.c.
19747         * tests/uninorm/test-u16-normcmp.c: Include it.
19748         (test_nonascii): New function, extracted from main. Add some more
19749         tests.
19750         (main): Invoke test_ascii and test_nonascii.
19751         * modules/uninorm/u16-normcmp-tests (Files): Add
19752         tests/uninorm/test-u16-normcmp.h.
19753         (Depends-on): Remove uninorm/u16-normcmp.
19754
19755         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
19756         tests/uninorm/test-u8-normcmp.c.
19757         * tests/uninorm/test-u8-normcmp.c: Include it.
19758         (test_nonascii): New function, extracted from main. Add some more
19759         tests.
19760         (main): Invoke test_ascii and test_nonascii.
19761         * modules/uninorm/u8-normcmp-tests (Files): Add
19762         tests/uninorm/test-u8-normcmp.h.
19763         (Depends-on): Remove uninorm/u8-normcmp.
19764
19765 2009-03-07  Bruno Haible  <bruno@clisp.org>
19766
19767         New module 'uninorm/u32-normcoll'.
19768         * lib/uninorm/u32-normcoll.c: New file.
19769         * modules/uninorm/u32-normcoll: New file.
19770
19771         New module 'uninorm/u16-normcoll'.
19772         * lib/uninorm/u16-normcoll.c: New file.
19773         * modules/uninorm/u16-normcoll: New file.
19774
19775         New module 'uninorm/u8-normcoll'.
19776         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
19777         declarations.
19778         * lib/uninorm/u8-normcoll.c: New file.
19779         * lib/uninorm/u-normcoll.h: New file.
19780         * modules/uninorm/u8-normcoll: New file.
19781
19782         New module 'uninorm/u32-normxfrm'.
19783         * lib/uninorm/u32-normxfrm.c: New file.
19784         * modules/uninorm/u32-normxfrm: New file.
19785
19786         New module 'uninorm/u16-normxfrm'.
19787         * lib/uninorm/u16-normxfrm.c: New file.
19788         * modules/uninorm/u16-normxfrm: New file.
19789
19790         New module 'uninorm/u8-normxfrm'.
19791         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
19792         declarations.
19793         * lib/uninorm/u8-normxfrm.c: New file.
19794         * lib/uninorm/u-normxfrm.h: New file.
19795         * modules/uninorm/u8-normxfrm: New file.
19796
19797 2009-03-07  Bruno Haible  <bruno@clisp.org>
19798
19799         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
19800         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
19801         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
19802
19803 2009-03-07  Bruno Haible  <bruno@clisp.org>
19804
19805         New module 'memxfrm'.
19806         * lib/memxfrm.h: New file.
19807         * lib/memxfrm.c: New file.
19808         * modules/memxfrm: New file.
19809
19810 2009-03-07  Bruno Haible  <bruno@clisp.org>
19811
19812         New module 'memcmp2'.
19813         * lib/memcmp2.h: New file.
19814         * lib/memcmp2.c: New file.
19815         * modules/memcmp2: New file.
19816
19817 2009-03-07  Bruno Haible  <bruno@clisp.org>
19818
19819         Tests for module 'uninorm/decomposing-form'.
19820         * modules/uninorm/decomposing-form-tests: New file.
19821         * tests/uninorm/test-decomposing-form.c: New file.
19822
19823         New module 'uninorm/decomposing-form'.
19824         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
19825         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
19826         Add 'decomposing_variant' field.
19827         * lib/uninorm/decomposing-form.c: New file.
19828         * lib/uninorm/nfc.c (uninorm_nfc): Update.
19829         * lib/uninorm/nfd.c (uninorm_nfd): Update.
19830         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
19831         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
19832         * modules/uninorm/decomposing-form: New file.
19833         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
19834         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
19835
19836 2009-03-07  Bruno Haible  <bruno@clisp.org>
19837
19838         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
19839         strings.
19840
19841 2009-03-06  Bruno Haible  <bruno@clisp.org>
19842
19843         Tests for module 'uninorm/u32-normcmp'.
19844         * tests/uninorm/test-u32-normcmp.c: New file.
19845         * modules/uninorm/u32-normcmp-tests: New file.
19846
19847         Tests for module 'uninorm/u16-normcmp'.
19848         * tests/uninorm/test-u16-normcmp.c: New file.
19849         * modules/uninorm/u16-normcmp-tests: New file.
19850
19851         Tests for module 'uninorm/u8-normcmp'.
19852         * tests/uninorm/test-u8-normcmp.c: New file.
19853         * modules/uninorm/u8-normcmp-tests: New file.
19854
19855         New module 'uninorm/u32-normcmp'.
19856         * lib/uninorm/u32-normcmp.c: New file.
19857         * modules/uninorm/u32-normcmp: New file.
19858
19859         New module 'uninorm/u16-normcmp'.
19860         * lib/uninorm/u16-normcmp.c: New file.
19861         * modules/uninorm/u16-normcmp: New file.
19862
19863         New module 'uninorm/u8-normcmp'.
19864         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
19865         declarations.
19866         * lib/uninorm/u8-normcmp.c: New file.
19867         * lib/uninorm/u-normcmp.h: New file.
19868         * modules/uninorm/u8-normcmp: New file.
19869
19870 2009-03-06  Bruno Haible  <bruno@clisp.org>
19871
19872         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
19873         Reported by Eric Blake.
19874
19875 2009-03-06  Eric Blake  <ebb9@byu.net>
19876             Bruno Haible  <bruno@clisp.org>
19877
19878         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
19879         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
19880         condition.
19881         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19882         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
19883         condition.
19884         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19885
19886 2009-03-06  Eric Blake  <ebb9@byu.net>
19887
19888         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
19889         to avoid compiler warnings.
19890         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
19891
19892 2009-03-05  Bruno Haible  <bruno@clisp.org>
19893
19894         * tests/test-ftell.c (main): Disable test beyond end of file on
19895         FreeMiNT.
19896         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19897
19898 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
19899
19900         * lib/filevercmp.c: Move hidden files up in ordering.
19901         * tests/test-filevercmp.c: Add tests for hidden files.
19902
19903 2009-03-04  Bruno Haible  <bruno@clisp.org>
19904
19905         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
19906         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
19907         AM_CFLAGS.
19908         Reported by Simon Josefsson.
19909
19910 2009-03-03  Bruno Haible  <bruno@clisp.org>
19911
19912         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
19913         Reported by Simon Josefsson.
19914
19915         * doc/ld-version-script.texi: Update node reference.
19916
19917 2009-03-03  Bruno Haible  <bruno@clisp.org>
19918
19919         * modules/visibility (License): Change to 'unlimited'.
19920         Suggested by Simon Josefsson.
19921
19922 2009-03-03  Jim Meyering  <meyering@redhat.com>
19923
19924         unlinkdir: cannot_unlink_dir may modify process state
19925         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19926         it's neither thread-safe nor appropriate for use in a library.
19927
19928 2009-03-03  Eric Blake  <ebb9@byu.net>
19929
19930         test-closein: silence test under Darwin
19931         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19932         care if it dies from EPIPE or EBADF.
19933
19934 2009-03-03  Bruno Haible  <bruno@clisp.org>
19935
19936         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19937         earlier.
19938         * doc/visibility.texi: Fix @node and @section.
19939
19940 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19941
19942         * doc/gnulib.texi: Link to sections for ld version script and
19943         visibility.
19944         * doc/visibility.texi: Add @node and @section.
19945         * modules/ld-version-script: New module.
19946         * m4/ld-version-script.m4: New file.
19947         * doc/ld-version-script.texi: New file.
19948
19949 2009-03-02  David Lutterkort  <lutter@redhat.com>
19950
19951         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19953
19954 2009-03-02  Bruno Haible  <bruno@clisp.org>
19955
19956         * doc/visibility.texi: Mention libtool's -export-symbols option.
19957
19958 2009-03-02  Jim Meyering  <meyering@redhat.com>
19959
19960         announce-gen: new option: --no-print-checksums
19961         * build-aux/announce-gen (usage): Describe it.
19962         (print_checksums): Print a newline here, not in the [*] footnote.
19963         (main): Honor it.
19964
19965 2009-03-01  Bruno Haible  <bruno@clisp.org>
19966
19967         Use socklen_t in the native Windows replacements prototypes.
19968         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
19969         instead of 'int'.
19970         * lib/getsockopt.c (rpl_getsockopt): Likewise.
19971         * lib/setsockopt.c (rpl_setsockopt): Likewise.
19972         * modules/getsockopt (Depends-on): Add socklen.
19973         * modules/setsockopt (Depends-on): Add socklen.
19974
19975 2009-03-01  Bruno Haible  <bruno@clisp.org>
19976
19977         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
19978         least 4.2.
19979
19980 2009-03-01  Eric Blake  <ebb9@byu.net>
19981             Bruno Haible  <bruno@clisp.org>
19982
19983         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
19984         error messages.
19985         * lib/wait-process.c (wait_subprocess): Omit error message about
19986         deadly signal sent to the child of termsigp != NULL.
19987
19988 2009-03-01  Eric Blake  <ebb9@byu.net>
19989
19990         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
19991
19992 2009-03-01  Bruno Haible  <bruno@clisp.org>
19993
19994         Avoid a gcc warning.
19995         * tests/test-sched.c (b): Make global.
19996         Reported by Eric Blake.
19997
19998 2009-01-19  Martin Lambers  <marlam@marlam.de>
19999
20000         Provide POSIX semantics for socket timeout options on W32.
20001         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20002         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20003         * modules/setsockopt: Depend on sys_time module for struct timeval.
20004         * modules/getsockopt: Depend on sys_time module for struct timeval.
20005
20006 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20007
20008         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20009         __USE_GNU, for consistency with netdb.in.h.
20010         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20011
20012 2009-03-01  Bruno Haible  <bruno@clisp.org>
20013
20014         More support for FreeMiNT.
20015         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20016         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20017
20018 2009-03-01  Bruno Haible  <bruno@clisp.org>
20019
20020         More support for FreeMiNT.
20021         * lib/fpurge.c (fpurge): Correct last commit.
20022         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20023
20024 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20025
20026         Fix unportable awk script in vc-list-files.
20027         * build-aux/vc-list-files: In the replacement awk script, use
20028         substr with a second argument of 1, not zero.
20029         Report by Simon Josefsson.
20030
20031 2009-02-28  Bruno Haible  <bruno@clisp.org>
20032
20033         More support for FreeMiNT.
20034         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20035         to FreeMiNT today.
20036         * lib/fwriting.c (fwriting): Likewise.
20037         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20038
20039 2009-02-28  Bruno Haible  <bruno@clisp.org>
20040
20041         * tests/test-freadseek.c (main): Disable test beyond end of file on
20042         FreeMiNT.
20043         * tests/test-ftello.c (main): Likewise.
20044         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20045
20046 2009-02-28  Bruno Haible  <bruno@clisp.org>
20047
20048         Add tentative support for FreeMiNT.
20049         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20050         * lib/fpurge.c (fpurge): Likewise.
20051         * lib/freadable.c (freadable): Likewise.
20052         * lib/freading.c (freading): Likewise.
20053         * lib/freadptr.c (freadptr): Likewise.
20054         * lib/freadseek.c (freadptrinc): Likewise.
20055         * lib/fseeko.c (rpl_fseeko): Likewise.
20056         * lib/fseterr.c (fseterr): Likewise.
20057         * lib/fwritable.c (fwritable): Likewise.
20058         * lib/fwriting.c (fwriting): Likewise.
20059         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20060         Hourihane.
20061         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20062
20063 2009-02-28  Bruno Haible  <bruno@clisp.org>
20064
20065         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20066         SIGCHLD.
20067         Reported by Jim Meyering.
20068
20069 2009-02-28  Bruno Haible  <bruno@clisp.org>
20070
20071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20072         Mention the results of these tests on various platforms.
20073         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20074         order.
20075         * doc/posix-functions/printf.texi: Likewise.
20076         * doc/posix-functions/snprintf.texi: Likewise.
20077         * doc/posix-functions/sprintf.texi: Likewise.
20078         * doc/posix-functions/vfprintf.texi: Likewise.
20079         * doc/posix-functions/vprintf.texi: Likewise.
20080         * doc/posix-functions/vsnprintf.texi: Likewise.
20081         * doc/posix-functions/vsprintf.texi: Likewise.
20082         * doc/glibc-functions/obstack_printf.texi: Likewise.
20083         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20084
20085 2009-02-28  Bruno Haible  <bruno@clisp.org>
20086
20087         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20088         Reported by Loïc Minier <lool@dooz.org>.
20089
20090 2009-02-27  Bruno Haible  <bruno@clisp.org>
20091
20092         * gnulib-tool (func_import): Make the sed expression used to create the
20093         sed script for updating the .gitignore file POSIX compliant.
20094         Reported by Eric Blake.
20095
20096 2009-02-27  Bruno Haible  <bruno@clisp.org>
20097
20098         * gnulib-tool (sed): Don't alias as "sed --posix".
20099         Reported by Eric Blake.
20100
20101 2009-02-27  Bruno Haible  <bruno@clisp.org>
20102
20103         Avoid test link errors.
20104         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20105         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20106         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20107         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20109
20110 2009-02-27  Bruno Haible  <bruno@clisp.org>
20111
20112         Avoid spurious "(cached)" in configure output.
20113         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20114         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20115         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20116         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20117         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20118         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20119         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20120         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20121         Reported by Eric Blake.
20122
20123 2009-02-27  Eric Blake  <ebb9@byu.net>
20124
20125         printf: fix regression in previous patch
20126         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20127
20128 2009-02-27  Bruno Haible  <bruno@clisp.org>
20129
20130         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20131         value.
20132         * lib/stdint.in.h: Likewise.
20133         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20134
20135 2009-02-27  Eric Blake  <ebb9@byu.net>
20136
20137         doc: mention more functions added in cygwin 1.7.0
20138         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20139         addition.
20140         * doc/posix-functions/open_wmemstream.texi: Likewise.
20141         * doc/posix-functions/wcsnlen.texi: Likewise.
20142         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20143         * doc/posix-functions/wcstod.texi: Likewise.
20144         * doc/posix-functions/wcstof.texi: Likewise.
20145         * doc/posix-functions/wcstoimax.texi: Likewise.
20146         * doc/posix-functions/wcstok.texi: Likewise.
20147         * doc/posix-functions/wcstoumax.texi: Likewise.
20148
20149         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20151         * doc/posix-functions/fprintf.texi: Update.
20152         * doc/posix-functions/printf.texi: Update.
20153         * doc/posix-functions/snprintf.texi: Update.
20154         * doc/posix-functions/sprintf.texi: Update.
20155         * doc/posix-functions/vfprintf.texi: Update.
20156         * doc/posix-functions/vprintf.texi: Update.
20157         * doc/posix-functions/vsnprintf.texi: Update.
20158         * doc/posix-functions/vsprintf.texi: Update.
20159         * doc/glibc-functions/obstack_printf.texi: Update.
20160         * doc/glibc-functions/obstack_vprintf.texi: Update.
20161
20162 2009-02-26  Eric Blake  <ebb9@byu.net>
20163
20164         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20165         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20166         compilation bug by using runtime conversion.
20167         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20168         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20169         * modules/ceill-tests (Files): Use nan.h.
20170         * modules/floorl-tests (Files): Likewise.
20171         * modules/frexpl-tests (Files): Likewise.
20172         * modules/isnanl-tests (Files): Likewise.
20173         * modules/ldexpl-tests (Files): Likewise.
20174         * modules/roundl-tests (Files): Likewise.
20175         * modules/truncl-tests (Files): Likewise.
20176         * tests/test-ceill.c (main): Use a working NaN.
20177         * tests/test-floorl.c (main): Likewise.
20178         * tests/test-frexpl.c (main): Likewise.
20179         * tests/test-isnan.c (test_long_double): Likewise.
20180         * tests/test-isnanl.h (main): Likewise.
20181         * tests/test-ldexpl.h (main): Likewise.
20182         * tests/test-roundl.h (main): Likewise.
20183         * tests/test-truncl.h (main): Likewise.
20184         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20185
20186 2009-02-26  Eric Blake  <ebb9@byu.net>
20187             Bruno Haible  <bruno@clisp.org>
20188
20189         Work around a *printf bug with %ls on Solaris.
20190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20191         precision is specified, sprintf stops converting the wide string
20192         argument when the number of bytes that have been produced by this
20193         conversion equals or exceeds the precision.
20194         * doc/posix-functions/fprintf.texi: Update.
20195         * doc/posix-functions/printf.texi: Update.
20196         * doc/posix-functions/snprintf.texi: Update.
20197         * doc/posix-functions/sprintf.texi: Update.
20198         * doc/posix-functions/vfprintf.texi: Update.
20199         * doc/posix-functions/vprintf.texi: Update.
20200         * doc/posix-functions/vsnprintf.texi: Update.
20201         * doc/posix-functions/vsprintf.texi: Update.
20202         * doc/glibc-functions/obstack_printf.texi: Update.
20203         * doc/glibc-functions/obstack_vprintf.texi: Update.
20204
20205 2009-02-26  Eric Blake  <ebb9@byu.net>
20206
20207         stdlib: favor compiler check of random.h
20208         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20209         to avoid an ObjC random.h installed by Swarm.
20210
20211 2009-02-26  Bruno Haible  <bruno@clisp.org>
20212
20213         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20214         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20215         Reported by Gary V. Vaughan <gary@gnu.org>.
20216
20217 2009-02-26  Bruno Haible  <bruno@clisp.org>
20218
20219         Fix *printf behaviour regarding the %ls directive.
20220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20221         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20222         NEED_PRINTF_DIRECTIVE_LS.
20223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20224         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20226         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20227         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20228         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20229         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20234         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20238         * doc/posix-functions/fprintf.texi: Update.
20239         * doc/posix-functions/printf.texi: Update.
20240         * doc/posix-functions/snprintf.texi: Update.
20241         * doc/posix-functions/sprintf.texi: Update.
20242         * doc/posix-functions/vfprintf.texi: Update.
20243         * doc/posix-functions/vprintf.texi: Update.
20244         * doc/posix-functions/vsnprintf.texi: Update.
20245         * doc/posix-functions/vsprintf.texi: Update.
20246         * doc/glibc-functions/obstack_printf.texi: Update.
20247         * doc/glibc-functions/obstack_vprintf.texi: Update.
20248         Reported by Eric Blake.
20249
20250 2009-02-25  Bruno Haible  <bruno@clisp.org>
20251
20252         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20253         with known value.
20254         Reported by Gary V. Vaughan <gary@gnu.org>.
20255
20256 2009-02-25  Bruno Haible  <bruno@clisp.org>
20257
20258         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20259         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20260         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20261         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20262         Reported by Gary V. Vaughan <gary@gnu.org>.
20263
20264 2009-02-25  Bruno Haible  <bruno@clisp.org>
20265
20266         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20267         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20268         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20269         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20270         Reported by Gary V. Vaughan <gary@gnu.org>.
20271
20272 2009-02-25  Eric Blake  <ebb9@byu.net>
20273
20274         tests: skip fseek/ftell tests if ungetc is broken
20275         * m4/ungetc.m4: New file.
20276         * modules/fseek-tests: Split test, so ungetc dependency is
20277         separate from rest of test.
20278         * modules/fseeko-tests: Likewise.
20279         * modules/ftell-tests: Likewise.
20280         * modules/ftello-tests: Likewise.
20281         * tests/test-fseek.c (main): Isolate ungetc dependency.
20282         * tests/test-fseeko.c (main): Likewise.
20283         * tests/test-ftell.c (main): Likewise.
20284         * tests/test-ftello.c (main): Likewise.
20285         * tests/test-fseek2.sh: New file.
20286         * tests/test-fseeko2.sh: Likewise.
20287         * tests/test-ftell2.sh: Likewise.
20288         * tests/test-ftello2.sh: Likewise.
20289
20290 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
20291
20292         test-getaddrinfo: fix usage of skip return code 77
20293         * tests/test-gettaddrinfo.c: Return skip code 77 only
20294         for first occurance of skip (4x77 is not 77)
20295
20296 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20297
20298         strtod: avoid C99 decl-after-statement
20299         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20300
20301 2009-02-24  Eric Blake  <ebb9@byu.net>
20302
20303         strtod: detect HP-UX 11.31 bug
20304         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20305         Reported by Gary V. Vaughan.
20306
20307 2009-02-23  Bruno Haible  <bruno@clisp.org>
20308
20309         Fix invalid read past end of memory block.
20310         * lib/vasnprintf.c (DCHAR_SET): Define.
20311         (local_wcslen): Define only when needed.
20312         (local_strnlen, local_wcsnlen): New functions.
20313         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20314         directives that involve a conversion ourselves.
20315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20316         wcsnlen, mbrtowc, wcrtomb.
20317         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20318         * tests/test-vasprintf-posix.c (test_function): Likewise.
20319         * tests/test-snprintf-posix.h (test_function): Likewise.
20320         * tests/test-sprintf-posix.h (test_function): Likewise.
20321         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20322
20323 2009-02-22  Bruno Haible  <bruno@clisp.org>
20324
20325         Implement new clarified decomposition of Hangul syllables.
20326         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20327         of type LTV, return only a pairwise decomposition.
20328         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20329         Likewise.
20330         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20331         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20332         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20333
20334 2009-02-22  Bruno Haible  <bruno@clisp.org>
20335
20336         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20337         zero-length results and shrink excess allocated memory.
20338         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20339         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20340         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20341         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20342         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20343         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20344         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20345         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20346         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20347         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20348         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20349         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20350
20351 2009-02-21  Bruno Haible  <bruno@clisp.org>
20352
20353         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20354         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20355         spaces after a period. Put a space between a macro name and its
20356         argument list. Trivial rewordings.
20357         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20358         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20359         (main): Return 0 explicitly.
20360
20361 2009-02-21  Bruno Haible  <bruno@clisp.org>
20362
20363         Tests for module 'uninorm/filter'.
20364         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
20365         * modules/uninorm/filter-tests: New file.
20366
20367         New module 'uninorm/filter'.
20368         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
20369         uninorm_filter_flush, uninorm_filter_free): New declarations.
20370         * lib/uninorm/uninorm-filter.c: New file.
20371         * modules/uninorm/filter: New file.
20372
20373 2009-02-21  Bruno Haible  <bruno@clisp.org>
20374
20375         Tests for module 'uninorm/nfkc'.
20376         * tests/uninorm/test-nfkc.c: New file.
20377         * tests/uninorm/test-u8-nfkc.c: New file.
20378         * tests/uninorm/test-u16-nfkc.c: New file.
20379         * tests/uninorm/test-u32-nfkc.c: New file.
20380         * tests/uninorm/test-u32-nfkc-big.sh: New file.
20381         * tests/uninorm/test-u32-nfkc-big.c: New file.
20382         * modules/uninorm/nfkc-tests: New file.
20383
20384         New module 'uninorm/nfkc'.
20385         * lib/uninorm/nfkc.c: New file.
20386         * modules/uninorm/nfkc: New file.
20387
20388         Tests for module 'uninorm/nfkd'.
20389         * tests/uninorm/test-nfkd.c: New file.
20390         * tests/uninorm/test-u8-nfkd.c: New file.
20391         * tests/uninorm/test-u16-nfkd.c: New file.
20392         * tests/uninorm/test-u32-nfkd.c: New file.
20393         * tests/uninorm/test-u32-nfkd-big.sh: New file.
20394         * tests/uninorm/test-u32-nfkd-big.c: New file.
20395         * modules/uninorm/nfkd-tests: New file.
20396
20397         New module 'uninorm/nfkd'.
20398         * lib/uninorm/nfkd.c: New file.
20399         * modules/uninorm/nfkd: New file.
20400
20401         Tests for module 'uninorm/nfc'.
20402         * tests/uninorm/test-nfc.c: New file.
20403         * tests/uninorm/test-u8-nfc.c: New file.
20404         * tests/uninorm/test-u16-nfc.c: New file.
20405         * tests/uninorm/test-u32-nfc.c: New file.
20406         * tests/uninorm/test-u32-nfc-big.sh: New file.
20407         * tests/uninorm/test-u32-nfc-big.c: New file.
20408         * modules/uninorm/nfc-tests: New file.
20409
20410         New module 'uninorm/nfc'.
20411         * lib/uninorm/nfc.c: New file.
20412         * modules/uninorm/nfc: New file.
20413
20414         Tests for module 'uninorm/nfd'.
20415         * tests/uninorm/test-nfd.c: New file.
20416         * tests/uninorm/test-u8-nfd.c: New file.
20417         * tests/uninorm/test-u16-nfd.c: New file.
20418         * tests/uninorm/test-u32-nfd.c: New file.
20419         * tests/uninorm/test-u32-nfd-big.sh: New file.
20420         * tests/uninorm/test-u32-nfd-big.c: New file.
20421         * tests/uninorm/test-u32-normalize-big.h: New file.
20422         * tests/uninorm/test-u32-normalize-big.c: New file.
20423         * tests/uninorm/NormalizationTest.txt: New file, created from
20424         Unicode 5.1.0 NormalizationTest.txt.
20425         * modules/uninorm/nfd-tests: New file.
20426
20427         New module 'uninorm/nfd'.
20428         * lib/uninorm/nfd.c: New file.
20429         * modules/uninorm/nfd: New file.
20430
20431         New module 'uninorm/u32-normalize'.
20432         * lib/uninorm/u32-normalize.c: New file.
20433         * modules/uninorm/u32-normalize: New file.
20434
20435         New module 'uninorm/u16-normalize'.
20436         * lib/uninorm/u16-normalize.c: New file.
20437         * modules/uninorm/u16-normalize: New file.
20438
20439         New module 'uninorm/u8-normalize'.
20440         * lib/uninorm/u8-normalize.c: New file.
20441         * lib/uninorm/normalize-internal.h: New file.
20442         * lib/uninorm/u-normalize-internal.h: New file.
20443         * modules/uninorm/u8-normalize: New file.
20444
20445         New module 'uninorm/decompose-internal'.
20446         * lib/uninorm/decompose-internal.c: New file.
20447         * modules/uninorm/decompose-internal: New file.
20448
20449         Tests for module 'uninorm/composition'.
20450         * tests/uninorm/test-composition.c: New file.
20451         * modules/uninorm/composition-tests: New file.
20452
20453         New module 'uninorm/composition'.
20454         * lib/uninorm/composition.c: New file.
20455         * lib/uninorm/composition-table.gperf: New file, generated by
20456         gen-uni-tables.
20457         * modules/uninorm/composition: New file.
20458
20459         Tests for module 'uninorm/compat-decomposition'.
20460         * tests/uninorm/test-compat-decomposition.c: New file.
20461         * modules/uninorm/compat-decomposition-tests: New file.
20462
20463         New module 'uninorm/compat-decomposition'.
20464         * lib/uninorm/decompose-internal.h: New file.
20465         * lib/uninorm/compat-decomposition.c: New file.
20466         * modules/uninorm/compat-decomposition: New file.
20467
20468         Tests for module 'uninorm/canonical-decomposition'.
20469         * tests/uninorm/test-canonical-decomposition.c: New file.
20470         * modules/uninorm/canonical-decomposition-tests: New file.
20471
20472         New module 'uninorm/canonical-decomposition'.
20473         * lib/uninorm/canonical-decomposition.c: New file.
20474         * modules/uninorm/canonical-decomposition: New file.
20475
20476         Tests for module 'uninorm/decomposition'.
20477         * tests/uninorm/test-decomposition.c: New file.
20478         * modules/uninorm/decomposition-tests: New file.
20479
20480         New module 'uninorm/decomposition'.
20481         * lib/uninorm/decomposition.c: New file.
20482         * modules/uninorm/decomposition: New file.
20483
20484         New module 'uninorm/decomposition-table'.
20485         * lib/uninorm/decomposition-table.h: New file.
20486         * lib/uninorm/decomposition-table.c: New file.
20487         * lib/uninorm/decomposition-table1.h: New file, generated by
20488         gen-uni-tables.
20489         * lib/uninorm/decomposition-table2.h: New file, generated by
20490         gen-uni-tables.
20491         * modules/uninorm/decomposition-table: New file.
20492
20493         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
20494         (UC_DECOMP_*): New enumeration items.
20495         (get_decomposition): New function.
20496         (struct decomp_table): New type.
20497         (output_decomposition, output_decomposition_tables): New functions.
20498         (unicode_composition_exclusions): New variable.
20499         (fill_composition_exclusions, debug_output_composition_tables): New
20500         functions.
20501         (main): Accept one more argument. Invoke fill_composition_exclusions.
20502         Output decomposition and composition tables.
20503
20504         New module 'uninorm/base'.
20505         * lib/uninorm.h: New file.
20506         * lib/unictype.h: Update comment.
20507         * modules/uninorm/base: New file.
20508
20509 2009-02-21  David Lutterkort  <lutter@redhat.com>
20510
20511         Tests for module 'safe-alloc'.
20512         * tests/test-safe-alloc.c: New file.
20513         * modules/safe-alloc-tests: New file.
20514
20515         New module 'safe-alloc'.
20516         * lib/safe-alloc.h: New file.
20517         * lib/safe-alloc.c: New file.
20518         * m4/safe-alloc.m4: New file.
20519         * modules/safe-alloc: New file.
20520         * doc/safe-alloc.texi: New file.
20521         * doc/gnulib.texi: Include it.
20522         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20523         safe-alloc.
20524
20525 2009-02-18  Bruno Haible  <bruno@clisp.org>
20526
20527         Fix link error on non-glibc systems.
20528         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
20529         variable.
20530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20531
20532 2009-02-18  Jim Meyering  <meyering@redhat.com>
20533
20534         fts: avoid used-uninitialized error due to recent change
20535         * lib/fts.c (fts_read): Guard uses of the new member,
20536         parent->fts_n_dirs_remaining, since it's not relevant for
20537         the parent of a directory specified on the command-line.
20538
20539 2009-02-17  James Youngman  <jay@gnu.org>
20540             Bruno Haible  <bruno@clisp.org>
20541
20542         * m4/include_next.m4: Reformulate comment.
20543
20544 2009-02-16  Jim Meyering  <meyering@redhat.com>
20545
20546         fts: add #if guards so that the fts_lgpl module still builds
20547         * lib/fts.c: Guard just-added hash-table-using parts with
20548         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
20549         Reported by Simon Josefsson.
20550
20551 2009-02-15  Bruno Haible  <bruno@clisp.org>
20552
20553         * modules/array-mergesort-tests: New file.
20554         * tests/test-array-mergesort.c: New file.
20555
20556         New module 'array-mergesort'.
20557         * modules/array-mergesort: New file.
20558         * lib/array-mergesort.h: New file.
20559
20560 2009-02-15  Bruno Haible  <bruno@clisp.org>
20561
20562         Fix 2009-02-07 commit.
20563         * lib/gen-uni-tables.c (output_predicate, output_category,
20564         output_combclass, output_bidi_category, output_decimal_digit,
20565         output_digit, output_numeric, output_mirror, output_scripts,
20566         output_ident_category, output_simple_mapping): Fix format directives.
20567         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
20568
20569 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
20570
20571         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
20572         fixes are available from IBM.
20573
20574 2009-02-13  Jim Meyering  <meyering@redhat.com>
20575
20576         fts: arrange not to stat non-directories in more cases
20577         This makes GNU find (when it doesn't need to stat each file)
20578         *much* more efficient at traversing reiserfs file systems.
20579         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
20580         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
20581         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
20582         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
20583         (leaf_optimization_applies): New function.
20584         (LCO_hash, LCO_compare): New helper functions.
20585         (link_count_optimize_ok): New function.
20586         (fts_stat): Initialize new member (if dir).
20587         (fts_read): Decrement parent's fts_n_dirs_remaining count if
20588         we've just stat'ed a directory.  Skip the stat call when possible.
20589         ---
20590         Note this AFS-related exchange:
20591         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
20592         and note find's pioctl call in find/fstype.c.
20593         But that is necessary only if you want to enable the
20594         optimization for AFS, and for now, I don't.
20595
20596         fts: move a function definition "up" (no semantic change)
20597         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
20598         "up" to precede upcoming use of a related function.
20599
20600 2009-02-11  Jim Meyering  <meyering@redhat.com>
20601
20602         fts: correct internal computation of nlinks (optimization-related)
20603         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
20604         whether the current entry is a directory, so don't test it.
20605
20606 2009-02-10  Bruno Haible  <bruno@clisp.org>
20607
20608         Tests for module 'uniwbrk/ulc-wordbreaks'.
20609         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
20610         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
20611         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
20612
20613         Tests for module 'uniwbrk/u32-wordbreaks'.
20614         * modules/uniwbrk/u32-wordbreaks-tests: New file.
20615         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
20616
20617         Tests for module 'uniwbrk/u16-wordbreaks'.
20618         * modules/uniwbrk/u16-wordbreaks-tests: New file.
20619         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
20620
20621         Tests for module 'uniwbrk/u8-wordbreaks'.
20622         * modules/uniwbrk/u8-wordbreaks-tests: New file.
20623         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
20624
20625 2009-02-10  Bruno Haible  <bruno@clisp.org>
20626
20627         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
20628         property.
20629         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
20630         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
20631         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
20632
20633 2009-02-10  Simon Josefsson  <simon@josefsson.org>
20634
20635         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
20636         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
20637
20638 2009-02-10  Bruno Haible  <bruno@clisp.org>
20639
20640         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
20641         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
20642         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
20643         * lib/unilbrk/u8-possible-linebreaks.c: Update.
20644         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
20645         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
20646
20647 2009-02-09  Simon Josefsson  <simon@josefsson.org>
20648
20649         * lib/sockets.h (gl_fd_to_handle): New function.
20650
20651         * tests/test-sockets.c: Call gl_fd_to_handle.
20652
20653 2009-02-09  Bruno Haible  <bruno@clisp.org>
20654
20655         * doc/havelib.texi: Document the conventions on bi-arch systems.
20656
20657 2009-02-08  Bruno Haible  <bruno@clisp.org>
20658
20659         Document the AC_LIB_LINKFLAGS macro.
20660         * doc/havelib.texi: New file, mostly written on 2005-05-24.
20661         * doc/gnulib.texi: Include it.
20662
20663 2009-02-08  Bruno Haible  <bruno@clisp.org>
20664
20665         Fix wrong order of sections, compared to TOC.
20666         * doc/gnulib.texi: Include relocatable-maint.texi after the
20667         "Regular expressions" node, not before.
20668
20669 2009-02-08  Bruno Haible  <bruno@clisp.org>
20670
20671         Tests for module 'unicase/totitle'.
20672         * modules/unicase/totitle-tests: New file.
20673
20674         Tests for module 'unicase/tolower'.
20675         * modules/unicase/tolower-tests: New file.
20676
20677         Tests for module 'unicase/toupper'.
20678         * modules/unicase/toupper-tests: New file.
20679         * tests/unicase/test-mapping-part1.h: New file.
20680         * tests/unicase/test-mapping-part2.h: New file.
20681
20682         New module 'unicase/totitle'.
20683         * modules/unicase/totitle: New file.
20684         * lib/unicase/totitle.c: New file.
20685
20686         New module 'unicase/tolower'.
20687         * modules/unicase/tolower: New file.
20688         * lib/unicase/tolower.c: New file.
20689
20690         New module 'unicase/toupper'.
20691         * modules/unicase/toupper: New file.
20692         * lib/unicase/toupper.c: New file.
20693         * lib/unicase/simple-mapping.h: New file.
20694
20695         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
20696         (mapping_table): New structure.
20697         (output_simple_mapping): New function.
20698         (main): Invoke output_simple_mapping_test and output_simple_mapping.
20699         * modules/gen-uni-tables (Description): Update.
20700         * lib/unicase/toupper.h: New file, automatically generated by
20701         gen-uni-tables.
20702         * lib/unicase/tolower.h: New file, automatically generated by
20703         gen-uni-tables.
20704         * lib/unicase/totitle.h: New file, automatically generated by
20705         gen-uni-tables.
20706         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
20707         gen-uni-tables.
20708         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
20709         gen-uni-tables.
20710         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
20711         gen-uni-tables.
20712
20713         New module 'unicase/base'.
20714         * modules/unicase/base: New file.
20715         * lib/unicase.h: New file.
20716
20717 2009-02-08  Bruno Haible  <bruno@clisp.org>
20718
20719         New module 'uniwbrk/ulc-wordbreaks'.
20720         * modules/uniwbrk/ulc-wordbreaks: New file.
20721         * lib/uniwbrk/ulc-wordbreaks.c: New file.
20722
20723         New module 'uniwbrk/u32-wordbreaks'.
20724         * modules/uniwbrk/u32-wordbreaks: New file.
20725         * lib/uniwbrk/u32-wordbreaks.c: New file.
20726
20727         New module 'uniwbrk/u16-wordbreaks'.
20728         * modules/uniwbrk/u16-wordbreaks: New file.
20729         * lib/uniwbrk/u16-wordbreaks.c: New file.
20730
20731         New module 'uniwbrk/u8-wordbreaks'.
20732         * modules/uniwbrk/u8-wordbreaks: New file.
20733         * lib/uniwbrk/u8-wordbreaks.c: New file.
20734         * lib/uniwbrk/u-wordbreaks.h: New file.
20735
20736         New module 'uniwbrk/table'.
20737         * modules/uniwbrk/table: New file.
20738         * lib/uniwbrk/wbrktable.h: New file.
20739         * lib/uniwbrk/wbrktable.c: New file.
20740
20741         New module 'uniwbrk/wordbreak-property'.
20742         * modules/uniwbrk/wordbreak-property: New file.
20743         * lib/uniwbrk/wordbreak-property.c: New file.
20744
20745         * lib/gen-uni-tables.c (WBP_*): New enum items.
20746         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
20747         (unicode_org_wbp): New variable.
20748         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
20749         New functions.
20750         (wbp_table): New structure.
20751         (output_wbp, output_wbrk_tables): New functions.
20752         (main): Accept additional argument. Invoke fill_org_wbp,
20753         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
20754         output_wbrk_tables.
20755         * modules/gen-uni-tables (Description): Update.
20756         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
20757         gen-uni-tables.
20758
20759         New module 'uniwbrk/base'.
20760         * modules/uniwbrk/base: New file.
20761         * lib/uniwbrk.h: New file.
20762
20763 2009-02-08  Bruno Haible  <bruno@clisp.org>
20764
20765         Update to Unicode 5.1.0.
20766         * lib/gen-uni-tables.c (is_property_alphabetic): Include
20767         U+2185..U+2188.
20768         (is_property_default_ignorable_code_point): Don't include characters
20769         of category Cc or Cs and not-a-characters.
20770         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
20771         U+0D79, U+109E, U+109F, U+A60C.
20772         * lib/unictype/bidi_of.h: Regenerated.
20773         * lib/unictype/blocks.h: Regenerated.
20774         * lib/unictype/categ_C.h: Regenerated.
20775         * lib/unictype/categ_Cf.h: Regenerated.
20776         * lib/unictype/categ_Cn.h: Regenerated.
20777         * lib/unictype/categ_L.h: Regenerated.
20778         * lib/unictype/categ_Ll.h: Regenerated.
20779         * lib/unictype/categ_Lm.h: Regenerated.
20780         * lib/unictype/categ_Lo.h: Regenerated.
20781         * lib/unictype/categ_Lu.h: Regenerated.
20782         * lib/unictype/categ_M.h: Regenerated.
20783         * lib/unictype/categ_Mc.h: Regenerated.
20784         * lib/unictype/categ_Me.h: Regenerated.
20785         * lib/unictype/categ_Mn.h: Regenerated.
20786         * lib/unictype/categ_N.h: Regenerated.
20787         * lib/unictype/categ_Nd.h: Regenerated.
20788         * lib/unictype/categ_Nl.h: Regenerated.
20789         * lib/unictype/categ_No.h: Regenerated.
20790         * lib/unictype/categ_P.h: Regenerated.
20791         * lib/unictype/categ_Pd.h: Regenerated.
20792         * lib/unictype/categ_Pe.h: Regenerated.
20793         * lib/unictype/categ_Pf.h: Regenerated.
20794         * lib/unictype/categ_Pi.h: Regenerated.
20795         * lib/unictype/categ_Po.h: Regenerated.
20796         * lib/unictype/categ_Ps.h: Regenerated.
20797         * lib/unictype/categ_S.h: Regenerated.
20798         * lib/unictype/categ_Sk.h: Regenerated.
20799         * lib/unictype/categ_Sm.h: Regenerated.
20800         * lib/unictype/categ_So.h: Regenerated.
20801         * lib/unictype/categ_of.h: Regenerated.
20802         * lib/unictype/combining.h: Regenerated.
20803         * lib/unictype/ctype_alnum.h: Regenerated.
20804         * lib/unictype/ctype_alpha.h: Regenerated.
20805         * lib/unictype/ctype_graph.h: Regenerated.
20806         * lib/unictype/ctype_lower.h: Regenerated.
20807         * lib/unictype/ctype_print.h: Regenerated.
20808         * lib/unictype/ctype_punct.h: Regenerated.
20809         * lib/unictype/ctype_upper.h: Regenerated.
20810         * lib/unictype/decdigit.h: Regenerated.
20811         * lib/unictype/digit.h: Regenerated.
20812         * lib/unictype/mirror.h: Regenerated.
20813         * lib/unictype/numeric.h: Regenerated.
20814         * lib/unictype/pr_alphabetic.h: Regenerated.
20815         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
20816         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
20817         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
20818         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
20819         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
20820         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
20821         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
20822         * lib/unictype/pr_combining.h: Regenerated.
20823         * lib/unictype/pr_dash.h: Regenerated.
20824         * lib/unictype/pr_decimal_digit.h: Regenerated.
20825         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
20826         * lib/unictype/pr_deprecated.h: Regenerated.
20827         * lib/unictype/pr_diacritic.h: Regenerated.
20828         * lib/unictype/pr_extender.h: Regenerated.
20829         * lib/unictype/pr_format_control.h: Regenerated.
20830         * lib/unictype/pr_grapheme_base.h: Regenerated.
20831         * lib/unictype/pr_grapheme_extend.h: Regenerated.
20832         * lib/unictype/pr_grapheme_link.h: Regenerated.
20833         * lib/unictype/pr_id_continue.h: Regenerated.
20834         * lib/unictype/pr_id_start.h: Regenerated.
20835         * lib/unictype/pr_ideographic.h: Regenerated.
20836         * lib/unictype/pr_ignorable_control.h: Regenerated.
20837         * lib/unictype/pr_lowercase.h: Regenerated.
20838         * lib/unictype/pr_math.h: Regenerated.
20839         * lib/unictype/pr_numeric.h: Regenerated.
20840         * lib/unictype/pr_other_alphabetic.h: Regenerated.
20841         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
20842         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
20843         * lib/unictype/pr_other_id_continue.h: Regenerated.
20844         * lib/unictype/pr_other_lowercase.h: Regenerated.
20845         * lib/unictype/pr_other_math.h: Regenerated.
20846         * lib/unictype/pr_punctuation.h: Regenerated.
20847         * lib/unictype/pr_sentence_terminal.h: Regenerated.
20848         * lib/unictype/pr_soft_dotted.h: Regenerated.
20849         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
20850         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
20851         * lib/unictype/pr_unified_ideograph.h: Regenerated.
20852         * lib/unictype/pr_uppercase.h: Regenerated.
20853         * lib/unictype/pr_xid_continue.h: Regenerated.
20854         * lib/unictype/pr_xid_start.h: Regenerated.
20855         * lib/unictype/pr_zero_width.h: Regenerated.
20856         * lib/unictype/scripts.h: Regenerated.
20857         * lib/unictype/scripts_byname.gperf: Regenerated.
20858         * lib/unictype/sy_java_ident.h: Regenerated.
20859         * lib/unilbrk/lbrkprop1.h: Regenerated.
20860         * lib/unilbrk/lbrkprop2.h: Regenerated.
20861         * tests/unictype/test-categ_C.c: Regenerated.
20862         * tests/unictype/test-categ_Cf.c: Regenerated.
20863         * tests/unictype/test-categ_Cn.c: Regenerated.
20864         * tests/unictype/test-categ_L.c: Regenerated.
20865         * tests/unictype/test-categ_Ll.c: Regenerated.
20866         * tests/unictype/test-categ_Lm.c: Regenerated.
20867         * tests/unictype/test-categ_Lo.c: Regenerated.
20868         * tests/unictype/test-categ_Lu.c: Regenerated.
20869         * tests/unictype/test-categ_M.c: Regenerated.
20870         * tests/unictype/test-categ_Mc.c: Regenerated.
20871         * tests/unictype/test-categ_Me.c: Regenerated.
20872         * tests/unictype/test-categ_Mn.c: Regenerated.
20873         * tests/unictype/test-categ_N.c: Regenerated.
20874         * tests/unictype/test-categ_Nd.c: Regenerated.
20875         * tests/unictype/test-categ_Nl.c: Regenerated.
20876         * tests/unictype/test-categ_No.c: Regenerated.
20877         * tests/unictype/test-categ_P.c: Regenerated.
20878         * tests/unictype/test-categ_Pd.c: Regenerated.
20879         * tests/unictype/test-categ_Pe.c: Regenerated.
20880         * tests/unictype/test-categ_Pf.c: Regenerated.
20881         * tests/unictype/test-categ_Pi.c: Regenerated.
20882         * tests/unictype/test-categ_Po.c: Regenerated.
20883         * tests/unictype/test-categ_Ps.c: Regenerated.
20884         * tests/unictype/test-categ_S.c: Regenerated.
20885         * tests/unictype/test-categ_Sk.c: Regenerated.
20886         * tests/unictype/test-categ_Sm.c: Regenerated.
20887         * tests/unictype/test-categ_So.c: Regenerated.
20888         * tests/unictype/test-ctype_alnum.c: Regenerated.
20889         * tests/unictype/test-ctype_alpha.c: Regenerated.
20890         * tests/unictype/test-ctype_graph.c: Regenerated.
20891         * tests/unictype/test-ctype_lower.c: Regenerated.
20892         * tests/unictype/test-ctype_print.c: Regenerated.
20893         * tests/unictype/test-ctype_punct.c: Regenerated.
20894         * tests/unictype/test-ctype_upper.c: Regenerated.
20895         * tests/unictype/test-decdigit.h: Regenerated.
20896         * tests/unictype/test-digit.h: Regenerated.
20897         * tests/unictype/test-numeric.h: Regenerated.
20898         * tests/unictype/test-pr_alphabetic.c: Regenerated.
20899         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
20900         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
20901         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
20902         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
20903         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
20904         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
20905         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
20906         * tests/unictype/test-pr_combining.c: Regenerated.
20907         * tests/unictype/test-pr_dash.c: Regenerated.
20908         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
20909         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
20910         * tests/unictype/test-pr_deprecated.c: Regenerated.
20911         * tests/unictype/test-pr_diacritic.c: Regenerated.
20912         * tests/unictype/test-pr_extender.c: Regenerated.
20913         * tests/unictype/test-pr_format_control.c: Regenerated.
20914         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
20915         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
20916         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
20917         * tests/unictype/test-pr_id_continue.c: Regenerated.
20918         * tests/unictype/test-pr_id_start.c: Regenerated.
20919         * tests/unictype/test-pr_ideographic.c: Regenerated.
20920         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20921         * tests/unictype/test-pr_lowercase.c: Regenerated.
20922         * tests/unictype/test-pr_math.c: Regenerated.
20923         * tests/unictype/test-pr_numeric.c: Regenerated.
20924         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20925         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20926         Regenerated.
20927         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20928         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20929         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20930         * tests/unictype/test-pr_other_math.c: Regenerated.
20931         * tests/unictype/test-pr_punctuation.c: Regenerated.
20932         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20933         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20934         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20935         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20936         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20937         * tests/unictype/test-pr_uppercase.c: Regenerated.
20938         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20939         * tests/unictype/test-pr_xid_start.c: Regenerated.
20940         * tests/unictype/test-pr_zero_width.c: Regenerated.
20941
20942         Update to Unicode 5.1.0.
20943         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20944         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20945         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20946         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20947         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20948         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20949         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20950         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20951         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20952         (nonspacing_table_ind): Update.
20953         * tests/uniwidth/test-uc_width2.sh: Update expected result.
20954
20955         Update to Unicode 5.1.0.
20956         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
20957         code transform.
20958         * lib/uniname/uniname.c (unicode_character_name,
20959         unicode_name_character): Add the range 0x1Fxxx to the code transform.
20960         * lib/uniname/uninames.h: Regenerated.
20961         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
20962
20963 2009-02-07  Bruno Haible  <bruno@clisp.org>
20964
20965         Merge gen-ctype and gen-lbrk into a single program.
20966         * lib/gen-uni-tables.c: New file, incorporating
20967         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
20968         Add directory prefixes to the names of the generated files.
20969         * lib/unictype/gen-ctype.c: Remove file.
20970         * lib/unilbrk/gen-lbrk.c: Remove file.
20971         * modules/gen-uni-tables: New file.
20972         * modules/unictype/gen-ctype: Remove file.
20973         * modules/unilbrk/gen-lbrk: Remove file.
20974
20975 2009-02-07  Bruno Haible  <bruno@clisp.org>
20976
20977         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
20978
20979         New module 'unistr/u32-strcoll'.
20980         * modules/unistr/u32-strcoll: New file.
20981         * lib/unistr/u32-strcoll.c: New file.
20982
20983         New module 'unistr/u16-strcoll'.
20984         * modules/unistr/u16-strcoll: New file.
20985         * lib/unistr/u16-strcoll.c: New file.
20986
20987         New module 'unistr/u8-strcoll'.
20988         * modules/unistr/u8-strcoll: New file.
20989         * lib/unistr/u8-strcoll.c: New file.
20990         * lib/unistr/u-strcoll.h: New file.
20991
20992 2009-02-07  Bruno Haible  <bruno@clisp.org>
20993
20994         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
20995         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20996         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20997         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
20998         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
20999         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21000
21001 2009-02-07  Bruno Haible  <bruno@clisp.org>
21002
21003         Make 64-bit clean.
21004         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21005         output_combclass, output_bidi_category, output_decimal_digit,
21006         output_digit, output_numeric, output_mirror, output_scripts,
21007         output_ident_category): Use proper width specifier in format strings.
21008
21009 2009-02-07  Bruno Haible  <bruno@clisp.org>
21010
21011         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21012         failure behaviour.
21013
21014 2009-02-07  Jim Meyering  <meyering@redhat.com>
21015
21016         regex: avoid compilation failure with upcoming gcc-4.4
21017         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21018         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21019         "... error: integer overflow in preprocessor expression".
21020
21021 2009-02-05  Ben Pfaff  <blp@gnu.org>
21022
21023         Fix link errors on Windows when close module is used.
21024         * modules/close: Add $(LIB_CLOSE) to Link section.
21025         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21026         $(LIB_CLOSE) on Windows.
21027
21028 2009-02-05  Jim Meyering  <meyering@redhat.com>
21029
21030         still avoid unused-parameter warnings, but do it cleanly
21031         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21032         (get_fs_usage): Cast to void instead.
21033         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21034         (dev_from_mount_options, read_file_system_list): Cast to void.
21035         Prompted by Bruno Haible.
21036
21037 2009-02-04  Jim Meyering  <meyering@redhat.com>
21038
21039         fsusage.c: correct copyright year
21040         * lib/fsusage.c: Reflect year in which the change is pushed into
21041
21042         avoid misc. warnings
21043         * lib/fsusage.c (UNUSED_PARAM): Define.
21044         (get_fs_usage): Mark parameter "disk" as unused.
21045         * lib/getugroups.c (getgrent): Use "void" in prototype.
21046         * lib/mountlist.c: Mark unused parameters.
21047         (read_file_system_list): Declare a local with "const".
21048         * lib/nanosleep.c (getnow): Declare static.
21049         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21050
21051         dirfd: set errno upon failure
21052         * lib/dirfd.c: Include <errno.h>.
21053         Set errno to ENOTSUP when returning -1.
21054         * modules/dirfd (Depends-on): Add errno.
21055         Suggested by John Kodis <kodis@comcast.net>.
21056
21057 2009-02-01  Bruno Haible  <bruno@clisp.org>
21058
21059         Don't assume sizeof (long) >= sizeof (void *).
21060         * lib/memcmp.c: Include stdint.h.
21061         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21062         srcp2 to 'const byte *'.
21063         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21064         types to uintptr_t.
21065         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21066         * modules/memcmp (Depends-on): Add stdint.
21067         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21068
21069 2009-01-30  Eric Blake  <ebb9@byu.net>
21070
21071         fix more require-before-expand issues
21072         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21073         expand, AC_PROG_AWK.
21074         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21075
21076 2009-01-28  Eric Blake  <ebb9@byu.net>
21077
21078         version-etc: use consistent URL formatting
21079         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21080         Improve formatting.  Use fputs for string without %.
21081
21082 2009-01-28  Jim Meyering  <meyering@redhat.com>
21083
21084         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21085         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21086         "underquoted definition of NAME" from autoconf-2.59.
21087
21088 2009-01-28  Bruno Haible  <bruno@clisp.org>
21089
21090         * doc/gnulib.texi: Add "Obsolete modules" to index.
21091
21092 2009-01-28  Jim Meyering  <meyering@redhat.com>
21093
21094         useless-if-before-free: recognize more variants
21095         * build-aux/useless-if-before-free: Also recognize e.g.,
21096         if (NULL != p) free (p);
21097
21098 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21099
21100         test-getaddrinfo: skip (don't fail) this test when there's no network
21101         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21102         on the presumption that it means you lack network access.
21103
21104 2009-01-26  Jim Meyering  <meyering@redhat.com>
21105
21106         fflush: avoid warnings on modern systems
21107         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21108         pos and result, into scopes where they're used.
21109
21110 2009-01-26  Eric Blake  <ebb9@byu.net>
21111
21112         Silence warning reintroduced by recent extensions patch.
21113         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21114         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21115         autoconf.
21116
21117         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21118         * m4/00gnulib.m4: New file.
21119         * gnulib-tool (func_get_filelist): Always use it.
21120         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21121         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21122
21123 2009-01-25  Bruno Haible  <bruno@clisp.org>
21124
21125         Make test-quotearg work on MacOS X and AIX.
21126         * tests/test-quotearg.sh: New file.
21127         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21128         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21129         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21130         include <libintl.h>.
21131         (fake_locale): Remove variable.
21132         (gettext, dgettext, dcgettext): Remove functions.
21133         (main): Instead of setting a fake locale, set a real locale. Call
21134         textdomain and bindtextdomain.
21135         * modules/quotearg-tests (Files): Add the new files.
21136         (Depends-on): Add gettext, setenv, unsetenv.
21137         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21138         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21139         Augment TESTS_ENVIRONMENT.
21140
21141 2009-01-25  Bruno Haible  <bruno@clisp.org>
21142
21143         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21144         fr_FR.ISO8859-1 locale on MacOS X.
21145         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21146         ja_JP.eucJP locale on MacOS X.
21147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21148         zh_CN.GB18030 locale on MacOS X.
21149
21150 2009-01-25  Bruno Haible  <bruno@clisp.org>
21151
21152         Avoid link errors on MacOS X 10.3.
21153         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21154         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21155
21156 2009-01-25  Bruno Haible  <bruno@clisp.org>
21157
21158         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21159         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21160         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21161         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21162         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21163         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21164         posix_spawnattr_init, posix_spawnattr_setsigmask,
21165         posix_spawnattr_setflags, posix_spawnattr_destroy.
21166
21167         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21168         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21169         * modules/execute (Files): Remove m4/posix_spawn.m4.
21170         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21171         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21172         posix_spawnattr_init, posix_spawnattr_setsigmask,
21173         posix_spawnattr_setflags, posix_spawnattr_destroy.
21174
21175 2009-01-25  Bruno Haible  <bruno@clisp.org>
21176
21177         * lib/glthread/threadlib.c: Include <stdlib.h>.
21178
21179 2009-01-25  Bruno Haible  <bruno@clisp.org>
21180
21181         * lib/glthread/threadlib.c (dummy): New declaration.
21182
21183 2009-01-25  Bruno Haible  <bruno@clisp.org>
21184
21185         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21186         multibyte characters also for the GB18030 encoding. Don't crash when
21187         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21188
21189 2009-01-25  Bruno Haible  <bruno@clisp.org>
21190
21191         Avoid redefining 'struct random_data' on OSF/1 5.1.
21192         * lib/stdlib.in.h: Include <random.h> if it exists.
21193         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21194         HAVE_RANDOM_H. Include <random.h> when testing whether
21195         'struct random_data' exists.
21196         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21197
21198 2009-01-25  Bruno Haible  <bruno@clisp.org>
21199
21200         Don't install charset.alias on MacOS X >= 10.3.
21201         * lib/localcharset.c (DARWIN7): New macro.
21202         (get_charset_aliases): Hardcode the result for Darwin7.
21203         * modules/localcharset (install-exec-local): Don't install
21204         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21205
21206 2009-01-25  Bruno Haible  <bruno@clisp.org>
21207
21208         Don't install charset.alias on mingw and Cygwin.
21209         * modules/localcharset (install-exec-local): Don't install
21210         charset.alias on mingw and Cygwin, if the file does not yet exist.
21211         The result for these platforms is hardcoded in localcharset.c.
21212
21213 2009-01-25  Bruno Haible  <bruno@clisp.org>
21214
21215         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21217         before requiring AC_USE_SYSTEM_EXTENSIONS.
21218
21219 2009-01-25  Jim Meyering  <meyering@redhat.com>
21220
21221         c-strtod: avoid warnings
21222         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21223         "assignment discards qualifiers from pointer target type" warnings.
21224
21225 2009-01-24  Bruno Haible  <bruno@clisp.org>
21226
21227         Add support for non-UTF-8 locales on MacOS X.
21228         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21229         canonical encodings. For Darwin 7 and newer, don't map traditional
21230         encodings to UTF-8.
21231         Reported by Vincent Lefevre <vincent@vinc17.org>
21232         at <http://savannah.gnu.org/bugs/?25235>.
21233
21234 2009-01-24  Bruno Haible  <bruno@clisp.org>
21235
21236         * doc/gnulib.texi (Obsolete modules): New section.
21237         Reported by Mike Frysinger <vapier@gentoo.org>.
21238
21239 2009-01-24  Bruno Haible  <bruno@clisp.org>
21240
21241         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21242         (%.dvi): New rule.
21243
21244 2009-01-24  Bruno Haible  <bruno@clisp.org>
21245
21246         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21247         Reported by Eric Blake.
21248
21249 2009-01-24  Bruno Haible  <bruno@clisp.org>
21250
21251         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21252         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21253         Reported by Gary V. Vaughan <gary@gnu.org>.
21254
21255 2009-01-24  Bruno Haible  <bruno@clisp.org>
21256
21257         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21258
21259 2009-01-23  Bruno Haible  <bruno@clisp.org>
21260
21261         Make c-strtod, c-strtold usable in libraries.
21262         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21263         (C_STRTOD): Call strdup instead of xstrdup.
21264         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21265         * modules/c-strtold (Depends-on): Likewise.
21266         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21267         * NEWS: Mention the change.
21268         Reported by Michael Gold <mgold@ncf.ca>.
21269
21270 2009-01-23  Jim Meyering  <meyering@redhat.com>
21271
21272         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21273         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21274         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21275
21276 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21277
21278         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21279         GNU CoreUtils.
21280         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21281         * modules/version-etc (Description): Update.
21282
21283 2009-01-22  Bruno Haible  <bruno@clisp.org>
21284
21285         Cache the C locale object.
21286         * lib/c-strtod.c (c_locale_cache): New variable.
21287         (c_locale): New function.
21288         (C_STRTOD): Use it, and don't call freelocale.
21289         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21290         Suggested by Paolo Bonzini.
21291
21292 2009-01-21  Bruno Haible  <bruno@clisp.org>
21293
21294         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21295         conditions other than overflow.
21296
21297 2009-01-21  Bruno Haible  <bruno@clisp.org>
21298
21299         * lib/c-strtod.c: Include errno.h.
21300         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21301         value from STRTOD_L and STRTOD.
21302
21303 2009-01-21  Bruno Haible  <bruno@clisp.org>
21304         and Jim Meyering  <meyering@redhat.com>
21305
21306         nanosleep: skip configure test (fail it) for apple universal builds
21307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21308         universal builds, assume that nanosleep does not work.
21309         * modules/nanosleep (Depends-on): Add multiarch.
21310
21311         mktime: skip configure test (fail it) for apple universal builds
21312         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21313         universal builds, assume that mktime does not work.
21314         * modules/mktime (Depends-on): Add multiarch.
21315
21316 2009-01-21  Eric Blake  <ebb9@byu.net>
21317
21318         multiarch: avoid expand-before-require warning
21319         * modules/multiarch (configure.ac): Require, rather than expand,
21320         gl_MULTIARCH.
21321         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21322         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21323         enforce that all clients require it.  Partial reversion of
21324         2008-12-29 patch.
21325
21326         error: avoid expand-before-require warning
21327         * modules/errno (configure.ac): Require, rather than expand,
21328         gl_HEADER_ERRNO_H.
21329         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21330         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21331         enforce that all clients require it.
21332
21333         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21334         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21335         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21336         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21337
21338 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21339
21340         Revert:
21341         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21342
21343         regex: do not depend on obsolete modules.
21344         * modules/regex: Remove memcmp and memmove.
21345
21346 2009-01-20  Bruno Haible  <bruno@clisp.org>
21347
21348         Make the 'link' module link on Windows NT 4.
21349         * lib/link.c (_WIN32_WINNT): Don't define.
21350         (CreateHardLinkFuncType): New type.
21351         (CreateHardLinkFunc, initialized): New variables.
21352         (initialize): New function.
21353         (link): Invoke CreateHardLink indirectly through the function pointer.
21354
21355 2009-01-20  Bruno Haible  <bruno@clisp.org>
21356
21357         Fix compilation failure on mingw.
21358         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21359
21360 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21361
21362         * doc/c-strtod.texi: Mention a couple of restrictions.
21363
21364 2009-01-20  Jim Meyering  <meyering@redhat.com>
21365
21366         gettimeofday: move more declarations out of functions
21367         * lib/gettimeofday.c: Move extern declarations of tzset and
21368         gmtime out of containing functions.  Prompted by Bruno Haible.
21369
21370 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21371
21372         regex: do not depend on obsolete modules.
21373         * modules/regex: Remove memcmp and memmove.
21374
21375 2009-01-19  Bruno Haible  <bruno@clisp.org>
21376
21377         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21378         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
21379         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21380         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
21381         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
21382
21383 2009-01-19  Bruno Haible  <bruno@clisp.org>
21384
21385         * tests/test-link.c: Include <errno.h>.
21386         (main): Exit with code 77 when a hard link cannot be created due to
21387         the file system.
21388         * tests/test-link.sh: Skip test when a hard link cannot be created due
21389         to the file system.
21390         Suggested by Eric Blake.
21391
21392 2009-01-19  Martin Lambers  <marlam@marlam.de>
21393
21394         * modules/link-tests: New file.
21395         * tests/test-link.sh: New file.
21396         * tests/test-link.c: New file.
21397
21398 2009-01-19  Eric Blake  <ebb9@byu.net>
21399
21400         doc: mention another function added in cygwin 1.7.0
21401         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
21402         Another new function in cygwin 1.7.
21403
21404 2009-01-19  Bruno Haible  <bruno@clisp.org>
21405
21406         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21407         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
21408         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
21409         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21410         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21411         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21412         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21413         * m4/md4.m4 (gl_MD4): Likewise.
21414         * m4/md5.m4 (gl_MD5): Likewise.
21415         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
21416         * m4/sha1.m4 (gl_SHA1): Likewise.
21417         * m4/sha256.m4 (gl_SHA256): Likewise.
21418         * m4/sha512.m4 (gl_SHA512): Likewise.
21419
21420 2009-01-19  Bruno Haible  <bruno@clisp.org>
21421
21422         * modules/uniname/uniname-tests (Depends-on): Add progname.
21423         * tests/uniname/test-uninames.c: Include progname.h.
21424         (main): Call set_program_name.
21425
21426         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
21427         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
21428         (main): Call set_program_name.
21429
21430         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
21431         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
21432         (main): Call set_program_name.
21433
21434         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
21435         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
21436         (main): Call set_program_name.
21437
21438         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
21439         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
21440         (main): Call set_program_name.
21441
21442         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
21443         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
21444         (main): Call set_program_name.
21445
21446         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
21447         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
21448         (main): Call set_program_name.
21449
21450         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
21451         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
21452         (main): Call set_program_name.
21453
21454         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
21455         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
21456         (main): Call set_program_name.
21457
21458 2009-01-19  Eric Blake  <ebb9@byu.net>
21459
21460         test-unistd: test previous patch
21461         * tests/test-unistd.c: Test *_FILENO macros.
21462
21463         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
21464         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21465         Guarantee a definition.
21466         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
21467         * modules/unistd-safer (Depends-on): Add dependency on unistd.
21468         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
21469         * lib/dup-safer.c (STDERR_FILENO): Likewise.
21470         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21471         Likewise.
21472         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
21473         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
21474         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21475         Likewise.
21476         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
21477         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
21478         (STDERR_FILENO): Likewise.
21479         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
21480         (STDERR_FILENO): Likewise.
21481         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
21482         (STDERR_FILENO): Likewise.
21483         Reported by Elbert Pol.
21484
21485 2009-01-19  Eric Blake  <ebb9@byu.net>
21486
21487         doc: mention more functions added in cygwin 1.7.0
21488         * doc/posix-functions/abort.texi (abort): Update wording related
21489         to cygwin.
21490         * doc/posix-functions/daylight.texi (daylight): Likewise.
21491         * doc/posix-functions/optarg.texi (optarg): Likewise.
21492         * doc/posix-functions/optarg.texi (opterr): Likewise.
21493         * doc/posix-functions/optarg.texi (optind): Likewise.
21494         * doc/posix-functions/optarg.texi (optopt): Likewise.
21495         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
21496         worked in 1.5.x, and was withdrawn in 1.7.
21497         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
21498         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
21499         cygwin versions.
21500         * doc/posix-functions/perror.texi (perror): Likewise.
21501         * doc/posix-functions/printf.texi (printf): Likewise.
21502         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
21503         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
21504         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21505         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21506         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21507         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
21508         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21509         Likewise.
21510         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21511         Likewise.
21512         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
21513         this function.
21514         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
21515         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
21516         Likewise.
21517         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
21518         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
21519         * doc/posix-functions/confstr.texi (confstr): Likewise.
21520         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
21521         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
21522         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
21523         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
21524         * doc/posix-functions/fputws.texi (fputws): Likewise.
21525         * doc/posix-functions/fwide.texi (fwide): Likewise.
21526         * doc/posix-functions/getwc.texi (getwc): Likewise.
21527         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
21528         * doc/posix-functions/putwc.texi (putwc): Likewise.
21529         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
21530         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
21531         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
21532         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
21533         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
21534         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
21535         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
21536         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
21537         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
21538         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
21539         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
21540
21541 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21542
21543         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
21544         * lib/ioctl.c: Include <sys/ioctl.h>.
21545
21546 2009-01-19  Simon Josefsson  <simon@josefsson.org>
21547
21548         * modules/getdate-tests (Depends-on): Add progname.
21549         * tests/test-getdate.c: Use progname module, to avoid link errors
21550         on non-glibc systems.
21551
21552 2009-01-18  Simon Josefsson  <simon@josefsson.org>
21553
21554         * modules/filenamecat-tests (Depends-on): Add progname.
21555         * modules/fstrcmp-tests (Depends-on): Likewise.
21556
21557         * tests/test-filenamecat.c: Use progname module, to avoid link
21558         errors on non-glibc systems.
21559         * tests/test-fstrcmp.c: Likewise.
21560
21561 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21562
21563         gettimeofday: avoid warning: nested extern declaration of 'localtime'
21564         * lib/gettimeofday.c: Move extern declaration out of function.
21565
21566 2009-01-18  Bruno Haible  <bruno@clisp.org>
21567
21568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
21569         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
21570         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
21571
21572 2009-01-18  Bruno Haible  <bruno@clisp.org>
21573
21574         * lib/strftime.c (MEMPCPY): Remove unused macro.
21575         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
21576
21577 2009-01-18  Martin Lambers  <marlam@marlam.de>
21578
21579         New module 'link'.
21580         * lib/unistd.in.h (link): New declaration.
21581         * lib/link.c: New file.
21582         * m4/link.m4: New file.
21583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
21584         HAVE_LINK.
21585         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
21586         * modules/link: New file.
21587         * doc/posix-functions/link.texi: Mention the new module.
21588
21589 2009-01-18  Bruno Haible  <bruno@clisp.org>
21590
21591         * tests/test-avltree_list.c (main): Call set_program_name.
21592         * tests/test-avltree_oset.c (main): Likewise.
21593         * tests/test-obstack-printf.c: Include progname.h.
21594         (main): Call set_program_name.
21595         * tests/test-quotearg.c: Include progname.h.
21596         (main): Call set_program_name.
21597         * tests/test-xmemdup0.c: Include progname.h.
21598         (main): Call set_program_name.
21599
21600 2009-01-18  Bruno Haible  <bruno@clisp.org>
21601
21602         New module 'alphasort'.
21603         * lib/dirent.in.h (alphasort): New declaration.
21604         * lib/alphasort.c: New file, from glibc with modifications.
21605         * m4/alphasort.m4: New file.
21606         * modules/alphasort: New file.
21607         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
21608         HAVE_ALPHASORT.
21609         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
21610         HAVE_ALPHASORT.
21611         * doc/posix-functions/alphasort.texi: Mention the new module and the
21612         portability problems.
21613
21614 2009-01-18  Bruno Haible  <bruno@clisp.org>
21615
21616         New module 'scandir'.
21617         * lib/dirent.in.h (scandir): New declaration.
21618         * lib/scandir.c: New file, from glibc with modifications.
21619         * m4/scandir.m4: New file.
21620         * modules/scandir: New file.
21621         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
21622         HAVE_SCANDIR.
21623         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
21624         HAVE_SCANDIR.
21625         * doc/posix-functions/scandir.texi: Mention the new module and the
21626         portability problems.
21627
21628 2009-01-17  Bruno Haible  <bruno@clisp.org>
21629
21630         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
21631         Update documentation.
21632         (func_remove_suffix): Escape all dots in the suffix. Update
21633         documentation.
21634         (func_filter_filelist): Update documentation.
21635         Reported by Ralf Wildenhues.
21636
21637 2009-01-17  Bruno Haible  <bruno@clisp.org>
21638
21639         * modules/dprintf-posix-tests: New file.
21640         * tests/test-dprintf-posix.sh: New file.
21641         * tests/test-dprintf-posix.c: New file.
21642
21643         New modules 'dprintf', 'dprintf-posix'.
21644         * lib/stdio.in.h (dprintf): New declaration.
21645         * lib/dprintf.c: New file.
21646         * m4/dprintf.m4: New file.
21647         * m4/dprintf-posix.m4: New file.
21648         * modules/dprintf: New file.
21649         * modules/dprintf-posix: New file.
21650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
21651         HAVE_DPRINTF, REPLACE_DPRINTF.
21652         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
21653         HAVE_DPRINTF, REPLACE_DPRINTF.
21654         * doc/posix-functions/dprintf.texi: Mention the new modules.
21655
21656 2009-01-17  Bruno Haible  <bruno@clisp.org>
21657
21658         * modules/vdprintf-posix-tests: New file.
21659         * tests/test-vdprintf-posix.sh: New file.
21660         * tests/test-vdprintf-posix.c: New file.
21661
21662         New modules 'vdprintf', 'vdprintf-posix'.
21663         * lib/stdio.in.h (vdprintf): New declaration.
21664         * lib/vdprintf.c: New file.
21665         * m4/vdprintf.m4: New file.
21666         * m4/vdprintf-posix.m4: New file.
21667         * modules/vdprintf: New file.
21668         * modules/vdprintf-posix: New file.
21669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
21670         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21671         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
21672         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21673         * doc/posix-functions/vdprintf.texi: Mention the new modules.
21674
21675 2009-01-17  Bruno Haible  <bruno@clisp.org>
21676
21677         Fix replacement of fopen on mingw.
21678         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
21679         mingw.
21680
21681 2009-01-17  Bruno Haible  <bruno@clisp.org>
21682
21683         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
21684         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
21685
21686 2009-01-17  Bruno Haible  <bruno@clisp.org>
21687
21688         Avoid test-fflush2.sh failure on mingw.
21689         * tests/test-fflush2.c: Include binary-io.h.
21690         (main): Put standard input into binary mode.
21691         * modules/fflush-tests (Depends-on): Add binary-io.
21692
21693 2009-01-17  Bruno Haible  <bruno@clisp.org>
21694
21695         * lib/wchar.in.h: In another particular situation, include only the
21696         system's <wchar.h> file.
21697         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
21698         Reported by Albert Chin-A-Young <china@thewrittenword.com>
21699         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
21700
21701 2009-01-17  Bruno Haible  <bruno@clisp.org>
21702
21703         Support for stripping executables in --enable-relocatable.
21704         * build-aux/install-reloc: Expect one more argument, or an environment
21705         variable RELOC_STRIP_PROG. If set, strip the destination program and
21706         its wrapper.
21707         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
21708         RELOC_STRIP_PROG.
21709         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
21710         to set RELOCATABLE_STRIP.
21711         * NEWS: Mention the new Makefile requirement.
21712
21713 2009-01-17  Bruno Haible  <bruno@clisp.org>
21714
21715         * build-aux/install-reloc: Remove debugging information left over by
21716         C compiler on MacOS X.
21717
21718 2009-01-17  Bruno Haible  <bruno@clisp.org>
21719
21720         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
21721         * lib/progreloc.c (find_executable): Fix type of pointer passed to
21722         _NSGetExecutablePath.
21723
21724 2009-01-16  Jim Meyering  <meyering@redhat.com>
21725
21726         strerror: avoid warnings about discarding "const"
21727         * lib/strerror.c (rpl_strerror): Instead of returning a const
21728         string from each and every "case", use a variable, and add a single
21729         cast after the switch.
21730
21731 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
21732
21733         * lib/arpa_inet.in.h: Add extern "C" block for C++.
21734
21735 2009-01-16  Bruno Haible  <bruno@clisp.org>
21736
21737         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
21738         array initializer syntax that also works in C++ mode.
21739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21740
21741 2009-01-16  Jim Meyering  <meyering@redhat.com>
21742
21743         poll: suppress a warning
21744         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
21745         to ignore "...unsigned expression < 0 is always false" warnings.
21746
21747 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
21748
21749         poll: remove declarations of unused variables
21750         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
21751         sockbuf and optlen.
21752
21753 2009-01-15  Bruno Haible  <bruno@clisp.org>
21754
21755         Make fflush-after-ungetc POSIX compliant on BSD systems.
21756         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
21757         (clear_ungetc_buffer): Implement also for other systems.
21758         (rpl_fflush): On glibc systems, invoke
21759         clear_ungetc_buffer_preserving_position. Otherwise, invoke
21760         clear_ungetc_buffer after fetching the stream's position, not before.
21761
21762 2009-01-15  Bruno Haible  <bruno@clisp.org>
21763
21764         Make fflush-after-ungetc POSIX compliant on glibc systems.
21765         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
21766         after ungetc.
21767         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
21768         (rpl_fflush): On glibc systems, simply call the system's fflush
21769         function after clearing the ungetc buffer.
21770         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
21771         Instead, lseek only to the end of file, then use the system's fseeko
21772         for the rest. On glibc systems, reset the EOF indicator bit.
21773
21774 2009-01-15  Jim Meyering  <meyering@redhat.com>
21775
21776         openmp.m4: revert quote-adding change, for portability to older autoconf
21777         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
21778         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
21779         Simon Josefsson noticed the problem when using autoconf-2.61.
21780
21781 2009-01-15  Bruno Haible  <bruno@clisp.org>
21782
21783         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
21784         * tests/test-fflush2.c (ASSERT): Always fail.
21785         (main): Add two tests for fflush() after ungetc(), taking into account
21786         the Austin Group's clarification.
21787         Suggested by Eric Blake.
21788
21789 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
21790
21791         mktime.m4: remove K&R-style function prototypes
21792         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
21793         for the Sun C++ compiler.
21794
21795 2009-01-14  Bruno Haible  <bruno@clisp.org>
21796
21797         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
21798         while including <wchar.h>.
21799         * lib/wchar.in.h: In two particular situations on HP-UX, include only
21800         the system's <wchar.h> file.
21801         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21802
21803 2009-01-14  Bruno Haible  <bruno@clisp.org>
21804
21805         * m4/csharp.m4: Don't mention gettext on the serial number line.
21806         * m4/csharpexec.m4: Likewise.
21807         * m4/eaccess.m4: Likewise.
21808         * m4/javaexec.m4: Likewise.
21809         * m4/sig_atomic_t.m4: Likewise.
21810         * m4/tmpdir.m4: Likewise.
21811         * m4/intldir.m4: Bump gettext version.
21812         * m4/lib-ld.m4: Likewise.
21813
21814 2009-01-14  Bruno Haible  <bruno@clisp.org>
21815
21816         * lib/progname.c (set_program_name): Add more comments.
21817         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21818
21819 2009-01-14  Simon Josefsson  <simon@josefsson.org>
21820
21821         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
21822         were sys/stat.h does not define it.
21823
21824 2009-01-14  Jim Meyering  <meyering@redhat.com>
21825
21826         many *.m4 files: improve m4 quoting
21827         99% of this change was performed by running the following commands:
21828         git ls-files | grep '\.m4$' | xargs perl -pi \
21829           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
21830           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21831           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21832           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
21833         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
21834         The remainder were to add Copyright dates, increment serial numbers,
21835         undo some changes in comments, exclude m4/intl.m4, and add quotes
21836         around the "1" in ",1" where the unusual spacing prohibited the
21837         above regexps from doing the job.  For more details, see
21838         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
21839         * m4/acl.m4: Modified.
21840         * m4/afs.m4: Likewise.
21841         * m4/alloca.m4: Likewise.
21842         * m4/argp.m4: Likewise.
21843         * m4/argz.m4: Likewise.
21844         * m4/atexit.m4: Likewise.
21845         * m4/bison-i18n.m4: Likewise.
21846         * m4/bison.m4: Likewise.
21847         * m4/byteswap.m4: Likewise.
21848         * m4/c-stack.m4: Likewise.
21849         * m4/c-strtod.m4: Likewise.
21850         * m4/calloc.m4: Likewise.
21851         * m4/canonicalize-lgpl.m4: Likewise.
21852         * m4/chown.m4: Likewise.
21853         * m4/clock_time.m4: Likewise.
21854         * m4/codeset.m4: Likewise.
21855         * m4/copy-file.m4: Likewise.
21856         * m4/csharp.m4: Likewise.
21857         * m4/csharpcomp.m4: Likewise.
21858         * m4/csharpexec.m4: Likewise.
21859         * m4/d-ino.m4: Likewise.
21860         * m4/d-type.m4: Likewise.
21861         * m4/dirfd.m4: Likewise.
21862         * m4/double-slash-root.m4: Likewise.
21863         * m4/eaccess.m4: Likewise.
21864         * m4/eealloc.m4: Likewise.
21865         * m4/environ.m4: Likewise.
21866         * m4/errno_h.m4: Likewise.
21867         * m4/euidaccess.m4: Likewise.
21868         * m4/execute.m4: Likewise.
21869         * m4/fatal-signal.m4: Likewise.
21870         * m4/fchdir.m4: Likewise.
21871         * m4/fcntl_h.m4: Likewise.
21872         * m4/fileblocks.m4: Likewise.
21873         * m4/filenamecat.m4: Likewise.
21874         * m4/findprog.m4: Likewise.
21875         * m4/flexmember.m4: Likewise.
21876         * m4/fnmatch.m4: Likewise.
21877         * m4/fopen.m4: Likewise.
21878         * m4/fpending.m4: Likewise.
21879         * m4/fprintf-posix.m4: Likewise.
21880         * m4/free.m4: Likewise.
21881         * m4/frexp.m4: Likewise.
21882         * m4/frexpl.m4: Likewise.
21883         * m4/fsusage.m4: Likewise.
21884         * m4/ftruncate.m4: Likewise.
21885         * m4/gc-camellia.m4: Likewise.
21886         * m4/gc-random.m4: Likewise.
21887         * m4/gc.m4: Likewise.
21888         * m4/getaddrinfo.m4: Likewise.
21889         * m4/getcwd-abort-bug.m4: Likewise.
21890         * m4/getcwd-path-max.m4: Likewise.
21891         * m4/getdate.m4: Likewise.
21892         * m4/getdomainname.m4: Likewise.
21893         * m4/getgroups.m4: Likewise.
21894         * m4/gethostname.m4: Likewise.
21895         * m4/gethrxtime.m4: Likewise.
21896         * m4/getline.m4: Likewise.
21897         * m4/getloadavg.m4: Likewise.
21898         * m4/getndelim2.m4: Likewise.
21899         * m4/getpass.m4: Likewise.
21900         * m4/gettext.m4: Likewise.
21901         * m4/gettime.m4: Likewise.
21902         * m4/gettimeofday.m4: Likewise.
21903         * m4/gnulib-common.m4: Likewise.
21904         * m4/group-member.m4: Likewise.
21905         * m4/host-os.m4: Likewise.
21906         * m4/iconv.m4: Likewise.
21907         * m4/iconv_open.m4: Likewise.
21908         * m4/inet_ntop.m4: Likewise.
21909         * m4/inet_pton.m4: Likewise.
21910         * m4/inline.m4: Likewise.
21911         * m4/intldir.m4: Likewise.
21912         * m4/intlmacosx.m4: Likewise.
21913         * m4/intmax.m4: Likewise.
21914         * m4/intmax_t.m4: Likewise.
21915         * m4/inttypes.m4: Likewise.
21916         * m4/inttypes_h.m4: Likewise.
21917         * m4/inttypes-pri.m4: Likewise.
21918         * m4/isapipe.m4: Likewise.
21919         * m4/isnand.m4: Likewise.
21920         * m4/isnanf.m4: Likewise.
21921         * m4/isnanl.m4: Likewise.
21922         * m4/javacomp.m4: Likewise.
21923         * m4/javaexec.m4: Likewise.
21924         * m4/jm-winsz1.m4: Likewise.
21925         * m4/jm-winsz2.m4: Likewise.
21926         * m4/lchown.m4: Likewise.
21927         * m4/lcmessage.m4: Likewise.
21928         * m4/ldexpl.m4: Likewise.
21929         * m4/lib-ld.m4: Likewise.
21930         * m4/lib-link.m4: Likewise.
21931         * m4/libsigsegv.m4: Likewise.
21932         * m4/link-follow.m4: Likewise.
21933         * m4/localcharset.m4: Likewise.
21934         * m4/locale-fr.m4: Likewise.
21935         * m4/locale-ja.m4: Likewise.
21936         * m4/locale-tr.m4: Likewise.
21937         * m4/locale-zh.m4: Likewise.
21938         * m4/lock.m4: Likewise.
21939         * m4/longlong.m4: Likewise.
21940         * m4/ls-mntd-fs.m4: Likewise.
21941         * m4/lstat.m4: Likewise.
21942         * m4/malloc.m4: Likewise.
21943         * m4/mathl.m4: Likewise.
21944         * m4/mbrtowc.m4: Likewise.
21945         * m4/mbstate_t.m4: Likewise.
21946         * m4/mbswidth.m4: Likewise.
21947         * m4/memchr.m4: Likewise.
21948         * m4/memcmp.m4: Likewise.
21949         * m4/memcpy.m4: Likewise.
21950         * m4/memmem.m4: Likewise.
21951         * m4/memmove.m4: Likewise.
21952         * m4/mempcpy.m4: Likewise.
21953         * m4/memrchr.m4: Likewise.
21954         * m4/memset.m4: Likewise.
21955         * m4/minmax.m4: Likewise.
21956         * m4/mkdir-slash.m4: Likewise.
21957         * m4/mkdtemp.m4: Likewise.
21958         * m4/mktime.m4: Likewise.
21959         * m4/mmap-anon.m4: Likewise.
21960         * m4/mountlist.m4: Likewise.
21961         * m4/nanosleep.m4: Likewise.
21962         * m4/nls.m4: Likewise.
21963         * m4/nocrash.m4: Likewise.
21964         * m4/open.m4: Likewise.
21965         * m4/openat.m4: Likewise.
21966         * m4/openmp.m4: Likewise.
21967         * m4/pathmax.m4: Likewise.
21968         * m4/perl.m4: Likewise.
21969         * m4/physmem.m4: Likewise.
21970         * m4/pipe.m4: Likewise.
21971         * m4/po.m4: Likewise.
21972         * m4/poll.m4: Likewise.
21973         * m4/posixtm.m4: Likewise.
21974         * m4/posixver.m4: Likewise.
21975         * m4/printf-frexp.m4: Likewise.
21976         * m4/printf-frexpl.m4: Likewise.
21977         * m4/printf-posix.m4: Likewise.
21978         * m4/printf-posix-rpl.m4: Likewise.
21979         * m4/printf.m4: Likewise.
21980         * m4/progtest.m4: Likewise.
21981         * m4/putenv.m4: Likewise.
21982         * m4/readline.m4: Likewise.
21983         * m4/readlink.m4: Likewise.
21984         * m4/readutmp.m4: Likewise.
21985         * m4/realloc.m4: Likewise.
21986         * m4/regex.m4: Likewise.
21987         * m4/relocatable.m4: Likewise.
21988         * m4/relocatable-lib.m4: Likewise.
21989         * m4/rename-dest-slash.m4: Likewise.
21990         * m4/rename.m4: Likewise.
21991         * m4/rmdir-errno.m4: Likewise.
21992         * m4/rmdir.m4: Likewise.
21993         * m4/roundf.m4: Likewise.
21994         * m4/roundl.m4: Likewise.
21995         * m4/rpmatch.m4: Likewise.
21996         * m4/save-cwd.m4: Likewise.
21997         * m4/selinux-selinux-h.m4: Likewise.
21998         * m4/setenv.m4: Likewise.
21999         * m4/settime.m4: Likewise.
22000         * m4/sig2str.m4: Likewise.
22001         * m4/sig_atomic_t.m4: Likewise.
22002         * m4/signalblocking.m4: Likewise.
22003         * m4/signbit.m4: Likewise.
22004         * m4/sigpipe.m4: Likewise.
22005         * m4/sockets.m4: Likewise.
22006         * m4/sockpfaf.m4: Likewise.
22007         * m4/st_dm_mode.m4: Likewise.
22008         * m4/stat-time.m4: Likewise.
22009         * m4/stdbool.m4: Likewise.
22010         * m4/stdint.m4: Likewise.
22011         * m4/stdint_h.m4: Likewise.
22012         * m4/stpcpy.m4: Likewise.
22013         * m4/stpncpy.m4: Likewise.
22014         * m4/strcase.m4: Likewise.
22015         * m4/strchrnul.m4: Likewise.
22016         * m4/strcspn.m4: Likewise.
22017         * m4/strdup.m4: Likewise.
22018         * m4/strftime.m4: Likewise.
22019         * m4/strndup.m4: Likewise.
22020         * m4/strnlen.m4: Likewise.
22021         * m4/strpbrk.m4: Likewise.
22022         * m4/strptime.m4: Likewise.
22023         * m4/strsep.m4: Likewise.
22024         * m4/strtod.m4: Likewise.
22025         * m4/strtoimax.m4: Likewise.
22026         * m4/strtok_r.m4: Likewise.
22027         * m4/strtol.m4: Likewise.
22028         * m4/strtoll.m4: Likewise.
22029         * m4/strtoul.m4: Likewise.
22030         * m4/strtoull.m4: Likewise.
22031         * m4/strtoumax.m4: Likewise.
22032         * m4/strverscmp.m4: Likewise.
22033         * m4/threadlib.m4: Likewise.
22034         * m4/timegm.m4: Likewise.
22035         * m4/tm_gmtoff.m4: Likewise.
22036         * m4/tmpdir.m4: Likewise.
22037         * m4/tmpfile.m4: Likewise.
22038         * m4/tzset.m4: Likewise.
22039         * m4/uintmax_t.m4: Likewise.
22040         * m4/unlinkdir.m4: Likewise.
22041         * m4/unlocked-io.m4: Likewise.
22042         * m4/uptime.m4: Likewise.
22043         * m4/userspec.m4: Likewise.
22044         * m4/utimbuf.m4: Likewise.
22045         * m4/utime.m4: Likewise.
22046         * m4/utimes-null.m4: Likewise.
22047         * m4/utimes.m4: Likewise.
22048         * m4/vararrays.m4: Likewise.
22049         * m4/vasnprintf.m4: Likewise.
22050         * m4/vfprintf-posix.m4: Likewise.
22051         * m4/vprintf-posix.m4: Likewise.
22052         * m4/wait-process.m4: Likewise.
22053         * m4/wchar_t.m4: Likewise.
22054         * m4/wint_t.m4: Likewise.
22055         * m4/write-any-file.m4: Likewise.
22056         * m4/yield.m4: Likewise.
22057
22058 2009-01-13  Bruno Haible  <bruno@clisp.org>
22059
22060         Avoid test-copy-file.sh failures when ACL support insufficient.
22061         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22062         TESTS_ENVIRONMENT.
22063         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22064         Reported by Jim Meyering.
22065
22066 2009-01-13  Bruno Haible  <bruno@clisp.org>
22067
22068         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22069         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22070         * modules/unistdio/u8-printf-parse (Files): Likewise.
22071         * modules/unistdio/u32-printf-parse (Files): Likewise.
22072         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22073
22074 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22075
22076         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22077         and m4/inttypes_h.m4 too.
22078
22079 2009-01-12  Eric Blake  <ebb9@byu.net>
22080
22081         tests: IRIX 6.2 cc can't compile -0.0 into .data
22082         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22083         rather than at compile-time.
22084         * tests/test-floorl.c (minus_zero): Likewise.
22085         * tests/test-frexpl.c (minus_zero): Likewise.
22086         * tests/test-isnan.c (minus_zerol): Likewise.
22087         * tests/test-isnanl.h (minus_zero): Likewise.
22088         * tests/test-ldexpl.c (minus_zero): Likewise.
22089         * tests/test-roundl.c (minus_zero): Likewise.
22090         * tests/test-signbit.c (minus_zerol): Likewise.
22091         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22092         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22093         * tests/test-truncl.c (minus_zero): Likewise.
22094         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22095         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22096         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22097
22098 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22099
22100         regex: fix glibc bug 9697
22101         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22102         handling.
22103
22104 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22105
22106         regex: fix glibc bug 697
22107         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22108         being NULL also if there are no backreferences.
22109
22110 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22111
22112         regex: merge glibc changes
22113         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22114         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22115         re_string_skip_chars, re_string_reconstruct): Likewise.
22116         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22117
22118 2009-01-07  Jim Meyering  <meyering@redhat.com>
22119
22120         poll: filter through cppi
22121         * lib/poll.c: Indent cpp directives to reflect nesting.
22122
22123 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22124
22125         poll: don't return uninitialized
22126         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22127
22128 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22129
22130         avoid compile failure on AIX 6.1
22131         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22132         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22133
22134 2009-01-04  Jim Meyering  <meyering@redhat.com>
22135
22136         remove duplicate inclusion of <stdio.h>
22137         * tests/test-fprintf-posix.c: Likewise.
22138         * tests/test-printf-posix.c: Likewise.
22139         * tests/test-snprintf-posix.c: Likewise.
22140         * tests/test-sprintf-posix.c: Likewise.
22141         * tests/test-vasprintf-posix.c: Likewise.
22142         * tests/test-vfprintf-posix.c: Likewise.
22143         * tests/test-vprintf-posix.c: Likewise.
22144         * tests/test-vsnprintf-posix.c: Likewise.
22145         * tests/test-vsprintf-posix.c: Likewise.
22146
22147 2009-01-03  Jim Meyering  <meyering@redhat.com>
22148
22149         gnulib-tool: fix sed-based filtering
22150         * gnulib-tool (func_filter_filelist): Remove extra backslash
22151         in sed_fff_filter definition.
22152
22153 2009-01-02  Jim Meyering  <meyering@redhat.com>
22154
22155         strftime: avoid compilation failure on Solaris 2.6
22156         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22157         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22158         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22159         be available.  Reported by Tom G. Christensen.  Details in
22160         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22161
22162 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22163             Bruno Haible  <bruno@clisp.org>
22164
22165         Speed up gnulib-tool by doing more string processing through shell
22166         built-ins.
22167         * gnulib-tool (fast_func_append): New variable.
22168         (func_remove_prefix, func_remove_suffix): New functions.
22169         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22170         (func_filter_filelist): New function.
22171         (func_get_dependencies): Use func_remove_suffix instead of sed.
22172         (func_get_automake_snippet): Use func_filter_filelist instead of a
22173         subshell and sed invocation.
22174
22175 2009-01-01  Bruno Haible  <bruno@clisp.org>
22176
22177         Fix a security bug.
22178         * gnulib-tool (func_import, import, update): Don't allow the characters
22179         '"', '$', '`', '\' in macro arguments that become part of commands that
22180         are evaluated.
22181
22182 2009-01-01  Bruno Haible  <bruno@clisp.org>
22183
22184         * gnulib-tool (func_reset_sigpipe): Add more comments.
22185
22186 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22187
22188         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22189         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22190         already know the answer.
22191
22192 2009-01-01  Jim Meyering  <meyering@redhat.com>
22193
22194         * lib/version-etc.c (version_etc_va): Update copyright year.
22195
22196 2008-12-30  Bruno Haible  <bruno@clisp.org>
22197
22198         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22199         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22200         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22201
22202 2008-12-29  Eric Blake  <ebb9@byu.net>
22203
22204         multiarch: avoid autoconf AC_REQUIRE bug
22205         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22206         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22207         2.63 and older.
22208         Reported by Bruno Haible, and analyzed in
22209         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22210
22211 2008-12-29  Bruno Haible  <bruno@clisp.org>
22212
22213         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22214         files in subdirectories correctly.
22215         Reported by Ralf Wildenhues.
22216
22217 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22218
22219         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22220         rather than 'join FILE -', for Solaris join.
22221
22222 2008-12-29  Bruno Haible  <bruno@clisp.org>
22223
22224         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22225         quoting.
22226         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22227         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22228         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22229         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22230         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22231         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22232         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22233         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22234         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22235         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22236         * m4/nls.m4 (AM_NLS): Likewise.
22237         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22238         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22239         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22240         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22241         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22242         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22243         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22244         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22245         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22246         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22247         * m4/xsize.m4 (gl_XSIZE): Likewise.
22248         Suggested by Jim Meyering.
22249
22250 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22251
22252         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22253         * lib/parse-duration.c: use a switch instead of cascading if's.
22254
22255 2008-12-29  Eric Blake  <ebb9@byu.net>
22256
22257         wchar.h: supply WEOF on Irix 5.3
22258         * lib/wchar.in.h (wint_t): Also supply WEOF.
22259         * lib/wctype.in.h (wint_t): Likewise.
22260         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22261         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22262         Reported by Tom G. Christensen.
22263
22264 2008-12-26  Bruno Haible  <bruno@clisp.org>
22265
22266         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22267         i486, i586, i686.
22268
22269 2008-12-26  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22272
22273 2008-12-26  Bruno Haible  <bruno@clisp.org>
22274
22275         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22276         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22277         not __STDC_CONSTANT_MACROS.
22278         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22279
22280 2008-12-25  Bruno Haible  <bruno@clisp.org>
22281
22282         Add support for universal builds to vasnprintf.
22283         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22284         universal builds, guess no.
22285         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22286         * modules/vasprintf-posix (Depends-on): Likewise.
22287         * modules/fprintf-posix (Depends-on): Likewise.
22288         * modules/vfprintf-posix (Depends-on): Likewise.
22289         * modules/snprintf-posix (Depends-on): Likewise.
22290         * modules/vsnprintf-posix (Depends-on): Likewise.
22291         * modules/sprintf-posix (Depends-on): Likewise.
22292         * modules/vsprintf-posix (Depends-on): Likewise.
22293         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22294         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22295         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22296         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22297         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22298         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22299         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22300
22301         Add support for universal builds to <inttypes.h>.
22302         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22303         _SCNu64_PREFIX): In Apple
22304         universal builds, define directly, using _LP64.
22305         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22306         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22307         * modules/inttypes (Depends-on): Add multiarch.
22308         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22309
22310         Add support for universal builds to <stdint.h>.
22311         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22312         universal builds, define directly, using _LP64.
22313         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22314         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22315         and size_t.
22316         * modules/stdint (Depends-on): Add multiarch.
22317         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22318
22319         New module 'multiarch'.
22320         * modules/multiarch: New file.
22321         * m4/multiarch.m4: New file.
22322
22323 2008-12-25  Bruno Haible  <bruno@clisp.org>
22324
22325         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22326
22327 2008-12-25  Bruno Haible  <bruno@clisp.org>
22328
22329         * modules/btowc (License): Relicense under LGPLv2+.
22330         * modules/mbsinit (License): Likewise.
22331         * modules/mbrtowc (License): Likewise.
22332         * modules/wcrtomb (License): Likewise.
22333         * modules/streq (License): Likewise.
22334         Reported by David Lutterkort <lutter@redhat.com>.
22335
22336 2008-12-23  Bruno Haible  <bruno@clisp.org>
22337
22338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22339
22340 2008-12-23  Bruno Haible  <bruno@clisp.org>
22341
22342         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22344         GETADDRINFO_LIB, not in LIBS.
22345         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22346         * modules/canon-host (Link): Likewise.
22347         * NEWS: Mention the change.
22348         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22349         GETADDRINFO_LIB.
22350
22351 2008-12-22  Bruno Haible  <bruno@clisp.org>
22352
22353         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22354         * doc/posix-functions/iswalpha_l.texi: Likewise.
22355         * doc/posix-functions/iswblank_l.texi: Likewise.
22356         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22357         * doc/posix-functions/iswctype_l.texi: Likewise.
22358         * doc/posix-functions/iswdigit_l.texi: Likewise.
22359         * doc/posix-functions/iswgraph_l.texi: Likewise.
22360         * doc/posix-functions/iswlower_l.texi: Likewise.
22361         * doc/posix-functions/iswprint_l.texi: Likewise.
22362         * doc/posix-functions/iswpunct_l.texi: Likewise.
22363         * doc/posix-functions/iswspace_l.texi: Likewise.
22364         * doc/posix-functions/iswupper_l.texi: Likewise.
22365         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22366         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
22367         * doc/posix-functions/open_wmemstream.texi: Likewise.
22368         * doc/posix-functions/swscanf.texi: Likewise.
22369         * doc/posix-functions/towctrans_l.texi: Likewise.
22370         * doc/posix-functions/towlower.texi: Likewise.
22371         * doc/posix-functions/towlower_l.texi: Likewise.
22372         * doc/posix-functions/towupper.texi: Likewise.
22373         * doc/posix-functions/towupper_l.texi: Likewise.
22374         * doc/posix-functions/vfwprintf.texi: Likewise.
22375         * doc/posix-functions/vfwscanf.texi: Likewise.
22376         * doc/posix-functions/vswscanf.texi: Likewise.
22377         * doc/posix-functions/vwprintf.texi: Likewise.
22378         * doc/posix-functions/vwscanf.texi: Likewise.
22379         * doc/posix-functions/wcpcpy.texi: Likewise.
22380         * doc/posix-functions/wcpncpy.texi: Likewise.
22381         * doc/posix-functions/wcscasecmp.texi: Likewise.
22382         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
22383         * doc/posix-functions/wcscoll_l.texi: Likewise.
22384         * doc/posix-functions/wcsdup.texi: Likewise.
22385         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22386         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
22387         * doc/posix-functions/wcsnlen.texi: Likewise.
22388         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22389         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22390         * doc/posix-functions/wctrans_l.texi: Likewise.
22391         * doc/posix-functions/wctype_l.texi: Likewise.
22392         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
22393         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
22394         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
22395         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
22396         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
22397         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
22398         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
22399         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
22400         * doc/glibc-functions/wcschrnul.texi: Likewise.
22401         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22402         * doc/glibc-functions/wcstod_l.texi: Likewise.
22403         * doc/glibc-functions/wcstof_l.texi: Likewise.
22404         * doc/glibc-functions/wcstol_l.texi: Likewise.
22405         * doc/glibc-functions/wcstold_l.texi: Likewise.
22406         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22407         * doc/glibc-functions/wcstoq.texi: Likewise.
22408         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22409         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22410         * doc/glibc-functions/wcstouq.texi: Likewise.
22411         * doc/glibc-functions/wmempcpy.texi: Likewise.
22412
22413 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
22414             Eric Blake  <ebb9@byu.net>
22415             Paolo Bonzini  <bonzini@gnu.org>
22416             Bruno Haible  <bruno@clisp.org>
22417
22418         Make c-stack work on Haiku.
22419         * lib/c-stack.c (SA_ONSTACK): Define fallback.
22420         (c_stack_action): Use SA_ONSTACK flag.
22421
22422 2008-12-22  Bruno Haible  <bruno@clisp.org>
22423
22424         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
22425
22426 2008-12-22  Bruno Haible  <bruno@clisp.org>
22427
22428         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
22429         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
22430         being overridden.
22431         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
22432         New macros.
22433         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
22434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
22435         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
22436         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
22437
22438 2008-12-22  Bruno Haible  <bruno@clisp.org>
22439
22440         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
22441         from test code.
22442
22443 2008-12-22  Eric Blake  <ebb9@byu.net>
22444
22445         Avoid gcc warnings on cygwin.
22446         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
22447         Avoid unused variable.
22448         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
22449         Likewise.
22450
22451 2008-12-22  Bruno Haible  <bruno@clisp.org>
22452
22453         Remove HAVE_MBRTOWC conditionals.
22454         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
22455         (mbscasecmp): Assume mbrtowc function.
22456         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
22457         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
22458         * lib/mbschr.c: Include mbuiter.h unconditionally.
22459         (mbschr): Assume mbrtowc function.
22460         * lib/mbscspn.c: Include mbuiter.h unconditionally.
22461         (mbscspn): Assume mbrtowc function.
22462         * lib/mbslen.c: Include mbuiter.h unconditionally.
22463         (mbslen): Assume mbrtowc function.
22464         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
22465         (mbsncasecmp): Assume mbrtowc function.
22466         * lib/mbsnlen.c: Include mbiter.h unconditionally.
22467         (mbsnlen): Assume mbrtowc function.
22468         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
22469         (mbspbrk): Assume mbrtowc function.
22470         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
22471         (mbspcasecmp): Assume mbrtowc function.
22472         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
22473         (mbsrchr): Assume mbrtowc function.
22474         * lib/mbssep.c: Include mbuiter.h unconditionally.
22475         (mbssep): Assume mbrtowc function.
22476         * lib/mbsspn.c: Include mbuiter.h unconditionally.
22477         (mbsspn): Assume mbrtowc function.
22478         * lib/mbsstr.c: Include mbuiter.h unconditionally.
22479         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
22480         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
22481         (mbstok_r): Assume mbrtowc function.
22482         * lib/propername.c: Include mbuiter.h unconditionally.
22483         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
22484         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
22485         (trim2): Assume mbrtowc function.
22486         * lib/mbswidth.c (mbsinit): Remove fallback definition.
22487         (mbsnwidth): Assume mbrtowc function.
22488         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
22489         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
22490         fallback definitions.
22491         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
22492
22493 2008-12-22  Bruno Haible  <bruno@clisp.org>
22494
22495         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
22496
22497 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
22498
22499         * modules/regex: Request emulations for the mb*/wc* functions we need.
22500         * m4/regex.m4: Don't look for those functions here.
22501         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
22502
22503 2008-12-22  Bruno Haible  <bruno@clisp.org>
22504
22505         * modules/fnmatch (Depends-on): Remove duplicated dependency.
22506
22507 2008-12-21  Bruno Haible  <bruno@clisp.org>
22508
22509         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
22510         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
22511         (Include): Remove conditionalization.
22512         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
22513         (Include): Remove conditionalization.
22514         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
22515         (Include): Remove conditionalization.
22516         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
22517         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22518         * NEWS: Mention the change.
22519         Reported by Alan Hourihane <alanh@fairlite.co.uk>
22520         via Sergey Poznyakoff <gray@gnu.org.ua>.
22521
22522 2008-12-21  Bruno Haible  <bruno@clisp.org>
22523
22524         * MODULES.html.sh (Extended multibyte and wide character utilities
22525         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
22526         wcrtomb, wcsrtombs.
22527         (Support for systems lacking POSIX:2008): Add accept, bind, close,
22528         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
22529         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
22530         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
22531
22532 2008-12-21  Bruno Haible  <bruno@clisp.org>
22533
22534         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
22535
22536 2008-12-21  Bruno Haible  <bruno@clisp.org>
22537
22538         * modules/wcsnrtombs-tests: New file.
22539         * tests/test-wcsnrtombs1.sh: New file.
22540         * tests/test-wcsnrtombs2.sh: New file.
22541         * tests/test-wcsnrtombs3.sh: New file.
22542         * tests/test-wcsnrtombs4.sh: New file.
22543         * tests/test-wcsnrtombs.c: New file.
22544
22545         New module 'wcsnrtombs'.
22546         * lib/wchar.in.h (wcsnrtombs): New declaration.
22547         * lib/wcsnrtombs.c: New file.
22548         * lib/wcsrtombs-state.c: New file.
22549         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
22550         (internal_state): Remove variable.
22551         * m4/wcsnrtombs.m4: New file.
22552         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
22553         compilation units.
22554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
22555         HAVE_WCSNRTOMBS.
22556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
22557         HAVE_WCSNRTOMBS.
22558         * modules/wcsnrtombs: New file.
22559         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
22560         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
22561
22562 2008-12-21  Bruno Haible  <bruno@clisp.org>
22563
22564         * modules/wcsrtombs-tests: New file.
22565         * tests/test-wcsrtombs1.sh: New file.
22566         * tests/test-wcsrtombs2.sh: New file.
22567         * tests/test-wcsrtombs3.sh: New file.
22568         * tests/test-wcsrtombs4.sh: New file.
22569         * tests/test-wcsrtombs.c: New file.
22570
22571         New module 'wcsrtombs'.
22572         * lib/wchar.in.h (wcsrtombs): New declaration.
22573         * lib/wcsrtombs.c: New file.
22574         * m4/wcsrtombs.m4: New file.
22575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
22576         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
22578         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22579         * modules/wcsrtombs: New file.
22580         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
22581         bugs.
22582
22583 2008-12-21  Bruno Haible  <bruno@clisp.org>
22584
22585         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
22586         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
22587         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
22588         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
22589         if not correct.
22590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
22591         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
22592         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22593         m4/locale-zh.m4, m4/codeset.m4.
22594         * doc/posix-functions/wcrtomb.texi: Document the bug.
22595
22596 2008-12-21  Bruno Haible  <bruno@clisp.org>
22597
22598         Work around a btowc() bug on IRIX 6.5.
22599         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
22600         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
22601         REPLACE_WTOBC if not.
22602         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
22603         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
22604         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
22605
22606 2008-12-21  Bruno Haible  <bruno@clisp.org>
22607
22608         * modules/wcrtomb-tests: New file.
22609         * tests/test-wcrtomb.sh: New file.
22610         * tests/test-wcrtomb.c: New file.
22611
22612         New module 'wcrtomb'.
22613         * lib/wchar.in.h (wcrtomb): New declaration.
22614         * lib/wcrtomb.c: New file.
22615         * m4/wcrtomb.m4: New file.
22616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
22617         HAVE_WCRTOMB.
22618         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
22619         HAVE_WCRTOMB.
22620         * modules/wcrtomb: New file.
22621         * doc/posix-functions/wcrtomb.texi: Mention the new module.
22622
22623 2008-12-21  Bruno Haible  <bruno@clisp.org>
22624
22625         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
22626         * modules/mbsrtowcs (Files): Likewise.
22627         * modules/wctob (Files): Likewise.
22628         * modules/c-strcase-tests (Files): Likewise.
22629         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22630         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22631         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22632         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22633         * modules/vasnprintf-posix-tests (Files): Likewise.
22634
22635 2008-12-21  William Pursell  <bill.pursell@gmail.com>
22636
22637         gitlog-to-changelog: pass all command-line arguments to git-log
22638         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
22639         it is sometimes convenient to filter the commits in various ways.
22640         gitlog-to-changelog only allows --since to specify a start date,
22641         but git-log itself supports many other filtering mechanisms.
22642         At the moment, I want to filter by branch name.  Rather than
22643         adding a --branch option to gitlog-to-changelog, it seems more
22644         flexible to simply pass all options directly to git-log and let
22645         git do the work.  Notice that this effectively makes --since a
22646         redundant option for gitlog-to-changelog, but removing it would
22647         require current usage to change since calls would then require
22648         an additional '--'.
22649
22650 2008-12-21  Bruno Haible  <bruno@clisp.org>
22651
22652         * modules/mbsnrtowcs-tests: New file.
22653         * tests/test-mbsnrtowcs1.sh: New file.
22654         * tests/test-mbsnrtowcs2.sh: New file.
22655         * tests/test-mbsnrtowcs3.sh: New file.
22656         * tests/test-mbsnrtowcs4.sh: New file.
22657         * tests/test-mbsnrtowcs.c: New file.
22658
22659         New module 'mbsnrtowcs'.
22660         * lib/wchar.in.h (mbsnrtowcs): New declaration.
22661         * lib/mbsnrtowcs.c: New file.
22662         * lib/mbsrtowcs-state.c: New file.
22663         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
22664         (internal_state): Remove variable.
22665         * m4/mbsnrtowcs.m4: New file.
22666         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
22667         compilation units.
22668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
22669         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22670         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
22671         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22672         * modules/mbsnrtowcs: New file.
22673         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
22674         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
22675         portability problem.
22676
22677 2008-12-21  Bruno Haible  <bruno@clisp.org>
22678
22679         Work around mbsrtowcs bug.
22680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
22681         (gl_FUNC_MBSRTOWCS): Invoke it.
22682         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22683         m4/locale-zh.m4.
22684         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
22685
22686 2008-12-21  Bruno Haible  <bruno@clisp.org>
22687
22688         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
22689
22690 2008-12-21  Bruno Haible  <bruno@clisp.org>
22691
22692         Update doc for AIX.
22693         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
22694         16-bit wchar_t type.
22695         * doc/posix-functions/btowc.texi: Likewise.
22696         * doc/posix-functions/fgetwc.texi: Likewise.
22697         * doc/posix-functions/fgetws.texi: Likewise.
22698         * doc/posix-functions/fputwc.texi: Likewise.
22699         * doc/posix-functions/fputws.texi: Likewise.
22700         * doc/posix-functions/fwide.texi: Likewise.
22701         * doc/posix-functions/fwprintf.texi: Likewise.
22702         * doc/posix-functions/fwscanf.texi: Likewise.
22703         * doc/posix-functions/getwchar.texi: Likewise.
22704         * doc/posix-functions/getwc.texi: Likewise.
22705         * doc/posix-functions/iswalnum.texi: Likewise.
22706         * doc/posix-functions/iswalpha.texi: Likewise.
22707         * doc/posix-functions/iswblank.texi: Likewise.
22708         * doc/posix-functions/iswcntrl.texi: Likewise.
22709         * doc/posix-functions/iswctype.texi: Likewise.
22710         * doc/posix-functions/iswdigit.texi: Likewise.
22711         * doc/posix-functions/iswgraph.texi: Likewise.
22712         * doc/posix-functions/iswlower.texi: Likewise.
22713         * doc/posix-functions/iswprint.texi: Likewise.
22714         * doc/posix-functions/iswpunct.texi: Likewise.
22715         * doc/posix-functions/iswspace.texi: Likewise.
22716         * doc/posix-functions/iswupper.texi: Likewise.
22717         * doc/posix-functions/iswxdigit.texi: Likewise.
22718         * doc/posix-functions/mbrtowc.texi: Likewise.
22719         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22720         * doc/posix-functions/mbstowcs.texi: Likewise.
22721         * doc/posix-functions/mbtowc.texi: Likewise.
22722         * doc/posix-functions/putwchar.texi: Likewise.
22723         * doc/posix-functions/putwc.texi: Likewise.
22724         * doc/posix-functions/swprintf.texi: Likewise.
22725         * doc/posix-functions/tolower.texi: Likewise.
22726         * doc/posix-functions/toupper.texi: Likewise.
22727         * doc/posix-functions/towctrans.texi: Likewise.
22728         * doc/posix-functions/ungetwc.texi: Likewise.
22729         * doc/posix-functions/vswprintf.texi: Likewise.
22730         * doc/posix-functions/wcrtomb.texi: Likewise.
22731         * doc/posix-functions/wcscat.texi: Likewise.
22732         * doc/posix-functions/wcschr.texi: Likewise.
22733         * doc/posix-functions/wcscmp.texi: Likewise.
22734         * doc/posix-functions/wcscoll.texi: Likewise.
22735         * doc/posix-functions/wcscpy.texi: Likewise.
22736         * doc/posix-functions/wcscspn.texi: Likewise.
22737         * doc/posix-functions/wcsftime.texi: Likewise.
22738         * doc/posix-functions/wcslen.texi: Likewise.
22739         * doc/posix-functions/wcsncat.texi: Likewise.
22740         * doc/posix-functions/wcsncmp.texi: Likewise.
22741         * doc/posix-functions/wcsncpy.texi: Likewise.
22742         * doc/posix-functions/wcspbrk.texi: Likewise.
22743         * doc/posix-functions/wcsrchr.texi: Likewise.
22744         * doc/posix-functions/wcsrtombs.texi: Likewise.
22745         * doc/posix-functions/wcsspn.texi: Likewise.
22746         * doc/posix-functions/wcsstr.texi: Likewise.
22747         * doc/posix-functions/wcstod.texi: Likewise.
22748         * doc/posix-functions/wcstof.texi: Likewise.
22749         * doc/posix-functions/wcstoimax.texi: Likewise.
22750         * doc/posix-functions/wcstok.texi: Likewise.
22751         * doc/posix-functions/wcstold.texi: Likewise.
22752         * doc/posix-functions/wcstoll.texi: Likewise.
22753         * doc/posix-functions/wcstol.texi: Likewise.
22754         * doc/posix-functions/wcstombs.texi: Likewise.
22755         * doc/posix-functions/wcstoull.texi: Likewise.
22756         * doc/posix-functions/wcstoul.texi: Likewise.
22757         * doc/posix-functions/wcstoumax.texi: Likewise.
22758         * doc/posix-functions/wcswidth.texi: Likewise.
22759         * doc/posix-functions/wcsxfrm.texi: Likewise.
22760         * doc/posix-functions/wctob.texi: Likewise.
22761         * doc/posix-functions/wctomb.texi: Likewise.
22762         * doc/posix-functions/wctrans.texi: Likewise.
22763         * doc/posix-functions/wctype.texi: Likewise.
22764         * doc/posix-functions/wcwidth.texi: Likewise.
22765         * doc/posix-functions/wmemchr.texi: Likewise.
22766         * doc/posix-functions/wmemcmp.texi: Likewise.
22767         * doc/posix-functions/wmemcpy.texi: Likewise.
22768         * doc/posix-functions/wmemmove.texi: Likewise.
22769         * doc/posix-functions/wmemset.texi: Likewise.
22770         * doc/posix-functions/wprintf.texi: Likewise.
22771         * doc/posix-functions/wscanf.texi: Likewise.
22772
22773 2008-12-21  Bruno Haible  <bruno@clisp.org>
22774
22775         Update doc for HP-UX 11.11.
22776         * doc/posix-functions/btowc.texi: Clarify that the function is missing
22777         in HP-UX version 11.00, not in all versions of HP-UX 11.
22778         * doc/posix-functions/fwide.texi: Likewise.
22779         * doc/posix-functions/fwprintf.texi: Likewise.
22780         * doc/posix-functions/fwscanf.texi: Likewise.
22781         * doc/posix-functions/inet_ntop.texi: Likewise.
22782         * doc/posix-functions/inet_pton.texi: Likewise.
22783         * doc/posix-functions/mbrlen.texi: Likewise.
22784         * doc/posix-functions/mbrtowc.texi: Likewise.
22785         * doc/posix-functions/mbsinit.texi: Likewise.
22786         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22787         * doc/posix-functions/swprintf.texi: Likewise.
22788         * doc/posix-functions/swscanf.texi: Likewise.
22789         * doc/posix-functions/towctrans.texi: Likewise.
22790         * doc/posix-functions/vfwprintf.texi: Likewise.
22791         * doc/posix-functions/vswprintf.texi: Likewise.
22792         * doc/posix-functions/vwprintf.texi: Likewise.
22793         * doc/posix-functions/wcrtomb.texi: Likewise.
22794         * doc/posix-functions/wcsrtombs.texi: Likewise.
22795         * doc/posix-functions/wcsstr.texi: Likewise.
22796         * doc/posix-functions/wctob.texi: Likewise.
22797         * doc/posix-functions/wctrans.texi: Likewise.
22798         * doc/posix-functions/wmemchr.texi: Likewise.
22799         * doc/posix-functions/wmemcmp.texi: Likewise.
22800         * doc/posix-functions/wmemcpy.texi: Likewise.
22801         * doc/posix-functions/wmemmove.texi: Likewise.
22802         * doc/posix-functions/wmemset.texi: Likewise.
22803         * doc/posix-functions/wprintf.texi: Likewise.
22804         * doc/posix-functions/wscanf.texi: Likewise.
22805
22806 2008-12-21  Bruno Haible  <bruno@clisp.org>
22807
22808         Work around a portability problem.
22809         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
22810         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
22811
22812 2008-12-20  Bruno Haible  <bruno@clisp.org>
22813
22814         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
22815         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
22816         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
22817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
22818         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
22819
22820         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
22821         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
22822         set.
22823         (GNULIB_defined_mbstate_t): New macro.
22824         (mbsinit): Redefine if REPLACE_MBSINIT is set.
22825         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
22826         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
22827         reuses the system's mbrtowc function but works around the bugs.
22828         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
22829         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
22830         macros.
22831         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
22832         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
22833         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
22834         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
22835         REPLACE_MBSINIT if mbsinit needs to be overridden.
22836         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
22837         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22838         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
22839         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22840         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22841         m4/locale-zh.m4.
22842         (Depends): Add mbsinit.
22843         * modules/mbsinit (Depends): Add mbrtowc.
22844         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
22845
22846 2008-12-20  Bruno Haible  <bruno@clisp.org>
22847
22848         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
22849         so that there are no conversion errors on AIX.
22850         * tests/test-mbsrtowcs.c (main): LIkewise.
22851
22852 2008-12-20  Bruno Haible  <bruno@clisp.org>
22853
22854         Work around wctob bug on Solaris <= 9.
22855         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
22856         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
22857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
22858         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
22859         * modules/wctob (Files): Add m4/locale-fr.m4.
22860         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
22861
22862 2008-12-20  Bruno Haible  <bruno@clisp.org>
22863
22864         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
22865         /dev/null.
22866         * tests/test-select-in.sh: Likewise.
22867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22868
22869 2008-12-20  Bruno Haible  <bruno@clisp.org>
22870
22871         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
22872         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
22873         Cygwin 1.5.x.
22874
22875 2008-12-20  Bruno Haible  <bruno@clisp.org>
22876
22877         Ensure mbstate_t is defined on HP-UX 11.11.
22878         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
22879         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
22880         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
22881         AC_USE_SYSTEM_EXTENSIONS.
22882         * modules/fnmatch (Depends-on): Add extensions.
22883         * modules/mbrlen (Depends-on): Likewise.
22884         * modules/mbrtowc (Depends-on): Likewise.
22885         * modules/mbsinit (Depends-on): Likewise.
22886         * modules/mbsrtowcs (Depends-on): Likewise.
22887         * modules/mbswidth (Depends-on): Likewise.
22888         * modules/quotearg (Depends-on): Likewise.
22889         * modules/strftime (Depends-on): Likewise.
22890
22891 2008-12-20  Bruno Haible  <bruno@clisp.org>
22892
22893         Ensure wctob is declared on IRIX 6.5.
22894         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
22895         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
22896         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
22897         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
22898         of HAVE_WCTOB.
22899         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
22900         HAVE_WCTOB.
22901         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
22902
22903 2008-12-19  Bruno Haible  <bruno@clisp.org>
22904
22905         * modules/mbsrtowcs-tests: New file.
22906         * tests/test-mbsrtowcs1.sh: New file.
22907         * tests/test-mbsrtowcs2.sh: New file.
22908         * tests/test-mbsrtowcs3.sh: New file.
22909         * tests/test-mbsrtowcs4.sh: New file.
22910         * tests/test-mbsrtowcs.c: New file.
22911
22912         New module 'mbsrtowcs'.
22913         * lib/wchar.in.h (mbsrtowcs): New declaration.
22914         * lib/mbsrtowcs.c: New file.
22915         * m4/mbsrtowcs.m4: New file.
22916         * modules/mbsrtowcs: New file.
22917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
22918         HAVE_MBSRTOWCS.
22919         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22920         HAVE_MBSRTOWCS.
22921         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22922
22923 2008-12-19  Bruno Haible  <bruno@clisp.org>
22924
22925         New module 'mbrlen'.
22926         * lib/wchar.in.h (mbrlen): New declaration.
22927         * lib/mbrlen.c: New file.
22928         * m4/mbrlen.m4: New file.
22929         * modules/mbrlen: New file.
22930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22931         HAVE_MBRLEN.
22932         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22933         HAVE_MBRLEN.
22934         * doc/posix-functions/mbrlen.texi: Document the new module.
22935
22936 2008-12-19  Bruno Haible  <bruno@clisp.org>
22937
22938         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22939         * modules/mbrtowc (Depends-on): Add verify.
22940         Suggested by Paul Eggert.
22941
22942 2008-12-18  Bruno Haible  <bruno@clisp.org>
22943
22944         * modules/mbsinit-tests: New file.
22945         * tests/test-mbsinit.sh: New file.
22946         * tests/test-mbsinit.c: New file.
22947
22948 2008-12-18  Bruno Haible  <bruno@clisp.org>
22949
22950         * modules/mbrtowc-tests: New file.
22951         * tests/test-mbrtowc1.sh: New file.
22952         * tests/test-mbrtowc2.sh: New file.
22953         * tests/test-mbrtowc3.sh: New file.
22954         * tests/test-mbrtowc4.sh: New file.
22955         * tests/test-mbrtowc.c: New file.
22956
22957         New module 'mbrtowc'.
22958         * lib/wchar.in.h (mbstate_t): Override when the system does not have
22959         mbsinit and mbrtowc.
22960         (mbrtowc): New declaration.
22961         * lib/mbrtowc.c: New file.
22962         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
22963         * modules/mbrtowc: New file.
22964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
22965         HAVE_MBRTOWC.
22966         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
22967         HAVE_MBRTOWC.
22968         * doc/posix-functions/mbrtowc.texi: Document the new module.
22969
22970 2008-12-18  Bruno Haible  <bruno@clisp.org>
22971
22972         New module 'wctob'.
22973         * lib/wchar.in.h (wctob): New declaration.
22974         * lib/wctob.c: New file.
22975         * m4/wctob.m4: New file.
22976         * modules/wctob: New file.
22977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
22978         HAVE_WCTOB.
22979         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
22980         * doc/posix-functions/wctob.texi: Document the new module.
22981
22982 2008-12-18  Bruno Haible  <bruno@clisp.org>
22983
22984         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
22985         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
22986
22987 2008-12-18  Simon Josefsson  <simon@josefsson.org>
22988
22989         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
22990         G. Christensen" <tgc@jupiterrise.com>.
22991
22992         * lib/flock.c: Need to include errno.h.  Reported by "Tom
22993         G. Christensen" <tgc@jupiterrise.com>.
22994
22995         * lib/flock.c: Need to include string.h.  Reported by "Tom
22996         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
22997         <ebb9@byu.net>.
22998
22999 2008-12-18  Bruno Haible  <bruno@clisp.org>
23000
23001         * m4/locale-ja.m4: New file, from GNU gettext.
23002
23003 2008-12-17  Bruno Haible  <bruno@clisp.org>
23004
23005         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23006         Suggested by Eric Blake.
23007
23008 2008-12-17  Bruno Haible  <bruno@clisp.org>
23009
23010         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23011
23012 2008-12-17  Bruno Haible  <bruno@clisp.org>
23013
23014         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23015         * modules/mbsinit (Depends-on): Add verify.
23016         Suggested by Paul Eggert.
23017
23018 2008-12-17  Bruno Haible  <bruno@clisp.org>
23019
23020         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23021         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23022         gl_FUNC_MBRTOWC.
23023         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23024         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23025         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23026         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23027         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23028         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23029         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23030         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23031         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23032         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23033         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23034         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23035         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23036         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23037         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23038         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23039         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23040         * modules/trim (configure.ac): Likewise.
23041
23042 2008-12-17  Bruno Haible  <bruno@clisp.org>
23043
23044         * modules/btowc-tests: New file.
23045         * tests/test-btowc1.sh: New file.
23046         * tests/test-btowc2.sh: New file.
23047         * tests/test-btowc.c: New file.
23048
23049         New module 'btowc'.
23050         * lib/wchar.in.h (btowc): New declaration.
23051         * lib/btowc.c: New file.
23052         * m4/btowc.m4: New file.
23053         * modules/btowc: New file.
23054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23055         HAVE_BTOWC.
23056         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23057         * doc/posix-functions/btowc.texi: Document the new module.
23058
23059 2008-12-17  Bruno Haible  <bruno@clisp.org>
23060
23061         New module 'mbsinit'.
23062         * lib/wchar.in.h (mbsinit): New declaration.
23063         * lib/mbsinit.c: New file.
23064         * m4/mbsinit.m4: New file.
23065         * modules/mbsinit: New file.
23066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23067         HAVE_MBSINIT.
23068         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23069         HAVE_MBSINIT.
23070         * doc/posix-functions/mbsinit.texi: Document the new module.
23071
23072 2008-12-16  Bruno Haible  <bruno@clisp.org>
23073
23074         * lib/unistd.in.h: Add comment.
23075         * tests/test-environ.c: Don't include <stdlib.h>.
23076
23077 2008-12-16  Bruno Haible  <bruno@clisp.org>
23078
23079         * lib/parse-duration.h (parse_duration): Document return value
23080         convention.
23081         * lib/parse-duration.c: Include specification header first. Add
23082         comments.
23083         (_): Remove macro.
23084         (parse_year_month_day, parse_hour_minute_second): Move side effects
23085         outside of strchr call.
23086         (parse_non_iso8601): Move side effects outside of isspace call.
23087         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23088         call.
23089
23090 2008-12-16  Bruno Haible  <bruno@clisp.org>
23091
23092         * tests/test-parse-duration.sh: Produce no output when the test
23093         succeeds.
23094
23095 2008-12-16  Bruno Haible  <bruno@clisp.org>
23096
23097         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23098         expressions.
23099
23100 2008-12-15  Bruno Haible  <bruno@clisp.org>
23101
23102         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23103         * doc/glibc-functions/flistxattr.texi: Likewise.
23104         * doc/glibc-functions/fopencookie.texi: Likewise.
23105         * doc/glibc-functions/fremovexattr.texi: Likewise.
23106         * doc/glibc-functions/fsetxattr.texi: Likewise.
23107         * doc/glibc-functions/getxattr.texi: Likewise.
23108         * doc/glibc-functions/lgetxattr.texi: Likewise.
23109         * doc/glibc-functions/listxattr.texi: Likewise.
23110         * doc/glibc-functions/llistxattr.texi: Likewise.
23111         * doc/glibc-functions/lremovexattr.texi: Likewise.
23112         * doc/glibc-functions/lsetxattr.texi: Likewise.
23113         * doc/glibc-functions/removexattr.texi: Likewise.
23114         * doc/glibc-functions/setxattr.texi: Likewise.
23115         * doc/posix-functions/open_memstream.texi: Likewise.
23116
23117 2008-12-15  Eric Blake  <ebb9@byu.net>
23118
23119         Update doc for cygwin 1.7.
23120         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23121         functions.
23122         * doc/posix-functions/fchmodat.texi: Likewise.
23123         * doc/posix-functions/fchownat.texi: Likewise.
23124         * doc/posix-functions/fdopendir.texi: Likewise.
23125         * doc/posix-functions/fmemopen.texi: Likewise.
23126         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23127         * doc/posix-functions/fstatat.texi: Likewise.
23128         * doc/posix-functions/futimens.texi: Likewise.
23129         * doc/posix-functions/gai_strerror.texi: Likewise.
23130         * doc/posix-functions/getaddrinfo.texi: Likewise.
23131         * doc/posix-functions/getnameinfo.texi: Likewise.
23132         * doc/posix-functions/if_freenameindex.texi: Likewise.
23133         * doc/posix-functions/if_indextoname.texi: Likewise.
23134         * doc/posix-functions/if_nameindex.texi: Likewise.
23135         * doc/posix-functions/if_nametoindex.texi: Likewise.
23136         * doc/posix-functions/insque.texi: Likewise.
23137         * doc/posix-functions/linkat.texi: Likewise.
23138         * doc/posix-functions/llrint.texi: Likewise.
23139         * doc/posix-functions/llrintf.texi: Likewise.
23140         * doc/posix-functions/llrintl.texi: Likewise.
23141         * doc/posix-functions/lockf.texi: Likewise.
23142         * doc/posix-functions/lrintl.texi: Likewise.
23143         * doc/posix-functions/mkdirat.texi: Likewise.
23144         * doc/posix-functions/mkfifoat.texi: Likewise.
23145         * doc/posix-functions/mknodat.texi: Likewise.
23146         * doc/posix-functions/mq_close.texi: Likewise.
23147         * doc/posix-functions/mq_getattr.texi: Likewise.
23148         * doc/posix-functions/mq_notify.texi: Likewise.
23149         * doc/posix-functions/mq_open.texi: Likewise.
23150         * doc/posix-functions/mq_receive.texi: Likewise.
23151         * doc/posix-functions/mq_send.texi: Likewise.
23152         * doc/posix-functions/mq_setattr.texi: Likewise.
23153         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23154         * doc/posix-functions/mq_timedsend.texi: Likewise.
23155         * doc/posix-functions/mq_unlink.texi: Likewise.
23156         * doc/posix-functions/open_memstream.texi: Likewise.
23157         * doc/posix-functions/openat.texi: Likewise.
23158         * doc/posix-functions/posix_fadvise.texi: Likewise.
23159         * doc/posix-functions/posix_fallocate.texi: Likewise.
23160         * doc/posix-functions/posix_madvise.texi: Likewise.
23161         * doc/posix-functions/posix_memalign.texi: Likewise.
23162         * doc/posix-functions/posix_openpt.texi: Likewise.
23163         * doc/posix-functions/readlinkat.texi: Likewise.
23164         * doc/posix-functions/remque.texi: Likewise.
23165         * doc/posix-functions/renameat.texi: Likewise.
23166         * doc/posix-functions/rintl.texi: Likewise.
23167         * doc/posix-functions/sem_unlink.texi: Likewise.
23168         * doc/posix-functions/shm_open.texi: Likewise.
23169         * doc/posix-functions/shm_unlink.texi: Likewise.
23170         * doc/posix-functions/signgam.texi: Likewise.
23171         * doc/posix-functions/sigset.texi: Likewise.
23172         * doc/posix-functions/stpcpy.texi: Likewise.
23173         * doc/posix-functions/stpncpy.texi: Likewise.
23174         * doc/posix-functions/strerror.texi: Likewise.
23175         * doc/posix-functions/strtod.texi: Likewise.
23176         * doc/posix-functions/symlinkat.texi: Likewise.
23177         * doc/posix-functions/unlinkat.texi: Likewise.
23178         * doc/posix-functions/utimensat.texi: Likewise.
23179         * doc/glibc-functions/bindresvport.texi: Likewise.
23180         * doc/glibc-functions/dn_expand.texi: Likewise.
23181         * doc/glibc-functions/exp10.texi: Likewise.
23182         * doc/glibc-functions/exp10f.texi: Likewise.
23183         * doc/glibc-functions/fgetxattr.texi: Likewise.
23184         * doc/glibc-functions/flistxattr.texi: Likewise.
23185         * doc/glibc-functions/fopencookie.texi: Likewise.
23186         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23187         * doc/glibc-functions/fremovexattr.texi: Likewise.
23188         * doc/glibc-functions/fsetxattr.texi: Likewise.
23189         * doc/glibc-functions/getifaddrs.texi: Likewise.
23190         * doc/glibc-functions/getxattr.texi: Likewise.
23191         * doc/glibc-functions/lgetxattr.texi: Likewise.
23192         * doc/glibc-functions/listxattr.texi: Likewise.
23193         * doc/glibc-functions/llistxattr.texi: Likewise.
23194         * doc/glibc-functions/lremovexattr.texi: Likewise.
23195         * doc/glibc-functions/lsetxattr.texi: Likewise.
23196         * doc/glibc-functions/pow10.texi: Likewise.
23197         * doc/glibc-functions/pow10f.texi: Likewise.
23198         * doc/glibc-functions/rcmd_af.texi: Likewise.
23199         * doc/glibc-functions/removexattr.texi: Likewise.
23200         * doc/glibc-functions/res_init.texi: Likewise.
23201         * doc/glibc-functions/res_mkquery.texi: Likewise.
23202         * doc/glibc-functions/res_query.texi: Likewise.
23203         * doc/glibc-functions/res_querydomain.texi: Likewise.
23204         * doc/glibc-functions/res_send.texi: Likewise.
23205         * doc/glibc-functions/rresvport_af.texi: Likewise.
23206         * doc/glibc-functions/setxattr.texi: Likewise.
23207         * doc/glibc-functions/strcasestr.texi: Likewise.
23208
23209 2008-12-15  Bruno Haible  <bruno@clisp.org>
23210
23211         Fix compilation error on OSF/1 4.0.
23212         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23213         <sys/time.h>, simply delegate to the system header.
23214         Reported by Daniel Richard G. <oss@teragram.com>.
23215
23216 2008-12-15  Bruno Haible  <bruno@clisp.org>
23217
23218         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23219         * doc/posix-functions/fchmodat.texi: Likewise.
23220         * doc/posix-functions/fchownat.texi: Likewise.
23221         * doc/posix-functions/fdopendir.texi: Likewise.
23222         * doc/posix-functions/fstatat.texi: Likewise.
23223         * doc/posix-functions/mkdirat.texi: Likewise.
23224         * doc/posix-functions/unlinkat.texi: Likewise.
23225
23226 2008-12-14  Bruno Haible  <bruno@clisp.org>
23227
23228         Update doc for POSIX:2008.
23229         * doc/posix-functions/faccessat.texi: New file.
23230         * doc/posix-functions/fchmodat.texi: New file.
23231         * doc/posix-functions/fchownat.texi: New file.
23232         * doc/posix-functions/fdopendir.texi: New file.
23233         * doc/posix-functions/fstatat.texi: New file.
23234         * doc/posix-functions/futimens.texi: New file.
23235         * doc/posix-functions/linkat.texi: New file.
23236         * doc/posix-functions/mkdirat.texi: New file.
23237         * doc/posix-functions/mkfifoat.texi: New file.
23238         * doc/posix-functions/mknodat.texi: New file.
23239         * doc/posix-functions/open_wmemstream.texi: New file.
23240         * doc/posix-functions/openat.texi: New file.
23241         * doc/posix-functions/psiginfo.texi: New file.
23242         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23243         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23244         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23245         * doc/posix-functions/readlinkat.texi: New file.
23246         * doc/posix-functions/renameat.texi: New file.
23247         * doc/posix-functions/strerror_l.texi: New file.
23248         * doc/posix-functions/symlinkat.texi: New file.
23249         * doc/posix-functions/unlinkat.texi: New file.
23250         * doc/posix-functions/utimensat.texi: New file.
23251         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23252
23253 2008-12-14  Bruno Haible  <bruno@clisp.org>
23254
23255         Update doc for POSIX:2008.
23256         * doc/posix-functions/alphasort.texi: Renamed from
23257         doc/glibc-functions/alphasort.texi.
23258         * doc/posix-functions/dirfd.texi: Renamed from
23259         doc/glibc-functions/dirfd.texi.
23260         * doc/posix-functions/dprintf.texi: Renamed from
23261         doc/glibc-functions/dprintf.texi.
23262         * doc/posix-functions/duplocale.texi: Renamed from
23263         doc/glibc-functions/duplocale.texi.
23264         * doc/posix-functions/fexecve.texi: Renamed from
23265         doc/glibc-functions/fexecve.texi.
23266         * doc/posix-functions/fmemopen.texi: Renamed from
23267         doc/glibc-functions/fmemopen.texi.
23268         * doc/posix-functions/freelocale.texi: Renamed from
23269         doc/glibc-functions/freelocale.texi.
23270         * doc/posix-functions/getdate_err.texi: Renamed from
23271         doc/glibc-functions/getdate_err.texi.
23272         * doc/posix-functions/isalnum_l.texi: Renamed from
23273         doc/glibc-functions/isalnum_l.texi.
23274         * doc/posix-functions/isalpha_l.texi: Renamed from
23275         doc/glibc-functions/isalpha_l.texi.
23276         * doc/posix-functions/isblank_l.texi: Renamed from
23277         doc/glibc-functions/isblank_l.texi.
23278         * doc/posix-functions/iscntrl_l.texi: Renamed from
23279         doc/glibc-functions/iscntrl_l.texi.
23280         * doc/posix-functions/isdigit_l.texi: Renamed from
23281         doc/glibc-functions/isdigit_l.texi.
23282         * doc/posix-functions/isgraph_l.texi: Renamed from
23283         doc/glibc-functions/isgraph_l.texi.
23284         * doc/posix-functions/islower_l.texi: Renamed from
23285         doc/glibc-functions/islower_l.texi.
23286         * doc/posix-functions/isprint_l.texi: Renamed from
23287         doc/glibc-functions/isprint_l.texi.
23288         * doc/posix-functions/ispunct_l.texi: Renamed from
23289         doc/glibc-functions/ispunct_l.texi.
23290         * doc/posix-functions/isspace_l.texi: Renamed from
23291         doc/glibc-functions/isspace_l.texi.
23292         * doc/posix-functions/isupper_l.texi: Renamed from
23293         doc/glibc-functions/isupper_l.texi.
23294         * doc/posix-functions/iswalnum_l.texi: Renamed from
23295         doc/glibc-functions/iswalnum_l.texi.
23296         * doc/posix-functions/iswalpha_l.texi: Renamed from
23297         doc/glibc-functions/iswalpha_l.texi.
23298         * doc/posix-functions/iswblank_l.texi: Renamed from
23299         doc/glibc-functions/iswblank_l.texi.
23300         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23301         doc/glibc-functions/iswcntrl_l.texi.
23302         * doc/posix-functions/iswctype_l.texi: Renamed from
23303         doc/glibc-functions/iswctype_l.texi.
23304         * doc/posix-functions/iswdigit_l.texi: Renamed from
23305         doc/glibc-functions/iswdigit_l.texi.
23306         * doc/posix-functions/iswgraph_l.texi: Renamed from
23307         doc/glibc-functions/iswgraph_l.texi.
23308         * doc/posix-functions/iswlower_l.texi: Renamed from
23309         doc/glibc-functions/iswlower_l.texi.
23310         * doc/posix-functions/iswprint_l.texi: Renamed from
23311         doc/glibc-functions/iswprint_l.texi.
23312         * doc/posix-functions/iswpunct_l.texi: Renamed from
23313         doc/glibc-functions/iswpunct_l.texi.
23314         * doc/posix-functions/iswspace_l.texi: Renamed from
23315         doc/glibc-functions/iswspace_l.texi.
23316         * doc/posix-functions/iswupper_l.texi: Renamed from
23317         doc/glibc-functions/iswupper_l.texi.
23318         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23319         doc/glibc-functions/iswxdigit_l.texi.
23320         * doc/posix-functions/isxdigit_l.texi: Renamed from
23321         doc/glibc-functions/isxdigit_l.texi.
23322         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23323         doc/glibc-functions/mbsnrtowcs.texi.
23324         * doc/posix-functions/mkdtemp.texi: Renamed from
23325         doc/glibc-functions/mkdtemp.texi.
23326         * doc/posix-functions/newlocale.texi: Renamed from
23327         doc/glibc-functions/newlocale.texi.
23328         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23329         doc/glibc-functions/nl_langinfo_l.texi.
23330         * doc/posix-functions/open_memstream.texi: Renamed from
23331         doc/glibc-functions/open_memstream.texi.
23332         * doc/posix-functions/opterr.texi: Renamed from
23333         doc/glibc-functions/opterr.texi.
23334         * doc/posix-functions/optind.texi: Renamed from
23335         doc/glibc-functions/optind.texi.
23336         * doc/posix-functions/optopt.texi: Renamed from
23337         doc/glibc-functions/optopt.texi.
23338         * doc/posix-functions/psignal.texi: Renamed from
23339         doc/glibc-functions/psignal.texi.
23340         * doc/posix-functions/scandir.texi: Renamed from
23341         doc/glibc-functions/scandir.texi.
23342         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23343         doc/glibc-functions/sched_get_priority_min.texi.
23344         * doc/posix-functions/signgam.texi: Renamed from
23345         doc/glibc-functions/signgam.texi.
23346         * doc/posix-functions/stpcpy.texi: Renamed from
23347         doc/glibc-functions/stpcpy.texi.
23348         * doc/posix-functions/stpncpy.texi: Renamed from
23349         doc/glibc-functions/stpncpy.texi.
23350         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23351         doc/glibc-functions/strcasecmp_l.texi.
23352         * doc/posix-functions/strcoll_l.texi: Renamed from
23353         doc/glibc-functions/strcoll_l.texi.
23354         * doc/posix-functions/strfmon_l.texi: Renamed from
23355         doc/glibc-functions/strfmon_l.texi.
23356         * doc/posix-functions/strftime_l.texi: Renamed from
23357         doc/glibc-functions/strftime_l.texi.
23358         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23359         doc/glibc-functions/strncasecmp_l.texi.
23360         * doc/posix-functions/strndup.texi: Renamed from
23361         doc/glibc-functions/strndup.texi.
23362         * doc/posix-functions/strnlen.texi: Renamed from
23363         doc/glibc-functions/strnlen.texi.
23364         * doc/posix-functions/strsignal.texi: Renamed from
23365         doc/glibc-functions/strsignal.texi.
23366         * doc/posix-functions/strxfrm_l.texi: Renamed from
23367         doc/glibc-functions/strxfrm_l.texi.
23368         * doc/posix-functions/timer_gettime.texi: Renamed from
23369         doc/glibc-functions/timer_gettime.texi.
23370         * doc/posix-functions/tolower_l.texi: Renamed from
23371         doc/glibc-functions/tolower_l.texi.
23372         * doc/posix-functions/toupper_l.texi: Renamed from
23373         doc/glibc-functions/toupper_l.texi.
23374         * doc/posix-functions/towctrans_l.texi: Renamed from
23375         doc/glibc-functions/towctrans_l.texi.
23376         * doc/posix-functions/towlower_l.texi: Renamed from
23377         doc/glibc-functions/towlower_l.texi.
23378         * doc/posix-functions/towupper_l.texi: Renamed from
23379         doc/glibc-functions/towupper_l.texi.
23380         * doc/posix-functions/uselocale.texi: Renamed from
23381         doc/glibc-functions/uselocale.texi.
23382         * doc/posix-functions/vdprintf.texi: Renamed from
23383         doc/glibc-functions/vdprintf.texi.
23384         * doc/posix-functions/wcpcpy.texi:
23385         Renamed from doc/glibc-functions/wcpcpy.texi.
23386         * doc/posix-functions/wcpncpy.texi: Renamed from
23387         doc/glibc-functions/wcpncpy.texi.
23388         * doc/posix-functions/wcscasecmp.texi: Renamed from
23389         doc/glibc-functions/wcscasecmp.texi.
23390         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
23391         doc/glibc-functions/wcscasecmp_l.texi.
23392         * doc/posix-functions/wcscoll_l.texi: Renamed from
23393         doc/glibc-functions/wcscoll_l.texi.
23394         * doc/posix-functions/wcsdup.texi: Renamed from
23395         doc/glibc-functions/wcsdup.texi.
23396         * doc/posix-functions/wcsncasecmp.texi: Renamed from
23397         doc/glibc-functions/wcsncasecmp.texi.
23398         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
23399         doc/glibc-functions/wcsncasecmp_l.texi.
23400         * doc/posix-functions/wcsnlen.texi: Renamed from
23401         doc/glibc-functions/wcsnlen.texi.
23402         * doc/posix-functions/wcsnrtombs.texi: Renamed from
23403         doc/glibc-functions/wcsnrtombs.texi.
23404         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
23405         doc/glibc-functions/wcsxfrm_l.texi.
23406         * doc/posix-functions/wctrans_l.texi: Renamed from
23407         doc/glibc-functions/wctrans_l.texi.
23408         * doc/posix-functions/wctype_l.texi: Renamed from
23409         doc/glibc-functions/wctype_l.texi.
23410         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23411         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
23412         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
23413         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
23414         these subsections.
23415         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
23416         Remove sections.
23417
23418 2008-12-14  Bruno Haible  <bruno@clisp.org>
23419
23420         Update doc for POSIX:2008.
23421         * doc/posix-functions/*.texi: Update URL of POSIX specification.
23422
23423 2008-12-14  Bruno Haible  <bruno@clisp.org>
23424
23425         Update doc for POSIX:2008.
23426         * doc/pastposix-functions/bcmp.texi: Renamed from
23427         doc/posix-functions/bcmp.texi.
23428         * doc/pastposix-functions/bcopy.texi: Renamed from
23429         doc/posix-functions/bcopy.texi.
23430         * doc/pastposix-functions/bsd_signal.texi: Renamed from
23431         doc/posix-functions/bsd_signal.texi.
23432         * doc/pastposix-functions/bzero.texi: Renamed from
23433         doc/posix-functions/bzero.texi.
23434         * doc/pastposix-functions/ecvt.texi: Renamed from
23435         doc/posix-functions/ecvt.texi.
23436         * doc/pastposix-functions/fcvt.texi: Renamed from
23437         doc/posix-functions/fcvt.texi.
23438         * doc/pastposix-functions/ftime.texi: Renamed from
23439         doc/posix-functions/ftime.texi.
23440         * doc/pastposix-functions/gcvt.texi: Renamed from
23441         doc/posix-functions/gcvt.texi.
23442         * doc/pastposix-functions/getcontext.texi: Renamed from
23443         doc/posix-functions/getcontext.texi.
23444         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
23445         doc/posix-functions/gethostbyaddr.texi.
23446         * doc/pastposix-functions/gethostbyname.texi: Renamed from
23447         doc/posix-functions/gethostbyname.texi.
23448         * doc/pastposix-functions/getwd.texi: Renamed from
23449         doc/posix-functions/getwd.texi.
23450         * doc/pastposix-functions/h_errno.texi: Renamed from
23451         doc/posix-functions/h_errno.texi.
23452         * doc/pastposix-functions/index.texi: Renamed from
23453         doc/posix-functions/index.texi.
23454         * doc/pastposix-functions/makecontext.texi: Renamed from
23455         doc/posix-functions/makecontext.texi.
23456         * doc/pastposix-functions/mktemp.texi: Renamed from
23457         doc/posix-functions/mktemp.texi.
23458         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
23459         doc/posix-functions/pthread_attr_getstackaddr.texi.
23460         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
23461         doc/posix-functions/pthread_attr_setstackaddr.texi.
23462         * doc/pastposix-functions/rindex.texi: Renamed from
23463         doc/posix-functions/rindex.texi.
23464         * doc/pastposix-functions/scalb.texi: Renamed from
23465         doc/posix-functions/scalb.texi.
23466         * doc/pastposix-functions/setcontext.texi: Renamed from
23467         doc/posix-functions/setcontext.texi.
23468         * doc/pastposix-functions/swapcontext.texi: Renamed from
23469         doc/posix-functions/swapcontext.texi.
23470         * doc/pastposix-functions/ualarm.texi: Renamed from
23471         doc/posix-functions/ualarm.texi.
23472         * doc/pastposix-functions/usleep.texi: Renamed from
23473         doc/posix-functions/usleep.texi.
23474         * doc/pastposix-functions/vfork.texi: Renamed from
23475         doc/posix-functions/vfork.texi.
23476         * doc/pastposix-functions/wcswcs.texi: Renamed from
23477         doc/posix-functions/wcswcs.texi.
23478         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
23479         (Function Substitutes): Update.
23480
23481 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23482
23483         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
23484         m4/strerror.m4.
23485
23486 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23487             Bruno Haible  <bruno@clisp.org>
23488
23489         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
23490
23491 2008-12-13  Bruno Haible  <bruno@clisp.org>
23492
23493         * modules/strtoull (Depends-on): Remove unistd.
23494
23495 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23496
23497         * modules/strtoull (Depends-on): Add stdlib.
23498
23499 2008-12-11  Simon Josefsson  <simon@josefsson.org>
23500
23501         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
23502
23503 2008-12-10  Jim Meyering  <meyering@redhat.com>
23504
23505         gl_ASSERT: don't say assertions are disabled when they're not
23506         * m4/assert.m4 (gl_ASSERT): Do not make configure report
23507         "checking whether to enable assertions... no", when they are in
23508         fact enabled.  This is solely a bug in the output of configure.
23509         In spite of saying "no", NDEBUG was not defined in that case.
23510         Also, as noted by Eric Blake, leave assertions enabled upon
23511         --enable-assert=INVALID.
23512
23513 2008-12-10  Bruno Haible  <bruno@clisp.org>
23514
23515         Change MODULES.html to refer to POSIX:2008 where possible.
23516         * MODULES.html.sh (POSIX2008_URL): New variable.
23517         (posix_headers): Remove sys/timeb, ucontext.
23518         (posix2001_headers): New variable.
23519         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
23520         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
23521         index, makecontext, mktemp, pthread_attr_getstackaddr,
23522         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
23523         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
23524         (posix2001_functions): New variable.
23525         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
23526         otherwise.
23527
23528 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23529
23530         add missing include to parse-duration.c
23531         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
23532         * modules/parse-duration (Depends-on): Add xalloc.
23533
23534         fix sed script reading maint.mk
23535         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
23536         (syntax-check-rules): Use it.
23537
23538 2008-12-09  Bruno Haible  <bruno@clisp.org>
23539
23540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
23541         MacOS X 10.4/PowerPC.
23542         Reported by Simon Josefsson.
23543
23544 2008-12-08  Jim Meyering  <meyering@redhat.com>
23545
23546         work around mingw's lack of some S_IF definitions
23547         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
23548         Reported by Simon Josefsson.
23549
23550 2008-12-08  Bruno Haible  <bruno@clisp.org>
23551
23552         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
23553         applied to variables. Needed on MacOS X 10.4/PowerPC.
23554         Reported by Simon Josefsson.
23555
23556 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
23557         and Eric Blake  <ebb9@byu.net>
23558
23559         assert: honor --enable-assert
23560         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
23561         order to honor --enable-assert, rather than treating it as a
23562         synonym for --disable-assert.
23563
23564 2008-12-08  Jim Meyering  <meyering@redhat.com>
23565
23566         * lib/posixtm.c: Remove now-useless declaration of mktime.
23567
23568         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
23569
23570 2008-12-07  Bruno Haible  <bruno@clisp.org>
23571
23572         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
23573         test_once): Mark functions as static.
23574         * tests/test-tls.c (test_tls): Likewise.
23575
23576 2008-12-07  Bruno Haible  <bruno@clisp.org>
23577
23578         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
23579         iconv_register_autodetect.
23580
23581 2008-12-07  Jim Meyering  <meyering@redhat.com>
23582
23583         posixtm.c: avoid a warning
23584         * lib/posixtm.c (posixtime): Don't initialize tm0.
23585         It's no longer needed to placate gcc4's -Wuninitialized,
23586         and the attempt to placate would elicit a new warning.
23587
23588         unicodeio.c: mark unused parameters
23589         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23590         (fallback_failure_callback): Likewise.
23591
23592 2008-12-07  Bruno Haible  <bruno@clisp.org>
23593
23594         * gnulib-tool (func_create_testdir): When building the tests
23595         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
23596         Reported by Simon Josefsson.
23597
23598 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23599
23600         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
23601
23602 2008-12-06  Bruno Haible  <bruno@clisp.org>
23603
23604         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
23605         Suggested by Eric Blake.
23606
23607 2008-12-06  Bruno Haible  <bruno@clisp.org>
23608
23609         Fix a c-stack test failure on MacOS X.
23610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
23611         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
23612         handler for SIGBUS as well.
23613         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
23614         install a signal handler for SIGBUS as well.
23615         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
23616
23617 2008-12-06  Bruno Haible  <bruno@clisp.org>
23618
23619         Advocacy documentation.
23620         * doc/gnulib-intro.texi (Benefits): New section.
23621         * doc/gnulib.texi: Update.
23622
23623 2008-12-06  Bruno Haible  <bruno@clisp.org>
23624
23625         Document the 'manywarnings' module.
23626         * doc/manywarnings.texi: New file.
23627         * doc/gnulib.texi: Include it.
23628
23629 2008-12-05  Eric Blake  <ebb9@byu.net>
23630
23631         tests: silence some gcc warnings
23632         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
23633         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
23634         type mismatches.
23635
23636 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23637             Bruno Haible  <bruno@clisp.org>
23638
23639         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
23640
23641 2008-11-29  Jim Meyering  <meyering@redhat.com>
23642
23643         unicodeio.c: mark unused parameters
23644         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23645         (fallback_failure_callback): Likewise.
23646
23647         fts: fix a thinko
23648         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
23649         (set_stat_type): Return S_IF*-valued "type" directly.
23650         Prompted by James Youngman's spotting a related bug.
23651         Confirmed by further testing through find.
23652
23653         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
23654         * lib/fts.c (D_TYPE): Define.
23655         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
23656         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
23657         (s_ifmt_shift_bits): New function.
23658         (set_stat_type): New function.
23659         (fts_build): When not calling fts_stat, call set_stat_type
23660         to propagate dirent.d_type info to fts_read caller.
23661         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
23662         fts_statp->st_mode type information may be valid.
23663
23664 2008-11-28  Simon Josefsson  <simon@josefsson.org>
23665
23666         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
23667         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
23668         <sds@gnu.org>.
23669
23670 2008-11-20  Bruno Haible  <bruno@clisp.org>
23671
23672         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
23673         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
23674         INCLUDE_NEXT.
23675         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
23676         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
23677         * modules/math (Makefile.am): Substitute
23678         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
23679         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23680
23681 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
23682             Bruno Haible  <bruno@clisp.org>
23683
23684         * lib/stdint.in.h: Define all type macros so that their expansion is
23685         a single typedef'ed token. Fixes a compilation failure in Boost which
23686         does "using ::int8_t;".
23687
23688 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23689
23690         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
23691         gl_MANYWARN_ALL_GCC.
23692         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
23693         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
23694         * modules/manywarnings: New file.
23695         * MODULES.html.sh: Mention manywarnings module.
23696
23697 2008-11-18  Bruno Haible  <bruno@clisp.org>
23698
23699         * doc/gnulib-tool.texi (Unit tests): New section.
23700
23701 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23702
23703         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
23704         paths like 'lib/po/foo.po'.
23705
23706 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23707
23708         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
23709         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
23710
23711 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23712
23713         * m4/warnings.m4: Use CPPFLAGS to really check whether the
23714         parameter works.
23715
23716 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23717
23718         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
23719
23720 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23721
23722         * modules/parse-duration-tests: New file.
23723         * tests/test-parse-duration.sh: New file.
23724         * tests/test-parse-duration.c: New file.
23725
23726         New module 'parse-duration'.
23727         * lib/parse-duration.h: New file.
23728         * lib/parse-duration.c: New file.
23729         * modules/parse-duration: New file.
23730
23731 2008-11-17  Bruno Haible  <bruno@clisp.org>
23732
23733         * tests/test-select-out.sh: Comment out the first pipe test.
23734         Reported by Simon Josefsson.
23735
23736 2008-11-17  Bruno Haible  <bruno@clisp.org>
23737
23738         * modules/getaddrinfo (Depends-on): Add servent, hostent.
23739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
23740         gl_HOSTENT.
23741
23742 2008-11-17  Bruno Haible  <bruno@clisp.org>
23743
23744         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
23745         -lnetwork and -lnet. Needed for Haiku and BeOS.
23746
23747 2008-11-16  Bruno Haible  <bruno@clisp.org>
23748
23749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
23750
23751 2008-11-16  Bruno Haible  <bruno@clisp.org>
23752
23753         Avoid test failure on Haiku.
23754         * tests/test-fsync.c: Include <errno.h>.
23755         (main): Don't require that fsync (0) fails.
23756
23757 2008-11-15  Bruno Haible  <bruno@clisp.org>
23758
23759         New module 'hostent'.
23760         * modules/hostent: New file.
23761         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
23762
23763 2008-11-15  Bruno Haible  <bruno@clisp.org>
23764
23765         New module 'servent'.
23766         * modules/servent: New file.
23767         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
23768
23769 2008-11-15  Bruno Haible  <bruno@clisp.org>
23770
23771         Avoid generating same test program with two different rules.
23772         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
23773         test-frexp to test-frexp-nolibm.
23774         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
23775         test-frexpl to test-frexpl-nolibm.
23776
23777 2008-11-15  Bruno Haible  <bruno@clisp.org>
23778
23779         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
23780         $(FREXPL_LIBM).
23781
23782 2008-11-15  Bruno Haible  <bruno@clisp.org>
23783
23784         * lib/netdb.in.h: Activate the definitions also when the system's
23785         <netdb.h> has 'struct addrinfo'.
23786         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
23787         EAI_OVERFLOW or AI_NUMERICSERV.
23788         * doc/posix-headers/netdb.texi: Document the problem.
23789
23790 2008-11-15  Bruno Haible  <bruno@clisp.org>
23791
23792         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
23793
23794         Make the 'sched' module work on platforms where <sched.h> exists but
23795         is incomplete (such as Haiku).
23796         * lib/sched.in.h; Include the system's <sched.h> if it exists.
23797         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
23798         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
23799         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
23800         HAVE_STRUCT_SCHED_PARAM.
23801         * modules/sched (Depends-on): Add include_next.
23802         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
23803         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
23804         * doc/posix-headers/sched.texi: Document the issue.
23805
23806 2008-11-13  Jim Meyering  <meyering@redhat.com>
23807
23808         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
23809         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
23810         test would fail due to the difference in the Report bugs to ...
23811         line.  The expected address is empty, "<>", while the actual
23812         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
23813
23814 2008-11-12  Bruno Haible  <bruno@clisp.org>
23815
23816         lstat: don't compile lstat.c on systems lacking lstat
23817         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
23818         which don't have lstat; this is handled by lib/sys_stat.in.h already.
23819         Reported by Daniel P. Berrange via Jim Meyering.
23820
23821 2008-11-12  Jim Meyering  <meyering@redhat.com>
23822
23823         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
23824
23825 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23826
23827         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
23828         instead.
23829
23830 2008-11-12  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/unicodeio.c: Include unistr.h.
23833         (utf8_wctomb): Remove function.
23834         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
23835
23836 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23837
23838         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
23839         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
23840         <bruno@clisp.org>.
23841         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
23842
23843 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23844
23845         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
23846         * doc/gnulib.texi: Add section for warnings.
23847
23848 2008-11-11  Bruno Haible  <bruno@clisp.org>
23849
23850         * lib/sockets.h: Add a comment.
23851
23852 2008-11-11  Karl Berry  <karl@gnu.org>
23853
23854         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
23855
23856 2008-11-11  Eric Blake  <ebb9@byu.net>
23857
23858         fdl.texi: avoid git symlinks
23859         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
23860
23861 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23862
23863         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
23864
23865 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23866
23867         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
23868         (gl_WARN_ADD): Substitute $2 if literal.
23869
23870 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23871
23872         * m4/warning.m4: Remove.
23873
23874 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23875
23876         * m4/warnings.m4: Almost complete rewrite. :-)
23877
23878 2008-11-10  Simon Josefsson  <simon@josefsson.org>
23879
23880         * modules/warnings: New module.
23881         * m4/warnings.m4: New file.
23882         * MODULES.html.sh: Mention warnings module.
23883         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
23884         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23885
23886 2008-11-10  Eric Blake  <ebb9@byu.net>
23887
23888         fdl.texi: make a symlink to the latest version
23889         * doc/standards.texi: Revert today's earlier change.
23890         * doc/fdl-1.2.texi: Rename from old fdl.texi...
23891         * doc/fdl.texi: ...and replace this with a symlink to the newer
23892         fdl-1.3.texi.
23893
23894 2008-11-10  Bruno Haible  <bruno@clisp.org>
23895
23896         * tests/test-select-fd.c (main): Accept the result file name as fourth
23897         argument.
23898         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
23899         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
23900
23901 2008-11-10  Bruno Haible  <bruno@clisp.org>
23902
23903         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
23904         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
23905         as autoconf-substituted macros.
23906         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
23907         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
23908         gl_NETDB_H_DEFAULTS. Set these variables.
23909         * modules/netdb (Makefile.am): Substitute these variables.
23910
23911 2008-11-10  Eric Blake  <ebb9@byu.net>
23912
23913         standards.texi: include correct file for FDL 1.3
23914         * doc/standards.texi (GNU Free Documentation License): Change
23915         include file to pull in FDL 1.3, not 1.2.
23916
23917         fdl.texi: revert accidental change to license
23918         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23919
23920 2008-11-10  Bruno Haible  <bruno@clisp.org>
23921
23922         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23923         cross-compiling guesses also when the native compile gives no result.
23924
23925 2008-11-10  Bruno Haible  <bruno@clisp.org>
23926
23927         * lib/spawni.c (__spawni): Force variable into the stack.
23928
23929 2008-11-10  Bruno Haible  <bruno@clisp.org>
23930
23931         Add support for Haiku.
23932         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23933         glibc and BeOS, but also on Haiku.
23934         * lib/fpurge.c (fpurge): Likewise.
23935         * lib/freadable.c (freadable): Likewise.
23936         * lib/freadahead.c (freadahead): Likewise.
23937         * lib/freading.c (freading): Likewise.
23938         * lib/freadptr.c (freadptr): Likewise.
23939         * lib/freadseek.c (freadptrinc): Likewise.
23940         * lib/fseeko.c (rpl_fseeko): Likewise.
23941         * lib/fseterr.c (fseterr): Likewise.
23942         * lib/fwritable.c (fwritable): Likewise.
23943         * lib/fwriting.c (fwriting): Likewise.
23944         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23945
23946 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23947
23948         * lib/config.charset: Treat Haiku like BeOS.
23949
23950 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23951
23952         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23953         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
23954
23955 2008-11-08  Bruno Haible  <bruno@clisp.org>
23956
23957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
23958         AC_CACHE_CHECK.
23959
23960 2008-11-08  Bruno Haible  <bruno@clisp.org>
23961
23962         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
23963
23964 2008-11-08  Bruno Haible  <bruno@clisp.org>
23965
23966         * tests/test-select-fd.c: New file.
23967         * tests/test-select-in.sh: New file.
23968         * tests/test-select-out.sh: New file.
23969         * tests/test-select-stdin.c: New file.
23970         * modules/select-tests (Files): Add the new files.
23971         (Depends-on): Add gettimeofday.
23972         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
23973         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
23974         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
23975
23976 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
23977             Bruno Haible  <bruno@clisp.org>
23978
23979         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
23980
23981 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
23982
23983         * build-aux/pmccabe2html: Added support for C++ source files.
23984
23985 2008-11-05  Ben Pfaff  <blp@gnu.org>
23986
23987         Fix lib/close.c build on Windows.
23988         * modules/close (Files): Add lib/w32sock.h.
23989
23990 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
23991
23992         Accept Bison's NEWS format.
23993         * build-aux/announce-gen (print_news_deltas): Tweak
23994         $re_prefix.
23995
23996 2008-11-04  Bruno Haible  <bruno@clisp.org>
23997
23998         * modules/random_r (Maintainer): Add glibc.
23999
24000 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24001
24002         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24003         by karl@freefriends.org (Karl Berry).
24004         * doc/alloca.texi: Likewise.
24005         * doc/c-ctype.texi: Likewise.
24006         * doc/c-strcase.texi: Likewise.
24007         * doc/c-strcaseeq.texi: Likewise.
24008         * doc/c-strcasestr.texi: Likewise.
24009         * doc/c-strstr.texi: Likewise.
24010         * doc/c-strtod.texi: Likewise.
24011         * doc/c-strtold.texi: Likewise.
24012         * doc/ctime.texi: Likewise.
24013         * doc/error.texi: Likewise.
24014         * doc/fdl.texi: Likewise.
24015         * doc/gcd.texi: Likewise.
24016         * doc/getdate.texi: Likewise.
24017         * doc/gnulib-intro.texi: Likewise.
24018         * doc/gnulib-tool.texi: Likewise.
24019         * doc/gnulib.texi: Likewise.
24020         * doc/inet_ntoa.texi: Likewise.
24021         * doc/maintain.texi: Likewise.
24022         * doc/make-stds.texi: Likewise.
24023         * doc/quote.texi: Likewise.
24024         * doc/regexprops-generic.texi: Likewise.
24025         * doc/standards.texi: Likewise.
24026         * doc/verify.texi: Likewise.
24027         * doc/visibility.texi: Likewise.
24028         * doc/gnulib.texi (GNU Free Documentation License): Include
24029         fdl-1.3.texi instead of fdl.texi.
24030
24031 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24032
24033         * doc/fdl-1.3.texi: New file, from
24034         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24035         * modules/fdl-1.3: Add.
24036         * MODULES.html.sh: Add fdl-1.3.
24037
24038 2008-11-03  Bruno Haible  <bruno@clisp.org>
24039
24040         Make determination of absolute name of header file work with AIX xlc.
24041         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24042         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24043         preprocessing.
24044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24045         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24046
24047 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24048
24049         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24050         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24051         <ludo@gnu.org>.
24052
24053 2008-11-02  Bruno Haible  <bruno@clisp.org>
24054
24055         Mark 'strpbrk' obsolete.
24056         * modules/strpbrk (Status, Notice): New sections.
24057         * modules/strtok_r (Depends-on): Add strpbrk.
24058
24059 2008-11-02  Bruno Haible  <bruno@clisp.org>
24060
24061         Mark 'strdup' obsolete.
24062         * modules/strdup (Status, Notice): New sections.
24063         * modules/findprog (Depends-on): Add strdup.
24064         * modules/getaddrinfo (Depends-on): Likewise.
24065         * modules/localename (Depends-on): Likewise.
24066         * modules/relocatable-lib (Depends-on): Likewise.
24067         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24068         * modules/relocatable-prog (Depends-on): Likewise.
24069         * modules/trim (Depends-on): Likewise.
24070         * modules/unictype/gen-ctype (Depends-on): Likewise.
24071         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24072
24073 2008-11-02  Bruno Haible  <bruno@clisp.org>
24074
24075         Mark 'strcspn' obsolete.
24076         * modules/strcspn (Status, Notice): New sections.
24077
24078 2008-11-02  Bruno Haible  <bruno@clisp.org>
24079
24080         Mark 'rmdir' obsolete.
24081         * modules/rmdir (Status, Notice): New sections.
24082         * modules/clean-temp (Depends-on): Add rmdir.
24083         * modules/openat (Depends-on): Likewise.
24084
24085 2008-11-02  Bruno Haible  <bruno@clisp.org>
24086
24087         Mark 'raise' obsolete.
24088         * modules/raise (Status, Notice): New sections.
24089         (Include): Specify <signal.h>.
24090         * modules/stdio (Depends-on): Add raise.
24091         * modules/write (Depends-on): Likewise.
24092
24093 2008-11-02  Bruno Haible  <bruno@clisp.org>
24094
24095         Mark 'memset' obsolete.
24096         * modules/memset (Status, Notice): New sections.
24097
24098 2008-11-02  Bruno Haible  <bruno@clisp.org>
24099
24100         Mark 'memmove' obsolete.
24101         * modules/memmove (Status, Notice): New sections.
24102         * modules/argp (Depends-on): Add memmove.
24103         * modules/argz (Depends-on): Likewise.
24104         * modules/canonicalize (Depends-on): Likewise.
24105         * modules/canonicalize-lgpl (Depends-on): Likewise.
24106         * modules/fts (Depends-on): Likewise.
24107         * modules/getcwd (Depends-on): Likewise.
24108         * modules/human (Depends-on): Likewise.
24109         * modules/regex (Depends-on): Likewise.
24110         * modules/striconveh (Depends-on): Likewise.
24111         * modules/trim (Depends-on): Likewise.
24112         * modules/unistr/u8-move (Depends-on): Likewise.
24113         * modules/unistr/u16-move (Depends-on): Likewise.
24114         * modules/unistr/u32-move (Depends-on): Likewise.
24115
24116 2008-11-02  Bruno Haible  <bruno@clisp.org>
24117
24118         Mark 'memcpy' obsolete.
24119         * modules/memcpy (Status, Notice): New sections.
24120
24121 2008-11-02  Bruno Haible  <bruno@clisp.org>
24122
24123         Mark 'memcmp' obsolete.
24124         * modules/memcmp (Status, Notice): New sections.
24125         * modules/argmatch (Depends-on): Add memchr.
24126         * modules/backupfile (Depends-on): Likewise.
24127         * modules/c-strcasestr (Depends-on): Likewise.
24128         * modules/crypto/des (Depends-on): Likewise.
24129         * modules/csharpcomp (Depends-on): Likewise.
24130         * modules/fnmatch (Depends-on): Likewise.
24131         * modules/git-merge-changelog (Depends-on): Likewise.
24132         * modules/isnand (Depends-on): Likewise.
24133         * modules/isnand-nolibm (Depends-on): Likewise.
24134         * modules/isnanf (Depends-on): Likewise.
24135         * modules/isnanf-nolibm (Depends-on): Likewise.
24136         * modules/isnanl (Depends-on): Likewise.
24137         * modules/isnanl-nolibm (Depends-on): Likewise.
24138         * modules/mbchar (Depends-on): Likewise.
24139         * modules/memcoll (Depends-on): Likewise.
24140         * modules/quotearg (Depends-on): Likewise.
24141         * modules/regex (Depends-on): Likewise.
24142         * modules/relocatable-prog (Depends-on): Likewise.
24143         * modules/same (Depends-on): Likewise.
24144         * modules/signbit (Depends-on): Likewise.
24145         * modules/strcasestr-simple (Depends-on): Likewise.
24146         * modules/unictype/gen-ctype (Depends-on): Likewise.
24147         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24148         * modules/uniname/uniname (Depends-on): Likewise.
24149         * modules/unistr/u8-cmp (Depends-on): Likewise.
24150
24151 2008-11-02  Bruno Haible  <bruno@clisp.org>
24152
24153         Mark 'memchr' obsolete.
24154         * modules/memchr (Status, Notice): New sections.
24155         * modules/argp (Depends-on): Add memchr.
24156         * modules/base64 (Depends-on): Likewise.
24157         * modules/c-strcasestr (Depends-on): Likewise.
24158         * modules/chdir-long (Depends-on): Likewise.
24159         * modules/fnmatch (Depends-on): Likewise.
24160         * modules/getsubopt (Depends-on): Likewise.
24161         * modules/git-merge-changelog (Depends-on): Likewise.
24162         * modules/glob (Depends-on): Likewise.
24163         * modules/strcasestr-simple (Depends-on): Likewise.
24164         * modules/strnlen (Depends-on): Likewise.
24165
24166 2008-11-02  Bruno Haible  <bruno@clisp.org>
24167
24168         Mark 'atexit' obsolete.
24169         * modules/atexit (Status, Notice): New sections.
24170         * modules/chdir-long (Depends-on): Add atexit.
24171         * modules/wait-process (Depends-on): Likewise.
24172
24173 2008-11-02  Bruno Haible  <bruno@clisp.org>
24174
24175         * gnulib-tool: New option --with-obsolete.
24176         (func_usage): Document it.
24177         (func_modules_transitive_closure): Drop obsolete dependencies if
24178         incobsolete is not true.
24179         (func_import): Read and save the incobsolete variable to the cache.
24180
24181 2008-11-02  Bruno Haible  <bruno@clisp.org>
24182
24183         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24184         * gnulib-tool: New option --extract-status.
24185         (func_usage): Document it.
24186         (sed_extract_prog): Recognize it.
24187         (func_get_status): New function.
24188
24189 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24190
24191         * modules/sockets (License): Change from LGPL to LGPLv2+.
24192
24193 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24194
24195         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24196
24197 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24198
24199         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24200         Mention times and sys_times.
24201         * modules/sys_times, modules/sys_times-tests: New modules.
24202         * modules/times, modules/times-tests: Likewise
24203         * m4/sys_times_h.m4: New file.
24204         * lib/sys_times.in.h: Likewise
24205         * lib/times.c: Likewise.
24206         * tests/test-sys_times.c: Likewise.
24207         * tests/test-times.c: Likewise.
24208         * doc/posix-headers/sys_times.texi: Update.
24209         * doc/posix-functions/times.texi: Update.
24210
24211 2008-10-28  Jim Meyering  <meyering@redhat.com>
24212
24213         * modules/tempname (Depends-on): Add lstat.
24214
24215         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24216
24217 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24218
24219         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24220         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24221         using idiom used elsewhere in gnulib.
24222
24223 2008-10-27  Jim Meyering  <meyering@redhat.com>
24224
24225         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24226
24227 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24228
24229         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24230         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24231         programs.
24232         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24233
24234 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24235
24236         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24237
24238 2008-10-27  Bruno Haible  <bruno@clisp.org>
24239
24240         * tests/test-lstat.c: Include <stdio.h>.
24241
24242 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24243
24244         * modules/lstat-tests: New module.
24245         * tests/test-lstat.c: New file.
24246
24247 2008-10-26  Jim Meyering  <meyering@redhat.com>
24248
24249         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24250
24251 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24252             Bruno Haible  <bruno@clisp.org>
24253
24254         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24255         * modules/configmake (Include): Add a note that the include must come
24256         after all system headers.
24257         * lib/javaversion.c: Include configmake.h after all other includes.
24258
24259 2008-10-26  Bruno Haible  <bruno@clisp.org>
24260
24261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24262         HAVE_STRUCT_RANDOM_DATA to 1.
24263         (gl_STDLIB_H): Simplify.
24264
24265 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24266
24267         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24268         substitute HAVE_STRUCT_RANDOM_DATA.
24269         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24270         random_data.
24271         * modules/stdlib (Makefile.am): Substitute
24272         HAVE_STRUCT_RANDOM_DATA.
24273
24274 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24275
24276         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24277         * doc/gnulib-intro.texi (Copyright): Likewise.
24278
24279 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24280
24281         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24282         findings.
24283
24284 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24285             Bruno Haible  <bruno@clisp.org>
24286
24287         * lib/unistd.in.h: Include <winsock2.h>.
24288         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24289         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24290         Provide dummy declarations.
24291         (gethostname): Override.
24292         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24293         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24294         gl_PREREQ_SYS_H_WINSOCK2.
24295         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24296         * doc/posix-functions/gethostname.texi: More details.
24297
24298 2008-10-25  Bruno Haible  <bruno@clisp.org>
24299
24300         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24301         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24302         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24303
24304         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24305         here ...
24306         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24307         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24308         gl_UNISTD_H_DEFAULTS.
24309
24310 2008-10-25  Eric Blake  <ebb9@byu.net>
24311
24312         signbit: avoid spurious compiler failure
24313         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24314         declarations inside function.
24315
24316 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24317             Bruno Haible  <bruno@clisp.org>
24318
24319         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24320         * modules/random_r (Depends-on): Add stdint.
24321
24322 2008-10-24  Bruno Haible  <bruno@clisp.org>
24323
24324         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24325         Eggert.
24326         * modules/strerror (License): Likewise.
24327
24328 2008-10-24  Jim Meyering  <meyering@redhat.com>
24329
24330         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24331         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24332
24333 2008-10-24  Eric Blake  <ebb9@byu.net>
24334
24335         getgroups: fix compilation when getgroups is available
24336         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24337         but with <config.h> override of getgroups disabled.
24338
24339 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24340
24341         * doc/gnulib.texi (Header files): Add note about C++ problems.
24342         Explained by Bruno Haible <bruno@clisp.org>.
24343
24344 2008-10-23  Bruno Haible  <bruno@clisp.org>
24345
24346         Define a dummy SA_NODEFER macro on Interix.
24347         * lib/signal.in.h (SA_NODEFER): Define fallback.
24348         Reported by Aleksey Cheusov <cheusov@tut.by> via
24349         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24350
24351 2008-10-23  Bruno Haible  <bruno@clisp.org>
24352
24353         * modules/freadahead (License): Change to LGPLv2+.
24354         Suggested by Simon Josefsson.
24355
24356 2008-10-23  Jim Meyering  <meyering@redhat.com>
24357
24358         random_r: new module
24359         * modules/random_r: New file.
24360         * m4/random_r.m4: New file.
24361         * lib/random_r.c: New file, from glibc.
24362         * modules/random_r-tests: New file.
24363         * tests/test-random_r.c: New file.
24364         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
24365          Declare.
24366         (RAND_MAX): Define.
24367         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
24368         * modules/stdlib: Substitute them, too.
24369         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
24370         * doc/glibc-functions/initstate_r.texi: Mention the new module.
24371         * doc/glibc-functions/random_r.texi: Likewise.
24372         * doc/glibc-functions/setstate_r.texi: Likewise.
24373         * doc/glibc-functions/srandom_r.texi: Likewise.
24374         * config/srclist.txt: Mention it.
24375
24376 2008-10-23  David Lutterkort  <lutter@redhat.com>
24377
24378         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
24379         link requirement
24380
24381 2008-10-23  Jim Meyering  <meyering@redhat.com>
24382
24383         selinux-h: mark parameters of stub functions as intentionally unused
24384         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
24385         * lib/se-context.in.h: Likewise.
24386
24387 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24388
24389         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
24390
24391 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24392
24393         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
24394
24395 2008-10-22  Eric Blake  <ebb9@byu.net>
24396
24397         glthread/thread: avoid compiler warning
24398         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
24399         Add unreachable abort to silence compiler.
24400
24401 2008-10-22  Eric Blake  <ebb9@byu.net>
24402
24403         netdb: also supply struct addrinfo for cygwin 1.5.x
24404         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
24405         older cygwin.
24406         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
24407         cygwin.
24408         * doc/posix-headers/netdb.texi (netdb.h): Document this.
24409
24410 2008-10-22  Bruno Haible  <bruno@clisp.org>
24411
24412         * users.txt: Update entry about pspp.
24413
24414 2008-10-21  Bruno Haible  <bruno@clisp.org>
24415
24416         Simplification.
24417         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
24418         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
24419
24420         Simplification.
24421         * lib/ioctl.c (ioctl): Don't undefine.
24422         * lib/socket.c (socket): Don't undefine.
24423
24424         Remove unused module indicator macros.
24425         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
24426         GNULIB_$1 as a C macro.
24427
24428         * doc/posix-functions/close.texi: Undo last change.
24429         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
24430         Windows platforms.
24431
24432 2008-10-21  Bruno Haible  <bruno@clisp.org>
24433
24434         Add gethostname() declaration to <unistd.h>.
24435         * lib/unistd.in.h (gethostname): New declaration.
24436         * lib/gethostname.c: Include <unistd.h>.
24437         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
24438         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
24439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
24440         and HAVE_GETHOSTNAME.
24441         * modules/gethostname (Depends-on): Add unistd.
24442         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24443         (Include): Specify <unistd.h>.
24444         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
24445         HAVE_GETHOSTNAME.
24446         * tests/test-gethostname.c: Include <unistd.h> first.
24447
24448 2008-10-21  Bruno Haible  <bruno@clisp.org>
24449
24450         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
24451         * modules/select-tests (Depends-on): Likewise.
24452         Reported by Simon Josefsson.
24453
24454 2008-10-21  Simon Josefsson  <simon@josefsson.org>
24455
24456         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
24457         * lib/accept.c: New file, based on winsock.c.
24458         * lib/bind.c: New file, based on winsock.c.
24459         * lib/connect.c: New file, based on winsock.c.
24460         * lib/getpeername.c: New file, based on winsock.c.
24461         * lib/getsockname.c: New file, based on winsock.c.
24462         * lib/getsockopt.c: New file, based on winsock.c.
24463         * lib/ioctl.c: New file, based on winsock.c.
24464         * lib/listen.c: New file, based on winsock.c.
24465         * lib/recv.c: New file, based on winsock.c.
24466         * lib/recvfrom.c: New file, based on winsock.c.
24467         * lib/send.c: New file, based on winsock.c.
24468         * lib/sendto.c: New file, based on winsock.c.
24469         * lib/setsockopt.c: New file, based on winsock.c.
24470         * lib/shutdown.c: New file, based on winsock.c.
24471         * lib/socket.c: New file, based on winsock.c.
24472         * lib/w32sock.h: New file, based on winsock.c.
24473         * lib/winsock.c: Remove file.
24474         * modules/accept: Likewise.
24475         * modules/bind: Likewise.
24476         * modules/connect: Likewise.
24477         * modules/getpeername: Likewise.
24478         * modules/getsockname: Likewise.
24479         * modules/getsockopt: Likewise.
24480         * modules/ioctl: Likewise.
24481         * modules/listen: Likewise.
24482         * modules/recv: Likewise.
24483         * modules/recvfrom: Likewise.
24484         * modules/send: Likewise.
24485         * modules/sendto: Likewise.
24486         * modules/setsockopt: Likewise.
24487         * modules/shutdown: Likewise.
24488         * modules/socket: Use socket.c instead of winsock.c.
24489         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
24490         * doc/posix-functions/accept.texi: Doc fix.
24491         * doc/posix-functions/bind.texi: Doc fix.
24492         * doc/posix-functions/close.texi: Doc fix.
24493         * doc/posix-functions/connect.texi: Doc fix.
24494         * doc/posix-functions/getpeername.texi: Doc fix.
24495         * doc/posix-functions/getsockname.texi: Doc fix.
24496         * doc/posix-functions/getsockopt.texi: Doc fix.
24497         * doc/posix-functions/ioctl.texi: Doc fix.
24498         * doc/posix-functions/listen.texi: Doc fix.
24499         * doc/posix-functions/recv.texi: Doc fix.
24500         * doc/posix-functions/recvfrom.texi: Doc fix.
24501         * doc/posix-functions/send.texi: Doc fix.
24502         * doc/posix-functions/sendto.texi: Doc fix.
24503         * doc/posix-functions/setsockopt.texi: Doc fix.
24504         * doc/posix-functions/shutdown.texi: Doc fix.
24505         * doc/posix-functions/socket.texi: Doc fix.
24506
24507 2008-10-20  Bruno Haible  <bruno@clisp.org>
24508
24509         Take into account the role of SIGABRT_COMPAT on Windows 2008.
24510         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
24511         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
24512         as an alias for SIGABRT.
24513         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
24514         (sigaction): Map it to SIGABRT.
24515         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
24516
24517 2008-10-20  Bruno Haible  <bruno@clisp.org>
24518
24519         * lib/fts.c: Don't include lstat.h.
24520         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
24521
24522         Move the lstat() declaration to <sys/stat.h>.
24523         * lib/lstat.h: Remove file.
24524         * lib/sys_stat.in.h: Add special invocation convention.
24525         (lstat): New declaration.
24526         * lib/lstat.c (orig_lstat): New function.
24527         (rpl_lstat): Use orig_lstat instead of lstat.
24528         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
24529         AC_C_INLINE. Set REPLACE_LSTAT.
24530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
24531         and REPLACE_LSTAT.
24532         * modules/lstat (Files): Remove lib/lstat.h.
24533         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24534         (Include): Specify <sys/stat.h> instead of lstat.h.
24535         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
24536         REPLACE_LSTAT.
24537         * NEWS: Mention the change.
24538
24539 2008-10-20  Bruno Haible  <bruno@clisp.org>
24540
24541         * modules/posix_spawn-tests: New file.
24542         * tests/test-posix_spawn3.c: New file.
24543
24544 2008-10-20  Bruno Haible  <bruno@clisp.org>
24545
24546         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
24547         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24548         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
24549         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24550         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
24551
24552 2008-10-20  Bruno Haible  <bruno@clisp.org>
24553
24554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
24555         of posix_spawn on AIX 5.3.
24556
24557 2008-10-20  Bruno Haible  <bruno@clisp.org>
24558
24559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
24560
24561 2008-10-20  Bruno Haible  <bruno@clisp.org>
24562
24563         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
24564         of AC_LANG_PROGRAM.
24565
24566 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24567
24568         * lib/netdb.in.h: Don't define GNU specific constants until they
24569         are supported or needed.  Reported by Bruno Haible
24570         <bruno@clisp.org>.
24571
24572 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24573
24574         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
24575
24576 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24577
24578         * lib/getaddrinfo.h: Remove file.
24579         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
24580         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
24581         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
24582         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
24583         * modules/netdb: Substitute GNULIB_GETADDRINFO.
24584         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
24585         * tests/test-getaddrinfo.c: Likewise.
24586         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
24587         * NEWS: Mention change.
24588
24589 2008-10-19  Bruno Haible  <bruno@clisp.org>
24590
24591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
24592
24593 2008-10-19  Bruno Haible  <bruno@clisp.org>
24594
24595         * lib/wait-process.c: Include simply <sys/wait.h>.
24596         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
24597         WIFSTOPPED): Remove fallback definitions.
24598         * modules/wait-process (Depends-on): Add sys_wait.
24599
24600         New module 'sys_wait'.
24601         * modules/sys_wait: New file.
24602         * lib/sys_wait.in.h: New file, partially copied from
24603         lib/wait-process.c.
24604         * m4/sys_wait_h.m4: New file.
24605         * doc/posix-headers/sys_wait.texi: Mention the new module.
24606
24607 2008-10-19  Bruno Haible  <bruno@clisp.org>
24608
24609         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
24610
24611 2008-10-19  Bruno Haible  <bruno@clisp.org>
24612
24613         Assume that waitpid() fills an 'int' status, not a 'union wait'.
24614         * lib/wait-process.c (WAIT_T): Remove type.
24615         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
24616         (wait_subprocess): Update.
24617
24618 2008-10-19  Bruno Haible  <bruno@clisp.org>
24619
24620         New module 'atoll'.
24621         * modules/atoll: New file.
24622         * lib/stdlib.in.h (atoll): New declaration.
24623         * lib/atoll.c: New file, from glibc with modifications.
24624         * m4/atoll.m4: New file.
24625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
24626         HAVE_ATOLL.
24627         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
24628         * doc/posix-functions/atoll.texi: Mention the new module.
24629
24630 2008-10-19  Bruno Haible  <bruno@clisp.org>
24631
24632         Add strtoull() declaration to <stdlib.h>.
24633         * lib/stdlib.in.h (strtoull): New declaration.
24634         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24635         Set HAVE_STRTOULL.
24636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
24637         HAVE_STRTOULL.
24638         * modules/strtoull (Depends-on): Add stdlib.
24639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24640         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
24641         HAVE_STRTOULL.
24642
24643 2008-10-19  Bruno Haible  <bruno@clisp.org>
24644
24645         Add strtoll() declaration to <stdlib.h>.
24646         * lib/stdlib.in.h (strtoll): New declaration.
24647         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24648         Set HAVE_STRTOLL.
24649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
24650         HAVE_STRTOLL.
24651         * modules/strtoll (Depends-on): Add stdlib.
24652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24653         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
24654
24655 2008-10-19  Bruno Haible  <bruno@clisp.org>
24656
24657         * modules/bcopy (Depends-on): Add strings.
24658         (Include): Specify <strings.h>.
24659
24660 2008-10-19  Bruno Haible  <bruno@clisp.org>
24661
24662         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
24663
24664 2008-10-19  Bruno Haible  <bruno@clisp.org>
24665
24666         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
24667         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
24668         mingw.
24669
24670 2008-10-19  Bruno Haible  <bruno@clisp.org>
24671
24672         * lib/atanl.c: Don't include isnanl.h.
24673         * lib/cosl.c: Likewise.
24674         * lib/ldexpl.c: Likewise.
24675         * lib/logl.c: Likewise.
24676         * lib/sinl.c: Likewise.
24677         * lib/sqrtl.c: Likewise.
24678         * lib/tanl.c: Likewise.
24679
24680         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
24681         * lib/isnanf.h: Remove file.
24682         * lib/isnand.h: Remove file.
24683         * lib/isnanl.h: Remove file.
24684         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
24685         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
24686         macros.
24687         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
24688         HAVE_ISNANF, don't define it as a C macro.
24689         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
24690         HAVE_ISNAND, don't define it as a C macro.
24691         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
24692         HAVE_ISNANL, don't define it as a C macro.
24693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
24694         HAVE_ISNAN[FDL].
24695         * modules/isnanf (Files): Remove lib/isnanf.h.
24696         (Depends-on): Add math.
24697         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24698         (Include): Specify <math.h> instead of isnanf.h.
24699         * modules/isnand (Files): Remove lib/isnand.h.
24700         (Depends-on): Add math.
24701         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24702         (Include): Specify <math.h> instead of isnand.h.
24703         * modules/isnanl (Files): Remove lib/isnanl.h.
24704         (Depends-on): Add math.
24705         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24706         (Include): Specify <math.h> instead of isnanl.h.
24707         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
24708         HAVE_ISNAN[FDL].
24709         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
24710         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
24711         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
24712         * NEWS: Mention the change.
24713
24714 2008-10-18  Bruno Haible  <bruno@clisp.org>
24715
24716         Add getusershell(), setusershell(), endusershell() declarations to
24717         <unistd.h>.
24718         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
24719         declarations.
24720         * lib/getusershell.c: Include unistd.h.
24721         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
24722         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24723         HAVE_GETUSERSHELL.
24724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
24725         and HAVE_GETUSERSHELL.
24726         * modules/getusershell (Depends-on): Add unistd, extensions.
24727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24728         (Include): Specify <unistd.h>.
24729         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
24730         HAVE_GETUSERSHELL.
24731
24732 2008-10-18  Bruno Haible  <bruno@clisp.org>
24733
24734         Add a getloadavg() declaration to <stdlib.h>.
24735         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
24736         getloadavg declaration.
24737         (getloadavg): New declaration.
24738         * lib/getloadavg.c: Include <stdlib.h> first.
24739         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
24740         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
24741         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
24742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
24743         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24744         * modules/getloadavg (Depends-on): Add stdlib, extensions.
24745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24746         (Include): Specify <stdlib.h>.
24747         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
24748         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24749
24750 2008-10-18  Bruno Haible  <bruno@clisp.org>
24751
24752         * lib/dirchownmod.c: Don't include lchmod.h.
24753
24754         Move the lchmod() declaration to <sys/stat.h>.
24755         * lib/lchmod.h: Remove file.
24756         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
24757         (lchmod): New declaration, moved here from lib/lchown.h.
24758         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
24759         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
24760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
24761         and HAVE_LCHMOD.
24762         * modules/lchmod (Files): Remove lib/lchmod.h.
24763         (Depends-on): Add sys_stat, extensions.
24764         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24765         (Include): Specify <sys/stat.h> instead of lchmod.h.
24766         * modules/sys_stat (Depends-on): Add link-warning.
24767         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
24768         definition of GL_LINK_WARNING.
24769         * NEWS: Mention the change.
24770
24771 2008-10-18  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/fchdir.c: Don't include dirfd.h.
24774         * lib/fts.c: Likewise.
24775         * lib/getcwd.c: Likewise.
24776         * lib/glob.c: Likewise.
24777
24778         Move the dirfd() declaration to <dirent.h>.
24779         * lib/dirfd.h: Remove file.
24780         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
24781         (dirfd): New declaration.
24782         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
24783         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
24784         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
24785         HAVE_DECL_DIRFD.
24786         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
24787         HAVE_DECL_DIRFD.
24788         * modules/dirfd (Files): Remove lib/dirfd.h.
24789         (Depends-on): Add dirent, extensions.
24790         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
24791         (Include): Specify <dirent.h> instead of dirfd.h.
24792         * modules/dirent (Depends-on): Add link-warning.
24793         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
24794         definition of GL_LINK_WARNING.
24795         * NEWS: Mention the change.
24796
24797 2008-10-18  Bruno Haible  <bruno@clisp.org>
24798
24799         Move the euidaccess() declaration to <unistd.h>.
24800         * lib/euidaccess.h: Remove file.
24801         * lib/unistd.in.h (euidaccess): New declaration.
24802         * lib/euidaccess.c: Don't include euidaccess.h.
24803         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
24804         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
24805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
24806         and HAVE_EUIDACCESS.
24807         * modules/euidaccess (Files): Remove lib/euidaccess.h.
24808         (Depends-on): Add unistd.
24809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24810         (Include): Specify <unistd.h> instead of euidaccess.h.
24811         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
24812         HAVE_EUIDACCESS.
24813         * NEWS: Mention the change.
24814
24815 2008-10-18  Bruno Haible  <bruno@clisp.org>
24816
24817         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
24818
24819         Move the getdomainname() declaration to <unistd.h>.
24820         * lib/getdomainname.h: Remove file.
24821         * lib/unistd.in.h (getdomainname): New declaration.
24822         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
24823         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24824         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24825         HAVE_GETDOMAINNAME.
24826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24827         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
24828         * modules/getdomainname (Files): Remove lib/getdomainname.h.
24829         (Depends-on): Add unistd, extensions.
24830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24831         (Includes): Specify <unistd.h> instead of getdomainname.h.
24832         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
24833         HAVE_GETDOMAINNAME.
24834         * NEWS: Mention the change.
24835
24836 2008-10-18  Bruno Haible  <bruno@clisp.org>
24837
24838         * modules/dirent: New file.
24839         * m4/dirent_h.m4: New file.
24840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
24841         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
24842         * modules/fchdir (Files): Remove lib/dirent.in.h.
24843         (Depends-on): Add dirent.
24844         (Makefile.am): Move rules to modules/dirent.
24845         * doc/posix-headers/dirent.texi: Mention the new module.
24846
24847 2008-10-18  Bruno Haible  <bruno@clisp.org>
24848
24849         Avoid -Wunused-parameter warnings in public gnulib header files.
24850         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
24851         macro.
24852         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
24853
24854 2008-10-18  Bruno Haible  <bruno@clisp.org>
24855
24856         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
24857         * doc/glibc-functions/error.texi: Mention the module 'error'.
24858         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
24859         * doc/glibc-functions/getdomainname.texi: Mention the module
24860         'getdomainname'.
24861         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
24862         * doc/glibc-functions/getpagesize.texi: Mention the module
24863         'getpagesize'.
24864         * doc/glibc-functions/getusershell.texi: Mention the module
24865         'getusershell'.
24866         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
24867         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
24868         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
24869         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
24870         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
24871         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
24872         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
24873         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
24874         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
24875         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
24876         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
24877         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
24878         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
24879         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
24880
24881 2008-10-17  Bruno Haible  <bruno@clisp.org>
24882
24883         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
24884         HP-UX and IRIX, use -0.0L.
24885         * tests/test-ceill.c (minus_zero): Likewise.
24886         * tests/test-floorl.c (minus_zero): Likewise.
24887         * tests/test-frexpl.c (minus_zero): Likewise.
24888         * tests/test-isnan.c (minus_zerol): Likewise.
24889         * tests/test-isnanl.h (minus_zero): Likewise.
24890         * tests/test-ldexpl.c (minus_zero): Likewise.
24891         * tests/test-roundl.c (minus_zero): Likewise.
24892         * tests/test-signbit.c (minus_zerol): Likewise.
24893         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24894         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24895         * tests/test-truncl.c (minus_zero): Likewise.
24896         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24897         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24898         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
24899         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24900
24901 2008-10-17  Bruno Haible  <bruno@clisp.org>
24902
24903         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
24904         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
24905         that it gets activated only for gcc >= 3.0.
24906         * lib/dirent.in.h: Likewise.
24907         * lib/errno.in.h: Likewise.
24908         * lib/fcntl.in.h: Likewise.
24909         * lib/float.in.h: Likewise.
24910         * lib/iconv.in.h: Likewise.
24911         * lib/inttypes.in.h: Likewise.
24912         * lib/locale.in.h: Likewise.
24913         * lib/math.in.h: Likewise.
24914         * lib/netdb.in.h: Likewise.
24915         * lib/netinet_in.in.h: Likewise.
24916         * lib/search.in.h: Likewise.
24917         * lib/signal.in.h: Likewise.
24918         * lib/spawn.in.h: Likewise.
24919         * lib/stdarg.in.h: Likewise.
24920         * lib/stdint.in.h: Likewise.
24921         * lib/stdio.in.h: Likewise.
24922         * lib/stdlib.in.h: Likewise.
24923         * lib/string.in.h: Likewise.
24924         * lib/strings.in.h: Likewise.
24925         * lib/sys_file.in.h: Likewise.
24926         * lib/sys_ioctl.in.h: Likewise.
24927         * lib/sys_select.in.h: Likewise.
24928         * lib/sys_socket.in.h: Likewise.
24929         * lib/sys_stat.in.h: Likewise.
24930         * lib/sys_time.in.h: Likewise.
24931         * lib/sysexits.in.h: Likewise.
24932         * lib/time.in.h: Likewise.
24933         * lib/unistd.in.h: Likewise.
24934         * lib/wchar.in.h: Likewise.
24935         * lib/wctype.in.h: Likewise.
24936         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24937
24938 2008-10-17  Jim Meyering  <meyering@redhat.com>
24939
24940         ignore-value: don't depend on inline module
24941         * modules/ignore-value (Depends-on): Remove 'inline'.
24942         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24943         Suggestion from Bruno Haible.
24944
24945 2008-10-17  Bruno Haible  <bruno@clisp.org>
24946
24947         New implementation of condition variables for Win32.
24948         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24949         (gl_linked_waitqueue_t): New type.
24950         (gl_cond_t): Use it.
24951         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24952         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24953         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
24954         (glthread_cond_init_func, glthread_cond_wait_func,
24955         glthread_cond_timedwait_func, glthread_cond_signal_func,
24956         glthread_cond_broadcast_func, glthread_cond_destroy_func):
24957         Reimplemented on the basis of gl_linked_waitqueue_t.
24958         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
24959         gl_waitqueue_t.
24960         (gl_rwlock_t): Update.
24961         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
24962
24963 2008-10-17  Simon Josefsson  <simon@josefsson.org>
24964
24965         * modules/recvfrom (Depends-on): Add dependency on getpeername.
24966         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24967
24968 2008-10-17  Jim Meyering  <meyering@redhat.com>
24969
24970         ignore-value: new module
24971         * modules/ignore-value: New file.
24972         * lib/ignore-value.h: New file.
24973         * MODULES.html.sh (Compiler warning management): New section,
24974         just for this module.  More to come.
24975
24976 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24977
24978         open-safer.c: avoid 'signed and unsigned in conditional...' warning
24979         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
24980         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
24981
24982 2008-10-16  Jim Meyering  <meyering@redhat.com>
24983
24984         openat-die.c: avoid 'no previous prototype' warning
24985         * lib/openat-die.c: Include "openat.h".
24986         Reported by Reuben Thomas <rrt@sc3d.org>.
24987
24988 2008-10-16  Simon Josefsson  <simon@josefsson.org>
24989
24990         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
24991         * lib/netdb.in.h: Fix typo.
24992         Reported by Bruno Haible  <bruno@clisp.org>
24993
24994         * lib/netdb.in.h: Include sys/socket.h for platforms without
24995         netdb.h, to get structures like hostent on MinGW.
24996         * modules/netdb (Depends-on): Add sys_socket.
24997
24998 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24999
25000         * modules/netdb, modules/netdb-tests: New file.
25001         * m4/netdb_h.m4: New file.
25002         * lib/netdb.in.h: Add, currently just an empty file pending
25003         definitions.
25004         * tests/test-netdb.c: New file.
25005         * doc/posix-headers/netdb.texi: Mention that we replace it if
25006         needed.
25007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25008         netdb.
25009
25010 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25011
25012         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25013         with code.
25014
25015 2008-10-13  Bruno Haible  <bruno@clisp.org>
25016
25017         * lib/glthread/cond.c (glthread_cond_wait_func,
25018         glthread_cond_timedwait_func): Add a comment.
25019
25020 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25021
25022         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25023         * tests/test-select.c: Likewise,
25024
25025 2008-10-13  Bruno Haible  <bruno@clisp.org>
25026
25027         * lib/glthread/cond.c (glthread_cond_wait_func,
25028         glthread_cond_timedwait_func): Fix variable name.
25029         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25030
25031 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25032
25033         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25035         struct sockaddr.sa_len.
25036         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25037
25038 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25039
25040         * build-aux/pmccabe2html: Add css and css_url parameters.
25041
25042 2008-10-12  Bruno Haible  <bruno@clisp.org>
25043
25044         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25045         calling aclx_get.
25046         Reported by Rainer Tammer <tammer@tammer.net>.
25047
25048 2008-10-12  Bruno Haible  <bruno@clisp.org>
25049
25050         Use msvcrt aware primitives for creation/termination of Win32 threads.
25051         * lib/glthread/thread.c: Include <process.h>.
25052         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25053         (wrapper_func): Update signature.
25054         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25055
25056 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25057             Bruno Haible  <bruno@clisp.org>
25058
25059         Provide a Win32 implementation of the 'cond' module.
25060         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25061         * lib/glthread/cond.c (glthread_cond_init_func,
25062         glthread_cond_wait_func, glthread_cond_timedwait_func,
25063         glthread_cond_signal_func, glthread_cond_broadcast_func,
25064         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25065         * modules/cond (Dependencies): Add gettimeofday.
25066
25067 2008-10-11  Bruno Haible  <bruno@clisp.org>
25068
25069         Make sleep work on older versions of mingw.
25070         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25071         only whether it exists.
25072         * doc/posix-functions/sleep.texi: Mention the problem with older
25073         versions of mingw.
25074
25075 2008-10-11  Bruno Haible  <bruno@clisp.org>
25076
25077         New module 'shutdown'.
25078         * modules/shutdown: New file.
25079         * lib/sys_socket.in.h (shutdown): New declaration.
25080         * lib/winsock.c (shutdown): New function.
25081         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25082         GNULIB_SHUTDOWN.
25083         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25084         * doc/posix-functions/shutdown.texi: Document the new module.
25085
25086 2008-10-11  Jim Meyering  <meyering@redhat.com>
25087
25088         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25089
25090 2008-10-11  Bruno Haible  <bruno@clisp.org>
25091
25092         New module 'fclose'.
25093         * modules/fclose: New file.
25094         * lib/stdio.in.h (fclose): New declaration.
25095         * lib/fclose.c: New file.
25096         * m4/fclose.m4: New file.
25097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25098         REPLACE_FCLOSE.
25099         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25100         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25101         REPLACE_FCLOSE.
25102         * modules/close (Depends-on): fclose.
25103         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25104
25105 2008-10-11  Bruno Haible  <bruno@clisp.org>
25106
25107         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25108         set errno and don't call _close.
25109
25110 2008-10-10  Bruno Haible  <bruno@clisp.org>
25111
25112         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25113         ACL, not afterwards. Fixes test failure on Cygwin.
25114
25115 2008-10-09  Ben Pfaff  <blp@gnu.org>
25116
25117         * build-aux/announce-gen: Fix gnulib version related part of usage
25118         message.  Die with a useful error message if no tarballs are
25119         found.
25120
25121 2008-10-10  Jim Meyering  <meyering@redhat.com>
25122
25123         bootstrap: use git's --depth=N option only if it's supported
25124         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25125         recognize the --depth option.  Reported by Pádraig Brady.
25126
25127 2008-10-09  Bruno Haible  <bruno@clisp.org>
25128
25129         New module 'ioctl'.
25130         * modules/ioctl: New file.
25131         * lib/sys_socket.in.h (ioctl): Remove declaration.
25132         * lib/winsock.c: Include <sys/ioctl.h>.
25133         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25134         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25135         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25136         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25137         * doc/posix-functions/ioctl.texi: Mention the new module.
25138
25139 2008-10-09  Bruno Haible  <bruno@clisp.org>
25140
25141         New module 'sys_ioctl'.
25142         * lib/sys_ioctl.in.h: New file.
25143         * m4/sys_ioctl_h.m4: New file.
25144         * modules/sys_ioctl: New file.
25145         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25146
25147 2008-10-09  Bruno Haible  <bruno@clisp.org>
25148
25149         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25150         * lib/winsock.c: Include <stdarg.h>.
25151         (rpl_ioctl): Change to second argument 'int' and then varargs.
25152
25153 2008-10-09  Bruno Haible  <bruno@clisp.org>
25154
25155         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25156         when the sys_socket module is present and the system has <winsock2.h>.
25157
25158 2008-10-09  Bruno Haible  <bruno@clisp.org>
25159
25160         * doc/posix-functions/close.texi: Mention module 'close' instead of
25161         module 'sys_socket'.
25162
25163 2008-10-09  Bruno Haible  <bruno@clisp.org>
25164
25165         * doc/glibc-headers/sys_ioctl.texi: New file.
25166         * doc/gnulib.texi: Include it.
25167
25168 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25169             Bruno Haible  <bruno@clisp.org>
25170
25171         Combine the two replacements of 'close'.
25172         * lib/sys_socket.in.h (close): Define to a reminder to include
25173         <unistd.h>.
25174         (_gl_close_fd_maybe_socket): New declaration.
25175         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25176         * lib/winsock.c (close): Remove undefinition.
25177         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25178         needed for the gnulib module 'close'.
25179         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25180         define to an error symbol or to a warning, if suitable.
25181         * lib/close.c: Include <sys/socket.h>.
25182         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25183         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25184         UNISTD_H_HAVE_WINSOCK2_H.
25185         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25187         UNISTD_H_HAVE_WINSOCK2_H.
25188         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25189         (configure.ac): Set a module indicator.
25190         (Makefile.am): Substitute GNULIB_CLOSE.
25191         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25192         * modules/poll-tests (Depends-on): Add close.
25193         * modules/select-tests (Depends-on): Likewise.
25194
25195 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25196             Bruno Haible  <bruno@clisp.org>
25197
25198         New module 'close'.
25199         * modules/close: New file.
25200         * lib/unistd.in.h (close): Move declaration out of the
25201         FCHDIR_REPLACEMENT scope.
25202         (_gl_unregister_fd): New declaration.
25203         * lib/close.c: New file.
25204         * lib/fchdir.c (rpl_close): Remove function.
25205         * m4/close.m4: New file.
25206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25207         close.
25208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25209         REPLACE_CLOSE.
25210         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25211         REPLACE_CLOSE.
25212         * modules/fchdir (Depends-on): Add close.
25213
25214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25215             Bruno Haible  <bruno@clisp.org>
25216
25217         * lib/fcntl.in.h (open): Simplify conditionals.
25218         (_gl_register_fd): New declaration.
25219         * lib/fchdir.c (rpl_open): Remove function.
25220         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25221         also.
25222         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25224         open.
25225
25226 2008-10-09  Jim Meyering  <meyering@redhat.com>
25227
25228         GNUmakefile: use the more name-space-friendly "_version"
25229         * top/GNUmakefile (_dummy): Update.
25230         (_version): Rename from "version".
25231
25232 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25233             Bruno Haible  <bruno@clisp.org>
25234
25235         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25236         rpl_close.
25237         (_gl_register_fd): New function, extracted from rpl_open.
25238         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25239         (rpl_open, rpl_opendir): Use _gl_register_fd.
25240
25241 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25242
25243         Fix organization of 'open' replacement.
25244         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25245         (gl_FUNC_OPEN): Use it.
25246         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25247
25248 2008-10-08  Bruno Haible  <bruno@clisp.org>
25249
25250         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25251
25252 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25253
25254         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25255         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25256         listen).
25257
25258 2008-10-08  Eric Blake  <ebb9@byu.net>
25259
25260         GNUmakefile: add 'make version' target
25261         * top/GNUmakefile (_curr-ver): Split version update rules...
25262         (version): ...into a target.
25263
25264 2008-10-07  Bruno Haible  <bruno@clisp.org>
25265
25266         Use a more portable replacement expression for -0.0L.
25267         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25268         instead of -0.0L. Fix m4 quotation.
25269
25270         * tests/test-signbit.c: Include <float.h>.
25271         (minus_zero): New variable.
25272         (test_signbitl): Use minus_zero instead of -zero.
25273         * modules/signbit-tests (Depends-on): Add float.
25274
25275         * tests/test-ceill.c: Include <float.h>.
25276         (zero): Remove variable.
25277         (minus_zero): New variable.
25278         (main): Use minus_zero instead of -zero.
25279         * modules/ceill-tests (Depends-on): Add float.
25280
25281         * tests/test-floorl.c: Include <float.h>.
25282         (zero): Remove variable.
25283         (minus_zero): New variable.
25284         (main): Use minus_zero instead of -zero.
25285         * modules/floorl-tests (Depends-on): Add float.
25286
25287         * tests/test-roundl.c: Include <float.h>.
25288         (zero): Remove variable.
25289         (minus_zero): New variable.
25290         (main): Use minus_zero instead of -zero.
25291         * modules/roundl-tests (Depends-on): Add float.
25292
25293         * tests/test-truncl.c: Include <float.h>.
25294         (zero): Remove variable.
25295         (minus_zero): New variable.
25296         (main): Use minus_zero instead of -zero.
25297         * modules/truncl-tests (Depends-on): Add float.
25298
25299         * tests/test-frexpl.c (zero): Remove variable.
25300         (minus_zero): New variable.
25301         (main): Use minus_zero instead of -zero.
25302         * modules/frexpl-tests (Depends-on): Add float.
25303
25304         * tests/test-isnan.c (zerol): Remove variable.
25305         (minus_zerol): New variable.
25306         (test_long_double): Use minus_zerol instead of -zerol.
25307         * modules/isnan-tests (Depends-on): Add float.
25308
25309         * tests/test-isnanl.h (zero): Remove variable.
25310         (minus_zero): New variable.
25311         (main): Use minus_zero instead of -zero.
25312         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25313         * modules/isnanl-tests (Depends-on): Add float.
25314
25315         * tests/test-ldexpl.c (zero): Remove variable.
25316         (minus_zero): New variable.
25317         (main): Use minus_zero instead of -zero.
25318         * modules/ldexpl-tests (Depends-on): Add float.
25319
25320         * tests/test-snprintf-posix.h (zerol): Remove variable.
25321         (minus_zerol): New variable.
25322         (test_function): Use minus_zerol instead of -zerol.
25323         * modules/snprintf-posix-tests (Depends-on): Add float.
25324         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25325
25326         * tests/test-sprintf-posix.h (zerol): Remove variable.
25327         (minus_zerol): New variable.
25328         (test_function): Use minus_zerol instead of -zerol.
25329         * modules/sprintf-posix-tests (Depends-on): Add float.
25330         * modules/vsprintf-posix-tests (Depends-on): Add float.
25331
25332         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25333         (minus_zerol): New variable.
25334         (test_function): Use minus_zerol instead of -zerol.
25335         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25336
25337         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25338         (minus_zerol): New variable.
25339         (test_function): Use minus_zerol instead of -zerol.
25340         * modules/vasprintf-posix-tests (Depends-on): Add float.
25341
25342 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25343
25344         * MODULES.html.sh (Support for building documentation): Mention
25345         pmccabe2html.  Sort entries.
25346
25347         Add pmccabe2html module, from gnupdf.
25348         * build-aux/pmccabe.css: New file.
25349         * build-aux/pmccabe2html: New file.
25350         * m4/pmccabe2html.m4: New file.
25351         * modules/pmccabe2html: New file.
25352
25353 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25354
25355         flock: new module
25356         * MODULES.html.sh: Add to list of modules.
25357         * lib/flock.c: flock implementation for Windows and Unix systems
25358         which have fcntl.
25359         * doc/glibc-functions/flock.texi: Update documentation.
25360         * lib/sys_file.in.h: <sys/file.h> header file.
25361         * m4/flock.m4: M4 macros.
25362         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25363         * modules/flock: flock module.
25364         * modules/flock-tests: flock tests module.
25365         * modules/sys_file: sys/file.h module.
25366         * tests/test-flock.c: test suite for flock.
25367
25368 2008-10-06  Jim Meyering  <meyering@redhat.com>
25369
25370         bootstrap: check for LT_INIT more portably still ;-)
25371         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
25372         Spotted by Bruno Haible.
25373
25374 2008-10-06  Eric Blake  <ebb9@byu.net>
25375
25376         test-signbit: avoid tripping Irix cc bug on -0.0L
25377         * tests/test-signbit.c (minus_zerol): Delete, and replace with
25378         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
25379         entire testsuite consistent and avoids an Irix 6.2 bug.
25380
25381 2008-10-05  Bruno Haible  <bruno@clisp.org>
25382             Jim Meyering  <jim@meyering.net>
25383
25384         Add an option for ignoring EPIPE during close_stdout.
25385         * lib/closeout.h: Include <stdbool.h>.
25386         (close_stdout_set_ignore_EPIPE): New declaration.
25387         * lib/closeout.c: Include <stdbool.h>.
25388         (ignore_EPIPE): New variable.
25389         (close_stdout_set_ignore_EPIPE): New function.
25390         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
25391         * lib/close-stream.c (close_stream): Mention the possible EPIPE
25392         failure.
25393         * modules/closeout (Depends-on): Add stdbool.
25394
25395 2008-10-05  Bruno Haible  <bruno@clisp.org>
25396
25397         * modules/accept: New file.
25398         * modules/bind: New file.
25399         * modules/connect: New file.
25400         * modules/getpeername: New file.
25401         * modules/getsockname: New file.
25402         * modules/getsockopt: New file.
25403         * modules/listen: New file.
25404         * modules/recv: New file.
25405         * modules/recvfrom: New file.
25406         * modules/send: New file.
25407         * modules/sendto: New file.
25408         * modules/setsockopt: New file.
25409         * modules/socket: New file.
25410         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
25411         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25412         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
25413         the particular module is requested. Add a link warning when the
25414         particular module is not requested.
25415         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
25416         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
25417         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
25418         the particular module is requested.
25419         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
25420         gl_SYS_SOCKET_H_DEFAULTS): New macros.
25421         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
25422         * modules/sys_socket (Depends-on): Add link-warning.
25423         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
25424         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
25425         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
25426         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
25427         GL_LINK_WARNING.
25428         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
25429         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
25430         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
25431         * doc/posix-functions/getpeername.texi: Mention the new module
25432         'getpeername'.
25433         * doc/posix-functions/getsockname.texi: Mention the new module
25434         'getsockname'.
25435         * doc/posix-functions/getsockopt.texi: Mention the new module
25436         'getsockopt'.
25437         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
25438         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
25439         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
25440         * doc/posix-functions/send.texi: Mention the new module 'send'.
25441         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
25442         * doc/posix-functions/setsockopt.texi: Mention the new module
25443         'setsockopt'.
25444         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
25445         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
25446         listen, connect, accept.
25447         * modules/select-tests (Depends-on): Likewise.
25448
25449 2008-10-05  Bruno Haible  <bruno@clisp.org>
25450
25451         * lib/winsock.c (strerror): Remove unused #undef.
25452         (rpl_close): Remove unused local variable.
25453
25454         * modules/sys_socket (Depends-on); Add errno.
25455
25456 2008-10-05  Bruno Haible  <bruno@clisp.org>
25457
25458         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
25459         (select): Add a link warning when the 'select' module is not used.
25460         * modules/sys_select (Depends-on): Add link-warning.
25461         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
25462         Suggested by Paolo Bonzini.
25463
25464 2008-10-05  Jim Meyering  <meyering@redhat.com>
25465
25466         bootstrap: check for LT_INIT more portably
25467         * build-aux/bootstrap: Avoid using grep -E, since it's not
25468         portable enough.  Suggestion from Bruno Haible.
25469
25470 2008-10-05  Bruno Haible  <bruno@clisp.org>
25471
25472         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
25473         as being fixed by gnulib.
25474
25475 2008-10-05  Bruno Haible  <bruno@clisp.org>
25476
25477         * modules/select-tests: New file, mostly copied from
25478         modules/sys_select-tests.
25479         * tests/test-select.c: New file, mostly copied from
25480         tests/test-sys_select.c.
25481         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
25482         * modules/sys_select-tests (Depends-on): Remove all dependencies.
25483         (Makefile.am): Remove test_sys_select_LDADD.
25484
25485         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
25486         to an undefined symbol, for an error message.
25487         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
25488         (gl_SYS_SELECT_H_DEFAULTS): New macro.
25489         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
25490         winsock-select.c here.
25491         * modules/sys_select (Files): Remove lib/winsock-select.c.
25492         (Depends-on): Remove alloca.
25493         (Makefile.am): Substitute GNULIB_SELECT.
25494         * modules/select: New file.
25495         * doc/posix-functions/select.texi: Update.
25496
25497 2008-10-05  Bruno Haible  <bruno@clisp.org>
25498
25499         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
25500         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
25501         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
25502         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
25503         getdtablesize.
25504         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
25505         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
25506
25507 2008-10-05  Bruno Haible  <bruno@clisp.org>
25508
25509         * modules/getdtablesize-tests: New file.
25510         * tests/test-getdtablesize.c: New file.
25511
25512         New module 'getdtablesize'.
25513         * lib/unistd.in.h (getdtablesize): New declaration.
25514         * lib/getdtablesize.c: New file.
25515         * m4/getdtablesize.m4: New file.
25516         * modules/getdtablesize: New file.
25517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25518         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
25519         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
25520         HAVE_GETDTABLESIZE.
25521         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
25522
25523 2008-10-05  Bruno Haible  <bruno@clisp.org>
25524
25525         * modules/sched (Makefile.am): Fix typo.
25526         Reported by Simon Josefsson.
25527
25528 2008-10-05  Jim Meyering  <meyering@redhat.com>
25529
25530         bootstrap: check for LT_INIT, too
25531         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
25532         are deprecated.  Suggestion from Ralf Wildenhues.
25533
25534 2008-10-05  Bruno Haible  <bruno@clisp.org>
25535
25536         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
25537         overriding them by ours.
25538         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
25539
25540 2008-10-05  Jim Meyering  <meyering@redhat.com>
25541
25542         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
25543         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
25544         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
25545
25546 2008-10-04  Bruno Haible  <bruno@clisp.org>
25547
25548         * modules/dup2 (License): Change to LGPLv2+.
25549         * modules/sleep (License): Likewise.
25550         * modules/perror (License): Likewise.
25551         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
25552         Blake.
25553         * modules/signal (License): Likewise.
25554         * modules/sigprocmask (License): Likewise.
25555         * modules/raise (License): Change to LGPLv2+, with approval by Jim
25556         Meyering.
25557
25558 2008-10-04  Bruno Haible  <bruno@clisp.org>
25559
25560         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
25561         Reported by Rainer Tammer <tammer@tammer.net>.
25562
25563 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
25564             Bruno Haible  <bruno@clisp.org>
25565
25566         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
25567         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
25568         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
25569
25570 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
25571
25572         filevercmp: new module
25573         * lib/filevercmp.h: New function filevercmp comparing version strings.
25574         * lib/filevercmp.c: Implementation of filevercmp function.
25575         * modules/filevercmp: Module metadata.
25576         * tests/test-filevercmp.c: Unit test for new module.
25577         * modules/filevercmp-tests: Unit test metadata.
25578         * MODULES.html.sh: Add filevercmp module.
25579
25580 2008-10-03  Bruno Haible  <bruno@clisp.org>
25581
25582         * lib/c-ctype.h: Add comment.
25583         Reported by Jim Meyering.
25584
25585 2008-10-02  Bruno Haible  <bruno@clisp.org>
25586
25587         * modules/posix_spawn-internal (Depends-on): Add 'open'.
25588
25589 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25590
25591         * build-aux/bootstrap: Allow renaming bootstrap, and change the
25592         name of bootstrap.conf accordingly.
25593
25594 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25595
25596         * build-aux/bootstrap: Install git-merge-changelog configuration
25597         items into .gitconfig if needed.
25598
25599 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25600
25601         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
25602         git repository, and initialize/update it accordingly.
25603
25604 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
25605
25606         * modules/fsync-tests: New file.
25607         * tests/test-fsync.c: New file.
25608
25609         New module 'fsync'.
25610         * lib/fsync.c: New file.
25611         * m4/fsync.m4: New file.
25612         * modules/fsync: New file.
25613         * lib/unistd.in.h (fsync): New declaration.
25614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
25615         GNULIB_FSYNC and HAVE_FSYNC.
25616         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
25617         * MODULES.html.sh (posix_functions): Add fsync.
25618         * doc/posix-functions/fsync.texi: Mention the new module.
25619
25620 2008-10-02  Jim Meyering  <meyering@redhat.com>
25621
25622         fts.c: sync with similar code from coreutils' remove.c
25623         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
25624         Guard also with "#if defined __linux__", since for now at least,
25625         this code is Linux-kernel-specific.
25626
25627 2008-10-02  Jim Meyering  <meyering@redhat.com>
25628
25629         fts: bug fixes
25630         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
25631         Include <sys/vfs.h>, not <sys/statfs.h>.
25632
25633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
25634         Include <sys/vfs.h>, not <sys/statfs.h>.
25635
25636 2008-10-01  Bruno Haible  <bruno@clisp.org>
25637
25638         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
25639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
25640         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
25641         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
25642         * doc/posix-functions/posix_spawnp.texi: Likewise.
25643         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
25644         whether posix_spawn actually works.
25645         * m4/pipe.m4 (gl_PIPE): Likewise.
25646         * modules/execute (Files): Add m4/posix_spawn.m4.
25647         * modules/pipe (Files): Add m4/posix_spawn.m4.
25648         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
25649
25650 2008-10-01  Jim Meyering  <meyering@redhat.com>
25651
25652         remove trailing spaces
25653         * NEWS: Likewise.
25654         * lib/poll.c (poll): Likewise.
25655         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
25656         * lib/winsock.c (rpl_close): Likewise.
25657         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
25658         * modules/yield: Likewise.
25659         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
25660         * tests/test-sys_select.c (connect_to_socket): Likewise.
25661
25662         fts.c: adjust a new interface to be more generally useful
25663         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
25664         (fts_build): Adjust caller.
25665
25666 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25667
25668         * modules/cond-tests: New file.
25669         * tests/test-cond.c: New file.
25670
25671 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25672             Bruno Haible  <bruno@clisp.org>
25673
25674         * modules/cond (Dependencies): Add errno, time.
25675         * lib/glthread/cond.h: Include <time.h>.
25676         (gl_cond_define, gl_cond_define_initialized): Use the same definition
25677         across platforms.
25678
25679 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25680             Bruno Haible  <bruno@clisp.org>
25681
25682         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
25683
25684 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25685             Bruno Haible  <bruno@clisp.org>
25686
25687         * modules/tls-tests (Depends-on): Add thread, yield.
25688         (configure.ac): Remove all checks.
25689         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
25690         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25691         gl_thread_self): Remove definitions. Include glthread/thread.h and
25692         glthread/yield.h instead.
25693         (test_tls): Pass an additional NULL argument to gl_thread_join.
25694
25695 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25696             Bruno Haible  <bruno@clisp.org>
25697
25698         * modules/lock-tests (Depends-on): Add thread, yield.
25699         (configure.ac): Remove all checks.
25700         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
25701         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25702         gl_thread_self): Remove definitions. Include glthread/thread.h and
25703         glthread/yield.h instead.
25704         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
25705         additional NULL argument to gl_thread_join.
25706
25707 2008-09-30  Bruno Haible  <bruno@clisp.org>
25708
25709         Fix the Win32 implementation of the 'thread' module.
25710         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
25711         pointer type.
25712         (gl_thread_self): Invoke gl_thread_self_func.
25713         (gl_thread_self_func): New declaration.
25714         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
25715         (do_init_self_key, init_self_key): New functions.
25716         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
25717         Remove some fields.
25718         (running_threads, running_lock): Remove variables.
25719         (get_current_thread_handle): New function.
25720         (gl_thread_self_func, wrapper_func, glthread_create_func,
25721         glthread_join_func, gl_thread_exit_func): Largely rewritten and
25722         simplified.
25723
25724 2008-09-30  Bruno Haible  <bruno@clisp.org>
25725
25726         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
25727         files.
25728
25729 2008-09-30  Jim Meyering  <meyering@redhat.com>
25730
25731         fts.m4: correct the test for statfs.f_type
25732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
25733         when checking for statfs.f_type.
25734
25735 2008-09-15  Simon Josefsson  <simon@josefsson.org>
25736
25737         tests: avoid some compiler warnings
25738         * tests/test-memchr.c (main): Pass NULL indirectly.
25739         * tests/test-getdate.c (main): Remove unused variable 'ret'.
25740
25741 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
25742
25743         getdate.y: disallow countable dayshifts like "4 yesterday ago"
25744         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
25745         exactly specified dayshifts.
25746         (dayshift): New rule.
25747         (rel): Add dayshift.
25748         (relative_time_table) [tomorrow, yesterday, today, now]:
25749         Use tDAY_SHIFT in place of tDAY_UNIT.
25750         * tests/test-getdate.c: Add tests for now-disallowed countable
25751         dayshifts, e.g., "4 yesterday ago".
25752
25753 2008-09-29  Bruno Haible  <bruno@clisp.org>
25754
25755         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
25756         * tests/test-posix_spawn1.in.sh: Renamed from
25757         tests/test-posix_spawn.in.sh.
25758         * tests/test-posix_spawn2.c: New file.
25759         * tests/test-posix_spawn2.in.sh: New file.
25760         * modules/posix_spawnp-tests (Files): Update.
25761         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
25762
25763 2008-09-29  Bruno Haible  <bruno@clisp.org>
25764
25765         Propagate effects of putenv/setenv/unsetenv to child processes.
25766         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
25767         * lib/pipe.c (create_pipe): Likewise.
25768
25769 2008-09-29  Bruno Haible  <bruno@clisp.org>
25770
25771         Enable use of shell scripts as executables in mingw.
25772         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
25773         run the program as a shell script.
25774         * lib/pipe.c (create_pipe): Likewise.
25775         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
25776         resulting array.
25777
25778 2008-09-29  Eric Blake  <ebb9@byu.net>
25779
25780         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
25781
25782 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
25783
25784         * doc/posix-functions/accept.texi: Update mingw problems.
25785         * doc/posix-functions/bind.texi: Update mingw problems.
25786         * doc/posix-functions/close.texi: Update mingw problems.
25787         * doc/posix-functions/connect.texi: Update mingw problems.
25788         * doc/posix-functions/getpeername.texi: Update mingw problems.
25789         * doc/posix-functions/getsockname.texi: Update mingw problems.
25790         * doc/posix-functions/getsockopt.texi: Update mingw problems.
25791         * doc/posix-functions/ioctl.texi: Update mingw problems.
25792         * doc/posix-functions/listen.texi: Update mingw problems.
25793         * doc/posix-functions/recv.texi: Update mingw problems.
25794         * doc/posix-functions/recvfrom.texi: Update mingw problems.
25795         * doc/posix-functions/select.texi: Update mingw problems.
25796         * doc/posix-functions/send.texi: Update mingw problems.
25797         * doc/posix-functions/sendto.texi: Update mingw problems.
25798         * doc/posix-functions/setsockopt.texi: Update mingw problems.
25799         * doc/posix-functions/socket.texi: Update mingw problems.
25800
25801 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
25802             Bruno Haible  <bruno@clisp.org>
25803
25804         * lib/sys_select.in.h: Include sys/time.h.
25805         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
25806         * modules/sys_select: Depend on sys_time.
25807         * tests/test-sys_select.c: Test that sys/select.h defines struct
25808         timeval fully.
25809
25810 2008-09-29  Bruno Haible  <bruno@clisp.org>
25811
25812         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
25813         * lib/sys_select.in.h: Likewise.
25814
25815 2008-09-29  Bruno Haible  <bruno@clisp.org>
25816
25817         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
25818
25819 2008-09-29  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
25822         Set LIBSOCKET instead of augmenting LIBS.
25823         * modules/sockets (Link): New section.
25824         * modules/sockets-tests (test_sockets_LDADD): New variable.
25825         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
25826         * modules/poll-tests (test_poll_LDADD): New variable.
25827         * NEWS: Document the change.
25828
25829 2008-09-29  Bruno Haible  <bruno@clisp.org>
25830
25831         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
25832         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
25833         ARPA_INET_H directly.
25834         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25835
25836 2008-09-28  Bruno Haible  <bruno@clisp.org>
25837
25838         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
25839         from gl_HEADER_SYS_SOCKET.
25840         (gl_HEADER_SYS_SOCKET): Invoke it.
25841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25842
25843 2008-09-28  Bruno Haible  <bruno@clisp.org>
25844
25845         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
25846         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
25847         Needed on OSF/1 4.0.
25848
25849 2008-09-28  Bruno Haible  <bruno@clisp.org>
25850
25851         Override open more carefully.
25852         * lib/open.c (orig_open): New function.
25853         (rpl_open): Use orig_open instead of open.
25854         * lib/fcntl.in.h: Add special invocation convention.
25855         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
25856         (gl_FUNC_OPEN): Invoke it.
25857
25858         Override freopen more carefully.
25859         * lib/freopen.c (orig_freopen): New function.
25860         (rpl_freopen): Use orig_freopen instead of freopen.
25861         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
25862         (gl_FUNC_FREOPEN): Invoke it.
25863
25864         Override fopen more carefully.
25865         * lib/fopen.c (orig_fopen): New function.
25866         (rpl_fopen): Use orig_fopen instead of fopen.
25867         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
25868         (gl_FUNC_FOPEN): Invoke it.
25869         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
25870
25871 2008-09-28  Bruno Haible  <bruno@clisp.org>
25872
25873         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
25874         SIGPIPE.
25875
25876 2008-09-28  Bruno Haible  <bruno@clisp.org>
25877
25878         * tests/test-sigaction.c (handler, main): Disable the check whether
25879         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
25880         glibc systems with LinuxThreads.
25881
25882 2008-09-28  Bruno Haible  <bruno@clisp.org>
25883
25884         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
25885
25886         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
25887         with AIX xlc.
25888         * lib/fcntl.in.h (open): Likewise.
25889         Reported by Rainer Tammer <tammer@tammer.net>.
25890
25891 2008-09-28  Bruno Haible  <bruno@clisp.org>
25892
25893         * modules/posix_spawnp-tests: New file.
25894         * tests/test-posix_spawn.c: New file.
25895         * tests/test-posix_spawn.in.sh: New file.
25896
25897         New module 'posix_spawnp'.
25898         * modules/posix_spawnp: New file.
25899         * lib/spawnp.c: New file, from GNU libc with modifications.
25900         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
25901
25902         New module 'posix_spawn'.
25903         * modules/posix_spawn: New file.
25904         * lib/spawn.c: New file, from GNU libc with modifications.
25905         * doc/posix-functions/posix_spawn.texi: Mention the new module.
25906
25907         New module 'posix_spawnattr_destroy'.
25908         * modules/posix_spawnattr_destroy: New file.
25909         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
25910         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
25911         module.
25912
25913         New module 'posix_spawnattr_setsigmask'.
25914         * modules/posix_spawnattr_setsigmask: New file.
25915         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
25916         modifications.
25917         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
25918         new module.
25919
25920         New module 'posix_spawnattr_getsigmask'.
25921         * modules/posix_spawnattr_getsigmask: New file.
25922         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25923         modifications.
25924         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25925         new module.
25926
25927         New module 'posix_spawnattr_setsigdefault'.
25928         * modules/posix_spawnattr_setsigdefault: New file.
25929         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25930         modifications.
25931         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25932         new module.
25933
25934         New module 'posix_spawnattr_getsigdefault'.
25935         * modules/posix_spawnattr_getsigdefault: New file.
25936         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25937         modifications.
25938         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25939         new module.
25940
25941         New module 'posix_spawnattr_setschedpolicy'.
25942         * modules/posix_spawnattr_setschedpolicy: New file.
25943         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25944         modifications.
25945         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25946         new module.
25947
25948         New module 'posix_spawnattr_getschedpolicy'.
25949         * modules/posix_spawnattr_getschedpolicy: New file.
25950         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25951         modifications.
25952         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25953         new module.
25954
25955         New module 'posix_spawnattr_setschedparam'.
25956         * modules/posix_spawnattr_setschedparam: New file.
25957         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
25958         modifications.
25959         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
25960         new module.
25961
25962         New module 'posix_spawnattr_getschedparam'.
25963         * modules/posix_spawnattr_getschedparam: New file.
25964         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
25965         modifications.
25966         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
25967         new module.
25968
25969         New module 'posix_spawnattr_setpgroup'.
25970         * modules/posix_spawnattr_setpgroup: New file.
25971         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
25972         modifications.
25973         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
25974         module.
25975
25976         New module 'posix_spawnattr_getpgroup'.
25977         * modules/posix_spawnattr_getpgroup: New file.
25978         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
25979         modifications.
25980         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
25981         module.
25982
25983         New module 'posix_spawnattr_setflags'.
25984         * modules/posix_spawnattr_setflags: New file.
25985         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
25986         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
25987         module.
25988
25989         New module 'posix_spawnattr_getflags'.
25990         * modules/posix_spawnattr_getflags: New file.
25991         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
25992         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
25993         module.
25994
25995         New module 'posix_spawnattr_init'.
25996         * modules/posix_spawnattr_init: New file.
25997         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
25998         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
25999         module.
26000
26001         New module 'posix_spawn_file_actions_destroy'.
26002         * modules/posix_spawn_file_actions_destroy: New file.
26003         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26004         modifications.
26005         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26006         the new module.
26007
26008         New module 'posix_spawn_file_actions_addopen'.
26009         * modules/posix_spawn_file_actions_addopen: New file.
26010         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26011         modifications.
26012         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26013         the new module.
26014
26015         New module 'posix_spawn_file_actions_adddup2'.
26016         * modules/posix_spawn_file_actions_adddup2: New file.
26017         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26018         modifications.
26019         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26020         the new module.
26021
26022         New module 'posix_spawn_file_actions_addclose'.
26023         * modules/posix_spawn_file_actions_addclose: New file.
26024         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26025         modifications.
26026         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26027         the new module.
26028
26029         New module 'posix_spawn_file_actions_init'.
26030         * modules/posix_spawn_file_actions_init: New file.
26031         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26032         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26033         new module.
26034
26035         New module 'posix_spawn-internal'.
26036         * modules/posix_spawn-internal: New file.
26037         * lib/spawn_int.h: New file, from GNU libc with modifications.
26038         * lib/spawni.c: New file, from GNU libc with modifications.
26039         * m4/posix_spawn.m4: New file.
26040
26041         New module 'spawn'.
26042         * modules/spawn: New file.
26043         * lib/spawn.in.h: New file, from GNU libc with modifications.
26044         * m4/spawn_h.m4: New file.
26045         * doc/posix-headers/spawn.texi: Mention the new module.
26046
26047 2008-09-28  Bruno Haible  <bruno@clisp.org>
26048
26049         * modules/sched-tests: New file.
26050         * tests/test-sched.c: New file.
26051
26052         New module 'sched'.
26053         * modules/sched: New file.
26054         * lib/sched.in.h: New file.
26055         * m4/sched_h.m4: New file.
26056         * doc/posix-headers/sched.texi: Mention the new module.
26057
26058 2008-09-27  Eric Blake  <ebb9@byu.net>
26059
26060         Fix previous patch, and tweak references to $0.
26061         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26062         (func_version, func_gnulib_dir): Don't call this program
26063         gnulib-tool.
26064         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26065         with using $0 in function.
26066         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26067         (func_fatal_error): Reuse the name the user invoked us with.
26068
26069 2008-09-27  Bruno Haible  <bruno@clisp.org>
26070
26071         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26072         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26073         (gl_ICONV_H): Not here.
26074         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26075         instead of assigning ICONV_H directly.
26076
26077         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26079         WCHAR_H directly.
26080
26081 2008-09-27  Bruno Haible  <bruno@clisp.org>
26082
26083         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26084         * modules/arpa_inet (Depends-on): Add link-warning.
26085         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26086         * modules/unistd (Makefile.am): Likewise.
26087
26088 2008-09-26  Bruno Haible  <bruno@clisp.org>
26089
26090         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26091         variables.
26092         (func_version): Essentially copied from gnulib-tool.
26093         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26094         func_readlink): Copied from gnulib-tool.
26095
26096 2008-09-26  Bruno Haible  <bruno@clisp.org>
26097
26098         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26099         invoking git-version-gen.
26100
26101 2008-09-26  Bruno Haible  <bruno@clisp.org>
26102
26103         * posix-modules: Update to directory names changed on 2008-01-19.
26104         Remove commas in output before splitting into words. No more need to
26105         avoid 'ftruncate' since 2007-02-19.
26106
26107 2008-09-26  Bruno Haible  <bruno@clisp.org>
26108
26109         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26110
26111 2008-09-26  Bruno Haible  <bruno@clisp.org>
26112
26113         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26114         * modules/fwriteerror (Depends-on): Add errno.
26115
26116 2008-09-26  Bruno Haible  <bruno@clisp.org>
26117
26118         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26119         * tests/test-vc-list-files-cvs.sh: Likewise.
26120
26121 2008-09-26  Bruno Haible  <bruno@clisp.org>
26122
26123         * doc/posix-headers/sys_resource.texi: Reorder items.
26124
26125 2008-09-26  Jim Meyering  <meyering@redhat.com>
26126
26127         fts: tweak inode comparison function
26128         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26129         inode numbers, as documented.
26130
26131         fts: sort dirent entries on inode number before traversing
26132         This avoids a quadratic, seek-related performance penalty when
26133         operating on a directory containing many entries (measurable at 10k;
26134         3.5 hours at 2 million entries with a cold cache) on certain types
26135         of file systems, including ext3 and ext4, but not tmpfs.
26136         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26137         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26138         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26139         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26140         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26141         (fts_build): Set the stat.st_ino member from D_INO.
26142         If it is likely to be useful, sort dirent entries on inode number.
26143
26144         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26145         and the struct statfs.f_type member.
26146         * modules/fts (Depends-on): Add d-ino.
26147
26148 2008-09-26  Bruno Haible  <bruno@clisp.org>
26149
26150         * modules/sigpipe-die (Depends-on): Add sigpipe.
26151
26152         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26153         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26154         and GNULIB_STDIO_H_SIGPIPE are set.
26155         * lib/stdio-write.c: New file.
26156         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26157         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26158         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26159         REPLACE_STDIO_WRITE_FUNCS.
26160         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26161         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26162         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26163         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26164         * modules/stdio (Files): Add lib/stdio-write.c.
26165         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26166         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26167         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26168         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26169         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26170         REPLACE_FPRINTF_POSIX.
26171         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26172         REPLACE_PRINTF_POSIX.
26173         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26174         REPLACE_VFPRINTF_POSIX.
26175         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26176         REPLACE_VPRINTF_POSIX.
26177         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26178         SIGPIPE issue.
26179         * doc/posix-functions/fputc.texi: Likewise.
26180         * doc/posix-functions/fputs.texi: Likewise.
26181         * doc/posix-functions/fwrite.texi: Likewise.
26182         * doc/posix-functions/printf.texi: Likewise.
26183         * doc/posix-functions/putc.texi: Likewise.
26184         * doc/posix-functions/putchar.texi: Likewise.
26185         * doc/posix-functions/puts.texi: Likewise.
26186         * doc/posix-functions/vfprintf.texi: Likewise.
26187         * doc/posix-functions/vprintf.texi: Likewise.
26188
26189         * modules/safe-write (Depends-on): Add write.
26190
26191         * modules/sigpipe-tests: New file.
26192         * tests/test-sigpipe.c: New file.
26193         * tests/test-sigpipe.sh: New file.
26194
26195         * modules/write: New file.
26196         * lib/unistd.in.h: Include <sys/types.h>.
26197         (write): New declaration.
26198         * lib/write.c: New file.
26199         * m4/write.m4: New file.
26200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26201         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26202         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26203         GNULIB_WRITE, REPLACE_WRITE.
26204         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26205         and the SIGPIPE issue.
26206
26207         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26208         (raise): New declaration.
26209         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26210         (ext_signal): New function.
26211         (rpl_raise): New function.
26212         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26213         GNULIB_SIGNAL_H_SIGPIPE.
26214         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26215         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26216
26217         * modules/sigpipe: New file.
26218         * m4/sigpipe.m4: New file.
26219
26220 2008-09-25  Derek Price  <derek@ximbiot.com>
26221             Bruno Haible  <bruno@clisp.org>
26222
26223         * gnulib-tool (func_import): Report all license incompatibilities, not
26224         just the first one.
26225
26226 2008-09-25  Bruno Haible  <bruno@clisp.org>
26227
26228         * gnulib-tool (func_import): When computing the edits, consider not
26229         only the Makefile.ams that exist but also those that will be generated.
26230
26231 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26232
26233         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26234         fixes gnulib-tool --test warning about duplicate dependency.
26235
26236 2008-09-25  Bruno Haible  <bruno@clisp.org>
26237
26238         * gnulib-tool: Don't ask the user to perform edits in the generated
26239         Makefile.ams.
26240         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26241         apply to the Makefile.am being generated.
26242         (func_emit_tests_Makefile_am): Execute edits that apply to the
26243         Makefile.am being generated.
26244         (func_import): Setup list of Makefile.am edits before emitting the
26245         Makefile.ams, not at the end.
26246         (func_create_testdir): Update.
26247         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26248
26249 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26250
26251         * gnulib-tool (func_import): Store the --tests-base option in the
26252         comment in gnulib-cache.m4.
26253
26254 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26255
26256         * NEWS: Document increased portability that sys_select now provides.
26257
26258         * lib/sys_select.in.h: Install select wrapper.
26259         * lib/sys_socket.in.h: Use more descriptive name when there is no
26260         select wrapper.
26261         * lib/winsock-select.c: New.
26262         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26263         Require gl_HEADER_SYS_SOCKET.
26264         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26265         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26266         * tests/test-sys_select.c: Add functional tests.
26267
26268 2008-09-24  Eric Blake  <ebb9@byu.net>
26269
26270         open, fopen: close fd leak in last patch
26271         * lib/open.c (rpl_open): Close fd before returning error.
26272         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26273         * doc/posix-functions/open.texi (open): Document that Irix also
26274         has the bug.
26275         * doc/posix-functions/fopen.texi (fopen): Likewise.
26276         Reported by Paolo Bonzini.
26277
26278 2008-09-24  Bruno Haible  <bruno@clisp.org>
26279
26280         Ensure that a filename ending in a slash cannot be used to access a
26281         non-directory.
26282         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26283         to check whether it's really a directory.
26284         * lib/fopen.c: Include fcntl.h, unistd.h.
26285         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26286         and fdopen().
26287         * modules/fopen (Depends-on): Add unistd.
26288         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26289         * tests/test-fopen.c (main): Likewise.
26290         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26291         * doc/posix-functions/fopen.texi: Likewise.
26292         Reported by Eric Blake.
26293
26294 2008-09-23  Eric Blake  <ebb9@byu.net>
26295
26296         c-stack: avoid compiler optimizations when provoking overflow
26297         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26298         recursion harder to optimize, to ensure a stack overflow occurs.
26299         * tests/test-c-stack.c (recurse): Likewise.
26300         Borrowed from libsigsegv.
26301
26302         c-stack: work around Irix sigaltstack bug
26303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26304         whether sigaltstack uses wrong end of stack_t (copied in part from
26305         libsigsegv).
26306         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26307         Irix bug, without requiring an over-allocation.
26308         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26309         bug.
26310
26311         fopen: document mingw bug on directories
26312         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26313         not allowing a stream visiting a directory, even though reading
26314         from such a stream is not portable.
26315
26316 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26317
26318         * lib/poll.c: Rewrite.
26319         * modules/poll: Depend on alloca.
26320
26321 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26322
26323         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26324         instead define prototypes for a full set of wrappers.  Ensure
26325         that Cygwin does not use the compatibility code, which is only
26326         for MinGW.
26327         * lib/winsock.c: New.
26328         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26329         * modules/sys_socket: Add lib/winsock.c.
26330
26331         * modules/poll-tests: Add errno and perror.
26332         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26333
26334 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26335
26336         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26337
26338 2008-09-23  Bruno Haible  <bruno@clisp.org>
26339
26340         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26341         * doc/glibc-functions/*: Likewise.
26342
26343 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26344
26345         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26346         success.
26347
26348 2008-09-22  Eric Blake  <ebb9@byu.net>
26349             Bruno Haible  <bruno@clisp.org>
26350
26351         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26352         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26353         supply %A but mishandle pseudo-NaN.
26354         Reported by Simon Josefsson.
26355
26356 2008-09-21  Bruno Haible  <bruno@clisp.org>
26357
26358         * tests/test-lock.c (main): Tweak skip message.
26359         * tests/test-tls.c (main): Likewise.
26360
26361 2008-09-21  Bruno Haible  <bruno@clisp.org>
26362
26363         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
26364         whether 'struct sigaction' has sa_sigaction here...
26365         (gl_PREREQ_SIG_HANDLER_H): ... not here.
26366         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
26367
26368 2008-09-21  Bruno Haible  <bruno@clisp.org>
26369
26370         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
26371         section.
26372         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
26373         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
26374         the new section.
26375         (Support for obsolete systems lacking POSIX:2001): New section.
26376         (String handling <string.h>): Move strdup to the new section.
26377         Suggested by Simon Josefsson and Paolo Bonzini.
26378
26379 2008-09-21  Bruno Haible  <bruno@clisp.org>
26380
26381         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
26382         exponents in %e and %g results on 'long double'. Needed for mingw's
26383         improved *printf functions.
26384         * tests/test-vasprintf-posix.c (test_function): Likewise.
26385         * tests/test-snprintf-posix.h (test_function): Likewise.
26386         * tests/test-sprintf-posix.h (test_function): Likewise.
26387         Reported by Eric Blake.
26388
26389 2008-09-21  Bruno Haible  <bruno@clisp.org>
26390
26391         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
26392         * tests/test-sprintf-posix.h (test_function): Likewise.
26393
26394 2008-09-21  Bruno Haible  <bruno@clisp.org>
26395
26396         * modules/getpass (Depends-on): Add strdup-posix.
26397
26398         New module 'strdup-posix'.
26399         * modules/strdup-posix: New file.
26400         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
26401         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
26402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26403         REPLACE_STRDUP.
26404         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
26405         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
26406         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26407         strdup-posix.
26408
26409         * modules/strdup (Depends-on): Remove malloc-posix.
26410
26411 2008-09-20  Bruno Haible  <bruno@clisp.org>
26412
26413         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
26414         Wildenhues.
26415
26416 2008-09-20  Bruno Haible  <bruno@clisp.org>
26417
26418         Ensure that wint_t gets defined on IRIX 5.3.
26419         * lib/wchar.in.h (wint_t): Define if not defined by the system.
26420         * lib/wctype.in.h (wint_t): Likewise.
26421         (__wctype_wint_t): Remove type.
26422         (isw*): Use wint_t instead of __wctype_wint_t.
26423         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
26424         * modules/wchar (Files): Add m4/wint_t.m4.
26425         (Makefile.am): Substitute HAVE_WINT_T.
26426         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
26427         * tests/test-wctype.c: Check that wint_t is defined.
26428         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
26429         * doc/posix-headers/wctype.texi: Likewise.
26430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26431
26432 2008-09-18  Bruno Haible  <bruno@clisp.org>
26433
26434         * gnulib-tool (func_exit): Update comment.
26435
26436 2008-09-18  Simon Josefsson  <simon@josefsson.org>
26437
26438         * modules/getaddrinfo (Depends-on): Remove strdup, this module
26439         assumes strdup exists and does not depend on strdup to return
26440         ENOMEM on out of memory conditions.
26441
26442 2008-09-18  Bruno Haible  <bruno@clisp.org>
26443
26444         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
26445         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
26446         digits for the exponent.
26447
26448 2008-09-18  Jim Meyering  <meyering@redhat.com>
26449             Bruno Haible  <bruno@clisp.org>
26450
26451         * lib/vasnprintf.c (decimal_point_char): Define also if
26452         NEED_PRINTF_INFINITE_LONG_DOUBLE.
26453
26454 2008-09-16  Bruno Haible  <bruno@clisp.org>
26455         and Eric Blake  <ebb9@byu.net>
26456
26457         vasnprintf: support Irix 5.3
26458         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
26459         that mishandle long double infinity.
26460         Reported by Tom G. Christensen.
26461
26462 2008-09-16  Bruno Haible  <bruno@clisp.org>
26463
26464         * doc/glibc-functions/scandir.texi: Mention the function is missing on
26465         Solaris 9.
26466         * doc/glibc-functions/alphasort.texi: Likewise.
26467         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
26468
26469 2008-09-16  Jim Meyering  <meyering@redhat.com>
26470
26471         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
26472         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
26473         a umask modification leak out of a subshell.  Otherwise, the
26474         opensolaris /bin/sh would be accepted and thus cause unwarranted
26475         failures in the coreutils test suite.
26476
26477 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
26478
26479         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
26480         to succeed.
26481
26482 2008-09-16  Jim Meyering  <meyering@redhat.com>
26483
26484         avoid spurious test failure when library is built without ACL support
26485         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
26486         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
26487         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
26488         * tests/test-copy-acl.sh: Likewise.
26489
26490 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26491
26492         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
26493         based on character occurrence counts.
26494
26495 2008-09-15  Eric Blake  <ebb9@byu.net>
26496
26497         tests: avoid some compiler warnings
26498         * tests/test-memchr.c (main): Pass NULL indirectly.
26499         * tests/test-closein.c (main): Avoid unused variable.
26500
26501 2008-09-15  Bruno Haible  <bruno@clisp.org>
26502
26503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
26504         are missing on OpenBSD 4.0 individually.
26505         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26506
26507 2008-09-15  Bruno Haible  <bruno@clisp.org>
26508
26509         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
26510         * doc/posix-functions/strerror.texi: Mention also Cygwin.
26511         * doc/posix-functions/perror.texi: Likewise.
26512         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
26513         is missing.
26514         Reported by Eric Blake.
26515
26516         * lib/errno.in.h: Use replacement values >= 2000.
26517         Reported by Eric Blake.
26518
26519 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26520
26521         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
26522         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
26523         limit.
26524         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
26525         compareseq was aborted.
26526
26527 2008-09-14  Bruno Haible  <bruno@clisp.org>
26528
26529         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
26530         yvec_edit_count.
26531         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
26532         (fstrcmp_bounded): Simplify result computation accordingly.
26533
26534 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26535
26536         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
26537         (fstrcmp): Define in terms of fstrcmp_bounded.
26538         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
26539         lower_bound argument.
26540         Return quickly if the result is certainly < lower_bound.
26541         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
26542
26543 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26544
26545         * lib/diffseq.h (EARLY_ABORT): New macro.
26546         (compareseq): Change return type to bool. Return true when EARLY_ABORT
26547         evaluates to true.
26548
26549 2008-09-14  Bruno Haible  <bruno@clisp.org>
26550
26551         * modules/perror-tests: New file.
26552         * tests/test-perror.sh: New file.
26553         * tests/test-perror.c: New file.
26554
26555         New module 'perror'.
26556         * lib/stdio.in.h (perror): New declaration.
26557         * lib/perror.c: New file.
26558         * m4/perror.m4: New file.
26559         * modules/perror: New file.
26560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
26561         * doc/posix-functions/perror.texi: Mention the perror module.
26562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
26563         REPLACE_PERROR.
26564         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
26565         REPLACE_PERROR.
26566
26567 2008-09-14  Bruno Haible  <bruno@clisp.org>
26568
26569         * modules/stdio (Makefile.am): Reorder to match the order in
26570         lib/stdio.in.h.
26571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26572
26573 2008-09-13  Bruno Haible  <bruno@clisp.org>
26574
26575         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
26576
26577 2008-09-13  Bruno Haible  <bruno@clisp.org>
26578
26579         Extend strerror to cover the added errno values.
26580         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
26581         (rpl_strerror): Provide error messages for the added errno values and
26582         for the WSA* values.
26583         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
26584         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
26585         strerror.
26586         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
26587         * modules/strerror (Depends-on): Add errno.
26588         * doc/posix-functions/strerror.texi: Document the change.
26589         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
26590         and EOVERFLOW.
26591
26592 2008-09-13  Bruno Haible  <bruno@clisp.org>
26593
26594         * modules/EOVERFLOW: Remove file.
26595         * m4/eoverflow.m4: Remove file.
26596         * modules/EOVERFLOW-tests: Remove file.
26597         * tests/test-EOVERFLOW.c: Remove file.
26598         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
26599         * modules/ftell (Depends-on): Likewise.
26600         * modules/getdelim (Depends-on): Likewise.
26601         * modules/getugroups (Depends-on): Likewise.
26602         * modules/poll (Depends-on): Likewise.
26603         * modules/snprintf (Depends-on): Likewise.
26604         * modules/sprintf-posix (Depends-on): Likewise.
26605         * modules/vasnprintf (Depends-on): Likewise.
26606         * modules/vasprintf (Depends-on): Likewise.
26607         * modules/vfprintf-posix (Depends-on): Likewise.
26608         * modules/vsnprintf (Depends-on): Likewise.
26609         * modules/vsprintf-posix (Depends-on): Likewise.
26610         * modules/xvasprintf (Depends-on): Likewise.
26611         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26612         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
26613         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
26614         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
26615         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26616         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
26617         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
26618         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
26619         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26620         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
26621         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
26622         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
26623         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26624         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
26625         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
26626         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
26627         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26628         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
26629         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
26630         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
26631         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26632         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
26633         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
26634         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
26635         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
26636         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26637         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
26638         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
26639         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
26640         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
26641         * MODULES.html.sh: Remove EOVERFLOW.
26642         * NEWS: Mention the change.
26643
26644 2008-09-13  Bruno Haible  <bruno@clisp.org>
26645
26646         * modules/errno-tests: New file.
26647         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
26648
26649         * lib/errno.in.h: New file.
26650         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
26651         * modules/errno: New file.
26652         * doc/posix-headers/errno.texi: Update documentation.
26653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
26654
26655 2008-09-13  Bruno Haible  <bruno@clisp.org>
26656
26657         * tests/test-poll.c: Use #if for native Windows, rather than testing
26658         __MSVCRT__.
26659
26660 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26661             Bruno Haible  <bruno@clisp.org>
26662
26663         * lib/glob.c: Don't include <pwd.h> on native Windows.
26664         (WINDOWS32): New macro.
26665         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
26666
26667 2008-09-13  Bruno Haible  <bruno@clisp.org>
26668
26669         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
26670         (ETIMEDOUT): Remove macro.
26671         (glthread_cond_timedwait_multithreaded): New declaration.
26672         (glthread_cond_timedwait): Use it.
26673         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
26674         (glthread_cond_timedwait_multithreaded): New function.
26675
26676 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26677
26678         * modules/poll-tests: Do not check for io.h.
26679         * tests/test-poll.c: Check for __MSVCRT__ instead.
26680
26681 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26682
26683         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
26684         * modules/poll-tests: Add inet_pton, stdbool, sockets.
26685         * tests/test-poll.c: Use them.  Use _pipe on Windows.
26686
26687 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26688
26689         * modules/poll-tests: New.
26690         * tests/test-poll.c: New.
26691
26692 2008-09-12  Eric Blake  <ebb9@byu.net>
26693
26694         frexp: test for NetBSD failure on -0.0
26695         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
26696         not all, bugs from NetBSD 3.0 have been fixed.
26697         * doc/posix-functions/frexp.texi (frexp): Document bug.
26698         Reported by Thomas Klausner.
26699
26700         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
26701         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
26702         literal -0.0.
26703         Reported by Jonathan C. Patschke <jp@centtech.com>.
26704
26705 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26706
26707         * lib/glthread/cond.h: Use dummy implementation also if
26708         USE_WIN32_THREADS.
26709
26710 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26711
26712         * modules/fnmatch-posix (License): Change to LGPLv2+.
26713         * modules/fnmatch-gnu (License): Likewise.
26714
26715 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26716
26717         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
26718
26719 2008-09-11  Jim Meyering  <meyering@redhat.com>
26720
26721         * users.txt: Add gtk-vnc.
26722
26723 2008-09-08  Simon Josefsson  <simon@josefsson.org>
26724
26725         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
26726         rotate amounts.
26727
26728         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
26729         required for 16-bit and 8-bit rotates.
26730         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
26731         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
26732         UINT8_MAX instead of hard-coded constants.
26733         Suggested by Paul Eggert.
26734
26735 2008-09-07  Bruno Haible  <bruno@clisp.org>
26736
26737         * tests/test-striconveh.c (main): Check behaviour when converting from
26738         UTF-7.
26739
26740         Make striconveh work better with stateful encodings.
26741         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
26742         that iconv does not increment the inptr when returning -1/EINVAL.
26743
26744 2008-09-07  Bruno Haible  <bruno@clisp.org>
26745
26746         * build-aux/config.rpath: Update according to libtool-2.2.6.
26747         * build-aux/config.libpath: Likewise.
26748
26749 2008-09-06  Bruno Haible  <bruno@clisp.org>
26750
26751         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
26752         * lib/freadptr.c (freadptr): Likewise.
26753         * lib/freadseek.c (freadptrinc): Likewise.
26754         Reported by Simon Josefsson.
26755
26756 2008-09-06  Bruno Haible  <bruno@clisp.org>
26757
26758         * modules/freadptr (License): Change to LGPLv2+.
26759         * modules/freadseek (License): Likewise.
26760         Suggested by Eric Blake.
26761
26762         * modules/memchr2 (License): Change to LGPLv2+.
26763         Approved by Eric Blake.
26764
26765 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26766             Bruno Haible  <bruno@clisp.org>
26767
26768         Make gnulib-tool work with native 'sed' on AIX.
26769         * gnulib-tool (sed_noop): New variable.
26770         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
26771         func_add_or_update, func_create_testdir): Use it to initialize sed
26772         script variables.
26773         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26774
26775 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
26776             Bruno Haible  <bruno@clisp.org>
26777
26778         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
26779         also works after #include directives.
26780
26781 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
26782
26783         getdate.y: reject an out-of-range timezone value
26784         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
26785         the range [-24...+24].  When specified with only one or two digits,
26786         * tests/test-getdate.c: Tests for the fix.
26787         * doc/getdate.texi: Document this change.
26788
26789 2008-09-03  Bruno Haible  <bruno@clisp.org>
26790
26791         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
26792
26793 2008-09-02  Simon Josefsson  <simon@josefsson.org>
26794
26795         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
26796         <bruce.korb@gmail.com> with ideas from Ben Pfaff
26797         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
26798         Blake <ebb9@byu.net>.
26799
26800         * tests/test-bitrotate.c: Add more test vectors.
26801
26802 2008-09-02  Eric Blake  <ebb9@byu.net>
26803
26804         vasnprintf-posix: handle large precision via %.*d
26805         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
26806         when handling it ourselves.
26807         * tests/test-vasnprintf-posix.c (test_function): Add test.
26808         * tests/test-snprintf-posix.h (test_function): Likewise.
26809         * tests/test-sprintf-posix.h (test_function): Likewise.
26810         * tests/test-vasprintf-posix.c (test_function): Likewise.
26811         Reported by Alain Guibert.
26812
26813 2008-09-01  Eric Blake  <ebb9@byu.net>
26814
26815         c-stack: make configure-time check more robust
26816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
26817         successful sigaction call.
26818         Reported by Tom G. Christensen.
26819
26820 2008-09-01  Bruno Haible  <bruno@clisp.org>
26821
26822         New module 'findprog-lgpl'.
26823         * modules/findprog-lgpl: New file.
26824         * lib/findprog-lgpl.c: New file.
26825         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
26826         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
26827         to decide whether to use strdup or xstrdup, concatenated_filename or
26828         xconcatenated_filename.
26829
26830 2008-09-01  Bruno Haible  <bruno@clisp.org>
26831
26832         Split module 'concat-filename' into 'concat-filename' (LGPL) and
26833         'xconcat-filename' (GPL).
26834         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
26835         (License): Change to LGPLv2+.
26836         * modules/xconcat-filename: New file.
26837         * lib/concat-filename.h (concatenated_filename): Change specification.
26838         (xconcatenated_filename): New declaration.
26839         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
26840         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
26841         memory situations.
26842         * lib/xconcat-filename.c: New file.
26843         * NEWS: Mention the change.
26844         * lib/findprog.c: Include concat-filename.h, not filename.h.
26845         (find_in_path): Use xconcatenated_filename instead of
26846         concatenated_filename.
26847         * lib/javacomp.c: Include concat-filename.h, not filename.h.
26848         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26849         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26850         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26851         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
26852         instead of concatenated_filename.
26853         * lib/javaexec.c: Include concat-filename.h, not filename.h.
26854         (execute_java_class): Use xconcatenated_filename instead of
26855         concatenated_filename.
26856         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
26857         * modules/javacomp (Depends-on): Likewise.
26858         * modules/javaexec (Depends-on): Likewise.
26859
26860 2008-09-01  Bruno Haible  <bruno@clisp.org>
26861
26862         Split module 'filename' into 'filename' and 'concat-filename'.
26863         * modules/filename: Keep only lib/filename.h.
26864         (License): Change to LGPLv2+.
26865         * modules/concat-filename: New file, extracted from modules/filename.
26866         * lib/filename.h (concatenated_filename): Remove declaration.
26867         * lib/concat-filename.h: New file, extracted from lib/filename.h.
26868         * lib/concat-filename.c: Include concat-filename.h.
26869         * NEWS: Mention the change.
26870
26871 2008-09-01  Simon Josefsson  <simon@josefsson.org>
26872
26873         * lib/bitrotate.h (rotl8, rotr8): Add.
26874
26875         * modules/bitrotate (configure.ac): Need
26876         AC_REQUIRE([AC_C_INLINE]).
26877         (Description): Mention stdint.h.  Reported by Bruno Haible
26878         <bruno@clisp.org>.
26879
26880         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
26881         Paolo Bonzini <bonzini@gnu.org>.
26882
26883 2008-08-31  Bruno Haible  <bruno@clisp.org>
26884
26885         Assume Solaris specific bi-arch conventions on Solaris systems.
26886         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
26887         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
26888         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
26889         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
26890         like acl_libdirstem.
26891         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
26892         acl_libdirstem.
26893         * NEWS: Mention the change.
26894         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
26895
26896 2008-08-31  Jim Meyering  <meyering@redhat.com>
26897
26898         * lib/strftime.h: Add comments describing the two added arguments.
26899
26900         remove duplicate #include directives
26901         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
26902         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
26903
26904 2008-08-31  Bruno Haible  <bruno@clisp.org>
26905
26906         New module 'sigpipe-die'.
26907         * modules/sigpipe-die: New file.
26908         * lib/sigpipe-die.h: New file.
26909         * lib/sigpipe-die.c: New file.
26910         * MODULES.html.sh (Signal handling): Add sigpipe-die.
26911
26912 2008-08-31  Bruno Haible  <bruno@clisp.org>
26913
26914         Don't override previously installed signal handlers.
26915         * lib/fatal-signal.c (saved_sigactions): New variable.
26916         (uninstall_handlers): Reset the signal to the saved handler, not
26917         to SIG_DFL (except when ignored).
26918         (install_handlers): Save the previous handlers.
26919
26920 2008-08-30  Bruno Haible  <bruno@clisp.org>
26921
26922         * gnulib-tool (func_reset_sigpipe): New function.
26923         (func_get_automake_snippet, func_modules_transitive_closure,
26924         func_import): Invoke it before a join command that reads from stdin,
26925         to avoid "echo: write error: Broken pipe" error messages on stderr.
26926         Reported by Sam Steingold <sds@gnu.org>.
26927
26928 2008-08-30  Bruno Haible  <bruno@clisp.org>
26929
26930         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26931         Code copied from m4/open.m4.
26932         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26933         access and the filename ends in a slash. Code copied from lib/open.c.
26934         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26935         * tests/test-fopen.c (main): Check against bug with trailing slash.
26936
26937 2008-08-29  Bruno Haible  <bruno@clisp.org>
26938
26939         Avoid some "gcc -pedantic" warnings.
26940         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26941         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26942         * lib/dirent.in.h: Likewise.
26943         * lib/fcntl.in.h: Likewise.
26944         * lib/float.in.h: Likewise.
26945         * lib/iconv.in.h: Likewise.
26946         * lib/inttypes.in.h: Likewise.
26947         * lib/locale.in.h: Likewise.
26948         * lib/math.in.h: Likewise.
26949         * lib/netinet_in.in.h: Likewise.
26950         * lib/search.in.h: Likewise.
26951         * lib/signal.in.h: Likewise.
26952         * lib/stdarg.in.h: Likewise.
26953         * lib/stdint.in.h: Likewise.
26954         * lib/stdio.in.h: Likewise.
26955         * lib/stdlib.in.h: Likewise.
26956         * lib/string.in.h: Likewise.
26957         * lib/strings.in.h: Likewise.
26958         * lib/sys_select.in.h: Likewise.
26959         * lib/sys_socket.in.h: Likewise.
26960         * lib/sys_stat.in.h: Likewise.
26961         * lib/sys_time.in.h: Likewise.
26962         * lib/sysexits.in.h: Likewise.
26963         * lib/time.in.h: Likewise.
26964         * lib/unistd.in.h: Likewise.
26965         * lib/wchar.in.h: Likewise.
26966         * lib/wctype.in.h: Likewise.
26967         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
26968         * modules/fchdir (Makefile.am): Likewise.
26969         * modules/fcntl (Makefile.am): Likewise.
26970         * modules/float (Makefile.am): Likewise.
26971         * modules/iconv_open (Makefile.am): Likewise.
26972         * modules/inttypes (Makefile.am): Likewise.
26973         * modules/locale (Makefile.am): Likewise.
26974         * modules/math (Makefile.am): Likewise.
26975         * modules/netinet_in (Makefile.am): Likewise.
26976         * modules/search (Makefile.am): Likewise.
26977         * modules/signal (Makefile.am): Likewise.
26978         * modules/stdarg (Makefile.am): Likewise.
26979         * modules/stdint (Makefile.am): Likewise.
26980         * modules/stdio (Makefile.am): Likewise.
26981         * modules/stdlib (Makefile.am): Likewise.
26982         * modules/string (Makefile.am): Likewise.
26983         * modules/strings (Makefile.am): Likewise.
26984         * modules/sys_select (Makefile.am): Likewise.
26985         * modules/sys_socket (Makefile.am): Likewise.
26986         * modules/sys_stat (Makefile.am): Likewise.
26987         * modules/sys_time (Makefile.am): Likewise.
26988         * modules/sysexits (Makefile.am): Likewise.
26989         * modules/time (Makefile.am): Likewise.
26990         * modules/unistd (Makefile.am): Likewise.
26991         * modules/wchar (Makefile.am): Likewise.
26992         * modules/wctype (Makefile.am): Likewise.
26993         Reported by Reuben Thomas <rrt@sc3d.org>.
26994
26995 2008-08-29  Bruno Haible  <bruno@clisp.org>
26996
26997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
26998         any more.
26999
27000 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27001
27002         * MODULES.html.sh (Misc): Add bitrotate.
27003
27004         * modules/bitrotate: New file.
27005
27006         * lib/bitrotate.h: New file.
27007
27008         * modules/bitrotate-tests: New file.
27009
27010         * tests/test-bitrotate.c: New file.
27011
27012         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27013         on the bitrotate module.
27014
27015         * lib/arctwo.c: Use new bitrotate module.
27016
27017 2008-08-29  Jim Meyering  <meyering@redhat.com>
27018
27019         bootstrap: merge changes from coreutils
27020         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27021         of copied files.  Remove a kludge, now that this is fixed.
27022         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27023         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27024         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27025
27026 2008-08-29  Bruno Haible  <bruno@clisp.org>
27027
27028         * MODULES.html.sh: Remove --cvs-urls option.
27029
27030 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27031
27032         maint.mk: adjust to file name change
27033         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27034
27035 2008-08-28  Jim Meyering  <meyering@redhat.com>
27036
27037         * modules/getndelim2 (License): Relicense to LGPLv2+.
27038         Approved by Richard Stallman for the version of 1995, and by
27039         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27040
27041 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27042
27043         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27044         dummy if one is not available.  Do not touch them if
27045         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27046         (getc_maybe_unlocked): New.
27047         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27048
27049 2008-08-26  Eric Blake  <ebb9@byu.net>
27050
27051         doc/INSTALL: resync from autoconf
27052         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27053         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27054         moving...
27055         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27056         * INSTALL: Regenerate.
27057         * INSTALL.ISO: New file.
27058         * INSTALL.UTF-8: Likewise.
27059
27060 2008-08-26  Jim Meyering  <meyering@redhat.com>
27061
27062         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27063         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27064         these definitions conditional, so that they may be overridden, too.
27065
27066 2008-08-26  Bruno Haible  <bruno@clisp.org>
27067
27068         Generate INSTALL file variants with prettier quotes.
27069         * doc/Makefile (INSTALL_PRELUDE): New macro.
27070         (INSTALL): Use it.
27071         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27072
27073 2008-08-26  Bruno Haible  <bruno@clisp.org>
27074
27075         Run makeinfo in an English locale.
27076         * doc/Makefile (MAKEINFO): New variable.
27077
27078 2008-08-26  Bruno Haible  <bruno@clisp.org>
27079
27080         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27081         Suggested by Eric Blake.
27082
27083 2008-08-25  Bruno Haible  <bruno@clisp.org>
27084
27085         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27086
27087 2008-08-25  Eric Blake  <ebb9@byu.net>
27088
27089         c-stack: test that stack overflow can be caught
27090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27091         that platform allows handling stack overflow; at least OS/2 EMX
27092         has sigaltstack, but crashes before transferring control to
27093         handler on stack overflow.
27094         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27095         check for HAVE_STACK_OVERFLOW_HANDLING.
27096         Reported by Elbert Pol.
27097
27098 2008-08-25  Bruno Haible  <bruno@clisp.org>
27099
27100         * doc/posix-functions/strftime.texi: Fix description of strftime
27101         module.
27102
27103 2008-08-24  Bruno Haible  <bruno@clisp.org>
27104
27105         * tests/uniwidth/test-uc_width2.c: New file.
27106         * tests/uniwidth/test-uc_width2.sh: New file.
27107         * modules/uniwidth/width-tests (Files): Add the new files.
27108         (TESTS): Add uniwidth/test-uc_width2.sh.
27109         (TESTS_ENVIRONMENT): New variable.
27110         (check_PROGRAMS): Add test-uc_width2.
27111         (test_uc_width2_SOURCES): New variable.
27112
27113         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27114         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27115         not 0x00AB.
27116         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27117
27118 2008-08-22  Eric Blake  <ebb9@byu.net>
27119
27120         test-lock, test-tls: mention why a test is skipped
27121         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27122         skipped.
27123         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27124
27125         count-one-bits: relax license
27126         * modules/count-one-bits (License): Relicense to LGPLv2+.
27127         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27128
27129 2008-08-22  Andreas Schwab  <schwab@suse.de>
27130
27131         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27132         Remove spurious space in assignment.
27133
27134 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27135
27136         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27137         Paul Eggert <eggert@CS.UCLA.EDU>.
27138
27139 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27140
27141         * modules/gettext: Add m4/threadlib.m4.
27142
27143 2008-08-19  Eric Blake  <ebb9@byu.net>
27144
27145         test-c-stack: fix compilation failure on FreeBSD 5.0
27146         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27147         headers before <sys/resource.h>.
27148         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27149         the bug.
27150         Reported by Nelson H. F. Beebe.
27151
27152         strverscmp: migrate from "strverscmp.h" to <string.h>
27153         * modules/string (Makefile.am): Add new hooks.
27154         * modules/strverscmp (Files): Remove strverscmp.h.
27155         (Depends-on): Add string.
27156         (configure.ac): Add indicator.
27157         (Include): Mention new header.
27158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27159         defaults.
27160         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27161         results.
27162         * lib/strverscmp.h: Delete.
27163         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27164         * tests/test-strverscmp.c (includes): Adjust client.
27165         * lib/check-version.c (includes): Likewise.
27166         * NEWS: Document the change.
27167
27168         strverscmp: add unit test
27169         * modules/strverscmp-tests: New file.
27170         * tests/test-strverscmp.c: Likewise.
27171
27172 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27173
27174         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27175         regarding Windows crypto stuff, from Mono.
27176
27177 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27178
27179         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27180         if present, for intel RND.  Return error on failures.
27181
27182 2008-08-18  Ben Pfaff  <blp@gnu.org>
27183
27184         gitlog-to-changelog: give better diagnostic for failed pipe-open
27185         * build-aux/gitlog-to-changelog: Improve error message: suggest
27186         that the version of Git may be too old.
27187
27188 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27189
27190         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27191         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27192
27193 2008-08-18  Bruno Haible  <bruno@clisp.org>
27194
27195         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27196         pthread_in_use().
27197
27198 2008-08-18  Bruno Haible  <bruno@clisp.org>
27199
27200         * lib/glthread/threadlib.c: Include <pthread.h>.
27201
27202 2008-08-18  Bruno Haible  <bruno@clisp.org>
27203
27204         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27205         glthread_recursive_lock_* macros.
27206         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27207         Fix syntax error.
27208
27209 2008-08-18  Bruno Haible  <bruno@clisp.org>
27210
27211         * lib/glthread/thread.c: Avoid forcing a context switch right after
27212         thread creation.
27213
27214 2008-08-17  Bruno Haible  <bruno@clisp.org>
27215
27216         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27217         * lib/glthread/thread.h: Provide Win32 specific implementation.
27218         * modules/thread (Files): Add lib/glthread/thread.c.
27219         (Depends-on): Add lock.
27220         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27221
27222 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27223
27224         New module 'yield'.
27225         * modules/yield: New file.
27226         * lib/glthread/yield.h: New file.
27227         * m4/yield.m4: New file.
27228         * MODULES.html.sh (Multithreading): Add yield.
27229
27230 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27231
27232         New module 'thread'.
27233         * modules/thread: New file.
27234         * lib/glthread/thread.h: New file.
27235         * m4/thread.m4: New file.
27236         * MODULES.html.sh (Multithreading): Add thread.
27237
27238 2008-08-17  Bruno Haible  <bruno@clisp.org>
27239
27240         * lib/glthread/lock.h: Include <stdlib.h> always.
27241         * lib/glthread/tls.h: Likewise.
27242         * lib/glthread/cond.h: Likewise.
27243
27244 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27245
27246         New module 'cond'.
27247         * modules/cond: New file.
27248         * lib/glthread/cond.h: New file.
27249         * lib/glthread/cond.c: New file.
27250         * m4/cond.m4: New file.
27251         * MODULES.html.sh (Multithreading): Add cond.
27252
27253 2008-08-16  Eric Blake  <ebb9@byu.net>
27254
27255         c-stack: fix regression on Irix 5.3 from 2008-06-21
27256         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27257         sa_sigaction...
27258         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27259         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27260         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27261         * modules/signal (Makefile.am): Use the value.
27262         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27263         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27264         * doc/posix-headers/signal.texi (signal.h): Document this
27265         portability issue.
27266         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27267         Reported by Tom G. Christensen.
27268
27269 2008-08-17  Bruno Haible  <bruno@clisp.org>
27270
27271         New module 'threadlib'.
27272         * modules/threadlib: New file.
27273         * lib/glthread/threadlib.c: New file, extracted from
27274         lib/glthread/lock.c.
27275         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27276         functions.
27277         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27278         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27279         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27280         macros.
27281         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27282         (gl_DISABLE_THREADS): Remove macro.
27283         * modules/lock (Files): Remove build-aux/config.rpath.
27284         (Depends-on): Remove havelib. Add threadlib.
27285         (configure.ac-early): Remove section.
27286         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27287         * modules/tls (Depends-on): Remove lock. Add threadlib.
27288         (Link): New section, copied from threadlib.
27289         * MODULES.html.sh (Multithreading): Add threadlib.
27290
27291 2008-08-14  Bruno Haible  <bruno@clisp.org>
27292
27293         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27294         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27295         glthread_rwlock_unlock, glthread_rwlock_destroy,
27296         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27297         glthread_recursive_lock_destroy): Define as macros always.
27298         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27299         glthread_lock_lock.
27300         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27301         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27302         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27303         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27304         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27305         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27306         (glthread_recursive_lock_lock_func): Renamed from
27307         glthread_recursive_lock_lock.
27308         (glthread_recursive_lock_unlock_func): Renamed from
27309         glthread_recursive_lock_unlock.
27310         (glthread_recursive_lock_destroy_func): Renamed from
27311         glthread_recursive_lock_destroy.
27312
27313 2008-08-14  Bruno Haible  <bruno@clisp.org>
27314
27315         * lib/glthread/lock.h: Renamed from lib/lock.h.
27316         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27317         * lib/glthread/tls.h: Renamed from lib/tls.h.
27318         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27319         * lib/fstrcmp.c: Update includes.
27320         * lib/strsignal.c: Update includes.
27321         * modules/lock (Files, Makefile.am): Update.
27322         (Include): Change to "glthread/lock.h".
27323         * modules/tls (Files, Makefile.am): Update.
27324         (Include): Change to "glthread/tls.h".
27325         * tests/test-lock.c: Update includes.
27326         * tests/test-tls.c: Update includes.
27327         * NEWS: Mention the renamed header files.
27328
27329 2008-08-11  Jim Meyering  <meyering@redhat.com>
27330
27331         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27332
27333 2008-08-11  Eric Blake  <ebb9@byu.net>
27334
27335         test-c-stack: avoid C99-ism
27336         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27337         before statement.
27338         Reported by Alain Guibert.
27339
27340 2008-08-10  Jim Meyering  <meyering@redhat.com>
27341
27342         ensure that return value of uinttostr et al are not ignored
27343         * lib/inttostr.h (__GNUC_PREREQ): Define.
27344         (__attribute_warn_unused_result__): Define.
27345         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27346
27347 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27348
27349         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27350         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27351
27352 2008-08-07  Jim Meyering  <meyering@redhat.com>
27353
27354         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27355
27356         * modules/mkstemp (License): Relicense under LGPLv2+.
27357         * modules/tempname (License): Likewise.
27358
27359 2008-08-06  Bruno Haible  <bruno@clisp.org>
27360
27361         * lib/poll.c (poll): Further micro-optimization.
27362
27363 2008-08-06  Jim Meyering  <meyering@redhat.com>
27364
27365         inet_pton.c: use locale-independent tolower
27366         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
27367         (inet_pton6): Use c_tolower rather than tolower.
27368         * modules/inet_pton (Depends-on): Add c-ctype.
27369
27370 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
27371
27372         * lib/poll.c (poll): Avoid division when timeout is 0, cache
27373         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
27374
27375 2008-08-06  Jim Meyering  <meyering@redhat.com>
27376
27377         * modules/inet_pton (License): Relicense under LGPLv2+.
27378
27379 2008-08-03  Bruno Haible  <bruno@clisp.org>
27380
27381         Additional non-aborting API for lock and tls.
27382         * lib/lock.h: Include <errno.h>.
27383         (glthread_lock_init): New macro/function.
27384         (gl_lock_init): Define as wrapper around glthread_lock_init.
27385         (glthread_lock_lock): New macro/function.
27386         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
27387         (glthread_lock_unlock): New macro/function.
27388         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
27389         (glthread_lock_destroy): New macro/function.
27390         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
27391         (glthread_rwlock_init): New macro/function.
27392         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
27393         (glthread_rwlock_rdlock): New macro/function.
27394         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
27395         (glthread_rwlock_wrlock): New macro/function.
27396         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
27397         (glthread_rwlock_unlock): New macro/function.
27398         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
27399         (glthread_rwlock_destroy): New macro/function.
27400         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
27401         (glthread_recursive_lock_init): New macro/function.
27402         (gl_recursive_lock_init): Define as wrapper around
27403         glthread_recursive_lock_init.
27404         (glthread_recursive_lock_lock): New macro/function.
27405         (gl_recursive_lock_lock): Define as wrapper around
27406         glthread_recursive_lock_lock.
27407         (glthread_recursive_lock_unlock): New macro/function.
27408         (gl_recursive_lock_unlock): Define as wrapper around
27409         glthread_recursive_lock_unlock.
27410         (glthread_recursive_lock_destroy): New macro/function.
27411         (gl_recursive_lock_destroy): Define as wrapper around
27412         glthread_recursive_lock_destroy.
27413         (glthread_once): New macro/function.
27414         (gl_once): Define as wrapper around glthread_once.
27415         Update function declarations.
27416         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
27417         glthread_rwlock_init. Return error code.
27418         (glthread_rwlock_rdlock_multithreaded): Renamed from
27419         glthread_rwlock_rdlock. Return error code.
27420         (glthread_rwlock_wrlock_multithreaded): Renamed from
27421         glthread_rwlock_wrlock. Return error code.
27422         (glthread_rwlock_unlock_multithreaded): Renamed from
27423         glthread_rwlock_unlock. Return error code.
27424         (glthread_rwlock_destroy_multithreaded): Renamed from
27425         glthread_rwlock_destroy. Return error code.
27426         (glthread_recursive_lock_init_multithreaded): Renamed from
27427         glthread_recursive_lock_init. Return error code.
27428         (glthread_recursive_lock_lock_multithreaded): Renamed from
27429         glthread_recursive_lock_lock. Return error code.
27430         (glthread_recursive_lock_unlock_multithreaded): Renamed from
27431         glthread_recursive_lock_unlock. Return error code.
27432         (glthread_recursive_lock_destroy_multithreaded): Renamed from
27433         glthread_recursive_lock_destroy. Return error code.
27434         (glthread_once_call): Make static.
27435         (glthread_once_multithreaded): Renamed from glthread_once.
27436         * lib/tls.h: Include <errno.h>.
27437         (glthread_tls_key_init): New macro/function.
27438         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
27439         (glthread_tls_set): New macro/function.
27440         (gl_tls_set): Define as wrapper around glthread_tls_set.
27441         (glthread_tls_key_destroy): New macro/function.
27442         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
27443         Update function declarations.
27444         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
27445         glthread_tls_get.
27446         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27447
27448 2008-08-04  Eric Blake  <ebb9@byu.net>
27449
27450         gnumakefile: use space, not TAB, outside of targets
27451         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
27452
27453 2008-08-02  Jim Meyering  <meyering@redhat.com>
27454
27455         getdate.y: avoid locale-dependent date parsing failure
27456         In Turkish locales, getdate would fail to recognize keywords
27457         containing a lowercase "i".  The solution is not to rely on
27458         locale-sensitive case-conversion.
27459         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
27460         (lookup_word): Use c_toupper in place of toupper.
27461         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
27462         Reported by Vefa Bicakci <bicave@superonline.com> in
27463         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
27464         * modules/getdate (Depends-on): Add c-ctype.
27465
27466 2008-08-02  Bruno Haible  <bruno@clisp.org>
27467
27468         * gnulib-tool (func_import): When updating or creating a .gitignore
27469         file, prepend each added line with a slash, and ignore leading slashes
27470         from the existing lines.
27471         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27472
27473 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27474
27475         Portability fix for GNU make 3.79.1.
27476         * top/GNUmakefile: Avoid 'else COND', which older GNU make
27477         versions do not understand.
27478
27479 2008-08-01  Bruno Haible  <bruno@clisp.org>
27480
27481         Work around bug of HP-UX 10.20 cc with -0.0 literal.
27482         * tests/test-isnanf.h (zero): New variable.
27483         (main): Avoid literal -0.0f.
27484         * tests/test-isnand.h (zero): New variable.
27485         (main): Avoid literal -0.0.
27486         * tests/test-isnanl.h (zero): New variable.
27487         (main): Avoid literal -0.0L.
27488         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
27489         (test_float, test_double, test_long_double): Avoid literals -0.0f,
27490         -0.0, -0.0L.
27491         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
27492         (test_signbitd): Avoid literal -0.0.
27493         (test_signbitl): Avoid literal -0.0L.
27494         * tests/test-ceilf1.c (zero): New variable.
27495         (main): Avoid literal -0.0f.
27496         * tests/test-ceill.c (zero): New variable.
27497         (main): Avoid literal -0.0L.
27498         * tests/test-floorf1.c (zero): New variable.
27499         (main): Avoid literal -0.0f.
27500         * tests/test-floorl.c (zero): New variable.
27501         (main): Avoid literal -0.0L.
27502         * tests/test-roundf1.c (zero): New variable.
27503         (main): Avoid literal -0.0f.
27504         * tests/test-round1.c (zero): New variable.
27505         (main): Avoid literal -0.0.
27506         * tests/test-roundl.c (zero): New variable.
27507         (main): Avoid literal -0.0L.
27508         * tests/test-truncf1.c (zero): New variable.
27509         (main): Avoid literal -0.0f.
27510         * tests/test-trunc1.c (zero): New variable.
27511         (main): Avoid literal -0.0.
27512         * tests/test-truncl.c (zero): New variable.
27513         (main): Avoid literal -0.0L.
27514         * tests/test-frexp.c (zero): New variable.
27515         (main): Avoid literal -0.0.
27516         * tests/test-frexpl.c (zero): New variable.
27517         (main): Avoid literal -0.0L.
27518         * tests/test-ldexpl.c (zero): New variable.
27519         (main): Avoid literal -0.0L.
27520         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27521         (zerod, zerol): New variables.
27522         (test_function): Avoid literals -0.0, -0.0L.
27523         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27524         (zerod, zerol): New variables.
27525         (test_function): Avoid literals -0.0, -0.0L.
27526         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27527         (zerod, zerol): New variables.
27528         (test_function): Avoid literals -0.0, -0.0L.
27529         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27530         (zerod, zerol): New variables.
27531         (test_function): Avoid literals -0.0, -0.0L.
27532         * tests/test-strtod.c (zero): New variable.
27533         (main): Avoid literal -0.0.
27534         Reported by Jonathan C. Patschke <jp@centtech.com>.
27535
27536 2008-07-31  Jim Meyering  <meyering@redhat.com>
27537
27538         sha256.h: correct definition of SHA224_DIGEST_SIZE
27539         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
27540         Reported by Paulie Pena IV <paulie4@gmail.com>.
27541         Define as 224 / 8, rather than as a literal.
27542         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
27543         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
27544         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
27545
27546 2008-07-31  Bruno Haible  <bruno@clisp.org>
27547
27548         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
27549         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
27550         Reported by Jonathan Patschke <jp@centtech.com>.
27551
27552 2008-07-31  Bruno Haible  <bruno@clisp.org>
27553
27554         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
27555         Reported by Paolo Bonzini <bonzini@gnu.org>.
27556
27557 2008-07-30  Eric Blake  <ebb9@byu.net>
27558
27559         test-strtod: allow compilation without -lm
27560         * tests/test-strtod.c (main): Avoid link dependence on fabs.
27561         Reported by Dennis Clarke <blastwave@gmail.com>.
27562
27563 2008-07-28  Jim Meyering  <meyering@redhat.com>
27564
27565         bootstrap: work also when there are no .po files in po/
27566         * build-aux/bootstrap (update_po_files): Complete the change
27567         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
27568
27569 2008-07-27  Jim Meyering  <meyering@redhat.com>
27570
27571         * users.txt: Add zile.
27572
27573 2008-07-26  Ben Pfaff  <blp@gnu.org>
27574
27575         Add missing dependencies on new m4/exponent[fdl].m4 files.
27576         * modules/isnanf-nolibm: Add m4/exponentf.m4.
27577         * modules/isnand-nolibm: Add m4/exponentd.m4.
27578         * modules/isnanl-nolibm: Add m4/exponentl.m4.
27579         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
27580         m4/isnan[fdl].m4, because the macros actually used moved.
27581         Reported by Jim Meyering.
27582
27583 2008-07-14  Ben Pfaff  <blp@gnu.org>
27584
27585         Add isinf module.
27586         * lib/isinf.c: New file.
27587         * lib/math.in.h: Define isinf macro if we have decided to replace
27588         it.
27589         * m4/isinf.m4: New file.
27590         * m4/math_h.m4: Initialize and substitute variables for isinf
27591         module.
27592         * modules/isinf: New file.
27593         * modules/isinf-tests: New file.
27594         * modules/math: Add substitutions for new module.
27595         * tests/test-isinf.c: New file.
27596         * doc/posix-functions/isinf.texi: Mention new module.
27597         * MODULES.html.sh: Mention new module.
27598
27599 2008-07-14  Ben Pfaff  <blp@gnu.org>
27600
27601         Factor out some macros for use by additional modules.
27602         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
27603         exponentf.m4.
27604         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
27605         exponentd.m4.
27606         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
27607         file exponentl.m4.
27608         * m4/exponentf.m4: New file.
27609         * m4/exponentd.m4: New file.
27610         * m4/exponentl.m4: New file.
27611         * modules/isnanf: Use new file m4/exponentf.m4.
27612         * modules/isnand: Use new file m4/exponentd.m4.
27613         * modules/isnanl: Use new file m4/exponentl.m4.
27614
27615 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
27616
27617         mktime.c: normalize tp->tm_isdst value to -1/0/1.
27618         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
27619         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
27620         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
27621
27622         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
27623         readlink on platforms without PATH_MAX.
27624
27625 2008-07-21  Eric Blake  <ebb9@byu.net>
27626
27627         Warn, not fail, on stale version.
27628         * top/GNUmakefile (_curr-ver): Tone down previous patch.
27629
27630         Don't allow installation with stale devel version number.
27631         * top/GNUmakefile (_is-install-target): New macro.
27632         (_curr-ver): Forbid installation with stale version number.
27633
27634 2008-07-20  Bruno Haible  <bruno@clisp.org>
27635
27636         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
27637         TESTS_ENVIRONMENT.
27638         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
27639
27640 2008-07-20  Bruno Haible  <bruno@clisp.org>
27641
27642         * lib/c-stack.h (c_stack_action): Add documentation.
27643         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
27644
27645 2008-07-20  Bruno Haible  <bruno@clisp.org>
27646
27647         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
27648         * modules/readlink (License): Likewise.
27649
27650 2008-07-17  Eric Blake  <ebb9@byu.net>
27651
27652         * modules/c-stack (Link): Fix typo.
27653
27654         Make c-stack use libsigsegv, when available.
27655         * modules/c-stack (Depends-on): Add libsigsegv.
27656         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
27657         needed.
27658         * lib/c-stack.c (SIGSTKSZ): Define fallback.
27659         (segv_handler, overflow_handler, c_stack_action)
27660         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
27661         implementation when libsigsegv is available, but only when using
27662         the library is necessary.
27663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
27664         comment, explaining why XSI check fails on Linux.
27665         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
27666         * tests/test-c-stack2.sh: Tweak skip message.
27667         * NEWS: Document new link-time requirements.
27668
27669 2008-07-16  Eric Blake  <ebb9@byu.net>
27670
27671         c-stack: Expose false positives when not using libsigsegv.
27672         * modules/c-stack-tests (Files): Expand test.
27673         * tests/test-c-stack.c (main): Add means to conditionally trigger
27674         non-overflow SIGSEGV.
27675         * tests/test-c-stack2.sh: New file.
27676
27677 2008-07-14  Bruno Haible  <bruno@clisp.org>
27678
27679         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
27680         Reported by Eric Blake.
27681
27682 2008-07-14  Sam Steingold  <sds@gnu.org>
27683             Bruno Haible  <bruno@clisp.org>
27684
27685         New module libsigsegv.
27686         * modules/libsigsegv: New file.
27687         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
27688         modifications.
27689         * MODULES.html.sh (Signal handling): New section.
27690
27691 2008-07-14  Bruno Haible  <bruno@clisp.org>
27692
27693         * modules/unictype/ctype-* (Description): Add the word "function".
27694         Improves the resulting doc in MODULES.html.
27695
27696 2008-07-12  Ben Pfaff  <blp@gnu.org>
27697
27698         Add longlong module.
27699         * modules/longlong: New file.
27700
27701 2008-07-12  Bruno Haible  <bruno@clisp.org>
27702
27703         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
27704         to empty.
27705
27706 2008-07-10  Ben Pfaff  <blp@gnu.org>
27707
27708         Add isnan module.
27709         * doc/posix-functions/isnan.texi: Mention new module.
27710         * lib/math.in.h: Define isnan macro if we have decided to replace
27711         it.
27712         * m4/isnan.m4: New file.
27713         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
27714         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
27715         also.
27716         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
27717         redundancy.
27718         * m4/math_h.m4: Initialize and substitute variables for isnan
27719         module.
27720         * modules/isnan: New file.
27721         * modules/isnan-tests: New file.
27722         * modules/math: Add substitutions for new module.
27723         * tests/test-isnan.c: New file.
27724         * MODULES.html.sh: Mention new module.
27725
27726 2008-07-10  Ben Pfaff  <blp@gnu.org>
27727
27728         Add isnanf module.
27729         * lib/isnanf.m4: New file.
27730         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
27731         (gl_HAVE_ISNANF_IN_LIBM): New macro.
27732         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
27733         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
27734         * modules/isnanf: New file.
27735         * modules/isnanf-tests: New file.
27736         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
27737         files.
27738         * tests/test-isnanf-nolibm.c: factored most of its contents into
27739         new file tests/test-isnanf.h.
27740         * tests/test-isnanf.h: New file.
27741         * tests/test-isnanf.c: New file.
27742         * MODULES.html.sh: Mention new module.
27743         * doc/glibc-functions/isnanf.texi: Mention new module.
27744
27745 2008-07-10  Ben Pfaff  <blp@gnu.org>
27746
27747         Add isnand module.
27748         * lib/isnand.h: New file.
27749         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
27750         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
27751         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
27752         functionality also.
27753         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
27754         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
27755         (gl_HAVE_ISNAND_IN_LIBM): New macro.
27756         * modules/isnand: New file.
27757         * modules/isnand-tests: New file.
27758         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
27759         files.
27760         * tests/test-isnand-nolibm.c: factored most of its contents into
27761         new file tests/test-isnand.h.
27762         * tests/test-isnand.h: New file.
27763         * tests/test-isnand.c: New file.
27764         * MODULES.html.sh: Mention new module.
27765
27766 2008-07-10  Ben Pfaff  <blp@gnu.org>
27767
27768         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
27769         * lib/isnand.h: Rename lib/isnand-nolibm.h.
27770         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
27771         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
27772         * modules/isnanf-nolibm: Update references to renamed files.
27773         * modules/isnand-nolibm: Likewise.
27774         * modules/isnanf-nolibm-tests: Likewise.
27775         * modules/isnand-nolibm-tests: Likewise.
27776         * lib/frexp.c: Likewise.
27777         * lib/isfinite.c: Likewise.
27778         * lib/signbitd.c: Likewise.
27779         * lib/signbitf.c: Likewise.
27780         * lib/vasnprintf.c: Likewise.
27781         * tests/test-ceilf1.c: Likewise.
27782         * tests/test-ceilf2.c: Likewise.
27783         * tests/test-floorf1.c: Likewise.
27784         * tests/test-floorf2.c: Likewise.
27785         * tests/test-frexp.c: Likewise.
27786         * tests/test-round1.c: Likewise.
27787         * tests/test-round2.c: Likewise.
27788         * tests/test-roundf1.c: Likewise.
27789         * tests/test-strtod.c: Likewise.
27790         * tests/test-trunc1.c: Likewise.
27791         * tests/test-trunc2.c: Likewise.
27792         * tests/test-truncf1.c: Likewise.
27793         * tests/test-truncf2.c: Likewise.
27794         * NEWS: Mention the renamed header files.
27795
27796 2008-07-11  Jim Meyering  <meyering@redhat.com>
27797
27798         vc-list-files: make the last-resort awk code more portable
27799         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
27800         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
27801         does not support it.
27802
27803 2008-07-10  Eric Blake  <ebb9@byu.net>
27804
27805         Work with tar's bootstrap.
27806         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
27807         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
27808         an m4 comment.
27809
27810 2008-07-09  Jim Meyering  <meyering@redhat.com>
27811
27812         posix-shell.m4: fix typo that made this test malfunction
27813         * m4/posix-shell.m4: Remove capitalization in variable name.
27814
27815 2008-07-08  Bruno Haible  <bruno@clisp.org>
27816
27817         * m4/onceonly.m4: Update comments.
27818         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27819
27820 2008-07-04  Jim Meyering  <meyering@redhat.com>
27821
27822         * users.txt: Add vc-dwim.
27823         (bison, coreutils): Use the gitweb URL.
27824
27825 2008-07-03  Jim Meyering  <meyering@redhat.com>
27826
27827         * users.txt: Add libffcall.  From Sam Steingold.
27828
27829 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
27830
27831         getdate.y: do not ignore TZ with relative day, month or year offset
27832         * lib/getdate.y (get_date): Move the tz-handling block to follow the
27833         relative-date-handling, since otherwise, the latter would clobber the
27834         sole output (an updated Start value) of the tz-handling block.
27835         * tests/test-getdate.c: Tests for the fix
27836
27837 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27838
27839         Recognize 'foo_LIBRARIES += libgnu.a'.
27840         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
27841         makefile snippet has already specified an installation location,
27842         also using '+='.
27843
27844 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
27845
27846         getdate.y: factor out common actions
27847         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
27848         Use them in place of open-coded actions.
27849
27850 2008-07-01  Simon Josefsson  <simon@josefsson.org>
27851
27852         Add self-test for getdate module.
27853         * modules/getdate-tests: New file.
27854         * tests/test-getdate.c: New file.
27855
27856 2008-06-29  Bruno Haible  <bruno@clisp.org>
27857
27858         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
27859         .gitignore.
27860         Reported by Sylvain Beucler <beuc@beuc.net>.
27861
27862 2008-06-29  Bruno Haible  <bruno@clisp.org>
27863
27864         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
27865         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
27866
27867 2008-06-29  Bruno Haible  <bruno@clisp.org>
27868
27869         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
27870         EXTRA_DIST.
27871         Reported by Sylvain Beucler <beuc@beuc.net>.
27872
27873 2008-06-26  Jim Meyering  <meyering@redhat.com>
27874
27875         make several modules depend on the "open" module
27876         This provides slightly increased consistency when opening-for-write
27877         the name of a non-directory spelled with a trailing slash.
27878         * modules/chdir-safer: Likewise.
27879         * modules/chown: Likewise.
27880         * modules/clean-temp: Likewise.
27881         * modules/copy-file: Likewise.
27882         * modules/fchdir: Likewise.
27883         * modules/fcntl-safer: Likewise.
27884         * modules/pipe: Likewise.
27885         * modules/utime: Likewise.
27886         Prompted by Eric Blake and Bruno Haible.
27887
27888 2008-06-24  Andreas Schwab  <schwab@suse.de>
27889
27890         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
27891         literals can be used as initializers for global variables.
27892
27893 2008-06-23  Eric Blake  <ebb9@byu.net>
27894
27895         Make gnulib-cache.m4 easier to diff.
27896         * gnulib-tool (func_import): Allow newlines when reading cached
27897         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
27898
27899 2008-06-23  Bruno Haible  <bruno@clisp.org>
27900
27901         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
27902         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
27903         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
27904         m4/signalblocking.m4.
27905         (gl_PREREQ_SIGACTION): Don't invoke it.
27906         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
27907         gl_PREREQ_SIG_HANDLER_H.
27908         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27909         Don't check for sigaction here.
27910
27911 2008-06-23  Bruno Haible  <bruno@clisp.org>
27912
27913         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
27914         (install_handlers): Don't set the SA_RESETHAND flag.
27915
27916 2008-06-23  Bruno Haible  <bruno@clisp.org>
27917
27918         * m4/sigaction.m4: Comment fixes.
27919         * lib/signal.in.h: Likewise.
27920
27921 2008-06-23  Eric Blake  <ebb9@byu.net>
27922
27923         Fix typo.
27924         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27925
27926         Avoid SA_ namespace.
27927         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27928         Reported by Ralf Wildenhues.
27929
27930         Avoid test failure due to SA_RESTORER.
27931         * tests/test-sigaction.c (SA_MASK): New macro.
27932         (main): Avoid failing due to extension flags being set.
27933         Reported by Jim Meyering.
27934
27935         Revert use of sig-handler.h in sigprocmask.c.
27936         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27937         it requires the existence of struct sigaction.
27938         * lib/sigprocmask.c (handler_t): Restore typedef.
27939         (rpl_signal, old_handlers): Use local type.
27940
27941 2008-06-22  Bruno Haible  <bruno@clisp.org>
27942
27943         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27944         conditionally.
27945         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27946
27947 2008-06-22  Bruno Haible  <bruno@clisp.org>
27948
27949         * doc/posix-functions/siginterrupt.texi: Move note.
27950
27951         * lib/signal.in.h (SA_RESTART): New macro.
27952         * lib/sigaction.c: Update comment.
27953
27954         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
27955
27956         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
27957         (gl_PREREQ_SIGPROCMASK): Invoke it.
27958         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
27959
27960         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
27961
27962         * lib/sigprocmask.c: Update a comment.
27963
27964 2008-06-21  Eric Blake  <ebb9@byu.net>
27965
27966         Use sigaction module rather than signal().
27967         * modules/c-stack (Depends-on): Add sigaction.
27968         * modules/fatal-signal (Depends-on): Likewise.
27969         * modules/nanosleep (Depends-on): Likewise.
27970         * modules/sigprocmask (Files): Add sig-handler.h.
27971         * modules/sigaction (Files): Likewise.
27972         * lib/sig-handler.h (get_handler): New file, suggested by Paul
27973         Eggert.
27974         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
27975         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
27976         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27977         (init_fatal_signals): Likewise.
27978         * lib/nanosleep.c (rpl_nanosleep): Likewise.
27979         (siginterrupt): Delete fallback.
27980         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
27981         instead.
27982         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
27983         siginterrupt.
27984
27985         New module sigaction, for mingw.
27986         * modules/sigaction: New module...
27987         * modules/sigaction-tests: ...and its test.
27988         * m4/sigaction.m4: New file.
27989         * lib/sigaction.c: Likewise.
27990         * tests/test-sigaction.c: Likewise.
27991         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
27992         * modules/signal (Makefile.am): Likewise.
27993         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
27994         needed.
27995         * doc/posix-headers/signal.texi (signal.h): Mention provided
27996         types.
27997         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
27998         that sigaction is preferable.
27999         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28000         module.
28001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28002         sigaction.
28003
28004         Improve robustness of sigprocmask by overriding signal.
28005         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28006         is in use.
28007         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28008         (SIGKILL, SIGSTOP): Provide fallbacks.
28009         (rpl_signal): Implement.
28010         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28011         signal can be called inside handlers.
28012
28013         Fix nanosleep module on mingw.
28014         * modules/nanosleep (Depends-on): Add sys_select.
28015         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28016
28017         Fix licensing of sigprocmask.
28018         * modules/raise (License): Relicense as LGPL.
28019
28020 2008-06-21  Bruno Haible  <bruno@clisp.org>
28021
28022         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28023         result if it contains question marks.
28024         Reported by Michael Geng <linux@michaelgeng.de>.
28025
28026 2008-06-19  Bruno Haible  <bruno@clisp.org>
28027
28028         Fix CVS-ism.
28029         * doc/gnulib.texi: Include updated-stamp.texi.
28030         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28031         (updated-stamp.texi): New rule.
28032         (gnulib.info): Depend on it.
28033         * doc/.gitignore: Add updated-stamp.texi.
28034         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28035
28036 2008-06-19  Bruno Haible  <bruno@clisp.org>
28037
28038         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28039         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28040
28041 2008-06-19  Eric Blake  <ebb9@byu.net>
28042
28043         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28044         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28045         Reported by Stepan Kasal.
28046
28047 2008-06-18  Bruno Haible  <bruno@clisp.org>
28048
28049         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28050         Reported by Eric Blake.
28051
28052 2008-06-18  Eric Blake  <ebb9@byu.net>
28053
28054         Work around cygwin 1.5.25 strsignal bug.
28055         * tests/test-strsignal.c: Allow for const char *.
28056         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28057
28058 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28059
28060         * users.txt: Update URL to article and add author/date
28061         information.
28062
28063 2008-06-17  Bruno Haible  <bruno@clisp.org>
28064
28065         New macro gl_DISABLE_THREADS.
28066         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28067         if the user did not pass --enable-threads or --disable-threads option.
28068         (gl_DISABLE_THREADS): New macro.
28069         Reported by Eric Blake <ebb9@byu.net>.
28070
28071 2008-06-17  Bruno Haible  <bruno@clisp.org>
28072
28073         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28074         when the macro ignores it.
28075         Based on a patch by Eric Blake <ebb9@byu.net>.
28076
28077 2008-06-17  Bruno Haible  <bruno@clisp.org>
28078
28079         * modules/tls (License): Change to LGPLv2+.
28080         Reported by Eric Blake.
28081
28082 2008-06-17  Eric Blake  <ebb9@byu.net>
28083
28084         Simplify c-stack prerequisites.
28085         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28087         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28088         check.
28089         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28090         <sys/resource.h>.
28091
28092         Move c-stack test into testsuite.
28093         * modules/c-stack-tests: New file.
28094         * lib/c-stack.c [DEBUG]: Move test program...
28095         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28096         fail test if sigaltstack is lacking.
28097         * tests/test-c-stack.sh: New driver file.
28098
28099 2008-06-16  Eric Blake  <ebb9@byu.net>
28100
28101         Use raise module consistently.
28102         * modules/fatal-signal (Depends-on): Add raise.
28103         * modules/sigprocmask (Depends-on): Likewise.
28104         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28105         * lib/sigprocmask.c (sigprocmask): Likewise.
28106         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28107         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28108
28109         Fix compliance bug in sigpending.
28110         * lib/sigprocmask.c (sigpending): Return pending array via
28111         parameter, not return value.
28112
28113 2008-06-14  Eric Blake  <ebb9@byu.net>
28114
28115         Improve obstack-printf test code.
28116         * tests/test-obstack-printf.c (test_function): Fix comment, and
28117         simplify usage of obstack_* in macros.  Add a test for coverage.
28118         Reported by Bruno Haible.
28119
28120 2008-06-14  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28123         array size as a constant, not as a const variable.
28124         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28125         AC_USE_SYSTEM_EXTENSIONS.
28126         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28127         Test whether the obstack_printf function actually exists.
28128         * modules/obstack-printf (Depends-on): Add extensions.
28129         (Include): Remove obstack.h.
28130         * modules/obstack-printf-posix (Depends-on): Add extensions.
28131         (Include): Remove obstack.h.
28132
28133 2008-06-13  Eric Blake  <ebb9@byu.net>
28134
28135         Add obstack-printf and obstack-printf-posix modules.
28136         * modules/obstack-printf: New file.
28137         * modules/obstack-printf-posix: Likewise.
28138         * MODULES.html.sh (Misc): Mention them.
28139         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28140         Likewise.
28141         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28142         Likewise.
28143         * modules/stdio (Makefile.am): Accomodate new modules.
28144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28145         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28146         Declare.
28147         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28148         functions.
28149         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28150         (gl_REPLACE_OBSTACK_PRINTF): New macros
28151         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28152         * tests/test-obstack-printf.c: New file.
28153         * modules/obstack-printf-tests: Likewise.
28154         * modules/obstack-printf-posix-tests: Likewise.
28155
28156 2008-06-11  Bruno Haible  <bruno@clisp.org>
28157
28158         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28159         * lib/open.c: Include errno.h.
28160         (open): Fail when attempting to write to a file that has a trailing
28161         slash.
28162         * tests/test-open.c (main): Test against trailing slash bug.
28163         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28164
28165 2008-06-10  Bruno Haible  <bruno@clisp.org>
28166
28167         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28168         for $? to work inside the trap command, with various /bin/sh-s.
28169         * tests/test-vc-list-files-cvs.sh: Likewise.
28170
28171 2008-06-10  Bruno Haible  <bruno@clisp.org>
28172
28173         * lib/acl-internal.h: Don't include gettext.h here.
28174         * lib/set-mode-acl.c: Include gettext.h here.
28175         * lib/copy-acl.c: Likewise.
28176
28177 2008-06-10  Bruno Haible  <bruno@clisp.org>
28178
28179         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28180         * lib/wait-process.c (wait_subprocess): Likewise.
28181         * lib/execute.h (execute): Add termsigp argument.
28182         * lib/execute.c (execute): Likewise.
28183         * lib/csharpcomp.c (compile_csharp_using_pnet,
28184         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28185         * lib/csharpexec.c (execute_csharp_using_pnet,
28186         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28187         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28188         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28189         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28190         is_jikes_present): Update.
28191         * lib/javaexec.c (execute_java_class): Update.
28192         * lib/javaversion.c (execute_and_read_line): Update.
28193         * NEWS: Document the changes.
28194         Reported by Eric Blake.
28195
28196 2008-06-10  Eric Blake  <ebb9@byu.net>
28197
28198         Add missing include.
28199         * tests/test-strstr.c (includes): Add <signal.h>.
28200         * tests/test-strcasestr.c (includes): Likewise.
28201         * tests/test-memmem.c (includes): Likewise.
28202
28203 2008-06-10  Bruno Haible  <bruno@clisp.org>
28204
28205         * lib/wait-process.c (wait_subprocess): Add an assertion.
28206
28207 2008-06-10  Bruno Haible  <bruno@clisp.org>
28208
28209         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28210
28211 2008-06-10  Bruno Haible  <bruno@clisp.org>
28212
28213         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28214         using alarm().
28215         * tests/test-strcasestr.c (main): Likewise.
28216         * tests/test-strstr.c (main): Likewise.
28217
28218 2008-06-09  Bruno Haible  <bruno@clisp.org>
28219
28220         Work around the Solaris 10 ACE ACLs ABI change.
28221         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28222         declare if ACL_NO_TRIVIAL is present.
28223         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28224         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28225         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28226         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28227         define if ACL_NO_TRIVIAL is present.
28228         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28229         and use the current ABI.
28230         (file_has_acl): Use same #if condition as elsewhere.
28231         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28232         in use, and use the current ABI.
28233         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28234         Reported by Jim Meyering.
28235
28236 2008-06-09  Eric Blake  <ebb9@byu.net>
28237
28238         Work around environments that (stupidly) ignore SIGALRM.
28239         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28240         before using alarm().
28241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28242         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28243         Reported by Ian Beckwith <ianb@erislabs.net>.
28244
28245         Produce autobuild blurb earlier in log.
28246         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28247
28248 2008-06-09  Jim Meyering  <meyering@redhat.com>
28249         and OndÅ™ej Vašík  <ovasik@redhat.com>
28250
28251         utimens.c: correct kernel bug work-around
28252         OndÅ™ej Vašík found that the invalid return value of 280 indicates
28253         failure, not success, and the kernel bug we're trying to work
28254         around affects not just the utimensat call, but also the fallback
28255         futimens call.
28256         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28257         not success.
28258         [HAVE_FUTIMENS]: Use the same work-around, here.
28259
28260 2008-06-09  Jim Meyering  <meyering@redhat.com>
28261
28262         add more guards around definition of ACE_-related code
28263         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28264         ALLOW and ACE_OWNER are also defined.
28265
28266 2008-06-08  Bruno Haible  <bruno@clisp.org>
28267
28268         * lib/acl-internal.h: Add me as co-author.
28269         * lib/file-has-acl.c: Likewise.
28270         * lib/set-mode-acl.c: Likewise.
28271         * lib/copy-acl.c: Likewise.
28272
28273 2008-06-08  Bruno Haible  <bruno@clisp.org>
28274
28275         Add support for AIX ACLs.
28276         * lib/acl-internal.h (acl_nontrivial): New declaration.
28277         * lib/file-has-acl.c (acl_nontrivial): New function.
28278         (file_has_acl): Add implementation using AIX 4 ACL API.
28279         * lib/set-mode-acl.c (qset_acl): Likewise.
28280         * lib/copy-acl.c (qcopy_acl): Likewise.
28281
28282 2008-06-08  Bruno Haible  <bruno@clisp.org>
28283
28284         Add support for HP-UX ACLs.
28285         * lib/acl-internal.h (acl_nontrivial): New declaration.
28286         * lib/file-has-acl.c (acl_nontrivial): New function.
28287         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28288         * lib/set-mode-acl.c (qset_acl): Likewise.
28289         * lib/copy-acl.c (qcopy_acl): Likewise.
28290
28291 2008-06-08  Bruno Haible  <bruno@clisp.org>
28292
28293         Add support for Cygwin ACLs.
28294         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28295         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28296         the chmod_or_fchmod call.
28297         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28298
28299 2008-06-08  Bruno Haible  <bruno@clisp.org>
28300
28301         Fix bug with setuid modes in Solaris 10+ code.
28302         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28303         succeeded, when the mode contains some special bits.
28304
28305 2008-06-08  Bruno Haible  <bruno@clisp.org>
28306
28307         Add support for Solaris 7..10 ACLs.
28308         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28309         declarations.
28310         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28311         functions.
28312         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28313         * lib/set-mode-acl.c (qset_acl): Likewise.
28314         * lib/copy-acl.c (qcopy_acl): Likewise.
28315
28316 2008-06-08  Bruno Haible  <bruno@clisp.org>
28317
28318         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28319         declaration.
28320         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28321         (acl_access_nontrivial): Remove MacOS X case.
28322         (file_has_acl): Use acl_extended_nontrivial.
28323         * lib/copy-acl.c (qcopy_acl): Likewise.
28324
28325 2008-06-08  Bruno Haible  <bruno@clisp.org>
28326
28327         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28328
28329 2008-06-08  Jim Meyering  <meyering@redhat.com>
28330
28331         * modules/acl (Maintainer): Add Bruno Haible.
28332
28333 2008-06-07  Bruno Haible  <bruno@clisp.org>
28334
28335         Improve support for Tru64 ACLs.
28336         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28337         ACL on OSF/1.
28338
28339 2008-06-07  Bruno Haible  <bruno@clisp.org>
28340
28341         Add support for MacOS X ACLs.
28342         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28343         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28344         * lib/set-mode-acl.c (qset_acl): Likewise.
28345         * lib/copy-acl.c (qcopy_acl): Likewise.
28346
28347 2008-06-07  Bruno Haible  <bruno@clisp.org>
28348
28349         Fix memory leak introduced on 2008-05-22.
28350         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28351         use.
28352
28353 2008-06-07  Bruno Haible  <bruno@clisp.org>
28354
28355         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28356         to construct an empty ACL.
28357
28358 2008-06-07  Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28361         precisely.
28362         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28363
28364 2008-06-07  Bruno Haible  <bruno@clisp.org>
28365
28366         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
28367         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
28368
28369 2008-06-07  Bruno Haible  <bruno@clisp.org>
28370
28371         * doc/posix-functions/_setjmp.texi: Explain the use of this function
28372         regardless of POSIX.
28373         * doc/posix-functions/_longjmp.texi: Likewise.
28374         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
28375         SystemV platform in this case.
28376
28377 2008-06-06  Eric Blake  <ebb9@byu.net>
28378
28379         Document abort() bugs.
28380         * doc/posix-functions/abort.texi (abort): Mention anomalies.
28381
28382         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
28383         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
28384         sigsetjmp.
28385         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
28386         siglongjmp, but only as a macro.
28387         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
28388         is obsolete.
28389         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
28390
28391         Tweak documentation to cover cygwin argz bugs.
28392         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
28393         argz bug fix; no code change needed since no cygwin releases
28394         occurred between the last fix and the bug being tested.
28395         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
28396         module and recently fixed cygwin bugs.
28397         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
28398         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
28399         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
28400         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
28401         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
28402         Likewise.
28403         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
28404         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
28405         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
28406         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
28407         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
28408         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
28409         Likewise.
28410
28411         Avoid gcc warning on cygwin.
28412         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
28413         !ACL_NO_TRIVIAL]: Avoid unused variable.
28414
28415 2008-06-05  Eric Blake  <ebb9@byu.net>
28416
28417         Be tolerant of UNKNOWN version in gnulib-tool test dir.
28418         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
28419         git-version-gen fails to come up with a version.
28420         Reported by Simon Josefsson.
28421
28422 2008-06-05  Jim Meyering  <meyering@redhat.com>
28423             Paul Eggert  <eggert@cs.ucla.edu>
28424
28425         utimens.c: work around a probable Linux kernel bug
28426         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
28427         appears to be a kernel bug that causes utimensat to return 280
28428         instead of 0, indicating success.
28429
28430 2008-06-04  Bruno Haible  <bruno@clisp.org>
28431
28432         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
28433         2008-06-01 commit.
28434
28435 2008-06-04  Bruno Haible  <bruno@clisp.org>
28436
28437         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
28438         * lib/file-has-acl.c (acl_access_nontrivial): New function.
28439         (file_has_acl): Use it. Save errno afterwards.
28440         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
28441
28442 2008-06-03  Bruno Haible  <bruno@clisp.org>
28443
28444         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
28445         draft code. Simplify #ifs.
28446         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
28447         Put Solaris code after POSIX-draft code. Fix comments regarding
28448         Solaris 10, HP-UX. Mention Cygwin.
28449         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
28450
28451 2008-06-03  Eric Blake  <ebb9@byu.net>
28452
28453         Provide fallback for older kernels.
28454         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
28455         Provide runtime fallback if kernel lacks support.
28456         Reported by Mike Frysinger.
28457
28458 2008-06-02  Bruno Haible  <bruno@clisp.org>
28459
28460         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
28461         it exists.
28462
28463 2008-06-02  Bruno Haible  <bruno@clisp.org>
28464
28465         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
28466         * lib/copy-acl.c (qcopy_acl): Update comment.
28467
28468 2008-06-02  Bruno Haible  <bruno@clisp.org>
28469
28470         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
28471         like ACL APIs.
28472
28473 2008-06-02  Bruno Haible  <bruno@clisp.org>
28474
28475         * tests/test-file-has-acl.sh: Use different code for Cygwin.
28476         * tests/test-set-mode-acl.sh: Likewise.
28477         * tests/test-copy-acl.sh: Likewise.
28478         * tests/test-copy-file.sh: Likewise.
28479
28480 2008-06-02  Bruno Haible  <bruno@clisp.org>
28481
28482         * tests/test-file-has-acl.sh: Remove unused code.
28483
28484 2008-06-01  Bruno Haible  <bruno@clisp.org>
28485
28486         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
28487         (copy_acl): Just a wrapper around qcopy_acl that emits the error
28488         messages.
28489         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
28490
28491 2008-06-01  Bruno Haible  <bruno@clisp.org>
28492
28493         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
28494         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
28495         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
28496         APIs.
28497         * modules/acl-tests (configure.ac): Remove tests now contained in
28498         m4/acl.m4.
28499
28500 2008-06-02  Jim Meyering  <meyering@redhat.com>
28501
28502         announce-gen: use a better key-server host name
28503         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
28504         it may be more consistently reliable.  Suggested by Werner Koch
28505         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
28506
28507 2008-06-01  Bruno Haible  <bruno@clisp.org>
28508
28509         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
28510         Reported by Voroskoi Andras <voroskoi@gmail.com>.
28511
28512 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
28513
28514         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
28515
28516 2008-06-01  Bruno Haible  <bruno@clisp.org>
28517
28518         New ACL tests.
28519         * tests/test-file-has-acl.sh: New file.
28520         * tests/test-file-has-acl.c: New file.
28521         * tests/test-set-mode-acl.sh: New file.
28522         * tests/test-set-mode-acl.c: New file.
28523         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
28524         * tests/test-copy-acl.c: New file.
28525         * modules/acl-tests: New file, based on modules/copy-file-tests.
28526         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
28527         (Depends-on): Add acl-tests.
28528         (configure.ac): Remove checks.
28529         (Makefile.am): Don't create test-sameacls program here any more.
28530
28531 2008-06-01  Bruno Haible  <bruno@clisp.org>
28532
28533         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
28534         * tests/test-sameacls.c: Include progname.h.
28535         (main): Invoke set_program_name. Portability fixes for MacOS X,
28536         Solaris, HP-UX.
28537
28538 2008-06-01  Bruno Haible  <bruno@clisp.org>
28539
28540         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
28541         function.
28542         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
28543
28544 2008-06-01  Bruno Haible  <bruno@clisp.org>
28545
28546         * modules/rpmatch (Depends-on): Add strdup.
28547
28548 2008-06-01  Bruno Haible  <bruno@clisp.org>
28549
28550         * lib/pipe.c: Include unistd-safer.h.
28551         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
28552         * modules/pipe (Depends-on): Add unistd-safer.
28553
28554 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28555
28556         * modules/autobuild (configure.ac): Call AB_INIT.
28557
28558 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28559
28560         * tests/test-getaddrinfo.c: Don't print debug messages by default.
28561         Suggested by Bruno Haible <bruno@clisp.org>.
28562
28563 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28564
28565         * tests/test-base64.c: Cast size_t to unsigned long when invoking
28566         printf.  Use %lu instead of %d.  Reported by Bruno Haible
28567         <bruno@clisp.org>.
28568
28569 2008-05-29  Eric Blake  <ebb9@byu.net>
28570
28571         Prefer new POSIX 200x interfaces over futimesat.
28572         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
28573         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
28574         when available.
28575         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
28576
28577 2008-05-28  Bruno Haible  <bruno@clisp.org>
28578
28579         * modules/stpcpy (License): Change to LGPLv2+.
28580         Requested by David Lutterkort <dlutter@redhat.com>.
28581
28582 2008-05-27  Bruno Haible  <bruno@clisp.org>
28583
28584         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
28585         current mingw.
28586         Reported by Jose E. Marchesi <jemarch@gnu.org>.
28587
28588 2008-05-27  Bruno Haible  <bruno@clisp.org>
28589
28590         * modules/iconv_open (Link): New section, from module 'iconv'.
28591         * modules/striconv (Link): Likewise.
28592         * modules/striconveh (Link): Likewise.
28593         * modules/xstriconv (Link): Likewise.
28594         * modules/unicodeio (Link): Likewise.
28595         * modules/propername (Link): Likewise.
28596         Reported by Jim Meyering.
28597
28598 2008-05-26  Jim Meyering  <meyering@redhat.com>
28599
28600         sha256: do not artificially restrict buffer length to be < 2^32
28601         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
28602         uint32_t to size_t.
28603         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
28604         to match.
28605
28606         avoid unaligned access errors, e.g., on sparc
28607         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
28608         direct access through a possibly-unaligned uint64* pointer.
28609         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
28610         direct access through a possibly-unaligned uint32* pointer.
28611         Prompted by this patch from Tom "spot" Callaway:
28612         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
28613
28614         sha512.c: fix typo in comment
28615         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
28616
28617 2008-05-25  Bruno Haible  <bruno@clisp.org>
28618
28619         * lib/set-mode-acl.c: Renamed from lib/acl.c.
28620         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
28621         (Makefile.am): Update lib_SOURCES.
28622
28623 2008-05-25  Bruno Haible  <bruno@clisp.org>
28624
28625         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
28626
28627 2008-05-25  Jim Meyering  <meyering@redhat.com>
28628
28629         useless-if-before-free: freed expr may have white-space differences
28630         * build-aux/useless-if-before-free: Recognize cases in which the
28631         freed expression differs from the tested one in embedded white
28632         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
28633         $1 was used, so we can't make any regexp shy.  Improved tests now
28634         detect this.
28635
28636         useless-if-before-free: accept white space in the expression.
28637         * build-aux/useless-if-before-free: For now, any white space
28638         in the expression must be identical in the free argument.
28639
28640         useless-if-before-free: efficiency tweak
28641         * build-aux/useless-if-before-free: Make the expression-matching
28642         regexp "shy".
28643         Make the *outer* regexp shy, not the expr-matching one.
28644
28645         update code-in-comment to accept cast of free arg
28646         * build-aux/useless-if-before-free: Update regexp.
28647
28648 2008-05-25  Bruno Haible  <bruno@clisp.org>
28649
28650         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
28651         * modules/copy-file-tests (Files, Makefile.am): Update.
28652         * tests/test-copy-file.c (func_test_copy): Update.
28653
28654 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
28655
28656         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
28657
28658 2008-05-23  Bruno Haible  <bruno@clisp.org>
28659
28660         Improve support for ACLs on OSF/1.
28661         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
28662         Remove fallback for unknown flavors of ACLs.
28663
28664 2008-05-22  Bruno Haible  <bruno@clisp.org>
28665
28666         Add support for ACLs on OSF/1.
28667         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
28668         replacements.
28669         (acl_free_text): New macro fallback.
28670         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
28671         acl_free.
28672         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
28673         acl_free_text function. Require AC_C_INLINE.
28674
28675 2008-05-22  Bruno Haible  <bruno@clisp.org>
28676
28677         Make copy_acl work on MacOS X 10.5.
28678         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
28679         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
28680         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
28681         If MODE_INSIDE_ACL, don't assume that every system has the same text
28682         representation for ACLs as FreeBSD.
28683         * lib/copy-acl.c (copy_acl): Add support for platforms with
28684         !MODE_INSIDE_ACL.
28685         * lib/file-has-acl.c (file_has_acl): Likewise.
28686         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
28687         FreeBSD, MacOS X, or IRIX, respectively.
28688
28689 2008-05-22  Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/acl.h: Don't include <sys/acl.h>.
28692         (GETACLCNT): Move fallback to lib/acl-internal.h.
28693         * lib/acl-internal.h: Include <sys/acl.h> here.
28694         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
28695
28696 2008-05-22  Bruno Haible  <bruno@clisp.org>
28697
28698         Split off copy_acl function to separate file.
28699         * lib/copy-acl.c: New file, extracted from lib/acl.c.
28700         * lib/acl.c (copy_acl): Moved function to separate file.
28701         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
28702         * modules/acl (Files): Add lib/copy-acl.c.
28703         (Makefiles.am): Augment lib_SOURCES.
28704
28705 2008-05-22  Bruno Haible  <bruno@clisp.org>
28706
28707         * modules/copy-file-tests: New file.
28708         * tests/test-copy-file.sh: New file.
28709         * tests/test-copy-file.c: New file.
28710         * tests/test-copy-file-sameacls.c: New file.
28711
28712 2008-05-22  Eric Blake  <ebb9@byu.net>
28713
28714         Avoid gcc warning.
28715         * tests/test-memcmp.c (main): Pass NULL indirectly.
28716
28717 2008-05-21  Bruno Haible  <bruno@clisp.org>
28718
28719         Add reference doc about ACLs.
28720         * doc/acl-resources.txt: New file.
28721         * doc/acl-cygwin.txt: New file.
28722
28723 2008-05-21  Bruno Haible  <bruno@clisp.org>
28724
28725         Avoid one more warning from gcc.
28726         * lib/vasnprintf.c (IF_LINT): Update comments.
28727         (VASNPRINTF): Use it also for the 'prefix' array initializer.
28728
28729 2008-05-21  Jim Meyering  <meyering@redhat.com>
28730
28731         avoid a warning from gcc
28732         * lib/vasnprintf.c (IF_LINT): Define.
28733         (scale10_round_decimal_long_double):
28734         Use it to avoid a "may be used uninitialized" warning.
28735         (scale10_round_decimal_double): Likewise.
28736
28737 2008-05-21  Simon Josefsson  <simon@josefsson.org>
28738
28739         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
28740         declared.
28741
28742 2008-05-20  Bruno Haible  <bruno@clisp.org>
28743
28744         * tests/test-memcmp.c (main): Test also the sign of the result. Test
28745         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
28746
28747 2008-05-20  Simon Josefsson  <simon@josefsson.org>
28748
28749         * modules/memcmp-tests: New file.
28750         * tests/test-memcmp.c: New file.
28751
28752 2008-05-19  Bruno Haible  <bruno@clisp.org>
28753
28754         * modules/propername (Notice, configure.ac): Put quoted "..." into
28755         --keyword option.
28756         * lib/propername.h: Update comments accordingly.
28757         Reported by Eric Blake.
28758
28759 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
28760
28761         * modules/getpass-gnu (Depends-on): Add fseeko.
28762
28763 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28764
28765         * modules/base64-tests: New file.
28766
28767 2008-05-19  Bo Borgerson <gigabo@gmail.com>
28768
28769         * lib/base64.c (base64_decode_ctx): If a decode context structure
28770         was passed in use it to ignore newlines.  If a context structure
28771         was _not_ passed in, continue to treat newlines as garbage (this
28772         is the historical behavior).  Formerly base64_decode.
28773         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28774         takes a decode context structure.
28775         * lib/base64.h (base64_decode): Macro for four-argument calls.
28776         (base64_decode_alloc): Likewise.
28777         * lib/base64.c (base64_decode_ctx): If a decode context structure
28778         was passed in use it to ignore newlines.  If a context structure
28779         was _not_ passed in, continue to treat newlines as garbage (this
28780         is the historical behavior).  Formerly base64_decode.
28781         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28782         takes a decode context structure.
28783         * lib/base64.h (base64_decode): Macro for four-argument calls.
28784         (base64_decode_alloc): Likewise.
28785
28786 2008-05-19  Jim Meyering  <meyering@redhat.com>
28787
28788         avoid a warning from gcc
28789         * lib/trim.c (IF_LINT): Define.
28790         (trim2): Use it to avoid a "may be used uninitialized" warning.
28791
28792         Fix doc typo.
28793         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
28794
28795 2008-05-19  Bruno Haible  <bruno@clisp.org>
28796
28797         * doc/glibc-functions/getpass.texi: Document limits of other
28798         implementations.
28799
28800 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28801             Bruno Haible <bruno@clisp.org>
28802
28803         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
28804
28805 2008-05-18  Bruno Haible  <bruno@clisp.org>
28806
28807         * modules/propername: New file, from GNU gettext.
28808         * lib/propername.h: New file, from GNU gettext.
28809         * lib/propername.c: New file, from GNU gettext.
28810         * MODULES.html.sh (Internationalization functions): Add propername.
28811
28812 2008-05-16  Jim Meyering  <meyering@redhat.com>
28813             Bruno Haible  <bruno@clisp.org>
28814
28815         Avoid some warnings from "gcc -Wshadow".
28816         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
28817
28818 2008-05-15  Eric Blake  <ebb9@byu.net>
28819
28820         Extend previous patch to cygwin 1.7.0.
28821         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
28822         fast implementation in cygwin >= 1.7.0.
28823         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28825
28826 2008-05-15  Bruno Haible  <bruno@clisp.org>
28827
28828         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
28829         implementation in glibc >= 2.9.
28830         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28832
28833 2008-05-15  Bruno Haible  <bruno@clisp.org>
28834
28835         * MODULES.html.sh (Internationalization functions): Remove linebreak.
28836         (Unicode string functions): Add unilbrk/*.
28837         Reported by Karl Berry.
28838
28839 2008-05-15  Eric Blake  <ebb9@byu.net>
28840
28841         Fix violation of <stdbool.h> replacement in regex.
28842         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
28843         * lib/regexec.c (re_search_internal): Likewise.
28844         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
28845
28846 2008-05-15  Jim Meyering  <meyering@redhat.com>
28847
28848         avoid distracting test output when git or cvs is not found
28849         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
28850         * tests/test-vc-list-files-git.sh: Likewise.
28851
28852 2008-05-15  Eric Blake  <ebb9@byu.net>
28853
28854         Glibc finally accepted the memmem speedup code, bugzilla #5514.
28855         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
28856         glibc version.
28857         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28858         * doc/posix-functions/strstr.texi (strstr): Likewise.
28859         * lib/str-two-way.h (MAX): Sychronize with glibc.
28860
28861 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
28862
28863         * lib/regcomp.c (optimize_utf8): Add a note on why we test
28864         opr.ctx_type.
28865         (calc_first): Initialize constraint field.
28866         (duplicate_node_closure): Use it instead of special casing ANCHORS.
28867         Fix grammar.
28868         (duplicate_node): Merge constraint field for all node types.
28869         (calc_eclosure_iter): Look at constraint field for all node types.
28870         * lib/regex_internal.c (create_cd_newstate): Don't look at
28871         opr.ctx_type.
28872
28873 2008-05-14  Bruno Haible  <bruno@clisp.org>
28874
28875         Help GCC to do better code generation.
28876         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
28877         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28878         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
28879         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
28880         Declare with attribute 'malloc' if supported.
28881
28882 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
28883
28884         use "echo STR|wc -c" rather than unportable "expr length STR"
28885         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
28886         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
28887
28888 2008-05-14  Jim Meyering  <meyering@redhat.com>
28889
28890         use dd ibs=$n count=1 ... rather than less-portable head -c$n
28891         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
28892         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
28893         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
28894         via Collin Lasse.
28895
28896 2008-05-14  Eric Blake  <ebb9@byu.net>
28897
28898         Avoid quadratic growth in gl_LIBSOURCES.
28899         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
28900         Suggested by Bruno Haible.
28901
28902         Test xmemdup0.
28903         * modules/xmemdup0-tests: New file.
28904         * tests/test-xmemdup0.c: Likewise.
28905
28906 2008-05-13  Eric Blake  <ebb9@byu.net>
28907
28908         Split xmemdup0 into its own module.
28909         * modules/xmemdup0: New file.
28910         * lib/xmemdup0.h: Likewise.
28911         * lib/xmemdup0.c: Likewise.
28912         * MODULES.html.sh (Memory management functions): Add xmemdup0.
28913         * lib/xalloc.h (xmemdup0): Remove.
28914         * lib/xmalloc.c (xmemdup0): Likewise.
28915
28916 2008-05-13  Eric Blake  <ebb9@byu.net>
28917             Bruno Haible  <bruno@clisp.org>
28918
28919         Reduce number of forks required during autoconf.
28920         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28921         and gl_LIBSOURCES_DIR.
28922         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28923         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28924         m4_syscmd per file.
28925         <m4_foreach_w>: Move...
28926         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28927
28928 2008-05-13  Eric Blake  <ebb9@byu.net>
28929
28930         * gnulib-tool: Fix various comment typos.
28931
28932 2008-05-12  Bruno Haible  <bruno@clisp.org>
28933
28934         Tailor the linebreaking algorithm.
28935         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28936
28937 2008-05-12  Bruno Haible  <bruno@clisp.org>
28938
28939         Update to Unicode 5.0.0.
28940         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28941         LBP_JV, LBP_JT. Redistribute values.
28942         (unilbrk_table): Change size.
28943         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28944         Unicode TR#14 rev. 22.
28945         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28946         LBP_JV, LBP_JT. Redistribute values.
28947         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28948         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28949         Update.
28950         * lib/unilbrk/lbrkprop1.h: Regenerated.
28951         * lib/unilbrk/lbrkprop2.h: Regenerated.
28952         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28953         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
28954         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
28955         Likewise.
28956         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
28957         Likewise.
28958         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
28959         result.
28960         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
28961         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
28962         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
28963         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
28964         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
28965         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
28966
28967 2008-05-11  Bruno Haible  <bruno@clisp.org>
28968
28969         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
28970
28971 2008-05-11  Bruno Haible  <bruno@clisp.org>
28972
28973         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
28974         * modules/unilbrk/gen-lbrk: New file.
28975
28976 2008-05-11  Bruno Haible  <bruno@clisp.org>
28977
28978         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
28979         * m4/sha512.m4 (gl_SHA512): Likewise.
28980
28981 2008-05-11  Jim Meyering  <meyering@redhat.com>
28982
28983         New modules: crypto/sha256, crypto/sha512 (from coreutils)
28984         * modules/crypto/sha256: New file.
28985         * modules/crypto/sha512: Likewise.
28986         * lib/sha256.c: Likewise.
28987         * lib/sha256.h: Likewise.
28988         * lib/sha512.c: Likewise.
28989         * lib/sha512.h: Likewise.
28990         * lib/u64.h: Likewise.
28991         * m4/sha256.m4: Likewise.
28992         * m4/sha512.m4: Likewise.
28993         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
28994
28995 2008-05-10  Bruno Haible  <bruno@clisp.org>
28996
28997         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
28998         (Input/Output <stdio.h>): Add xprintf.
28999         (Signal handling <signal.h>): Add strsignal.
29000         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29001         (Core language properties): Add func.
29002         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29003         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29004         strings.
29005         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29006         (Input/output): New section.
29007         (File system functions): Add openat-die, stat-macros.
29008         (Networking functions): Add sockets.
29009         (Unicode string functions): Add unictype/*.
29010         (Support for building libraries and executables): Add gperf.
29011         (Support for building documentation): Add agpl-3.0.
29012         (Misc): Add nocrash.
29013
29014 2008-05-10  Bruno Haible  <bruno@clisp.org>
29015
29016         * modules/unictype/gen-ctype: New file.
29017
29018 2008-05-10  Jim Meyering  <meyering@redhat.com>
29019
29020         Make chdir-safer.c more efficient on a system with no symlinks.
29021         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29022         also if ELOOP is zero.  Suggested by Bruno Haible.
29023
29024         Make chdir-safer.c slightly safer.
29025         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29026         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29027
29028         Avoid compile failure on systems without ELOOP (like mingw).
29029         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29030         Reported by Bruno Haible.
29031
29032 2008-05-10  Bruno Haible  <bruno@clisp.org>
29033
29034         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29035         (is_utf8_encoding): Use a case-insensitive comparison.
29036         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29037         streq.
29038
29039 2008-05-10  Bruno Haible  <bruno@clisp.org>
29040
29041         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29042         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29043         * lib/unilbrk/ulc-common.h (iconv_string_length,
29044         iconv_string_keeping_offsets): Remove declarations.
29045         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29046         Don't include <iconv.h>, streq.h, xsize.h.
29047         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29048         conversion.
29049         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29050         <iconv.h>, streq.h, xsize.h.
29051         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29052         conversion.
29053         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29054         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29055         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29056         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29057
29058 2008-05-10  Bruno Haible  <bruno@clisp.org>
29059
29060         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29061         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29062
29063         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29064         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29065
29066         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29067         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29068
29069         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29070         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29071
29072         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29073         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29074
29075         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29076         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29077
29078         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29079         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29080
29081         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29082         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29083
29084 2008-05-10  Bruno Haible  <bruno@clisp.org>
29085
29086         Split up 'linebreak' module.
29087         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29088         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29089         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29090         modifications.
29091         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29092         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29093         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29094         lib/linebreak.c.
29095         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29096         lib/linebreak.c.
29097         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29098         lib/linebreak.c.
29099         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29100         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29101         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29102         lib/linebreak.c.
29103         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29104         lib/linebreak.c.
29105         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29106         lib/linebreak.c.
29107         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29108         lib/linebreak.c.
29109         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29110         lib/linebreak.c.
29111         * modules/unilbrk/base: New file.
29112         * modules/unilbrk/tables: New file.
29113         * modules/unilbrk/u8-possible-linebreaks: New file.
29114         * modules/unilbrk/u16-possible-linebreaks: New file.
29115         * modules/unilbrk/u32-possible-linebreaks: New file.
29116         * modules/unilbrk/ulc-common: New file.
29117         * modules/unilbrk/ulc-possible-linebreaks: New file.
29118         * modules/unilbrk/u8-width-linebreaks: New file.
29119         * modules/unilbrk/u16-width-linebreaks: New file.
29120         * modules/unilbrk/u32-width-linebreaks: New file.
29121         * modules/unilbrk/ulc-width-linebreaks: New file.
29122         * lib/linebreak.h: Remove file.
29123         * lib/linebreak.c: Remove file.
29124         * m4/linebreak.m4: Remove file.
29125         * modules/linebreak: Remove file.
29126         * NEWS: Mention the changes.
29127
29128 2008-05-09  Eric Blake  <ebb9@byu.net>
29129
29130         Add xmemdup0.
29131         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29132         implementation.
29133         * lib/xmalloc.c (xmemdup0): New C implementation.
29134
29135 2008-05-08  Bruno Haible  <bruno@clisp.org>
29136
29137         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29138
29139 2008-05-07  Eric Blake  <ebb9@byu.net>
29140
29141         Support cross-compilation of <wctype.h>.
29142         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29143         AC_CACHE_CHECK.
29144
29145 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29146
29147         * build-aux/vc-list-files: Add support for bzr.
29148
29149 2008-05-03  Jim Meyering  <meyering@redhat.com>
29150
29151         avoid failed assertion with tight malloc
29152         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29153
29154 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29155
29156         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29157         are needed from arpa/inet.h.
29158         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29159         Reported by Bruno Haible.
29160
29161 2008-05-02  Jim Meyering  <meyering@redhat.com>
29162
29163         avoid compilation error on FreeBSD 6
29164         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29165
29166 2008-05-01  Jim Meyering  <meyering@redhat.com>
29167
29168         useless-if-before-free: correct --help's exit status description
29169         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29170         for one or more matches, etc.  Reported by Bruno Haible.
29171
29172         vc-list-files: make the stand-alone gnulib test work
29173         * modules/vc-list-files-tests (configure.ac):
29174         Define and AC_SUBST abs_aux_dir.
29175         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29176         $(abs_top_srcdir) to each script and having each of them
29177         duplicate the work of setting PATH, set PATH here, using
29178         the new variable, abs_aux_dir instead.
29179         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29180         * tests/test-vc-list-files-git.sh: Likewise.
29181         Reported by Bruno Haible.
29182
29183 2008-05-01  Bruno Haible  <bruno@clisp.org>
29184
29185         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29186         reallocation. Rename 'done' to 'found_delimiter'.
29187
29188 2008-05-01  Jim Meyering  <meyering@redhat.com>
29189
29190         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29191         * build-aux/vc-list-files: Use `...`, not $(...).
29192
29193 2008-04-30  Jim Meyering  <meyering@redhat.com>
29194
29195         add tests for vc-list-files
29196         * modules/vc-list-files-tests: New module.
29197         * tests/test-vc-list-files-cvs.sh: New file.
29198         * tests/test-vc-list-files-git.sh: New file.
29199
29200         avoid a warning from gcc
29201         * lib/getndelim2.c (IF_LINT): Define.
29202         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29203
29204         vc-list-files: work properly with build-aux/cvsu, too
29205         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29206         to all cvs-based clauses.
29207
29208         vc-list-files: work properly in the CVS+awk case, too
29209         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29210
29211         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29212         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29213         take more than one file argument, so .  Add quotes, just in case $dir
29214         ever contains a shell meta-character.  Prompted by Soren Hansen in
29215         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29216
29217 2008-04-29  Eric Blake  <ebb9@byu.net>
29218
29219         Optimize getndelim2 to use block operations when possible.
29220         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29221         freadseek, and memchr2.
29222         * lib/getndelim2.c (getndelim2): Use them for block reads.
29223
29224 2008-04-29  Bruno Haible  <bruno@clisp.org>
29225
29226         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29227         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29228         * modules/inet_ntop (Depends-on): Add extensions.
29229         * modules/inet_pton (Depends-on): Likewise.
29230         Reported by Simon Josefsson.
29231
29232 2008-04-29  Jim Meyering  <meyering@redhat.com>
29233
29234         When the is more than one match in a block, match all of them.
29235         * build-aux/useless-if-before-free: Iterate through each block
29236         until there are no more matches.
29237
29238         Fix broken useless-if-before-free script.
29239         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29240         the expression to match cast of argument to free-like function.
29241
29242 2008-04-29  Eric Blake  <ebb9@byu.net>
29243
29244         Use new header.
29245         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29246
29247 2008-04-29  Jim Meyering  <meyering@redhat.com>
29248
29249         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29250         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29251         by gnulib to exist and to declare e.g., inet_ntop.
29252         Don't include "inet_ntop.h", now removed.
29253
29254         * m4/arpa_inet_h.m4: Remove trailing blanks.
29255
29256 2008-04-29  Eric Blake  <ebb9@byu.net>
29257
29258         Silence valgrind on safe reads beyond potential array bounds.
29259         * lib/rawmemchr.valgrind: New file.
29260         * lib/strchrnul.valgrind: Likewise.
29261         * modules/rawmemchr (Files): Distribute new file.
29262         * modules/strchrnul (Files): Likewise.
29263         Suggested by Bruno Haible.
29264
29265 2008-04-29  Bruno Haible  <bruno@clisp.org>
29266
29267         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29268         (inet_ntop, inet_pton): Change portability warning's wording.
29269         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29270         Invoke gl_CHECK_NEXT_HEADERS.
29271         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29272         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29273         set ARPA_INET_H.
29274         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29275         * modules/arpa_inet (Description): No longer only for systems that
29276         lack it.
29277         (Depends-on): Add include_next.
29278         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29279         HAVE_ARPA_INET_H.
29280
29281 2008-04-29  Jim Meyering  <meyering@redhat.com>
29282
29283         * modules/mkdir (License): Re-license as LGPLv2+.
29284
29285 2008-04-29  Bruno Haible  <bruno@clisp.org>
29286
29287         * modules/rawmemchr (Maintainer): Set to Eric.
29288         * modules/strchrnul (Maintainer): Likewise.
29289
29290 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29291
29292         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29293         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29294
29295         * modules/arpa_inet (arpa/inet.h): Use them.
29296
29297 2008-04-28  Eric Blake  <ebb9@byu.net>
29298
29299         Test getndelim2.
29300         * modules/getndelim2-tests: New file.
29301         * tests/test-getndelim2.c: Likewise.
29302         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29303         stream.
29304         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29305
29306         * MODULES.html.sh: Document new module.
29307
29308 2008-04-20  Bruno Haible  <bruno@clisp.org>
29309
29310         * lib/c-stack.c (die): Use raise.
29311         * modules/c-stack (Depends-on): Add raise.
29312
29313 2008-04-28  Bruno Haible  <bruno@clisp.org>
29314
29315         Expect rpmatch to be declared.
29316         * lib/yesno.c (rpmatch): Remove declaration.
29317
29318         Declare rpmatch.
29319         * lib/stdlib.in.h (rpmatch): New declaration.
29320         * lib/rpmatch.c: Include <stdlib.h> first.
29321         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29322         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29324         HAVE_RPMATCH.
29325         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29326         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29327         (Include): Set to <stdlib.h>.
29328         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29329         HAVE_RPMATCH.
29330         * NEWS: Document the change.
29331
29332 2008-04-28  Bruno Haible  <bruno@clisp.org>
29333
29334         Change rpmatch to use nl_langinfo when appropriate.
29335         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29336         (N_): New macro.
29337         (localized_pattern): New function/macro.
29338         (try): Remove match, nomatch arguments. Copy the pattern into safe
29339         memory before caching it.
29340         (rpmatch): Use localized_pattern. Add translator comments.
29341         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29342         Suggested by Eric Blake.
29343         * modules/rpmatch (Depends-on): Add stdbool.
29344
29345 2008-04-28  Eric Blake  <ebb9@byu.net>
29346
29347         Add rawmemchr module, matching glibc.
29348         * modules/string (Makefile.am): New indicator.
29349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29350         * lib/string.in.h (rawmemchr): Declare when appropriate.
29351         * modules/rawmemchr: New file.
29352         * m4/rawmemchr.m4: Likewise.
29353         * lib/rawmemchr.c: Likewise.
29354         * modules/rawmemchr-tests: Likewise.
29355         * tests/test-rawmemchr.c: Likewise.
29356         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29357         module.
29358         * modules/strchrnul (Depends-on): Add rawmemchr.
29359         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29360
29361         Whitespace cleanup.
29362         * tests/test-strchrnul.c: Reindent.
29363         * lib/strchrnul.c: Likewise.
29364
29365         Optimize and test strchrnul.
29366         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
29367         * modules/strchrnul-tests: New file.
29368         * tests/test-strchrnul.c: Likewise.
29369
29370         Remove intprops dependency.
29371         * modules/memchr (Depends-on): Remove intprops.
29372         * modules/memrchr (Depends-on): Likewise.
29373         * modules/memchr2 (Depends-on): Likewise.
29374         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
29375         * lib/memrchr.c (__memrchr): Likewise.
29376         * lib/memrchr2.c (memchr2): Likewise.
29377         Reported by Simon Josefsson.
29378
29379 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29380
29381         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
29382         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29383
29384 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29385
29386         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
29387
29388         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
29389
29390         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
29391
29392         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
29393         declarations.
29394         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
29395
29396         * m4/inet_pton.m4: Don't check for header files.
29397
29398         * m4/inet_ntop.m4: Don't check for header files.
29399
29400 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29401
29402         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
29403         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
29404         trigger for cygwin).
29405         Reported by Bruno Haible  <bruno@clisp.org>.
29406
29407 2008-04-28  Bruno Haible  <bruno@clisp.org>
29408
29409         * doc/posix-functions/strdup.texi: Mention mingw problem.
29410
29411 2008-04-27  Bruno Haible  <bruno@clisp.org>
29412
29413         * modules/stat-time-tests (Depends-on): Add sleep.
29414         * tests/test-stat-time.c (force_unlink): New function.
29415         (cleanup): Use it.
29416         (test_mtime): Remove the ctime related tests.
29417         (test_ctime): New function, containing the ctime related tests.
29418         (main): Call test_ctime, except on native Windows platforms.
29419
29420 2008-04-27  Bruno Haible  <bruno@clisp.org>
29421
29422         * lib/rpmatch.c (rpmatch): Add some comments.
29423         Reported by James Youngman <jay@gnu.org>.
29424
29425 2008-04-27  Bruno Haible  <bruno@clisp.org>
29426
29427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
29428         quiet NaNs.
29429
29430 2008-04-27  Bruno Haible  <bruno@clisp.org>
29431
29432         Make test-yesno.sh work on mingw.
29433         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
29434         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
29435         (main): Set stdin to binary mode.
29436         * modules/yesno-tests (Depends-on): Add binary-io.
29437
29438 2008-04-27  Bruno Haible  <bruno@clisp.org>
29439
29440         Fix 'isfinite' on x86, x86_64, ia64 platforms.
29441         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
29442         argument that lie outside the IEEE 854 domain.
29443         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
29444         (gl_ISFINITE): Use it.
29445         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
29446
29447 2008-04-27  Bruno Haible  <bruno@clisp.org>
29448
29449         Allow local renaming in config.h.
29450         * lib/memrchr.c (memrchr): Don't undefine outside libc.
29451
29452 2008-04-27  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/memchr.c (__memchr): Change type of 'i'.
29455         * lib/memchr2.c (memchr2): Likewise.
29456
29457 2008-04-26  Eric Blake  <ebb9@byu.net>
29458         and Bruno Haible  <bruno@clisp.org>
29459
29460         Optimize and test memrchr.
29461         * modules/memrchr (Depends-on): Add intprops.
29462         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
29463         * modules/memrchr-tests: New file.
29464         * tests/test-memrchr.c: New file.
29465
29466 2008-04-26  Bruno Haible  <bruno@clisp.org>
29467
29468         Add tentative support for DragonFly BSD.
29469         * lib/stdio-impl.h: Add macros for DragonFly BSD.
29470         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
29471         fp.
29472         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29473         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
29474         * lib/fpurge.c (fpurge): Likewise.
29475         * lib/freadable.c (freaadable): Likewise.
29476         * lib/freadahead.c (freadahead): Likewise.
29477         * lib/freading.c (freading): Likewise.
29478         * lib/freadptr.c (freadptr): Likewise.
29479         * lib/freadseek.c (freadptrinc): Likewise.
29480         * lib/fseeko.c (fseeko): Likewise.
29481         * lib/fseterr.c (fseterr): Likewise.
29482         * lib/fwritable.c (fwritable): Likewise.
29483         * lib/fwriting.c (fwriting): Likewise.
29484
29485 2008-04-26  Bruno Haible  <bruno@clisp.org>
29486
29487         * lib/stdio-impl.h: New file.
29488         * lib/fbufmode.c: Include stdio-impl.h.
29489         (fbufmode): Use fp_, remove redundant #defines.
29490         * lib/fflush.c: Include stdio-impl.h.
29491         (clear_ungetc_buffer): Remove redundant #defines.
29492         * lib/fpurge.c: Include stdio-impl.h.
29493         (fpurge): Remove redundant #defines.
29494         * lib/freadable.c: Include stdio-impl.h.
29495         (freadable): Remove redundant #defines.
29496         * lib/freadahead.c: Include stdio-impl.h.
29497         (freadahead): Remove redundant #defines.
29498         * lib/freading.c: Include stdio-impl.h.
29499         (freading): Remove redundant #defines.
29500         * lib/freadptr.c: Include stdio-impl.h.
29501         (freadptr): Remove redundant #defines.
29502         * lib/freadseek.c: Include stdio-impl.h.
29503         (freadptrinc): Remove redundant #defines.
29504         * lib/fseeko.c: Include stdio-impl.h.
29505         (rpl_fseeko): Remove redundant #defines.
29506         * lib/fseterr.c: Include stdio-impl.h.
29507         (fseterr): Remove redundant #defines.
29508         * lib/fwritable.c: Include stdio-impl.h.
29509         (fwritable: Remove redundant #defines.
29510         * lib/fwriting.c: Include stdio-impl.h.
29511         (fwriting): Remove redundant #defines.
29512         * modules/fbufmode (Files): Add lib/stdio-impl.h.
29513         * modules/fflush (Files): Likewise.
29514         * modules/fpurge (Files): Likewise.
29515         * modules/freadable (Files): Likewise.
29516         * modules/freadahead (Files): Likewise.
29517         * modules/freading (Files): Likewise.
29518         * modules/freadptr (Files): Likewise.
29519         * modules/freadseek (Files): Likewise.
29520         * modules/fseeko (Files): Likewise.
29521         * modules/fseterr (Files): Likewise.
29522         * modules/fwritable (Files): Likewise.
29523         * modules/fwriting (Files): Likewise.
29524
29525 2008-04-26  Bruno Haible  <bruno@clisp.org>
29526
29527         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29528         restore_seek_optimization, update_fpos_cache): New functions, extracted
29529         from rpl_fflush.
29530         (rpl_fflush): Use them.
29531         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
29532         (gl_REPLACE_FFLUSH): Use it.
29533
29534 2008-04-26  Bruno Haible  <bruno@clisp.org>
29535
29536         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
29537         on Solaris.
29538         * tests/test-xstrtoimax.sh: Likewise.
29539         * tests/test-xstrtoumax.sh: Likewise.
29540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29541
29542 2008-04-26  Bruno Haible  <bruno@clisp.org>
29543
29544         * modules/memchr-tests: New file.
29545         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
29546
29547 2008-04-26  Eric Blake  <ebb9@byu.net>
29548             Bruno Haible  <bruno@clisp.org>
29549
29550         * lib/memchr.c: Include intprops.h.
29551         (__memchr): Optimize parallel detection of matching bytes. Rename local
29552         variables. Add explanatory comments.
29553
29554 2008-04-26  Bruno Haible  <bruno@clisp.org>
29555
29556         Fix module 'memchr', broken since 2000-10-28.
29557         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
29558
29559 2008-04-26  Bruno Haible  <bruno@clisp.org>
29560
29561         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
29562         comments.
29563
29564 2008-04-25  Eric Blake  <ebb9@byu.net>
29565
29566         Use native fstatat on cygwin 1.7.0.
29567         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
29568         first.
29569
29570 2008-04-23  Eric Blake  <ebb9@byu.net>
29571
29572         Improve memchr2 performance.
29573         * lib/memchr2.c (memchr2): Further optimize parallel detection of
29574         NUL bytes.
29575         * modules/memchr2 (Depends-on): Use intprops.h.
29576
29577 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29578
29579         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
29580         an inline function instead of a CPP macro.  Patch by Ben Pfaff
29581         <blp@cs.stanford.edu>.
29582
29583 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29584
29585         * lib/arpa_inet.in.h: New file.
29586
29587         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
29588         (Makefile.am): Sed in substitute header file.
29589
29590         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
29591         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
29592
29593         * modules/inet_ntop (configure.ac): Use
29594         gl_ARPA_INET_MODULE_INDICATOR.
29595
29596         * modules/inet_pton (configure.ac): Use
29597         gl_ARPA_INET_MODULE_INDICATOR.
29598
29599 2008-04-22  Jim Meyering  <meyering@redhat.com>
29600
29601         * modules/verify (License): Re-license as LGPLv2+.
29602
29603 2008-04-22  Simon Josefsson  <simon@josefsson.org>
29604
29605         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
29606         parameter to void* as per POSIX standard (MinGW uses char*).
29607
29608 2008-04-21  Bruno Haible  <bruno@clisp.org>
29609
29610         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
29611         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
29612         Define to replacements if REPLACE_ISWCNTRL is 1.
29613         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
29614         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
29615         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
29616         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
29617         what it fixes.
29618         * doc/posix-functions/iswalpha.texi: Likewise.
29619         * doc/posix-functions/iswblank.texi: Likewise.
29620         * doc/posix-functions/iswcntrl.texi: Likewise.
29621         * doc/posix-functions/iswdigit.texi: Likewise.
29622         * doc/posix-functions/iswgraph.texi: Likewise.
29623         * doc/posix-functions/iswlower.texi: Likewise.
29624         * doc/posix-functions/iswprint.texi: Likewise.
29625         * doc/posix-functions/iswpunct.texi: Likewise.
29626         * doc/posix-functions/iswspace.texi: Likewise.
29627         * doc/posix-functions/iswupper.texi: Likewise.
29628         * doc/posix-functions/iswxdigit.texi: Likewise.
29629         Reported by Alain Guibert.
29630
29631 2008-04-21  Bruno Haible  <bruno@clisp.org>
29632
29633         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
29634         Patch by Alain Guibert.
29635
29636 2008-04-21  Bruno Haible  <bruno@clisp.org>
29637
29638         Fix test failures on mingw.
29639         * tests/test-xstrtol.c (print_no_progname): New function.
29640         (main): Install it in error_print_progname hook.
29641         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
29642         * tests/test-xstrtoimax.sh: Likewise.
29643         * tests/test-xstrtoumax.sh: Likewise.
29644
29645 2008-04-21  Bruno Haible  <bruno@clisp.org>
29646
29647         Fix test failure on mingw.
29648         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
29649
29650 2008-04-21  Bruno Haible  <bruno@clisp.org>
29651
29652         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
29653         Actually assign a value.
29654
29655 2008-04-20  Bruno Haible  <bruno@clisp.org>
29656
29657         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
29658         take 2.
29659         * lib/canonicalize.c (canonicalize_file_name): Elide if the
29660         'canonicalize-lgpl' module is also used.
29661         * lib/canonicalize-lgpl.c: Undo last change.
29662         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
29663
29664 2008-04-20  Bruno Haible  <bruno@clisp.org>
29665
29666         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
29667         config.h. Provide _mkdir based fallback for mingw.
29668         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
29669         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
29670         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
29671         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
29672         rather than defining mkdir in config.h.
29673         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
29674         (gl_SYS_STAT_H_DEFAULTS): New macro.
29675         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
29676         HAVE_IO_H any more.
29677         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
29678         HAVE_DECL_MKDIR and HAVE_IO_H.
29679
29680 2008-04-20  Bruno Haible  <bruno@clisp.org>
29681
29682         * lib/isapipe.c: Port to native Windows platforms.
29683
29684 2008-04-20  Bruno Haible  <bruno@clisp.org>
29685
29686         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
29687
29688 2008-04-21  Eric Blake  <ebb9@byu.net>
29689
29690         Work around preprocessors that don't handle UINTMAX_MAX.
29691         * lib/memchr2.c (memchr2): Avoid embedded #if.
29692         Reported by Alain Guibert, fix suggested by Bruno Haible.
29693
29694 2008-04-21  Simon Josefsson  <simon@josefsson.org>
29695
29696         * doc/posix-functions/strftime.texi (strftime): Explain better
29697         Windows incompatibility.  Suggested by Micah Cowan
29698         <micah@cowan.name>.
29699
29700 2008-04-20  Bruno Haible  <bruno@clisp.org>
29701
29702         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
29703         unistr/u8-mblen.
29704
29705 2008-04-20  Bruno Haible  <bruno@clisp.org>
29706
29707         Fix test failure on platforms with non-GNU iconv.
29708         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
29709         (U_TO_U8): Use it, rather than u16_to_u8.
29710         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
29711         units at the end of the input string.
29712         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
29713
29714 2008-04-20  Bruno Haible  <bruno@clisp.org>
29715
29716         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
29717         when the resulting length is 0.
29718         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
29719
29720 2008-04-20  Bruno Haible  <bruno@clisp.org>
29721
29722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
29723         works.
29724         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
29725
29726 2008-04-20  Bruno Haible  <bruno@clisp.org>
29727
29728         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
29729         * modules/tsearch-tests (configure.ac): Test for initstate function.
29730
29731 2008-04-20  Bruno Haible  <bruno@clisp.org>
29732
29733         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
29734         for nlink_t if missing.
29735         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
29736
29737 2008-04-19  Bruno Haible  <bruno@clisp.org>
29738
29739         Work around snprintf bug on Linux libc5.
29740         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
29741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29742         gl_SNPRINTF_SIZE1.
29743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29744         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
29745         that test failed.
29746         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29747         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
29748         * modules/snprintf (Files): Add m4/printf.m4.
29749         * modules/vsnprintf (Files): Likewise.
29750         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
29751         * doc/posix-functions/vsnprintf.texi: Likewise.
29752
29753 2008-04-19  Bruno Haible  <bruno@clisp.org>
29754
29755         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
29756         from 0.0058 to less than 10^-7.
29757
29758 2008-04-19  Bruno Haible  <bruno@clisp.org>
29759
29760         Fix rounding when a precision is given.
29761         * lib/vasnprintf.c (is_borderline): New function.
29762         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
29763         9...9x.
29764         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
29765         %e, %g.
29766         * tests/test-vasprintf-posix.c (test_function): Likewise.
29767         * tests/test-snprintf-posix.h (test_function): Likewise.
29768         * tests/test-sprintf-posix.h (test_function): Likewise.
29769         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
29770         * tests/test-printf-posix.h (test_function): Likewise.
29771         * tests/test-printf-posix.output: Update.
29772         Reported by John Darrington <john@darrington.wattle.id.au> via
29773         Ben Pfaff <blp@cs.stanford.edu>.
29774
29775 2008-04-18  Simon Josefsson  <simon@josefsson.org>
29776
29777         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
29778         Suggested by Bruno Haible <bruno@clisp.org>.
29779
29780 2008-04-17  Bruno Haible  <bruno@clisp.org>
29781
29782         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
29783         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
29784         implementation.
29785         Patch by Bruce Merry <bmerry@gmail.com>.
29786
29787 2008-04-17  Simon Josefsson  <simon@josefsson.org>
29788
29789         * doc/posix-functions/strftime.texi (strftime): Mention that %e
29790         doesn't work under Windows.
29791
29792 2008-04-16  Bruno Haible  <bruno@clisp.org>
29793
29794         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
29795         New macros.
29796         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
29797         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
29798         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
29799         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
29800         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
29801         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
29802         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
29803         macros.
29804         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
29805         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
29806         Northern Sotho, Uighur.
29807
29808 2008-04-16  Bruno Haible  <bruno@clisp.org>
29809
29810         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
29811         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
29812         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
29813         Reported by Daniel Bergström <daniel@octocode.com>.
29814
29815 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
29816             Bruno Haible  <bruno@clisp.org>
29817
29818         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
29819         function.
29820         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
29821         New functions, mostly extracted from gl_locale_name_default.
29822         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
29823
29824 2008-04-16  Eric Blake  <ebb9@byu.net>
29825
29826         Adjust strtod detection to catch glibc 2.7 bug.
29827         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
29828         Reported by John Gatewood Ham.
29829
29830 2008-04-16  Bruno Haible  <bruno@clisp.org>
29831
29832         Add tentative support for Linux libc5.
29833         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
29834         * lib/fpurge.c (fpurge): Likewise.
29835         * lib/freadable.c (freadable): Likewise.
29836         * lib/freadahead.c (freadahead): Likewise.
29837         * lib/freading.c (freading): Likewise.
29838         * lib/freadptr.c (freadptr): Likewise.
29839         * lib/freadseek.c (freadptrinc): Likewise.
29840         * lib/fseeko.c (rpl_fseeko): Likewise.
29841         * lib/fseterr.c (fseterr): Likewise.
29842         * lib/fwritable.c (fwritable): Likewise.
29843         * lib/fwriting.c (fwriting): Likewise.
29844         Reported by Alain Guibert <alguibert+bts@free.fr>.
29845
29846 2008-04-15  Bruno Haible  <bruno@clisp.org>
29847
29848         * modules/mathl (configure.ac): Define module indicator.
29849
29850 2008-04-15  Bruno Haible  <bruno@clisp.org>
29851
29852         * lib/logl.c (logl): Remove unused variables.
29853
29854 2008-04-15  Bruno Haible  <bruno@clisp.org>
29855
29856         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
29857         fails.
29858
29859 2008-04-15  Bruno Haible  <bruno@clisp.org>
29860
29861         * lib/trim.c (trim2): Fix argument of isspace() macro.
29862
29863 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
29864
29865         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
29866         to 0.
29867         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
29868
29869 2008-04-14  Bruno Haible  <bruno@clisp.org>
29870
29871         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
29872         AC_LANG_PROGRAM argument.
29873         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
29874         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
29875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29876         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29877         * m4/math_h.m4 (gl_MATH_H): Likewise.
29878         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
29879         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29880         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29881         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
29882         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29883         * m4/regex.m4 (gl_REGEX): Likewise.
29884         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
29885         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
29886         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29887         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
29888         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29889         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29890         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29892
29893 2008-04-14  Jim Meyering  <meyering@redhat.com>
29894
29895         test-strtod: fix typos: s/abs/fabs/
29896         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
29897
29898 2008-04-13  Bruno Haible  <bruno@clisp.org>
29899
29900         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
29901         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
29902         module is also used and while not building the reloc-wrapper.
29903
29904 2008-04-13  Bruno Haible  <bruno@clisp.org>
29905
29906         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
29907
29908 2008-04-13  Bruno Haible  <bruno@clisp.org>
29909
29910         Fix AIX compilation failure introduced on 2008-04-02.
29911         * tests/test-frexp.c (exp): Undefine before redefining.
29912         * tests/test-frexpl.c (exp): Likewise.
29913
29914 2008-04-13  Bruno Haible  <bruno@clisp.org>
29915
29916         Work around a HP-UX stdio bug.
29917         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
29918         * tests/test-ftello.c (main): Likewise.
29919         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29920         * doc/posix-functions/ftello.texi: Likewise.
29921
29922 2008-04-13  Bruno Haible  <bruno@clisp.org>
29923
29924         Make test-signbit pass on HP-UX/hppa.
29925         * tests/test-signbit.c (minus_zerol): New variable.
29926         (test_signbitl): Use it.
29927
29928 2008-04-13  Bruno Haible  <bruno@clisp.org>
29929
29930         Make truncl work on OSF/1 4.0.
29931         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29932         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29933         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29935         HAVE_DECL_TRUNCL.
29936         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29937         HAVE_DECL_TRUNCL.
29938         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29939
29940 2008-04-13  Bruno Haible  <bruno@clisp.org>
29941
29942         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29943
29944 2008-04-13  Bruno Haible  <bruno@clisp.org>
29945
29946         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29947         expression, so as to avoid HP-UX 11 cc compiler bug.
29948
29949 2008-04-13  Bruno Haible  <bruno@clisp.org>
29950
29951         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29952
29953 2008-04-13  Bruno Haible  <bruno@clisp.org>
29954
29955         * lib/git-merge-changelog.c: Remove empty declaration outside of
29956         functions.
29957
29958 2008-04-13  Bruno Haible  <bruno@clisp.org>
29959
29960         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
29961
29962 2008-04-13  Bruno Haible  <bruno@clisp.org>
29963
29964         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
29965         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
29966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
29967         also if it exists but lacks definitions of the SHUT_* macros.
29968         * modules/sys_socket (Description): Update.
29969         Reported by Elbert Pol <e.pol@chello.nl>.
29970
29971 2008-04-13  Bruno Haible  <bruno@clisp.org>
29972
29973         * lib/localcharset.c (OS2): Don't redefine if already defined.
29974         Reported by Elbert Pol <e.pol@chello.nl>.
29975
29976 2008-04-13  Bruno Haible  <bruno@clisp.org>
29977
29978         * lib/binary-io.h [__EMX__]: Include <io.h>.
29979         Reported by Elbert Pol <e.pol@chello.nl>.
29980
29981 2008-04-12  Bruno Haible  <bruno@clisp.org>
29982
29983         * lib/fpucw.h: Enable the definitions also for x86_64.
29984         Needed for NetBSD/x86_64.
29985         Reported by Thomas Klausner <tk@giga.or.at>.
29986
29987 2008-04-12  Bruno Haible  <bruno@clisp.org>
29988
29989         * tests/test-strtod.c: Include isnand.h.
29990         (main): Use isnand instead of isnan.
29991         Reported by Jim Meyering.
29992
29993 2008-04-12  Bruno Haible  <bruno@clisp.org>
29994
29995         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
29996         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29997
29998 2008-04-12  Jim Meyering  <meyering@redhat.com>
29999
30000         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30001
30002 2008-04-12  Bruno Haible  <bruno@clisp.org>
30003
30004         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30005         Reported by Elbert Pol <e.pol@chello.nl>.
30006
30007 2008-04-12  Eric Blake  <ebb9@byu.net>
30008
30009         Work around Solaris 10 math.h bug.
30010         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30011         (gl_MATH_H_DEFAULTS): Set up default.
30012         * modules/math (Makefile.am): Replace new indicators.
30013         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30014         * tests/test-math.c (main): Test this.
30015         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30016         * doc/posix-headers/math.texi (math.h): Mention bug.
30017         Reported by Nelson H. F. Beebe and Jim Meyering.
30018
30019 2008-04-11  Bruno Haible  <bruno@clisp.org>
30020
30021         Adapt to future versions of Apple GCC.
30022         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30023         Reported by Peter O'Gorman <peter@pogma.com>.
30024
30025 2008-04-11  Bruno Haible  <bruno@clisp.org>
30026
30027         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30028
30029 2008-04-11  Bruno Haible  <bruno@clisp.org>
30030
30031         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30032
30033         * modules/getaddrinfo-tests (Makefile.am): Define
30034         test_getaddrinfo_LDADD.
30035
30036 2008-04-11  Bruno Haible  <bruno@clisp.org>
30037
30038         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30039         (init): Fix syntax error.
30040         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30041         is declared.
30042
30043 2008-04-11  Bruno Haible  <bruno@clisp.org>
30044
30045         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30046         * modules/glob (Depends-on): Add stdbool.
30047
30048 2008-04-11  Bruno Haible  <bruno@clisp.org>
30049
30050         * lib/trim.c: Include <string.h>.
30051
30052 2008-04-11  Eric Blake  <ebb9@byu.net>
30053
30054         Avoid compile failure on OS/2.
30055         * lib/regex_internal.h (internal_function): Disable optimization
30056         on OS/2 (__EMX__), where it caused compiler error.
30057         Reported by Elbert Pol.
30058
30059 2008-04-11  Bruno Haible  <bruno@clisp.org>
30060
30061         Flush the standard error stream before aborting. Needed on mingw.
30062         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30063         * tests/test-array_list.c (ASSERT): Likewise.
30064         * tests/test-array_oset.c (ASSERT): Likewise.
30065         * tests/test-avltree_list.c (ASSERT): Likewise.
30066         * tests/test-avltree_oset.c (ASSERT): Likewise.
30067         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30068         * tests/test-binary-io.c (ASSERT): Likewise.
30069         * tests/test-byteswap.c (ASSERT): Likewise.
30070         * tests/test-c-ctype.c (ASSERT): Likewise.
30071         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30072         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30073         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30074         * tests/test-c-strstr.c (ASSERT): Likewise.
30075         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30076         * tests/test-canonicalize.c (ASSERT): Likewise.
30077         * tests/test-carray_list.c (ASSERT): Likewise.
30078         * tests/test-ceilf1.c (ASSERT): Likewise.
30079         * tests/test-ceilf2.c (ASSERT): Likewise.
30080         * tests/test-ceill.c (ASSERT): Likewise.
30081         * tests/test-count-one-bits.c (ASSERT): Likewise.
30082         * tests/test-fbufmode.c (ASSERT): Likewise.
30083         * tests/test-fflush2.c (ASSERT): Likewise.
30084         * tests/test-floorf1.c (ASSERT): Likewise.
30085         * tests/test-floorf2.c (ASSERT): Likewise.
30086         * tests/test-floorl.c (ASSERT): Likewise.
30087         * tests/test-fopen.c (ASSERT): Likewise.
30088         * tests/test-fpending.c (ASSERT): Likewise.
30089         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30090         * tests/test-fpurge.c (ASSERT): Likewise.
30091         * tests/test-freadable.c (ASSERT): Likewise.
30092         * tests/test-freadahead.c (ASSERT): Likewise.
30093         * tests/test-freading.c (ASSERT): Likewise.
30094         * tests/test-freadptr.c (ASSERT): Likewise.
30095         * tests/test-freadptr2.c (ASSERT): Likewise.
30096         * tests/test-freadseek.c (ASSERT): Likewise.
30097         * tests/test-freopen.c (ASSERT): Likewise.
30098         * tests/test-frexp.c (ASSERT): Likewise.
30099         * tests/test-frexpl.c (ASSERT): Likewise.
30100         * tests/test-fseek.c (ASSERT): Likewise.
30101         * tests/test-fseeko.c (ASSERT): Likewise.
30102         * tests/test-fstrcmp.c (ASSERT): Likewise.
30103         * tests/test-ftell.c (ASSERT): Likewise.
30104         * tests/test-ftello.c (ASSERT): Likewise.
30105         * tests/test-func.c (ASSERT): Likewise.
30106         * tests/test-fwritable.c (ASSERT): Likewise.
30107         * tests/test-fwriting.c (ASSERT): Likewise.
30108         * tests/test-getdelim.c (ASSERT): Likewise.
30109         * tests/test-getline.c (ASSERT): Likewise.
30110         * tests/test-i-ring.c (ASSERT): Likewise.
30111         * tests/test-iconv-utf.c (ASSERT): Likewise.
30112         * tests/test-iconv.c (ASSERT): Likewise.
30113         * tests/test-isfinite.c (ASSERT): Likewise.
30114         * tests/test-isnand.c (ASSERT): Likewise.
30115         * tests/test-isnanf.c (ASSERT): Likewise.
30116         * tests/test-isnanl.h (ASSERT): Likewise.
30117         * tests/test-ldexpl.c (ASSERT): Likewise.
30118         * tests/test-linked_list.c (ASSERT): Likewise.
30119         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30120         * tests/test-localename.c (ASSERT): Likewise.
30121         * tests/test-lseek.c (ASSERT): Likewise.
30122         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30123         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30124         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30125         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30126         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30127         * tests/test-mbschr.c (ASSERT): Likewise.
30128         * tests/test-mbscspn.c (ASSERT): Likewise.
30129         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30130         * tests/test-mbspbrk.c (ASSERT): Likewise.
30131         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30132         * tests/test-mbsrchr.c (ASSERT): Likewise.
30133         * tests/test-mbsspn.c (ASSERT): Likewise.
30134         * tests/test-mbsstr1.c (ASSERT): Likewise.
30135         * tests/test-mbsstr2.c (ASSERT): Likewise.
30136         * tests/test-mbsstr3.c (ASSERT): Likewise.
30137         * tests/test-memchr2.c (ASSERT): Likewise.
30138         * tests/test-memmem.c (ASSERT): Likewise.
30139         * tests/test-open.c (ASSERT): Likewise.
30140         * tests/test-printf-frexp.c (ASSERT): Likewise.
30141         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30142         * tests/test-printf-posix.c (ASSERT): Likewise.
30143         * tests/test-quotearg.c (ASSERT): Likewise.
30144         * tests/test-rbtree_list.c (ASSERT): Likewise.
30145         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30146         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30147         * tests/test-round1.c (ASSERT): Likewise.
30148         * tests/test-roundf1.c (ASSERT): Likewise.
30149         * tests/test-roundl.c (ASSERT): Likewise.
30150         * tests/test-signbit.c (ASSERT): Likewise.
30151         * tests/test-sleep.c (ASSERT): Likewise.
30152         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30153         * tests/test-snprintf.c (ASSERT): Likewise.
30154         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30155         * tests/test-stat-time.c (ASSERT): Likewise.
30156         * tests/test-strcasestr.c (ASSERT): Likewise.
30157         * tests/test-strerror.c (ASSERT): Likewise.
30158         * tests/test-striconv.c (ASSERT): Likewise.
30159         * tests/test-striconveh.c (ASSERT): Likewise.
30160         * tests/test-striconveha.c (ASSERT): Likewise.
30161         * tests/test-strsignal.c (ASSERT): Likewise.
30162         * tests/test-strstr.c (ASSERT): Likewise.
30163         * tests/test-strtod.c (ASSERT): Likewise.
30164         * tests/test-trunc1.c (ASSERT): Likewise.
30165         * tests/test-trunc2.c (ASSERT): Likewise.
30166         * tests/test-truncf1.c (ASSERT): Likewise.
30167         * tests/test-truncf2.c (ASSERT): Likewise.
30168         * tests/test-truncl.c (ASSERT): Likewise.
30169         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30170         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30171         * tests/test-vasnprintf.c (ASSERT): Likewise.
30172         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30173         * tests/test-vasprintf.c (ASSERT): Likewise.
30174         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30175         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30176         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30177         * tests/test-vsnprintf.c (ASSERT): Likewise.
30178         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30179         * tests/test-wcwidth.c (ASSERT): Likewise.
30180         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30181         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30182         * tests/test-xvasprintf.c (ASSERT): Likewise.
30183         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30184         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30185         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30186         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30187         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30188         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30189         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30190         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30191         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30192         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30193         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30194         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30195         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30196         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30197         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30198         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30199         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30200         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30201         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30202         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30203         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30204         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30205         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30206         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30207         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30208         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30209         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30210         * tests/unictype/test-combining.c (ASSERT): Likewise.
30211         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30212         * tests/unictype/test-digit.c (ASSERT): Likewise.
30213         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30214         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30215         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30216         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30217         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30218         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30219         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30220         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30221         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30222         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30223         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30224         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30225         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30226         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30227         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30228         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30229         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30230         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30231         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30232         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30233         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30234         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30235         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30236         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30237         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30238         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30239         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30240         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30241         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30242         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30243         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30244         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30245         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30246         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30247         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30248         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30249         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30250         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30251         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30252         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30253         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30254         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30255         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30256         Reported by Eric Blake.
30257
30258 2008-04-11  Bruno Haible  <bruno@clisp.org>
30259
30260         * lib/wchar.in.h: Tweak comment.
30261
30262 2008-04-11  Bruno Haible  <bruno@clisp.org>
30263
30264         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30265         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30266         gl_COMMON.
30267         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30268
30269 2008-04-11  Bruno Haible  <bruno@clisp.org>
30270
30271         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30272
30273 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30274
30275         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30276         of attempting to use non-existing /dev/*random.  Based on patch
30277         from Adam Strzelecki <ono@java.pl> in
30278         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30279
30280 2008-04-08  Bruno Haible  <bruno@clisp.org>
30281
30282         Add tentative support for emx+gcc.
30283         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30284         * lib/fpurge.c (fpurge): Likewise.
30285         * lib/freadable.c (freadable): Likewise.
30286         * lib/freadahead.c (freadahead): Likewise.
30287         * lib/freading.c (freading): Likewise.
30288         * lib/freadptr.c (freadptr): Likewise.
30289         * lib/freadseek.c (freadptrinc): Likewise.
30290         * lib/fseeko.c (rpl_fseeko): Likewise.
30291         * lib/fseterr.c (fseterr): Likewise.
30292         * lib/fwritable.c (fwritable): Likewise.
30293         * lib/fwriting.c (fwriting): Likewise.
30294         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30295
30296 2008-04-09  Eric Blake  <ebb9@byu.net>
30297
30298         Avoid some autoconf warnings.
30299         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30300         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30301         * m4/afs.m4 (gl_AFS): Likewise.
30302         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30303         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30304         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30305         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30306         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30307         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30308         (AC_CHECK_DECLS_ONCE): Likewise.
30309         Rename file...
30310         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30311         gnulib-tool requires autoconf 2.59 or better.
30312         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30313
30314 2008-04-08  Eric Blake  <ebb9@byu.net>
30315
30316         Use 'git describe --match' if present (added in git 1.5.5).
30317         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30318         if possible.
30319
30320 2008-04-08  Bruno Haible  <bruno@clisp.org>
30321
30322         Add tentative support for OpenServer.
30323         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30324         _ptr, _cnt.
30325         * lib/fpurge.c (fpurge): Likewise.
30326         * lib/freadable.c (freadable): Likewise.
30327         * lib/freadahead.c (freadahead): Likewise.
30328         * lib/freading.c (freading): Likewise.
30329         * lib/freadptr.c (freadptr): Likewise.
30330         * lib/freadseek.c (freadptrinc): Likewise.
30331         * lib/fseeko.c (rpl_fseeko): Likewise.
30332         * lib/fseterr.c (fseterr): Likewise.
30333         * lib/fwritable.c (fwritable): Likewise.
30334         * lib/fwriting.c (fwriting): Likewise.
30335         Reported by Roger Cornelius <rac@tenzing.org> and
30336         Brian K. White <brian@aljex.com>.
30337
30338 2008-04-06  Jim Meyering  <meyering@redhat.com>
30339
30340         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30341
30342 2008-04-06  Bruno Haible  <bruno@clisp.org>
30343
30344         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30345         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30346         * tests/test-printf-posix.sh: Likewise.
30347         * tests/test-vfprintf-posix.sh: Likewise.
30348         * tests/test-vprintf-posix.sh: Likewise.
30349         * tests/test-xprintf-posix.sh: Likewise.
30350
30351 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30352
30353         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30354         hide error from 'ls', needed on OS/2.
30355         Report by Elbert Pol <elbert.pol@gmail.com>.
30356
30357 2008-04-04  Eric Blake  <ebb9@byu.net>
30358
30359         Make test-fseeko.c failures meaningful.
30360         * tests/test-fseeko.c: Print line number on failure.
30361         * tests/test-fseek.c: Likewise.
30362         Reported by Nelson H. F. Beebe.
30363
30364         Improve strtod bug detection check.
30365         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
30366         required for Solaris 10.
30367         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
30368
30369 2008-04-04  Bruno Haible  <bruno@clisp.org>
30370
30371         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
30372         by m4/setenv.m4.
30373
30374 2008-04-03  Eric Blake  <ebb9@byu.net>
30375
30376         Ensure sane .version contents.
30377         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
30378         version string.
30379         * build-aux/git-version-gen: Improve documentation.
30380
30381         Make GNU make output nicer.
30382         * top/GNUmakefile [!_have-Makefile]: Add dependency on
30383         MAKECMDGOALS to enforce message for all command line targets.  Set
30384         srcdir for use in maint.mk.
30385
30386         Another maintainer tweak.
30387         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
30388         a target that regenerates version.
30389
30390 2008-04-03  Jim Meyering  <meyering@redhat.com>
30391
30392         vc-list-files: don't cause coreutils "make po-check" failure
30393         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
30394
30395 2008-04-03  Eric Blake  <ebb9@byu.net>
30396
30397         Allow VPATH usage of vc-list-files.
30398         * build-aux/vc-list-files (scriptversion): Add timestamp.
30399         (options): Add --help, --version, -C.
30400         (CVS): Support installed cvsu.
30401
30402 2008-04-02  Bruno Haible  <bruno@clisp.org>
30403
30404         Avoid some "statement with no effect" warnings from gcc.
30405         * tests/test-wctype.c (main): Explicitly ignore unused values.
30406         Reported by Jim Meyering.
30407
30408 2008-04-02  Jim Meyering  <meyering@redhat.com>
30409
30410         Avoid some warnings from "gcc -Wshadow".
30411         * tests/test-frexp.c (exp): Define to a different identifier.
30412         * tests/test-frexpl.c (exp): Likewise.
30413
30414 2008-04-03  Jim Meyering  <meyering@redhat.com>
30415
30416         bootstrap: remove dangling *.[ch] symlinks from lib
30417         * build-aux/bootstrap [dangling symlink removal]: Move find's
30418         -depth option to precede all others, to avoid a warning.
30419         Remove *.[ch] files too, and from "$source_base" (usually lib/).
30420
30421 2008-04-02  Bruno Haible  <bruno@clisp.org>
30422
30423         Avoid some warnings from "gcc -Wshadow".
30424         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
30425         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
30426         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
30427         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
30428         Reported by Jim Meyering.
30429
30430 2008-04-01  Bruno Haible  <bruno@clisp.org>
30431
30432         Fix test to work on IRIX 6.5 with cc.
30433         * tests/test-math.c (numeric_equal): New function.
30434         (main): Use it.
30435
30436 2008-04-01  Bruno Haible  <bruno@clisp.org>
30437
30438         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
30439
30440 2008-04-01  Bruno Haible  <bruno@clisp.org>
30441
30442         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
30443         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30444         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
30445         (Depends-on): Remove math.
30446
30447         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
30448         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30449         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
30450         (Depends-on): Remove math.
30451
30452         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
30453         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30454         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
30455         (Depends-on): Remove math.
30456         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
30457         (Depends-on): Remove math.
30458
30459         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
30460         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30461         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
30462         (Depends-on): Remove math.
30463         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
30464         (Depends-on): Remove math.
30465
30466         * tests/test-round1.c: Include nan.h.
30467         (main): Use NaNd instead of NAN.
30468         * modules/round-tests (Files): Add tests/nan.h.
30469
30470         * tests/test-trunc1.c: Include nan.h.
30471         (main): Use NaNd instead of NAN.
30472         * modules/trunc-tests (Files): Add tests/nan.h.
30473
30474         * tests/test-roundf1.c: Include nan.h.
30475         (main): Use NaNf instead of NAN.
30476         * modules/roundf-tests (Files): Add tests/nan.h.
30477
30478         * tests/test-truncf1.c: Include nan.h.
30479         (main): Use NaNf instead of NAN.
30480         * modules/truncf-tests (Files): Add tests/nan.h.
30481
30482         * tests/test-ceilf1.c: Include nan.h.
30483         (main): Use NaNf instead of NAN.
30484         * modules/ceilf-tests (Files): Add tests/nan.h.
30485
30486         * tests/test-floorf1.c: Include nan.h.
30487         (main): Use NaNf instead of NAN.
30488         * modules/floorf-tests (Files): Add tests/nan.h.
30489
30490         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
30491         (main): Use NaNf instead of NAN.
30492         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
30493
30494         * tests/test-isnand.c: Include nan.h instead of <math.h>.
30495         (main): Use NaNd instead of NAN.
30496         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
30497
30498         * tests/test-frexp.c: Include nan.h.
30499         (main): Use NaNd instead of NAN.
30500         * modules/frexp-tests (Files): Add tests/nan.h.
30501
30502         * lib/isnan.c: Don't include <math.h>.
30503         (FUNC): Don't use NAN macro.
30504         * modules/isnand-nolibm (Depends-on): Remove math.
30505         * modules/isnanf-nolibm (Depends-on): Remove math.
30506         * modules/isnanl (Depends-on): Remove math.
30507         * modules/isnanl-nolibm (Depends-on): Remove math.
30508
30509         * tests/nan.h: New file.
30510
30511 2008-04-01  Eric Blake  <ebb9@byu.net>
30512
30513         Fix typos.
30514         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
30515         values to be the right type.
30516
30517         For now, cater to gnulib strtod inaccuracies.
30518         * tests/test-strtod.c (main): Allow 1-ulp error on expected
30519         fractional results.  While not as nice from a QoI perspective, it
30520         is a quicker patch than correctly implementing decimal to binary
30521         rounding.
30522
30523 2008-03-31  Eric Blake  <ebb9@byu.net>
30524
30525         Guarantee a definition of NAN.
30526         * lib/math.in.h (NAN): Define if missing.
30527         * tests/test-math.c (main): Test it.
30528         * doc/posix-headers/math.texi (math.h): Document this.
30529         * lib/isnan.c (rpl_isnand): Use it.
30530         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
30531         * tests/test-floorf1.c (NaN): Likewise.
30532         * tests/test-frexp.c (NaN): Likewise.
30533         * tests/test-isnand.c (NaN): Likewise.
30534         * tests/test-isnanf.c (NaN): Likewise.
30535         * tests/test-round1.c (NaN): Likewise.
30536         * tests/test-roundf1.c (NaN): Likewise.
30537         * tests/test-snprintf-posix.h (NaN): Likewise.
30538         * tests/test-sprintf-posix.h (NaN): Likewise.
30539         * tests/test-trunc1.c (NaN): Likewise.
30540         * tests/test-truncf1.c (NaN): Likewise.
30541         * tests/test-vasnprintf-posix.c (NaN): Likewise.
30542         * tests/test-vasprintf-posix.c (NaN): Likewise.
30543         * modules/isnand-nolibm (Depends-on): Add math.
30544         * modules/isnanf-nolibm (Depends-on): Likewise.
30545         * modules/isnanl (Depends-on): Likewise.
30546         * modules/isnanl-nolibm (Depends-on): Likewise.
30547         * modules/snprintf-posix-tests (Depends-on): Likewise.
30548         * modules/sprintf-posix-tests (Depends-on): Likewise.
30549         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
30550         * modules/vsprintf-posix-tests (Depends-on): Likewise.
30551         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
30552         * modules/vasprintf-posix-tests (Depends-on): Likewise.
30553
30554 2008-03-31  Bruno Haible  <bruno@clisp.org>
30555
30556         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
30557         * doc/posix-functions/strtod.texi: Likewise.
30558
30559 2008-03-31  Bruno Haible  <bruno@clisp.org>
30560
30561         * tests/test-strtod.c (main): Don't use C99 syntax.
30562
30563 2008-03-31  Bruno Haible  <bruno@clisp.org>
30564
30565         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
30566         Reported by Eric Blake.
30567
30568 2008-03-31  Jim Meyering  <meyering@redhat.com>
30569
30570         Don't compare actual signbit return values.
30571         * tests/test-strtod.c (main): Rather, compare only their
30572         zero/non-zero nature.
30573
30574 2008-03-31  Eric Blake  <ebb9@byu.net>
30575
30576         More strtod documentation.
30577         * doc/posix-functions/strtod.texi (strtod): Interpret more test
30578         failures as distinct bugs.
30579
30580 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
30581
30582         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
30583         Problem reported by Erik Benada in
30584         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
30585
30586 2008-03-30  Bruno Haible  <bruno@clisp.org>
30587
30588         * tests/test-strtod.c: Add comments about which assertion fails on which
30589         platform.
30590         * doc/posix-functions/strtod.texi: Add info about many more platforms.
30591
30592 2008-03-30  Eric Blake  <ebb9@byu.net>
30593
30594         Test signbit behavior on zeros.
30595         * tests/test-signbit.c (test_signbitf): Add tests for zero.
30596         (test_signbitd, test_signbitl): Likewise.
30597
30598         More strtod touchups.
30599         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
30600         sign of negative underflow, for now.  Use .5, not .1.
30601         * doc/posix-functions/strtod.texi (strtod): Mention these
30602         limitations.
30603         Reported by Jim Meyering.
30604
30605 2008-03-30  Bruno Haible  <bruno@clisp.org>
30606
30607         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
30608         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
30609
30610 2008-03-30  Bruno Haible  <bruno@clisp.org>
30611
30612         Avoid failure when attempting to return empty iconv results on some
30613         platforms.
30614         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
30615         allocation, don't report ENOMEM when the resulting string is empty.
30616
30617 2008-03-30  Bruno Haible  <bruno@clisp.org>
30618
30619         Fix buffer overrun.
30620         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
30621         Don't consider the width for tmp_length. Check count against tmp_length
30622         before doing the padding. Ensure enough allocation during padding.
30623
30624 2008-03-30  Eric Blake  <ebb9@byu.net>
30625
30626         strtod touchups.
30627         * lib/strtod.c (strtod): Avoid compiler warnings.
30628         Reported by Jim Meyering.
30629
30630 2008-03-30  Bruno Haible  <bruno@clisp.org>
30631
30632         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
30633         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
30634         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
30635         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
30636         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
30637         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
30638         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
30639         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
30640
30641         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
30642         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
30643         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
30644         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
30645         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
30646         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
30647         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
30648         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
30649
30650         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
30651         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
30652         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
30653         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
30654         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
30655         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
30656         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
30657         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
30658
30659         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
30660         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
30661
30662         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
30663         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
30664
30665         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
30666         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
30667
30668         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
30669         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
30670         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
30671
30672         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
30673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
30674         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
30675
30676         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
30677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
30678         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
30679
30680         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
30681         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
30682         * modules/vasprintf (Depends-on): Add EOVERFLOW.
30683
30684         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
30685         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
30686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
30687         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
30688         (Depends-on): Add EOVERFLOW.
30689         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
30690         (Depends-on): Add EOVERFLOW.
30691         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30692         (Depends-on): Add EOVERFLOW.
30693         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30694         (Depends-on): Add EOVERFLOW.
30695         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30696         (Depends-on): Add EOVERFLOW.
30697         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30698         (Depends-on): Add EOVERFLOW.
30699         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30700         (Depends-on): Add EOVERFLOW.
30701         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30702         (Depends-on): Add EOVERFLOW.
30703
30704         * lib/sprintf.c (EOVERFLOW): Remove fallback.
30705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
30706         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
30707
30708         * lib/snprintf.c (EOVERFLOW): Remove fallback.
30709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
30710         * modules/snprintf (Depends-on): Add EOVERFLOW.
30711
30712         * lib/poll.c (EOVERFLOW): Remove fallback.
30713         * modules/poll (Depends-on): Add EOVERFLOW.
30714
30715         * lib/getugroups.c (EOVERFLOW): Remove fallback.
30716         * modules/getugroups (Depends-on): Add EOVERFLOW.
30717
30718         * lib/getdelim.c (EOVERFLOW): Remove fallback.
30719         * modules/getdelim (Depends-on): Add EOVERFLOW.
30720
30721         * lib/ftell.c (EOVERFLOW): Remove fallback.
30722         * modules/ftell (Depends-on): Add EOVERFLOW.
30723
30724         * lib/fprintf.c (EOVERFLOW): Remove fallback.
30725         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
30726         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
30727
30728         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
30729
30730         * modules/EOVERFLOW-tests: New file.
30731         * tests/test-EOVERFLOW.c: New file.
30732
30733         * modules/EOVERFLOW: New file.
30734         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
30735
30736 2008-03-30  Bruno Haible  <bruno@clisp.org>
30737
30738         Fix bug introduced on 2007-06-10.
30739         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
30740         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
30741
30742 2008-03-30  Bruno Haible  <bruno@clisp.org>
30743
30744         Improve freadseek's efficiency after ungetc.
30745         * lib/freadseek.c: Include freadahead.h.
30746         (freadptrinc): New function, extracted from freadseek.
30747         (freadseek): Use it in a loop. Use freadahead to determine the number
30748         of loop iterations.
30749         * modules/freadseek (Depends-on): Add freadahead.
30750         (configure.ac): Require AC_C_INLINE.
30751
30752 2008-03-30  Bruno Haible  <bruno@clisp.org>
30753
30754         * lib/freadseek.c (freadseek): Don't ignore the return value of
30755         freadptr.
30756
30757 2008-03-29  Eric Blake  <ebb9@byu.net>
30758
30759         Add hex float support.
30760         * modules/strtod (Depends-on): Add c-ctype.
30761         (Link): Mention POW_LIB.
30762         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
30763         whitespace between 'e' and exponent.
30764         * tests/test-strtod.c (main): Enable hex float tests.
30765         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
30766         now provides.
30767
30768         Document various strtod bugs, with some fixes.
30769         * doc/posix-functions/strtod.texi (strtod): Document bugs with
30770         "-0x", "inf", "nan", and hex constants.
30771         * doc/posix-functions/atof.texi (atof): Likewise.
30772         * modules/stdlib (Makefile.am): Support strtod.
30773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30774         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
30775         detect additional strtod bugs.
30776         * lib/stdlib.in.h (rpl_strtod): Add declarations.
30777         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
30778         bool where appropriate.  Parse 'inf' and 'nan'.
30779         * tests/test-strtod.c: New file.
30780         * modules/strtod (Depends-on): Add stdbool, stdlib.
30781         (configure.ac): Turn on module indicator.
30782         * modules/strtod-tests: New module.
30783
30784 2008-03-29  Eric Blake  <ebb9@byu.net>
30785
30786         Fix ftell on mingw.
30787         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
30788         * modules/ftell-tests (Depends-on): Add binary-io.
30789         * modules/ftello-tests (Depends-on): Likewise.
30790         * tests/test-ftell.c (main): Enhance test to cover behavior after
30791         ungetc.  Enforce binary mode.
30792         * tests/test-ftello.c (main): Likewise.
30793
30794         Pass test-freadseek on cygwin.
30795         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
30796         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
30797         ungetc buffer.
30798
30799         * tests/test-fflush2.c (main): Fix typo.
30800
30801 2008-03-29  Bruno Haible  <bruno@clisp.org>
30802
30803         * tests/test-fflush2.c (main): Temporarily disable the contents of
30804         this test.
30805         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
30806         Reported by Eric Blake.
30807
30808 2008-03-28  Simon Josefsson  <simon@josefsson.org>
30809
30810         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
30811         (GC_SHA224_DIGEST_SIZE): Add.
30812
30813         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
30814         (gc_hash_digest_length): Likewise.
30815         (gc_hash_buffer): Likewise.
30816
30817 2008-03-25  Bruno Haible  <bruno@clisp.org>
30818
30819         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
30820         detail which gettext release to use.
30821         Reported by Simon Josefsson.
30822
30823 2008-03-26  Jim Meyering  <meyering@redhat.com>
30824
30825         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
30826         * modules/gnumakefile (clean-GNUmakefile): Also, use
30827         test ... && ... || : syntax rather than if-then ... fi.
30828
30829         gnumakefile: Don't double-quote-expand $(VPATH) value.
30830         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
30831
30832 2008-03-24  Eric Blake  <ebb9@byu.net>
30833
30834         Alter GNUmakefile to install into top directory.
30835         * modules/maintainer-makefile: Split, and add dependency...
30836         * modules/gnumakefile: to this new module.
30837         * build-aux/GNUmakefile: Move...
30838         * top/GNUmakefile: ...here.
30839         * build-aux/maint.mk: Move...
30840         * top/maint.mk: ...here.
30841         * MODULES.html.sh (Support for maintaining...): Document new
30842         module.
30843
30844 2008-03-23  Bruno Haible  <bruno@clisp.org>
30845
30846         * gnulib-tool: New options --vc-files, --no-vc-files.
30847         (func_usage): Document them.
30848         (vc_files): New variable.
30849         (func_import): Consider vc_files.
30850         (func_create_testdir): Set vc_files to empty.
30851         Suggested by Jim Meyering and Karl Berry.
30852
30853 2008-03-23  Bruno Haible  <bruno@clisp.org>
30854
30855         Fix regex compilation error on HP-UX 11.
30856         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
30857         * modules/regex (Files): Add m4/mbstate_t.m4.
30858         Reported by Ton Voon <ton.voon@altinity.com>.
30859
30860 2008-03-23  Bruno Haible  <bruno@clisp.org>
30861
30862         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
30863
30864 2008-03-23  Eric Blake  <ebb9@byu.net>
30865             Bruno Haible  <bruno@clisp.org>
30866
30867         Install files from top/ in the destination directory.
30868         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30869         augmentation also for the files from top/.
30870         (func_import, func_create_testdir): Rewrite file names:
30871         top/filename -> filename.
30872
30873 2008-03-23  Bruno Haible  <bruno@clisp.org>
30874
30875         Tweak "gnulib --version" output.
30876         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
30877
30878 2008-03-23  Bruno Haible  <bruno@clisp.org>
30879
30880         Tweak "gnulib --version" output.
30881         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
30882         rather than contents of ChangeLog, when possible.
30883
30884 2008-03-21  Eric Blake  <ebb9@byu.net>
30885
30886         More --version tweaks.
30887         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
30888         date of last ChangeLog entry.
30889
30890 2008-03-21  Jim Meyering  <meyering@redhat.com>
30891
30892         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
30893
30894 2008-03-20  Eric Blake  <ebb9@byu.net>
30895
30896         VPATH fix.
30897         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
30898
30899 2008-03-20  Simon Josefsson  <simon@josefsson.org>
30900
30901         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
30902         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
30903
30904 2008-03-20  Eric Blake  <ebb9@byu.net>
30905
30906         Sync GNUmakefile with coreutils.
30907         * build-aux/GNUmakefile (have-Makefile): Rename...
30908         (_have-Makefile): ...to this, for namespace consideration.
30909         (GNUmakefile.cfg): Include, if present.
30910         (_autoreconf): Define a default.
30911         (_is-dist-target): New rule for rebuilds to pick up intra-release
30912         version.
30913         (maint-cfg.mk): Rename...
30914         (cfg.mk): ...to this.
30915
30916 2008-03-18  Jim Meyering  <meyering@redhat.com>
30917
30918         New script and module: mktempd
30919         * MODULES.html.sh (maint+release support): Add mktempd.
30920         * build-aux/mktempd: New file.
30921         * modules/mktempd: New file.
30922
30923 2008-03-15  Jim Meyering  <meyering@redhat.com>
30924
30925         Undo last change.
30926         * lib/sha1.c, lib/md5.c: 63 != ~63.
30927         Reported by Andreas Schwab.
30928
30929         sha1.c, md5.c: Hoist a redundant expression.
30930         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30931         "ctx->buflen" only once, before calling *_process_block.
30932         * lib/md5.c (md5_process_bytes): Likewise.
30933
30934 2008-03-14  Eric Blake  <ebb9@byu.net>
30935
30936         Bump copyright year in files generated by gnulib-tool.
30937         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30938         gnulib-tool, rather than hard-coding it.
30939
30940         Fix 'gnulib-tool --version' output to work with git.
30941         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30942         (startup): ...here.
30943         (func_version): Use it to invoke git-version-gen, rather than
30944         relying on CVS keyword expansion.  Modernize wording.
30945         (cvsdatestamp, last_checkin_date, version): Kill unused
30946         variables.
30947
30948 2008-03-12  Jim Meyering  <meyering@redhat.com>
30949
30950         Recognize optional cast of the argument to free.
30951         * build-aux/useless-if-before-free: Update regexps.
30952
30953         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
30954
30955 2008-03-11  Bruno Haible  <bruno@clisp.org>
30956
30957         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
30958         by a single package.
30959         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
30960         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
30961         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
30962         Reported by Sam Steingold <sds@gnu.org>.
30963
30964 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30965
30966         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
30967         repositories.
30968
30969 2008-03-11  Bruno Haible  <bruno@clisp.org>
30970
30971         Avoid conflicts between local macro definitions.
30972         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30973         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
30974
30975 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
30976             Bruno Haible  <bruno@clisp.org>
30977
30978         Make va_copy work with some version of xlc on AIX 5.1.
30979         * lib/stdarg.in.h: New file.
30980         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
30981         On AIX, use a <stdarg.h> file substitute.
30982         * modules/stdarg (Files): Add lib/stdarg.in.h.
30983         (Depends-on): Add include_next.
30984         (Makefile.am): Build a stdarg.h substitute if requested.
30985         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
30986
30987 2008-03-10  Bruno Haible  <bruno@clisp.org>
30988
30989         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
30990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30991         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30992
30993 2008-03-10  Bruno Haible  <bruno@clisp.org>
30994
30995         * modules/stdlib (Depends-on): Add include_next, remove
30996         absolute-header.
30997
30998 2008-03-09  Bruno Haible  <bruno@clisp.org>
30999
31000         * lib/freadahead.h (freadahead): Document more precisely.
31001         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31002         the sum of both buffer sizes.
31003         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31004         * NEWS: Document the change.
31005
31006 2008-03-09  Bruno Haible  <bruno@clisp.org>
31007
31008         Extend freadptr to return also the buffer size.
31009         * lib/freadptr.h (freadptr): Add sizep argument.
31010         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31011         (freadptr): Add sizep argument. Determine buffer size like freadahead
31012         does.
31013         * tests/test-freadptr.c: Don't include freadahead.h.
31014         (main): Adapt for new calling convention of freadptr.
31015         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31016         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31017         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31018         tests/test-freadptr2.sh.
31019         (Depends): Remove freadahead.
31020         (TESTS): Add test-freadptr2.sh.
31021         (check_PROGRAMS): Add test-freadptr2.
31022
31023 2008-03-09  Bruno Haible  <bruno@clisp.org>
31024
31025         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31026         Report and solution by Simon Josefsson.
31027
31028 2008-03-06  Bruno Haible  <bruno@clisp.org>
31029
31030         Make fflush after ungetc work on BSD platforms.
31031         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31032         * tests/test-fflush2.c: New file.
31033         * tests/test-fflush2.sh: New file.
31034         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31035         tests/test-fflush2.c.
31036         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31037         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31038
31039 2008-03-06  Eric Blake  <ebb9@byu.net>
31040
31041         Likewise for ftello.
31042         * modules/ftello (Dependencies): Add extensions.
31043         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31044
31045 2008-03-06  Bruno Haible  <bruno@clisp.org>
31046
31047         * modules/fseeko (Dependencies): Add extensions.
31048         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31049         Needed on glibc systems.
31050
31051 2008-03-06  Bruno Haible  <bruno@clisp.org>
31052
31053         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31054         email address.
31055         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31056
31057 2008-03-06  Bruno Haible  <bruno@clisp.org>
31058
31059         * users.txt: Add libgnupdf.
31060
31061 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31062
31063         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31064         (Header File Substitutes, Function Substitutes,
31065         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31066         (Build robot for gnulib): Fix typo.
31067
31068 2008-03-06  Bruno Haible  <bruno@clisp.org>
31069
31070         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31071         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31072
31073 2008-03-06  Bruno Haible  <bruno@clisp.org>
31074
31075         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31076         * doc/gnulib.texi: Include it.
31077
31078 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31079
31080         * modules/func (License): Change license to unlimited; there was
31081         no LGPL parts in the module anyway.
31082
31083 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31084
31085         * modules/__func__: Renamed to modules/func.
31086         * modules/__func__-tests: Renamed to modules/func-tests.
31087         * tests/test-__func__.c: Renamed to tests/test-func.c.
31088         * m4/__func__.m4: Renamed to m4/func.m4.
31089         * doc/gnulib.texi (__func__): Section renamed to func.
31090         Suggested by Eric Blake <ebb9@byu.net>.
31091
31092 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31093
31094         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31095         about __func__.  Make example self-contained.  Suggested by Eric
31096         Blake <ebb9@byu.net>.
31097
31098         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31099         Suggested by Eric Blake <ebb9@byu.net>.
31100
31101 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31102
31103         * modules/__func__: New file.
31104         * modules/__func__-tests: New file.
31105         * tests/test-__func__.c: New file.
31106         * m4/__func__.m4: New file.
31107         * doc/gnulib.texi (__func__): Document __func__ module.
31108
31109 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31110
31111         * modules/byteswap (License): Re-license as LGPLv2+.
31112
31113 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31114
31115         * doc/Makefile: Add pdf target.
31116
31117 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31118
31119         * modules/inline (License): Use 'unlimited', since there are only
31120         *.m4 files in this module.
31121
31122 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31123             Bruno Haible  <bruno@clisp.org>
31124
31125         Add support for HP C 7.1 on OpenVMS 8.3.
31126         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31127
31128 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31129
31130         Update VMS specifics.
31131         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31132
31133 2008-03-02  Jim Meyering  <meyering@redhat.com>
31134
31135         Remove the last dependency on the "free" module.
31136         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31137         Reported by Bob Proulx.
31138
31139         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31140
31141         Remove useless "if" tests before free.  Deprecate "free" module.
31142         * doc/posix-functions/free.texi: Mention that this
31143         module is no longer useful.
31144         * modules/free (Notice): Say this module is obsolete.
31145         * modules/readutmp (Depends-on): Remove free.
31146         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31147         * lib/putenv.c (putenv): Likewise.
31148         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31149         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31150         * tests/test-c-strcasestr.c (main): Likewise.
31151         * tests/test-c-strstr.c (main): Likewise.
31152         * tests/test-mbscasestr1.c (main): Likewise.
31153         * tests/test-mbscasestr2.c (main): Likewise.
31154         * tests/test-mbsstr1.c (main): Likewise.
31155         * tests/test-mbsstr2.c (main): Likewise.
31156         * tests/test-memmem.c (main): Likewise.
31157         * tests/test-strcasestr.c (main): Likewise.
31158         * tests/test-striconv.c (main): Likewise.
31159         * tests/test-striconveh.c (main): Likewise.
31160         * tests/test-striconveha.c (main): Likewise.
31161         * tests/test-strstr.c (main): Likewise.
31162
31163         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31164
31165         bootstrap: sync from coreutils again
31166         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31167
31168 2008-03-01  Jim Meyering  <meyering@redhat.com>
31169
31170         bootstrap: sync from coreutils
31171         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31172         also when the target doesn't exist.
31173
31174 2008-03-01  Eric Blake  <ebb9@byu.net>
31175
31176         Fix bugs in last patch.
31177         * lib/memchr2.c (memchr2): Fix typo.
31178         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31179         extension.
31180         Reported by Bruce Korb.
31181
31182         New module 'memchr2'.
31183         * modules/memchr2: New file.
31184         * modules/memchr2-tests: Likewise.
31185         * lib/memchr2.h: Likewise.
31186         * lib/memchr2.c: Likewise, based on memchr.c.
31187         * tests/test-memchr2.c: New test.
31188         * MODULES.html.sh (String handling): Add memchr2.
31189
31190 2008-02-29  Bruno Haible  <bruno@clisp.org>
31191
31192         * modules/freadseek-tests: New file.
31193         * tests/test-freadseek.sh: New file.
31194         * tests/test-freadseek.c: New file.
31195
31196         New module 'freadseek'.
31197         * modules/freadseek: New file.
31198         * lib/freadseek.h: New file.
31199         * lib/freadseek.c: New file.
31200         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31201
31202 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31203
31204         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31205         wydawca.
31206
31207         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31208         program_invocation_name and program_invocation_short_name are
31209         present.
31210
31211 2008-02-28  Bruno Haible  <bruno@clisp.org>
31212
31213         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31214         * tests/test-freadptr.sh: Also test non-seekable stdin.
31215
31216 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31217
31218         * build-aux/bootstrap (source_base, m4_base)
31219         (doc_base, tests_base): New variables.
31220         (gnulib_tool_options): Do not hardcode base directories, use
31221         the above variables instead.
31222
31223 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31224
31225         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31226
31227 2008-02-28  Bruno Haible  <bruno@clisp.org>
31228
31229         * modules/freadptr-tests: New file.
31230         * tests/test-freadptr.sh: New file.
31231         * tests/test-freadptr.c: New file.
31232
31233         New module 'freadptr'.
31234         * modules/freadptr: New file.
31235         * lib/freadptr.h: New file.
31236         * lib/freadptr.c: New file.
31237         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31238
31239 2008-02-26  Karl Berry  <karl@freefriends.org>
31240
31241         Sync from Libtool:
31242         * libltdl/argz.c (argz_add, argz_count): New functions.
31243         * libltdl/argz.in.h: Declare them.
31244         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31245
31246 2008-02-22  Bruno Haible  <bruno@clisp.org>
31247
31248         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31249         is a pointer type.  Needed for HP-UX 10.
31250         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31251         * doc/posix-functions/gmtime_r.texi: Likewise.
31252         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31253
31254 2008-02-24  Bruno Haible  <bruno@clisp.org>
31255
31256         * modules/environ-tests: New file.
31257         * tests/test-environ.c: New file.
31258
31259         New module 'environ'.
31260         * modules/environ: New file.
31261         * lib/unistd.in.h (environ): New declaration.
31262         * m4/environ.m4: New file.
31263         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31264         after use.
31265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31266         HAVE_DECL_ENVIRON.
31267         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31268         HAVE_DECL_ENVIRON.
31269         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31270         wrong claim that 'environ' is missing on some systems.
31271         * modules/execute (Depends-on): Add environ.
31272         * lib/execute.c (environ): Remove fallback declaration.
31273         * modules/pipe (Depends-on): Add environ.
31274         * lib/pipe.c (environ): Remove fallback declaration.
31275         * modules/setenv (Depends-on): Add environ.
31276         * lib/setenv.c (environ): Remove fallback declaration.
31277         * modules/unsetenv (Depends-on): Add environ.
31278         * lib/unsetenv.c (environ): Remove fallback declaration.
31279         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31280         m4/environ.m4.
31281         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31282         (gl_PREREQ_UNSETENV): Likewise.
31283
31284 2008-02-24  Bruno Haible  <bruno@clisp.org>
31285
31286         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31287
31288 2008-02-20  Bob Proulx  <bob@proulx.com>
31289
31290         Enable use of older two part flavor 'git describe'.
31291         * build-aux/git-version-gen: If using the older two part flavor of
31292         git version then recreate the third part now present in the
31293         newer three part flavor of git describe.
31294
31295 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31296
31297         * lib/fts.c (fts_build): Typo correction to comment.
31298
31299 2008-02-17  Bruno Haible  <bruno@clisp.org>
31300
31301         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31302         generating no-op conflicts.
31303
31304 2008-02-17  Bruno Haible  <bruno@clisp.org>
31305
31306         Speed up by 10%.
31307         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31308         result_entries, rather than an index-based loop.
31309
31310 2008-02-17  Bruno Haible  <bruno@clisp.org>
31311
31312         Speed up by 25%.
31313         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31314         'hashcode_cached'.
31315         (entry_create): New function.
31316         (entry_hashcode): Use the cached hashcode if possible.
31317         (read_changelog_file, try_split_merged_entry): Use entry_create.
31318
31319 2008-02-17  Bruno Haible  <bruno@clisp.org>
31320
31321         Speed up from O(n^2) to O(n) for long ChangeLog files.
31322         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31323         (read_changelog_file): Change implementation of entries_reversed list
31324         to rbtreehash.
31325         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31326
31327 2008-02-17  Bruno Haible  <bruno@clisp.org>
31328
31329         New option --split-merged-entry.
31330         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31331         (find_paragraph_end, try_split_merged_entry): New functions.
31332         (long_options): Add option --split-merged-entry.
31333         (usage): Document option --split-merged-entry.
31334         (main): Implement option --split-merged-entry.
31335         Reported by Eric Blake.
31336
31337 2008-02-17  Bruno Haible  <bruno@clisp.org>
31338
31339         * lib/git-merge-changelog.c: Include c-strstr.h.
31340         (main): Support the "git pull --rebase" situation.
31341         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31342         Reported by Eric Blake.
31343
31344 2008-02-16  Eric Blake  <ebb9@byu.net>
31345
31346         Avoid doubling \ in common case of "c-maybe" quoting style.
31347         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31348         eliding outer quotes.
31349         * lib/quotearg.h: Document this.
31350         * tests/test-quotearg.c (result_strings, inputs, results_g)
31351         (flag_results, locale_results): Test it by adding a new string to
31352         each test group.
31353         (compare_strings): Test new string.
31354
31355 2008-02-13  Eric Blake  <ebb9@byu.net>
31356
31357         Avoid trigraph quoting in default output.
31358         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31359         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31360         unless explicitly requested.
31361         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31362
31363 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
31364
31365         Don't rely on signed integer overflowing to negative value.
31366         * lib/getugroups.c (getugroups): Include <limits.h>.
31367         Instead, compare against INT_MAX, and increment only if the test passes.
31368
31369 2008-02-13  Jim Meyering  <meyering@redhat.com>
31370         and Eric Blake  <ebb9@byu.net>
31371
31372         Avoid shadowing warning and compile errors on Linux.
31373         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
31374         forwarding macros on Linux.
31375         (dcgettext): Define a stub, for Linux.
31376         (results_g, main): Avoid warnings.
31377
31378 2008-02-12  Eric Blake  <ebb9@byu.net>
31379
31380         Silence warning in last patch.
31381         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
31382
31383         Quotearg part 4: add tests, fix c-maybe colon quoting.
31384         * lib/quotearg.h: Improve documentation.
31385         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
31386         escapes when adding outer quotes.  When quoting trigraphs, use
31387         valid C notation.  When quoting NUL, omit extra characters if next
31388         character is not digit.  Alter prototype.
31389         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
31390         callers.
31391         * modules/quotearg-tests: New module.
31392         * tests/test-quotearg.c: New test.
31393
31394 2008-02-07  Eric Blake  <ebb9@byu.net>
31395
31396         Quotearg part 3: add flag to control outer quote elision.
31397         * lib/quotearg.h (c_maybe_quoting_style): New style.
31398         (enum quoting_flags): Better documentation of flags.
31399         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
31400         c-maybe style.
31401         (quotearg_buffer_restyled): Handle new flag to elide outer
31402         quotes.
31403
31404         Quotearg part 2: add flag that can control NUL elision.
31405         * lib/quotearg.h (set_quoting_flags): New prototype.
31406         * lib/quotearg.c (struct quoting_options): Add flag field.
31407         (set_quoting_flags): New function.
31408         (quotearg_buffer_restyled): Add flags parameter.
31409         (quotearg_alloc_mem): Set the flag if length cannot be returned.
31410         (quotearg_n_options): Set the flag, since length cannot be
31411         returned.
31412         (quoting_options_from_style): Default flags correctly.
31413
31414         Quotearg part 1: more wrappers, restore quotearg_char state.
31415         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
31416         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
31417         (quotearg_colon_mem): New wrappers.
31418         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
31419         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
31420         functions.
31421         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
31422         (quotearg_colon_mem): New functions.
31423
31424 2008-02-11  Bruno Haible  <bruno@clisp.org>
31425
31426         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
31427         library in the current directory: it does not work with parallel make.
31428         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31429
31430 2008-02-11  Bruno Haible  <bruno@clisp.org>
31431
31432         * .gitattributes: New file.
31433
31434 2008-02-11  Jim Meyering  <meyering@redhat.com>
31435
31436         useless-if-before-free: Fix reversed exit values.
31437         * build-aux/useless-if-before-free: Use correct values
31438         for EXIT_MATCH and EXIT_NO_MATCH.
31439
31440         * build-aux/useless-if-before-free: Close stdout carefully.
31441
31442 2008-02-10  Bruno Haible  <bruno@clisp.org>
31443
31444         New module 'git-merge-changelog'.
31445         * modules/git-merge-changelog: New file.
31446         * lib/git-merge-changelog.c: New file.
31447
31448 2008-02-10  Jim Meyering  <meyering@redhat.com>
31449
31450         useless-if-before-free: New option: --list (-l).
31451
31452         useless-if-before-free: Don't exit immediately upon open failure.
31453         * build-aux/useless-if-before-free: Exit 2 for errors.
31454         Upon failure to open a file, don't exit immediately.
31455         Rather, just warn and continue with any remaining files.
31456
31457 2008-02-10  Bruno Haible  <bruno@clisp.org>
31458
31459         New abstract list operation 'node_set_value'.
31460         * lib/gl_list.h (gl_list_node_set_value): New function.
31461         (struct gl_list_implementation): New field node_set_value.
31462         * lib/gl_list.c (gl_list_node_set_value): New function.
31463         * lib/gl_array_list.c (gl_array_node_set_value): New function.
31464         (gl_array_list_implementation): Update.
31465         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
31466         (gl_carray_list_implementation): Update.
31467         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
31468         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31469         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31470         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
31471         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31472         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31473         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31474         Update.
31475         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31476         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
31477         (gl_sublist_list_implementation): Update.
31478
31479 2008-02-10  Bruno Haible  <bruno@clisp.org>
31480
31481         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
31482         Needed when ELEMENT is #defined to 'some_type *'.
31483
31484 2008-02-10  Jim Meyering  <meyering@redhat.com>
31485
31486         New script and module: useless-if-before-free
31487         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
31488         * build-aux/useless-if-before-free: New file.
31489         * modules/useless-if-before-free: New file.
31490
31491         * build-aux/gitlog-to-changelog: Use committer date, not author date.
31492
31493         xstrtol_error: Fix typo.
31494         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
31495         s/exit_failure/exit_status/.
31496
31497 2008-02-09  Jim Meyering  <meyering@redhat.com>
31498
31499         New script and module: gitlog-to-changelog
31500         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
31501         * modules/gitlog-to-changelog: New file.
31502         * build-aux/gitlog-to-changelog: New file.
31503
31504 2008-02-08  Jim Meyering  <meyering@redhat.com>
31505
31506         Avoid two "parameter unused" warnings.
31507         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
31508         Mark "st" as used.
31509
31510         Use "git COMMAND", not "git-COMMAND".
31511         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
31512         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
31513         * build-aux/git-version-gen: Use "git status", not "git-status".
31514
31515 2008-02-07  Bruno Haible  <bruno@clisp.org>
31516
31517         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
31518         Avoids a crash on Windows Vista.
31519         Reported by Adam Strzelecki <ono@java.pl> via
31520         Simon Josefsson <simon@josefsson.org>.
31521
31522 2008-02-06  Bruno Haible  <bruno@clisp.org>
31523
31524         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
31525         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
31526         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
31527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
31528         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31529         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31530         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
31531         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
31532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31533         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31534         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31535         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31536         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31537         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31538         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31539         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
31540         left-adjust flag.
31541         * tests/test-snprintf-posix.h (test_function): Likewise.
31542         * tests/test-sprintf-posix.h (test_function): Likewise.
31543         * tests/test-vasprintf-posix.c (test_function): Likewise.
31544         * doc/posix-functions/fprintf.texi: Update.
31545         * doc/posix-functions/printf.texi: Update.
31546         * doc/posix-functions/snprintf.texi: Update.
31547         * doc/posix-functions/sprintf.texi: Update.
31548         * doc/posix-functions/vfprintf.texi: Update.
31549         * doc/posix-functions/vprintf.texi: Update.
31550         * doc/posix-functions/vsnprintf.texi: Update.
31551         * doc/posix-functions/vsprintf.texi: Update.
31552         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31553
31554 2008-02-06  Bruno Haible  <bruno@clisp.org>
31555
31556         Fix bug introduced on 2008-01-26.
31557         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
31558
31559 2008-02-06  Bruno Haible  <bruno@clisp.org>
31560
31561         Fix bug introduced on 2007-06-10.
31562         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
31563         !NEED_PRINTF_FLAG_ZERO.
31564
31565 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
31566
31567         getloadavg: use libperfstat on AIX5
31568         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
31569
31570 2008-02-03  Bruno Haible  <bruno@clisp.org>
31571
31572         * lib/diffseq.h: Add comments about required #includes.
31573         Reported by Michael Biggs <gnulib@doubleplum.net>.
31574
31575 2008-02-01  Bruno Haible  <bruno@clisp.org>
31576
31577         * users.txt: Add gnuit.
31578
31579 2008-01-31  Bruno Haible  <bruno@clisp.org>
31580
31581         * lib/md4.c (set_uint32): Mark as inline.
31582         * lib/md5.c (set_uint32): Likewise.
31583         * lib/sha1.c (set_uint32): Likewise.
31584         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
31585         * m4/md5.m4 (gl_MD5): Likewise.
31586         * m4/sha1.m4 (gl_SHA1): Likewise.
31587
31588 2008-01-31  Jim Meyering  <meyering@redhat.com>
31589
31590         Use "sizeof VAR", rather than a literal "4".
31591         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
31592         * lib/md4.c (md4_read_ctx): Likewise.
31593         * lib/sha1.c (sha1_read_ctx): Likewise.
31594
31595 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31596
31597         * tests/test-sha1.c: New file, based on test-md5.c.
31598
31599         * modules/crypto/sha1-tests: New file.
31600
31601 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31602
31603         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
31604
31605 2008-01-31  Jim Meyering  <meyering@redhat.com>
31606
31607         Prefer "sizeof v" over the equivalent "4".
31608         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
31609         * lib/md5.c (set_uint32): Likewise.
31610         * lib/sha1.c (set_uint32): Likewise.
31611
31612 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31613
31614         * lib/sha1.c (set_uint32): Mark function as static.
31615
31616 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31617
31618         md2: clarify comments to say that alignment is not required.
31619         * lib/md2.h: Remove warning about alignment in comment.
31620         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
31621         never been required.
31622
31623 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31624
31625         md4: adapt alignment constraint fix from sha1.
31626         * lib/md4.c (set_uint32): New function, from sha1.c
31627         (md4_read_ctx): Use it.
31628         (md4_finish_ctx): Doc fix.
31629         * lib/md4.h: Doc fix.
31630
31631 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31632
31633         md5: adapt alignment constraint fix from sha1.
31634         * lib/md5.c (set_uint32): New function, from sha1.c
31635         (md5_read_ctx): Use it.
31636         (md5_finish_ctx): Doc fix.
31637         * lib/md5.h: Doc fix.
31638
31639 2008-01-30  Peter Palfrader  <weasel@debian.org>
31640
31641         sha1: remove the result buffer alignment constraint
31642         * lib/sha1.c (set_uint32): New function.
31643         (sha1_read_ctx): Rewrite to remove the result buffer alignment
31644         constraint.
31645         (sha1_finish_ctx): Remove comment warning about alignment constraint.
31646         * lib/sha1.h: Likewise.
31647
31648 2008-01-30  Andreas Schwab  <schwab@suse.de>
31649             Bruno Haible  <bruno@clisp.org>
31650
31651         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
31652         correct definition of LDBL_MIN_EXP.
31653
31654 2008-01-30  Karl Berry  <karl@gnu.org>
31655
31656         * config/srclist-update: try to preserve x bit on updates.
31657         * config/srclistvars.sh: update for karl.
31658
31659 2008-01-29  Jim Meyering  <meyering@redhat.com>
31660
31661         vasnprintf.c: Avoid warning about unused label
31662         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
31663         "overflow" label definition and associated code with the
31664         same cpp condition that guards the sole use of that label.
31665
31666 2008-01-26  Bruno Haible  <bruno@clisp.org>
31667
31668         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
31669         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
31670         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
31671         * lib/isnanl-nolibm.h (isnanl): Likewise.
31672         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31673
31674 2008-01-26  Bruno Haible  <bruno@clisp.org>
31675
31676         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
31677         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
31678
31679 2008-01-26  Bruno Haible  <bruno@clisp.org>
31680
31681         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
31682         GCC >= 4.0 built-in.
31683         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
31684
31685 2008-01-26  Bruno Haible  <bruno@clisp.org>
31686
31687         Rename isnan, applicable to 'double' only, to isnand.
31688         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
31689         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
31690         (configure.ac): Update.
31691         (Include): Replace "isnan.h" with "isnand.h".
31692         * m4/isnand.m4: Renamed from m4/isnan.m4.
31693         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
31694         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
31695         instead of isnan.c.
31696         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
31697         instead of HAVE_ISNAN_IN_LIBC.
31698         (isnand): Renamed from isnan.
31699         * lib/isnand.c: New file.
31700         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
31701         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
31702         (Makefile.am): Update.
31703         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
31704         Include isnand.h instead of isnan.h.
31705         (main): Test isnand instead of isnan.
31706         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
31707         isnan-nolibm.
31708         * modules/frexp (Depends-on): Likewise.
31709         * modules/frexp-tests (Depends-on): Likewise.
31710         * modules/frexp-nolibm (Depends-on): Likewise.
31711         * modules/frexp-nolibm-tests (Depends-on): Likewise.
31712         * modules/isfinite (Depends-on): Likewise.
31713         * modules/round-tests (Depends-on): Likewise.
31714         * modules/signbit (Depends-on): Likewise.
31715         * modules/signbit-tests (Depends-on): Likewise.
31716         * modules/snprintf-posix (Depends-on): Likewise.
31717         * modules/sprintf-posix (Depends-on): Likewise.
31718         * modules/trunc-tests (Depends-on): Likewise.
31719         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31720         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31721         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31722         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31723         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31724         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31725         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31726         * modules/vasnprintf-posix (Depends-on): Likewise.
31727         * modules/vasprintf-posix (Depends-on): Likewise.
31728         * modules/vfprintf-posix (Depends-on): Likewise.
31729         * modules/vsnprintf-posix (Depends-on): Likewise.
31730         * modules/vsprintf-posix (Depends-on): Likewise.
31731         * lib/frexp.c: Include isnand.h instead of isnan.h.
31732         (ISNAN): Set to isnand instead of isnan.
31733         * lib/isfinite.c: Include isnand.h instead of isnan.h.
31734         (gl_isfinited): Use isnand instead of isnan.
31735         * lib/signbitd.c: Include isnand.h instead of isnan.h.
31736         (gl_signbitd): Use isnand instead of isnan.
31737         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
31738         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
31739         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
31740         (main): Use isnand instead of isnan.
31741         * tests/test-round1.c: Include isnand.h.
31742         (main): Use isnand instead of isnan.
31743         * tests/test-round2.c: Include isnand.h instead of isnan.h.
31744         (ISNAN): Set to isnand instead of isnan.
31745         * tests/test-trunc1.c: Include isnand.h.
31746         (main): Use isnand instead of isnan.
31747         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
31748         (equal): Use isnand instead of isnan.
31749         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
31750         isnand-nolibm.
31751         * NEWS: Mention the change.
31752
31753 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
31754             Bruno Haible  <bruno@clisp.org>
31755
31756         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
31757         the GCC builtins for signbits are present and set
31758         REPLACE_SIGNBIT_USING_GCC if so.
31759         * lib/math.in.h (signbit): Define using GCC builtins if
31760         REPLACE_SIGNBIT_USING_GCC is set.
31761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
31762         REPLACE_SIGNBIT_USING_GCC.
31763         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
31764
31765 2008-01-25  Jim Meyering  <meyering@redhat.com>
31766
31767         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
31768         * lib/poll.c: Include <config.h>, not "config.h".
31769         * tests/test-getaddrinfo.c: Likewise.
31770
31771 2008-01-25  Simon Josefsson  <simon@josefsson.org>
31772
31773         * modules/sockets-tests: New file.
31774
31775 2008-01-24  Simon Josefsson  <simon@josefsson.org>
31776
31777         * modules/sockets: New module, can be used to call WSA_Startup and
31778         WSA_Cleanup when needed.
31779
31780         * lib/sockets.h, lib/sockets.c: New files.
31781
31782         * m4/sockets.m4: New file.
31783
31784         * tests/test-sockets.c: New file.
31785
31786 2008-01-19  Bruno Haible  <bruno@clisp.org>
31787
31788         * doc/posix-headers: Renamed from doc/headers.
31789         * doc/posix-functions: Renamed from doc/functions.
31790         * doc/gnulib.texi: Update.
31791
31792 2008-01-19  Bruno Haible  <bruno@clisp.org>
31793
31794         * doc/glibc-functions/strcasestr.texi: Include contents of
31795         doc/functions/strcasestr.texi, fixing the list of platforms.
31796         * doc/functions/strcasestr.texi: Remove file.
31797
31798 2008-01-19  Bruno Haible  <bruno@clisp.org>
31799
31800         * doc/glibc-functions/memmem.texi: Include contents of
31801         doc/functions/memmem.texi.
31802         * doc/functions/memmem.texi: Remove file.
31803
31804 2008-01-18  Bruno Haible  <bruno@clisp.org>
31805
31806         * doc/glibc-functions/*.texi: New files.
31807         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
31808         to use the new files.
31809
31810 2008-01-17  Bruno Haible  <bruno@clisp.org>
31811
31812         * tests/test-gethostname.c (main): Fix printf statement.
31813
31814 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31815
31816         * modules/gethostname-tests: New file.
31817
31818         * tests/test-gethostname.c: New file.
31819
31820 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31821
31822         * lib/gethostname.c: Include string.h unconditionally, strncpy is
31823         used by the UNAME case.  Reported by Bruno Haible
31824         <bruno@clisp.org>.
31825
31826 2008-01-17  Eric Blake  <ebb9@byu.net>
31827
31828         Convert c-strcasestr to be more efficient.
31829         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
31830         (Depends-on): Add c-strcase, remove malloca, strnlen.
31831         * tests/test-c-strcasestr.c (main): Enhance test.
31832         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
31833
31834 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31835
31836         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
31837         Use it in creating po/Makevars.
31838
31839 2008-01-15  Simon Josefsson  <simon@josefsson.org>
31840
31841         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
31842         Applications that requires it should initialize libgcrypt
31843         manually.
31844
31845 2008-01-16  Simon Josefsson  <simon@josefsson.org>
31846
31847         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
31848
31849 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31850
31851         Fix problem with getdate on mingw32 reported by Simon Josefsson
31852         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
31853         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
31854         tzname", when deciding whether to declare tzname.
31855         * lib/strftime.c (tzname): Likewise.
31856
31857 2008-01-15  Bruno Haible  <bruno@clisp.org>
31858
31859         Work around a MacOS X 10.5 bug in frexpl().
31860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
31861         * doc/functions/frexpl.texi: Document the bug.
31862         Reported by Elias Pipping <pipping@gentoo.org>.
31863
31864 2008-01-14  Eric Blake  <ebb9@byu.net>
31865
31866         Touch up previous patch.
31867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
31868         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
31869
31870         Convert strcasestr module to use Two-Way algorithm.
31871         * modules/strcasestr-simple: New module, based on the old
31872         strcasestr, but with Two-Way rather than KMP.
31873         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
31874         * lib/string.in.h (rpl_strcasestr): Declare.
31875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
31876         performance.
31877         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
31878         * modules/string (Makefile.am): Support strcasestr.
31879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31880         * modules/strcasestr-tests (Depends-on): Check for alarm.
31881         * tests/test-strcasestr.c: Augment test.
31882         * lib/str-two-way.h: Clean up stray macro.
31883         * NEWS: Document new module.
31884         * MODULES.html.sh (string handling): Likewise.
31885         * doc/functions/strcasestr.texi: New file.
31886         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
31887         here, since it is not a POSIX function.
31888
31889 2008-01-14  Colin Watson  <cjwatson@debian.org>
31890             Bruno Haible  <bruno@clisp.org>
31891
31892         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
31893         works fine; if not, set REPLACE_STRSIGNAL.
31894         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
31895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31896         REPLACE_STRSIGNAL.
31897         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
31898         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
31899         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
31900
31901 2008-01-14  Bruno Haible  <bruno@clisp.org>
31902
31903         * modules/strsignal (Include): Change to <string.h>.
31904
31905 2008-01-14  Colin Watson  <cjwatson@debian.org>
31906
31907         * modules/argp (Notice): Add a notice recommending to change
31908         XGETTEXT_OPTIONS.
31909         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
31910
31911 2008-01-13  Colin Watson  <cjwatson@debian.org>
31912
31913         * modules/strsignal-tests: New file.
31914         * tests/test-strsignal.c: New file.
31915
31916         * lib/strsignal.c: New file, from glibc with modifications.
31917         * lib/siglist.h: New file, from glibc with modifications.
31918         * lib/string.in.h (strsignal): New declaration.
31919         * m4/strsignal.m4: New file.
31920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31921         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31922         * modules/strsignal: New file.
31923         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31924         HAVE_DECL_STRSIGNAL.
31925
31926 2008-01-13  Bruno Haible  <bruno@clisp.org>
31927
31928         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31929         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31930         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31931         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31932
31933 2008-01-13  Bruno Haible  <bruno@clisp.org>
31934
31935         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31936         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31937         * lib/argp.h (__attribute__): Likewise.
31938         * lib/c-stack.c (__attribute__): Likewise.
31939         * lib/error.h (__attribute__): Likewise.
31940         * lib/fts.c (__attribute__): Likewise.
31941         * lib/openat.h (__attribute__): Likewise.
31942         * lib/stdio.in.h (__attribute__): Likewise.
31943         * lib/string.in.h (__attribute__): Likewise.
31944         * lib/utimens.c (__attribute__): Likewise.
31945         * lib/vasnprintf.h (__attribute__): Likewise.
31946         * lib/xalloc.h (__attribute__): Likewise.
31947         * lib/xprintf.h (__attribute__): Likewise.
31948         * lib/xstrtol.h (__attribute__): Likewise.
31949         * lib/xvasprintf.h (__attribute__): Likewise.
31950
31951 2008-01-12  Bruno Haible  <bruno@clisp.org>
31952
31953         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
31954         * doc/glibc-headers/a.out.texi: New file.
31955         * doc/glibc-headers/aliases.texi: New file.
31956         * doc/glibc-headers/alloca.texi: New file.
31957         * doc/glibc-headers/ar.texi: New file.
31958         * doc/glibc-headers/argp.texi: New file.
31959         * doc/glibc-headers/argz.texi: New file.
31960         * doc/glibc-headers/byteswap.texi: New file.
31961         * doc/glibc-headers/crypt.texi: New file.
31962         * doc/glibc-headers/endian.texi: New file.
31963         * doc/glibc-headers/envz.texi: New file.
31964         * doc/glibc-headers/err.texi: New file.
31965         * doc/glibc-headers/error.texi: New file.
31966         * doc/glibc-headers/execinfo.texi: New file.
31967         * doc/glibc-headers/fpu_control.texi: New file.
31968         * doc/glibc-headers/fstab.texi: New file.
31969         * doc/glibc-headers/fts.texi: New file.
31970         * doc/glibc-headers/getopt.texi: New file.
31971         * doc/glibc-headers/ieee754.texi: New file.
31972         * doc/glibc-headers/ifaddrs.texi: New file.
31973         * doc/glibc-headers/libintl.texi: New file.
31974         * doc/glibc-headers/mcheck.texi: New file.
31975         * doc/glibc-headers/mntent.texi: New file.
31976         * doc/glibc-headers/obstack.texi: New file.
31977         * doc/glibc-headers/paths.texi: New file.
31978         * doc/glibc-headers/printf.texi: New file.
31979         * doc/glibc-headers/pty.texi: New file.
31980         * doc/glibc-headers/resolv.texi: New file.
31981         * doc/glibc-headers/shadow.texi: New file.
31982         * doc/glibc-headers/sysexits.texi: New file.
31983         * doc/glibc-headers/ttyent.texi: New file.
31984
31985 2008-01-12  Jim Meyering  <meyering@redhat.com>
31986
31987         announce-gen: emit Gnulib's git-based version string.
31988         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
31989         New option --gnulib-version=V, where V is expected to be
31990         the output of running git describe in the gnulib directory.
31991         (get_tool_versions): Request feedback on xdelta.  I suspect it's
31992         not useful, and plan to stop publishing an xdelta file with each
31993         coreutils release.
31994
31995         * build-aux/announce-gen: Also check for lzma-compressed files.
31996
31997 2008-01-11  Bruno Haible  <bruno@clisp.org>
31998
31999         * tests/test-memmem.c (main): Increase maximum allowed time.
32000         * tests/test-strstr.c (main): Likewise.
32001
32002 2008-01-11  Bruno Haible  <bruno@clisp.org>
32003
32004         * doc/functions/memmem.texi: Add more precisions about platforms.
32005         * doc/functions/strstr.texi: Likewise.
32006
32007 2008-01-10  Eric Blake  <ebb9@byu.net>
32008
32009         * m4/strstr.m4: Delete cruft from copy-n-paste.
32010         Reported by Bruno Haible.
32011
32012 2008-01-10  Bruno Haible  <bruno@clisp.org>
32013
32014         Make c-strstr rely on strstr.
32015         * lib/c-strstr.c: Don't include str-kmp.h.
32016         (c_strstr): Define in terms of strstr.
32017         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32018         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32019
32020 2008-01-10  Bruno Haible  <bruno@clisp.org>
32021
32022         * doc/gnulib.texi (String Functions in C Locale): New section.
32023         * doc/c-ctype.texi: New file.
32024         * doc/c-strcase.texi: New file.
32025         * doc/c-strcaseeq.texi: New file.
32026         * doc/c-strcasestr.texi: New file.
32027         * doc/c-strstr.texi: New file.
32028         * doc/c-strtod.texi: New file.
32029         * doc/c-strtold.texi: New file.
32030
32031 2008-01-10  Eric Blake  <ebb9@byu.net>
32032
32033         * lib/relocatable.h: Fix a comment.
32034
32035 2008-01-10  Eric Blake  <ebb9@byu.net>
32036
32037         Share two-way algorithm.
32038         * lib/str-two-way.h: New file, merged from...
32039         * lib/memmem.c: ...here...
32040         * lib/strstr.c: ...and here.
32041         * modules/memmem (Files): Use it.
32042         * modules/strstr (Files): Likewise.
32043
32044         Avoid quadratic strstr implementations.
32045         * lib/strstr.c: New file.
32046         * m4/strstr.m4: Likewise.
32047         * modules/strstr: Likewise.
32048         * modules/strstr-tests: Likewise.
32049         * tests/test-strstr.c: Likewise.
32050         * lib/string.in.h (rpl_strstr): Declare.
32051         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32053         * modules/string (Makefile.am): Likewise.
32054         * MODULES.html.sh (string handling): Mention new module.
32055         * doc/functions/strstr.texi (strstr): Document the bug.
32056
32057 2008-01-10  Bruno Haible  <bruno@clisp.org>
32058
32059         * lib/relocatable.h (relocate): State whether result is freshly
32060         allocated or not.
32061         * lib/relocatable.c (relocate): Return a freshly allocated string
32062         instead of a pointer to a privately held string.
32063         Reported by Sylvain Beucler <beuc@gnu.org>.
32064
32065 2008-01-10  Colin Watson  <cjwatson@debian.org>
32066
32067         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32068         s/S_ISNLK/S_ISLNK/.
32069
32070 2008-01-09  Bruno Haible  <bruno@clisp.org>
32071
32072         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32073         and other files.
32074         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32075         if it's only a guess.
32076         * modules/memmem: Simplify by depending on memmem-simple.
32077
32078 2008-01-09  Bruno Haible  <bruno@clisp.org>
32079
32080         Work around OpenBSD 4.0 tdelete() bug.
32081         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32082         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32083         macros and don't redefine the enum values.
32084         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32085         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32086         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32087
32088 2008-01-09  Bruno Haible  <bruno@clisp.org>
32089
32090         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32091         (main): Don't perform the tests if setlocale did not install a UTF-8
32092         locale. Needed on OpenBSD 4.0.
32093         * modules/wcwidth-tests (Depends-on): Add localcharset.
32094
32095 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32096
32097         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32098         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32099         * NEWS: announce this.
32100         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32101
32102 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32103         and Eric Blake  <ebb9@byu.net>
32104
32105         Add memmem-simple module.
32106         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32107         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32108         * modules/memmem-simple: New file.
32109         * modules/memmem (Description): Tweak.
32110         * MODULES.html.sh (string handling): Mention new module.
32111         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32112         addressed by memmem-simple.
32113         * NEWS: Document the difference.
32114
32115 2008-01-09  Eric Blake  <ebb9@byu.net>
32116
32117         Give gcc some memmem optimization hints.
32118         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32119         (strcasestr): Declare as pure.
32120         * modules/memmem (Maintainer): Claim my implementation.
32121
32122 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32123
32124         Support AIX 6.1 and higher.
32125         * build-aux/config.libpath: Likewise.
32126         * build-aux/config.rpath: Likewise.
32127
32128 2008-01-08  Jim Meyering  <meyering@redhat.com>
32129             Bruno Haible  <bruno@clisp.org>
32130
32131         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32132         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32133         Reported by Peter Fales in
32134         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32135
32136 2008-01-08  Bruno Haible  <bruno@clisp.org>
32137
32138         * modules/unictype/category-of (Depends-on): Add
32139         unictype/category-none.
32140         * modules/unictype/category-and-tests (Depends-on): Add
32141         unictype/category-{L,N,Lu,Nd}.
32142         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32143         * modules/unictype/category-or-tests (Depends-on): Add
32144         unictype/category-{L,N}.
32145         * modules/unictype/category-name-tests (Depends-on): Add
32146         unictype/category-{Z,Nl}.
32147         Reported by Simon Josefsson.
32148
32149 2008-01-08  Bruno Haible  <bruno@clisp.org>
32150
32151         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32152         convention better.
32153         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32154         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32155         Reported by Peter Miller <millerp@canb.auug.org.au>.
32156
32157 2008-01-08  Eric Blake  <ebb9@byu.net>
32158
32159         Rewrite memmem to guarantee linear complexity without malloc.
32160         * lib/memmem.c (memmem): Use Two-Way rather than
32161         Knuth-Morris-Pratt, to allow O(1) space usage.
32162         (critical_factorization, two_way_short_needle)
32163         (two_way_long_needle): New functions.
32164         (knuth_morris_pratt): Delete.
32165         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32166         Add stdint.
32167         * tests/test-memmem.c (main): Add tests for periodic needle and
32168         sublinear performance.
32169         * doc/functions/memmem.texi (memmem): Document other deficiencies
32170         in cygwin and older glibc.
32171
32172 2008-01-08  Bruno Haible  <bruno@clisp.org>
32173
32174         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32175         augmentation.
32176
32177 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32178
32179         Add a configure time option: --disable-acl.
32180         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32181         AC_ARG_ENABLE(acl).
32182
32183 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32184
32185         * tests/test-localename.c: Don't include obsolete "setenv.h".
32186
32187         * modules/localename-tests (Depends-on): Need unsetenv.
32188
32189 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32190
32191         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32192
32193 2008-01-06  Colin Watson  <cjwatson@debian.org>
32194
32195         * users.txt: Add man-db.
32196
32197 2008-01-07  Bruno Haible  <bruno@clisp.org>
32198
32199         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32200         previous section name.
32201
32202 2008-01-07  Bruno Haible  <bruno@clisp.org>
32203
32204         * lib/progname.c (set_program_name): Don't strip off a leading
32205         "lt-" prefix outside a .libs directory.
32206         Suggested by Paul Eggert.
32207
32208 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32209             Bruno Haible  <bruno@clisp.org>
32210
32211         Improve memory cleanup in 'relocatable' module.
32212         * lib/relocatable.h (compute_curr_prefix): Change return type to
32213         'char *'.
32214         * lib/relocatable.c (compute_curr_prefix): Change return type to
32215         'char *'. Free curr_installdir after use.
32216         (relocate): Free curr_prefix_better after use.
32217         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32218
32219 2008-01-01  Bruno Haible  <bruno@clisp.org>
32220
32221         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32222         failure on older glibc systems.
32223         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32224
32225 2008-01-05  Eric Blake  <ebb9@byu.net>
32226
32227         Avoid quadratic system memmem.
32228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32229         Reported by Ralf Wildenhues.
32230
32231         Fix memmem test for mingw.
32232         * modules/memmem-tests (configure.ac): Check for alarm.
32233         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32234         it.
32235         * doc/functions/memmem.texi: New file.
32236         * doc/gnulib.texi (Function Substitutes): Add memmem.
32237         Reported by Bruno Haible.
32238
32239 2008-01-04  Bruno Haible  <bruno@clisp.org>
32240
32241         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32242         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32243         gl_HEADER_STRING_H_DEFAULTS.
32244
32245 2008-01-04  Eric Blake  <ebb9@byu.net>
32246
32247         Shorten duration of memmem test.
32248         * tests/test-memmem.c (main): Use alarm to declare failure if test
32249         is taking too long.
32250         Reported by Ralf Wildenhues.
32251
32252 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32253
32254         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32255         string, needed by strerror.
32256
32257 2008-01-03  Colin Watson  <cjwatson@debian.org>
32258             Bruno Haible  <bruno@clisp.org>
32259
32260         * doc/gnulib-tool.texi (Localization): New section.
32261
32262 2008-01-02  Bruno Haible  <bruno@clisp.org>
32263
32264         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32265         variables to 'unsigned char *' type.
32266         Reported by Paul Eggert.
32267
32268 2008-01-02  Jim Meyering  <jim@meyering.net>
32269
32270         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32271
32272 2007-12-31  Jim Meyering  <jim@meyering.net>
32273
32274         Avoid use of private FTS type name.
32275         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32276
32277 2007-12-30  Karl Berry  <karl@gnu.org>
32278
32279         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32280         work around defect in Texinfo and/or the standalone Info browser.
32281
32282 2007-12-30  Bruno Haible  <bruno@clisp.org>
32283
32284         Unify 5 copies of the KMP code.
32285         * lib/str-kmp.h: New file.
32286         * lib/c-strcasestr.c: Include str-kmp.h.
32287         (knuth_morris_pratt): Remove function.
32288         (c_strcasestr): Update.
32289         * lib/c-strstr.c: Include str-kmp.h.
32290         (knuth_morris_pratt): Remove function.
32291         (c_strcasestr): Update.
32292         * lib/mbscasestr.c: Include str-kmp.h.
32293         (knuth_morris_pratt_unibyte): Remove function.
32294         * lib/mbsstr.c: Include str-kmp.h.
32295         (knuth_morris_pratt_unibyte): Remove function.
32296         * lib/strcasestr.c: Include str-kmp.h.
32297         (knuth_morris_pratt): Remove function.
32298         (strcasestr): Update.
32299         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32300         * modules/c-strstr (Files): Likewise.
32301         * modules/mbscasestr (Files): Likewise.
32302         * modules/mbsstr (Files): Likewise.
32303         * modules/strcasestr (Files): Likewise.
32304         Suggested by Paul Eggert.
32305
32306 2007-12-30  Bruno Haible  <bruno@clisp.org>
32307
32308         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32309         defined.
32310
32311 2007-12-30  Bruno Haible  <bruno@clisp.org>
32312
32313         * lib/xmalloca.h: Include xalloc.h.
32314         (xnmalloca): New macro.
32315
32316 2007-12-30  Bruno Haible  <bruno@clisp.org>
32317
32318         * lib/malloca.h (nmalloca): New macro.
32319         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32320         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32321         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32322         knuth_morris_pratt_multibyte): Likewise.
32323         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32324         knuth_morris_pratt_multibyte): Likewise.
32325         * lib/memmem.c (knuth_morris_pratt): Likewise.
32326         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32327
32328 2007-12-25  Bruno Haible  <bruno@clisp.org>
32329
32330         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32331         * lib/glob.c: Don't include openat.h.
32332         (link_exists2_p): Add back the code that deals with the
32333         !GLOB_ALTDIRFUNC case.
32334         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32335         let it do the filename concatenation.
32336         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32337         * modules/glob (Depends-on): Remove openat.
32338
32339 2007-12-31  Bruno Haible  <bruno@clisp.org>
32340
32341         * modules/dirfd (License): Change to LGPLv2+.
32342         Approved by Jim Meyering.
32343
32344 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32345
32346         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32347         when multiplying M by sizeof (size_t).
32348
32349 2007-12-10  Martin Lambers  <marlam@marlam.de>
32350
32351         Override getpagesize on mingw.
32352         * lib/getpagesize.c: New file.
32353         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32354         * modules/getpagesize (Files): Add lib/getpagesize.c.
32355         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32357         REPLACE_GETPAGESIZE.
32358         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32359
32360 2007-12-25  Bruno Haible  <bruno@clisp.org>
32361
32362         * modules/localcharset (Notice): New field.
32363         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
32364         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32365
32366 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32367             Bruno Haible  <bruno@clisp.org>
32368
32369         Avoid using the syntax symbol() in formatted documentation.
32370         * MODULES.html.sh (func_module): When replacing symbol() with a
32371         hyperlink, remove the parentheses. Show an error if some remain.
32372         Recognize and render the '...' syntax.
32373         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
32374         Rework. Add paragraph about GCC's inlining.
32375         * doc/alloca.texi: Likewise.
32376         * doc/error.texi: Remove parentheses from symbol reference.
32377         * doc/gnulib-intro.texi: Likewise.
32378         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
32379         * modules/fnmatch (Description): Reword to say "the ... function".
32380         * modules/full-read (Description): Likewise.
32381         * modules/full-write (Description): Likewise.
32382         * modules/safe-read (Description): Likewise.
32383         * modules/safe-write (Description): Likewise.
32384         * modules/strchrnul (Description): Likewise.
32385         * modules/trim (Description): Likewise.
32386         * modules/error (Description): Remove parentheses from symbol
32387         references.
32388         * modules/verror (Description): Likewise.
32389         Reported by Karl Berry.
32390
32391 2007-12-25  Bruno Haible  <bruno@clisp.org>
32392
32393         Fixup after 2007-10-16 commit.
32394         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
32395
32396 2007-12-24  Bruno Haible  <bruno@clisp.org>
32397
32398         Make --enable-relocatable work with DESTDIR.
32399         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
32400         to compute installdir from destprog.
32401         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
32402         also set the RELOC_DESTDIR variable.
32403         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
32404
32405 2007-12-24  Bruno Haible  <bruno@clisp.org>
32406
32407         Fix link error due to xalloc_die().
32408         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
32409         of xreadlink.
32410         * lib/relocwrapper.c: Update comments.
32411         * build-aux/install-reloc: Remove xreadlink.c from file list.
32412         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
32413         xreadlink.c.
32414         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
32415
32416 2007-12-24  Bruno Haible  <bruno@clisp.org>
32417
32418         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
32419         * lib/setenv.h: Remove file.
32420         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
32421         lib/setenv.h.
32422         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
32423         (Depends-on): Add stdlib.
32424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
32425         gl_FUNC_UNSETENV.
32426         (Include): Replace setenv.h with <stdlib.h>.
32427         * modules/unsetenv: New file.
32428         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
32429         * lib/unsetenv.c: Include <stdlib.h> first.
32430         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
32431         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
32432         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
32433         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
32434         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
32435         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
32437         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32438         * doc/functions/unsetenv.texi: Update.
32439         * modules/xsetenv (Depends-on): Add unsetenv.
32440         * modules/getdate (Depends-on): Likewise.
32441         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
32442         * lib/xsetenv.c: Don't include setenv.h.
32443         * lib/getdate.y: Likewise.
32444         * lib/relocwrapper.c: Likewise.
32445         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
32446         (Depends-on): Add stdlib.
32447         * NEWS: Mention the changes.
32448         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
32449
32450 2007-12-23  Bruno Haible  <bruno@clisp.org>
32451
32452         * lib/memmem.c (memmem): Use lowercase variable names. Tab
32453         indentation.
32454
32455 2007-12-23  Bruno Haible  <bruno@clisp.org>
32456
32457         * lib/c-strcasestr.c: Add more comments.
32458         * lib/c-strstr.c: Likewise.
32459         * lib/mbscasestr.c: Likewise.
32460         * lib/mbsstr.c: Likewise.
32461         * lib/strcasestr.c: Likewise.
32462         * lib/memmem.c: Likewise.
32463
32464 2007-12-23  Bruno Haible  <bruno@clisp.org>
32465
32466         * tests/test-memmem.c: Include <string.h> first.
32467
32468 2007-12-22  Bruno Haible  <bruno@clisp.org>
32469
32470         * gnulib-tool (func_create_testdir): Change $auxdir while generating
32471         the contents of $testsbase.
32472         Reported by Ralf Wildenhues.
32473
32474 2007-12-22  Bruno Haible  <bruno@clisp.org>
32475
32476         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
32477         two variables local_ldadd_before, local_ldadd_last.
32478
32479 2007-12-20  Eric Blake  <ebb9@byu.net>
32480
32481         Work around circular library issue when cross-compiling.
32482         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
32483         that progname.o does not need to pull in rpl_memcmp.
32484
32485 2007-12-19  Eric Blake  <ebb9@byu.net>
32486
32487         Fix memmem to avoid O(n^2) worst-case complexity.
32488         * lib/memmem.c (knuth_morris_pratt): New function.
32489         (memmem): Use it if first few naive iterations fail.
32490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
32491         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
32492         * modules/memchr (License): Likewise.
32493         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
32494         malloca.
32495         * tests/test-memmem.c: Rewrite, borrowing ideas from
32496         test-mbsstr1.c; the old version wouldn't even compile!
32497         * modules/memmem-tests: New file.
32498         * lib/string.in.h (rpl_memmem): Add declaration.
32499         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
32500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
32501         REPLACE_MEMMEM.
32502
32503 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32504
32505         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
32506         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
32507         before any system include files, and undef after them all.  This
32508         should fix a problem on VMS reported by John E. Malmberg in
32509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
32510
32511 2007-12-17  Eric Blake  <ebb9@byu.net>
32512
32513         Revert addition of verify, for BSD/OS.
32514         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
32515         can't handle large files, for the sake of obsolete platforms.
32516         * modules/fseeko (Depends-on): Remove verify.
32517         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
32518         * doc/functions/ftello.texi (ftello): Likewise.
32519         * doc/functions/fgetpos.texi (fgetpos): Likewise.
32520         Reported by Larry Jones.
32521
32522 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
32523
32524         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
32525         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
32526
32527 2007-12-17  Jim Meyering  <meyering@redhat.com>
32528
32529         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
32530         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
32531         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
32532         * modules/getcwd (Depends-on): Add openat.
32533         Reported by Petr Salinger.
32534
32535 2007-12-17  Bruno Haible  <bruno@clisp.org>
32536
32537         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
32538         avoid a segmentation fault of the configure test on x86_64 systems.
32539
32540 2007-12-15  Jim Meyering  <meyering@redhat.com>
32541
32542         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
32543
32544 2007-12-13  Eric Blake  <ebb9@byu.net>
32545
32546         Another fseek test.
32547         * tests/test-fseek.c (main): Also test ungetc handling.
32548         * tests/test-fseeko.c (main): Likewise.
32549         * modules/fseeko (Depends-on): Add verify.
32550         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
32551         large.
32552         Reported by Larry Jones.
32553
32554         Fix fseeko on mingw.
32555         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
32556         seek.
32557
32558         Beef up fseek tests.
32559         * tests/test-fseek.c (main): Also test eof handling.
32560         * tests/test-fseeko.c (main): Likewise.
32561         Reported by Larry Jones.
32562
32563 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
32564
32565         Fix fseeko on BSD-based platforms.
32566         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
32567         successful seek.
32568
32569 2007-12-12  Eric Blake  <ebb9@byu.net>
32570
32571         Allow circular dependency of separate libtests.a
32572         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
32573         when use_libtests.
32574
32575 2007-12-11  Eric Blake  <ebb9@byu.net>
32576
32577         Fix bug with -0.0L in previous patch.
32578         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
32579         * tests/test-isnan.c (main): Also test on zeroes.
32580         * tests/test-isnanf.c (main): Likewise.
32581         * tests/test-isnanl.h (main): Likewise.
32582
32583         Detect pseudo-denormals on x86 even when cross-compiling.
32584         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
32585         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
32586         invalid bit patterns that happen to satisfy ==.
32587
32588         Avoid link failures with separate libtests.a.
32589         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
32590         last, to satisfy circular dependencies.
32591
32592 2007-12-11  Eric Blake  <ebb9@byu.net>
32593         and Bruno Haible  <bruno@clisp.org>
32594
32595         Fix OpenBSD 4.0 <float.h> handling of long double.
32596         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
32597         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
32598         * doc/headers/float.texi (float.h): Document OpenBSD bug.
32599
32600 2007-12-11  Jim Meyering  <meyering@redhat.com>
32601
32602         * users.txt: Add libvirt.
32603
32604         Support versions of autoconf prior to 2.59c.
32605         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
32606         if it is not already defined.
32607
32608 2007-12-09  Bruno Haible  <bruno@clisp.org>
32609
32610         Let 'gnulib-tool --import' collect sources needed for the tests in
32611         tests/ rather than in lib/.
32612         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
32613         argument. If true, add rules to generate libtests.a, and put libtests.a
32614         into $(LDADD). Consider source files in subdirectories and set
32615         uses_subdirs.
32616         (func_emit_initmacro_start, func_emit_initmacro_end,
32617         func_emit_initmacro_done): Pass all arguments explicitly.
32618         (func_import): Determine two module lists main_modules,
32619         testsrelated_modules. Determine use_libtests. Determine two variables
32620         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
32621         instead of just sed_transform_lib_file. Determine two variables
32622         main_files and testsrelated_files. Compute 'files' as the union of
32623         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
32624         func_add_or_update. In the generated gnulib-comp.m4, collect the
32625         object files for tests/ in different variables than those for lib/.
32626         Substitute LIBTESTS_LIBDEPS.
32627         (func_create_testdir): Combine the uses_subdirs results from
32628         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
32629
32630 2007-12-09  Bruno Haible  <bruno@clisp.org>
32631
32632         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
32633         the build-aux directory.
32634
32635 2007-12-09  Bruno Haible  <bruno@clisp.org>
32636
32637         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
32638         introduced on 2006-09-09.
32639
32640 2007-12-07  Jim Meyering  <meyering@redhat.com>
32641
32642         Let these macros work also with autoconf-2.59.
32643         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
32644         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
32645         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32646
32647 2007-12-06  Jim Meyering  <meyering@redhat.com>
32648
32649         Avoid a configure-time syntax error in gl_FUNC_ACL.
32650         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
32651         function in each branch, before testing the cache variable.
32652
32653 2007-12-04  Eric Blake  <ebb9@byu.net>
32654
32655         Make scripts executable.
32656         * build-aux/config.guess: Add execute permissions.
32657         * build-aux/config.sub: Likewise.
32658         * build-aux/gendocs.sh: Likewise.
32659
32660         Fix frexp on mingw.
32661         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
32662         cross-compiling.
32663         * doc/functions/frexp.texi (frexp): Document the bug.
32664
32665         Make cygwin fseeko check more reliable.
32666         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
32667         version numbers, rather than unrelated feature check.
32668         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
32669         * doc/functions/ftello.texi (ftello): Likewise.
32670         Reported by Bruno Haible.
32671
32672         * m4/strerror.m4: Bump version number.
32673
32674 2007-12-03  Bruno Haible  <bruno@clisp.org>
32675
32676         * doc/functions/mprotect.texi: Mention the mingw problem.
32677
32678 2007-12-03  Eric Blake  <ebb9@byu.net>
32679
32680         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
32681         REPLACE_STRERROR is initialized before this macro.
32682
32683 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
32686         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
32687         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
32688         put -lsec in even for programs other than 'ls'.  This fixes a problem
32689         for gettext reported by Bruno Haible in
32690         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
32691         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
32692         Add support for Solaris 10.  This isn't efficient, but should get the
32693         job done for now.
32694
32695 2007-12-03  James Youngman  <jay@gnu.org>
32696
32697         * doc/regexprops-generic.texi: change "an close-group" to "a
32698         close-group" and "illegal" to "not allowed".
32699
32700 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32701
32702         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
32703         pr_byname.h. Needed for the rare case when the maintainer has done
32704         "make maintainer-clean" in the source directory and then attempts a
32705         build outside the source directory.
32706         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
32707         scripts_byname.h.
32708
32709 2007-12-02  Martin Lambers <marlam@marlam.de>
32710             Bruno Haible  <bruno@clisp.org>
32711
32712         * lib/getpagesize.h: Remove file.
32713         * lib/unistd.in.h: Include declaration of getpagesize here.
32714         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
32715         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
32716         HAVE_SYS_PARAM_H.
32717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
32718         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32719         * modules/getpagesize (Files): Remove lib/getpagesize.h.
32720         (Depends-on): Add unistd.
32721         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32722         (Include): Use <unistd.h> instead of getpagesize.h.
32723         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
32724         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32725         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
32726         gl_GETPAGESIZE invocation, already handled by module dependency.
32727         * lib/pagealign_alloc.c: Don't include getpagesize.h.
32728
32729 2007-12-02  Bruno Haible  <bruno@clisp.org>
32730
32731         * modules/strings-tests: New file.
32732         * tests/test-strings.c: New file.
32733
32734         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
32735         * lib/strings.in.h: New file.
32736         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
32737         * m4/strings_h.m4: New file.
32738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
32739         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
32740         * modules/strings: New file.
32741         * modules/string (Makefile.am): Update.
32742         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
32743         Reported by Karl Berry.
32744
32745 2007-12-01  Eric Blake  <ebb9@byu.net>
32746
32747         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
32748         accomodate fix in cygwin 1.5.25.
32749
32750 2007-12-01  Jim Meyering  <meyering@redhat.com>
32751
32752         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
32753         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
32754         that would inhibit utf8-optimization of a regexp containing line-
32755         or buffer-anchors, e.g., `^', `$'.
32756
32757 2007-11-30  Bruno Haible  <bruno@clisp.org>
32758
32759         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
32760         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
32761         glthread_recursive_lock_init.
32762         * lib/lock.c (glthread_recursive_lock_init)
32763         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
32764         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32765
32766 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32767
32768         New function qset_acl, like set_acl but with syscall semantics.
32769         * lib/acl.h (qset_acl): New decl.
32770         * lib/acl.c (qset_acl): New function.
32771         (set_acl): Use new function.  Use more-consistent diagnostics.
32772
32773 2007-11-28  Jim Meyering  <meyering@redhat.com>
32774
32775         * modules/physmem (License): Change from GPL to LGPLv2+.
32776
32777 2007-11-26  Bruno Haible  <bruno@clisp.org>
32778
32779         * lib/vasnprintf.c (decode_long_double): Don't abort if the
32780         'long double' type has excess precision.
32781         Reported by Jim Meyering in
32782         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
32783
32784 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32785
32786         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
32787         Sync from <http://gnu.org/licenses>.
32788         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
32789         with license text from same location.
32790         * doc/maintain.texi, doc/standards.texi:  Sync from
32791         <http://savannah.gnu.org/projects/gnustandards>.
32792
32793 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
32794         and Jim Meyering  <meyering@redhat.com>
32795
32796         Adjust getdate' grammar to accept a slightly more regular language.
32797         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
32798         Before, the former was rejected.
32799         * lib/getdate.y (digits_to_date_time): New function, factored
32800         out of ...
32801         (number): ...here.  Just call digits_to_date_time.
32802         (hybrid): New non-terminal to handle an <unsigned number,
32803         signed relative offset> sequence consistently.
32804
32805 2007-11-18  Jim Meyering  <meyering@redhat.com>
32806
32807         Pull my changes from coreutils:
32808         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
32809         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
32810         use of $gnulib_tool_option_extras, so that it's separated from the
32811         preceding argument.
32812
32813         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
32814         * build-aux/bootstrap (cp_mark_as_generated): Create any required
32815         parent destination directories before copying a file into place.
32816
32817 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
32818
32819         bootstrap: work also with 4-argument variant of AC_INIT
32820         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
32821
32822 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32823
32824         Port test-getaddrinfo to Solaris.
32825         Problem reported by Bruno Haible in
32826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
32827         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
32828         explanation of setting 'hints'.
32829         Don't reject an implementation merely because it returns EAI_SERVICE.
32830         (EAI_SERVICE): Define to 0 if not defined.
32831
32832 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
32833
32834         The license of gnu-make and posix-shell is now "GPLed build tool".
32835         * modules/gnu-make (License): Likewise.
32836         * modules/posix-shell (License): Likewise.
32837
32838         New module posix-shell, for determining a POSIX shell
32839         or perhaps something that is close enough to a POSIX shell.
32840         * m4/posix-shell.m4: New file.
32841         * modules/posix-shell: New file.
32842
32843         * MODULES.html.sh: Mention new module.
32844
32845         New module gnu-make, for determining whether we're using GNU Make.
32846         * m4/gnu-make.m4: New file.
32847         * modules/gnu-make: New file.
32848         * MODULES.html.sh: Mention new module.
32849
32850 2007-11-14  Jim Meyering  <meyering@redhat.com>
32851
32852         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
32853         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
32854         use this macro to create a function _definition_.
32855         Remove useless "#undef ARGMATCH_DIE".
32856
32857 2007-11-14  Bruno Haible  <bruno@clisp.org>
32858
32859         * lib/config.charset: Update for OpenBSD 4.1.
32860         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
32861
32862 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
32863
32864         Document 64-bit #if problems in stdint.texi.
32865         * doc/headers/stdint.texi (stdint.h): Mention problems with
32866         64-bit-#if, and how to work around them.
32867
32868         Don't insist on 'long long int' support in the preprocessor.  It
32869         breaks too many things.  For example, PRIdMAX still uses a 'long
32870         long int' format with the latest Sun compiler, even though
32871         HAVE_LONG_LONG_INT isn't defined due to that compiler's
32872         preprocessor problem.  This causes the latest coreutils to dump
32873         core on Solaris 10 sparc with the Sun C compiler.
32874         Instead, fix the 2007-10-16 problem in a different way, by evaluating
32875         the troublesome expressions at configure-time, not at #if-time.
32876         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
32877         preprocessor.
32878         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
32879         compile-time C checks, done at 'configure'-time.
32880         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
32881         * modules/inttypes (Makefile): Substitute the new symbols that
32882         gl_INTTYPES_H now generates.
32883         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
32884
32885 2007-11-12  Bruno Haible  <bruno@clisp.org>
32886
32887         Tests for Unicode character classification functions.
32888
32889         * modules/unictype/bidicategory-byname-tests: New file.
32890         * modules/unictype/bidicategory-name-tests: New file.
32891         * modules/unictype/bidicategory-of-tests: New file.
32892         * modules/unictype/bidicategory-test-tests: New file.
32893         * modules/unictype/block-list-tests: New file.
32894         * modules/unictype/block-of-tests: New file.
32895         * modules/unictype/block-test-tests: New file.
32896         * modules/unictype/category-C-tests: New file.
32897         * modules/unictype/category-Cc-tests: New file.
32898         * modules/unictype/category-Cf-tests: New file.
32899         * modules/unictype/category-Cn-tests: New file.
32900         * modules/unictype/category-Co-tests: New file.
32901         * modules/unictype/category-Cs-tests: New file.
32902         * modules/unictype/category-L-tests: New file.
32903         * modules/unictype/category-Ll-tests: New file.
32904         * modules/unictype/category-Lm-tests: New file.
32905         * modules/unictype/category-Lo-tests: New file.
32906         * modules/unictype/category-Lt-tests: New file.
32907         * modules/unictype/category-Lu-tests: New file.
32908         * modules/unictype/category-M-tests: New file.
32909         * modules/unictype/category-Mc-tests: New file.
32910         * modules/unictype/category-Me-tests: New file.
32911         * modules/unictype/category-Mn-tests: New file.
32912         * modules/unictype/category-N-tests: New file.
32913         * modules/unictype/category-Nd-tests: New file.
32914         * modules/unictype/category-Nl-tests: New file.
32915         * modules/unictype/category-No-tests: New file.
32916         * modules/unictype/category-P-tests: New file.
32917         * modules/unictype/category-Pc-tests: New file.
32918         * modules/unictype/category-Pd-tests: New file.
32919         * modules/unictype/category-Pe-tests: New file.
32920         * modules/unictype/category-Pf-tests: New file.
32921         * modules/unictype/category-Pi-tests: New file.
32922         * modules/unictype/category-Po-tests: New file.
32923         * modules/unictype/category-Ps-tests: New file.
32924         * modules/unictype/category-S-tests: New file.
32925         * modules/unictype/category-Sc-tests: New file.
32926         * modules/unictype/category-Sk-tests: New file.
32927         * modules/unictype/category-Sm-tests: New file.
32928         * modules/unictype/category-So-tests: New file.
32929         * modules/unictype/category-Z-tests: New file.
32930         * modules/unictype/category-Zl-tests: New file.
32931         * modules/unictype/category-Zp-tests: New file.
32932         * modules/unictype/category-Zs-tests: New file.
32933         * modules/unictype/category-and-not-tests: New file.
32934         * modules/unictype/category-and-tests: New file.
32935         * modules/unictype/category-byname-tests: New file.
32936         * modules/unictype/category-name-tests: New file.
32937         * modules/unictype/category-none-tests: New file.
32938         * modules/unictype/category-of-tests: New file.
32939         * modules/unictype/category-or-tests: New file.
32940         * modules/unictype/category-test-withtable-tests: New file.
32941         * modules/unictype/combining-class-tests: New file.
32942         * modules/unictype/ctype-alnum-tests: New file.
32943         * modules/unictype/ctype-alpha-tests: New file.
32944         * modules/unictype/ctype-blank-tests: New file.
32945         * modules/unictype/ctype-cntrl-tests: New file.
32946         * modules/unictype/ctype-digit-tests: New file.
32947         * modules/unictype/ctype-graph-tests: New file.
32948         * modules/unictype/ctype-lower-tests: New file.
32949         * modules/unictype/ctype-print-tests: New file.
32950         * modules/unictype/ctype-punct-tests: New file.
32951         * modules/unictype/ctype-space-tests: New file.
32952         * modules/unictype/ctype-upper-tests: New file.
32953         * modules/unictype/ctype-xdigit-tests: New file.
32954         * modules/unictype/decimal-digit-tests: New file.
32955         * modules/unictype/digit-tests: New file.
32956         * modules/unictype/mirror-tests: New file.
32957         * modules/unictype/numeric-tests: New file.
32958         * modules/unictype/property-alphabetic-tests: New file.
32959         * modules/unictype/property-ascii-hex-digit-tests: New file.
32960         * modules/unictype/property-bidi-arabic-digit-tests: New file.
32961         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
32962         * modules/unictype/property-bidi-block-separator-tests: New file.
32963         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
32964         * modules/unictype/property-bidi-common-separator-tests: New file.
32965         * modules/unictype/property-bidi-control-tests: New file.
32966         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
32967         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
32968         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
32969         * modules/unictype/property-bidi-european-digit-tests: New file.
32970         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
32971         * modules/unictype/property-bidi-left-to-right-tests: New file.
32972         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
32973         * modules/unictype/property-bidi-other-neutral-tests: New file.
32974         * modules/unictype/property-bidi-pdf-tests: New file.
32975         * modules/unictype/property-bidi-segment-separator-tests: New file.
32976         * modules/unictype/property-bidi-whitespace-tests: New file.
32977         * modules/unictype/property-byname-tests: New file.
32978         * modules/unictype/property-combining-tests: New file.
32979         * modules/unictype/property-composite-tests: New file.
32980         * modules/unictype/property-currency-symbol-tests: New file.
32981         * modules/unictype/property-dash-tests: New file.
32982         * modules/unictype/property-decimal-digit-tests: New file.
32983         * modules/unictype/property-default-ignorable-code-point-tests: New file.
32984         * modules/unictype/property-deprecated-tests: New file.
32985         * modules/unictype/property-diacritic-tests: New file.
32986         * modules/unictype/property-extender-tests: New file.
32987         * modules/unictype/property-format-control-tests: New file.
32988         * modules/unictype/property-grapheme-base-tests: New file.
32989         * modules/unictype/property-grapheme-extend-tests: New file.
32990         * modules/unictype/property-grapheme-link-tests: New file.
32991         * modules/unictype/property-hex-digit-tests: New file.
32992         * modules/unictype/property-hyphen-tests: New file.
32993         * modules/unictype/property-id-continue-tests: New file.
32994         * modules/unictype/property-id-start-tests: New file.
32995         * modules/unictype/property-ideographic-tests: New file.
32996         * modules/unictype/property-ids-binary-operator-tests: New file.
32997         * modules/unictype/property-ids-trinary-operator-tests: New file.
32998         * modules/unictype/property-ignorable-control-tests: New file.
32999         * modules/unictype/property-iso-control-tests: New file.
33000         * modules/unictype/property-join-control-tests: New file.
33001         * modules/unictype/property-left-of-pair-tests: New file.
33002         * modules/unictype/property-line-separator-tests: New file.
33003         * modules/unictype/property-logical-order-exception-tests: New file.
33004         * modules/unictype/property-lowercase-tests: New file.
33005         * modules/unictype/property-math-tests: New file.
33006         * modules/unictype/property-non-break-tests: New file.
33007         * modules/unictype/property-not-a-character-tests: New file.
33008         * modules/unictype/property-numeric-tests: New file.
33009         * modules/unictype/property-other-alphabetic-tests: New file.
33010         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33011         * modules/unictype/property-other-grapheme-extend-tests: New file.
33012         * modules/unictype/property-other-id-continue-tests: New file.
33013         * modules/unictype/property-other-id-start-tests: New file.
33014         * modules/unictype/property-other-lowercase-tests: New file.
33015         * modules/unictype/property-other-math-tests: New file.
33016         * modules/unictype/property-other-uppercase-tests: New file.
33017         * modules/unictype/property-paired-punctuation-tests: New file.
33018         * modules/unictype/property-paragraph-separator-tests: New file.
33019         * modules/unictype/property-pattern-syntax-tests: New file.
33020         * modules/unictype/property-pattern-white-space-tests: New file.
33021         * modules/unictype/property-private-use-tests: New file.
33022         * modules/unictype/property-punctuation-tests: New file.
33023         * modules/unictype/property-quotation-mark-tests: New file.
33024         * modules/unictype/property-radical-tests: New file.
33025         * modules/unictype/property-sentence-terminal-tests: New file.
33026         * modules/unictype/property-soft-dotted-tests: New file.
33027         * modules/unictype/property-space-tests: New file.
33028         * modules/unictype/property-terminal-punctuation-tests: New file.
33029         * modules/unictype/property-test-tests: New file.
33030         * modules/unictype/property-titlecase-tests: New file.
33031         * modules/unictype/property-unassigned-code-value-tests: New file.
33032         * modules/unictype/property-unified-ideograph-tests: New file.
33033         * modules/unictype/property-uppercase-tests: New file.
33034         * modules/unictype/property-variation-selector-tests: New file.
33035         * modules/unictype/property-white-space-tests: New file.
33036         * modules/unictype/property-xid-continue-tests: New file.
33037         * modules/unictype/property-xid-start-tests: New file.
33038         * modules/unictype/property-zero-width-tests: New file.
33039         * modules/unictype/scripts-tests: New file.
33040         * modules/unictype/syntax-c-ident-tests: New file.
33041         * modules/unictype/syntax-c-whitespace-tests: New file.
33042         * modules/unictype/syntax-java-ident-tests: New file.
33043         * modules/unictype/syntax-java-whitespace-tests: New file.
33044         * tests/unictype/test-bidi_byname.c: New file.
33045         * tests/unictype/test-bidi_name.c: New file.
33046         * tests/unictype/test-bidi_of.c: New file.
33047         * tests/unictype/test-bidi_test.c: New file.
33048         * tests/unictype/test-block_list.c: New file.
33049         * tests/unictype/test-block_of.c: New file.
33050         * tests/unictype/test-block_test.c: New file.
33051         * tests/unictype/test-categ_and.c: New file.
33052         * tests/unictype/test-categ_and_not.c: New file.
33053         * tests/unictype/test-categ_byname.c: New file.
33054         * tests/unictype/test-categ_name.c: New file.
33055         * tests/unictype/test-categ_none.c: New file.
33056         * tests/unictype/test-categ_of.c: New file.
33057         * tests/unictype/test-categ_or.c: New file.
33058         * tests/unictype/test-categ_test_withtable.c: New file.
33059         * tests/unictype/test-combining.c: New file.
33060         * tests/unictype/test-decdigit.c: New file.
33061         * tests/unictype/test-digit.c: New file.
33062         * tests/unictype/test-mirror.c: New file.
33063         * tests/unictype/test-numeric.c: New file.
33064         * tests/unictype/test-pr_byname.c: New file.
33065         * tests/unictype/test-pr_test.c: New file.
33066         * tests/unictype/test-predicate-part1.h: New file.
33067         * tests/unictype/test-predicate-part2.h: New file.
33068         * tests/unictype/test-scripts.c: New file.
33069         * tests/unictype/test-sy_c_ident.c: New file.
33070         * tests/unictype/test-sy_java_ident.c: New file.
33071
33072         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33073         for Unicode 5.0.0.
33074         * tests/unictype/test-categ_Cc.c: Likewise.
33075         * tests/unictype/test-categ_Cf.c: Likewise.
33076         * tests/unictype/test-categ_Cn.c: Likewise.
33077         * tests/unictype/test-categ_Co.c: Likewise.
33078         * tests/unictype/test-categ_Cs.c: Likewise.
33079         * tests/unictype/test-categ_L.c: Likewise.
33080         * tests/unictype/test-categ_Ll.c: Likewise.
33081         * tests/unictype/test-categ_Lm.c: Likewise.
33082         * tests/unictype/test-categ_Lo.c: Likewise.
33083         * tests/unictype/test-categ_Lt.c: Likewise.
33084         * tests/unictype/test-categ_Lu.c: Likewise.
33085         * tests/unictype/test-categ_M.c: Likewise.
33086         * tests/unictype/test-categ_Mc.c: Likewise.
33087         * tests/unictype/test-categ_Me.c: Likewise.
33088         * tests/unictype/test-categ_Mn.c: Likewise.
33089         * tests/unictype/test-categ_N.c: Likewise.
33090         * tests/unictype/test-categ_Nd.c: Likewise.
33091         * tests/unictype/test-categ_Nl.c: Likewise.
33092         * tests/unictype/test-categ_No.c: Likewise.
33093         * tests/unictype/test-categ_P.c: Likewise.
33094         * tests/unictype/test-categ_Pc.c: Likewise.
33095         * tests/unictype/test-categ_Pd.c: Likewise.
33096         * tests/unictype/test-categ_Pe.c: Likewise.
33097         * tests/unictype/test-categ_Pf.c: Likewise.
33098         * tests/unictype/test-categ_Pi.c: Likewise.
33099         * tests/unictype/test-categ_Po.c: Likewise.
33100         * tests/unictype/test-categ_Ps.c: Likewise.
33101         * tests/unictype/test-categ_S.c: Likewise.
33102         * tests/unictype/test-categ_Sc.c: Likewise.
33103         * tests/unictype/test-categ_Sk.c: Likewise.
33104         * tests/unictype/test-categ_Sm.c: Likewise.
33105         * tests/unictype/test-categ_So.c: Likewise.
33106         * tests/unictype/test-categ_Z.c: Likewise.
33107         * tests/unictype/test-categ_Zl.c: Likewise.
33108         * tests/unictype/test-categ_Zp.c: Likewise.
33109         * tests/unictype/test-categ_Zs.c: Likewise.
33110         * tests/unictype/test-ctype_alnum.c: Likewise.
33111         * tests/unictype/test-ctype_alpha.c: Likewise.
33112         * tests/unictype/test-ctype_blank.c: Likewise.
33113         * tests/unictype/test-ctype_cntrl.c: Likewise.
33114         * tests/unictype/test-ctype_digit.c: Likewise.
33115         * tests/unictype/test-ctype_graph.c: Likewise.
33116         * tests/unictype/test-ctype_lower.c: Likewise.
33117         * tests/unictype/test-ctype_print.c: Likewise.
33118         * tests/unictype/test-ctype_punct.c: Likewise.
33119         * tests/unictype/test-ctype_space.c: Likewise.
33120         * tests/unictype/test-ctype_upper.c: Likewise.
33121         * tests/unictype/test-ctype_xdigit.c: Likewise.
33122         * tests/unictype/test-decdigit.h: Likewise.
33123         * tests/unictype/test-digit.h: Likewise.
33124         * tests/unictype/test-numeric.h: Likewise.
33125         * tests/unictype/test-pr_alphabetic.c: Likewise.
33126         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33127         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33128         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33129         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33130         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33131         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33132         * tests/unictype/test-pr_bidi_control.c: Likewise.
33133         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33134         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33135         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33136         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33137         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33138         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33139         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33140         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33141         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33142         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33143         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33144         * tests/unictype/test-pr_combining.c: Likewise.
33145         * tests/unictype/test-pr_composite.c: Likewise.
33146         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33147         * tests/unictype/test-pr_dash.c: Likewise.
33148         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33149         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33150         * tests/unictype/test-pr_deprecated.c: Likewise.
33151         * tests/unictype/test-pr_diacritic.c: Likewise.
33152         * tests/unictype/test-pr_extender.c: Likewise.
33153         * tests/unictype/test-pr_format_control.c: Likewise.
33154         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33155         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33156         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33157         * tests/unictype/test-pr_hex_digit.c: Likewise.
33158         * tests/unictype/test-pr_hyphen.c: Likewise.
33159         * tests/unictype/test-pr_id_continue.c: Likewise.
33160         * tests/unictype/test-pr_id_start.c: Likewise.
33161         * tests/unictype/test-pr_ideographic.c: Likewise.
33162         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33163         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33164         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33165         * tests/unictype/test-pr_iso_control.c: Likewise.
33166         * tests/unictype/test-pr_join_control.c: Likewise.
33167         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33168         * tests/unictype/test-pr_line_separator.c: Likewise.
33169         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33170         * tests/unictype/test-pr_lowercase.c: Likewise.
33171         * tests/unictype/test-pr_math.c: Likewise.
33172         * tests/unictype/test-pr_non_break.c: Likewise.
33173         * tests/unictype/test-pr_not_a_character.c: Likewise.
33174         * tests/unictype/test-pr_numeric.c: Likewise.
33175         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33176         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33177         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33178         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33179         * tests/unictype/test-pr_other_id_start.c: Likewise.
33180         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33181         * tests/unictype/test-pr_other_math.c: Likewise.
33182         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33183         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33184         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33185         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33186         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33187         * tests/unictype/test-pr_private_use.c: Likewise.
33188         * tests/unictype/test-pr_punctuation.c: Likewise.
33189         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33190         * tests/unictype/test-pr_radical.c: Likewise.
33191         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33192         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33193         * tests/unictype/test-pr_space.c: Likewise.
33194         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33195         * tests/unictype/test-pr_titlecase.c: Likewise.
33196         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33197         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33198         * tests/unictype/test-pr_uppercase.c: Likewise.
33199         * tests/unictype/test-pr_variation_selector.c: Likewise.
33200         * tests/unictype/test-pr_white_space.c: Likewise.
33201         * tests/unictype/test-pr_xid_continue.c: Likewise.
33202         * tests/unictype/test-pr_xid_start.c: Likewise.
33203         * tests/unictype/test-pr_zero_width.c: Likewise.
33204         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33205         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33206
33207 2007-11-12  Bruno Haible  <bruno@clisp.org>
33208
33209         Unicode character classification functions.
33210         * lib/unictype.h: New file.
33211         * modules/unictype/base: New file.
33212         * modules/unictype/category-L: New file.
33213         * modules/unictype/category-Lu: New file.
33214         * modules/unictype/category-Ll: New file.
33215         * modules/unictype/category-Lt: New file.
33216         * modules/unictype/category-Lm: New file.
33217         * modules/unictype/category-Lo: New file.
33218         * modules/unictype/category-M: New file.
33219         * modules/unictype/category-Mn: New file.
33220         * modules/unictype/category-Mc: New file.
33221         * modules/unictype/category-Me: New file.
33222         * modules/unictype/category-N: New file.
33223         * modules/unictype/category-Nd: New file.
33224         * modules/unictype/category-Nl: New file.
33225         * modules/unictype/category-No: New file.
33226         * modules/unictype/category-P: New file.
33227         * modules/unictype/category-Pc: New file.
33228         * modules/unictype/category-Pd: New file.
33229         * modules/unictype/category-Ps: New file.
33230         * modules/unictype/category-Pe: New file.
33231         * modules/unictype/category-Pi: New file.
33232         * modules/unictype/category-Pf: New file.
33233         * modules/unictype/category-Po: New file.
33234         * modules/unictype/category-S: New file.
33235         * modules/unictype/category-Sm: New file.
33236         * modules/unictype/category-Sc: New file.
33237         * modules/unictype/category-Sk: New file.
33238         * modules/unictype/category-So: New file.
33239         * modules/unictype/category-Z: New file.
33240         * modules/unictype/category-Zs: New file.
33241         * modules/unictype/category-Zl: New file.
33242         * modules/unictype/category-Zp: New file.
33243         * modules/unictype/category-C: New file.
33244         * modules/unictype/category-Cc: New file.
33245         * modules/unictype/category-Cf: New file.
33246         * modules/unictype/category-Cs: New file.
33247         * modules/unictype/category-Co: New file.
33248         * modules/unictype/category-Cn: New file.
33249         * modules/unictype/category-or: New file.
33250         * modules/unictype/category-of: New file.
33251         * modules/unictype/category-test: New file.
33252         * modules/unictype/category-test-withtable: New file.
33253         * modules/unictype/category-byname: New file.
33254         * modules/unictype/category-none: New file.
33255         * modules/unictype/category-and: New file.
33256         * modules/unictype/category-and-not: New file.
33257         * modules/unictype/category-name: New file.
33258         * modules/unictype/combining-class: New file.
33259         * modules/unictype/category-all: New file.
33260         * modules/unictype/bidicategory-all: New file.
33261         * modules/unictype/bidicategory-byname: New file.
33262         * modules/unictype/bidicategory-name: New file.
33263         * modules/unictype/bidicategory-of: New file.
33264         * modules/unictype/bidicategory-test: New file.
33265         * modules/unictype/decimal-digit: New file.
33266         * modules/unictype/digit: New file.
33267         * modules/unictype/numeric: New file.
33268         * modules/unictype/mirror: New file.
33269         * modules/unictype/property-white-space: New file.
33270         * modules/unictype/property-alphabetic: New file.
33271         * modules/unictype/property-other-alphabetic: New file.
33272         * modules/unictype/property-not-a-character: New file.
33273         * modules/unictype/property-default-ignorable-code-point: New file.
33274         * modules/unictype/property-other-default-ignorable-code-point: New
33275         file.
33276         * modules/unictype/property-deprecated: New file.
33277         * modules/unictype/property-logical-order-exception: New file.
33278         * modules/unictype/property-variation-selector: New file.
33279         * modules/unictype/property-private-use: New file.
33280         * modules/unictype/property-unassigned-code-value: New file.
33281         * modules/unictype/property-uppercase: New file.
33282         * modules/unictype/property-other-uppercase: New file.
33283         * modules/unictype/property-lowercase: New file.
33284         * modules/unictype/property-other-lowercase: New file.
33285         * modules/unictype/property-titlecase: New file.
33286         * modules/unictype/property-soft-dotted: New file.
33287         * modules/unictype/property-id-start: New file.
33288         * modules/unictype/property-other-id-start: New file.
33289         * modules/unictype/property-id-continue: New file.
33290         * modules/unictype/property-other-id-continue: New file.
33291         * modules/unictype/property-xid-start: New file.
33292         * modules/unictype/property-xid-continue: New file.
33293         * modules/unictype/property-pattern-white-space: New file.
33294         * modules/unictype/property-pattern-syntax: New file.
33295         * modules/unictype/property-join-control: New file.
33296         * modules/unictype/property-grapheme-base: New file.
33297         * modules/unictype/property-grapheme-extend: New file.
33298         * modules/unictype/property-other-grapheme-extend: New file.
33299         * modules/unictype/property-grapheme-link: New file.
33300         * modules/unictype/property-bidi-control: New file.
33301         * modules/unictype/property-bidi-left-to-right: New file.
33302         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33303         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33304         * modules/unictype/property-bidi-european-digit: New file.
33305         * modules/unictype/property-bidi-eur-num-separator: New file.
33306         * modules/unictype/property-bidi-eur-num-terminator: New file.
33307         * modules/unictype/property-bidi-arabic-digit: New file.
33308         * modules/unictype/property-bidi-common-separator: New file.
33309         * modules/unictype/property-bidi-block-separator: New file.
33310         * modules/unictype/property-bidi-segment-separator: New file.
33311         * modules/unictype/property-bidi-whitespace: New file.
33312         * modules/unictype/property-bidi-non-spacing-mark: New file.
33313         * modules/unictype/property-bidi-boundary-neutral: New file.
33314         * modules/unictype/property-bidi-pdf: New file.
33315         * modules/unictype/property-bidi-embedding-or-override: New file.
33316         * modules/unictype/property-bidi-other-neutral: New file.
33317         * modules/unictype/property-hex-digit: New file.
33318         * modules/unictype/property-ascii-hex-digit: New file.
33319         * modules/unictype/property-ideographic: New file.
33320         * modules/unictype/property-unified-ideograph: New file.
33321         * modules/unictype/property-radical: New file.
33322         * modules/unictype/property-ids-binary-operator: New file.
33323         * modules/unictype/property-ids-trinary-operator: New file.
33324         * modules/unictype/property-zero-width: New file.
33325         * modules/unictype/property-space: New file.
33326         * modules/unictype/property-non-break: New file.
33327         * modules/unictype/property-iso-control: New file.
33328         * modules/unictype/property-format-control: New file.
33329         * modules/unictype/property-dash: New file.
33330         * modules/unictype/property-hyphen: New file.
33331         * modules/unictype/property-punctuation: New file.
33332         * modules/unictype/property-line-separator: New file.
33333         * modules/unictype/property-paragraph-separator: New file.
33334         * modules/unictype/property-quotation-mark: New file.
33335         * modules/unictype/property-sentence-terminal: New file.
33336         * modules/unictype/property-terminal-punctuation: New file.
33337         * modules/unictype/property-currency-symbol: New file.
33338         * modules/unictype/property-math: New file.
33339         * modules/unictype/property-other-math: New file.
33340         * modules/unictype/property-paired-punctuation: New file.
33341         * modules/unictype/property-left-of-pair: New file.
33342         * modules/unictype/property-combining: New file.
33343         * modules/unictype/property-composite: New file.
33344         * modules/unictype/property-decimal-digit: New file.
33345         * modules/unictype/property-numeric: New file.
33346         * modules/unictype/property-diacritic: New file.
33347         * modules/unictype/property-extender: New file.
33348         * modules/unictype/property-ignorable-control: New file.
33349         * modules/unictype/property-test: New file.
33350         * modules/unictype/property-byname: New file.
33351         * modules/unictype/property-all: New file.
33352         * modules/unictype/scripts: New file.
33353         * modules/unictype/scripts-all: New file.
33354         * modules/unictype/block-of: New file.
33355         * modules/unictype/block-test: New file.
33356         * modules/unictype/block-list: New file.
33357         * modules/unictype/block-all: New file.
33358         * modules/unictype/syntax-c-whitespace: New file.
33359         * modules/unictype/syntax-java-whitespace: New file.
33360         * modules/unictype/syntax-c-ident: New file.
33361         * modules/unictype/syntax-java-ident: New file.
33362         * modules/unictype/ctype-alnum: New file.
33363         * modules/unictype/ctype-alpha: New file.
33364         * modules/unictype/ctype-cntrl: New file.
33365         * modules/unictype/ctype-digit: New file.
33366         * modules/unictype/ctype-graph: New file.
33367         * modules/unictype/ctype-lower: New file.
33368         * modules/unictype/ctype-print: New file.
33369         * modules/unictype/ctype-punct: New file.
33370         * modules/unictype/ctype-space: New file.
33371         * modules/unictype/ctype-upper: New file.
33372         * modules/unictype/ctype-xdigit: New file.
33373         * modules/unictype/ctype-blank: New file.
33374         * lib/unictype/bidi_byname.c: New file.
33375         * lib/unictype/bidi_name.c: New file.
33376         * lib/unictype/bidi_of.c: New file.
33377         * lib/unictype/bidi_test.c: New file.
33378         * lib/unictype/bitmap.h: New file.
33379         * lib/unictype/block_test.c: New file.
33380         * lib/unictype/blocks.c: New file.
33381         * lib/unictype/categ_C.c: New file.
33382         * lib/unictype/categ_Cc.c: New file.
33383         * lib/unictype/categ_Cf.c: New file.
33384         * lib/unictype/categ_Cn.c: New file.
33385         * lib/unictype/categ_Co.c: New file.
33386         * lib/unictype/categ_Cs.c: New file.
33387         * lib/unictype/categ_L.c: New file.
33388         * lib/unictype/categ_Ll.c: New file.
33389         * lib/unictype/categ_Lm.c: New file.
33390         * lib/unictype/categ_Lo.c: New file.
33391         * lib/unictype/categ_Lt.c: New file.
33392         * lib/unictype/categ_Lu.c: New file.
33393         * lib/unictype/categ_M.c: New file.
33394         * lib/unictype/categ_Mc.c: New file.
33395         * lib/unictype/categ_Me.c: New file.
33396         * lib/unictype/categ_Mn.c: New file.
33397         * lib/unictype/categ_N.c: New file.
33398         * lib/unictype/categ_Nd.c: New file.
33399         * lib/unictype/categ_Nl.c: New file.
33400         * lib/unictype/categ_No.c: New file.
33401         * lib/unictype/categ_P.c: New file.
33402         * lib/unictype/categ_Pc.c: New file.
33403         * lib/unictype/categ_Pd.c: New file.
33404         * lib/unictype/categ_Pe.c: New file.
33405         * lib/unictype/categ_Pf.c: New file.
33406         * lib/unictype/categ_Pi.c: New file.
33407         * lib/unictype/categ_Po.c: New file.
33408         * lib/unictype/categ_Ps.c: New file.
33409         * lib/unictype/categ_S.c: New file.
33410         * lib/unictype/categ_Sc.c: New file.
33411         * lib/unictype/categ_Sk.c: New file.
33412         * lib/unictype/categ_Sm.c: New file.
33413         * lib/unictype/categ_So.c: New file.
33414         * lib/unictype/categ_Z.c: New file.
33415         * lib/unictype/categ_Zl.c: New file.
33416         * lib/unictype/categ_Zp.c: New file.
33417         * lib/unictype/categ_Zs.c: New file.
33418         * lib/unictype/categ_and.c: New file.
33419         * lib/unictype/categ_and_not.c: New file.
33420         * lib/unictype/categ_byname.c: New file.
33421         * lib/unictype/categ_name.c: New file.
33422         * lib/unictype/categ_none.c: New file.
33423         * lib/unictype/categ_of.c: New file.
33424         * lib/unictype/categ_or.c: New file.
33425         * lib/unictype/categ_test.c: New file.
33426         * lib/unictype/combining.c: New file.
33427         * lib/unictype/ctype_alnum.c: New file.
33428         * lib/unictype/ctype_alpha.c: New file.
33429         * lib/unictype/ctype_blank.c: New file.
33430         * lib/unictype/ctype_cntrl.c: New file.
33431         * lib/unictype/ctype_digit.c: New file.
33432         * lib/unictype/ctype_graph.c: New file.
33433         * lib/unictype/ctype_lower.c: New file.
33434         * lib/unictype/ctype_print.c: New file.
33435         * lib/unictype/ctype_punct.c: New file.
33436         * lib/unictype/ctype_space.c: New file.
33437         * lib/unictype/ctype_upper.c: New file.
33438         * lib/unictype/ctype_xdigit.c: New file.
33439         * lib/unictype/decdigit.c: New file.
33440         * lib/unictype/digit.c: New file.
33441         * lib/unictype/identsyntaxmap.h: New file.
33442         * lib/unictype/mirror.c: New file.
33443         * lib/unictype/numeric.c: New file.
33444         * lib/unictype/pr_alphabetic.c: New file.
33445         * lib/unictype/pr_ascii_hex_digit.c: New file.
33446         * lib/unictype/pr_bidi_arabic_digit.c: New file.
33447         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
33448         * lib/unictype/pr_bidi_block_separator.c: New file.
33449         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
33450         * lib/unictype/pr_bidi_common_separator.c: New file.
33451         * lib/unictype/pr_bidi_control.c: New file.
33452         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
33453         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
33454         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
33455         * lib/unictype/pr_bidi_european_digit.c: New file.
33456         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
33457         * lib/unictype/pr_bidi_left_to_right.c: New file.
33458         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
33459         * lib/unictype/pr_bidi_other_neutral.c: New file.
33460         * lib/unictype/pr_bidi_pdf.c: New file.
33461         * lib/unictype/pr_bidi_segment_separator.c: New file.
33462         * lib/unictype/pr_bidi_whitespace.c: New file.
33463         * lib/unictype/pr_byname.c: New file.
33464         * lib/unictype/pr_byname.gperf: New file.
33465         * lib/unictype/pr_combining.c: New file.
33466         * lib/unictype/pr_composite.c: New file.
33467         * lib/unictype/pr_currency_symbol.c: New file.
33468         * lib/unictype/pr_dash.c: New file.
33469         * lib/unictype/pr_decimal_digit.c: New file.
33470         * lib/unictype/pr_default_ignorable_code_point.c: New file.
33471         * lib/unictype/pr_deprecated.c: New file.
33472         * lib/unictype/pr_diacritic.c: New file.
33473         * lib/unictype/pr_extender.c: New file.
33474         * lib/unictype/pr_format_control.c: New file.
33475         * lib/unictype/pr_grapheme_base.c: New file.
33476         * lib/unictype/pr_grapheme_extend.c: New file.
33477         * lib/unictype/pr_grapheme_link.c: New file.
33478         * lib/unictype/pr_hex_digit.c: New file.
33479         * lib/unictype/pr_hyphen.c: New file.
33480         * lib/unictype/pr_id_continue.c: New file.
33481         * lib/unictype/pr_id_start.c: New file.
33482         * lib/unictype/pr_ideographic.c: New file.
33483         * lib/unictype/pr_ids_binary_operator.c: New file.
33484         * lib/unictype/pr_ids_trinary_operator.c: New file.
33485         * lib/unictype/pr_ignorable_control.c: New file.
33486         * lib/unictype/pr_iso_control.c: New file.
33487         * lib/unictype/pr_join_control.c: New file.
33488         * lib/unictype/pr_left_of_pair.c: New file.
33489         * lib/unictype/pr_line_separator.c: New file.
33490         * lib/unictype/pr_logical_order_exception.c: New file.
33491         * lib/unictype/pr_lowercase.c: New file.
33492         * lib/unictype/pr_math.c: New file.
33493         * lib/unictype/pr_non_break.c: New file.
33494         * lib/unictype/pr_not_a_character.c: New file.
33495         * lib/unictype/pr_numeric.c: New file.
33496         * lib/unictype/pr_other_alphabetic.c: New file.
33497         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
33498         * lib/unictype/pr_other_grapheme_extend.c: New file.
33499         * lib/unictype/pr_other_id_continue.c: New file.
33500         * lib/unictype/pr_other_id_start.c: New file.
33501         * lib/unictype/pr_other_lowercase.c: New file.
33502         * lib/unictype/pr_other_math.c: New file.
33503         * lib/unictype/pr_other_uppercase.c: New file.
33504         * lib/unictype/pr_paired_punctuation.c: New file.
33505         * lib/unictype/pr_paragraph_separator.c: New file.
33506         * lib/unictype/pr_pattern_syntax.c: New file.
33507         * lib/unictype/pr_pattern_white_space.c: New file.
33508         * lib/unictype/pr_private_use.c: New file.
33509         * lib/unictype/pr_punctuation.c: New file.
33510         * lib/unictype/pr_quotation_mark.c: New file.
33511         * lib/unictype/pr_radical.c: New file.
33512         * lib/unictype/pr_sentence_terminal.c: New file.
33513         * lib/unictype/pr_soft_dotted.c: New file.
33514         * lib/unictype/pr_space.c: New file.
33515         * lib/unictype/pr_terminal_punctuation.c: New file.
33516         * lib/unictype/pr_test.c: New file.
33517         * lib/unictype/pr_titlecase.c: New file.
33518         * lib/unictype/pr_unassigned_code_value.c: New file.
33519         * lib/unictype/pr_unified_ideograph.c: New file.
33520         * lib/unictype/pr_uppercase.c: New file.
33521         * lib/unictype/pr_variation_selector.c: New file.
33522         * lib/unictype/pr_white_space.c: New file.
33523         * lib/unictype/pr_xid_continue.c: New file.
33524         * lib/unictype/pr_xid_start.c: New file.
33525         * lib/unictype/pr_zero_width.c: New file.
33526         * lib/unictype/scripts.c: New file.
33527         * lib/unictype/sy_c_ident.c: New file.
33528         * lib/unictype/sy_c_whitespace.c: New file.
33529         * lib/unictype/sy_java_ident.c: New file.
33530         * lib/unictype/sy_java_whitespace.c: New file.
33531
33532         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
33533         Unicode 5.0.0.
33534         * lib/unictype/blocks.h: Likewise.
33535         * lib/unictype/categ_C.h: Likewise.
33536         * lib/unictype/categ_Cc.h: Likewise.
33537         * lib/unictype/categ_Cf.h: Likewise.
33538         * lib/unictype/categ_Cn.h: Likewise.
33539         * lib/unictype/categ_Co.h: Likewise.
33540         * lib/unictype/categ_Cs.h: Likewise.
33541         * lib/unictype/categ_L.h: Likewise.
33542         * lib/unictype/categ_Ll.h: Likewise.
33543         * lib/unictype/categ_Lm.h: Likewise.
33544         * lib/unictype/categ_Lo.h: Likewise.
33545         * lib/unictype/categ_Lt.h: Likewise.
33546         * lib/unictype/categ_Lu.h: Likewise.
33547         * lib/unictype/categ_M.h: Likewise.
33548         * lib/unictype/categ_Mc.h: Likewise.
33549         * lib/unictype/categ_Me.h: Likewise.
33550         * lib/unictype/categ_Mn.h: Likewise.
33551         * lib/unictype/categ_N.h: Likewise.
33552         * lib/unictype/categ_Nd.h: Likewise.
33553         * lib/unictype/categ_Nl.h: Likewise.
33554         * lib/unictype/categ_No.h: Likewise.
33555         * lib/unictype/categ_P.h: Likewise.
33556         * lib/unictype/categ_Pc.h: Likewise.
33557         * lib/unictype/categ_Pd.h: Likewise.
33558         * lib/unictype/categ_Pe.h: Likewise.
33559         * lib/unictype/categ_Pf.h: Likewise.
33560         * lib/unictype/categ_Pi.h: Likewise.
33561         * lib/unictype/categ_Po.h: Likewise.
33562         * lib/unictype/categ_Ps.h: Likewise.
33563         * lib/unictype/categ_S.h: Likewise.
33564         * lib/unictype/categ_Sc.h: Likewise.
33565         * lib/unictype/categ_Sk.h: Likewise.
33566         * lib/unictype/categ_Sm.h: Likewise.
33567         * lib/unictype/categ_So.h: Likewise.
33568         * lib/unictype/categ_Z.h: Likewise.
33569         * lib/unictype/categ_Zl.h: Likewise.
33570         * lib/unictype/categ_Zp.h: Likewise.
33571         * lib/unictype/categ_Zs.h: Likewise.
33572         * lib/unictype/categ_of.h: Likewise.
33573         * lib/unictype/combining.h: Likewise.
33574         * lib/unictype/ctype_alnum.h: Likewise.
33575         * lib/unictype/ctype_alpha.h: Likewise.
33576         * lib/unictype/ctype_blank.h: Likewise.
33577         * lib/unictype/ctype_cntrl.h: Likewise.
33578         * lib/unictype/ctype_digit.h: Likewise.
33579         * lib/unictype/ctype_graph.h: Likewise.
33580         * lib/unictype/ctype_lower.h: Likewise.
33581         * lib/unictype/ctype_print.h: Likewise.
33582         * lib/unictype/ctype_punct.h: Likewise.
33583         * lib/unictype/ctype_space.h: Likewise.
33584         * lib/unictype/ctype_upper.h: Likewise.
33585         * lib/unictype/ctype_xdigit.h: Likewise.
33586         * lib/unictype/decdigit.h: Likewise.
33587         * lib/unictype/digit.h: Likewise.
33588         * lib/unictype/mirror.h: Likewise.
33589         * lib/unictype/numeric.h: Likewise.
33590         * lib/unictype/pr_alphabetic.h: Likewise.
33591         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
33592         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
33593         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
33594         * lib/unictype/pr_bidi_block_separator.h: Likewise.
33595         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
33596         * lib/unictype/pr_bidi_common_separator.h: Likewise.
33597         * lib/unictype/pr_bidi_control.h: Likewise.
33598         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
33599         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
33600         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
33601         * lib/unictype/pr_bidi_european_digit.h: Likewise.
33602         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
33603         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
33604         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
33605         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
33606         * lib/unictype/pr_bidi_pdf.h: Likewise.
33607         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
33608         * lib/unictype/pr_bidi_whitespace.h: Likewise.
33609         * lib/unictype/pr_combining.h: Likewise.
33610         * lib/unictype/pr_composite.h: Likewise.
33611         * lib/unictype/pr_currency_symbol.h: Likewise.
33612         * lib/unictype/pr_dash.h: Likewise.
33613         * lib/unictype/pr_decimal_digit.h: Likewise.
33614         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
33615         * lib/unictype/pr_deprecated.h: Likewise.
33616         * lib/unictype/pr_diacritic.h: Likewise.
33617         * lib/unictype/pr_extender.h: Likewise.
33618         * lib/unictype/pr_format_control.h: Likewise.
33619         * lib/unictype/pr_grapheme_base.h: Likewise.
33620         * lib/unictype/pr_grapheme_extend.h: Likewise.
33621         * lib/unictype/pr_grapheme_link.h: Likewise.
33622         * lib/unictype/pr_hex_digit.h: Likewise.
33623         * lib/unictype/pr_hyphen.h: Likewise.
33624         * lib/unictype/pr_id_continue.h: Likewise.
33625         * lib/unictype/pr_id_start.h: Likewise.
33626         * lib/unictype/pr_ideographic.h: Likewise.
33627         * lib/unictype/pr_ids_binary_operator.h: Likewise.
33628         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
33629         * lib/unictype/pr_ignorable_control.h: Likewise.
33630         * lib/unictype/pr_iso_control.h: Likewise.
33631         * lib/unictype/pr_join_control.h: Likewise.
33632         * lib/unictype/pr_left_of_pair.h: Likewise.
33633         * lib/unictype/pr_line_separator.h: Likewise.
33634         * lib/unictype/pr_logical_order_exception.h: Likewise.
33635         * lib/unictype/pr_lowercase.h: Likewise.
33636         * lib/unictype/pr_math.h: Likewise.
33637         * lib/unictype/pr_non_break.h: Likewise.
33638         * lib/unictype/pr_not_a_character.h: Likewise.
33639         * lib/unictype/pr_numeric.h: Likewise.
33640         * lib/unictype/pr_other_alphabetic.h: Likewise.
33641         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
33642         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
33643         * lib/unictype/pr_other_id_continue.h: Likewise.
33644         * lib/unictype/pr_other_id_start.h: Likewise.
33645         * lib/unictype/pr_other_lowercase.h: Likewise.
33646         * lib/unictype/pr_other_math.h: Likewise.
33647         * lib/unictype/pr_other_uppercase.h: Likewise.
33648         * lib/unictype/pr_paired_punctuation.h: Likewise.
33649         * lib/unictype/pr_paragraph_separator.h: Likewise.
33650         * lib/unictype/pr_pattern_syntax.h: Likewise.
33651         * lib/unictype/pr_pattern_white_space.h: Likewise.
33652         * lib/unictype/pr_private_use.h: Likewise.
33653         * lib/unictype/pr_punctuation.h: Likewise.
33654         * lib/unictype/pr_quotation_mark.h: Likewise.
33655         * lib/unictype/pr_radical.h: Likewise.
33656         * lib/unictype/pr_sentence_terminal.h: Likewise.
33657         * lib/unictype/pr_soft_dotted.h: Likewise.
33658         * lib/unictype/pr_space.h: Likewise.
33659         * lib/unictype/pr_terminal_punctuation.h: Likewise.
33660         * lib/unictype/pr_titlecase.h: Likewise.
33661         * lib/unictype/pr_unassigned_code_value.h: Likewise.
33662         * lib/unictype/pr_unified_ideograph.h: Likewise.
33663         * lib/unictype/pr_uppercase.h: Likewise.
33664         * lib/unictype/pr_variation_selector.h: Likewise.
33665         * lib/unictype/pr_white_space.h: Likewise.
33666         * lib/unictype/pr_xid_continue.h: Likewise.
33667         * lib/unictype/pr_xid_start.h: Likewise.
33668         * lib/unictype/pr_zero_width.h: Likewise.
33669         * lib/unictype/scripts.h: Likewise.
33670         * lib/unictype/scripts_byname.gperf: Likewise.
33671         * lib/unictype/sy_c_ident.h: Likewise.
33672         * lib/unictype/sy_c_whitespace.h: Likewise.
33673         * lib/unictype/sy_java_ident.h: Likewise.
33674         * lib/unictype/sy_java_whitespace.h: Likewise.
33675
33676         * lib/unictype/Makefile: New file.
33677         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
33678         glibc.
33679         * lib/unictype/3level.h: New file, copied from glibc.
33680         * lib/unictype/3levelbit.h: New file.
33681
33682 2007-11-11  Bruno Haible  <bruno@clisp.org>
33683
33684         * modules/gperf: New file.
33685         * modules/iconv_open (Depends-on): Add it.
33686         (Makefile.am): Remove the GPERF definition.
33687
33688 2007-11-11  Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
33691         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
33692
33693 2007-11-11  Bruno Haible  <bruno@clisp.org>
33694
33695         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
33696         (usage): Remove function.
33697
33698 2007-11-11  Bruno Haible  <bruno@clisp.org>
33699
33700         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
33701         gl_FUNC_CEILF_LIBS.
33702         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
33703         gl_FUNC_CEIL_LIBS.
33704         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
33705         gl_FUNC_CEILL_LIBS.
33706         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
33707         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
33708         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
33709
33710 2007-11-11  Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
33713         roundf were declared but do not exist on functions.
33714         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
33715         roundl were declared but do not exist on functions.
33716         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
33717         HAVE_FLOORL_AND_CEILL, respectively.
33718         Needed for Sun C on Solaris 10.
33719
33720 2007-11-11  Bruno Haible  <bruno@clisp.org>
33721
33722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
33723         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
33724         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
33725         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
33726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
33727         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
33728         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
33729         HAVE_DECL_ROUNDF.
33730         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
33731         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
33732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
33733         of HAVE_DECL_ROUND*.
33734         * modules/math (Makefile.am): Update.
33735
33736 2007-11-10  Bruno Haible  <bruno@clisp.org>
33737
33738         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
33739         ptrdiff_t as m4/intl.m4.
33740
33741 2007-11-10  Jim Meyering  <meyering@redhat.com>
33742
33743         Avoid link failure for the argmatch test.
33744         * tests/test-argmatch.c (usage): Define function to avoid a link
33745         failure: argmatch_die requires a usage function.
33746
33747 2007-11-09  Bruno Haible  <bruno@clisp.org>
33748
33749         * doc/functions/snprintf.texi: Mention BeOS deficiency.
33750         * doc/functions/vsnprintf.texi: Likewise.
33751         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
33752         with a size argument < 2.
33753
33754 2007-11-09  Bruno Haible  <bruno@clisp.org>
33755
33756         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
33757         buffer. Fixes an inefficiency introduced on 2007-11-03.
33758
33759 2007-11-09  Bruno Haible  <bruno@clisp.org>
33760
33761         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
33762         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
33763
33764 2007-11-08  Jim Meyering  <meyering@redhat.com>
33765
33766         Change cache variable name prefix "jm_" to "gl_" everywhere.
33767         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
33768         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
33769         * m4/uptime.m4: s/gl_/jm_/
33770
33771 2007-11-07  Bruno Haible  <bruno@clisp.org>
33772
33773         Update to GNU gettext 0.17.
33774         * m4/intl.m4: Update to GNU gettext 0.17.
33775         * m4/po.m4: Likewise.
33776         * modules/gettext (Files): Remove m4/ulonglong.m4.
33777         (configure.ac): Require gettext infrastructure from version 0.17.
33778
33779 2007-11-06  Bruno Haible  <bruno@clisp.org>
33780
33781         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
33782         symbolic values are not defined in a public header.
33783         * lib/freadable.c (freadable) [QNX]: Likewise.
33784         * lib/freadahead.c (freadahead) [QNX]: Likewise.
33785         * lib/freading.c (freading) [QNX]: Likewise.
33786         * lib/fseterr.c (fseterr) [QNX]: Likewise.
33787         * lib/fwritable.c (fwritable) [QNX]: Likewise.
33788         * lib/fwriting.c (fwriting) [QNX]: Likewise.
33789         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
33790         Reported by Alain Magloire.
33791
33792         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
33793
33794 2007-11-05  Bruno Haible  <bruno@clisp.org>
33795
33796         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
33797         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
33798         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
33799         Reported by Eric Blake.
33800
33801 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33802             Bruno Haible  <bruno@clisp.org>
33803
33804         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
33805         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
33806         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
33807         (malloc): Undefine also before including <stdlib.h>.
33808         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
33809         Needed on OSF/1 4.0.
33810
33811 2007-11-05  Jim Meyering  <meyering@redhat.com>
33812
33813         git-version-gen: sync from coreutils.
33814         * build-aux/git-version-gen: Add comments.
33815         Change the first '-' to '.' in the snapshot version string,
33816         e.g., 6.9-377-08144 -> 6.9.377-08144
33817         Remove first parameter.
33818         Don't declare a version "-dirty" merely because a time
33819         stamp has changed.
33820
33821 2007-11-04  Bruno Haible  <bruno@clisp.org>
33822
33823         * lib/lock.h: Protect all macro definitions containing an 'if'
33824         statement through a "do { ... } while (0)".
33825         * lib/tls.h: Likewise.
33826
33827 2007-11-04  Bruno Haible  <bruno@clisp.org>
33828
33829         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
33830
33831 2007-11-04  Bruno Haible  <bruno@clisp.org>
33832
33833         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
33834         * modules/fprintf-posix (Depends-on): Add nocrash.
33835         * modules/snprintf-posix (Depends-on): Likewise.
33836         * modules/sprintf-posix (Depends-on): Likewise.
33837         * modules/vasnprintf-posix (Depends-on): Likewise.
33838         * modules/vasprintf-posix (Depends-on): Likewise.
33839         * modules/vfprintf-posix (Depends-on): Likewise.
33840         * modules/vsnprintf-posix (Depends-on): Likewise.
33841         * modules/vsprintf-posix (Depends-on): Likewise.
33842         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33843         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33844         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33845         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33846         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33847         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33848         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33849
33850 2007-11-04  Bruno Haible  <bruno@clisp.org>
33851
33852         * modules/nocrash: New file.
33853         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
33854         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
33855
33856 2007-11-04  Bruno Haible  <bruno@clisp.org>
33857
33858         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
33859         precision handling.
33860         * tests/test-vasprintf-posix.c (test_function): Likewise.
33861         * tests/test-snprintf-posix.h (test_function): Likewise.
33862         * tests/test-sprintf-posix.h (test_function): Likewise.
33863
33864         Fix *printf behaviour for large precisions on mingw and BeOS.
33865         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
33866         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
33867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
33868         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33870         gl_PRINTF_PRECISION and test its result. Invoke
33871         gl_PREREQ_VASNPRINTF_PRECISION.
33872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33873         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33876         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33879         * doc/functions/fprintf.texi: Update.
33880         * doc/functions/printf.texi: Update.
33881         * doc/functions/snprintf.texi: Update.
33882         * doc/functions/sprintf.texi: Update.
33883         * doc/functions/vfprintf.texi: Update.
33884         * doc/functions/vprintf.texi: Update.
33885         * doc/functions/vsnprintf.texi: Update.
33886         * doc/functions/vsprintf.texi: Update.
33887
33888 2007-11-04  Bruno Haible  <bruno@clisp.org>
33889
33890         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
33891
33892 2007-11-04  Bruno Haible  <bruno@clisp.org>
33893
33894         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
33895         Reported by Sylvain Beucler <beuc@gnu.org>.
33896
33897 2007-11-03  Bruno Haible  <bruno@clisp.org>
33898
33899         * tests/test-fprintf-posix2.sh: New file.
33900         * tests/test-fprintf-posix2.c: New file.
33901         * modules/fprintf-posix-tests (Files): Add them.
33902         (TESTS): Add test-fprintf-posix2.sh.
33903         (configure.ac): Check for getrlimit and setrlimit.
33904         (check_PROGRAMS): Add test-fprintf-posix2.
33905
33906         * tests/test-printf-posix2.sh: New file.
33907         * tests/test-printf-posix2.c: New file.
33908         * modules/printf-posix-tests (Files): Add them.
33909         (TESTS): Add test-printf-posix2.sh.
33910         (configure.ac): Check for getrlimit and setrlimit.
33911         (check_PROGRAMS): Add test-printf-posix2.
33912
33913         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
33914         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
33915         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
33916         (decode_double): New function, copied from decode_long_double.
33917         (scale10_round_decimal_decoded): New function, extracted from
33918         scale10_round_decimal_long_double.
33919         (scale10_round_decimal_long_double): Use it.
33920         (scale10_round_decimal_double): New function.
33921         (floorlog10): New function.
33922         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33924         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33925         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33926         gl_PRINTF_ENOMEM and test its result. Invoke
33927         gl_PREREQ_VASNPRINTF_ENOMEM.
33928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33935         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33936         * modules/snprintf-posix (Depends-on): Likewise.
33937         * modules/sprintf-posix (Depends-on): Likewise.
33938         * modules/vasnprintf-posix (Depends-on): Likewise.
33939         * modules/vasprintf-posix (Depends-on): Likewise.
33940         * modules/vfprintf-posix (Depends-on): Likewise.
33941         * modules/vsnprintf-posix (Depends-on): Likewise.
33942         * modules/vsprintf-posix (Depends-on): Likewise.
33943         * doc/functions/fprintf.texi: Update.
33944         * doc/functions/printf.texi: Update.
33945         * doc/functions/snprintf.texi: Update.
33946         * doc/functions/sprintf.texi: Update.
33947         * doc/functions/vfprintf.texi: Update.
33948         * doc/functions/vprintf.texi: Update.
33949         * doc/functions/vsnprintf.texi: Update.
33950         * doc/functions/vsprintf.texi: Update.
33951
33952 2007-11-03  Bruno Haible  <bruno@clisp.org>
33953
33954         * modules/frexp-nolibm-tests: New file.
33955
33956         * modules/frexp-nolibm: New file.
33957         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
33958
33959 2007-11-03  Bruno Haible  <bruno@clisp.org>
33960
33961         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
33962         value is C99 compliant.
33963         Needed for OSF/1 5.1.
33964
33965 2007-11-03  Bruno Haible  <bruno@clisp.org>
33966
33967         Fix out-of-memory handling of vasnprintf.
33968         * lib/printf-parse.c: Include <errno.h>.
33969         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
33970         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
33971         is already set.
33972
33973 2007-11-02  Eric Blake  <ebb9@byu.net>
33974
33975         Fix tests on cygwin.
33976         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
33977
33978 2007-11-01  Bruno Haible  <bruno@clisp.org>
33979
33980         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
33981         warning.
33982         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
33983         needed for POSIX compatibility.
33984
33985 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33986
33987         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
33988         for compatibility with GNU.
33989
33990 2007-11-01  Bruno Haible  <bruno@clisp.org>
33991
33992         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
33993         (putenv): Renamed from rpl_putenv. Change argument type from
33994         'const char *' to 'char *'.
33995         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
33996         of defining putenv in config.h, just set REPLACE_PUTENV.
33997         * modules/putenv (Depends-on): Add stdlib.
33998         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33999         (Include): Use <stdlib.h>.
34000         * lib/stdlib.in.h (putenv): New declaration.
34001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34002         REPLACE_PUTENV.
34003         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34004         REPLACE_PUTENV.
34005         Needed for MacOS X 10.5.0.
34006         Reported by Peter O'Gorman <peter@pogma.com>.
34007
34008 2007-11-01  Jim Meyering  <meyering@redhat.com>
34009
34010         Treat an empty date string exactly like "0".
34011         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34012         if the remaining date string (to be parsed) is empty, use "0".
34013         Reported by Mischa Molhoek and discussed in this thread:
34014         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34015
34016 2007-10-31  Bruno Haible  <bruno@clisp.org>
34017
34018         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34019         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34020         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34021         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34022         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34023         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34024
34025 2007-10-31  Bruno Haible  <bruno@clisp.org>
34026
34027         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34028         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34029         (AC_TYPE_LONG_LONG_INT): Use it.
34030         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34031         it as well.
34032         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34033         to m4/longlong.m4.
34034         * modules/stdint (Files): Remove m4/ulonglong.m4.
34035         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34036         m4/ulonglong.m4.
34037         * modules/strtoumax (Files): Likewise.
34038
34039 2007-10-30  Bruno Haible  <bruno@clisp.org>
34040
34041         * modules/xvasprintf-posix: New file.
34042         Suggested by Eric Blake.
34043
34044 2007-10-30  Bruno Haible  <bruno@clisp.org>
34045
34046         * modules/xprintf-posix-tests: New file.
34047         * tests/test-xprintf-posix.sh: New file.
34048         * tests/test-xprintf-posix.c: New file.
34049         * tests/test-xfprintf-posix.c: New file.
34050
34051         * modules/xprintf-posix: New file.
34052
34053 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34054
34055         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34056         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34057         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34058
34059 2007-10-29  Bruno Haible  <bruno@clisp.org>
34060
34061         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34062         contain the special marker '_cv_'.
34063         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34064         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34065         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34066         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34067         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34068         Reported by Ralf Wildenhues.
34069
34070 2007-10-29  Bruno Haible  <bruno@clisp.org>
34071
34072         * gnulib-tool (func_import): When --lgpl is not specified, set
34073         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34074         GPLv3.
34075         Reported by Simon Josefsson.
34076
34077 2007-10-28  Bruno Haible  <bruno@clisp.org>
34078
34079         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34080         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34081         HAVE_DECL_ISFINITE.
34082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34083         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34084         HAVE_DECL_ISFINITE.
34085
34086 2007-10-28  Bruno Haible  <bruno@clisp.org>
34087
34088         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34089         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34090
34091 2007-10-28  Bruno Haible  <bruno@clisp.org>
34092
34093         Fix link errors with Sun C 5.0 on Solaris 10.
34094         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34095         function is declared but not present in the compiler's libm.
34096         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34097         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34098         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34099         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34100         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34101         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34102         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34104         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34105         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34106         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34107         HAVE_DECL_FLOORL.
34108
34109 2007-10-28  Bruno Haible  <bruno@clisp.org>
34110
34111         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34112         gl_FUNC_FLOORL. Cache the result.
34113         (gl_FUNC_FLOORL): Use it.
34114         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34115         gl_FUNC_CEILL. Cache the result.
34116         (gl_FUNC_CEILL): Use it.
34117
34118         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34119         gl_FUNC_FLOOR. Cache the result.
34120         (gl_FUNC_FLOOR): Use it.
34121         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34122         gl_FUNC_CEIL. Cache the result.
34123         (gl_FUNC_CEIL): Use it.
34124
34125         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34126         gl_FUNC_FLOORF. Cache the result.
34127         (gl_FUNC_FLOORF): Use it.
34128         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34129         gl_FUNC_CEILF. Cache the result.
34130         (gl_FUNC_CEILF): Use it.
34131
34132 2007-10-28  Bruno Haible  <bruno@clisp.org>
34133
34134         * gnulib-tool: Allow specifying the LGPL version number through
34135         --lgpl=2 or --lgpl=3.
34136         (func_usage): Document --lgpl with argument.
34137         Handle --lgpl=... arguments.
34138         (func_import): Recognize also gl_LGPL calls with an argument. When
34139         --lgpl=2 is used and the module's license is just LGPL, report an
34140         error. Set sed_transform_lib_file according to the lgpl variable. In
34141         the generated files, use --lgpl or gl_LGPL invocations with argument,
34142         if necessary.
34143         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34144         an LGPv2+ license.
34145         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34146         gl_LGPL macro.
34147
34148 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34149             Bruno Haible  <bruno@clisp.org>
34150
34151         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34152         (u16_uctomb_aux): Likewise.
34153         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34154         !HAVE_INLINE.
34155         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34156
34157 2007-10-28  Bruno Haible  <bruno@clisp.org>
34158
34159         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34160         Invoke AM_GETTEXT_OPTION if it exists.
34161         * modules/vasprintf: Likewise.
34162         * modules/verror: Likewise.
34163         * modules/xprintf: Likewise.
34164         * modules/xvasprintf: Likewise.
34165
34166 2007-10-27  Ben Pfaff  <blp@gnu.org>
34167
34168         * lib/math.in.h: Define isfinite macro and prototypes for
34169         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34170         implementations.
34171         * m4/math_h.m4: New substitutions for isfinite module.
34172         * lib/isfinite.c: New file.
34173         * m4/isfinite.m4: New file.
34174         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34175         * modules/isfinite: New file.
34176         * modules/isfinite-tests: New file.
34177         * tests/tests-isfinite.c: New file.
34178         * doc/functions/isfinite.texi: Mention isfinite module.
34179         * MODULES.html.sh: Mention new module.
34180
34181 2007-10-27  Ben Pfaff  <blp@gnu.org>
34182
34183         Ralf Wildenhues reported that Tru64 4.0D declares the round
34184         functions but does not have definitions.
34185         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34186         cannot be found in any library, set the output variable to
34187         "missing" instead of "".
34188         * m4/round.m4: Also use our substitute if we cannot find round in
34189         any library, even if it is declared.
34190         * m4/roundf.m4: Likewise for roundf.
34191         * m4/roundl.m4: Likewise for roundl.
34192         * lib/math.in.h: Undefine roundf, round, roundl before defining
34193         their replacements, to allow for hypothetical systems where these
34194         may be defined as macros but not available in libraries.
34195
34196 2007-10-27  Bruno Haible  <bruno@clisp.org>
34197
34198         * doc/gnulib.texi: Invoke @firstparagraphindent.
34199         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34200         changes in gnulib.
34201         (Source changes): New section.
34202
34203 2007-10-26  Bruno Haible  <bruno@clisp.org>
34204
34205         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34206         borrowed from autoconf.
34207
34208 2007-10-26  Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34211         strerror returned the empty string. Needed on HP-UX 11.00.
34212
34213 2007-10-24  Micah Cowan  <micah@cowan.name>
34214
34215         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34216         * build-aux/bootstrap: Remove support for now-unnecessary option,
34217         --cvs-user, and envvars CVS_USER, CVS_RSH.
34218
34219 2007-10-24  Jim Meyering  <meyering@redhat.com>
34220
34221         Avoid diagnostics from sha1sum when there is no cached checksum.
34222         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34223         if the po.s1 file hasn't been created yet.
34224
34225         * build-aux/bootstrap: Sync from coreutils:
34226         2007-10-24  Jim Meyering  <meyering@redhat.com>
34227         Get gnulib from the git repository, not from an obsolete cvs one.
34228         * build-aux/bootstrap: Suggestion from Micah Cowan.
34229         2007-10-04  Jim Meyering  <jim@meyering.net>
34230         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34231         (update_po_files): Work also when there are no .po files in po/.
34232
34233 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34234
34235         * README: Append ".git" to git and cg examples.
34236         Problem reported by Benoit Sigoure.
34237
34238 2007-10-23  Micah Cowan  <micah@cowan.name>
34239
34240         * users.txt: Add wget.
34241
34242 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34243
34244         Fix linking of some unistdio tests on FreeBSD.
34245         * modules/unistdio/u16-vsnprintf-tests
34246         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34247         * modules/unistdio/u16-vsprintf-tests
34248         (test_u16_vsnprintf1_LDADD): Likewise.
34249         * modules/unistdio/u32-vsnprintf-tests
34250         (test_u32_vsnprintf1_LDADD): Likewise.
34251         * modules/unistdio/u32-vsprintf-tests
34252         (test_u32_vsprintf1_LDADD): Likewise.
34253         * modules/unistdio/u8-vsnprintf-tests
34254         (test_u8_vsnprintf1_LDADD): Likewise.
34255         * modules/unistdio/u8-vsprintf-tests
34256         (test_u8_vsprintf1_LDADD): Likewise.
34257         * modules/unistdio/ulc-vsnprintf-tests
34258         (test_ulc_vsnprintf1_LDADD): Likewise.
34259         * modules/unistdio/ulc-vsprintf-tests
34260         (test_ulc_vsprintf1_LDADD): Likewise.
34261
34262         Fix linking of some uniconv tests on FreeBSD.
34263         * modules/uniconv/u16-conv-from-enc-tests
34264         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34265         * modules/uniconv/u16-conv-to-enc-tests
34266         (test_u16_conv_to_enc_LDADD): Likewise.
34267         * modules/uniconv/u16-strconv-from-enc-tests
34268         (test_u16_strconv_from_enc_LDADD): Likewise.
34269         * modules/uniconv/u16-strconv-to-enc-tests
34270         (test_u16_strconv_to_enc_LDADD): Likewise.
34271         * modules/uniconv/u32-conv-from-enc-tests
34272         (test_u32_conv_from_enc_LDADD): Likewise.
34273         * modules/uniconv/u32-conv-to-enc-tests
34274         (test_u32_conv_to_enc_LDADD): Likewise.
34275         * modules/uniconv/u32-strconv-from-enc-tests
34276         (test_u32_strconv_from_enc_LDADD): Likewise.
34277         * modules/uniconv/u32-strconv-to-enc-tests
34278         (test_u32_strconv_to_enc_LDADD): Likewise.
34279         * modules/uniconv/u8-conv-from-enc-tests
34280         (test_u8_conv_from_enc_LDADD): Likewise.
34281         * modules/uniconv/u8-conv-to-enc-tests
34282         (test_u8_conv_to_enc_LDADD): Likewise.
34283         * modules/uniconv/u8-strconv-from-enc-tests
34284         (test_u8_strconv_from_enc_LDADD): Likewise.
34285         * modules/uniconv/u8-strconv-to-enc-tests
34286         (test_u8_strconv_to_enc_LDADD): Likewise.
34287
34288 2007-10-22  Bruno Haible  <bruno@clisp.org>
34289
34290         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34291         size.
34292
34293 2007-10-22  Eric Blake  <ebb9@byu.net>
34294
34295         Tweak x*printf documentation.
34296         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34297         variable name and comments.
34298         Suggested by Bruno Haible.
34299
34300 2007-10-22  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/acl.c (copy_acl): Fix file name in comment.
34303
34304 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34305
34306         Fix Tru64 problem with stdbool.h.
34307         * lib/stdbool.in.h (false, true):
34308         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34309         Don't declare as an enum in this situation; it runs afoul of Tru64.
34310         Problem reported by Steven M. Schweda in
34311         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34312
34313 2007-10-22  Eric Blake  <ebb9@byu.net>
34314
34315         Also wrap vf?printf.
34316         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34317         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34318         (xvprintf, xvfprintf): New functions.
34319
34320 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34321
34322         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34323         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34324
34325         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34326         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34327
34328 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34329
34330         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34331         by Bruno Haible.
34332
34333 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34334
34335         * lib/getloadavg.c
34336         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34337         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34338
34339         * tests/test-i-ring.c: Work for C89.
34340
34341 2007-10-22  Bruno Haible  <bruno@clisp.org>
34342
34343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34344         -1u, in preprocessor expression, so that we don't test for the bug
34345         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34347
34348 2007-10-22  Eric Blake  <ebb9@byu.net>
34349
34350         * tests/test-yesno.sh: Silence stderr during test.
34351
34352 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34353
34354         * modules/crypto/gc-camellia: New file.
34355
34356         * m4/gc-camellia.m4: New file.
34357
34358         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34359
34360         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34361
34362 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34363
34364         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
34365         --help to stdout.  Reported by sms@antinode.org (Steven
34366         M. Schweda).
34367
34368 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34369
34370         * users.txt: Fix link to libksba.
34371
34372 2007-10-21  Ben Pfaff  <blp@gnu.org>
34373
34374         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
34375         round.c roundf implementation that depends on floorf and ceilf to
34376         be tested unconditionally.
34377
34378 2007-10-21  Ben Pfaff  <blp@gnu.org>
34379
34380         * m4/check-libm-func.m4: Removed.
34381         * m4/check-math-lib.m4: New file.
34382         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
34383         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
34384         definition and lack of AC_LIBOBJ([roundf]).
34385         * m4/roundl.m4: Ditto, and similarly for roundl.
34386         * modules/round: Reference new m4 file.
34387         * modules/roundf: Ditto.
34388         * modules/roundl: Ditto.
34389         * tests/test-round2.c (main): Use ROUND instead of round.
34390         Bug report from Bruno Haible.
34391
34392 2007-10-21  Bruno Haible  <bruno@clisp.org>
34393
34394         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
34395         context.
34396
34397 2007-10-21  Bruno Haible  <bruno@clisp.org>
34398
34399         * tests/test-wcwidth.c (main): Allow negative result for some control
34400         characters.
34401
34402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
34403         Needed on OSF/1 5.1.
34404
34405 2007-10-21  Bruno Haible  <bruno@clisp.org>
34406
34407         * tests/test-floorf1.c: Include isnanf.h.
34408         (main): Use isnanf() instead of isnan().
34409         * tests/test-ceilf1.c: Include isnanf.h.
34410         (main): Use isnanf() instead of isnan().
34411         * tests/test-truncf1.c: Include isnanf.h.
34412         (main): Use isnanf() instead of isnan().
34413         * tests/test-roundf1.c: Include isnanf.h.
34414         (main): Use isnanf() instead of isnan().
34415
34416 2007-10-21  Eric Blake  <ebb9@byu.net>
34417
34418         * users.txt: Update URL for m4.
34419
34420 2007-10-21  Bruno Haible  <bruno@clisp.org>
34421
34422         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
34423
34424 2007-10-21  Bruno Haible  <bruno@clisp.org>
34425
34426         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
34427         Git's management files if the CVS files are not present.
34428
34429 2007-10-20  Bruno Haible  <bruno@clisp.org>
34430
34431         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
34432         gcc-3.4.x.
34433
34434 2007-10-20  Ben Pfaff  <blp@gnu.org>
34435
34436         * lib/math.in.h: Declare round, roundf, roundl if we are providing
34437         implementations.
34438         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
34439         * lib/round.c: New file.
34440         * lib/roundf.c: New file.
34441         * lib/roundl.c: New file.
34442         * m4/round.m4: New file.
34443         * m4/roundf.m4: New file.
34444         * m4/roundl.m4: New file.
34445         * m4/check-libm-func-m4: New file.
34446         * modules/math: Replace round, roundf, roundl related @VARS@ in
34447         math.in.h.
34448         * modules/round: New file.
34449         * modules/round-tests: New file.
34450         * modules/roundf: New file.
34451         * modules/roundf-tests: New file.
34452         * modules/roundl: New file.
34453         * modules/roundl-tests: New file.
34454         * tests/test-round1.c: New file.
34455         * tests/test-round2.c: New file.
34456         * tests/test-roundf1.c: New file.
34457         * tests/test-roundf2.c: New file.
34458         * tests/test-roundl.c: New file.
34459         * doc/functions/round.texi: Mention round module.
34460         * doc/functions/roundf.texi: Mention roundf module.
34461         * doc/functions/roundl.texi: Mention roundl module.
34462         * MODULES.html.sh: Mention new modules.
34463         Thanks to Bruno Haible for suggestions.
34464
34465 2007-10-20  Jim Meyering  <meyering@redhat.com>
34466
34467         * lib/xprintf.c: Include <config.h> unconditionally.
34468
34469         Change xprintf's license to GPL.
34470         * modules/xprintf (License): s/LGPL/GPL/, since this module
34471         depends on modules (exit and exitfail) which are GPL.
34472         Suggestion from Bruno Haible.
34473
34474         xprintf fixes.
34475         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
34476         Use a clearer diagnostic.
34477         Patch from Bruno Haible.
34478
34479 2007-10-20  Bruno Haible  <bruno@clisp.org>
34480
34481         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
34482         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
34483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34484
34485 2007-10-20  Bruno Haible  <bruno@clisp.org>
34486
34487         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
34488         precision in the comparison result > x - 1 or similar.
34489         * tests/test-ceilf2.c (correct_result_p): Likewise.
34490         * tests/test-truncf2.c (correct_result_p): Likewise.
34491         * tests/test-trunc2.c (correct_result_p): Likewise.
34492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34493
34494 2007-10-20  Bruno Haible  <bruno@clisp.org>
34495
34496         * modules/ceil: New file.
34497         * m4/ceil.m4: New file.
34498         * doc/functions/ceil.texi: Mention the 'ceil' module.
34499
34500 2007-10-20  Bruno Haible  <bruno@clisp.org>
34501
34502         * modules/floor: New file.
34503         * m4/floor.m4: New file.
34504         * doc/functions/floor.texi: Mention the 'floor' module.
34505
34506 2007-10-20  Bruno Haible  <bruno@clisp.org>
34507
34508         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
34509         of %a.
34510         * modules/floorf-tests (Depends-on): Likewise.
34511         * modules/truncf-tests (Depends-on): Likewise.
34512         * modules/trunc-tests (Depends-on): Likewise.
34513         Reported by Ben Pfaff.
34514
34515 2007-10-19  Jim Meyering  <meyering@redhat.com>
34516
34517         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
34518         Don't bother testing specific errno values.  Just test ferror.
34519
34520         New module: xprintf
34521         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
34522
34523 2007-10-19  Bruno Haible  <bruno@clisp.org>
34524
34525         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
34526         syntax.
34527         * modules/javaexec (Makefile.am): Likewise.
34528         * modules/relocatable-prog (Makefile.am): Likewise.
34529         Suggested by Jim Meyering.
34530
34531 2007-10-18  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
34534         Reported by Jim Meyering.
34535
34536 2007-10-18  Eric Blake  <ebb9@byu.net>
34537
34538         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
34539
34540 2007-10-18  Bruno Haible  <bruno@clisp.org>
34541
34542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
34543         the format string into writable memory. Needed in Fortify conditions.
34544
34545 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
34546             Bruno Haible  <bruno@clisp.org>
34547
34548         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
34549         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
34550         * modules/trim (Depends-on): Add mbchar.
34551         (configure.ac): Add gl_FUNC_MBRTOWC.
34552         (Makefile.am): Augment lib_SOURCES.
34553
34554 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34555
34556         Modify glob.c to use fstatat and dirfd, to simplify it.
34557         Suggested by Eric Blake.
34558         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
34559         Don't include <stdbool.h>; not used.
34560         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
34561         (link_exists_p): Simplify implementation, since we can now assume
34562         dirfd and fstatat.
34563         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
34564
34565 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34566
34567         * gnulib-tool (func_get_dependencies): Fix sed script to
34568         match only tests.
34569
34570 2007-10-17  Bruno Haible  <bruno@clisp.org>
34571
34572         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
34573         allow locale names without encoding suffix.
34574         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34575         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34576
34577 2007-10-16  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
34580         * lib/getgroups.c (getgroups): Likewise.
34581         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
34582
34583 2007-10-16  Bruno Haible  <bruno@clisp.org>
34584
34585         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
34586         * modules/malloc-posix (License): Likewise.
34587         * modules/realloc-posix (License): Likewise.
34588         * modules/calloc-posix (License): Likewise.
34589         * modules/intprops (License): Change from GPL to LGPL, with
34590         Paul Eggert's approval.
34591
34592 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34593
34594         Merge glibc changes into lib/glob.c.
34595
34596         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
34597         2007-10-15 04:59:03 UTC.  Here are the changes:
34598
34599         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
34600
34601         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
34602
34603         * lib/glob.c: Add some branch prediction throughout.
34604
34605         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
34606
34607         [BZ #5103]
34608         * lib/glob.c (glob): Recognize patterns starting \/.
34609
34610         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
34611
34612         [BZ #3996]
34613         * lib/glob.c (attribute_hidden): Define if not defined.
34614         (glob): Unescape dirname, filename or username when needed and not
34615         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
34616         is NULL.  Handle unescaped [ in pattern without closing ].
34617         Don't pass GLOB_CHECK down to recursive glob for directories.
34618         (__glob_pattern_type): New function.
34619         (__glob_pattern_p): Implement using __glob_pattern_type.
34620         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
34621         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
34622         Remove unreachable code.
34623
34624         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
34625
34626         * lib/glob.c (glob_in_dir): Add some comments and asserts to
34627         explain why there are no leaks.
34628
34629         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
34630
34631         [BZ #3253]
34632         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
34633         time, rather allocate increasingly bigger arrays of pointers, if
34634         possible with alloca, if too large with malloc.
34635
34636 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34637
34638         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
34639         Problem reported by H.Merijn Brand in
34640         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
34641         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
34642         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34643
34644 2007-10-15  Bruno Haible  <bruno@clisp.org>
34645
34646         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
34647         with explicit rpl_ prefix.
34648         * lib/fopen.c (fopen): Likewise.
34649         * lib/freopen.c (freopen): Likewise.
34650         * lib/iconv.c (iconv): Likewise.
34651         * lib/iconv_close.c (iconv_close): Likewise.
34652
34653 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34654
34655         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
34656
34657 2007-10-15  Bruno Haible  <bruno@clisp.org>
34658
34659         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
34660         <stddef.h> instead of <stdlib.h> since we only need NULL.
34661         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34662
34663 2007-10-15  Bruno Haible  <bruno@clisp.org>
34664
34665         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
34666         Replace paragraph talking about LIBOBJS.
34667         Reported by Colin Watson <cjwatson@debian.org>.
34668
34669 2007-10-15  Bruno Haible  <bruno@clisp.org>
34670
34671         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
34672         <stdlib.h> before using NULL.
34673
34674 2007-10-15  Simon Josefsson  <simon@josefsson.org>
34675
34676         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
34677         Reported by Albert Chin <china@thewrittenword.com>.
34678
34679 2007-10-14  Bruno Haible  <bruno@clisp.org>
34680
34681         * modules/iconv_open-utf-tests: New file.
34682         * tests/test-iconv-utf.c: New file.
34683
34684         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
34685         * modules/iconv_open-utf: New file.
34686         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
34687         (iconv, iconv_close): New declarations.
34688         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
34689         be defined.
34690         (iconv_open): Add special handling of conversion between UTF-8 and
34691         UTF-{16,32}{BE,LE}.
34692         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
34693         * lib/iconv_close.c: New file.
34694         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
34695         gl_FUNC_ICONV_OPEN.
34696         (gl_FUNC_ICONV_OPEN): Use it.
34697         (gl_FUNC_ICONV_OPEN_UTF): New macro.
34698         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
34699         and REPLACE_ICONV_UTF.
34700         * modules/iconv_open (Depends-on): Add c-strcase.
34701         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
34702         ICONV_CONST.
34703         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
34704
34705 2007-10-13  Albert Chin  <china@thewrittenword.com>
34706             Bruno Haible  <bruno@clisp.org>
34707
34708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
34709         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
34710
34711 2007-10-13  Bruno Haible  <bruno@clisp.org>
34712
34713         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
34714         defined, use the ISO C99 inline semantics.
34715         * lib/argp.h (ARGP_EI): Likewise.
34716
34717 2007-10-13  Bruno Haible  <bruno@clisp.org>
34718
34719         Handle 'inline' change in gcc 4.3.0.
34720         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
34721         argp_fmtstream_write, argp_fmtstream_set_lmargin,
34722         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
34723         argp_fmtstream_point): Disable 'extern' declaration if the function
34724         definition is going to be provided inline.
34725         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
34726         semantics, not the ISO C99 inline semantics.
34727         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
34728         'extern' declaration if the function definition is going to be provided
34729         inline.
34730         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
34731         the GNU C inline semantics, not the ISO C99 inline semantics. With
34732         GCC 4.2, avoid a warning.
34733
34734 2007-10-13  Bruno Haible  <bruno@clisp.org>
34735
34736         * lib/freading.h (freading): Enable the use of __freading for
34737         glibc >= 2.7.
34738         * lib/freading.c (freading): Likewise.
34739
34740 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34741
34742         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
34743         "warning: C99 inline functions are not supported; using GNU89".
34744
34745 2007-10-12  Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
34748         of 2.
34749         * tests/test-ceilf2.c: New file.
34750         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
34751
34752         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
34753         * modules/ceilf-tests: Update.
34754
34755 2007-10-12  Bruno Haible  <bruno@clisp.org>
34756
34757         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
34758         of 2.
34759         * tests/test-floorf2.c: New file.
34760         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
34761
34762         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
34763         * modules/floorf-tests: Update.
34764
34765 2007-10-12  Bruno Haible  <bruno@clisp.org>
34766
34767         * tests/test-trunc2.c: New file.
34768         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
34769
34770         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
34771         * modules/trunc-tests: Update.
34772
34773 2007-10-12  Bruno Haible  <bruno@clisp.org>
34774
34775         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
34776         of 2.
34777         * tests/test-truncf2.c: New file.
34778         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
34779
34780         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
34781         * modules/truncf-tests: Update.
34782
34783 2007-10-11  Eric Blake  <ebb9@byu.net>
34784
34785         Don't claim strerror is broken on Interix.
34786         * doc/functions/strerror.texi (strerror): Known broken systems are
34787         now Solaris 8, and not Interix.
34788         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
34789         Interix on cross-compile.
34790         Reported by Martin Koeppe in
34791         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
34792
34793 2007-10-11  Bruno Haible  <bruno@clisp.org>
34794
34795         * modules/i-ring-tests: New file.
34796         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
34797         instead of assert.
34798
34799 2007-10-11  Bruno Haible  <bruno@clisp.org>
34800
34801         * modules/filenamecat-tests: New file.
34802         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
34803         * lib/filenamecat.c: Remove test code.
34804
34805 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
34806
34807         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
34808
34809         * lib/strerror.c: Include <string.h> always, to test interface,
34810         and to remove the need for the dummy.
34811         Include intprops.h to compute width instead of doing it ourselves
34812         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
34813         (strerror): Define it to return NULL if there's no system strerror.
34814         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
34815         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
34816         ancient pre-strerror Unix systems well any more.  Saying "unknown
34817         system error" is enough.
34818         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
34819         simpler strerror.c implementation.
34820         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
34821         Simplify the tests to reflect the simpler strerror implementation.
34822         * modules/strerror (Depends-on): Add intprops.
34823
34824 2007-10-09  Eric Blake  <ebb9@byu.net>
34825
34826         Silence test-fpending.
34827         * modules/fpending-tests (Files): Add wrapper script.
34828         * tests/test-fpending.sh: New file.
34829
34830 2007-10-09  Bruno Haible  <bruno@clisp.org>
34831
34832         * MODULES.html.sh (func_module): Don't create a hyperlink for
34833         function names like 'printf_frexp'.
34834         (Misc): Add crc, memxor.
34835         (Characteristics of floating types): New section.
34836         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
34837         isnanf-nolibm, signbit, trunc, truncf, truncl.
34838         (Enhancements for ISO C 99 functions): New subsection Input/output.
34839         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
34840         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
34841         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
34842         (Compatibility checks for POSIX:2001 functions): Add clock-time.
34843         (Enhancements for POSIX:2001 functions): Add chdir-long.
34844         (File system functions): Add areadlink, chdir-safer, read-file.
34845         Remove cycle-check.
34846         (File system as inode set): New section.
34847         (Date and time): Add gethrxtime.
34848         (Multithreading): Add openmp.
34849         (Internationalization functions): Add localename.
34850         (Unicode string functions): Add unistr/u*-mbsnlen.
34851         (Support for maintaining and releasing projects): Add git-version-gen.
34852         (Lone files): Remove directories.
34853
34854 2007-10-08  Ben Pfaff  <blp@gnu.org>
34855
34856         * lib/xmalloca.h: Fix typo in comment.
34857
34858 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34859
34860         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
34861         when avoiding problems with integer overflow.  Use a portable test
34862         instead.
34863
34864 2007-10-08  Simon Josefsson  <simon@josefsson.org>
34865
34866         * modules/dummy (License): Change to LGPLv2+.
34867         * modules/float (License): Likewise
34868         * modules/realloc (License): Likewise
34869         * modules/stdlib (License): Likewise
34870
34871 2007-10-07  Bruno Haible  <bruno@clisp.org>
34872
34873         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
34874         * floor.c (TWO_MANT_DIG): Likewise.
34875         * ceil.c (TWO_MANT_DIG): Likewise.
34876         Reported by Ben Pfaff.
34877
34878 2007-10-07  Bruno Haible  <bruno@clisp.org>
34879
34880         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
34881         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
34882         * lib/frexp.c (FUNC): Likewise.
34883         * lib/printf-frexp.h (printf_frexp): Likewise.
34884         * lib/printf-frexpl.h (printf_frexpl): Likewise.
34885         * lib/printf-frexp.c (FUNC): Likewise.
34886         Suggested by Jim Meyering.
34887
34888 2007-10-07  Jim Meyering  <meyering@redhat.com>
34889
34890         Make xnanosleep's integer overflow test more robust.
34891         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
34892         so that gcc-4.3.0 doesn't optimize away this test for overflow.
34893
34894 2007-10-07  Bruno Haible  <bruno@clisp.org>
34895
34896         * NEWS: Mention the license change.
34897
34898         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
34899         abbreviations in the modules files.
34900
34901         Change copyright notice from GPLv2+ to GPLv3+.
34902         * README: Change copyright notice.
34903         * MODULES.html.sh: Likewise.
34904         * build-aux/bootstrap.conf: Likewise.
34905         * build-aux/config.libpath: Likewise.
34906         * build-aux/csharpcomp.sh.in: Likewise.
34907         * build-aux/csharpexec.sh.in: Likewise.
34908         * build-aux/install-reloc: Likewise.
34909         * build-aux/javacomp.sh.in: Likewise.
34910         * build-aux/javaexec.sh.in: Likewise.
34911         * build-aux/ldd.sh.in: Likewise.
34912         * build-aux/reloc-ldflags: Likewise.
34913         * build-aux/relocatable.sh.in: Likewise.
34914         * build-aux/x-to-1.in: Likewise.
34915         * check-module: Likewise.
34916         * config/srclistvars.sh: Likewise.
34917         * gnulib-tool: Likewise.
34918         * lib/acl-internal.h: Likewise.
34919         * lib/acl.c: Likewise.
34920         * lib/acl.h: Likewise.
34921         * lib/acl_entries.c: Likewise.
34922         * lib/areadlink-with-size.c: Likewise.
34923         * lib/areadlink.c: Likewise.
34924         * lib/areadlink.h: Likewise.
34925         * lib/argmatch.c: Likewise.
34926         * lib/argmatch.h: Likewise.
34927         * lib/argp-ba.c: Likewise.
34928         * lib/argp-eexst.c: Likewise.
34929         * lib/argp-fmtstream.c: Likewise.
34930         * lib/argp-fmtstream.h: Likewise.
34931         * lib/argp-fs-xinl.c: Likewise.
34932         * lib/argp-help.c: Likewise.
34933         * lib/argp-namefrob.h: Likewise.
34934         * lib/argp-parse.c: Likewise.
34935         * lib/argp-pin.c: Likewise.
34936         * lib/argp-pv.c: Likewise.
34937         * lib/argp-pvh.c: Likewise.
34938         * lib/argp-xinl.c: Likewise.
34939         * lib/argp.h: Likewise.
34940         * lib/at-func.c: Likewise.
34941         * lib/atanl.c: Likewise.
34942         * lib/backupfile.c: Likewise.
34943         * lib/backupfile.h: Likewise.
34944         * lib/basename.c: Likewise.
34945         * lib/binary-io.h: Likewise.
34946         * lib/byteswap.in.h: Likewise.
34947         * lib/c-stack.c: Likewise.
34948         * lib/c-stack.h: Likewise.
34949         * lib/c-strcasestr.c: Likewise.
34950         * lib/c-strcasestr.h: Likewise.
34951         * lib/c-strstr.c: Likewise.
34952         * lib/c-strstr.h: Likewise.
34953         * lib/c-strtod.c: Likewise.
34954         * lib/calloc.c: Likewise.
34955         * lib/canon-host.c: Likewise.
34956         * lib/canon-host.h: Likewise.
34957         * lib/canonicalize-lgpl.c: Likewise.
34958         * lib/canonicalize.c: Likewise.
34959         * lib/canonicalize.h: Likewise.
34960         * lib/ceil.c: Likewise.
34961         * lib/ceilf.c: Likewise.
34962         * lib/ceill.c: Likewise.
34963         * lib/chdir-long.c: Likewise.
34964         * lib/chdir-long.h: Likewise.
34965         * lib/chdir-safer.c: Likewise.
34966         * lib/chdir-safer.h: Likewise.
34967         * lib/chown.c: Likewise.
34968         * lib/classpath.c: Likewise.
34969         * lib/classpath.h: Likewise.
34970         * lib/clean-temp.c: Likewise.
34971         * lib/clean-temp.h: Likewise.
34972         * lib/cloexec.c: Likewise.
34973         * lib/close-stream.c: Likewise.
34974         * lib/closein.c: Likewise.
34975         * lib/closein.h: Likewise.
34976         * lib/closeout.c: Likewise.
34977         * lib/closeout.h: Likewise.
34978         * lib/concat-filename.c: Likewise.
34979         * lib/copy-file.c: Likewise.
34980         * lib/copy-file.h: Likewise.
34981         * lib/count-one-bits.h: Likewise.
34982         * lib/crc.c: Likewise.
34983         * lib/crc.h: Likewise.
34984         * lib/creat-safer.c: Likewise.
34985         * lib/csharpcomp.c: Likewise.
34986         * lib/csharpcomp.h: Likewise.
34987         * lib/csharpexec.c: Likewise.
34988         * lib/csharpexec.h: Likewise.
34989         * lib/cycle-check.c: Likewise.
34990         * lib/cycle-check.h: Likewise.
34991         * lib/diacrit.c: Likewise.
34992         * lib/diacrit.h: Likewise.
34993         * lib/diffseq.h: Likewise.
34994         * lib/dirchownmod.c: Likewise.
34995         * lib/dirent.in.h: Likewise.
34996         * lib/dirfd.c: Likewise.
34997         * lib/dirfd.h: Likewise.
34998         * lib/dirname.c: Likewise.
34999         * lib/dirname.h: Likewise.
35000         * lib/dummy.c: Likewise.
35001         * lib/dup-safer.c: Likewise.
35002         * lib/dup2.c: Likewise.
35003         * lib/eealloc.h: Likewise.
35004         * lib/error.c: Likewise.
35005         * lib/error.h: Likewise.
35006         * lib/euidaccess.c: Likewise.
35007         * lib/exclude.c: Likewise.
35008         * lib/exclude.h: Likewise.
35009         * lib/execute.c: Likewise.
35010         * lib/execute.h: Likewise.
35011         * lib/exitfail.c: Likewise.
35012         * lib/exitfail.h: Likewise.
35013         * lib/expl.c: Likewise.
35014         * lib/fatal-signal.c: Likewise.
35015         * lib/fatal-signal.h: Likewise.
35016         * lib/fbufmode.c: Likewise.
35017         * lib/fbufmode.h: Likewise.
35018         * lib/fchdir.c: Likewise.
35019         * lib/fchmodat.c: Likewise.
35020         * lib/fchownat.c: Likewise.
35021         * lib/fcntl--.h: Likewise.
35022         * lib/fcntl-safer.h: Likewise.
35023         * lib/fcntl.in.h: Likewise.
35024         * lib/fd-safer.c: Likewise.
35025         * lib/fflush.c: Likewise.
35026         * lib/file-has-acl.c: Likewise.
35027         * lib/file-set.c: Likewise.
35028         * lib/file-type.c: Likewise.
35029         * lib/file-type.h: Likewise.
35030         * lib/fileblocks.c: Likewise.
35031         * lib/filemode.c: Likewise.
35032         * lib/filemode.h: Likewise.
35033         * lib/filename.h: Likewise.
35034         * lib/filenamecat.c: Likewise.
35035         * lib/filenamecat.h: Likewise.
35036         * lib/findprog.c: Likewise.
35037         * lib/findprog.h: Likewise.
35038         * lib/float.in.h: Likewise.
35039         * lib/floor.c: Likewise.
35040         * lib/floorf.c: Likewise.
35041         * lib/floorl.c: Likewise.
35042         * lib/fopen-safer.c: Likewise.
35043         * lib/fopen.c: Likewise.
35044         * lib/fpending.c: Likewise.
35045         * lib/fpending.h: Likewise.
35046         * lib/fprintf.c: Likewise.
35047         * lib/fprintftime.h: Likewise.
35048         * lib/fpucw.h: Likewise.
35049         * lib/fpurge.c: Likewise.
35050         * lib/fpurge.h: Likewise.
35051         * lib/freadable.c: Likewise.
35052         * lib/freadable.h: Likewise.
35053         * lib/freadahead.c: Likewise.
35054         * lib/freadahead.h: Likewise.
35055         * lib/freading.c: Likewise.
35056         * lib/freading.h: Likewise.
35057         * lib/free.c: Likewise.
35058         * lib/freopen.c: Likewise.
35059         * lib/frexp.c: Likewise.
35060         * lib/frexpl.c: Likewise.
35061         * lib/fseek.c: Likewise.
35062         * lib/fseterr.c: Likewise.
35063         * lib/fseterr.h: Likewise.
35064         * lib/fstatat.c: Likewise.
35065         * lib/fstrcmp.c: Likewise.
35066         * lib/fstrcmp.h: Likewise.
35067         * lib/fsusage.c: Likewise.
35068         * lib/fsusage.h: Likewise.
35069         * lib/ftell.c: Likewise.
35070         * lib/ftello.c: Likewise.
35071         * lib/fts-cycle.c: Likewise.
35072         * lib/fts.c: Likewise.
35073         * lib/fts_.h: Likewise.
35074         * lib/full-read.c: Likewise.
35075         * lib/full-read.h: Likewise.
35076         * lib/full-write.c: Likewise.
35077         * lib/full-write.h: Likewise.
35078         * lib/fwritable.c: Likewise.
35079         * lib/fwritable.h: Likewise.
35080         * lib/fwriteerror.c: Likewise.
35081         * lib/fwriteerror.h: Likewise.
35082         * lib/fwriting.c: Likewise.
35083         * lib/fwriting.h: Likewise.
35084         * lib/gcd.c: Likewise.
35085         * lib/gcd.h: Likewise.
35086         * lib/getcwd.c: Likewise.
35087         * lib/getdate.h: Likewise.
35088         * lib/getdate.y: Likewise.
35089         * lib/getdomainname.c: Likewise.
35090         * lib/getdomainname.h: Likewise.
35091         * lib/getgroups.c: Likewise.
35092         * lib/gethostname.c: Likewise.
35093         * lib/gethrxtime.c: Likewise.
35094         * lib/gethrxtime.h: Likewise.
35095         * lib/getloadavg.c: Likewise.
35096         * lib/getndelim2.c: Likewise.
35097         * lib/getndelim2.h: Likewise.
35098         * lib/getnline.c: Likewise.
35099         * lib/getnline.h: Likewise.
35100         * lib/getopt.c: Likewise.
35101         * lib/getopt.in.h: Likewise.
35102         * lib/getopt1.c: Likewise.
35103         * lib/getopt_int.h: Likewise.
35104         * lib/getpagesize.h: Likewise.
35105         * lib/getsubopt.c: Likewise.
35106         * lib/gettime.c: Likewise.
35107         * lib/getugroups.c: Likewise.
35108         * lib/getugroups.h: Likewise.
35109         * lib/getusershell.c: Likewise.
35110         * lib/gl_anyavltree_list1.h: Likewise.
35111         * lib/gl_anyavltree_list2.h: Likewise.
35112         * lib/gl_anyhash_list1.h: Likewise.
35113         * lib/gl_anyhash_list2.h: Likewise.
35114         * lib/gl_anylinked_list1.h: Likewise.
35115         * lib/gl_anylinked_list2.h: Likewise.
35116         * lib/gl_anyrbtree_list1.h: Likewise.
35117         * lib/gl_anyrbtree_list2.h: Likewise.
35118         * lib/gl_anytree_list1.h: Likewise.
35119         * lib/gl_anytree_list2.h: Likewise.
35120         * lib/gl_anytree_oset.h: Likewise.
35121         * lib/gl_anytreehash_list1.h: Likewise.
35122         * lib/gl_anytreehash_list2.h: Likewise.
35123         * lib/gl_array_list.c: Likewise.
35124         * lib/gl_array_list.h: Likewise.
35125         * lib/gl_array_oset.c: Likewise.
35126         * lib/gl_array_oset.h: Likewise.
35127         * lib/gl_avltree_list.c: Likewise.
35128         * lib/gl_avltree_list.h: Likewise.
35129         * lib/gl_avltree_oset.c: Likewise.
35130         * lib/gl_avltree_oset.h: Likewise.
35131         * lib/gl_avltreehash_list.c: Likewise.
35132         * lib/gl_avltreehash_list.h: Likewise.
35133         * lib/gl_carray_list.c: Likewise.
35134         * lib/gl_carray_list.h: Likewise.
35135         * lib/gl_linked_list.c: Likewise.
35136         * lib/gl_linked_list.h: Likewise.
35137         * lib/gl_linkedhash_list.c: Likewise.
35138         * lib/gl_linkedhash_list.h: Likewise.
35139         * lib/gl_list.c: Likewise.
35140         * lib/gl_list.h: Likewise.
35141         * lib/gl_oset.c: Likewise.
35142         * lib/gl_oset.h: Likewise.
35143         * lib/gl_rbtree_list.c: Likewise.
35144         * lib/gl_rbtree_list.h: Likewise.
35145         * lib/gl_rbtree_oset.c: Likewise.
35146         * lib/gl_rbtree_oset.h: Likewise.
35147         * lib/gl_rbtreehash_list.c: Likewise.
35148         * lib/gl_rbtreehash_list.h: Likewise.
35149         * lib/gl_sublist.c: Likewise.
35150         * lib/gl_sublist.h: Likewise.
35151         * lib/group-member.c: Likewise.
35152         * lib/group-member.h: Likewise.
35153         * lib/hard-locale.c: Likewise.
35154         * lib/hard-locale.h: Likewise.
35155         * lib/hash-pjw.c: Likewise.
35156         * lib/hash-pjw.h: Likewise.
35157         * lib/hash-triple.c: Likewise.
35158         * lib/hash.c: Likewise.
35159         * lib/hash.h: Likewise.
35160         * lib/human.c: Likewise.
35161         * lib/human.h: Likewise.
35162         * lib/i-ring.c: Likewise.
35163         * lib/i-ring.h: Likewise.
35164         * lib/idcache.c: Likewise.
35165         * lib/imaxabs.c: Likewise.
35166         * lib/imaxdiv.c: Likewise.
35167         * lib/inet_pton.c: Likewise.
35168         * lib/inet_pton.h: Likewise.
35169         * lib/intprops.h: Likewise.
35170         * lib/inttostr.c: Likewise.
35171         * lib/inttostr.h: Likewise.
35172         * lib/inttypes.in.h: Likewise.
35173         * lib/isapipe.c: Likewise.
35174         * lib/isdir.c: Likewise.
35175         * lib/isnan.c: Likewise.
35176         * lib/isnan.h: Likewise.
35177         * lib/isnanf.c: Likewise.
35178         * lib/isnanf.h: Likewise.
35179         * lib/isnanl-nolibm.h: Likewise.
35180         * lib/isnanl.c: Likewise.
35181         * lib/isnanl.h: Likewise.
35182         * lib/javacomp.c: Likewise.
35183         * lib/javacomp.h: Likewise.
35184         * lib/javaexec.c: Likewise.
35185         * lib/javaexec.h: Likewise.
35186         * lib/javaversion.c: Likewise.
35187         * lib/javaversion.h: Likewise.
35188         * lib/javaversion.java: Likewise.
35189         * lib/lbrkprop.h: Likewise.
35190         * lib/lchmod.h: Likewise.
35191         * lib/lchown.c: Likewise.
35192         * lib/ldexpl.c: Likewise.
35193         * lib/linebreak.c: Likewise.
35194         * lib/linebreak.h: Likewise.
35195         * lib/linebuffer.c: Likewise.
35196         * lib/linebuffer.h: Likewise.
35197         * lib/locale.in.h: Likewise.
35198         * lib/logl.c: Likewise.
35199         * lib/long-options.c: Likewise.
35200         * lib/long-options.h: Likewise.
35201         * lib/lstat.c: Likewise.
35202         * lib/lstat.h: Likewise.
35203         * lib/math.in.h: Likewise.
35204         * lib/mbchar.c: Likewise.
35205         * lib/mbchar.h: Likewise.
35206         * lib/mbfile.h: Likewise.
35207         * lib/mbiter.h: Likewise.
35208         * lib/mbscasecmp.c: Likewise.
35209         * lib/mbscasestr.c: Likewise.
35210         * lib/mbschr.c: Likewise.
35211         * lib/mbscspn.c: Likewise.
35212         * lib/mbslen.c: Likewise.
35213         * lib/mbsncasecmp.c: Likewise.
35214         * lib/mbsnlen.c: Likewise.
35215         * lib/mbspbrk.c: Likewise.
35216         * lib/mbspcasecmp.c: Likewise.
35217         * lib/mbsrchr.c: Likewise.
35218         * lib/mbssep.c: Likewise.
35219         * lib/mbsspn.c: Likewise.
35220         * lib/mbsstr.c: Likewise.
35221         * lib/mbstok_r.c: Likewise.
35222         * lib/mbswidth.c: Likewise.
35223         * lib/mbswidth.h: Likewise.
35224         * lib/mbuiter.h: Likewise.
35225         * lib/memcasecmp.c: Likewise.
35226         * lib/memcasecmp.h: Likewise.
35227         * lib/memchr.c: Likewise.
35228         * lib/memcmp.c: Likewise.
35229         * lib/memcoll.c: Likewise.
35230         * lib/memcoll.h: Likewise.
35231         * lib/memcpy.c: Likewise.
35232         * lib/memrchr.c: Likewise.
35233         * lib/mkancesdirs.c: Likewise.
35234         * lib/mkdir-p.c: Likewise.
35235         * lib/mkdir-p.h: Likewise.
35236         * lib/mkdir.c: Likewise.
35237         * lib/mkdirat.c: Likewise.
35238         * lib/mkdtemp.c: Likewise.
35239         * lib/mkstemp-safer.c: Likewise.
35240         * lib/mkstemp.c: Likewise.
35241         * lib/modechange.c: Likewise.
35242         * lib/modechange.h: Likewise.
35243         * lib/mountlist.c: Likewise.
35244         * lib/mountlist.h: Likewise.
35245         * lib/mpsort.c: Likewise.
35246         * lib/nanosleep.c: Likewise.
35247         * lib/obstack.c: Likewise.
35248         * lib/obstack.h: Likewise.
35249         * lib/open-safer.c: Likewise.
35250         * lib/open.c: Likewise.
35251         * lib/openat-die.c: Likewise.
35252         * lib/openat-priv.h: Likewise.
35253         * lib/openat-proc.c: Likewise.
35254         * lib/openat.c: Likewise.
35255         * lib/openat.h: Likewise.
35256         * lib/pagealign_alloc.c: Likewise.
35257         * lib/pagealign_alloc.h: Likewise.
35258         * lib/physmem.c: Likewise.
35259         * lib/physmem.h: Likewise.
35260         * lib/pipe-safer.c: Likewise.
35261         * lib/pipe.c: Likewise.
35262         * lib/pipe.h: Likewise.
35263         * lib/posixtm.c: Likewise.
35264         * lib/posixtm.h: Likewise.
35265         * lib/posixver.c: Likewise.
35266         * lib/printf-frexp.c: Likewise.
35267         * lib/printf-frexp.h: Likewise.
35268         * lib/printf-frexpl.c: Likewise.
35269         * lib/printf-frexpl.h: Likewise.
35270         * lib/printf.c: Likewise.
35271         * lib/progname.c: Likewise.
35272         * lib/progname.h: Likewise.
35273         * lib/progreloc.c: Likewise.
35274         * lib/putenv.c: Likewise.
35275         * lib/quote.c: Likewise.
35276         * lib/quote.h: Likewise.
35277         * lib/quotearg.c: Likewise.
35278         * lib/quotearg.h: Likewise.
35279         * lib/raise.c: Likewise.
35280         * lib/readline.c: Likewise.
35281         * lib/readline.h: Likewise.
35282         * lib/readlink.c: Likewise.
35283         * lib/readtokens.c: Likewise.
35284         * lib/readtokens.h: Likewise.
35285         * lib/readtokens0.c: Likewise.
35286         * lib/readtokens0.h: Likewise.
35287         * lib/readutmp.c: Likewise.
35288         * lib/readutmp.h: Likewise.
35289         * lib/realloc.c: Likewise.
35290         * lib/relocwrapper.c: Likewise.
35291         * lib/rename-dest-slash.c: Likewise.
35292         * lib/rename.c: Likewise.
35293         * lib/rmdir.c: Likewise.
35294         * lib/rpmatch.c: Likewise.
35295         * lib/safe-read.c: Likewise.
35296         * lib/safe-read.h: Likewise.
35297         * lib/safe-write.c: Likewise.
35298         * lib/safe-write.h: Likewise.
35299         * lib/same-inode.h: Likewise.
35300         * lib/same.c: Likewise.
35301         * lib/same.h: Likewise.
35302         * lib/save-cwd.c: Likewise.
35303         * lib/save-cwd.h: Likewise.
35304         * lib/savedir.c: Likewise.
35305         * lib/savedir.h: Likewise.
35306         * lib/savewd.c: Likewise.
35307         * lib/savewd.h: Likewise.
35308         * lib/search.in.h: Likewise.
35309         * lib/setenv.c: Likewise.
35310         * lib/setenv.h: Likewise.
35311         * lib/settime.c: Likewise.
35312         * lib/sh-quote.c: Likewise.
35313         * lib/sh-quote.h: Likewise.
35314         * lib/sig2str.c: Likewise.
35315         * lib/sig2str.h: Likewise.
35316         * lib/signal.in.h: Likewise.
35317         * lib/signbitd.c: Likewise.
35318         * lib/signbitf.c: Likewise.
35319         * lib/signbitl.c: Likewise.
35320         * lib/sigprocmask.c: Likewise.
35321         * lib/sincosl.c: Likewise.
35322         * lib/sleep.c: Likewise.
35323         * lib/sprintf.c: Likewise.
35324         * lib/sqrtl.c: Likewise.
35325         * lib/stat-time.h: Likewise.
35326         * lib/stdio--.h: Likewise.
35327         * lib/stdio-safer.h: Likewise.
35328         * lib/stdlib--.h: Likewise.
35329         * lib/stdlib-safer.h: Likewise.
35330         * lib/stdlib.in.h: Likewise.
35331         * lib/stpcpy.c: Likewise.
35332         * lib/stpncpy.c: Likewise.
35333         * lib/strchrnul.c: Likewise.
35334         * lib/strcspn.c: Likewise.
35335         * lib/strerror.c: Likewise.
35336         * lib/strftime.c: Likewise.
35337         * lib/strftime.h: Likewise.
35338         * lib/striconveh.c: Likewise.
35339         * lib/striconveh.h: Likewise.
35340         * lib/striconveha.c: Likewise.
35341         * lib/striconveha.h: Likewise.
35342         * lib/stripslash.c: Likewise.
35343         * lib/strnlen1.c: Likewise.
35344         * lib/strnlen1.h: Likewise.
35345         * lib/strtod.c: Likewise.
35346         * lib/strtoimax.c: Likewise.
35347         * lib/strtok_r.c: Likewise.
35348         * lib/strtol.c: Likewise.
35349         * lib/strtoll.c: Likewise.
35350         * lib/strtoul.c: Likewise.
35351         * lib/strtoull.c: Likewise.
35352         * lib/sysexits.in.h: Likewise.
35353         * lib/tempname.c: Likewise.
35354         * lib/tempname.h: Likewise.
35355         * lib/timespec.h: Likewise.
35356         * lib/tls.c: Likewise.
35357         * lib/tls.h: Likewise.
35358         * lib/tmpdir.c: Likewise.
35359         * lib/tmpdir.h: Likewise.
35360         * lib/tmpfile-safer.c: Likewise.
35361         * lib/tmpfile.c: Likewise.
35362         * lib/trigl.c: Likewise.
35363         * lib/trigl.h: Likewise.
35364         * lib/trim.c: Likewise.
35365         * lib/trim.h: Likewise.
35366         * lib/trunc.c: Likewise.
35367         * lib/truncf.c: Likewise.
35368         * lib/truncl.c: Likewise.
35369         * lib/tsearch.c: Likewise.
35370         * lib/unicodeio.c: Likewise.
35371         * lib/unicodeio.h: Likewise.
35372         * lib/unistd--.h: Likewise.
35373         * lib/unistd-safer.h: Likewise.
35374         * lib/unistdio/ulc-fprintf.c: Likewise.
35375         * lib/unistdio/ulc-vfprintf.c: Likewise.
35376         * lib/unlinkdir.c: Likewise.
35377         * lib/unlinkdir.h: Likewise.
35378         * lib/unlocked-io.h: Likewise.
35379         * lib/unsetenv.c: Likewise.
35380         * lib/userspec.c: Likewise.
35381         * lib/utime.c: Likewise.
35382         * lib/utimecmp.c: Likewise.
35383         * lib/utimecmp.h: Likewise.
35384         * lib/utimens.c: Likewise.
35385         * lib/verify.h: Likewise.
35386         * lib/verror.c: Likewise.
35387         * lib/verror.h: Likewise.
35388         * lib/version-etc-fsf.c: Likewise.
35389         * lib/version-etc.c: Likewise.
35390         * lib/version-etc.h: Likewise.
35391         * lib/vfprintf.c: Likewise.
35392         * lib/vprintf.c: Likewise.
35393         * lib/vsprintf.c: Likewise.
35394         * lib/w32spawn.h: Likewise.
35395         * lib/wait-process.c: Likewise.
35396         * lib/wait-process.h: Likewise.
35397         * lib/wcwidth.c: Likewise.
35398         * lib/write-any-file.c: Likewise.
35399         * lib/xalloc-die.c: Likewise.
35400         * lib/xalloc.h: Likewise.
35401         * lib/xasprintf.c: Likewise.
35402         * lib/xgetcwd.c: Likewise.
35403         * lib/xgetcwd.h: Likewise.
35404         * lib/xgetdomainname.c: Likewise.
35405         * lib/xgetdomainname.h: Likewise.
35406         * lib/xgethostname.c: Likewise.
35407         * lib/xmalloc.c: Likewise.
35408         * lib/xmalloca.c: Likewise.
35409         * lib/xmalloca.h: Likewise.
35410         * lib/xmemcoll.c: Likewise.
35411         * lib/xnanosleep.c: Likewise.
35412         * lib/xreadlink.c: Likewise.
35413         * lib/xreadlink.h: Likewise.
35414         * lib/xsetenv.c: Likewise.
35415         * lib/xsetenv.h: Likewise.
35416         * lib/xstriconv.c: Likewise.
35417         * lib/xstriconv.h: Likewise.
35418         * lib/xstrndup.c: Likewise.
35419         * lib/xstrndup.h: Likewise.
35420         * lib/xstrtod.c: Likewise.
35421         * lib/xstrtod.h: Likewise.
35422         * lib/xstrtol-error.c: Likewise.
35423         * lib/xstrtol.c: Likewise.
35424         * lib/xstrtol.h: Likewise.
35425         * lib/xtime.h: Likewise.
35426         * lib/xvasprintf.c: Likewise.
35427         * lib/xvasprintf.h: Likewise.
35428         * lib/yesno.c: Likewise.
35429         * lib/yesno.h: Likewise.
35430         * posix-modules: Likewise.
35431         * tests/test-alloca-opt.c: Likewise.
35432         * tests/test-arcfour.c: Likewise.
35433         * tests/test-arctwo.c: Likewise.
35434         * tests/test-argmatch.c: Likewise.
35435         * tests/test-argp-2.sh: Likewise.
35436         * tests/test-argp.c: Likewise.
35437         * tests/test-arpa_inet.c: Likewise.
35438         * tests/test-array_list.c: Likewise.
35439         * tests/test-array_oset.c: Likewise.
35440         * tests/test-atexit.c: Likewise.
35441         * tests/test-avltree_list.c: Likewise.
35442         * tests/test-avltree_oset.c: Likewise.
35443         * tests/test-avltreehash_list.c: Likewise.
35444         * tests/test-base64.c: Likewise.
35445         * tests/test-binary-io.c: Likewise.
35446         * tests/test-byteswap.c: Likewise.
35447         * tests/test-c-ctype.c: Likewise.
35448         * tests/test-c-strcasecmp.c: Likewise.
35449         * tests/test-c-strcasestr.c: Likewise.
35450         * tests/test-c-strncasecmp.c: Likewise.
35451         * tests/test-c-strstr.c: Likewise.
35452         * tests/test-canonicalize-lgpl.c: Likewise.
35453         * tests/test-canonicalize.c: Likewise.
35454         * tests/test-carray_list.c: Likewise.
35455         * tests/test-ceilf.c: Likewise.
35456         * tests/test-ceill.c: Likewise.
35457         * tests/test-count-one-bits.c: Likewise.
35458         * tests/test-crc.c: Likewise.
35459         * tests/test-dirname.c: Likewise.
35460         * tests/test-fbufmode.c: Likewise.
35461         * tests/test-fcntl.c: Likewise.
35462         * tests/test-fflush.c: Likewise.
35463         * tests/test-floorf.c: Likewise.
35464         * tests/test-floorl.c: Likewise.
35465         * tests/test-fopen.c: Likewise.
35466         * tests/test-fprintf-posix.c: Likewise.
35467         * tests/test-fprintf-posix.h: Likewise.
35468         * tests/test-fpurge.c: Likewise.
35469         * tests/test-freadable.c: Likewise.
35470         * tests/test-freadahead.c: Likewise.
35471         * tests/test-freading.c: Likewise.
35472         * tests/test-freopen.c: Likewise.
35473         * tests/test-frexp.c: Likewise.
35474         * tests/test-frexpl.c: Likewise.
35475         * tests/test-fseek.c: Likewise.
35476         * tests/test-fseeko.c: Likewise.
35477         * tests/test-fseterr.c: Likewise.
35478         * tests/test-fstrcmp.c: Likewise.
35479         * tests/test-ftell.c: Likewise.
35480         * tests/test-ftello.c: Likewise.
35481         * tests/test-fwritable.c: Likewise.
35482         * tests/test-fwriting.c: Likewise.
35483         * tests/test-getaddrinfo.c: Likewise.
35484         * tests/test-getpass.c: Likewise.
35485         * tests/test-gettimeofday.c: Likewise.
35486         * tests/test-hmac-md5.c: Likewise.
35487         * tests/test-hmac-sha1.c: Likewise.
35488         * tests/test-iconv.c: Likewise.
35489         * tests/test-iconvme.c: Likewise.
35490         * tests/test-inttypes.c: Likewise.
35491         * tests/test-isnan.c: Likewise.
35492         * tests/test-isnanf.c: Likewise.
35493         * tests/test-isnanl-nolibm.c: Likewise.
35494         * tests/test-isnanl.c: Likewise.
35495         * tests/test-isnanl.h: Likewise.
35496         * tests/test-ldexpl.c: Likewise.
35497         * tests/test-linked_list.c: Likewise.
35498         * tests/test-linkedhash_list.c: Likewise.
35499         * tests/test-locale.c: Likewise.
35500         * tests/test-localename.c: Likewise.
35501         * tests/test-lock.c: Likewise.
35502         * tests/test-lseek.c: Likewise.
35503         * tests/test-malloca.c: Likewise.
35504         * tests/test-math.c: Likewise.
35505         * tests/test-mbscasecmp.c: Likewise.
35506         * tests/test-mbscasestr1.c: Likewise.
35507         * tests/test-mbscasestr2.c: Likewise.
35508         * tests/test-mbscasestr3.c: Likewise.
35509         * tests/test-mbscasestr4.c: Likewise.
35510         * tests/test-mbschr.c: Likewise.
35511         * tests/test-mbscspn.c: Likewise.
35512         * tests/test-mbsncasecmp.c: Likewise.
35513         * tests/test-mbspbrk.c: Likewise.
35514         * tests/test-mbspcasecmp.c: Likewise.
35515         * tests/test-mbsrchr.c: Likewise.
35516         * tests/test-mbsspn.c: Likewise.
35517         * tests/test-mbsstr1.c: Likewise.
35518         * tests/test-mbsstr2.c: Likewise.
35519         * tests/test-mbsstr3.c: Likewise.
35520         * tests/test-md5.c: Likewise.
35521         * tests/test-memmem.c: Likewise.
35522         * tests/test-netinet_in.c: Likewise.
35523         * tests/test-open.c: Likewise.
35524         * tests/test-printf-frexp.c: Likewise.
35525         * tests/test-printf-frexpl.c: Likewise.
35526         * tests/test-printf-posix.c: Likewise.
35527         * tests/test-printf-posix.h: Likewise.
35528         * tests/test-rbtree_list.c: Likewise.
35529         * tests/test-rbtree_oset.c: Likewise.
35530         * tests/test-rbtreehash_list.c: Likewise.
35531         * tests/test-read-file.c: Likewise.
35532         * tests/test-rijndael.c: Likewise.
35533         * tests/test-search.c: Likewise.
35534         * tests/test-signbit.c: Likewise.
35535         * tests/test-sleep.c: Likewise.
35536         * tests/test-snprintf-posix.c: Likewise.
35537         * tests/test-snprintf-posix.h: Likewise.
35538         * tests/test-snprintf.c: Likewise.
35539         * tests/test-sprintf-posix.c: Likewise.
35540         * tests/test-sprintf-posix.h: Likewise.
35541         * tests/test-stat-time.c: Likewise.
35542         * tests/test-stdbool.c: Likewise.
35543         * tests/test-stdint.c: Likewise.
35544         * tests/test-stdio.c: Likewise.
35545         * tests/test-stdlib.c: Likewise.
35546         * tests/test-stpncpy.c: Likewise.
35547         * tests/test-strcasestr.c: Likewise.
35548         * tests/test-striconv.c: Likewise.
35549         * tests/test-striconveh.c: Likewise.
35550         * tests/test-striconveha.c: Likewise.
35551         * tests/test-string.c: Likewise.
35552         * tests/test-sys_select.c: Likewise.
35553         * tests/test-sys_socket.c: Likewise.
35554         * tests/test-sys_stat.c: Likewise.
35555         * tests/test-sys_time.c: Likewise.
35556         * tests/test-sysexits.c: Likewise.
35557         * tests/test-time.c: Likewise.
35558         * tests/test-tls.c: Likewise.
35559         * tests/test-trunc.c: Likewise.
35560         * tests/test-truncf.c: Likewise.
35561         * tests/test-truncl.c: Likewise.
35562         * tests/test-unistd.c: Likewise.
35563         * tests/test-vasnprintf-posix.c: Likewise.
35564         * tests/test-vasnprintf-posix2.c: Likewise.
35565         * tests/test-vasnprintf.c: Likewise.
35566         * tests/test-vasprintf-posix.c: Likewise.
35567         * tests/test-vasprintf.c: Likewise.
35568         * tests/test-verify.c: Likewise.
35569         * tests/test-vfprintf-posix.c: Likewise.
35570         * tests/test-vprintf-posix.c: Likewise.
35571         * tests/test-vsnprintf-posix.c: Likewise.
35572         * tests/test-vsnprintf.c: Likewise.
35573         * tests/test-vsprintf-posix.c: Likewise.
35574         * tests/test-wchar.c: Likewise.
35575         * tests/test-wctype.c: Likewise.
35576         * tests/test-wcwidth.c: Likewise.
35577         * tests/test-xstrtol.c: Likewise.
35578         * tests/test-xvasprintf.c: Likewise.
35579         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35580         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35581         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35582         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35583         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35584         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35585         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35586         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35587         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35588         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35589         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35590         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35591         * tests/uniname/test-uninames.c: Likewise.
35592         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35593         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
35594         * tests/unistdio/test-u16-printf1.h: Likewise.
35595         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35596         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35597         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35598         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35599         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35600         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35601         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35602         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
35603         * tests/unistdio/test-u32-printf1.h: Likewise.
35604         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35605         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35606         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35607         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35608         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35609         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35610         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35611         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
35612         * tests/unistdio/test-u8-printf1.h: Likewise.
35613         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35614         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35615         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35616         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35617         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35618         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35619         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35620         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
35621         * tests/unistdio/test-ulc-printf1.h: Likewise.
35622         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35623         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35624         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35625         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35626         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35627         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35628         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35629         * tests/uniwidth/test-u16-width.c: Likewise.
35630         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35631         * tests/uniwidth/test-u32-width.c: Likewise.
35632         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35633         * tests/uniwidth/test-u8-width.c: Likewise.
35634         * tests/uniwidth/test-uc_width.c: Likewise.
35635         * config/srclist-update: Likewise.
35636         (fixlicense): Update to GPLv3+.
35637
35638         Change copyright notice from LGPLv2.1+ to LGPLv3+.
35639         * tests/test-tsearch.c: Change copyright notice.
35640
35641         Change copyright notice from LGPLv2.0+ to LGPLv3+.
35642         * lib/c-strcaseeq.h: Change copyright notice.
35643         * lib/streq.h: Likewise.
35644         * lib/uniconv.h: Likewise.
35645         * lib/uniconv/u-conv-from-enc.h: Likewise.
35646         * lib/uniconv/u-conv-to-enc.h: Likewise.
35647         * lib/uniconv/u-strconv-from-enc.h: Likewise.
35648         * lib/uniconv/u-strconv-to-enc.h: Likewise.
35649         * lib/uniconv/u16-conv-from-enc.c: Likewise.
35650         * lib/uniconv/u16-conv-to-enc.c: Likewise.
35651         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
35652         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
35653         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
35654         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
35655         * lib/uniconv/u32-conv-from-enc.c: Likewise.
35656         * lib/uniconv/u32-conv-to-enc.c: Likewise.
35657         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
35658         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
35659         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
35660         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
35661         * lib/uniconv/u8-conv-from-enc.c: Likewise.
35662         * lib/uniconv/u8-conv-to-enc.c: Likewise.
35663         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
35664         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
35665         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
35666         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
35667         * lib/uniname.h: Likewise.
35668         * lib/uniname/uniname.c: Likewise.
35669         * lib/unistdio.h: Likewise.
35670         * lib/unistdio/u-asnprintf.h: Likewise.
35671         * lib/unistdio/u-asprintf.h: Likewise.
35672         * lib/unistdio/u-printf-args.c: Likewise.
35673         * lib/unistdio/u-printf-args.h: Likewise.
35674         * lib/unistdio/u-printf-parse.h: Likewise.
35675         * lib/unistdio/u-snprintf.h: Likewise.
35676         * lib/unistdio/u-sprintf.h: Likewise.
35677         * lib/unistdio/u-vasprintf.h: Likewise.
35678         * lib/unistdio/u-vsnprintf.h: Likewise.
35679         * lib/unistdio/u-vsprintf.h: Likewise.
35680         * lib/unistdio/u16-asnprintf.c: Likewise.
35681         * lib/unistdio/u16-asprintf.c: Likewise.
35682         * lib/unistdio/u16-printf-parse.c: Likewise.
35683         * lib/unistdio/u16-snprintf.c: Likewise.
35684         * lib/unistdio/u16-sprintf.c: Likewise.
35685         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
35686         * lib/unistdio/u16-u16-asprintf.c: Likewise.
35687         * lib/unistdio/u16-u16-snprintf.c: Likewise.
35688         * lib/unistdio/u16-u16-sprintf.c: Likewise.
35689         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
35690         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
35691         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
35692         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
35693         * lib/unistdio/u16-vasnprintf.c: Likewise.
35694         * lib/unistdio/u16-vasprintf.c: Likewise.
35695         * lib/unistdio/u16-vsnprintf.c: Likewise.
35696         * lib/unistdio/u16-vsprintf.c: Likewise.
35697         * lib/unistdio/u32-asnprintf.c: Likewise.
35698         * lib/unistdio/u32-asprintf.c: Likewise.
35699         * lib/unistdio/u32-printf-parse.c: Likewise.
35700         * lib/unistdio/u32-snprintf.c: Likewise.
35701         * lib/unistdio/u32-sprintf.c: Likewise.
35702         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
35703         * lib/unistdio/u32-u32-asprintf.c: Likewise.
35704         * lib/unistdio/u32-u32-snprintf.c: Likewise.
35705         * lib/unistdio/u32-u32-sprintf.c: Likewise.
35706         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
35707         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
35708         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
35709         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
35710         * lib/unistdio/u32-vasnprintf.c: Likewise.
35711         * lib/unistdio/u32-vasprintf.c: Likewise.
35712         * lib/unistdio/u32-vsnprintf.c: Likewise.
35713         * lib/unistdio/u32-vsprintf.c: Likewise.
35714         * lib/unistdio/u8-asnprintf.c: Likewise.
35715         * lib/unistdio/u8-asprintf.c: Likewise.
35716         * lib/unistdio/u8-printf-parse.c: Likewise.
35717         * lib/unistdio/u8-snprintf.c: Likewise.
35718         * lib/unistdio/u8-sprintf.c: Likewise.
35719         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
35720         * lib/unistdio/u8-u8-asprintf.c: Likewise.
35721         * lib/unistdio/u8-u8-snprintf.c: Likewise.
35722         * lib/unistdio/u8-u8-sprintf.c: Likewise.
35723         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
35724         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
35725         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
35726         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
35727         * lib/unistdio/u8-vasnprintf.c: Likewise.
35728         * lib/unistdio/u8-vasprintf.c: Likewise.
35729         * lib/unistdio/u8-vsnprintf.c: Likewise.
35730         * lib/unistdio/u8-vsprintf.c: Likewise.
35731         * lib/unistdio/ulc-asnprintf.c: Likewise.
35732         * lib/unistdio/ulc-asprintf.c: Likewise.
35733         * lib/unistdio/ulc-printf-parse.c: Likewise.
35734         * lib/unistdio/ulc-snprintf.c: Likewise.
35735         * lib/unistdio/ulc-sprintf.c: Likewise.
35736         * lib/unistdio/ulc-vasnprintf.c: Likewise.
35737         * lib/unistdio/ulc-vasprintf.c: Likewise.
35738         * lib/unistdio/ulc-vsnprintf.c: Likewise.
35739         * lib/unistdio/ulc-vsprintf.c: Likewise.
35740         * lib/unistr.h: Likewise.
35741         * lib/unistr/u-cpy-alloc.h: Likewise.
35742         * lib/unistr/u-cpy.h: Likewise.
35743         * lib/unistr/u-endswith.h: Likewise.
35744         * lib/unistr/u-move.h: Likewise.
35745         * lib/unistr/u-set.h: Likewise.
35746         * lib/unistr/u-startswith.h: Likewise.
35747         * lib/unistr/u-stpcpy.h: Likewise.
35748         * lib/unistr/u-stpncpy.h: Likewise.
35749         * lib/unistr/u-strcat.h: Likewise.
35750         * lib/unistr/u-strcpy.h: Likewise.
35751         * lib/unistr/u-strcspn.h: Likewise.
35752         * lib/unistr/u-strdup.h: Likewise.
35753         * lib/unistr/u-strlen.h: Likewise.
35754         * lib/unistr/u-strncat.h: Likewise.
35755         * lib/unistr/u-strncpy.h: Likewise.
35756         * lib/unistr/u-strnlen.h: Likewise.
35757         * lib/unistr/u-strpbrk.h: Likewise.
35758         * lib/unistr/u-strspn.h: Likewise.
35759         * lib/unistr/u-strstr.h: Likewise.
35760         * lib/unistr/u-strtok.h: Likewise.
35761         * lib/unistr/u16-check.c: Likewise.
35762         * lib/unistr/u16-chr.c: Likewise.
35763         * lib/unistr/u16-cmp.c: Likewise.
35764         * lib/unistr/u16-cpy-alloc.c: Likewise.
35765         * lib/unistr/u16-cpy.c: Likewise.
35766         * lib/unistr/u16-endswith.c: Likewise.
35767         * lib/unistr/u16-mblen.c: Likewise.
35768         * lib/unistr/u16-mbsnlen.c: Likewise.
35769         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35770         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35771         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35772         * lib/unistr/u16-mbtouc.c: Likewise.
35773         * lib/unistr/u16-mbtoucr.c: Likewise.
35774         * lib/unistr/u16-move.c: Likewise.
35775         * lib/unistr/u16-next.c: Likewise.
35776         * lib/unistr/u16-prev.c: Likewise.
35777         * lib/unistr/u16-set.c: Likewise.
35778         * lib/unistr/u16-startswith.c: Likewise.
35779         * lib/unistr/u16-stpcpy.c: Likewise.
35780         * lib/unistr/u16-stpncpy.c: Likewise.
35781         * lib/unistr/u16-strcat.c: Likewise.
35782         * lib/unistr/u16-strchr.c: Likewise.
35783         * lib/unistr/u16-strcmp.c: Likewise.
35784         * lib/unistr/u16-strcpy.c: Likewise.
35785         * lib/unistr/u16-strcspn.c: Likewise.
35786         * lib/unistr/u16-strdup.c: Likewise.
35787         * lib/unistr/u16-strlen.c: Likewise.
35788         * lib/unistr/u16-strmblen.c: Likewise.
35789         * lib/unistr/u16-strmbtouc.c: Likewise.
35790         * lib/unistr/u16-strncat.c: Likewise.
35791         * lib/unistr/u16-strncmp.c: Likewise.
35792         * lib/unistr/u16-strncpy.c: Likewise.
35793         * lib/unistr/u16-strnlen.c: Likewise.
35794         * lib/unistr/u16-strpbrk.c: Likewise.
35795         * lib/unistr/u16-strrchr.c: Likewise.
35796         * lib/unistr/u16-strspn.c: Likewise.
35797         * lib/unistr/u16-strstr.c: Likewise.
35798         * lib/unistr/u16-strtok.c: Likewise.
35799         * lib/unistr/u16-to-u32.c: Likewise.
35800         * lib/unistr/u16-to-u8.c: Likewise.
35801         * lib/unistr/u16-uctomb-aux.c: Likewise.
35802         * lib/unistr/u16-uctomb.c: Likewise.
35803         * lib/unistr/u32-check.c: Likewise.
35804         * lib/unistr/u32-chr.c: Likewise.
35805         * lib/unistr/u32-cmp.c: Likewise.
35806         * lib/unistr/u32-cpy-alloc.c: Likewise.
35807         * lib/unistr/u32-cpy.c: Likewise.
35808         * lib/unistr/u32-endswith.c: Likewise.
35809         * lib/unistr/u32-mblen.c: Likewise.
35810         * lib/unistr/u32-mbsnlen.c: Likewise.
35811         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35812         * lib/unistr/u32-mbtouc.c: Likewise.
35813         * lib/unistr/u32-mbtoucr.c: Likewise.
35814         * lib/unistr/u32-move.c: Likewise.
35815         * lib/unistr/u32-next.c: Likewise.
35816         * lib/unistr/u32-prev.c: Likewise.
35817         * lib/unistr/u32-set.c: Likewise.
35818         * lib/unistr/u32-startswith.c: Likewise.
35819         * lib/unistr/u32-stpcpy.c: Likewise.
35820         * lib/unistr/u32-stpncpy.c: Likewise.
35821         * lib/unistr/u32-strcat.c: Likewise.
35822         * lib/unistr/u32-strchr.c: Likewise.
35823         * lib/unistr/u32-strcmp.c: Likewise.
35824         * lib/unistr/u32-strcpy.c: Likewise.
35825         * lib/unistr/u32-strcspn.c: Likewise.
35826         * lib/unistr/u32-strdup.c: Likewise.
35827         * lib/unistr/u32-strlen.c: Likewise.
35828         * lib/unistr/u32-strmblen.c: Likewise.
35829         * lib/unistr/u32-strmbtouc.c: Likewise.
35830         * lib/unistr/u32-strncat.c: Likewise.
35831         * lib/unistr/u32-strncmp.c: Likewise.
35832         * lib/unistr/u32-strncpy.c: Likewise.
35833         * lib/unistr/u32-strnlen.c: Likewise.
35834         * lib/unistr/u32-strpbrk.c: Likewise.
35835         * lib/unistr/u32-strrchr.c: Likewise.
35836         * lib/unistr/u32-strspn.c: Likewise.
35837         * lib/unistr/u32-strstr.c: Likewise.
35838         * lib/unistr/u32-strtok.c: Likewise.
35839         * lib/unistr/u32-to-u16.c: Likewise.
35840         * lib/unistr/u32-to-u8.c: Likewise.
35841         * lib/unistr/u32-uctomb.c: Likewise.
35842         * lib/unistr/u8-check.c: Likewise.
35843         * lib/unistr/u8-chr.c: Likewise.
35844         * lib/unistr/u8-cmp.c: Likewise.
35845         * lib/unistr/u8-cpy-alloc.c: Likewise.
35846         * lib/unistr/u8-cpy.c: Likewise.
35847         * lib/unistr/u8-endswith.c: Likewise.
35848         * lib/unistr/u8-mblen.c: Likewise.
35849         * lib/unistr/u8-mbsnlen.c: Likewise.
35850         * lib/unistr/u8-mbtouc-aux.c: Likewise.
35851         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35852         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35853         * lib/unistr/u8-mbtouc.c: Likewise.
35854         * lib/unistr/u8-mbtoucr.c: Likewise.
35855         * lib/unistr/u8-move.c: Likewise.
35856         * lib/unistr/u8-next.c: Likewise.
35857         * lib/unistr/u8-prev.c: Likewise.
35858         * lib/unistr/u8-set.c: Likewise.
35859         * lib/unistr/u8-startswith.c: Likewise.
35860         * lib/unistr/u8-stpcpy.c: Likewise.
35861         * lib/unistr/u8-stpncpy.c: Likewise.
35862         * lib/unistr/u8-strcat.c: Likewise.
35863         * lib/unistr/u8-strchr.c: Likewise.
35864         * lib/unistr/u8-strcmp.c: Likewise.
35865         * lib/unistr/u8-strcpy.c: Likewise.
35866         * lib/unistr/u8-strcspn.c: Likewise.
35867         * lib/unistr/u8-strdup.c: Likewise.
35868         * lib/unistr/u8-strlen.c: Likewise.
35869         * lib/unistr/u8-strmblen.c: Likewise.
35870         * lib/unistr/u8-strmbtouc.c: Likewise.
35871         * lib/unistr/u8-strncat.c: Likewise.
35872         * lib/unistr/u8-strncmp.c: Likewise.
35873         * lib/unistr/u8-strncpy.c: Likewise.
35874         * lib/unistr/u8-strnlen.c: Likewise.
35875         * lib/unistr/u8-strpbrk.c: Likewise.
35876         * lib/unistr/u8-strrchr.c: Likewise.
35877         * lib/unistr/u8-strspn.c: Likewise.
35878         * lib/unistr/u8-strstr.c: Likewise.
35879         * lib/unistr/u8-strtok.c: Likewise.
35880         * lib/unistr/u8-to-u16.c: Likewise.
35881         * lib/unistr/u8-to-u32.c: Likewise.
35882         * lib/unistr/u8-uctomb-aux.c: Likewise.
35883         * lib/unistr/u8-uctomb.c: Likewise.
35884         * lib/unitypes.h: Likewise.
35885         * lib/uniwidth.h: Likewise.
35886         * lib/uniwidth/cjk.h: Likewise.
35887         * lib/uniwidth/u16-strwidth.c: Likewise.
35888         * lib/uniwidth/u16-width.c: Likewise.
35889         * lib/uniwidth/u32-strwidth.c: Likewise.
35890         * lib/uniwidth/u32-width.c: Likewise.
35891         * lib/uniwidth/u8-strwidth.c: Likewise.
35892         * lib/uniwidth/u8-width.c: Likewise.
35893         * lib/uniwidth/width.c: Likewise.
35894
35895 2007-10-07  Bruno Haible  <bruno@clisp.org>
35896
35897         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
35898         The file is still under LGPL (see modules/inttypes).
35899
35900 2007-10-06  Bruno Haible  <bruno@clisp.org>
35901
35902         * modules/trunc (Dependencies): Add 'extensions'.
35903         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
35904         Reported by Ben Pfaff <blp@gnu.org>.
35905
35906 2007-10-06  Bruno Haible  <bruno@clisp.org>
35907
35908         * modules/freopen-tests: New file.
35909         * tests/test-freopen.c: New file.
35910
35911         * modules/fopen-tests: New file.
35912         * tests/test-fopen.c: New file.
35913
35914         * modules/fopen: New file.
35915         * lib/fopen.c: New file.
35916         * m4/fopen.m4: New file.
35917         * modules/freopen: New file.
35918         * lib/freopen.c: New file.
35919         * m4/freopen.m4: New file.
35920         * lib/stdio.in.h (fopen, freopen): New declarations.
35921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35922         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35923         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35924         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35925         * doc/functions/fopen.texi: Mention the 'fopen' module.
35926         * doc/functions/freopen.texi: Mention the 'freopen' module.
35927
35928 2007-10-06  Bruno Haible  <bruno@clisp.org>
35929
35930         * modules/open-tests: New file.
35931         * tests/test-open.c: New file.
35932
35933         * modules/open: New file.
35934         * lib/open.c: New file.
35935         * m4/open.m4: New file.
35936         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35937         lib/open.c does.
35938         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35939         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35940         macros.
35941         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35942         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35943         REPLACE_OPEN.
35944         * doc/functions/open.texi: Mention the 'open' module.
35945
35946 2007-10-04  Bruno Haible  <bruno@clisp.org>
35947
35948         * modules/ceill-tests: New file.
35949         * tests/test-ceill.c: New file.
35950
35951         * modules/ceill: New file.
35952         * lib/ceill.c: Replace entire file.
35953         * m4/ceill.m4: New file.
35954         * lib/math.in.h (ceill): Replace declaration.
35955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
35956         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
35957         * doc/functions/ceill.texi: Mention the 'ceill' module.
35958         * modules/mathl (Files): Remove lib/ceill.c.
35959         (Depends-on): Add ceill.
35960
35961 2007-10-04  Bruno Haible  <bruno@clisp.org>
35962
35963         * modules/ceilf-tests: New file.
35964         * tests/test-ceilf.c: New file.
35965
35966         * modules/ceilf: New file.
35967         * lib/ceil.c: New file.
35968         * lib/ceilf.c: New file.
35969         * m4/ceilf.m4: New file.
35970         * lib/math.in.h (ceilf): New declaration.
35971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
35972         HAVE_DECL_CEILF.
35973         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
35974         HAVE_DECL_CEILF.
35975         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
35976
35977 2007-10-04  Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/floorl-tests: New file.
35980         * tests/test-floorl.c: New file.
35981
35982         * modules/floorl: New file.
35983         * lib/floorl.c: Replace entire file.
35984         * m4/floorl.m4: New file.
35985         * lib/math.in.h (floorl): Replace declaration.
35986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
35987         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
35988         * doc/functions/floorl.texi: Mention the 'floorl' module.
35989         * modules/mathl (Files): Remove lib/floorl.c.
35990         (Depends-on): Add floorl.
35991
35992 2007-10-04  Bruno Haible  <bruno@clisp.org>
35993
35994         * modules/floorf-tests: New file.
35995         * tests/test-floorf.c: New file.
35996
35997         * modules/floorf: New file.
35998         * lib/floor.c: New file.
35999         * lib/floorf.c: New file.
36000         * m4/floorf.m4: New file.
36001         * lib/math.in.h (floorf): New declaration.
36002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36003         HAVE_DECL_FLOORF.
36004         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36005         HAVE_DECL_FLOORF.
36006         * doc/functions/floorf.texi: Mention the 'floorf' module.
36007
36008 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36009             Bruno Haible  <bruno@clisp.org>
36010
36011         Advertise for the Git server instead of the CVS server.
36012         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36013         repository instead of the CVS one.
36014         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36015         about all VCS systems generically.
36016         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36017
36018 2007-10-04  Bruno Haible  <bruno@clisp.org>
36019
36020         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36021         means.
36022         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36023
36024 2007-10-04  Bruno Haible  <bruno@clisp.org>
36025
36026         * modules/truncl-tests: New file.
36027         * tests/test-truncl.c: New file.
36028
36029         * modules/truncl: New file.
36030         * lib/truncl.c: New file.
36031         * m4/truncl.m4: New file.
36032         * lib/math.in.h (truncl): New declaration.
36033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36034         HAVE_DECL_TRUNCL.
36035         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36036         HAVE_DECL_TRUNCL.
36037         * doc/functions/truncl.texi: Mention the 'truncl' module.
36038
36039 2007-10-04  Bruno Haible  <bruno@clisp.org>
36040
36041         * modules/truncf-tests: New file.
36042         * tests/test-truncf.c: New file.
36043
36044         * modules/truncf: New file.
36045         * lib/trunc.c: Make paramerizable through USE_* macros.
36046         * lib/truncf.c: New file.
36047         * m4/truncf.m4: New file.
36048         * lib/math.in.h (truncf): New declaration.
36049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36050         HAVE_DECL_TRUNCF.
36051         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36052         HAVE_DECL_TRUNCF.
36053         * doc/functions/truncf.texi: Mention the 'truncf' module.
36054
36055 2007-10-03  Bruno Haible  <bruno@clisp.org>
36056
36057         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36058         augmentation also for tests modules.
36059         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36060         * modules/atexit-tests (Makefile.am): Likewise.
36061         * modules/binary-io-tests (Makefile.am): Likewise.
36062         * modules/c-strcase-tests (Makefile.am): Likewise.
36063         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36064         * modules/canonicalize-tests (Makefile.am): Likewise.
36065         * modules/closein-tests (Makefile.am): Likewise.
36066         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36067         * modules/freadahead-tests (Makefile.am): Likewise.
36068         * modules/fseek-tests (Makefile.am): Likewise.
36069         * modules/fseeko-tests (Makefile.am): Likewise.
36070         * modules/ftell-tests (Makefile.am): Likewise.
36071         * modules/ftello-tests (Makefile.am): Likewise.
36072         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36073         * modules/isnanl-tests (Makefile.am): Likewise.
36074         * modules/lseek-tests (Makefile.am): Likewise.
36075         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36076         * modules/mbscasestr-tests (Makefile.am): Likewise.
36077         * modules/mbschr-tests (Makefile.am): Likewise.
36078         * modules/mbscspn-tests (Makefile.am): Likewise.
36079         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36080         * modules/mbspbrk-tests (Makefile.am): Likewise.
36081         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36082         * modules/mbsrchr-tests (Makefile.am): Likewise.
36083         * modules/mbsspn-tests (Makefile.am): Likewise.
36084         * modules/mbsstr-tests (Makefile.am): Likewise.
36085         * modules/printf-posix-tests (Makefile.am): Likewise.
36086         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36087         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36088         * modules/tsearch-tests (Makefile.am): Likewise.
36089         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36090         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36091         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36092         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36093         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36094         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36095         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36096         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36097         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36098         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36099         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36100         * modules/xstrtol-tests (Makefile.am): Likewise.
36101         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36102         * modules/yesno-tests (Makefile.am): Likewise.
36103
36104 2007-10-03  Bruno Haible  <bruno@clisp.org>
36105
36106         * modules/trunc-tests: New file.
36107         * tests/test-trunc.c: New file.
36108
36109         * modules/trunc: New file.
36110         * lib/trunc.c: New file.
36111         * m4/trunc.m4: New file.
36112         * lib/math.in.h (trunc): New declaration.
36113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36114         HAVE_DECL_TRUNC.
36115         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36116         HAVE_DECL_TRUNC.
36117         * doc/functions/trunc.texi: Mention the 'trunc' module.
36118
36119 2007-10-03  Bruno Haible  <bruno@clisp.org>
36120
36121         * tests/test-fpending.c: New file, mostly copied
36122         from coreutils/lib/t-fpending.c.
36123         * modules/fpending-tests: New file.
36124
36125 2007-10-03  Bruno Haible  <bruno@clisp.org>
36126
36127         Port the stdio extensions to QNX (untested).
36128         * lib/fseterr.c (fseterr): Add support for QNX.
36129         * lib/fbufmode.c (fbufmode): Likewise.
36130         * lib/freadable.c (freadable): Likewise.
36131         * lib/fwritable.c (fwritable): Likewise.
36132         * lib/freading.c (freading): Likewise.
36133         * lib/fwriting.c (fwriting): Likewise.
36134         * lib/freadahead.c (freadahed): Likewise.
36135         * lib/fpurge.c (fpurge): Likewise.
36136         * lib/fseeko.c (rpl_fseeko): Likewise.
36137
36138 2007-10-03  Bruno Haible  <bruno@clisp.org>
36139             Jim Meyering  <jim@meyering.net>
36140             Eric Blake  <ebb9@byu.net>
36141
36142         * doc/relocatable.texi: Use @command instead of @program.
36143
36144 2007-10-02  Jim Meyering  <jim@meyering.net>
36145
36146         Perform one more "_.h" -> ".in.h" substitution.
36147         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36148         instead of unistd_.h here, too.
36149
36150 2007-10-01  Bruno Haible  <bruno@clisp.org>
36151
36152         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36153         Needed for the alloca-opt module.
36154
36155 2007-09-30  Bruno Haible  <bruno@clisp.org>
36156
36157         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36158         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36159         alloca_.h.
36160         * lib/argz.in.h: Renamed from lib/argz_.h.
36161         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36162         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36163         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36164         byteswap_.h.
36165         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36166         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36167         dirent_.h.
36168         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36169         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36170         fcntl_.h.
36171         * lib/float.in.h: Renamed from lib/float_.h.
36172         * modules/float (Files, Makefile.am): Use float.in.h instead of
36173         float_.h.
36174         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36175         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36176         fnmatch_.h.
36177         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36178         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36179         getopt_.h.
36180         * lib/glob.in.h: Renamed from lib/glob_.h.
36181         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36182         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36183         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36184         iconv_.h.
36185         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36186         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36187         inttypes_.h.
36188         * lib/locale.in.h: Renamed from lib/locale_.h.
36189         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36190         locale_.h.
36191         * lib/math.in.h: Renamed from lib/math_.h.
36192         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36193         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36194         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36195         of netinet_in_.h. Add dependency.
36196         * lib/poll.in.h: Renamed from lib/poll_.h.
36197         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36198         * lib/search.in.h: Renamed from lib/search_.h.
36199         * modules/search (Files, Makefile.am): Use search.in.h instead of
36200         search_.h.
36201         * lib/signal.in.h: Renamed from lib/signal_.h.
36202         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36203         _signal.h.
36204         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36205         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36206         stdbool_.h.
36207         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36208         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36209         stdint_.h.
36210         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36211         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36212         stdio_.h.
36213         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36214         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36215         stdlib_.h.
36216         * lib/string.in.h: Renamed from lib/string_.h.
36217         * modules/string (Files, Makefile.am): Use string.in.h instead of
36218         string_.h.
36219         * doc/gnulib-tool.texi (Initial import): Update.
36220         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36221         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36222         of sys_select_.h. Add dependency.
36223         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36224         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36225         of sys_socket_.h.
36226         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36227         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36228         sys_stat_.h.
36229         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36230         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36231         sys_time_.h.
36232         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36233         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36234         sysexits_.h.
36235         * lib/time.in.h: Renamed from lib/time_.h.
36236         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36237         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36238         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36239         unistd_.h.
36240         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36241         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36242         wchar_.h.
36243         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36244         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36245         wctype_.h.
36246         * build-aux/bootstrap (slurp): Update.
36247         * lib/.cppi-disable: Update.
36248
36249 2007-09-30  Bruno Haible  <bruno@clisp.org>
36250
36251         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36252         Needed on BeOS.
36253
36254 2007-09-30  Bruno Haible  <bruno@clisp.org>
36255
36256         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36257
36258 2007-09-29  Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36261
36262 2007-09-29  Bruno Haible  <bruno@clisp.org>
36263
36264         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36265         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36266         * build-aux/install-reloc: Compile also areadlink.c.
36267         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36268
36269 2007-09-29  Bruno Haible  <bruno@clisp.org>
36270
36271         * gnulib-tool (func_emit_initmacro_done): Indentation.
36272
36273 2007-09-29  Bruno Haible  <bruno@clisp.org>
36274
36275         * README: Add CVS checkout update instructions.
36276         Info from Bob Proulx <bob@proulx.com>.
36277
36278 2007-09-28  Eric Blake  <ebb9@byu.net>
36279
36280         Provide move-if-change.
36281         * build-aux/move-if-change: New file, based on best practice
36282         rather than any canonical upstream location.
36283
36284 2007-09-28  Jim Meyering  <jim@meyering.net>
36285
36286         Fix canonicalize loop-detection corner case.
36287         Do not attempt to stat the symlink values stored via seen_triple.
36288         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36289         on linux-2.6.18, (but not 2.6.22).
36290         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36291         triple_compare.  The former compares dev,ino,filename, while the latter
36292         would actually stat dirname(filename) when dev and ino were equal.
36293         * lib/hash-triple.c: Install <string.h>.
36294         (STREQ): Define.
36295         (triple_compare_ino_str): New function.
36296         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36297
36298 2007-09-28  Eric Blake  <ebb9@byu.net>
36299
36300         Enforce that AC_REPLACE_FUNCS files exist.
36301         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36302         override check for typos.
36303
36304         Fix test-closein on Solaris 10.
36305         * tests/test-closein.c (main): Don't assume stdin can be inherited
36306         closed on all systems.
36307         * tests/test-closein.sh: Likewise.
36308         Reported by Piotr Tarnowski.
36309
36310 2007-09-28  Jim Meyering  <jim@meyering.net>
36311
36312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36313
36314 2007-09-27  Jim Meyering  <jim@meyering.net>
36315
36316         canonicalize: Avoid a false-positive cycle failure.
36317         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36318         Sort.  Remove cycle-check.
36319         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36320         not cycle-check.h.
36321         (seen_triple): New function.
36322         (canonicalize_filename_mode): Use it instead of cycle-check.
36323         * tests/test-canonicalize.c: Add a test for this bug.
36324         * tests/test-canonicalize.sh: Set up and run the test.
36325
36326         New module, file-set, from coreutils.
36327         * modules/file-set: Define it.
36328         * lib/file-set.c, lib/file-set.h: Implement.
36329
36330         New module, hash-triple, from coreutils.
36331         * modules/hash-triple: Define it.
36332         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36333
36334 2007-09-25  Eric Blake  <ebb9@byu.net>
36335
36336         Fix strerror on Interix.
36337         * lib/string_.h (strerror): Declare replacement.
36338         * doc/functions/strerror.texi (strerror): Document the Interix
36339         shortcoming.
36340         * modules/string (Makefile.am): Support new hooks.
36341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36342         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36343         gl_FUNC_STRERROR_SEPARATE.
36344         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36345         * lib/strerror.c (rpl_strerror): Provide replacement.
36346         * modules/strerror (Depends-on): Add string.
36347         (configure.ac): Detect use of module.
36348         * tests/test-strerror.c: New file.
36349         * modules/strerror-tests: New test module.
36350         * modules/argp (Depends-on): Add strerror.
36351         * modules/error (Depends-on): Likewise.
36352         Reported by Martin Koeppe.
36353
36354 2007-09-24  Bruno Haible  <bruno@clisp.org>
36355
36356         * README: Update git instructions.
36357
36358 2007-09-24  Eric Blake  <ebb9@byu.net>
36359
36360         Revert fpending breakage from 2007-09-08.
36361         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36362         __fpending.c.
36363
36364 2007-09-24  Jim Meyering  <jim@meyering.net>
36365
36366         filenamecat.c: Add a test.
36367         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
36368         showing how the function works when DIR is the empty string.
36369
36370 2007-09-21  Simon Josefsson  <simon@josefsson.org>
36371
36372         * tests/test-canonicalize.sh: Turn on executable bit.
36373
36374 2007-09-19  Eric Blake  <ebb9@byu.net>
36375
36376         * README: Update CVS instructions.
36377
36378 2007-09-18  Bruno Haible  <bruno@clisp.org>
36379
36380         * modules/areadlink: New file.
36381         * lib/areadlink.h (areadlink): New declaration.
36382         * lib/areadlink.c: New file, based on lib/xreadlink.c.
36383
36384 2007-09-17  Jim Meyering  <jim@meyering.net>
36385
36386         * lib/savewd.c (ESTALE) [!defined]: Define.
36387         Reported to be required on Interix by Martin Koeppe.
36388
36389 2007-09-17  Bruno Haible  <bruno@clisp.org>
36390
36391         * gnulib-tool (func_version): Use $version.
36392
36393 2007-09-16  Bruno Haible  <bruno@clisp.org>
36394
36395         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
36396         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
36397         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
36398         Reported by Greg Schafer <gschafer@zip.com.au>.
36399
36400 2007-09-15  Bruno Haible  <bruno@clisp.org>
36401
36402         * gnulib-tool (sed): Try a little harder to make bash understand the
36403         alias.
36404         Reported by Bruce Korb <bruce.korb@gmail.com>.
36405
36406 2007-09-13  Eric Blake  <ebb9@byu.net>
36407
36408         * ChangeLog: Remove conflict markers.
36409
36410 2007-09-13  Simon Josefsson  <simon@josefsson.org>
36411
36412         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
36413         Reported by Bruno Haible <bruno@clisp.org>.
36414
36415 2007-09-12  Bruno Haible  <bruno@clisp.org>
36416
36417         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
36418         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
36419         is not defined.
36420
36421 2007-09-12  Eric Blake  <ebb9@byu.net>
36422
36423         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
36424         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
36425         Autoconf definition.
36426         * modules/euidaccess (Depends-on): Add extensions, for
36427         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
36428         * modules/fnmatch (Depends-on): Likewise.
36429         * modules/getaddrinfo (Depends-on): Likewise.
36430         * modules/getdelim (Depends-on): Likewise.
36431         * modules/getline (Depends-on): Likewise.
36432         * modules/getsubopt (Depends-on): Likewise.
36433         * modules/gettext (Depends-on): Likewise.
36434         * modules/group-member (Depends-on): Likewise.
36435         * modules/mbchar (Depends-on): Likewise.
36436         * modules/memmem (Depends-on): Likewise.
36437         * modules/mempcpy (Depends-on): Likewise.
36438         * modules/memrchr (Depends-on): Likewise.
36439         * modules/pagealign_alloc (Depends-on): Likewise.
36440         * modules/readutmp (Depends-on): Likewise.
36441         * modules/stpcpy (Depends-on): Likewise.
36442         * modules/stpncpy (Depends-on): Likewise.
36443         * modules/strchrnul (Depends-on): Likewise.
36444         * modules/strndup (Depends-on): Likewise.
36445         * modules/strsep (Depends-on): Likewise.
36446         * modules/strverscmp (Depends-on): Likewise.
36447         * modules/vasprintf (Depends-on): Likewise.
36448         * modules/wcwidth (Depends-on): Likewise.
36449         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
36450         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
36451         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
36452         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
36453         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36454         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36455         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
36456         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36457         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
36458         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36460         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
36461         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
36462         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
36463         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
36464         * m4/readutmp.m4 (gl_READUTMP): Likewise.
36465         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36466         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
36467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36468         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
36469         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36470         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
36471         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36472         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
36473         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
36474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36475         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
36476         so that lock.m4 can be used in gettext without extensions module.
36477
36478 2007-09-11  Bruno Haible  <bruno@clisp.org>
36479
36480         * m4/isc-posix.m4: Remove file.
36481         Suggested by Eric Blake.
36482
36483 2007-09-11  Eric Blake  <ebb9@byu.net>
36484
36485         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
36486
36487 2007-09-10  Bruno Haible  <bruno@clisp.org>
36488
36489         * posix-modules: Fix typo in error message.
36490         Reported by Matt <mkraai@beckman.com>.
36491
36492 2007-09-09  Bruno Haible  <bruno@clisp.org>
36493
36494         * doc/functions/getdelim.texi: Update list of platforms lacking the
36495         function.
36496         * doc/functions/getline.texi: Likewise.
36497
36498 2007-09-09  Jim Meyering  <jim@meyering.net>
36499
36500         * lib/hash.c (hash_initialize): Detect calloc failure.
36501         Reported by Bruno Haible.
36502
36503 2007-09-09  Bruno Haible  <bruno@clisp.org>
36504
36505         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
36506         malloc or realloc fails.
36507
36508 2007-09-09  Bruno Haible  <bruno@clisp.org>
36509
36510         * modules/getcwd (Depends-on): Add malloc-posix.
36511         * modules/glob (Depends-on): Likewise.
36512         * modules/putenv (Depends-on): Likewise.
36513         * modules/strdup (Depends-on): Likewise.
36514         * modules/getdelim (Depends-on): Add realloc-posix.
36515         * modules/read-file (Depends-on): Likewise.
36516
36517 2007-09-09  Bruno Haible  <bruno@clisp.org>
36518
36519         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
36520         (gl_FUNC_MALLOC_POSIX): Require it.
36521         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
36522         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
36523         * modules/realloc (Files): Add m4/malloc.m4.
36524         * modules/calloc (Files): Likewise.
36525
36526 2007-09-09  Bruno Haible  <bruno@clisp.org>
36527
36528         * modules/malloc-posix: New file.
36529         * modules/malloc (Depends-on): Add malloc-posix.
36530         * lib/malloc.c: Include errno.h.
36531         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
36532         and a POSIX-compatible malloc into a single function. Set ENOMEM
36533         when returning NULL.
36534         * m4/malloc.m4: New file.
36535         * doc/functions/malloc.texi: Mention the malloc-posix module.
36536         * lib/stdlib_.h (malloc): New declaration.
36537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36538         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
36539         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
36540         and HAVE_MALLOC_POSIX.
36541
36542 2007-09-09  Bruno Haible  <bruno@clisp.org>
36543
36544         * modules/realloc-posix: New file.
36545         * modules/realloc (Depends-on): Add realloc-posix.
36546         * lib/realloc.c: Include errno.h.
36547         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
36548         and a POSIX-compatible realloc into a single function. Set ENOMEM
36549         when returning NULL.
36550         * m4/realloc.m4: New file.
36551         * doc/functions/realloc.texi: Mention the realloc-posix module.
36552         * lib/stdlib_.h (realloc): New declaration.
36553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36554         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
36555         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
36556         and HAVE_REALLOC_POSIX.
36557
36558 2007-09-09  Bruno Haible  <bruno@clisp.org>
36559
36560         * modules/calloc-posix: New file.
36561         * modules/calloc (Depends-on): Add calloc-posix.
36562         * lib/calloc.c: Include errno.h.
36563         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
36564         and a POSIX-compatible calloc into a single function. Set ENOMEM
36565         when returning NULL.
36566         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
36567         * doc/functions/calloc.texi: Mention the calloc-posix module.
36568         * lib/stdlib_.h (calloc): New declaration.
36569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36570         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
36571         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
36572         and HAVE_CALLOC_POSIX.
36573
36574 2007-09-09  Bruno Haible  <bruno@clisp.org>
36575
36576         Allow for modules to show an arbitrary notice.
36577         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
36578         * gnulib-tool: New option --extract-notice.
36579         (func_usage): Document it.
36580         (sed_extract_prog): Update.
36581         (func_get_notice): New function.
36582         (func_modules_notice): New function.
36583         (func_import, func_create_testdir): Invoke it.
36584         Suggested by Jim Meyering.
36585
36586 2007-09-09  Bruno Haible  <bruno@clisp.org>
36587
36588         * gnulib-tool: New options --verbose, --quiet.
36589         (func_usage): Document them.
36590         (verbose): New variable.
36591         (func_execute_command): New function.
36592         (func_import): Don't show the module list and the file list if
36593         $verbose < 0.
36594         (func_create_testdir): Likewise. Use func_execute_command.
36595         (func_create_megatestdir): Use func_execute_command.
36596
36597 2007-09-08  Bruno Haible  <bruno@clisp.org>
36598
36599         * gnulib-tool (func_import): Prefer rsync over wget when available,
36600         for fetching the PO files.
36601
36602 2007-09-08  Bruno Haible  <bruno@clisp.org>
36603
36604         * posix-modules: New file. Portions copied from gnulib-tool.
36605         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
36606
36607 2007-09-08  Jim Meyering  <jim@meyering.net>
36608
36609         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
36610         * lib/fpending.h: Rename from __fpending.h.
36611         * lib/fpending.c: Rename from __fpending.c.
36612         Include "fpending.h", not "__fpending.h".
36613         * lib/__fpending.h, lib/__fpending.c: Remove files.
36614         * modules/fpending (Files): Reflect new file names.
36615         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
36616
36617 2007-09-08  Bruno Haible  <bruno@clisp.org>
36618
36619         * m4/inttypes-h.m4: Remove stub file.
36620
36621 2007-09-07  Simon Josefsson  <simon@josefsson.org>
36622
36623         * doc/headers/stdint.texi: Discuss #include_next issue.
36624
36625 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36626
36627         * build-aux/bootstrap: Remove obsolete comment about wget --help.
36628
36629 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36630
36631         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
36632         in variable name.
36633
36634 2007-09-03  Jim Meyering  <jim@meyering.net>
36635
36636         New module: git-version-gen.
36637         * modules/git-version-gen: New file.
36638
36639         Import changes from coreutils for bootstrap script.
36640
36641         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
36642
36643         bootstrap: uses rsync to download the .po files
36644         * build-aux/bootstrap (po_download_command_format): New global.
36645         (download_po_files): Use rsync.
36646         (update_po_files): Don't remove .po files after download,
36647         so future rsync runs can take advantage of the copies.
36648
36649         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
36650
36651         Solve the unnecessary-.po-file-regeneration problem once and for all.
36652         * build-aux/bootstrap (download_po_files): New function, renamed from
36653         get_translations.  Now, downloads, but doesn't update LINGUAS.
36654         (update_po_files): New function.
36655
36656         bootstrap: Ignore more.
36657         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
36658         uniwidth to e.g., lib/.gitignore.
36659         (slurp): Handle the sys_stat_.h -> sys mapping, too.
36660
36661         * build-aux/bootstrap: New setting: vc_ignore.
36662         (insert_sorted_if_absent): Create $file if absent.
36663         Adapt to new, possibly empty, list: $vc_ignore.
36664
36665         bootstrap: generate more ignorable names
36666         * build-aux/bootstrap (slurp): When generating ignorable names,
36667         also map .sin to .sed, .gperf to .c, and .y to .c.
36668
36669 2007-09-03  Jim Meyering  <jim@meyering.net>
36670
36671         * build-aux/git-version-gen: New file, from coreutils.  For details, see
36672         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
36673
36674 2007-09-02  Bruno Haible  <bruno@clisp.org>
36675
36676         Fix mis-recognition of 'mcs' on QNX 6.
36677         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
36678         output contains the string "Mono".
36679         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
36680         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
36681
36682 2007-09-01  Bruno Haible  <bruno@clisp.org>
36683
36684         Fix collision between uniwidth/* and linebreak modules.
36685         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
36686         u32_width): Remove declarations.
36687         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
36688         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
36689         streq3, streq2, streq1, streq0): Remove functions.
36690         (STREQ): Remove macro.
36691         (is_cjk_encoding): Remove function.
36692         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
36693         (uc_width, u8_width, u16_width, u32_width): Remove functions.
36694         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
36695         * NEWS: Document the change.
36696
36697 2007-09-01  Bruno Haible  <bruno@clisp.org>
36698
36699         * lib/streq.h: Add double-inclusion guard.
36700
36701 2007-09-01  Karl Berry  <karl@gnu.org>
36702
36703         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
36704
36705 2007-08-28  Jim Meyering  <jim@meyering.net>
36706
36707         Rename mreadlink_with_size to areadlink_with_size.
36708         * NEWS: Document the change.
36709         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
36710         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
36711         * lib/mreadlink.h: Rename this to...
36712         * lib/areadlink.h: ...this.
36713         * modules/mreadlink-with-size: Rename this to...
36714         * modules/areadlink-with-size: ...this.
36715         * lib/canonicalize.c: Reflect the renaming.
36716         * modules/canonicalize: Likewise.
36717
36718 2007-08-26  Bruno Haible  <bruno@clisp.org>
36719
36720         * gnulib-tool (func_import): When deciding which files to remove,
36721         consider also dangling symbolic links.
36722         Reported by Eric Blake.
36723
36724 2007-08-26  Bruno Haible  <bruno@clisp.org>
36725
36726         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
36727
36728 2007-08-23  Simon Josefsson  <simon@josefsson.org>
36729
36730         * lib/readline.c: Don't include getline.h, the prototype is now
36731         found in stdio.h.
36732
36733 2007-08-23  Jim Meyering  <jim@meyering.net>
36734
36735         Getdelim touchup.
36736         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
36737         around the funlockfile call, since funlockfile never sets errno.
36738         Don't set errno upon failed realloc.
36739
36740 2007-08-22  Eric Blake  <ebb9@byu.net>
36741
36742         Getline touchups.
36743         * lib/getdelim.c (getdelim): Revert regression that required *n to
36744         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
36745         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
36746         getdelim, rather than whether implementation is missing.
36747         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
36748         * lib/stdio_.h (getline): Also declare if replacement is
36749         required.
36750         * doc/functions/getdelim.texi: New file.
36751         * doc/functions/getline.texi: Likewise.
36752         * doc/gnulib.texi (Function Substitutes): Add new files.
36753         Reported by Bruno Haible.
36754
36755 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
36756
36757         * users.txt: Add Guile.
36758
36759 2007-08-22  Eric Blake  <ebb9@byu.net>
36760
36761         * tests/test-getdelim.c (main): Use remove, not unlink.
36762         * tests/test-getline.c (main): Likewise.
36763
36764         Move getline and getdelim into stdio.h, per POSIX 200x.
36765         * modules/getline (Files): Remove getline.h.
36766         (Depends-on): Add stdio.
36767         (configure.ac): Add module indicator.
36768         * modules/getdelim (Files): Remove getdelim.h.
36769         (Depends-on): Add stdio.
36770         (configure.ac): Add module indicator.
36771         * modules/stdio (Makefile.am): Work with new indicators.
36772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36773         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
36774         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36775         * lib/getdelim.h: Delete.
36776         * lib/getline.h: Delete.
36777         * lib/stdio_.h (getdelim, getline): Declare.
36778         * modules/getdelim-tests: New module.
36779         * modules/getline-tests: Likewise.
36780         * tests/test-getdelim.c: New file.
36781         * tests/test-getline.c: Likewise.
36782         * NEWS: Document the change.
36783         * lib/getline.c: Update choice of header.
36784         * lib/csharpcomp.c: Likewise.
36785         * lib/getpass.c: Likewise.
36786         * lib/javacomp.c: Likewise.
36787         * lib/javaversion.c: Likewise.
36788         * lib/yesno.c: Likewise.
36789         * lib/getdelim.c: Likewise.
36790         (getdelim): Set errno on failure, and avoid memory leak.
36791
36792 2007-08-19  Bruno Haible  <bruno@clisp.org>
36793
36794         * modules/closein (Depends-on): Add freadahead.
36795         * lib/closein.c: Include freadahead.h.
36796         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
36797         is zero.
36798
36799 2007-08-19  Bruno Haible  <bruno@clisp.org>
36800
36801         * modules/freadahead-tests: New file.
36802         * tests/test-freadahead.sh: New file.
36803         * tests/test-freadahead.c: New file.
36804
36805         * modules/freadahead: New file.
36806         * lib/freadahead.h: New file.
36807         * lib/freadahead.c: New file.
36808         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
36809         fbufmode, fpurge, freadable, fwritable.
36810
36811 2007-08-19  Eric Blake  <ebb9@byu.net>
36812
36813         Test yesno in combination with closein.
36814         * lib/yesno.c (yesno): Document use of stdin.
36815         * modules/yesno-tests (Files): New module.
36816         * tests/test-yesno.c (main): New file.
36817         * tests/test-yesno.sh: Likewise.
36818
36819 2007-08-19  Bruno Haible  <bruno@clisp.org>
36820
36821         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
36822         * lib/fseeko.c (rpl_fseeko): Likewise.
36823         * lib/fseterr.c (fseterr): Likewise.
36824
36825 2007-08-19  Bruno Haible  <bruno@clisp.org>
36826
36827         * tests/test-lseek.c (main): Disable a test for BeOS.
36828         * doc/functions/lseek.texi: Document the BeOS bug.
36829
36830 2007-08-19  Bruno Haible  <bruno@clisp.org>
36831             Eric Blake  <ebb9@byu.net>
36832
36833         * lib/lseek.c: Include <sys/stat.h>.
36834         (rpl_lseek): Add workaround code also for Unix platforms.
36835         Needed for BeOS.
36836         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
36837         * doc/functions/lseek.texi: Document BeOS definiency.
36838
36839 2007-08-18  Bruno Haible  <bruno@clisp.org>
36840
36841         * modules/fstrcmp-tests: New file.
36842         * tests/test-fstrcmp.c: New file.
36843
36844 2007-08-18  Bruno Haible  <bruno@clisp.org>
36845
36846         * modules/fstrcmp: New file, from GNU gettext with modifications.
36847         * lib/fstrcmp.h: New file, from GNU gettext.
36848         * lib/fstrcmp.c: New file, from GNU gettext.
36849         * MODULES.html.sh (String handling): Add fstrcmp.
36850
36851 2007-08-18  Bruno Haible  <bruno@clisp.org>
36852
36853         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
36854         'bool'.
36855         (diag, compareseq): Remove const from the ctxt argument.
36856         (USE_HEURISTIC): Undefine at the end.
36857
36858 2007-08-18  Jim Meyering  <jim@meyering.net>
36859
36860         New file: lib/idcache.h
36861         * NEWS: Mention the addition.
36862         * modules/idcache (Files): Add lib/idcache.h
36863         * lib/idcache.c: Include "idcache.h".
36864         Don't include <sys/types.h>.
36865         Add a FIXME comment.
36866         Move file-scoped "static" declarations to the top.
36867         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
36868
36869 2007-08-17  Bruno Haible  <bruno@clisp.org>
36870         and Paul Eggert  <eggert@cs.ucla.edu>
36871
36872         * MODULES.html.sh: Add diffseq.
36873         * modules/diffseq: New file.
36874         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
36875         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
36876
36877 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36878
36879         Import changes from coreutils for bootstrap script.
36880
36881         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
36882
36883         * build-aux/bootstrap (slurp): Work even in environments where
36884         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
36885         current code does not slurp files whose names start with ".", and
36886         this looks like it might be a troublesome area.
36887
36888         2007-07-11  Jim Meyering  <jim@meyering.net>
36889
36890         If there's a GPL vN copyright comment, require that N == 3.
36891
36892         2007-07-08  Jim Meyering  <jim@meyering.net>
36893
36894         Run the coreutils-specific code only if tests/Makefile.am.in exists.
36895         * build-aux/bootstrap (mam_template): Move definition out of loop.
36896
36897         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
36898
36899         * build-aux/bootstrap (symlink_to_dir): Rename function from
36900         symlink_to_gnulib.  Add a directory parameter.  Update all
36901         callers.
36902         (cp_mark_as_generated): Also check for -- and link to -- files in
36903         gl/.
36904
36905         2007-07-08  Jim Meyering  <jim@meyering.net>
36906
36907         Adapt to deeper hierarchy in gnulib.
36908         * build-aux/bootstrap (symlink_to_dir): If the destination
36909         directory doesn't exist, create it. This is required at least for
36910         "lib/uniwidth/cjk.h".
36911
36912         2007-05-15  Jim Meyering  <jim@meyering.net>
36913
36914         * build-aux/bootstrap: Now that generated Makefile.am files
36915         are no longer under version control, they must be created at
36916         bootstrap time.
36917
36918 2007-08-14  Ben Pfaff  <blp@gnu.org>
36919
36920         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36921
36922 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36923
36924         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36925         given the changes below.
36926         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36927         even on hosts that have padding bits beyond the supported 64.
36928
36929 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36930
36931         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36932         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36933         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36934         depends on it.
36935         (xstrtol_error): Remove.
36936         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36937         but with a different signature.
36938         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36939         * lib/xstrtol-error.c: Include exitfail.h.
36940         (xstrtol_fatal): New function, with a different signature from the
36941         old xstrtol_error, so that the caller need not worry about passing
36942         in an exit status, or about storage management of the option argument.
36943         (xstrtol_error): Now a static function.  Redo signature to
36944         implement xstrtol_fatal.  Output the correct number of hyphens in
36945         front of the option so that the caller need not worry about
36946         storage management.
36947         (N_): New macro.
36948         (_): Remove; not used now.
36949         * modules/xstrtol: Depend on getopt.
36950         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36951         of old STRTOL_FATAL_ERROR macro.
36952         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36953         of test program.
36954         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
36955         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
36956
36957 2007-08-08  Eric Blake  <ebb9@byu.net>
36958
36959         * lib/xstrtol-error.c: Add missing include.
36960
36961         Move xstrtol messages into gnulib domain, when --pobase is used.
36962         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
36963         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
36964         * modules/xstrtol (Files): Distribute new file.
36965         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
36966         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
36967         * tests/test-xstrtol.c: ...into new file.
36968         * tests/test-xstrtoul.c: Also test xstrtoul.
36969         * tests/test-xstrtoimax.c: Also test xstrtoimax.
36970         * tests/test-xstrtoumax.c: Also test xstrtoumax.
36971         * tests/test-xstrtol.sh: Drive the tests.
36972         * tests/test-xstrtoimax.sh: Likewise.
36973         * tests/test-xstrtoumax.sh: Likewise.
36974         * modules/xstrtol-tests: New module.
36975         * modules/xstrtoimax-tests: Likewise.
36976         * modules/xstrtoumax-tests: Likewise.
36977
36978 2007-08-08  Jim Meyering  <jim@meyering.net>
36979
36980         New function: mfile_name_concat.
36981         * lib/filenamecat.c (mfile_name_concat): New function, just like
36982         file_name_concat, but return NULL upon failure rather than exiting
36983         with a diagnostic.
36984         * lib/filenamecat.h: Declare it.
36985
36986 2007-08-07  Bruno Haible  <bruno@clisp.org>
36987
36988         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
36989         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
36990         warning from gcc.
36991         Reported by Eric Blake.
36992
36993 2007-08-07  Simon Josefsson  <simon@josefsson.org>
36994
36995         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
36996         * modules/crypto/arcfour (License): Likewise.
36997         * modules/crypto/des-tests (License): Likewise.
36998         * modules/crypto/gc-arctwo-tests (License): Likewise.
36999         * modules/crypto/gc-des-tests (License): Likewise.
37000         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37001         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37002         * modules/crypto/gc-md2-tests (License): Likewise.
37003         * modules/crypto/gc-md4-tests (License): Likewise.
37004         * modules/crypto/gc-md5-tests (License): Likewise.
37005         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37006         * modules/crypto/gc-rijndael-tests (License): Likewise.
37007         * modules/crypto/gc-sha1-tests (License): Likewise.
37008         * modules/crypto/gc-tests (License): Likewise.
37009         * modules/crypto/hmac-md5 (License): Likewise.
37010         * modules/crypto/hmac-sha1 (License): Likewise.
37011         * modules/crypto/md2-tests (License): Likewise.
37012         * modules/crypto/md4-tests (License): Likewise.
37013         * modules/crypto/md5 (License): Likewise.
37014         * modules/crypto/rijndael (License): Likewise.
37015         * modules/crypto/sha1 (License): Likewise.
37016         * modules/memxor (License): Likewise.
37017
37018 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37019         and Bruno Haible  <bruno@clisp.org>
37020
37021         * NEWS: Describe interface changes to human, xstrtol.
37022         * lib/human.h: Include <xstrtol.h>.
37023         (human_options): Return enum strtol_error, not int.  Remove
37024         bool arg; take int * instead.
37025         * lib/human.c: Don't include "gettext.h".
37026         (_): Remove; no longer used.
37027         Don't include <xstrtol.h>, since human.h does it.
37028         (human_options): Adjust to abovementioned interface changes.
37029         Do not report error to stderr; that's now the caller's
37030         responsibility.
37031         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37032         interface change.
37033         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37034         Str, Argument_type_string.  All uses changed.  Put " argument"
37035         in diagnostics to make them clearer.  Change wording of suffix
37036         message for clarity.
37037         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37038         Argument_type_string.
37039         (STRTOL_FATAL_WARN): Remove; no longer used.
37040         * modules/human (Depends-on): Remove gettext-h.
37041
37042 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37043
37044         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37045
37046 2007-07-31  Bruno Haible  <bruno@clisp.org>
37047
37048         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37049         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37050         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37051
37052 2007-07-31  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37055         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37056
37057 2007-07-30  Bruno Haible  <bruno@clisp.org>
37058
37059         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37060         * modules/c-ctype (License): Likewise.
37061         * modules/c-strcase (License): Likewise.
37062         * modules/check-version (License): Likewise.
37063         * modules/iconv (License): Likewise.
37064         * modules/iconv_open (License): Likewise.
37065         * modules/read-file (License): Likewise.
37066         * modules/striconv (License): Likewise.
37067         * modules/strverscmp (License): Likewise.
37068         * modules/vasprintf (License): Likewise.
37069         * modules/crypto/des (License): Likewise.
37070         * modules/crypto/gc (License): Likewise.
37071         * modules/crypto/gc-arcfour (License): Likewise.
37072         * modules/crypto/gc-arctwo (License): Likewise.
37073         * modules/crypto/gc-des (License): Likewise.
37074         * modules/crypto/gc-hmac-md5 (License): Likewise.
37075         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37076         * modules/crypto/gc-md2 (License): Likewise.
37077         * modules/crypto/gc-md4 (License): Likewise.
37078         * modules/crypto/gc-md5 (License): Likewise.
37079         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37080         * modules/crypto/gc-random (License): Likewise.
37081         * modules/crypto/gc-rijndael (License): Likewise.
37082         * modules/crypto/gc-sha1 (License): Likewise.
37083         * modules/crypto/md2 (License): Likewise.
37084         * modules/crypto/md4 (License): Likewise.
37085
37086 2007-07-30  Jim Meyering  <jim@meyering.net>
37087
37088         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37089         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37090         it has valid stat data.  This bug would cause du not to count the
37091         sizes of inaccessible directories.
37092         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37093         in <http://bugzilla.redhat.com/250077>.
37094
37095 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37096             Bruno Haible  <bruno@clisp.org>
37097
37098         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37099         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37100         #include_next, gives a diagnostic about it, but reports no error in
37101         the exit code.
37102         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37103
37104 2007-07-24  Ben Pfaff  <blp@gnu.org>
37105
37106         Improve name: "count-one-bits" is better than "popcount".
37107         * MODULES.html.sh: Update name.
37108         * lib/popcount.h: Renamed lib/count-one-bits.h.
37109         (popcount): Renamed count_one_bits.
37110         (popcountl): Renamed count_one_bits_l.
37111         (popcountll): Renamed count_one_bits_ll.
37112         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37113         * modules/popcount: Renamed module/count-one-bits.
37114         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37115         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37116
37117 2007-07-23  Ben Pfaff  <blp@gnu.org>
37118
37119         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37120         better code generation, and add U to large constants to avoid
37121         warnings, in non-GCC case.
37122         Suggested by Bruno Haible.
37123
37124 2007-07-23  Ben Pfaff  <blp@gnu.org>
37125
37126         * lib/popcount.h: Use verify_true instead of if...abort.
37127         * modules/popcount: Depend on verify module.
37128         Suggested by Jim Meyering.
37129
37130 2007-07-23  Bruno Haible  <bruno@clisp.org>
37131
37132         * gnulib-tool (func_import): Create a .cvsignore file also when the
37133         directory is not yet in CVS but the toplevel directory is. When
37134         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37135         Reported by Karl Berry.
37136
37137 2007-07-22  Ben Pfaff  <blp@gnu.org>
37138
37139         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37140         case.
37141         Suggested by Eric Blake.
37142
37143 2007-07-22  Ben Pfaff  <blp@gnu.org>
37144
37145         New module: popcount.
37146         * MODULES.html.sh: Add popcount.
37147         * modules/popcount: New file.
37148         * modules/popcount-tests: New file.
37149         * tests/test-popcount.c: New file.
37150         * lib/popcount.h: New file.
37151         * m4/popcount.m4: New file.
37152
37153 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37154
37155         * build-aux/announce-gen: Update to GPLv3.
37156
37157         * build-aux/config.guess: Update from config.
37158
37159 2007-07-21  Bruno Haible  <bruno@clisp.org>
37160
37161         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37162         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37163
37164 2007-07-20  Jim Meyering  <jim@meyering.net>
37165
37166         * check-module: Diagnose a self-dependency.
37167
37168 2007-07-19  Bruno Haible  <bruno@clisp.org>
37169
37170         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37171         empty.
37172         Reported by Eric Blake.
37173
37174 2007-07-18  Bruno Haible  <bruno@clisp.org>
37175
37176         * gnulib-tool: New options --po-base, --po-domain.
37177         (func_usage): Document them.
37178         (pobase, po_domain): New variables.
37179         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37180         DEFAULT_TEXT_DOMAIN.
37181         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37182         (func_import): Consider pobase and po_domain. Create a po/ directory.
37183         (func_create_testdir): Set pobase and po_domain to empty.
37184         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37185         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37186
37187 2007-07-18  Bruno Haible  <bruno@clisp.org>
37188
37189         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37190         EXTRA_DIST augmentation for files in build-aux/.
37191
37192 2007-07-16  Bruno Haible  <bruno@clisp.org>
37193
37194         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37195         * modules/getdelim (License): Likewise.
37196
37197 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37198
37199         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37200         * modules/d-type (License): Likewise.
37201         * modules/extensions (License): Likewise.
37202         * modules/fnmatch (License): Likewise.
37203         * modules/fseeko (License): Likewise.
37204         * modules/getaddrinfo (License): Likewise.
37205         * modules/getline (License): Likewise.
37206         * modules/getlogin_r (License): Likewise.
37207         * modules/getpass (License): Likewise.
37208         * modules/gettimeofday (License): Likewise.
37209         * modules/glob (License): Likewise.
37210         * modules/inet_ntop (License): Likewise.
37211         * modules/malloc (License): Likewise.
37212         * modules/malloca (License): Likewise.
37213         * modules/memmem (License): Likewise.
37214         * modules/mempcpy (License): Likewise.
37215         * modules/memset (License): Likewise.
37216         * modules/minmax (License): Likewise.
37217         * modules/mktime (License): Likewise.
37218         * modules/netinet_in (License): Likewise.
37219         * modules/pathmax (License): Likewise.
37220         * modules/poll (License): Likewise.
37221         * modules/regex (License): Likewise.
37222         * modules/snprintf (License): Likewise.
37223         * modules/stdbool (License): Likewise.
37224         * modules/stdint (License): Likewise.
37225         * modules/stdio (License): Likewise.
37226         * modules/strcase (License): Likewise.
37227         * modules/strcasestr (License): Likewise.
37228         * modules/strdup (License): Likewise.
37229         * modules/string (License): Likewise.
37230         * modules/strndup (License): Likewise.
37231         * modules/strnlen (License): Likewise.
37232         * modules/strpbrk (License): Likewise.
37233         * modules/strptime (License): Likewise.
37234         * modules/strsep (License): Likewise.
37235         * modules/sys_select (License): Likewise.
37236         * modules/sys_socket (License): Likewise.
37237         * modules/sys_stat (License): Likewise.
37238         * modules/sys_time (License): Likewise.
37239         * modules/time (License): Likewise.
37240         * modules/time_r (License): Likewise.
37241         * modules/timegm (License): Likewise.
37242         * modules/unistd (License): Likewise.
37243         * modules/vsnprintf (License): Likewise.
37244         * modules/wctype (License): Likewise.
37245
37246 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37247
37248         * modules/argz (License): LGPLv2+.
37249
37250 2007-07-15  Karl Berry  <karl@gnu.org>
37251
37252         * doc/gnulib.texi: revise node structure per new fdl.texi.
37253
37254 2007-07-14  Bruno Haible  <bruno@clisp.org>
37255
37256         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37257         the output file.
37258         * lib/uniname/uninames.h: Regenerated.
37259
37260 2007-07-14  Karl Berry  <karl@gnu.org>
37261
37262         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37263         omitting sectioning and index commands.
37264
37265 2007-07-13  Bruno Haible  <bruno@clisp.org>
37266
37267         New gnulib-tool option --more-symlinks.
37268         * gnulib-tool (func_usage): Document --more-symlinks.
37269         (do_copyrights): New variable.
37270         Recognize option --more-symlinks.
37271         (func_import): Don't add a copyright notice transform to
37272         sed_transform_lib_file if do_copyrights is empty.
37273
37274 2007-07-13  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/vasnprintf.c (decimal_point_char): Define also if
37277         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37278         && !NEED_PRINTF_DIRECTIVE_A.
37279         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37280         Gary V. Vaughan <gary@gnu.org>.
37281
37282 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37283
37284         * lib/inttypes_.h: Undo previous change, since it was fixed
37285         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37286
37287 2007-07-13  Bruno Haible  <bruno@clisp.org>
37288
37289         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37290         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37291
37292 2007-07-13  Jim Meyering  <jim@meyering.net>
37293
37294         df: Don't fail for Tru64's "file-on-file mount".
37295         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37296         so we fall through and use statfs instead.  Details here:
37297         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37298         Reported by Albert Chin.
37299
37300 2007-07-13  Bruno Haible  <bruno@clisp.org>
37301
37302         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37303         * modules/configmake (License): Likewise.
37304         * modules/gettext (License): Likewise.
37305         * modules/gettext-h (License): Likewise.
37306         * modules/include_next (License): Likewise.
37307         * modules/link-warning (License): Likewise.
37308         * modules/localcharset (License): Likewise.
37309         * modules/localename (License): Likewise.
37310         * modules/lock (License): Likewise.
37311         * modules/relocatable-lib-lgpl (License): Likewise.
37312         * modules/size_max (License): Likewise.
37313         * modules/vasnprintf (License): Likewise.
37314         * modules/wchar (License): Likewise.
37315         * modules/xsize (License): Likewise.
37316
37317 2007-07-13  Bruno Haible  <bruno@clisp.org>
37318
37319         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37320         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37321
37322 2007-07-12  Bruno Haible  <bruno@clisp.org>
37323
37324         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37325         in the modules files.
37326
37327 2007-07-11  Karl Berry  <karl@gnu.org>
37328
37329         * MODULES.html.sh (func_module): use
37330          sed -e '\|^'"${includefile}"'$|d'
37331          instead of /.../d, to avoid errors on $includefile's containing /.
37332
37333 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37334
37335         * gnulib-tool (func_import): Avoid duplication of --avoid
37336         statements
37337         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37338         names to `_' in variable names.
37339
37340 2007-07-10  Eric Blake  <ebb9@byu.net>
37341
37342         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37343         * NEWS: Document this change.
37344
37345 2007-07-08  Bruno Haible  <bruno@clisp.org>
37346
37347         Update to Unicode 5.0.
37348         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37349         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37350         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37351         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37352         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37353         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37354         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37355         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37356         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37357         U+10A3F, U+1D242..U+1D244.
37358         (nonspacing_table_ind): Update.
37359         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37360         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37361
37362 2007-07-08  Bruno Haible  <bruno@clisp.org>
37363
37364         Update to Unicode 5.0.
37365         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
37366         code transform. Extend the name index field of unicode_name_to_code and
37367         unicode_code_to_name from 16 to 24 bits.
37368         * lib/uniname/uniname.c (unicode_character_name,
37369         unicode_name_character): Add the range 0x12xxx to the code transform.
37370         * lib/uniname/uninames.h: Regenerated.
37371         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
37372
37373 2007-07-07  Bruno Haible  <bruno@clisp.org>
37374
37375         * modules/wcwidth-tests: New file.
37376         * tests/test-wcwidth.c: New file.
37377
37378         Work around MacOS X wcwidth() bug.
37379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
37380         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
37381         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
37382         original wcwidth in non-UTF-8 locales.
37383         * modules/wcwidth (Depends-on): Add localcharset, streq,
37384         uniwidth/width.
37385         * doc/functions/wcwidth.texi: Update.
37386
37387 2007-07-07  Bruno Haible  <bruno@clisp.org>
37388
37389         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
37390         (wcwidth): New declaration.
37391         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
37392         macros.
37393         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
37394         here. Prepare for creating <wchar.h> unconditionally.
37395         * modules/wchar (Depends-on): Add link-warning.
37396         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
37397         REPLACE_WCWIDTH, and GL_LINK_WARNING.
37398         * lib/wcwidth.h: Remove file.
37399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
37400         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
37401         * modules/wcwidth (Files): Remove lib/wcwidth.h.
37402         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
37403         (Include): Replace wcwidth.h with <wchar.h>.
37404         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
37405         * lib/mbchar.h: Don't include wcwidth.h.
37406         * lib/mbswidth.c: Likewise.
37407         * NEWS: Mention the change.
37408
37409 2007-07-07  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
37412         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
37413         definition with an external declaration.
37414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
37415         defined as a function. Remove AC_C_INLINE requirement.
37416         * modules/wcwidth (Files): Add lib/wcwidth.c.
37417         (Makefile.am): Remove redundant statement.
37418
37419 2007-07-07  Bruno Haible  <bruno@clisp.org>
37420
37421         * MODULES.html.sh (Unicode string functions): Add the new modules.
37422
37423         * tests/uniwidth/test-u32-strwidth.c: New file.
37424         * modules/uniwidth/u32-strwidth-tests: New file.
37425
37426         * lib/uniwidth/u32-strwidth.c: New file.
37427         * modules/uniwidth/u32-strwidth: New file.
37428
37429         * tests/uniwidth/test-u16-strwidth.c: New file.
37430         * modules/uniwidth/u16-strwidth-tests: New file.
37431
37432         * lib/uniwidth/u16-strwidth.c: New file.
37433         * modules/uniwidth/u16-strwidth: New file.
37434
37435         * tests/uniwidth/test-u8-strwidth.c: New file.
37436         * modules/uniwidth/u8-strwidth-tests: New file.
37437
37438         * lib/uniwidth/u8-strwidth.c: New file.
37439         * modules/uniwidth/u8-strwidth: New file.
37440
37441         * tests/uniwidth/test-u32-width.c: New file.
37442         * modules/uniwidth/u32-width-tests: New file.
37443
37444         * lib/uniwidth/u32-width.c: New file.
37445         * modules/uniwidth/u32-width: New file.
37446
37447         * tests/uniwidth/test-u16-width.c: New file.
37448         * modules/uniwidth/u16-width-tests: New file.
37449
37450         * lib/uniwidth/u16-width.c: New file.
37451         * modules/uniwidth/u16-width: New file.
37452
37453         * tests/uniwidth/test-u8-width.c: New file.
37454         * modules/uniwidth/u8-width-tests: New file.
37455
37456         * lib/uniwidth/u8-width.c: New file.
37457         * modules/uniwidth/u8-width: New file.
37458
37459         * tests/uniwidth/test-uc_width.c: New file.
37460         * modules/uniwidth/width-tests: New file.
37461
37462         * lib/uniwidth/width.c: New file, from GNU libiconv.
37463         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
37464         * modules/uniwidth/width: New file.
37465
37466         * lib/uniwidth.h: New file, from GNU libiconv.
37467         * modules/uniwidth/base: New file.
37468
37469 2007-07-07  Bruno Haible  <bruno@clisp.org>
37470
37471         * lib/uniname.h: New file, from GNU gettext.
37472         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
37473         * lib/uniname/uninames.h: New file, from GNU gettext.
37474         * lib/uniname/uniname.c: New file, from GNU gettext.
37475         * tests/uniname/test-uninames.sh: New file.
37476         * tests/uniname/test-uninames.c: New file, from GNU gettext.
37477         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
37478         * modules/uniname/base: New file.
37479         * modules/uniname/uniname: New file.
37480         * modules/uniname/uniname-tests: New file.
37481         * MODULES.html.sh (Unicode string functions): Add the new modules.
37482
37483 2007-07-06  Bruno Haible  <bruno@clisp.org>
37484
37485         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
37486
37487 2007-07-06  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
37490         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
37491         includes <cygwin/sys_time.h> which includes <sys/select.h> which
37492         include <sys/time.h>.
37493         Reported by Eric Blake.
37494
37495 2007-07-06  Eric Blake  <ebb9@byu.net>
37496
37497         Fix testing canonicalize on cygwin.
37498         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37499         Revert patch from 2007-06-19.
37500         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
37501         canonicalize module is also in use.
37502         * tests/test-canonicalize.c: New file.
37503         * tests/test-canonicalize.sh: Likewise.
37504         * modules/canonicalize-tests: Likewise.
37505
37506 2007-07-06  Jim Meyering  <jim@meyering.net>
37507
37508         * lib/getugroups.c (getugroups): Detect getgrent failure.
37509         Adjust comment to reflect reality: this function may return -1.
37510
37511 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37512
37513         * build-aux/bootstrap (TP_URL,get_translations): Update to use
37514         the new TP address.
37515         (usage): Fix typo
37516         (gnulib_mk): New variable.
37517
37518 2007-07-05  Jim Meyering  <jim@meyering.net>
37519
37520         Don't let endgrent clobber errno, no matter how improbable.
37521         * lib/getugroups.c (getugroups): Save and restore errno around
37522         endgrent call.
37523
37524         Close the group DB even when failing with 2^31 or more members.
37525         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
37526
37527 2007-07-04  Jim Meyering  <jim@meyering.net>
37528
37529         * lib/getugroups.h: New file.
37530         * lib/getugroups.c: Include "getugroups.h".
37531         Remove uses of "register" keyword.
37532         Move local variable, "cp", down into scope where used.
37533         Give "username" parameter the "const" attribute.
37534         * modules/getugroups (Files): Add lib/getugroups.h
37535
37536 2007-07-04  Karl Berry  <karl@gnu.org>
37537
37538         * MODULES.html.sh (func_all_modules): Complete rename of
37539         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
37540
37541 2007-07-02  Bruno Haible  <bruno@clisp.org>
37542
37543         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
37544         mode, when inttypes.h comes from gnulib.
37545         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37546
37547 2007-07-02  Simon Josefsson  <simon@josefsson.org>
37548
37549         * NEWS: Mention lgpl module name change.
37550
37551         * modules/lgpl-2.1: Renamed from lgpl.
37552
37553         * NEWS: Mention gpl module name change.
37554
37555         * modules/gpl-3.0: New file, based on gpl-2.0.
37556
37557         * modules/gpl-2.0: Renamed from gpl.
37558
37559         * modules/gpl: Fix filename, doc/gpl.texi is now found at
37560         doc/gpl-2.0.texi.
37561
37562 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37563
37564         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
37565         #define __STDC_LIMIT_MACROS temporarily while including
37566         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
37567         Problem reported by Joel E. Denny in
37568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
37569
37570 2007-07-01  Bruno Haible  <bruno@clisp.org>
37571
37572         * lib/unistdio.h: New file.
37573         * lib/unistdio/u-asnprintf.h: New file.
37574         * lib/unistdio/u-asprintf.h: New file.
37575         * lib/unistdio/u-printf-args.c: New file.
37576         * lib/unistdio/u-printf-args.h: New file.
37577         * lib/unistdio/u-printf-parse.h: New file.
37578         * lib/unistdio/u-snprintf.h: New file.
37579         * lib/unistdio/u-sprintf.h: New file.
37580         * lib/unistdio/u-vasprintf.h: New file.
37581         * lib/unistdio/u-vsnprintf.h: New file.
37582         * lib/unistdio/u-vsprintf.h: New file.
37583         * lib/unistdio/ulc-asnprintf.c: New file.
37584         * lib/unistdio/ulc-asprintf.c: New file.
37585         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
37586         * lib/unistdio/ulc-printf-parse.c: New file.
37587         * lib/unistdio/ulc-snprintf.c: New file.
37588         * lib/unistdio/ulc-sprintf.c: New file.
37589         * lib/unistdio/ulc-vasnprintf.c: New file.
37590         * lib/unistdio/ulc-vasprintf.c: New file.
37591         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
37592         * lib/unistdio/ulc-vsnprintf.c: New file.
37593         * lib/unistdio/ulc-vsprintf.c: New file.
37594         * lib/unistdio/u8-asnprintf.c: New file.
37595         * lib/unistdio/u8-asprintf.c: New file.
37596         * lib/unistdio/u8-printf-parse.c: New file.
37597         * lib/unistdio/u8-snprintf.c: New file.
37598         * lib/unistdio/u8-sprintf.c: New file.
37599         * lib/unistdio/u8-vasnprintf.c: New file.
37600         * lib/unistdio/u8-vasprintf.c: New file.
37601         * lib/unistdio/u8-vsnprintf.c: New file.
37602         * lib/unistdio/u8-vsprintf.c: New file.
37603         * lib/unistdio/u8-u8-asnprintf.c: New file.
37604         * lib/unistdio/u8-u8-asprintf.c: New file.
37605         * lib/unistdio/u8-u8-snprintf.c: New file.
37606         * lib/unistdio/u8-u8-sprintf.c: New file.
37607         * lib/unistdio/u8-u8-vasnprintf.c: New file.
37608         * lib/unistdio/u8-u8-vasprintf.c: New file.
37609         * lib/unistdio/u8-u8-vsnprintf.c: New file.
37610         * lib/unistdio/u8-u8-vsprintf.c: New file.
37611         * lib/unistdio/u16-asnprintf.c: New file.
37612         * lib/unistdio/u16-asprintf.c: New file.
37613         * lib/unistdio/u16-printf-parse.c: New file.
37614         * lib/unistdio/u16-snprintf.c: New file.
37615         * lib/unistdio/u16-sprintf.c: New file.
37616         * lib/unistdio/u16-vasnprintf.c: New file.
37617         * lib/unistdio/u16-vasprintf.c: New file.
37618         * lib/unistdio/u16-vsnprintf.c: New file.
37619         * lib/unistdio/u16-vsprintf.c: New file.
37620         * lib/unistdio/u16-u16-asnprintf.c: New file.
37621         * lib/unistdio/u16-u16-asprintf.c: New file.
37622         * lib/unistdio/u16-u16-snprintf.c: New file.
37623         * lib/unistdio/u16-u16-sprintf.c: New file.
37624         * lib/unistdio/u16-u16-vasnprintf.c: New file.
37625         * lib/unistdio/u16-u16-vasprintf.c: New file.
37626         * lib/unistdio/u16-u16-vsnprintf.c: New file.
37627         * lib/unistdio/u16-u16-vsprintf.c: New file.
37628         * lib/unistdio/u32-asnprintf.c: New file.
37629         * lib/unistdio/u32-asprintf.c: New file.
37630         * lib/unistdio/u32-printf-parse.c: New file.
37631         * lib/unistdio/u32-snprintf.c: New file.
37632         * lib/unistdio/u32-sprintf.c: New file.
37633         * lib/unistdio/u32-vasnprintf.c: New file.
37634         * lib/unistdio/u32-vasprintf.c: New file.
37635         * lib/unistdio/u32-vsnprintf.c: New file.
37636         * lib/unistdio/u32-vsprintf.c: New file.
37637         * lib/unistdio/u32-u32-asnprintf.c: New file.
37638         * lib/unistdio/u32-u32-asprintf.c: New file.
37639         * lib/unistdio/u32-u32-snprintf.c: New file.
37640         * lib/unistdio/u32-u32-sprintf.c: New file.
37641         * lib/unistdio/u32-u32-vasnprintf.c: New file.
37642         * lib/unistdio/u32-u32-vasprintf.c: New file.
37643         * lib/unistdio/u32-u32-vsnprintf.c: New file.
37644         * lib/unistdio/u32-u32-vsprintf.c: New file.
37645         * tests/unistdio/test-ulc-asnprintf1.c: New file.
37646         * tests/unistdio/test-ulc-asnprintf1.h: New file.
37647         * tests/unistdio/test-ulc-printf1.h: New file.
37648         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
37649         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
37650         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
37651         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
37652         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
37653         * tests/unistdio/test-ulc-vasprintf1.c: New file.
37654         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
37655         * tests/unistdio/test-ulc-vsprintf1.c: New file.
37656         * tests/unistdio/test-u8-asnprintf1.c: New file.
37657         * tests/unistdio/test-u8-asnprintf1.h: New file.
37658         * tests/unistdio/test-u8-printf1.h: New file.
37659         * tests/unistdio/test-u8-vasnprintf1.c: New file.
37660         * tests/unistdio/test-u8-vasnprintf2.c: New file.
37661         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
37662         * tests/unistdio/test-u8-vasnprintf3.c: New file.
37663         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
37664         * tests/unistdio/test-u8-vasprintf1.c: New file.
37665         * tests/unistdio/test-u8-vsnprintf1.c: New file.
37666         * tests/unistdio/test-u8-vsprintf1.c: New file.
37667         * tests/unistdio/test-u16-asnprintf1.c: New file.
37668         * tests/unistdio/test-u16-asnprintf1.h: New file.
37669         * tests/unistdio/test-u16-printf1.h: New file.
37670         * tests/unistdio/test-u16-vasnprintf1.c: New file.
37671         * tests/unistdio/test-u16-vasnprintf2.c: New file.
37672         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
37673         * tests/unistdio/test-u16-vasnprintf3.c: New file.
37674         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
37675         * tests/unistdio/test-u16-vasprintf1.c: New file.
37676         * tests/unistdio/test-u16-vsnprintf1.c: New file.
37677         * tests/unistdio/test-u16-vsprintf1.c: New file.
37678         * tests/unistdio/test-u32-asnprintf1.c: New file.
37679         * tests/unistdio/test-u32-asnprintf1.h: New file.
37680         * tests/unistdio/test-u32-printf1.h: New file.
37681         * tests/unistdio/test-u32-vasnprintf1.c: New file.
37682         * tests/unistdio/test-u32-vasnprintf2.c: New file.
37683         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
37684         * tests/unistdio/test-u32-vasnprintf3.c: New file.
37685         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
37686         * tests/unistdio/test-u32-vasprintf1.c: New file.
37687         * tests/unistdio/test-u32-vsnprintf1.c: New file.
37688         * tests/unistdio/test-u32-vsprintf1.c: New file.
37689         * modules/unistdio/base: New file.
37690         * modules/unistdio/u-printf-args: New file.
37691         * modules/unistdio/ulc-asnprintf: New file.
37692         * modules/unistdio/ulc-asprintf: New file.
37693         * modules/unistdio/ulc-fprintf: New file.
37694         * modules/unistdio/ulc-printf-parse: New file.
37695         * modules/unistdio/ulc-snprintf: New file.
37696         * modules/unistdio/ulc-sprintf: New file.
37697         * modules/unistdio/ulc-vasnprintf: New file.
37698         * modules/unistdio/ulc-vasprintf: New file.
37699         * modules/unistdio/ulc-vfprintf: New file.
37700         * modules/unistdio/ulc-vsnprintf: New file.
37701         * modules/unistdio/ulc-vsprintf: New file.
37702         * modules/unistdio/u8-asnprintf: New file.
37703         * modules/unistdio/u8-asprintf: New file.
37704         * modules/unistdio/u8-printf-parse: New file.
37705         * modules/unistdio/u8-snprintf: New file.
37706         * modules/unistdio/u8-sprintf: New file.
37707         * modules/unistdio/u8-vasnprintf: New file.
37708         * modules/unistdio/u8-vasprintf: New file.
37709         * modules/unistdio/u8-vsnprintf: New file.
37710         * modules/unistdio/u8-vsprintf: New file.
37711         * modules/unistdio/u8-u8-asnprintf: New file.
37712         * modules/unistdio/u8-u8-asprintf: New file.
37713         * modules/unistdio/u8-u8-snprintf: New file.
37714         * modules/unistdio/u8-u8-sprintf: New file.
37715         * modules/unistdio/u8-u8-vasnprintf: New file.
37716         * modules/unistdio/u8-u8-vasprintf: New file.
37717         * modules/unistdio/u8-u8-vsnprintf: New file.
37718         * modules/unistdio/u8-u8-vsprintf: New file.
37719         * modules/unistdio/u16-asnprintf: New file.
37720         * modules/unistdio/u16-asprintf: New file.
37721         * modules/unistdio/u16-printf-parse: New file.
37722         * modules/unistdio/u16-snprintf: New file.
37723         * modules/unistdio/u16-sprintf: New file.
37724         * modules/unistdio/u16-vasnprintf: New file.
37725         * modules/unistdio/u16-vasprintf: New file.
37726         * modules/unistdio/u16-vsnprintf: New file.
37727         * modules/unistdio/u16-vsprintf: New file.
37728         * modules/unistdio/u16-u16-asnprintf: New file.
37729         * modules/unistdio/u16-u16-asprintf: New file.
37730         * modules/unistdio/u16-u16-snprintf: New file.
37731         * modules/unistdio/u16-u16-sprintf: New file.
37732         * modules/unistdio/u16-u16-vasnprintf: New file.
37733         * modules/unistdio/u16-u16-vasprintf: New file.
37734         * modules/unistdio/u16-u16-vsnprintf: New file.
37735         * modules/unistdio/u16-u16-vsprintf: New file.
37736         * modules/unistdio/u32-asnprintf: New file.
37737         * modules/unistdio/u32-asprintf: New file.
37738         * modules/unistdio/u32-printf-parse: New file.
37739         * modules/unistdio/u32-snprintf: New file.
37740         * modules/unistdio/u32-sprintf: New file.
37741         * modules/unistdio/u32-vasnprintf: New file.
37742         * modules/unistdio/u32-vasprintf: New file.
37743         * modules/unistdio/u32-vsnprintf: New file.
37744         * modules/unistdio/u32-vsprintf: New file.
37745         * modules/unistdio/u32-u32-asnprintf: New file.
37746         * modules/unistdio/u32-u32-asprintf: New file.
37747         * modules/unistdio/u32-u32-snprintf: New file.
37748         * modules/unistdio/u32-u32-sprintf: New file.
37749         * modules/unistdio/u32-u32-vasnprintf: New file.
37750         * modules/unistdio/u32-u32-vasprintf: New file.
37751         * modules/unistdio/u32-u32-vsnprintf: New file.
37752         * modules/unistdio/u32-u32-vsprintf: New file.
37753         * modules/unistdio/ulc-asnprintf-tests: New file.
37754         * modules/unistdio/ulc-vasnprintf-tests: New file.
37755         * modules/unistdio/ulc-vasprintf-tests: New file.
37756         * modules/unistdio/ulc-vsnprintf-tests: New file.
37757         * modules/unistdio/ulc-vsprintf-tests: New file.
37758         * modules/unistdio/u8-asnprintf-tests: New file.
37759         * modules/unistdio/u8-vasnprintf-tests: New file.
37760         * modules/unistdio/u8-vasprintf-tests: New file.
37761         * modules/unistdio/u8-vsnprintf-tests: New file.
37762         * modules/unistdio/u8-vsprintf-tests: New file.
37763         * modules/unistdio/u16-asnprintf-tests: New file.
37764         * modules/unistdio/u16-vasnprintf-tests: New file.
37765         * modules/unistdio/u16-vasprintf-tests: New file.
37766         * modules/unistdio/u16-vsnprintf-tests: New file.
37767         * modules/unistdio/u16-vsprintf-tests: New file.
37768         * modules/unistdio/u32-asnprintf-tests: New file.
37769         * modules/unistdio/u32-vasnprintf-tests: New file.
37770         * modules/unistdio/u32-vasprintf-tests: New file.
37771         * modules/unistdio/u32-vsnprintf-tests: New file.
37772         * modules/unistdio/u32-vsprintf-tests: New file.
37773         * MODULES.html.sh (Unicode string functions): Add the new modules.
37774
37775 2007-07-01  Bruno Haible  <bruno@clisp.org>
37776
37777         * lib/sprintf.c (sprintf): Limit the available length estimation,
37778         to avoid address wraparound.
37779         * lib/vsprintf.c (vsprintf): Likewise.
37780         * modules/sprintf-posix (Dependencies): Add stdint.
37781         * modules/vsprintf-posix (Dependencies): Likewise.
37782
37783 2007-07-01  Bruno Haible  <bruno@clisp.org>
37784
37785         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
37786         Windows PATH as well. Conservative double-quoting. Comments.
37787
37788 2007-07-01  Bruno Haible  <bruno@clisp.org>
37789             Eric Blake  <ebb9@byu.net>
37790             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37791
37792         * gnulib-tool (self_abspathname): Fix algorithm to cope with
37793         empty components in $PATH, denoting '.'.
37794
37795 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37796
37797         * gnulib-tool: Fix indentation.
37798         (func_create_megatestdir): Likewise.
37799         Report by Bruno Haible.
37800
37801 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37802
37803         Sync from Automake.
37804         * build-aux/gnupload: Fix shell portability issues with for loops.
37805         Report by Karl Berry.
37806
37807 2007-06-29  Simon Josefsson  <simon@josefsson.org>
37808
37809         * build-aux/maint.mk (POURL): Use translationproject.org.
37810
37811 2007-06-27  Simon Josefsson  <simon@josefsson.org>
37812             Bruno Haible  <bruno@clisp.org>
37813
37814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
37815         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
37816         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
37817         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
37818         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
37819
37820 2007-06-27  Bruno Haible  <bruno@clisp.org>
37821
37822         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
37823         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
37824
37825 2007-06-26  Karl Berry  <karl@gnu.org>
37826
37827         * MODULES.html.sh: remove xreadlink-with-size.
37828
37829 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37830
37831         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
37832         method that I hope also handles the double-include problem noted
37833         by Bruno Haible in
37834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
37835
37836 2007-06-23  Bruno Haible  <bruno@clisp.org>
37837
37838         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37839         Don't let the 'mostlyclean' target fail if the last subdirectory could
37840         not be removed.
37841         Reported by Karl Berry.
37842
37843 2007-06-23  Bruno Haible  <bruno@clisp.org>
37844
37845         * gnulib-tool (echo): Add a speedier workaround for ksh.
37846         * tests/test-echo.sh: Likewise.
37847
37848 2007-06-23  Bruno Haible  <bruno@clisp.org>
37849
37850         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
37851         * tests/test-echo.sh: Likewise.
37852
37853 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37854
37855         * gnulib-tool (IFS): Initialize early, so we don't set it to
37856         empty later.
37857         (self_abspathname): Rewrite algorithm to set it, reindent.
37858         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
37859         (func_create_megatestdir): Merge some sed scripts.
37860
37861 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37862
37863         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
37864         exposed by Sun Studio 11 cc on Solaris 8.
37865
37866 2007-06-22  Bruno Haible  <bruno@clisp.org>
37867
37868         * gnulib-tool (echo): Ensure the echo primitive does not interpret
37869         backslashes.
37870         * tests/test-echo.sh: New file.
37871
37872 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37873
37874         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
37875         simplify `sed_replace_build_aux' scripts, they are portable but
37876         echoing them with `echo' is not.
37877         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
37878
37879 2007-06-21  Karl Berry  <karl@gnu.org>
37880
37881         * config/srclist.txt: guess we can't handle the licenses via
37882         srclist at the moment.
37883
37884 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37885
37886         * MODULES.html.sh: Add include_next.
37887         * modules/include_next: New file.
37888
37889 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37890
37891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
37892         INCLUDE_NEXT.
37893         (gl_CHECK_NEXT_HEADERS): New macro.
37894         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
37895         the obsolescent gl_ABSOLUTE_HEADER.
37896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
37897         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
37898         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37899         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37900         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37901         * m4/math_h.m4 (gl_MATH_H): Likewise.
37902         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37903         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37904         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37905         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37906         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37907         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37908         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37910         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37912         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37913         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37914         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
37915         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37916         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37917         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37918         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37919         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37920         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37921         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37922         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37923         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37924         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37925         * lib/float_.h: Likewise.
37926         * lib/inttypes_.h: Likewise.
37927         * lib/math_.h: Likewise.
37928         * lib/search_.h: Likewise.
37929         * lib/signal_.h: Likewise.
37930         * lib/stdint_.h: Likewise.
37931         * lib/stdio_.h: Likewise.
37932         * lib/stdlib_.h: Likewise.
37933         * lib/string_.h: Likewise.
37934         * lib/sys_stat_.h: Likewise.
37935         * lib/sys_time_.h: Likewise.
37936         * lib/time_.h: Likewise.
37937         * lib/unistd_.h: Likewise.
37938         * lib/wchar_.h: Likewise.
37939         * lib/wctype_.h: Likewise.
37940         * lib/dirent_.h: Likewise.
37941         * lib/iconv_.h: Likewise.
37942         * lib/locale_.h: Likewise.
37943         * lib/netinet_in_.h: Likewise.
37944         * lib/sys_select_.h: Likewise.
37945         * lib/sys_socket_.h: Likewise.
37946         * lib/sysexits_.h: Likewise.
37947         * modules/fcntl (Depends-on): Depend on include_next, not
37948         absolute_header.
37949         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37950         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37951         * modules/fchdir: Likewise.
37952         * modules/float: Likewise.
37953         * modules/iconv_open: Likewise.
37954         * modules/inttypes: Likewise.
37955         * modules/locale: Likewise.
37956         * modules/math: Likewise.
37957         * modules/netinet_in: Likewise.
37958         * modules/search: Likewise.
37959         * modules/signal: Likewise.
37960         * modules/stdint: Likewise.
37961         * modules/stdio: Likewise.
37962         * modules/stdlib: Likewise.
37963         * modules/string: Likewise.
37964         * modules/sys_select: Likewise.
37965         * modules/sys_socket: Likewise.
37966         * modules/sys_stat: Likewise.
37967         * modules/sys_time: Likewise.
37968         * modules/sysexits: Likewise.
37969         * modules/time: Likewise.
37970         * modules/unistd: Likewise.
37971         * modules/wchar: Likewise.
37972         * modules/wctype: Likewise.
37973         * modules/sys_stat: Change maintainer to "all".
37974         * modules/unistd: Likewise.
37975
37976 2007-06-20  Karl Berry  <karl@gnu.org>
37977
37978         * config/srclist.txt: track www changes in license files.
37979
37980 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
37981
37982         * build-aux/bootstrap: Remove stray dot.
37983         Make sure build_aux settings are honored when linking
37984         gnulib_extra_files.
37985
37986 2007-06-19  Eric Blake  <ebb9@byu.net>
37987
37988         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37989         Allow compilation on cygwin.
37990
37991 2007-06-19  Jim Meyering  <jim@meyering.net>
37992
37993         xreadlink-with-size: Remove module.  No longer used.
37994         Ex-callers now use xreadlink or mreadlink-with-size.
37995         * modules/xreadlink-with-size: Remove module.
37996         * lib/xreadlink-with-size.c: Remove file.
37997         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
37998         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
37999         just before the function definition *is* accurate.
38000
38001         Eliminate one way canonicalize_filename_mode could exit.
38002         * lib/canonicalize.c (canonicalize_filename_mode):
38003         Use mreadlink_with_size, not xreadlink_with_size.
38004
38005 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38006
38007         Detect porting problems to FreeBSD/arm, which has time_t wider than
38008         long int.  Original problem reported for GNU diff by Xin Li in
38009         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38010         * modules/getdate (Depends-on): Add intprops, verify.
38011         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38012         is an integer type no wider than long int.
38013
38014 2007-06-18  Jim Meyering  <jim@meyering.net>
38015
38016         New module: mreadlink-with-size.
38017         * MODULES.html.sh: Add mreadlink-with-size.
38018         * modules/mreadlink-with-size: New module
38019         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38020         not xreadlink-with-size.
38021         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38022
38023 2007-06-16  Bruno Haible  <bruno@clisp.org>
38024
38025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38026         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38027         Reported by Gary V. Vaughan <gary@gnu.org>.
38028
38029 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38030
38031         Revamp lchown so that it lives in unistd.h where it belongs.
38032         * lib/lchown.h: Remove.
38033         * lib/dirchownmod.c: Don't include lib/lchown.h.
38034         * lib/fchownat.c: Likewise.
38035         * lib/openat.c: Likewise.
38036         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38037         does not follow symlinks.
38038         (EOPNOTSUPP): Define if not defined.
38039         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38040         is defined to 0.
38041         (lchown): New decl.
38042         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38043         Do not check for lchown decl.
38044         Set REPLACE_LCHOWN.
38045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38046         REPLACE_LCHOWN.
38047         * modules/chown: Make it clear it follows symlinks.
38048         * modules/lchown: Make it clear it doesn't follow symlinks.
38049         (Files): Remove lib/lchown.h
38050         (Depends-on): Add unistd.
38051         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38052         (Include): Include <unistd.h>, not "lchown.h".
38053         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38054         REPLACE_LCHOWN.
38055
38056 2007-06-15  Jim Meyering  <jim@meyering.net>
38057
38058         Change license (GPL to LGPL) of fsusage and dependents.
38059         * modules/fsusage (License): Change to LGPL.
38060         * modules/full-read (License): Likewise.
38061         * modules/full-write (License): Likewise.
38062         * modules/safe-read (License): Likewise.
38063         * modules/safe-write (License): Likewise.
38064
38065 2007-06-14  Ben Pfaff  <blp@gnu.org>
38066
38067         Missing part of allocsa -> malloca transition.
38068         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38069         gl_MALLOCA.
38070
38071 2007-06-12  Bruno Haible  <bruno@clisp.org>
38072
38073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38074         to ia64, x86_64, i386.
38075         Reported by Eric Blake.
38076
38077 2007-06-12  Bruno Haible  <bruno@clisp.org>
38078
38079         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38080         cross-compiling to x86_64.
38081
38082 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38083
38084         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38085         glitch reported by Ralf Wildenhues in
38086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38087
38088         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38089         Vin Shelton.
38090
38091 2007-06-11  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38094         replacement string.
38095         Reported by Eric Blake.
38096
38097 2007-06-10  Bruno Haible  <bruno@clisp.org>
38098
38099         Prepare vasnprintf code for use with Unicode strings.
38100         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38101         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38102         TYPE_U32_STRING.
38103         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38104         a_u32_string variants.
38105         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38106         * lib/printf-args.c: Don't include config.h and the specification
38107         header if PRINTF_FETCHARGS is already defined.
38108         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38109         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38110         TYPE_U16_STRING, TYPE_U32_STRING.
38111         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38112         u16_directive, u16_directives, u32_directive, u32_directives): New
38113         types.
38114         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38115         New declarations.
38116         * lib/printf-parse.c: Don't include config.h and the specification
38117         header if PRINTF_PARSE is already defined. Eliminate the set of
38118         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38119         them now. Include c-ctype.h.
38120         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38121         directive and CHAR_T_ONLY_ASCII.
38122         * lib/vasnprintf.c: Don't include config.h and the specification header
38123         if VASNPRINTF is already defined.
38124         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38125         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38126         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38127         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38128         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38129         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38130         code accordingly.
38131         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38132         pad_ourselves also in this case, with the 'c' and 's' directives, and
38133         with a different notion of "width".
38134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38135
38136 2007-06-10  Bruno Haible  <bruno@clisp.org>
38137
38138         * modules/unistr/u32-mbsnlen: New file.
38139         * lib/unistr/u32-mbsnlen.c: New file.
38140
38141         * modules/unistr/u16-mbsnlen: New file.
38142         * lib/unistr/u16-mbsnlen.c: New file.
38143
38144         * modules/unistr/u8-mbsnlen: New file.
38145         * lib/unistr/u8-mbsnlen.c: New file.
38146
38147         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38148         declarations.
38149
38150 2007-06-10  Bruno Haible  <bruno@clisp.org>
38151
38152         * lib/string_.h (mbsnlen): New declaration.
38153         * lib/mbsnlen.c: New file.
38154         * m4/mbsnlen.m4: New file.
38155         * modules/mbsnlen: New file.
38156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38157         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38158         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38159
38160 2007-06-10  Bruno Haible  <bruno@clisp.org>
38161
38162         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38163
38164 2007-06-10  Bruno Haible  <bruno@clisp.org>
38165
38166         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38167         * lib/mbuiter.h: Likewise.
38168
38169 2007-06-10  Bruno Haible  <bruno@clisp.org>
38170
38171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38172         declaration.
38173
38174 2007-06-10  Karl Berry  <karl@gnu.org>
38175
38176         * config/srclist.txt: remove gettext entries, Bruno prefers
38177         to update individually.
38178
38179 2007-06-10  Bruno Haible  <bruno@clisp.org>
38180
38181         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38182         'maxlen'. Ensure only length + width bytes are allocated, not
38183         length + 1 + width.
38184
38185 2007-06-09  Bruno Haible  <bruno@clisp.org>
38186
38187         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38188         (CHAR_T): Remove macro.
38189         (VASNPRINTF): Update.
38190
38191 2007-06-09  Bruno Haible  <bruno@clisp.org>
38192
38193         * MODULES.html.sh (Unicode string functions): Add the new modules.
38194
38195         * modules/uniconv/u32-conv-to-enc: New file.
38196         * lib/uniconv/u32-conv-to-enc.c: New file.
38197         * modules/uniconv/u32-conv-to-enc-tests: New file.
38198         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38199
38200         * modules/uniconv/u16-conv-to-enc: New file.
38201         * lib/uniconv/u16-conv-to-enc.c: New file.
38202         * lib/uniconv/u-conv-to-enc.h: New file.
38203         * modules/uniconv/u16-conv-to-enc-tests: New file.
38204         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38205
38206         * modules/uniconv/u8-conv-to-enc: New file.
38207         * lib/uniconv/u8-conv-to-enc.c: New file.
38208         * modules/uniconv/u8-conv-to-enc-tests: New file.
38209         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38210
38211         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38212         u32_conv_to_encoding): New declarations.
38213
38214 2007-06-09  Bruno Haible  <bruno@clisp.org>
38215
38216         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38217
38218 2007-06-09  Bruno Haible  <bruno@clisp.org>
38219
38220         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38221         * modules/malloca: Renamed from modules/allocsa, updated.
38222         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38223         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38224         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38225         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38226         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38227         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38228         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38229         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38230         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38231         * modules/c-strcasestr (Depends-on): Update.
38232         * lib/c-strcasestr.c: Update.
38233         * modules/c-strstr (Depends-on): Update.
38234         * lib/c-strstr.c: Update.
38235         * modules/canonicalize-lgpl (Depends-on): Update.
38236         * lib/canonicalize-lgpl.c: Update.
38237         * modules/clean-temp (Depends-on): Update.
38238         * lib/clean-temp.c: Update.
38239         * modules/csharpcomp (Depends-on): Update.
38240         * lib/csharpcomp.c: Update.
38241         * modules/csharpexec (Depends-on): Update.
38242         * lib/csharpexec.c: Update.
38243         * modules/javacomp (Depends-on): Update.
38244         * lib/javacomp.c: Update.
38245         * modules/javaexec (Depends-on): Update.
38246         * lib/javaexec.c: Update.
38247         * modules/mbscasestr (Depends-on): Update.
38248         * lib/mbscasestr.c: Update.
38249         * modules/mbsstr (Depends-on): Update.
38250         * lib/mbsstr.c: Update.
38251         * modules/setenv (Depends-on): Update.
38252         * lib/setenv.c: Update.
38253         * modules/strcasestr (Depends-on): Update.
38254         * lib/strcasestr.c: Update.
38255         * modules/striconveha (Depends-on): Update.
38256         * lib/striconveha.c: Update.
38257         * modules/relocatable-prog-wrapper (Files): Update.
38258         * lib/relocwrapper.c: Update.
38259         * build-aux/install-reloc: Update.
38260         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38261
38262 2007-06-08  Bruno Haible  <bruno@clisp.org>
38263
38264         Port to uClibc.
38265         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38266         * lib/fpurge.c (fpurge): Likewise.
38267         * lib/freading.c (freading): Likewise.
38268         * lib/fseeko.c (rpl_fseeko): Likewise.
38269         * lib/fseterr.c (fseterr): Likewise.
38270         * lib/fwriting.c (fwriting): Likewise.
38271         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38272
38273 2007-06-08  Bruno Haible  <bruno@clisp.org>
38274
38275         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38276         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38277         * modules/gettext (Files): Add m4/intlmacosx.m4.
38278
38279 2007-06-07  Bruno Haible  <bruno@clisp.org>
38280
38281         * modules/localename-tests: New file.
38282         * tests/test-localename.c: New file.
38283
38284         New module 'localename'.
38285         * lib/localename.h: New file.
38286         * lib/localename.c: New file, from GNU gettext.
38287         * m4/localename.m4: New file.
38288         * modules/localename: New file.
38289
38290 2007-06-07  Bruno Haible  <bruno@clisp.org>
38291
38292         Work around the lack of <wchar.h> on some builds of uClibc.
38293         * doc/headers/wchar.texi: Update.
38294         * lib/wchar_.h: Include <wchar.h> only if it exists.
38295         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38296         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38297         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38298         doesn't exist.
38299         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38300         * modules/mbfile (Depends-on): Add wchar.
38301         * modules/mbiter (Depends-on): Likewise.
38302         * modules/mbuiter (Depends-on): Likewise.
38303         Reported by Simon Josefsson.
38304
38305 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38306
38307         Work around problem reported by Steven M. Schweda in
38308         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38309         Tru64 5.1B with the Compaq compiler environment installed declares
38310         an 'isblank' function but does not define it in the C library.
38311         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38312         * lib/regex_internal.h (isblank): Likewise.
38313         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38314         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38315
38316 2007-06-05  Bruno Haible  <bruno@clisp.org>
38317
38318         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38319         ia64.
38320         * modules/printf-safe: New file.
38321         * modules/fprintf-posix (Depends-on): Add printf-safe.
38322         * modules/printf-posix (Depends-on): Likewise.
38323         * modules/snprintf-posix (Depends-on): Likewise.
38324         * modules/sprintf-posix (Depends-on): Likewise.
38325         * modules/vasnprintf-posix (Depends-on): Likewise.
38326         * modules/vasprintf-posix (Depends-on): Likewise.
38327         * modules/vfprintf-posix (Depends-on): Likewise.
38328         * modules/vprintf-posix (Depends-on): Likewise.
38329         * modules/vsnprintf-posix (Depends-on): Likewise.
38330         * modules/vsprintf-posix (Depends-on): Likewise.
38331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38332         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38333         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38334         "no" on i386, x86_64, ia64.
38335         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38336         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38337         on i386, x86_64, ia64.
38338         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38339         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38340         on i386, x86_64, ia64.
38341         * tests/test-vasnprintf-posix.c: Include float.h.
38342         (LDBL80_WORDS): New macro.
38343         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38344         on i386, x86_64, ia64.
38345         * tests/test-vasprintf-posix.c: Include float.h.
38346         (LDBL80_WORDS): New macro.
38347         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38348         on i386, x86_64, ia64.
38349         * tests/test-snprintf-posix.c: Include float.h.
38350         * tests/test-sprintf-posix.c: Likewise.
38351         * tests/test-vsnprintf-posix.c: Likewise.
38352         * tests/test-vsprintf-posix.c: Likewise.
38353
38354 2007-06-05  Bruno Haible  <bruno@clisp.org>
38355
38356         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38357         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38358         non-IEEE numbers on i386, x86_64, ia64.
38359         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38360         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38361         * tests/test-isnanl.h: Include float.h.
38362         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38363
38364 2007-06-05  Bruno Haible  <bruno@clisp.org>
38365
38366         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
38367         also the %a / %A. Handle the %a / %A code before this extra handling.
38368
38369 2007-06-05  Bruno Haible  <bruno@clisp.org>
38370
38371         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
38372         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
38373
38374 2007-06-05  Bruno Haible  <bruno@clisp.org>
38375
38376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
38377         typo in variable name.
38378
38379 2007-06-05  Eric Blake  <ebb9@byu.net>
38380
38381         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
38382         Reported by Simon Josefsson.
38383
38384 2007-06-04  Bruno Haible  <bruno@clisp.org>
38385
38386         Avoid test failures on some PowerPC platforms.
38387         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
38388         Define differently for PowerPC.
38389         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
38390         Reported by Gary V. Vaughan <gary@gnu.org>.
38391
38392 2007-06-02  Bruno Haible  <bruno@clisp.org>
38393
38394         Fix test-stdint failure on FreeBSD/ia64.
38395         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
38396         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
38397         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
38398         * doc/headers/stdint.texi: Update.
38399
38400 2007-06-01  Bruno Haible  <bruno@clisp.org>
38401
38402         * tests/test-binary-io.c (main): Pass a third argument to open().
38403         Reported by Gary V. Vaughan <gary@gnu.org>.
38404
38405 2007-06-01  Bruno Haible  <bruno@clisp.org>
38406
38407         * doc/functions/frexpl.texi: Update for mingw.
38408
38409 2007-06-01  Bruno Haible  <bruno@clisp.org>
38410
38411         * tests/test-lseek.c (main): Disable test of errno for invalid third
38412         argument.
38413         * doc/functions/lseek.texi: Update.
38414         Reported by Gary V. Vaughan <gary@gnu.org>.
38415
38416 2007-05-28  Bruno Haible  <bruno@clisp.org>
38417
38418         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
38419
38420 2007-05-31  Eric Blake  <ebb9@byu.net>
38421
38422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
38423         cross compiling.
38424
38425 2007-05-30  Eric Blake  <ebb9@byu.net>
38426         and Bruno Haible  <bruno@clisp.org>
38427
38428         Work around mingw test failures exposed by m4-1.4.9b.
38429         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
38430         * tests/test-unistd.c: Disable uid_t and git_t tests for the
38431         moment.
38432
38433 2007-05-30  Bruno Haible  <bruno@clisp.org>
38434
38435         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
38436         assuming that they are closed. Needed on HP-UX 11.
38437
38438 2007-05-29  Bruno Haible  <bruno@clisp.org>
38439
38440         Fix a problem with #include_next.
38441         * lib/dirent_.h: Split the double-inclusion guard.
38442         * lib/fcntl_.h: Likewise.
38443         * lib/float_.h: Likewise.
38444         * lib/iconv_.h: Likewise.
38445         * lib/inttypes_.h: Likewise.
38446         * lib/locale_.h: Likewise.
38447         * lib/math_.h: Likewise.
38448         * lib/netinet_in_.h: Likewise.
38449         * lib/search_.h: Likewise.
38450         * lib/signal_.h: Likewise.
38451         * lib/stdint_.h: Likewise.
38452         * lib/stdio_.h: Likewise.
38453         * lib/stdlib_.h: Likewise.
38454         * lib/string_.h: Likewise.
38455         * lib/sys_select_.h: Likewise.
38456         * lib/sys_socket_.h: Likewise.
38457         * lib/sys_stat_.h: Likewise.
38458         * lib/sys_time_.h: Likewise.
38459         * lib/sysexits_.h: Likewise.
38460         * lib/time_.h: Likewise.
38461         * lib/unistd_.h: Likewise.
38462         * lib/wchar_.h: Likewise.
38463         * lib/wctype_.h: Likewise.
38464
38465 2007-05-29  Bruno Haible  <bruno@clisp.org>
38466
38467         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
38468         for the moment.
38469
38470 2007-05-29  Bruno Haible  <bruno@clisp.org>
38471
38472         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
38473         invocation.
38474         Reported by Eric Blake.
38475
38476 2007-05-29  Bruno Haible  <bruno@clisp.org>
38477
38478         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
38479         compiling case.
38480
38481 2007-05-29  Eric Blake  <ebb9@byu.net>
38482             Bruno Haible  <bruno@clisp.org>
38483
38484         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
38485         cross compiles.
38486
38487 2007-05-28  Eric Blake  <ebb9@byu.net>
38488
38489         * modules/closein-tests (test_closein_LDADD): Support test on
38490         cygwin with libtool.
38491
38492 2007-05-28  Bruno Haible  <bruno@clisp.org>
38493
38494         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
38495         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38496         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38497         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38498         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38499         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38500         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38501         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38502         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38503
38504 2007-05-28  Eric Blake  <ebb9@byu.net>
38505
38506         Unconditionally include <config.h> in unit tests.
38507         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
38508         * tests/test-allocsa.c, tests/test-arcfour.c,
38509         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
38510         tests/test-array_list.c, tests/test-array_oset.c,
38511         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
38512         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
38513         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
38514         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
38515         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
38516         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
38517         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
38518         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
38519         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
38520         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
38521         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
38522         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
38523         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
38524         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
38525         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
38526         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
38527         test-md5.c, test-memmem.c, test-printf-posix.c,
38528         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
38529         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
38530         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
38531         test-strcasestr.c, test-striconv.c, test-striconveh.c,
38532         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
38533         test-vasnprintf-posix2.c, test-vasnprintf.c,
38534         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
38535         test-vfprintf-posix.c, test-vprintf-posix.c,
38536         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
38537         test-xvasprintf.c: Likewise.
38538
38539 2007-05-28  Bruno Haible  <bruno@clisp.org>
38540
38541         * gnulib-tool (func_import): Remember the --with-tests command-line
38542         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
38543         Reported by Eric Blake.
38544
38545 2007-05-28  Bruno Haible  <bruno@clisp.org>
38546
38547         * modules/ftell-tests: New file.
38548         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
38549         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
38550
38551         * lib/ftell.c: New file.
38552         * modules/ftell: New file.
38553         * m4/ftell.m4: New file.
38554         * doc/functions/ftell.texi: Update.
38555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
38556         REPLACE_FTELL.
38557         * lib/stdio_.h (rpl_ftell): New declaration.
38558         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
38559         REPLACE_FTELL.
38560
38561 2007-05-28  Eric Blake  <ebb9@byu.net>
38562
38563         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
38564
38565 2007-05-28  Bruno Haible  <bruno@clisp.org>
38566
38567         * modules/fseek-tests: New file.
38568         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
38569         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
38570
38571         * lib/fseek.c: New file.
38572         * modules/fseek: New file.
38573         * m4/fseek.m4: New file.
38574         * doc/functions/fseek.texi: Update.
38575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
38576         REPLACE_FSEEK.
38577         * lib/stdio_.h (rpl_fseek): New declaration.
38578         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
38579         REPLACE_FSEEK.
38580
38581 2007-05-28  Bruno Haible  <bruno@clisp.org>
38582
38583         * lib/stdio_.h (fflush): More comments.
38584
38585 2007-05-28  Bruno Haible  <bruno@clisp.org>
38586
38587         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
38588         runtime test.
38589
38590 2007-05-28  Eric Blake  <ebb9@byu.net>
38591
38592         Improve lseek module.
38593         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
38594         * lib/unistd_.h (lseek): Scale back link warning message.
38595         * tests/test-lseek.c: Beef up test.
38596         * tests/test-lseek.sh: Exercise more facets of lseek.
38597         Reported by Bruno Haible.
38598
38599 2007-05-28  Bruno Haible  <bruno@clisp.org>
38600
38601         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
38602         to define.
38603
38604 2007-05-27  Bruno Haible  <bruno@clisp.org>
38605
38606         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
38607
38608 2007-05-27  Bruno Haible  <bruno@clisp.org>
38609
38610         * modules/openmp: New file.
38611         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
38612         Noah Misch.
38613
38614 2007-05-26  Bruno Haible  <bruno@clisp.org>
38615
38616         * modules/chdir-long (Depends-on): Add fchdir.
38617         * modules/chdir-safer (Depends-on): Likewise.
38618         * modules/fts (Depends-on): Likewise.
38619         * modules/fts-lgpl (Depends-on): Likewise.
38620         * modules/openat (Depends-on): Likewise.
38621         * modules/savewd (Depends-on): Likewise.
38622
38623 2007-05-24  Eric Blake  <ebb9@byu.net>
38624
38625         Fix lseek on mingw.
38626         * modules/lseek: New module.
38627         * m4/lseek.m4: New file.
38628         * lib/lseek.c: New file.
38629         * modules/lseek-tests: New file.
38630         * tests/test-lseek.c: New file.
38631         * tests/test-lseek.sh: New file.
38632         * MODULES.html.sh: Document lseek module.
38633         * modules/fflush (Depends-on): Add lseek, fseeko.
38634         * modules/fseeko (Depends-on): Likewise.
38635         * modules/ftello (Depends-on): Likewise.
38636         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
38637         broken.
38638         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
38639         broken.
38640         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
38641         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
38642         * lib/ftello.c (rpl_ftello): Likewise.
38643         * tests/test-fseeko.c (main): Test this.
38644         * tests/test-fseeko.sh: Likewise.
38645         * tests/test-ftello.c (main): Likewise.
38646         * tests/test-ftello.sh: Likewise.
38647         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
38648         implies replacing fseek.
38649         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
38650         HAVE_FTELLO.
38651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
38652         * modules/unistd (Makefile.am): Likewise.
38653         * lib/unistd_.h (lseek): Declare a replacement.
38654         * doc/functions/lseek.texi (lseek): Document this fix.
38655         * doc/functions/fseek.texi (fseek): Likewise.
38656         * doc/functions/ftell.texi (ftell): Likewise.
38657
38658 2007-05-24  Bruno Haible  <bruno@clisp.org>
38659
38660         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
38661         in the printed representation of a NaN.
38662         * tests/test-vasprintf-posix.c (test_function): Likewise.
38663         * tests/test-snprintf-posix.h (test_function): Likewise.
38664         * tests/test-sprintf-posix.h (test_function): Likewise.
38665         Reported by Eric Blake.
38666
38667 2007-05-23  Eric Blake  <ebb9@byu.net>
38668
38669         Fix fseeko/ftello on cygwin 1.5.24.
38670         * doc/functions/fseeko.texi (fseeko): Document the fix.
38671         * doc/functions/ftello.texi (ftello): Document the fix.
38672         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
38673         * doc/functions/stdout.text (stdout): New file.
38674         * doc/functions/stderr.text (stderr): New file.
38675         * doc/gnulib.texi (Function Substitutes): Use new files.
38676         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
38677         prior to 1.7.0.
38678         * tests/test-ftello.c (main): Likewise for ftello.
38679         * tests/test-fseeko.sh: New file.
38680         * tests/test-ftello.sh: New file.
38681         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
38682         with seekable stdin.
38683         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
38684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
38685         (gl_REPLACE_FSEEKO): New macro.
38686         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
38687         * modules/fseeko (Files): Distribute fseeko.c.
38688         * modules/ftello (Files): Distribute ftello.c.
38689         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
38690         mode.
38691         * lib/ftello.c (rpl_ftello): New file.
38692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
38693         fseeko, ftello.
38694         (gl_STDIN_LARGE_OFFSET): New macro.
38695         * modules/stdio (Makefile.am): Perform the replacement.
38696         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
38697
38698 2007-05-23  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
38701         GNULIB_POSIXCHECK is defined.
38702
38703 2007-05-21  Bruno Haible  <bruno@clisp.org>
38704
38705         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
38706         Check also the output for NaN arguments. When cross-compiling, guess
38707         no on IRIX.
38708         * lib/vasnprintf.c: Update comments.
38709         * tests/test-vasnprintf-posix.c (strisnan): New function.
38710         (test_function): Use it.
38711         * tests/test-vasprintf-posix.c (strisnan): New function.
38712         (test_function): Use it.
38713         * tests/test-snprintf-posix.h (strisnan): New function.
38714         (test_function): Use it.
38715         * tests/test-sprintf-posix.h (strisnan): New function.
38716         (test_function): Use it.
38717         Reported by Eric Blake.
38718
38719 2007-05-20  Bruno Haible  <bruno@clisp.org>
38720
38721         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
38722         numbers that fails on BeOS.
38723         * doc/functions/frexpl.texi: Update.
38724
38725 2007-05-20  Jim Meyering  <jim@meyering.net>
38726
38727         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
38728         forced upon us by glibc-2.6.
38729
38730 2007-05-20  Bruno Haible  <bruno@clisp.org>
38731
38732         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
38733         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
38734         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
38735         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
38736         NEED_PRINTF_INFINITE.
38737         (is_infinitel): New function.
38738         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
38739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
38740         gl_PREREQ_VASNPRINTF_INFINITE.
38741         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
38742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38743         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
38744         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
38745         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
38746         gl_PREREQ_VASNPRINTF_INFINITE.
38747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38754         * doc/functions/fprintf.texi: Update.
38755         * doc/functions/printf.texi: Update.
38756         * doc/functions/snprintf.texi: Update.
38757         * doc/functions/sprintf.texi: Update.
38758         * doc/functions/vfprintf.texi: Update.
38759         * doc/functions/vprintf.texi: Update.
38760         * doc/functions/vsnprintf.texi: Update.
38761         * doc/functions/vsprintf.texi: Update.
38762
38763 2007-05-20  Bruno Haible  <bruno@clisp.org>
38764
38765         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
38766         was not found in libc.
38767         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38768
38769 2007-05-20  Bruno Haible  <bruno@clisp.org>
38770
38771         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38772         printed as "-nan" instead of "nan".
38773         * tests/test-vasprintf-posix.c (test_function): Likewise.
38774         * tests/test-snprintf-posix.h (test_function): Likewise.
38775         * tests/test-sprintf-posix.h (test_function): Likewise.
38776         Needed for HP-UX 11.
38777
38778 2007-05-20  Jim Meyering  <jim@meyering.net>
38779
38780         Fix buggy test for the fchownat-deref bug.
38781         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
38782         symlink required for the run-test.  Without it, this test would
38783         always declare that fchownat doesn't work, and client code would
38784         unnecessarily use the replacement function with fixed libc.
38785         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
38786         Reported by Greg Schafer.
38787
38788 2007-05-19  Bruno Haible  <bruno@clisp.org>
38789
38790         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
38791         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
38792         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
38793         Needed for IRIX 6.5 and Solaris 2.5.1.
38794
38795 2007-05-19  Bruno Haible  <bruno@clisp.org>
38796
38797         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
38798         (test_function): Skip tests involving -0.0 on platforms where
38799         -0.0 = 0.0.
38800         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
38801         (test_function): Skip tests involving -0.0 on platforms where
38802         -0.0 = 0.0.
38803         * tests/test-snprintf-posix.h (have_minus_zero): New function.
38804         (test_function): Skip tests involving -0.0 on platforms where
38805         -0.0 = 0.0.
38806         * tests/test-sprintf-posix.h (have_minus_zero): New function.
38807         (test_function): Skip tests involving -0.0 on platforms where
38808         -0.0 = 0.0.
38809         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
38810         tests.
38811         * tests/test-printf-posix.h (test_function): Likewise.
38812         * tests/test-printf-posix.output: Remove all -0.0 related results.
38813         Needed for IRIX 6.5.
38814
38815 2007-05-19  Bruno Haible  <bruno@clisp.org>
38816
38817         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38818         printed as "nan0x7fffffff" instead of "nan".
38819         * tests/test-vasprintf-posix.c (test_function): Likewise.
38820         * tests/test-snprintf-posix.h (test_function): Likewise.
38821         * tests/test-sprintf-posix.h (test_function): Likewise.
38822         * tests/test-fprintf-posix.h (NaN): Remove macro.
38823         (test_function): Remove all NaN related tests.
38824         * tests/test-printf-posix.h (NaN): Remove macro.
38825         (test_function): Remove all NaN related tests.
38826         * tests/test-printf-posix.output: Remove all NaN related results.
38827         Needed for IRIX 6.5.
38828
38829 2007-05-19  Bruno Haible  <bruno@clisp.org>
38830
38831         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
38832         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38833
38834 2007-05-19  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/float_.h: New file.
38837         * m4/float_h.m4: New file.
38838         * modules/float: New file.
38839         * modules/isnanl (Dependencies): Add float.
38840         * modules/isnanl-nolibm (Dependencies): Likewise.
38841         * modules/mathl (Dependencies): Likewise.
38842         * modules/printf-frexpl (Dependencies): Likewise.
38843         * modules/signbit (Dependencies): Likewise.
38844         * modules/vasnprintf (Dependencies): Likewise.
38845         * doc/headers/float.texi: Update.
38846
38847 2007-05-19  Jim Meyering  <jim@meyering.net>
38848
38849         * lib/utimens.c (gl_futimens): Rename from futimens,
38850         now that glibc-2.6 declares futimens.
38851         * lib/utimens.h: Likewise.
38852
38853 2007-05-19  Bruno Haible  <bruno@clisp.org>
38854
38855         Avoid test failures on mingw.
38856         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
38857         * tests/test-printf-posix.sh: Likewise.
38858         * tests/test-vfprintf-posix.sh: Likewise.
38859         * tests/test-vprintf-posix.sh: Likewise.
38860
38861 2007-05-19  Bruno Haible  <bruno@clisp.org>
38862
38863         Fix *printf result for NaN, Inf, -0.0 on mingw.
38864         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
38865         * lib/vasnprintf.c: Include math.h and isnan.h.
38866         (is_infinite_or_zero): New function.
38867         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
38868         values in the %f, %F, %e, %E, %g, %G directives.
38869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
38870         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38871         gl_PRINTF_INFINITE and test its result. Invoke
38872         gl_PREREQ_VASNPRINTF_INFINITE.
38873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38877         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38879         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38880         * doc/functions/fprintf.texi: Update.
38881         * doc/functions/printf.texi: Update.
38882         * doc/functions/snprintf.texi: Update.
38883         * doc/functions/sprintf.texi: Update.
38884         * doc/functions/vfprintf.texi: Update.
38885         * doc/functions/vprintf.texi: Update.
38886         * doc/functions/vsnprintf.texi: Update.
38887         * doc/functions/vsprintf.texi: Update.
38888
38889 2007-05-19  Bruno Haible  <bruno@clisp.org>
38890
38891         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
38892         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
38893         Instead of multiplying with 10^k, set extra_zeroes to k.
38894         (scale10_round_long_double): Remove function.
38895
38896 2007-05-18  Bruno Haible  <bruno@clisp.org>
38897
38898         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
38899         introduced on 2007-05-06.
38900
38901 2007-05-18  Bruno Haible  <bruno@clisp.org>
38902
38903         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
38904         %g directives.
38905         * tests/test-vasprintf-posix.c (test_function): Likewise.
38906         * tests/test-snprintf-posix.h (test_function): Likewise.
38907         * tests/test-sprintf-posix.h (test_function): Likewise.
38908
38909 2007-05-18  Bruno Haible  <bruno@clisp.org>
38910
38911         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
38912         (strmatch): New function.
38913         (test_function): Test the %f directive on numbers of various exponents.
38914         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
38915         (strmatch): New function.
38916         (test_function): Test the %f directive on numbers of various exponents.
38917         * tests/test-snprintf-posix.h (strmatch): New function.
38918         (test_function): Test the %f directive on numbers of various exponents.
38919         * tests/test-sprintf-posix.h (strmatch): New function.
38920         (test_function): Test the %f directive on numbers of various exponents.
38921         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38922         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38923         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38924         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38925
38926 2007-05-18  Bruno Haible  <bruno@clisp.org>
38927
38928         Add support for 'long double' number output.
38929         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38930         * lib/vasnprintf.c: Include math.h and float+.h.
38931         (mp_limb_t): New type.
38932         (GMP_LIMB_BITS): New macro.
38933         (mp_twolimb_t): New type.
38934         (GMP_TWOLIMB_BITS): New macro.
38935         (mpn_t): New type.
38936         (multiply, divide, convert_to_decimal, decode_long_double,
38937         scale10_round_long_double, scale10_round_decimal_long_double,
38938         floorlog10l): New functions.
38939         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38940         for the %f, %F, %e, %E, %g, %G directives.
38941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38942         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38943         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38944         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38949         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38952         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38953         * modules/snprintf-posix (Depends-on): Likewise.
38954         * modules/sprintf-posix (Depends-on): Likewise.
38955         * modules/vasnprintf-posix (Depends-on): Likewise.
38956         * modules/vasprintf-posix (Depends-on): Likewise.
38957         * modules/vfprintf-posix (Depends-on): Likewise.
38958         * modules/vsnprintf-posix (Depends-on): Likewise.
38959         * modules/vsprintf-posix (Depends-on): Likewise.
38960         * modules/vasnprintf (Files): Add lib/float+.h.
38961         * doc/functions/fprintf.texi: Update.
38962         * doc/functions/printf.texi: Update.
38963         * doc/functions/snprintf.texi: Update.
38964         * doc/functions/sprintf.texi: Update.
38965         * doc/functions/vfprintf.texi: Update.
38966         * doc/functions/vprintf.texi: Update.
38967         * doc/functions/vsnprintf.texi: Update.
38968         * doc/functions/vsprintf.texi: Update.
38969
38970 2007-05-18  Bruno Haible  <bruno@clisp.org>
38971
38972         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
38973
38974 2007-05-18  Bruno Haible  <bruno@clisp.org>
38975
38976         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
38977         for printing 64-bit integers. Needed for mingw.
38978
38979 2007-05-18  Bruno Haible  <bruno@clisp.org>
38980
38981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38982         gl_FUNC_FREXPL_WORKS.
38983         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
38984
38985 2007-05-18  Bruno Haible  <bruno@clisp.org>
38986
38987         * modules/frexpl-nolibm-tests: New file.
38988
38989         * modules/frexpl-nolibm: New file.
38990         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
38991
38992 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38993
38994         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
38995         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38996         GCC 4.2, which otherwise issues a lot of warnings.
38997         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
38998         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
38999         Likewise.
39000         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39001         * modules/iconv_open (iconv.h): Likewise.
39002         * modules/locale (locale.h): Likewise.
39003         * modules/netinet_in (netinet/in.h): Likewise.
39004         * modules/sys_select (sys_select.h): Likewise.
39005         * modules/sys_socket (sys/socket.h): Likewise.
39006         * modules/sys_stat (sys/stat.h): Likewise.
39007         * modules/sysexits (sysexits.h): Likewise.
39008         * modules/unistd (unistd.h): Likewise.
39009
39010 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39011
39012         * modules/closein-tests (Makefile.am): Distribute
39013         `test-closein.sh'.
39014
39015 2007-05-17  Bruno Haible  <bruno@clisp.org>
39016
39017         * tests/test-printf-posix.output: Renamed from
39018         tests/test-fprintf-posix.out.
39019         * modules/fprintf-posix-tests: Update.
39020         * modules/printf-posix-tests: Update.
39021         * modules/vfprintf-posix-tests: Update.
39022         * modules/vprintf-posix-tests: Update.
39023         * tests/test-fprintf-posix.sh: Update.
39024         * tests/test-printf-posix.sh: Update.
39025         * tests/test-vfprintf-posix.sh: Update.
39026         * tests/test-vprintf-posix.sh: Update.
39027         Reported by Ralf Wildenhues.
39028
39029 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39030
39031         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39032         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39033         GCC 4.2, which otherwise issues a lot of warnings.
39034         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39035         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39036         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39037         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39038         it should no longer be needed.
39039         * lib/string_.h: Likewise.
39040         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39041         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39042         * modules/inttypes (inttypes.h): Likewise.
39043         * modules/math (math.h): Likewise.
39044         * modules/search (search.h): Likewise.
39045         * modules/signal (signal.h): Likewise.
39046         * modules/stdint (stdint.h): Likewise.
39047         * modules/stdio (stdio.h): Likewise.
39048         * modules/stdlib (stdlib.h): Likewise.
39049         * modules/string (string.h): Likewise.
39050         * modules/sys_time (sys/time.h): Likewise.
39051         * modules/time (time.h): Likewise.
39052         * modules/wchar (wchar.h): Likewise.
39053         * modules/wctype (wtype.h): Likewise.
39054
39055 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39056
39057         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39058
39059 2007-05-13  Bruno Haible  <bruno@clisp.org>
39060
39061         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39062         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39063         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39064         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39065         (gl_PREREQ_STRTOK_R): Don't require it here.
39066
39067 2007-05-13  Bruno Haible  <bruno@clisp.org>
39068
39069         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39070         when used in C++ mode.
39071
39072 2007-05-12  Bruno Haible  <bruno@clisp.org>
39073
39074         * lib/linebuffer.h: Tweak doc.
39075         * lib/linebuffer.c: Likewise.
39076
39077 2007-05-12  James Youngman  <jay@gnu.org>
39078
39079         * lib/linebuffer.c (readlinebuffer_delim): New function,
39080         like readlinebuffer, but use a caller-specified delimiter.
39081         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39082         as the delimiter.
39083         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39084
39085 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39086
39087         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39088         * modules/openat (Files): Remove openat-die.c.
39089         (Depends-on): Add openat-die.
39090         * modules/openat-die: New module.
39091
39092 2007-05-06  Bruno Haible  <bruno@clisp.org>
39093
39094         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39095         Update with info about Cygwin.
39096         * doc/functions/fprintf.texi: Update.
39097         * doc/functions/printf.texi: Update.
39098         * doc/functions/snprintf.texi: Update.
39099         * doc/functions/sprintf.texi: Update.
39100         * doc/functions/vfprintf.texi: Update.
39101         * doc/functions/vprintf.texi: Update.
39102         * doc/functions/vsnprintf.texi: Update.
39103         * doc/functions/vsprintf.texi: Update.
39104         Reported by Eric Blake.
39105
39106 2007-05-06  Bruno Haible  <bruno@clisp.org>
39107
39108         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39109         padding ourselves for the floating-point directives.
39110         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39113         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39114         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39118         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39120         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39121         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39122         * tests/test-snprintf-posix.h (test_function): Also check the width
39123         and some flags in the %f directive.
39124         * tests/test-sprintf-posix.h (test_function): Likewise.
39125         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39126         * tests/test-vasprintf-posix.c (test_function): Likewise.
39127         * doc/functions/fprintf.texi: Update.
39128         * doc/functions/printf.texi: Update.
39129         * doc/functions/snprintf.texi: Update.
39130         * doc/functions/sprintf.texi: Update.
39131         * doc/functions/vfprintf.texi: Update.
39132         * doc/functions/vprintf.texi: Update.
39133         * doc/functions/vsnprintf.texi: Update.
39134         * doc/functions/vsprintf.texi: Update.
39135
39136 2007-05-06  Bruno Haible  <bruno@clisp.org>
39137
39138         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39139         pass the ' flag character to sprintf or snprintf.
39140         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39143         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39144         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39146         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39149         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39151         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39152         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39153         flag.
39154         * tests/test-sprintf-posix.h (test_function): Likewise.
39155         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39156         * tests/test-vasprintf-posix.c (test_function): Likewise.
39157         * doc/functions/fprintf.texi: Update.
39158         * doc/functions/printf.texi: Update.
39159         * doc/functions/snprintf.texi: Update.
39160         * doc/functions/sprintf.texi: Update.
39161         * doc/functions/vfprintf.texi: Update.
39162         * doc/functions/vprintf.texi: Update.
39163         * doc/functions/vsnprintf.texi: Update.
39164         * doc/functions/vsprintf.texi: Update.
39165
39166 2007-05-01  Bruno Haible  <bruno@clisp.org>
39167
39168         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39169
39170 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39171
39172         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39173         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39174
39175 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39176
39177         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39178         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39180
39181 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39182
39183         * lib/argp-help.c (struct hol_entry): New member `ord'.
39184         (HOL_ENTRY_PTRCMP): Use ord for comparison
39185         (hol_sort): Initialize ord.
39186
39187 2007-05-01  Bruno Haible  <bruno@clisp.org>
39188
39189         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39190         Reported by Eric Blake.
39191         * doc/gnulib.texi (Function Substitutes): Update.
39192
39193 2007-05-01  Bruno Haible  <bruno@clisp.org>
39194
39195         * doc/functions.texi: Remove file, now redundant through
39196         doc/functions/*.texi.
39197
39198 2007-05-01  Bruno Haible  <bruno@clisp.org>
39199
39200         * modules/argp (Depends-on): Add sleep.
39201
39202 2007-05-01  Bruno Haible  <bruno@clisp.org>
39203
39204         * modules/sleep-tests: New file.
39205         * tests/test-sleep.c: New file.
39206
39207         * modules/sleep: New file.
39208         * lib/sleep.c: New file.
39209         * m4/sleep.m4: New file.
39210         * lib/unistd_.h (sleep): New declaration.
39211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39212         HAVE_SLEEP.
39213         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39214         * doc/functions/sleep.texi: Document the sleep module.
39215
39216 2007-05-01  Bruno Haible  <bruno@clisp.org>
39217
39218         * lib/sigprocmask.h: Remove file.
39219         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39220         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39221         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39222         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39223         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39224         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39225         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39226         HAVE_SIGSET_T as a shell variable.
39227         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39228         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39229         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39230         (Depends-on): Add signal. Remove verify.
39231         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39232         (Include): Mention <signal.h> instead of sigprocmask.h.
39233         * NEWS: Mention the change.
39234         * lib/fatal-signal.c: Don't include sigprocmask.h.
39235
39236 2007-05-01  Bruno Haible  <bruno@clisp.org>
39237
39238         * modules/signal: New file.
39239         * lib/signal_.h: New file.
39240         * m4/signal_h.m4: New file.
39241
39242 2007-05-01  Bruno Haible  <bruno@clisp.org>
39243
39244         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39245         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39246         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39247         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39248
39249 2007-05-01  Bruno Haible  <bruno@clisp.org>
39250
39251         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39252         configure time.
39253         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39254         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39255         * modules/sys_stat (Makefile.am): Substitute their values into
39256         sys/stat.h.
39257
39258 2007-05-01  Bruno Haible  <bruno@clisp.org>
39259
39260         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39261         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39262         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39263
39264 2007-05-01  Bruno Haible  <bruno@clisp.org>
39265
39266         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39267         'assert' module here.
39268
39269 2007-05-01  Bruno Haible  <bruno@clisp.org>
39270
39271         * doc/functions/*.texi: New files.
39272         * doc/functions/google-ranking.txt: New file.
39273         * doc/gnulib.texi (Function Substitutes): New chapter.
39274         (ctime, inet_ntoa): Remove sections.
39275         * doc/ctime.texi: Remove file.
39276         * doc/inet_ntoa.texi: Remove file.
39277         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39278         dependencies.
39279         (%.info): New rule, specifying a --reference-limit.
39280
39281 2007-05-01  Bruno Haible  <bruno@clisp.org>
39282
39283         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39284
39285 2007-05-01  Bruno Haible  <bruno@clisp.org>
39286
39287         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39288         the portability of 'mkdir' to mingw systems.
39289
39290 2007-05-01  Bruno Haible  <bruno@clisp.org>
39291
39292         * doc/headers/google-ranking.txt: New file.
39293
39294 2007-04-30  Eric Blake  <ebb9@byu.net>
39295
39296         Prefer fseeko to fseek.
39297         * modules/getpass (Depends-on): Add fseeko.
39298         * lib/getpass.c (getpass): Use fseeko, not fseek.
39299
39300 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39301
39302         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39303         assumes the sorting is stable, while most qsort implementations
39304         are not.  Use argument addresses to ensure they never compare as
39305         equal.
39306
39307         * tests/test-argp-2.sh (usage-indent test): Fix output
39308         (func_compare): Restore diff options
39309         * tests/test-argp.c: Restore #include "progname.h"
39310
39311 2007-04-29  Bruno Haible  <bruno@clisp.org>
39312
39313         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39315         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39317         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39318         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39319         (TESTS, check_PROGRAMS): Add test-snprintf.
39320         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39321         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39322         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39323         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39324         assertions that fail on HP-UX, OSF/1, or IRIX.
39325         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39326
39327 2007-04-29  Bruno Haible  <bruno@clisp.org>
39328
39329         * MODULES.html.sh (posix_functions): Remove 'contents'.
39330
39331 2007-04-29  Karl Berry  <karl@gnu.org>
39332
39333         * config/srclist.txt (gendocs_template_min): new entry.
39334
39335 2007-04-29  Bruno Haible  <bruno@clisp.org>
39336
39337         Work around fpurge bug on BSD systems.
39338         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39339         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39340         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39341         fpurge to rpl_fpurge if the system already has this function.
39342         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39343         the case where the system already has this function. Correct invariants
39344         on BSD systems.
39345         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39346         BSD systems.
39347
39348 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39349
39350         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39351         proposed by Sven Verdoolaege.
39352
39353         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39354         options.
39355         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39356         (usage and help tests): Update
39357
39358 2007-04-29  Bruno Haible  <bruno@clisp.org>
39359
39360         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39361         Print more information in case of failure. Disable a test on BeOS.
39362
39363 2007-04-29  Bruno Haible  <bruno@clisp.org>
39364
39365         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
39366         This helps debugging on systems on which no gdb is available.
39367
39368 2007-04-29  Bruno Haible  <bruno@clisp.org>
39369
39370         * lib/freading.h: Improve comments.
39371         * lib/fwriting.h: Likewise.
39372         * tests/test-freading.c (main): Don't check freading immediately after
39373         repositioning. Needed for glibc.
39374
39375 2007-04-29  Bruno Haible  <bruno@clisp.org>
39376
39377         * lib/freading.c (freading): Trivial simplification.
39378
39379 2007-04-28  Bruno Haible  <bruno@clisp.org>
39380
39381         * tests/test-fwriting.c (main): Also test the interaction between
39382         fflush and fwriting.
39383         * modules/fwriting-tests (Depends-on): Add fflush.
39384
39385         * tests/test-freading.c (main): Also test the interaction between
39386         fflush and freading.
39387         * modules/freading-tests (Depends-on): Add fflush.
39388
39389 2007-04-28  Bruno Haible  <bruno@clisp.org>
39390
39391         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
39392         fseeko and ftello.
39393         Suggested by Eric Blake.
39394
39395 2007-04-28  Jim Meyering  <jim@meyering.net>
39396
39397         Avoid false-negative in gl_STDINT_H's C99 conformance test.
39398         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
39399         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
39400
39401 2007-04-27  Eric Blake  <ebb9@byu.net>
39402
39403         * doc/headers/assert.texi (assert.h): Document assert module use.
39404
39405 2007-04-27  Bruno Haible  <bruno@clisp.org>
39406
39407         * doc/headers/*.texi: New files.
39408         * doc/gnulib.texi (Header File Substitutes): New chapter.
39409         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
39410         dependencies.
39411         (standards.info ,standards.html, standards.dvi): Update dependencies.
39412         (mostlyclean, clean): New targets.
39413
39414 2007-04-27  Bruno Haible  <bruno@clisp.org>
39415
39416         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
39417         * modules/sysexits (Files, Makefile.am): Update.
39418
39419         * lib/sys_socket_.h: Renamed from lib/socket_.h.
39420         * modules/sys_socket (Files, Makefile.am): Update.
39421
39422         * lib/sys_stat_.h: Renamed from lib/stat_.h.
39423         * modules/sys_stat (Files, Makefile.am): Update.
39424
39425 2007-04-27  Eric Blake  <ebb9@byu.net>
39426
39427         * lib/freading.h: Improve comments.
39428         * lib/fwriting.h: Likewise.
39429         * lib/fflush.c: Likewise.
39430
39431         Fix closein for mingw.
39432         * modules/closein-tests: Add tests for closein.
39433         * tests/test-closein.c: New file.
39434         * tests/test-closein.sh: Likewise.
39435         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
39436         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
39437
39438 2007-04-27  Bruno Haible  <bruno@clisp.org>
39439
39440         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
39441         version is < 6.
39442         * lib/math_.h [__DECC]: Likewise.
39443         * lib/stdio_.h [__DECC]: Likewise.
39444         * lib/stdlib_.h [__DECC]: Likewise.
39445         * lib/string_.h [__DECC]: Likewise.
39446         * lib/time_.h [__DECC]: Likewise.
39447         * lib/wchar_.h [__DECC]: Likewise.
39448         * lib/wctype_.h [__DECC]: Likewise.
39449
39450 2007-04-27  Bruno Haible  <bruno@clisp.org>
39451
39452         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
39453
39454 2007-04-27  Bruno Haible  <bruno@clisp.org>
39455
39456         * lib/fflush.c: Add comments.
39457         * modules/fpurge-tests (Depends-on): Add fflush.
39458         * modules/freadable-tests (Depends-on): Likewise.
39459         * modules/fwritable-tests (Depends-on): Likewise.
39460
39461 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
39462
39463         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
39464         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
39465         Report by Bruno Haible <bruno@clisp.org>.
39466
39467 2007-04-26  Eric Blake  <ebb9@byu.net>
39468
39469         Fix fflush on mingw.
39470         * modules/fflush (Depends-on): Add freading.
39471         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
39472         but unread data.
39473
39474 2007-04-26  Eric Blake  <ebb9@byu.net>
39475         and Bruno Haible  <bruno@clisp.org>
39476
39477         Implement freading and fwriting.
39478         * lib/freading.c: New file.
39479         * lib/freading.h: Likewise.
39480         * m4/freading.m4: Likewise.
39481         * modules/freading: Likewise.
39482         * modules/freading-tests: Likewise.
39483         * tests/test-freading.c: Likewise.
39484         * lib/fwriting.c: New file.
39485         * lib/fwriting.h: Likewise.
39486         * m4/fwriting.m4: Likewise.
39487         * modules/fwriting: Likewise.
39488         * modules/fwriting-tests: Likewise.
39489         * tests/test-fwriting.c: Likewise.
39490         * MODULES.html.sh (File stream based Input/Output): Mention them.
39491
39492 2007-04-26  Bruno Haible  <bruno@clisp.org>
39493
39494         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
39495         'long' when we assume it.
39496         Suggested by Eric Blake.
39497
39498 2007-04-26  Bruno Haible  <bruno@clisp.org>
39499
39500         Ensure fseeko, ftello are declared on glibc systems.
39501         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
39502         * modules/fseeko (configure.ac-early): Likewise.
39503         * modules/ftello (configure.ac-early): Likewise.
39504         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
39505         AC_FUNC_FSEEKO for this.
39506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
39507         (gl_CHECK_FSEEKO): Remove macro.
39508
39509 2007-04-26  Bruno Haible  <bruno@clisp.org>
39510
39511         * tests/test-fflush.c (main): Also check the ftell result after
39512         fflush and fseek/fseeko.
39513         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
39514         file descriptor position cache in the stream.
39515         * lib/fseeko.c (rpl_fseeko): Likewise.
39516
39517 2007-04-26  Bruno Haible  <bruno@clisp.org>
39518
39519         * modules/fflush-tests (Depends-on): Add fseeko.
39520
39521 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
39522             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39523
39524         * lib/argz_.h: ensure error_t definition is obtained in same
39525         mechanism system argz.h would have.
39526         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
39527         argz facilities are known bad.  Err on the side of caution if
39528         cross-compiling.
39529
39530 2007-04-25  Eric Blake  <ebb9@byu.net>
39531
39532         * lib/fpurge.c (includes): Use stdlib.h for free.
39533         * tests/test-fflush.c (main): Also test fflush-fseeko.
39534
39535 2007-04-25  Bruno Haible  <bruno@clisp.org>
39536
39537         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
39538         * lib/fseeko.c: New file.
39539         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
39540         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
39541         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
39542         gl_FUNC_FSEEKO.
39543         (gl_FUNC_FSEEKO): Invoke it.
39544         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
39545         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
39546         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
39547
39548 2007-04-25  Bruno Haible  <bruno@clisp.org>
39549
39550         * modules/fflush (Depends-on): Add ftello.
39551
39552 2007-04-25  Bruno Haible  <bruno@clisp.org>
39553
39554         * modules/ftello-tests: New file.
39555         * tests/test-ftello.c: New file.
39556
39557         * modules/ftello: New file.
39558         * m4/ftello.m4: New file.
39559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
39560         HAVE_FTELLO.
39561         * lib/stdio_.h (ftello): New declaration.
39562         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
39563         HAVE_FTELLO.
39564
39565 2007-04-25  Bruno Haible  <bruno@clisp.org>
39566
39567         * modules/fseeko-tests: New file.
39568         * tests/test-fseeko.c: New file.
39569
39570         * modules/fseeko: New file.
39571         * m4/fseeko.m4: New file.
39572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
39573         HAVE_FSEEKO.
39574         * lib/stdio_.h (fseeko): New declaration.
39575         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
39576         HAVE_FSEEKO.
39577
39578 2007-04-25  Bruno Haible  <bruno@clisp.org>
39579
39580         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
39581
39582 2007-04-25  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
39585         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
39586         * tests/test-unistd.c: Likewise.
39587         * tests/test-fcntl.c: Likewise.
39588
39589 2007-04-23  Eric Blake  <ebb9@byu.net>
39590
39591         * lib/fflush.c: Fix missing include.
39592         Reported by Bruno Haible.
39593
39594 2007-04-23  Bruno Haible  <bruno@clisp.org>
39595
39596         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
39597         Reported by Eric Blake.
39598
39599 2007-04-23  Bruno Haible  <bruno@clisp.org>
39600
39601         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
39602
39603 2007-04-23  Bruno Haible  <bruno@clisp.org>
39604
39605         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
39606
39607 2007-04-23  Bruno Haible  <bruno@clisp.org>
39608
39609         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
39610         Needed on HP-UX 11.
39611
39612 2007-04-16  Eric Blake  <ebb9@byu.net>
39613
39614         Make fflush rely on fpurge.
39615         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
39616         open coding all variants.
39617         * modules/fflush (Depends-on): Add fpurge and unistd.
39618         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
39619         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
39620
39621         Fix --with-tests compilation on cygwin.
39622         * modules/argmatch-tests (Makefile.am): List gnulib library first
39623         in LDADD.
39624         * modules/argp-tests (Makefile.am): Likewise.
39625         * modules/array-list-tests (Makefile.am): Likewise.
39626         * modules/array-oset-tests (Makefile.am): Likewise.
39627         * modules/avltree-list-tests (Makefile.am): Likewise.
39628         * modules/avltree-oset-tests (Makefile.am): Likewise.
39629         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39630         * modules/carray-list-tests (Makefile.am): Likewise.
39631         * modules/dirname-tests (Makefile.am): Likewise.
39632         * modules/frexp-tests (Makefile.am): Likewise.
39633         * modules/isnanl-tests (Makefile.am): Likewise.
39634         * modules/linked-list-tests (Makefile.am): Likewise.
39635         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39636         * modules/lock-tests (Makefile.am): Likewise.
39637         * modules/rbtree-list-tests (Makefile.am): Likewise.
39638         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39639         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39640         * modules/tls-tests (Makefile.am): Likewise.
39641         * modules/tsearch-tests (Makefile.am): Likewise.
39642         * modules/xvasprintf-tests (Makefile.am): Likewise.
39643
39644         Fix fpurge for cygwin.
39645         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
39646         value.
39647         * modules/fpurge-tests (Depends-on): Clean up trash.
39648
39649 2007-04-16  Simon Josefsson  <simon@josefsson.org>
39650
39651         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
39652
39653         * m4/autobuild.m4: Re-indent.
39654
39655 2007-04-13  Bruno Haible  <bruno@clisp.org>
39656
39657         * modules/fpurge-tests: New file.
39658         * tests/test-fpurge.c: New file.
39659
39660         * modules/fpurge: New file.
39661         * lib/fpurge.h: New file.
39662         * lib/fpurge.c: New file.
39663         * m4/fpurge.m4: New file.
39664
39665 2007-04-13  Bruno Haible  <bruno@clisp.org>
39666
39667         * modules/fbufmode-tests: New file.
39668         * tests/test-fbufmode.c: New file.
39669
39670         * modules/fbufmode: New file.
39671         * lib/fbufmode.h: New file.
39672         * lib/fbufmode.c: New file.
39673         * m4/fbufmode.m4: New file.
39674
39675 2007-04-13  Bruno Haible  <bruno@clisp.org>
39676
39677         * modules/fwritable-tests: New file.
39678         * tests/test-fwritable.c: New file.
39679
39680         * modules/fwritable: New file.
39681         * lib/fwritable.h: New file.
39682         * lib/fwritable.c: New file.
39683         * m4/fwritable.m4: New file.
39684
39685 2007-04-13  Bruno Haible  <bruno@clisp.org>
39686
39687         * modules/freadable-tests: New file.
39688         * tests/test-freadable.c: New file.
39689
39690         * modules/freadable: New file.
39691         * lib/freadable.h: New file.
39692         * lib/freadable.c: New file.
39693         * m4/freadable.m4: New file.
39694
39695 2007-04-13  Bruno Haible  <bruno@clisp.org>
39696
39697         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
39698         MOSTLYCLEANFILES.
39699
39700 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39701
39702         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
39703         gzip bootstrap.conf to avoid dragging in i18n machinery.
39704         (gnulib_tool_option): Use it.
39705
39706 2007-04-13  Bruno Haible  <bruno@clisp.org>
39707
39708         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
39709         %F directives.
39710         * tests/test-vasprintf-posix.c (test_function): Likewise.
39711         * tests/test-snprintf-posix.h (test_function): Likewise.
39712         * tests/test-sprintf-posix.h (test_function): Likewise.
39713         * tests/test-fprintf-posix.h (test_function): Likewise.
39714         * tests/test-printf-posix.h (test_function): Likewise.
39715         * tests/test-fprintf-posix.out: Likewise.
39716
39717 2007-04-13  Bruno Haible  <bruno@clisp.org>
39718
39719         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
39720         * modules/tls-tests (configure.ac): Likewise.
39721         Reported by Arto C. Nirkko <anirkko@insel.ch>.
39722
39723 2007-04-13  Bruno Haible  <bruno@clisp.org>
39724
39725         * lib/tls.c (glthread_tls_get): Fix return type.
39726         Patch by Arto C. Nirkko <anirkko@insel.ch>.
39727
39728 2007-04-12  Eric Blake  <ebb9@byu.net>
39729
39730         * modules/gettime (Depends-on): Remove gettime.
39731         Reported by Dmitry V. Levin.
39732
39733 2007-04-12  Bruno Haible  <bruno@clisp.org>
39734
39735         * modules/fflush (Include): Mention <stdio.h>.
39736         * modules/strtoimax (Include): Mention <inttypes.h>.
39737         * modules/strtoumax (Include): Likewise.
39738
39739 2007-04-12  Eric Blake  <ebb9@byu.net>
39740
39741         * .cvsignore: New file.
39742         * .gitignore: Likewise.
39743
39744 2007-04-12  Bruno Haible  <bruno@clisp.org>
39745
39746         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
39747         not before, since $(LDADD) often contains libgnu.a.
39748         * modules/striconv-tests (test_striconv_LDADD): Likewise.
39749         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
39750         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
39751         Needed on Cygwin.
39752
39753 2007-04-12  Eric Blake  <ebb9@byu.net>
39754
39755         Work around glibc's failure to flush stdin on fclose.
39756         * lib/closein.c (close_stdin): Flush stdin before closing.
39757
39758         Work around glibc's failure to reset seekable stdin on exit.
39759         * modules/closein: New module.
39760         * lib/closein.c: New file.
39761         * lib/closein.h: Likewise.
39762         * m4/closein.m4: Likewise.
39763         * MODULES.html.sh (File stream based Input/Output): Document it.
39764
39765 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39766
39767         * gnulib-tool: Rename generated 'autobuild' script to
39768         'do-autobuild' in --create-megatestdir output.
39769
39770         * doc/gnulib.texi (Build robot for gnulib): Fix.
39771
39772 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39773
39774         * modules/sysexits (Depends-on): Add absolute-header.
39775
39776 2007-04-12  Eric Blake  <ebb9@byu.net>
39777
39778         No need to preserve errno on success.
39779         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
39780         Reported by Bruno Haible.
39781
39782 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39783
39784         * MODULES.html.sh (Support for maintaining and releasing
39785         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
39786
39787 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39788
39789         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
39790
39791 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39792
39793         * modules/autobuild: New module.
39794
39795         * m4/autobuild.m4: New file.
39796
39797 2007-04-11  Bruno Haible  <bruno@clisp.org>
39798
39799         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
39800         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
39801         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
39802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
39803         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39804         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39805         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39807         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39808         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
39810         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39811         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
39813         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39814         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
39816         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39817         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
39819         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39820         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
39822         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39823         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
39825         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39826         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39827         Reported by Eric Blake.
39828
39829 2007-04-11  Bruno Haible  <bruno@clisp.org>
39830
39831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
39832
39833 2007-04-10  Bruno Haible  <bruno@clisp.org>
39834
39835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
39836         for NaN and Infinity. Needed on FreeBSD 6.1.
39837         * tests/test-vasnprintf-posix.c (test_function): Undo last change
39838         regarding results for "%010a" of Infinity and NaN.
39839         * tests/test-vasprintf-posix.c (test_function): Likewise.
39840         * tests/test-snprintf-posix.h (test_function): Likewise.
39841         * tests/test-sprintf-posix.h (test_function): Likewise.
39842         * tests/test-fprintf-posix.h (test_function): Likewise.
39843         * tests/test-printf-posix.h (test_function): Likewise.
39844         * tests/test-fprintf-posix.out: Likewise.
39845
39846 2007-04-10  Bruno Haible  <bruno@clisp.org>
39847
39848         * modules/locale-tests: New file.
39849         * tests/test-locale.c: New file.
39850
39851         * modules/locale: New file.
39852         * lib/locale_.h: New file.
39853         * m4/locale_h.m4: New file.
39854
39855 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
39856             Bruno Haible  <bruno@clisp.org>
39857
39858         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
39859         be determined, test for availability of the copysignf, copysign,
39860         copysignl functions.
39861         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
39862         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
39863         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
39864
39865 2007-04-09  Eric Blake  <ebb9@byu.net>
39866
39867         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
39868         * modules/stdio (Makefile.am): Support fflush.
39869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39870         * modules/fflush: New file.
39871         * lib/fflush.c: Likewise.
39872         * m4/fflush.m4: Likewise.
39873         * modules/fflush-tests: New test.
39874         * tests/test-fflush.c: Likewise.
39875         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
39876
39877 2007-04-06  Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
39880         (VASNPRINTF): Use signbit for faster determination whether to print a
39881         minus sign.
39882         * modules/vasnprintf (Files): Remove lib/float+.h.
39883         * modules/fprintf-posix (Depends-on): Add signbit.
39884         * modules/snprintf-posix (Depends-on): Likewise.
39885         * modules/sprintf-posix (Depends-on): Likewise.
39886         * modules/vasnprintf-posix (Depends-on): Likewise.
39887         * modules/vasprintf-posix (Depends-on): Likewise.
39888         * modules/vfprintf-posix (Depends-on): Likewise.
39889         * modules/vsnprintf-posix (Depends-on): Likewise.
39890         * modules/vsprintf-posix (Depends-on): Likewise.
39891
39892 2007-04-06  Bruno Haible  <bruno@clisp.org>
39893
39894         * tests/test-frexp.c (main): Test also the sign bit of zero results.
39895         * tests/test-frexpl.c (main): Likewise.
39896         * tests/test-ldexpl.c (main): Likewise.
39897         * modules/frexp-tests (Depends-on): Add signbit.
39898         * modules/frexpl-tests (Depdends-on): Likewise.
39899         * modules/ldexpl-tests (Depdends-on): Likewise.
39900
39901 2007-04-06  Bruno Haible  <bruno@clisp.org>
39902
39903         * modules/signbit-tests: New file.
39904         * tests/test-signbit.c: New file.
39905
39906         * modules/signbit: New file.
39907         * lib/signbitf.c: New file.
39908         * lib/signbitd.c: New file.
39909         * lib/signbitl.c: New file.
39910         * m4/signbit.m4: New file.
39911         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
39912         (signbit): New macro.
39913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
39914         REPLACE_SIGNBIT.
39915         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
39916         REPLACE_FREXPL into math.h.
39917
39918 2007-04-06  Bruno Haible  <bruno@clisp.org>
39919
39920         * modules/isnanf-nolibm-tests: New file.
39921         * tests/test-isnanf.c: New file.
39922
39923         * modules/isnanf-nolibm: New file.
39924         * lib/isnanf.h: New file.
39925         * lib/isnanf.c: New file.
39926         * lib/isnan.c: Consider the USE_FLOAT macro.
39927         * m4/isnanf.m4: New file.
39928
39929 2007-04-06  Bruno Haible  <bruno@clisp.org>
39930
39931         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39932         (Link): New section.
39933
39934         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39935
39936 2007-04-06  Bruno Haible  <bruno@clisp.org>
39937
39938         Assume the 'long double' type.
39939         * m4/longdouble.m4: Remove file.
39940         * config/srclist.txt: Don't mention longdouble.m4.
39941         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39942         * lib/float+.h: Likewise.
39943         * lib/frexp.c: Likewise.
39944         * lib/printf-args.h: Likewise.
39945         * lib/printf-args.c: Likewise.
39946         * lib/printf-frexp.c: Likewise.
39947         * lib/printf-parse.c: Likewise.
39948         * lib/vasnprintf.c: Likewise.
39949         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39950         * m4/intl.m4: Likewise.
39951         * m4/isnanl.m4: Likewise.
39952         * m4/printf.m4: Likewise.
39953         * m4/printf-frexpl.m4: Likewise.
39954         * m4/vasnprintf.m4: Likewise.
39955         * modules/allocsa (Files): Remove m4/longdouble.m4.
39956         * modules/gettext (Files): Likewise.
39957         * modules/relocatable-prog-wrapper (Files): Likewise.
39958         * modules/vasnprintf (Files): Likewise.
39959         * modules/isnanl (Files): Likewise.
39960         (Include): Simplify.
39961         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
39962         (Include): Simplify.
39963         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
39964         (Include): Simplify.
39965         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
39966         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39967         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
39968         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39969         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39970         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39971         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
39972         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39973         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39974         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39975         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
39976         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39977         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
39978         * tests/test-isnanl.c: Likewise.
39979         * tests/test-snprintf-posix.h: Likewise.
39980         * tests/test-sprintf-posix.h: Likewise.
39981         * tests/test-vasnprintf-posix.c: Likewise.
39982         * tests/test-vasnprintf-posix2.c: Likewise.
39983         * tests/test-vasprintf-posix.c: Likewise.
39984
39985 2007-04-06  Bruno Haible  <bruno@clisp.org>
39986
39987         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
39988         * lib/math_.h [__DECC]: Include the overridden include file through
39989         #include_next, outside the double-inclusion guard.
39990         * lib/stdio_.h [__DECC]: Likewise.
39991         * lib/stdlib_.h [__DECC]: Likewise.
39992         * lib/string_.h [__DECC]: Likewise.
39993         * lib/time_.h [__DECC]: Likewise.
39994         * lib/wchar_.h [__DECC]: Likewise.
39995         * lib/wctype_.h [__DECC]: Likewise.
39996         * lib/inttypes_.h [__DECC]: Likewise.
39997         Reported by Albert Chin <china@thewrittenword.com> in
39998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
39999
40000 2007-04-04  Eric Blake  <ebb9@byu.net>
40001
40002         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40003         1.5.x.
40004
40005 2007-04-04  Bruno Haible  <bruno@clisp.org>
40006
40007         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40008         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40009
40010 2007-04-04  Bruno Haible  <bruno@clisp.org>
40011
40012         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40013         results for "%010a" of Infinity and NaN.
40014         * tests/test-vasprintf-posix.c (test_function): Likewise.
40015         * tests/test-snprintf-posix.h (test_function): Likewise.
40016         * tests/test-sprintf-posix.h (test_function): Likewise.
40017         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40018         * tests/test-printf-posix.h (test_function): Likewise.
40019         * tests/test-fprintf-posix.out: Update.
40020         Needed for FreeBSD 6.1.
40021
40022 2007-04-04  Bruno Haible  <bruno@clisp.org>
40023
40024         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40025         directly used by the gnulib modules nor by gnulib-tool.
40026
40027 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40028
40029         * DEPENDENCIES: Give overall description of version dependency
40030         desirability.  Use more-typical names for apps.
40031         Add shell, coreutils, diffutils, grep, tar, gzip.
40032
40033 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40034
40035         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40036
40037 2007-04-04  Karl Berry  <karl@gnu.org>
40038
40039         * MODULES.html.sh (func_module): missing '.
40040
40041 2007-04-03  Bruno Haible  <bruno@clisp.org>
40042
40043         * modules/argmatch-tests (Makefile.am): New variable
40044         test_argmatch_LDADD.
40045         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40046         * modules/array-list-tests (Makefile.am): New variable
40047         test_array_list_LDADD.
40048         * modules/array-oset-tests (Makefile.am): New variable
40049         test_array_oset_LDADD.
40050         * modules/avltree-list-tests (Makefile.am): New variable
40051         test_avltree_list_LDADD.
40052         * modules/avltree-oset-tests (Makefile.am): New variable
40053         test_avltree_oset_LDADD.
40054         * modules/avltreehash-list-tests (Makefile.am): New variable
40055         test_avltreehash_list_LDADD.
40056         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40057         test_canonicalize_lgpl_LDADD.
40058         * modules/carray-list-tests (Makefile.am): New variable
40059         test_carray_list_LDADD.
40060         * modules/dirname-tests (Makefile.am): New variable
40061         test_dirname_LDADD.
40062         * modules/linked-list-tests (Makefile.am): New variable
40063         test_linked_list_LDADD.
40064         * modules/linkedhash-list-tests (Makefile.am): New variable
40065         test_linkedhash_list_LDADD.
40066         * modules/rbtree-list-tests (Makefile.am): New variable
40067         test_rbtree_list_LDADD.
40068         * modules/rbtree-oset-tests (Makefile.am): New variable
40069         test_rbtree_oset_LDADD.
40070         * modules/rbtreehash-list-tests (Makefile.am): New variable
40071         test_rbtreehash_list_LDADD.
40072         * modules/xvasprintf-tests (Makefile.am): New variable
40073         test_xvasprintf_LDADD.
40074         Reported by Eric Blake.
40075
40076 2007-04-03  Eric Blake  <ebb9@byu.net>
40077
40078         * DEPENDENCIES: Weaken m4 requirements.
40079
40080 2007-04-03  Bruno Haible  <bruno@clisp.org>
40081
40082         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40083         * modules/isnanl-tests (configure.ac): Likewise.
40084
40085 2007-04-03  Ben Pfaff  <blp@gnu.org>
40086
40087         * modules/iconv_open: Add $(srcdir)/ to source directory
40088         references in Makefile fragments that call gperf, to fix VPATH
40089         builds.
40090
40091 2007-04-03  Bruno Haible  <bruno@clisp.org>
40092
40093         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40094         * lib/ldexpl.c: Undo last change.
40095
40096 2007-04-03  Bruno Haible  <bruno@clisp.org>
40097
40098         * modules/printf-frexpl (Depends-on): Undo last change.
40099         (Files): Add m4/ldexpl.m4.
40100
40101 2007-04-03  Bruno Haible  <bruno@clisp.org>
40102
40103         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40104         * modules/isnanl (Link): New section.
40105
40106         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40107         * modules/frexp (Link): New section.
40108
40109         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40110         * modules/frexpl (Link): New section.
40111
40112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40113         * modules/ldexpl (Link): New section.
40114
40115 2007-04-03  Bruno Haible  <bruno@clisp.org>
40116
40117         * modules/TEMPLATE-EXTENDED: New file.
40118         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40119
40120 2007-04-03  Bruno Haible  <bruno@clisp.org>
40121
40122         * DEPENDENCIES: New file.
40123         Suggested by Simon Josefsson.
40124
40125 2007-04-03  Bruno Haible  <bruno@clisp.org>
40126
40127         * doc/gnulib.texi: Escape @.
40128
40129 2007-04-03  James Youngman  <jay@gnu.org>
40130         and Paul Eggert  <eggert@cs.ucla.edu>
40131
40132         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40133         birthtime on all systems that have birthtime, not just those which
40134         use st_birthtimensec rather than st_birthtim.  Putting zero in
40135         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40136         that the birth time is not available for files on an NFS mount.
40137
40138 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40139
40140         * modules/memxor: Move back from crypto/, suggested by Bruno.
40141         * modules/crypto/hmac-sha1: Fix memxor dependency.
40142
40143         * modules/crypto/gc: Moved from ../.
40144
40145 2007-04-02  Eric Blake  <ebb9@byu.net>
40146
40147         * lib/ldexpl.c (includes): Avoid libm.
40148
40149         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40150
40151 2007-04-02  Bruno Haible  <bruno@clisp.org>
40152
40153         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40154         on IRIX.
40155
40156 2007-04-02  Bruno Haible  <bruno@clisp.org>
40157
40158         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40159         x86 or x86_64 platforms running MacOS X.
40160         Reported by Ryan Schmidt <@ryandesign.com>.
40161
40162 2007-04-02  Bruno Haible  <bruno@clisp.org>
40163
40164         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40165         i386.
40166
40167 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40168
40169         * modules/crypto/arcfour: Moved from ../.
40170         * modules/crypto/arcfour-tests: Moved from ../.
40171         * modules/crypto/arctwo: Moved from ../.
40172         * modules/crypto/arctwo-tests: Moved from ../.
40173         * modules/crypto/des: Moved from ../.
40174         * modules/crypto/des-tests: Moved from ../.
40175         * modules/crypto/gc-arcfour: Moved from ../.
40176         * modules/crypto/gc-arcfour-tests: Moved from ../.
40177         * modules/crypto/gc-arctwo: Moved from ../.
40178         * modules/crypto/gc-arctwo-tests: Moved from ../.
40179         * modules/crypto/gc-des: Moved from ../.
40180         * modules/crypto/gc-des-tests: Moved from ../.
40181         * modules/crypto/gc-hmac-md5: Moved from ../.
40182         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40183         * modules/crypto/gc-hmac-sha1: Moved from ../.
40184         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40185         * modules/crypto/gc-md2: Moved from ../.
40186         * modules/crypto/gc-md2-tests: Moved from ../.
40187         * modules/crypto/gc-md4: Moved from ../.
40188         * modules/crypto/gc-md4-tests: Moved from ../.
40189         * modules/crypto/gc-md5: Moved from ../.
40190         * modules/crypto/gc-md5-tests: Moved from ../.
40191         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40192         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40193         * modules/crypto/gc-random: Moved from ../.
40194         * modules/crypto/gc-rijndael: Moved from ../.
40195         * modules/crypto/gc-rijndael-tests: Moved from ../.
40196         * modules/crypto/gc-sha1: Moved from ../.
40197         * modules/crypto/gc-sha1-tests: Moved from ../.
40198         * modules/crypto/gc-tests: Moved from ../.
40199         * modules/crypto/hmac-md5: Moved from ../.
40200         * modules/crypto/hmac-md5-tests: Moved from ../.
40201         * modules/crypto/hmac-sha1: Moved from ../.
40202         * modules/crypto/hmac-sha1-tests: Moved from ../.
40203         * modules/crypto/md2: Moved from ../.
40204         * modules/crypto/md2-tests: Moved from ../.
40205         * modules/crypto/md4: Moved from ../.
40206         * modules/crypto/md4-tests: Moved from ../.
40207         * modules/crypto/md5: Moved from ../.
40208         * modules/crypto/md5-tests: Moved from ../.
40209         * modules/crypto/memxor: Moved from ../.
40210         * modules/crypto/rijndael: Moved from ../.
40211         * modules/crypto/rijndael-tests: Moved from ../.
40212         * modules/crypto/sha1: Moved from ../.
40213
40214 2007-03-30  James Youngman  <jay@gnu.org>
40215
40216         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40217         rename() to change the ctime of a file (because ctime is unaffected
40218         by rename on jfs2 on AIX 5.1).
40219         (main): Start by doing cleanup, in case a previous run failed leaving
40220         test files behind.
40221
40222 2007-03-31  Bruno Haible  <bruno@clisp.org>
40223
40224         Support old proprietary implementations of iconv.
40225         * modules/iconv_open: New file.
40226         * lib/iconv_.h: New file.
40227         * m4/iconv_h.m4: New file.
40228         * lib/iconv_open.c: New file.
40229         * lib/iconv_open-aix.gperf: New file.
40230         * lib/iconv_open-hpux.gperf: New file.
40231         * lib/iconv_open-irix.gperf: New file.
40232         * lib/iconv_open-osf.gperf: New file.
40233         * m4/iconv_open.m4: New file.
40234         * modules/linebreak (Depends-on): Add iconv_open.
40235         * modules/striconv (Depends-on): Likewise.
40236         * modules/striconveh (Depends-on): Likewise.
40237         * modules/unicodeio (Depends-on): Likewise.
40238         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40239         (iconv_t)(-1).
40240         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40241         conversion if cd is (iconv_t)(-1).
40242         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40243         is not possible.
40244
40245 2007-03-31  Bruno Haible  <bruno@clisp.org>
40246
40247         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40248         work on Solaris either. Protect also second use of "autodetect_jp".
40249
40250 2007-03-31  Bruno Haible  <bruno@clisp.org>
40251
40252         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40253         the function is not present.
40254
40255 2007-03-31  Bruno Haible  <bruno@clisp.org>
40256
40257         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40258         the function is not present.
40259
40260 2007-03-31  Bruno Haible  <bruno@clisp.org>
40261
40262         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40263         a bug in HP-UX iconv_open().
40264
40265 2007-03-31  Bruno Haible  <bruno@clisp.org>
40266
40267         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40268         (Mathematics <math.h>): New section, add fpieee.
40269         (Input/output <stdio.h>): Add fseterr.
40270         (Mathematics <math.h>): New section, add printf-frexp.
40271         (Container data structures): Add sublist.
40272         (Core language properties): Add fpucw, inline.
40273         (Functions for greatest-width integer types <inttypes.h>): Add
40274         imaxabs, imaxdiv, inttypes.
40275         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40276         isnanl-nolibm, ldexp.
40277         (Mathematics <math.h>): New section, add printf-frexpl.
40278         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40279         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40280         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40281         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40282         (Unicode string functions): Add unistr/u*-mbtoucr.
40283         (Java): Add javacomp-script, javaexec-script.
40284         (C#): Add csharpcomp-script, csharpexec-script.
40285         (Support for building libraries and executables): Add havelib,
40286         relocatable-*.
40287         (Support for maintaining and releasing projects): Renamed from
40288         'Support for maintaining and release projects'. Add announce-gen.
40289
40290 2007-03-31  Bruno Haible  <bruno@clisp.org>
40291
40292         * README: Talk primarily about git.
40293         (git and CVS): Renamed from CVS.
40294         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40295         gnulib is available through git.
40296         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40297
40298 2007-03-30  Bruno Haible  <bruno@clisp.org>
40299
40300         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40301         * lib/poll_.h: Likewise.
40302         * lib/stat_.h: Likewise.
40303         * lib/sys_time_.h: Likewise.
40304         * lib/sysexit_.h: Likewise.
40305         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40306         * lib/stdbool_.h: Likewise.
40307         * lib/byteswap_.h: Add double-inclusion guard.
40308
40309 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40310
40311         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40312
40313 2007-03-30  Karl Berry  <karl@gnu.org>
40314
40315         * config/srclist-update: double space after USA in the license
40316         substitution, since that's how it's usually (?) written.
40317
40318 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40319
40320         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40321         reported by Bruno Haible.
40322
40323 2007-03-29  Bruno Haible  <bruno@clisp.org>
40324
40325         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40326         a bug in AIX iconv().
40327
40328 2007-03-29  Bruno Haible  <bruno@clisp.org>
40329
40330         * modules/ldexpl-tests: New file.
40331         * tests/test-ldexpl.c: New file.
40332
40333 2007-03-29  Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/ldexpl.c: Include fpucw.h.
40336         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40337         multiplication.
40338         * modules/ldexpl (Depends-on): Add fpucw.
40339
40340 2007-03-29  Bruno Haible  <bruno@clisp.org>
40341
40342         * modules/ldexpl: New file.
40343         * m4/ldexpl.m4: New file.
40344         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40345         set.
40346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40347         REPLACE_LDEXPL.
40348         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40349         REPLACE_LDEXPL.
40350         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40351         gl_FUNC_LDEXPL_WORKS.
40352         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40353         * modules/mathl (Files): Remove lib/ldexpl.c.
40354         (Depends-on): Add ldexpl.
40355
40356 2007-03-29  Bruno Haible  <bruno@clisp.org>
40357
40358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40359
40360 2007-03-29  Bruno Haible  <bruno@clisp.org>
40361
40362         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40363         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
40364         and possibly also HP-UX.
40365         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40366         work on AIX, IRIX, HP-UX, OSF/1.
40367         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40368         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40369         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40370         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40371         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
40372         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40373
40374 2007-03-29  Bruno Haible  <bruno@clisp.org>
40375
40376         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
40377
40378 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40379
40380         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
40381         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
40382
40383 2007-03-29  Eric Blake  <ebb9@byu.net>
40384
40385         * lib/acl-internal.h: Remove redundant include.
40386         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
40387         Cygwin when a file is locked.
40388
40389 2007-03-29  Bruno Haible  <bruno@clisp.org>
40390
40391         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
40392         file.
40393         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
40394
40395 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
40398         try to remove a parent directory if the child couldn't be removed
40399         (except for the first rmdir, which could fail because the child
40400         doesn't exist).  Problem reported by Jeff Blaine in
40401         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
40402
40403 2007-03-28  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/striconveh.c (utf8conv_carefully): New function.
40406         (mem_cd_iconveh_internal): Invoke it.
40407
40408 2007-03-28  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
40411         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
40412         input.
40413         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
40414         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
40415         unistr/u8-uctomb.
40416
40417 2007-03-28  Bruno Haible  <bruno@clisp.org>
40418
40419         * modules/unistr/u8-mbtoucr: New file.
40420         * lib/unistr/u8-mbtoucr.c: New file.
40421         * modules/unistr/u16-mbtoucr: New file.
40422         * lib/unistr/u16-mbtoucr.c: New file.
40423         * modules/unistr/u16-mbtoucr: New file.
40424         * lib/unistr/u16-mbtoucr.c: New file.
40425         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
40426
40427 2007-03-27  Simon Josefsson  <simon@josefsson.org>
40428             Bruno Haible  <bruno@clisp.org>
40429
40430         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
40431         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
40432         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
40433
40434         * m4/stdio_h.m4: Add stubs for vasprintf too.
40435
40436         * modules/stdio: Support vasprintf in sed command.
40437
40438         * modules/vasprintf: Depend on stdio for prototypes.  Remove
40439         vasprintf.h.  Add stdio module indicator.
40440
40441         * lib/stdio_.h: Declare asprintf and vasprintf, based on
40442         vasprintf.h.
40443
40444         * lib/vasprintf.h: File removed.
40445
40446         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
40447         * lib/vasprintf.c: Ditto.
40448         * lib/xvasprintf.c: Ditto.
40449         * tests/test-vasprintf-posix.c: Ditto.
40450         * tests/test-vasprintf.c: Ditto.
40451
40452 2007-03-27  Bruno Haible  <bruno@clisp.org>
40453
40454         Make vasnprintf multithread-safe.
40455         * lib/vasnprintf.c (decimal_point_char): New function.
40456         (VASNPRINTF): Use it.
40457         Suggested by Simon Josefsson.
40458
40459 2007-03-27  Eric Blake  <ebb9@byu.net>
40460
40461         Support sub-second birthtime on cygwin.
40462         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
40463         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
40464         (get_stat_birthtime): Also work with st_birthtim.
40465
40466 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         * lib/stat-time.h (USE_BIRTHTIME): Remove.
40469         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
40470         (get_stat_birthtime_ns): Do not try to use "spare" fields.
40471         (get_stat_birthtime_ns): Simplify compile-time tests.
40472         (get_stat_birthtime): Change the API to look like
40473         get_stat_mtime etc., except return a negative tv_nsec on error.
40474         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
40475         Don't check for "spare" fields.
40476         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
40477         or for struct stat.st_birthtime, as these tests aren't used.
40478         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
40479
40480 2007-03-27  Bruno Haible  <bruno@clisp.org>
40481
40482         * lib/stat-time.h: Include <sys/stat.h>.
40483
40484 2007-03-27  James Youngman  <jay@gnu.org>
40485
40486         * lib/stat-time.h (get_stat_birthtime): New function for
40487           retrieving st_birthtime as provided by UFS2 (hence *BSD).
40488         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
40489           and its variants.
40490         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
40491         * modules/stat-time-test: New file.
40492         * tests/test-stat-time.c: New test, devised by Bruno Haible.
40493
40494 2007-03-26  Bruno Haible  <bruno@clisp.org>
40495
40496         Better support of signalling NaNs.
40497         * lib/atanl.c: Include isnanl.h.
40498         (atanl): Perform test for NaN at the beginning of the function and
40499         through a call to isnanl.
40500         * lib/cosl.c: Include isnanl.h.
40501         (cosl): Perform test for NaN at the beginning of the function and
40502         through a call to isnanl.
40503         * lib/ldexpl.c: Include isnanl.h.
40504         (ldexpl): Perform test for NaN through a call to isnanl.
40505         * lib/logl.c: Include isnanl.h.
40506         (logl): Perform test for NaN at the beginning of the function and
40507         through a call to isnanl.
40508         * lib/sinl.c: Include isnanl.h.
40509         (sinl): Perform test for NaN at the beginning of the function and
40510         through a call to isnanl.
40511         * lib/sqrtl.c: Include isnanl.h.
40512         (sqrtl): Perform test for NaN at the beginning of the function and
40513         through a call to isnanl.
40514         * lib/tanl.c: Include isnanl.h.
40515         (tanl): Perform test for NaN at the beginning of the function and
40516         through a call to isnanl.
40517         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
40518         * modules/mathl (Depends-on): Add isnanl.
40519
40520 2007-03-26  Eric Blake  <ebb9@byu.net>
40521
40522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
40523         regression in logic sense of previous patch.
40524
40525 2007-03-26  Bruno Haible  <bruno@clisp.org>
40526
40527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
40528         unportable shell command "if ! ...".
40529         Reported by Ralf Wildenhues.
40530
40531 2007-03-25  Bruno Haible  <bruno@clisp.org>
40532
40533         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
40534         <sysexits.h> file, and only add EX_CONFIG.
40535         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
40536         absolute file name and whether it is sufficient. Substitute also
40537         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
40538         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
40539         ABSOLUTE_SYSEXITS_H into sysexits.h.
40540
40541 2007-03-25  Bruno Haible  <bruno@clisp.org>
40542
40543         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
40544         hints is NULL.
40545
40546 2007-03-25  Bruno Haible  <bruno@clisp.org>
40547
40548         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
40549         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
40550
40551 2007-03-25  Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/vasnprintf.c: Include langinfo.h.
40554         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
40555         multithread-safe.
40556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
40557         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
40558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
40564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40565         Reported by Simon Josefsson.
40566
40567 2007-03-25  Bruno Haible  <bruno@clisp.org>
40568
40569         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
40570         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
40571         * modules/vasnprintf (Depends-on): Add stdint.
40572
40573 2007-03-25  Bruno Haible  <bruno@clisp.org>
40574
40575         * modules/fpieee: New file.
40576         * m4/fpieee.m4: New file.
40577         * modules/isnan-nolibm (Depends-on): Add fpieee.
40578         * modules/isnanl-nolibm (Depends-on): Add fpieee.
40579         * modules/isnanl (Depends-on): Add fpieee.
40580
40581 2007-03-25  Bruno Haible  <bruno@clisp.org>
40582
40583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
40584
40585 2007-03-25  Bruno Haible  <bruno@clisp.org>
40586
40587         Avoid test failures on IRIX 6.5.
40588         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
40589         (main): Use it.
40590         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
40591         macros.
40592         (main): Use them.
40593
40594 2007-03-25  Bruno Haible  <bruno@clisp.org>
40595
40596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
40597         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
40598         exists but doesn't work.
40599         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
40600         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
40601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
40602         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
40603
40604 2007-03-25  Bruno Haible  <bruno@clisp.org>
40605
40606         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
40607         returns inf. Needed on IRIX 6.5.
40608
40609 2007-03-25  Bruno Haible  <bruno@clisp.org>
40610
40611         * tests/test-frexpl.c: Include isnanl-nolibm.h.
40612         (main): Use isnanl instead of x != x idiom.
40613         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
40614
40615         * tests/test-frexp.c: Include isnan.h.
40616         (main): Use isnan instead of x != x idiom.
40617         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
40618
40619 2007-03-25  Bruno Haible  <bruno@clisp.org>
40620
40621         * tests/test-frexp.c (NaN): New function/macro.
40622         (main): Use it instead of 0.0 / 0.0.
40623         * tests/test-isnan.c (NaN): New function/macro.
40624         (main): Use it instead of 0.0 / 0.0.
40625         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
40626         (test_function): Use it instead of 0.0 / 0.0.
40627         * tests/test-vasprintf-posix.c (NaN): New function/macro.
40628         (test_function): Use it instead of 0.0 / 0.0.
40629         * tests/test-snprintf-posix.h (NaN): New function/macro.
40630         (test_function): Use it instead of 0.0 / 0.0.
40631         * tests/test-sprintf-posix.h (NaN): New function/macro.
40632         (test_function): Use it instead of 0.0 / 0.0.
40633         * tests/test-fprintf-posix.h (NaN): New function/macro.
40634         (test_function): Use it instead of 0.0 / 0.0.
40635         * tests/test-printf-posix.h (NaN): New function/macro.
40636         (test_function): Use it instead of 0.0 / 0.0.
40637
40638         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
40639
40640 2007-03-25  Bruno Haible  <bruno@clisp.org>
40641
40642         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
40643
40644 2007-03-25  Bruno Haible  <bruno@clisp.org>
40645
40646         * lib/regexec.c (merge_state_with_log): Make static.
40647
40648 2007-03-25  Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/trigl.c (kernel_rem_pio2): Make static.
40651
40652 2007-03-25  Bruno Haible  <bruno@clisp.org>
40653
40654         * lib/sincosl.c (sincosl_table): Make static.
40655
40656 2007-03-25  Bruno Haible  <bruno@clisp.org>
40657
40658         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
40659         if the compiler does not support C99.
40660
40661 2007-03-25  Bruno Haible  <bruno@clisp.org>
40662
40663         * modules/time (Makefile.am): Ensure all rule action lines start with a
40664         tab.
40665
40666 2007-03-24  Bruno Haible  <bruno@clisp.org>
40667
40668         * modules/tsearch-tests: New file.
40669         * tests/test-tsearch.sh: New file.
40670         * tests/test-tsearch.c: New file, mostly copied from glibc.
40671
40672         * modules/search-tests: New file.
40673         * tests/test-search.c: New file.
40674
40675         * modules/search: New file.
40676         * lib/search_.h: New file, incorporating lib/tsearch.h.
40677         * m4/search_h.m4: New file.
40678         * lib/tsearch.h: Remove file.
40679         * lib/tsearch.c: Include search.h instead of tsearch.h.
40680         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
40681         HAVE_TSEARCH.
40682         * modules/tsearch (Files): Remove lib/tsearch.h.
40683         (Depends-on): Add search.
40684         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
40685         (Include): Change tsearch.h into search.h.
40686
40687 2007-03-24  Bruno Haible  <bruno@clisp.org>
40688
40689         * modules/fpucw: New file.
40690         * lib/fpucw.h: New file.
40691         * lib/frexp.c: Include fpucw.h.
40692         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40693         (FUNC): Use them.
40694         * lib/printf-frexp.c: Include fpucw.h.
40695         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40696         (FUNC): Use them.
40697         * lib/vasnprintf.c: Include fpucw.h.
40698         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
40699         'long double' calculations.
40700         * tests/test-frexpl.c: Include fpucw.h.
40701         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40702         * tests/test-printf-frexpl.c: Include fpucw.h.
40703         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40704         * modules/frexpl (Depends-on): Add fpucw.
40705         * modules/printf-frexpl (Depends-on): Likewise.
40706         * modules/fprintf-posix (Depends-on): Likewise.
40707         * modules/snprintf-posix (Depends-on): Likewise.
40708         * modules/sprintf-posix (Depends-on): Likewise.
40709         * modules/vasnprintf-posix (Depends-on): Likewise.
40710         * modules/vasprintf-posix (Depends-on): Likewise.
40711         * modules/vfprintf-posix (Depends-on): Likewise.
40712         * modules/vsnprintf-posix (Depends-on): Likewise.
40713         * modules/vsprintf-posix (Depends-on): Likewise.
40714         * modules/frexpl-tests (Depends-on): Likewise.
40715         * modules/printf-frexpl-tests (Depends-on): Likewise.
40716
40717 2007-03-24  Bruno Haible  <bruno@clisp.org>
40718
40719         * lib/float+.h: New file.
40720         * lib/isnan.c: Include float+.h.
40721         (SIZE): New macro.
40722         (FUNC): Compare only SIZE bytes of the value.
40723         * lib/vasnprintf.c: Include float+.h.
40724         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
40725         SIZEOF_LDBL or SIZEOF_DBL bytes.
40726         * modules/isnan-nolibm (Files): Add lib/float+.h.
40727         * modules/isnanl-nolibm (Files): Add lib/float+.h.
40728         * modules/isnanl (Files): Add lib/float+.h.
40729         * modules/vasnprintf (Files): Add lib/float+.h.
40730
40731 2007-03-24  Bruno Haible  <bruno@clisp.org>
40732
40733         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
40734         include isnanl-nolibm.h.
40735
40736 2007-03-24  Bruno Haible  <bruno@clisp.org>
40737
40738         * tests/test-read-file.c (main): Don't produce spurious output for
40739         expected situations. Make the test fail if it encountered unexpected
40740         results.
40741
40742 2007-03-24  Bruno Haible  <bruno@clisp.org>
40743
40744         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
40745         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
40746
40747 2007-03-24  Bruno Haible  <bruno@clisp.org>
40748
40749         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
40750
40751 2007-03-24  Bruno Haible  <bruno@clisp.org>
40752
40753         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
40754         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
40755
40756         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
40757         * modules/utf8-ucs4: Turn into a symbolic link to module
40758         unistr/u8-mbtouc.
40759
40760         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
40761         utf8-ucs4-unsafe.
40762         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
40763         unistr/u8-mbtouc-unsafe.
40764
40765         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
40766         * modules/utf16-ucs4: Turn into a symbolic link to module
40767         unistr/u16-mbtouc.
40768
40769         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
40770         utf16-ucs4-unsafe.
40771         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
40772         unistr/u16-mbtouc-unsafe.
40773
40774         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
40775         * modules/ucs4-utf8: Turn into a symbolic link to module
40776         unistr/u8-ubtomb.
40777
40778         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
40779         * modules/ucs4-utf16: Turn into a symbolic link to module
40780         unistr/u16-ubtomb.
40781
40782 2007-03-24  Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
40785         Enable the function only if HAVE_INLINE.
40786         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
40787         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40788         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
40789         Enable the function only if HAVE_INLINE.
40790         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
40791         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40792         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
40793         Enable the function only if HAVE_INLINE.
40794         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
40795         Enable the function only if HAVE_INLINE.
40796         * modules/utf8-ucs4: Update.
40797         * modules/utf8-ucs4-unsafe: Update.
40798         * modules/utf16-ucs4: Update.
40799         * modules/utf16-ucs4-unsafe: Update.
40800         * modules/ucs4-utf8: Update.
40801         * modules/ucs4-utf16: Update.
40802
40803 2007-03-24  Bruno Haible  <bruno@clisp.org>
40804
40805         * lib/utf8-ucs4.h: Remove file.
40806         * lib/utf8-ucs4-unsafe.h: Remove file.
40807         * lib/utf16-ucs4.h: Remove file.
40808         * lib/utf16-ucs4-unsafe.h: Remove file.
40809         * lib/ucs4-utf8.h: Remove file.
40810         * lib/ucs4-utf16.h: Remove file.
40811         * lib/unistr.h: Include their previous contents.
40812         * m4/utf-ucs4.m4: Remove file.
40813         * m4/ucs4-utf.m4: Remove file.
40814         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
40815         (Depends-on): Add unistr/base.
40816         (configure.ac): Remove gl_UTF_UCS4.
40817         (Makefile.am): Update.
40818         (Include): Change to unistr.h.
40819         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
40820         (Depends-on): Add unistr/base.
40821         (configure.ac): Remove gl_UTF_UCS4.
40822         (Makefile.am): Update.
40823         (Include): Change to unistr.h.
40824         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
40825         (Depends-on): Add unistr/base.
40826         (configure.ac): Remove gl_UTF_UCS4.
40827         (Makefile.am): Update.
40828         (Include): Change to unistr.h.
40829         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
40830         (Depends-on): Add unistr/base.
40831         (configure.ac): Remove gl_UTF_UCS4.
40832         (Makefile.am): Update.
40833         (Include): Change to unistr.h.
40834         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
40835         (Depends-on): Add unistr/base.
40836         (configure.ac): Remove gl_UCS4_UTF.
40837         (Makefile.am): Update.
40838         (Include): Change to unistr.h.
40839         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
40840         (Depends-on): Add unistr/base.
40841         (configure.ac): Remove gl_UCS4_UTF.
40842         (Makefile.am): Update.
40843         (Include): Change to unistr.h.
40844         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
40845         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
40846         utf8-ucs4-unsafe.h.
40847         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
40848         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
40849         utf16-ucs4-unsafe.h.
40850         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
40851         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
40852         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
40853         * lib/unistr/u8-strchr.c: Likewise.
40854         * lib/unistr/u8-strrchr.c: Likewise.
40855         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
40856         * lib/unistr/u16-strchr.c: Likewise.
40857         * lib/unistr/u16-strrchr.c: Likewise.
40858         * lib/striconveh.c: Update.
40859         * lib/linebreak.c: Update.
40860
40861 2007-03-24  Bruno Haible  <bruno@clisp.org>
40862
40863         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
40864         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
40865
40866 2007-03-22  Bruno Haible  <bruno@clisp.org>
40867
40868         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
40869
40870 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40871
40872         * MODULES.html.sh (File system functions): New module write-any-file.
40873         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
40874         * m4/write-any-file.m4: New files.
40875
40876 2007-03-23  Eric Blake  <ebb9@byu.net>
40877
40878         * gnulib-tool: Rearrange space-tab sequences, since some editors
40879         like to eat them.
40880
40881 2007-03-23  Eric Blake  <ebb9@byu.net>
40882
40883         * lib/version-etc.c (version_etc_va): Update license wording to
40884         be more concise.  Recommended by Richard Stallman.
40885
40886 2007-03-22  Bruno Haible  <bruno@clisp.org>
40887
40888         * lib/poll.c (MSG_PEEK): New fallback definition.
40889
40890 2007-03-22  Bruno Haible  <bruno@clisp.org>
40891
40892         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
40893         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
40894         (main): Update.
40895         Fixes a compilation error on BeOS.
40896
40897 2007-03-22  Bruno Haible  <bruno@clisp.org>
40898
40899         * modules/frexpl-tests: New file.
40900         * tests/test-frexpl.c: New file.
40901
40902         * modules/frexpl: New file.
40903         * m4/frexpl.m4: New file.
40904         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
40905         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
40906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
40907         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
40908         (Depends-on): Add frexpl. Remove isnanl-nolibm.
40909         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
40910
40911 2007-03-22  Bruno Haible  <bruno@clisp.org>
40912
40913         * lib/frexpl.c: Share code with lib/frexp.c.
40914         * modules/mathl (Files): Add lib/frexp.c.
40915         (Depends-on): Add isnanl-nolibm.
40916
40917 2007-03-22  Bruno Haible  <bruno@clisp.org>
40918
40919         * modules/printf-frexp (Files): Add m4/frexp.m4.
40920         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40921         only if the found frexp function actually works.
40922
40923 2007-03-22  Bruno Haible  <bruno@clisp.org>
40924
40925         * lib/frexp.c: Remove older implementation that uses divisions.
40926
40927 2007-03-21  Bruno Haible  <bruno@clisp.org>
40928
40929         * modules/frexp-tests: New file.
40930         * tests/test-frexp.c: New file.
40931
40932         * modules/frexp: New file.
40933         * lib/frexp.c: New file.
40934         * m4/frexp.m4: New file.
40935         * lib/math_.h (frexp): New declaration.
40936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40937         REPLACE_FREXP.
40938         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40939
40940 2007-03-21  Bruno Haible  <bruno@clisp.org>
40941
40942         * modules/isnanl-tests: New file.
40943         * tests/test-isnanl.c: New file.
40944
40945         * modules/isnanl: New file.
40946         * lib/isnanl.h: New file.
40947         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40948         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40949         gl_FUNC_ISNANL_WORKS.
40950         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40951         New macros.
40952
40953 2007-03-21  Bruno Haible  <bruno@clisp.org>
40954
40955         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
40956         lib/isnanl.h.
40957         (Include): Update.
40958         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
40959         * lib/vasnprintf.c: Update.
40960         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
40961         tests/test-isnanl.h, remove tests/test-isnanl.c.
40962         (Makefile.am): Update.
40963         * tests/test-isnanl-nolibm.c: New file.
40964         * tests/test-isnanl.h: New file.
40965         * tests/test-isnanl.c: Remove file.
40966
40967 2007-03-21  Jim Meyering  <jim@meyering.net>
40968
40969         When trying to open ".", treat ESTALE like EACCES.
40970         * lib/savewd.c (savewd_save): Resort to forking not just upon
40971         failure with EACCES, but also when errno is ESTALE.
40972
40973 2007-03-20  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
40976         Needed on AIX 5.1. Reported by Matthew Woehlke.
40977
40978 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40979
40980         Suggestions by Bruno Haible:
40981         * lib/acl-internal.h: Include "gettext.h" rather than rolling
40982         our own.
40983         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
40984         * modules/acl (Depends-on): Add gettext.
40985
40986 2007-03-19  Bruno Haible  <bruno@clisp.org>
40987
40988         * modules/iconvme: Remove file.
40989         * lib/iconvme.h: Remove file.
40990         * lib/iconvme.c: Remove file.
40991         * m4/iconvme.m4: Remove file.
40992
40993 2007-03-19  Bruno Haible  <bruno@clisp.org>
40994
40995         * doc/relocatable-maint.texi: Break long shell script line.
40996         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40997
40998 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40999
41000         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41001         handle file_has_acl.
41002         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41003         * lib/acl.c: Move header inclusions and related macro defns into
41004         lib/acl-internal.h.
41005         (S_ISLNK): Remove defn, since that's now done for us.
41006         (file_has_acl): Move to lib/file-has-acl.c.
41007         Call acl_trivial if available.  This is the crucial part of the fix.
41008         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41009         shared within the library.  Rewrite a bit, partly to make it compatible
41010         with the GNU coding style.
41011         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41012         Remove unnecessary double-quotes.
41013         Don't test for acl_to_text; the build will catch that.
41014         Replace acl_entries if it doesn't exist and it is needed.
41015         Check for -lsec and acl_trivial (as used on Solaris 10).
41016         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41017         lib/file-has-acl.c.
41018         (Depends-on): Add sys_stat, for S_ISLNK.
41019
41020 2007-03-19  Ben Pfaff  <blp@gnu.org>
41021
41022         * doc/gnulib.texi: Fix typos.
41023         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41024
41025 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41026
41027         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41028         If size is zero here, buf must be zero.
41029
41030 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41031
41032         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41033         <bruno@clisp.org>.
41034
41035 2007-03-18  Bruno Haible  <bruno@clisp.org>
41036
41037         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41038         Suggested by Eric Blake.
41039
41040 2007-03-18  Ben Pfaff  <blp@gnu.org>
41041
41042         * doc/relocatable.texi: Recommend using as prefix a directory
41043         that does not exist and will never be created.  Based on
41044         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41045         and others.
41046
41047 2007-03-17  Bruno Haible  <bruno@clisp.org>
41048
41049         * lib/fchownat.c: Include lchown.h.
41050
41051 2007-03-17  Bruno Haible  <bruno@clisp.org>
41052
41053         Fix endless loop when the given allocated size was > INT_MAX.
41054         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41055         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41056         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41057         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41058         * lib/sprintf.c (sprintf): Likewise.
41059
41060 2007-03-17  Bruno Haible  <bruno@clisp.org>
41061
41062         * tests/test-argp-2.sh (func_compare): Output a context diff.
41063
41064 2007-03-17  Bruno Haible  <bruno@clisp.org>
41065
41066         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41067         locale's decimal-point character.
41068
41069 2007-03-17  Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41072         before comparing it. Needed because on some platforms (e.g. x86) a
41073         'long double' occupies less bytes than sizeof (long double).
41074
41075 2007-03-17  Bruno Haible  <bruno@clisp.org>
41076
41077         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41078         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41079         * tests/test-getaddrinfo.c (simple): Likewise.
41080         * tests/test-read-file.c (main): Likewise.
41081
41082 2007-03-17  Bruno Haible  <bruno@clisp.org>
41083
41084         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41085
41086 2007-03-17  Bruno Haible  <bruno@clisp.org>
41087
41088         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41089         unused variable.
41090
41091 2007-03-17  Bruno Haible  <bruno@clisp.org>
41092
41093         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41094         * tests/test-c-strncasecmp.c: Likewise.
41095
41096 2007-03-17  Bruno Haible  <bruno@clisp.org>
41097
41098         * modules/stdlib (Depends-on): Add unistd.
41099         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41100         Needed for MacOS X 10.3.
41101
41102 2007-03-17  Bruno Haible  <bruno@clisp.org>
41103
41104         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41105
41106 2007-03-17  Bruno Haible  <bruno@clisp.org>
41107
41108         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41109
41110 2007-03-17  Bruno Haible  <bruno@clisp.org>
41111
41112         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41113         to reflect files copied from gnulib (with or without modifications).
41114         Suggested by Jim Meyering.
41115
41116 2007-03-17  Eric Blake  <ebb9@byu.net>
41117
41118         * NEWS: Document stdlib change from 2007-02-18.
41119
41120 2007-03-17  Jim Meyering  <jim@meyering.net>
41121
41122         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41123         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41124         someone uses a name containing shell meta-characters.
41125         Reported by Alfred M. Szmidt.
41126
41127         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41128
41129 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41130
41131         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41132         and copy gettext configuration files only if configure.ac contains
41133         a use of AM_GNU_GETTEXT_VERSION.
41134
41135 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41136
41137         * build-aux/bootstrap (gnulib_name): New variable.
41138         (gnulib_tool_options): Use it.
41139
41140 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41141
41142         * tests/test-des.c: Use new namespace.
41143
41144 2007-03-15  Bruno Haible  <bruno@clisp.org>
41145
41146         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41147         Reported by James Youngman <jay@gnu.org>.
41148
41149 2007-03-15  Bruno Haible  <bruno@clisp.org>
41150
41151         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41152         declared prototype. Needed with cc on OSF/1 5.1.
41153
41154 2007-03-15  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41157         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41158         (struct gl_list_implementation): Add dispose_fn argument to the
41159         'create_empty', 'create' methods.
41160         (struct gl_list_impl_base): Add field 'dispose_fn'.
41161         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41162         argument.
41163         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41164         dispose_fn argument.
41165         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41166         dispose_fn on the dropped values.
41167         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41168         dispose_fn argument.
41169         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41170         dropped values.
41171         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41172         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41173         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41174         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41175         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41176         argument.
41177         (gl_tree_list_free): Call dispose_fn on the dropped values.
41178         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41179         the dropped values.
41180         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41181         Add dispose_fn argument.
41182         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41183         Call dispose_fn on the dropped values.
41184         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41185         Add dispose_fn argument.
41186         (gl_sublist_create): Initialize the 'dispose_fn' field.
41187         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41188         * tests/test-array_list.c (main): Update.
41189         * tests/test-carray_list.c (main): Update.
41190         * tests/test-avltree_list.c (main): Update.
41191         * tests/test-rbtree_list.c (main): Update.
41192         * tests/test-avltreehash_list.c (main): Update.
41193         * tests/test-rbtreehash_list.c (main): Update.
41194         * tests/test-linked_list.c (main): Update.
41195         * tests/test-linkedhash_list.c (main): Update.
41196         * tests/test-array_oset.c (main): Update.
41197
41198 2007-03-15  Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41201         (gl_oset_create_empty): Add dispose_fn argument.
41202         (struct gl_oset_implementation): Add dispose_fn argument to
41203         'create_empty' method.
41204         (struct gl_oset_impl_base): Add dispose_fn field.
41205         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41206         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41207         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41208         values.
41209         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41210         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41211         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41212         dropped value.
41213         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41214         dropped value.
41215         * tests/test-array_oset.c (main): Update.
41216         * tests/test-avltree_oset.c (main): Update.
41217         * tests/test-rbtree_oset.c (main): Update.
41218         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41219
41220 2007-03-13  Bruno Haible  <bruno@clisp.org>
41221
41222         * tests/test-stdbool.c (i): Update after last patch.
41223
41224 2007-03-12  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41227         the iswprint macro. Needed on Solaris 2.5.1.
41228
41229 2007-03-12  Bruno Haible  <bruno@clisp.org>
41230
41231         * tests/test-printf-frexp.c (main): Declare x as volatile.
41232
41233 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41234
41235         * doc/gnulib.texi (Build robot for gnulib): New section.
41236
41237 2007-03-12  Jim Meyering  <jim@meyering.net>
41238
41239         * build-aux/bootstrap: New file.
41240         * build-aux/bootstrap.conf: New file, from coreutils.
41241
41242 2007-03-11  Bruno Haible  <bruno@clisp.org>
41243
41244         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41245
41246 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41247
41248         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41249         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41250         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41251
41252 2007-03-11  Bruno Haible  <bruno@clisp.org>
41253
41254         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41255         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41256
41257 2007-03-11  Bruno Haible  <bruno@clisp.org>
41258
41259         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41260         formula. Needed for SunPRO C 5.0.
41261
41262 2007-03-11  Bruno Haible  <bruno@clisp.org>
41263
41264         * modules/long-options (Depends-on): Add getopt.
41265
41266 2007-03-11  Bruno Haible  <bruno@clisp.org>
41267
41268         * modules/modechange (Depends-on): Add stdbool.
41269
41270 2007-03-11  Bruno Haible  <bruno@clisp.org>
41271
41272         * modules/i-ring (Depends-on): Add stdbool.
41273
41274 2007-03-11  Bruno Haible  <bruno@clisp.org>
41275
41276         * modules/gc-des (Depends-on): Add stdbool.
41277
41278 2007-03-11  Bruno Haible  <bruno@clisp.org>
41279
41280         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41281
41282 2007-03-11  Bruno Haible  <bruno@clisp.org>
41283
41284         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41285
41286 2007-03-11  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41289
41290 2007-03-11  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/vasnprintf.c (sprintf): Undefine.
41293
41294 2007-03-11  Bruno Haible  <bruno@clisp.org>
41295
41296         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41297         initializers in SunPRO C and Compaq C compilers.
41298
41299 2007-03-11  Bruno Haible  <bruno@clisp.org>
41300
41301         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41302         decrementing code ANSI C compliant.
41303
41304 2007-03-11  Bruno Haible  <bruno@clisp.org>
41305
41306         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41307         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41308
41309 2007-03-11  Bruno Haible  <bruno@clisp.org>
41310
41311         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41312         <stdbool.h> substitute doesn't pass.
41313
41314 2007-03-11  Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41317
41318 2007-03-11  Bruno Haible  <bruno@clisp.org>
41319
41320         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41321         script, for submission to autobuild.josefsson.org.
41322
41323 2007-03-10  Bruno Haible  <bruno@clisp.org>
41324
41325         * modules/canonicalize-lgpl-tests: New file.
41326         * tests/test-canonicalize-lgpl.sh: New file.
41327         * tests/test-canonicalize-lgpl.c: New file.
41328
41329         * modules/c-strcase-tests: New file.
41330         * tests/test-c-strcase.sh: New file.
41331         * tests/test-c-strcasecmp.c: New file.
41332         * tests/test-c-strncasecmp.c: New file.
41333
41334         * modules/atexit-tests: New file.
41335         * tests/test-atexit.sh: New file.
41336         * tests/test-atexit.c: New file.
41337
41338 2007-03-10  Bruno Haible  <bruno@clisp.org>
41339
41340         * tests/test-binary-io.sh: Use temporary filenames that are not so
41341         likely to clash with those of other tests (in a parallel make).
41342         * tests/test-binary-io.c: Likewise.
41343
41344 2007-03-10  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41347         fallback; use #error instead.
41348         Suggested by Simon Josefsson.
41349
41350 2007-03-10  Bruno Haible  <bruno@clisp.org>
41351
41352         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41353         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41354         first and the last.
41355
41356 2007-03-10  Bruno Haible  <bruno@clisp.org>
41357
41358         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41359
41360 2007-03-10  Bruno Haible  <bruno@clisp.org>
41361
41362         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41363         "make distcheck".
41364         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
41365         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
41366         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
41367
41368 2007-03-10  Bruno Haible  <bruno@clisp.org>
41369
41370         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
41371         variable.
41372         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
41373         variable.
41374
41375 2007-03-09  Eric Blake  <ebb9@byu.net>
41376         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
41377
41378         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
41379         types are not being provided by gnulib.
41380         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
41381         types are supported.
41382
41383 2007-03-10  Bruno Haible  <bruno@clisp.org>
41384
41385         * lib/stdio_.h (__attribute__): New macro.
41386         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
41387         vsprintf): Specify __attribute__ __format__ for GCC.
41388         Suggested by Eric Blake.
41389
41390 2007-03-09  Bruno Haible  <bruno@clisp.org>
41391
41392         * modules/printf-posix-tests: New file.
41393         * tests/test-printf-posix.sh: New file.
41394         * tests/test-printf-posix.c: New file.
41395
41396         * modules/printf-posix: New file.
41397         * lib/printf.c: New file.
41398         * m4/printf-posix-rpl.m4: New file.
41399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
41400         REPLACE_PRINTF.
41401         * lib/stdio_.h (printf): New declaration.
41402         (format, __format__, ____printf____, ____scanf____, ____strftime____,
41403         ____strfmon____): New macros.
41404         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
41405         REPLACE_PRINTF.
41406
41407 2007-03-09  Bruno Haible  <bruno@clisp.org>
41408
41409         * tests/test-vasnprintf-posix2.sh: New file.
41410         * tests/test-vasnprintf-posix2.c: New file.
41411         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
41412         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41413         (Makefile.am): Activate test-vasnprintf-posix2.sh.
41414
41415         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
41416         a locale dependent decimal point, rather than always '.'.
41417
41418 2007-03-09  Eric Blake  <ebb9@byu.net>
41419
41420         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
41421         spite of platforms like Tandem/NSK that define it to -1.
41422
41423 2007-03-08  Bruno Haible  <bruno@clisp.org>
41424
41425         * modules/vprintf-posix-tests: New file.
41426         * tests/test-vprintf-posix.sh: New file.
41427         * tests/test-vprintf-posix.c: New file.
41428         * tests/test-printf-posix.h: New file.
41429
41430         * modules/vprintf-posix: New file.
41431         * lib/vprintf.c: New file.
41432         * m4/vprintf-posix.m4: New file.
41433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
41434         REPLACE_VPRINTF.
41435         * lib/stdio_.h (vprintf): New declaration.
41436         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
41437         REPLACE_VPRINTF.
41438
41439 2007-03-08  Bruno Haible  <bruno@clisp.org>
41440
41441         * modules/fprintf-posix-tests: New file.
41442         * tests/test-fprintf-posix.sh: New file.
41443         * tests/test-fprintf-posix.c: New file.
41444
41445         * modules/fprintf-posix: New file.
41446         * lib/fprintf.c: New file.
41447         * m4/fprintf-posix.m4: New file.
41448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
41449         REPLACE_FPRINTF.
41450         * lib/stdio_.h (fprintf): New declaration.
41451         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
41452         REPLACE_FPRINTF.
41453
41454 2007-03-08  Bruno Haible  <bruno@clisp.org>
41455
41456         * modules/vfprintf-posix-tests: New file.
41457         * tests/test-vfprintf-posix.sh: New file.
41458         * tests/test-vfprintf-posix.c: New file.
41459         * tests/test-fprintf-posix.h: New file.
41460         * tests/test-fprintf-posix.out: New file.
41461
41462         * modules/vfprintf-posix: New file.
41463         * lib/vfprintf.c: New file.
41464         * m4/vfprintf-posix.m4: New file.
41465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
41466         REPLACE_VFPRINTF.
41467         * lib/stdio_.h (vfprintf): New declaration.
41468         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
41469         REPLACE_VFPRINTF.
41470
41471 2007-03-08  Bruno Haible  <bruno@clisp.org>
41472
41473         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
41474
41475 2007-03-08  Bruno Haible  <bruno@clisp.org>
41476
41477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
41478         instead of 'expr' invocations.
41479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41483         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41484         Suggested by Paul Eggert.
41485
41486 2007-03-08  Bruno Haible  <bruno@clisp.org>
41487
41488         * modules/fseterr-tests: New file.
41489         * tests/test-fseterr.c: New file.
41490
41491         * modules/fseterr: New file.
41492         * lib/fseterr.h: New file.
41493         * lib/fseterr.c: New file.
41494
41495 2007-03-08  Bruno Haible  <bruno@clisp.org>
41496
41497         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
41498         * lib/getopt_.h: Likewise.
41499         * lib/mbswidth.h: Likewise.
41500         * lib/setenv.h: Likewise.
41501         * lib/vasnprintf.h: Likewise.
41502         * lib/vasprintf.h: Likewise.
41503         * lib/verror.h: Likewise.
41504         * lib/xsetenv.h: Likewise.
41505         * lib/xvasprintf.h: Likewise.
41506
41507 2007-03-08  Jim Meyering  <jim@meyering.net>
41508
41509         * users.txt: Add parted.
41510
41511         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
41512
41513 2007-03-07  Bruno Haible  <bruno@clisp.org>
41514
41515         * m4/printf.m4: Make the shell script snippets copy&pastable.
41516
41517 2007-03-02  Bruno Haible  <bruno@clisp.org>
41518
41519         * lib/netinet_in_.h: New file.
41520         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
41521         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
41522         * modules/netinet_in (Files): Add lib/netinet_in_.h.
41523         (Depends-on): Add absolute-header.
41524         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
41525         into netinet/in.h.
41526
41527 2007-03-03  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/sys_select_.h: New file.
41530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
41531         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
41532         * modules/sys_select (Files): Add lib/sys_select_.h.
41533         (Depends-on): Add absolute-header.
41534         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
41535         into sys/select.h.
41536
41537 2007-03-02  Bruno Haible  <bruno@clisp.org>
41538
41539         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
41540         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
41541         values.
41542         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
41543         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
41544         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
41545         * modules/sys_socket (Depends-on): Add absolute-header.
41546         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
41547         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
41548         (Include): Remove requirement of inclusion of <sys/types.h>.
41549
41550 2007-03-02  Bruno Haible  <bruno@clisp.org>
41551
41552         * lib/byteswap_.h (bswap_32): Fix formula.
41553
41554 2007-03-06  Bruno Haible  <bruno@clisp.org>
41555
41556         * modules/sprintf-posix-tests: New file.
41557         * tests/test-sprintf-posix.c: New file.
41558
41559         * modules/sprintf-posix: New file.
41560         * lib/sprintf.c: New file.
41561         * m4/sprintf-posix.m4: New file.
41562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
41563         REPLACE_SPRINTF.
41564         * lib/stdio_.h (sprintf): New declaration.
41565         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
41566         REPLACE_SPRINTF.
41567
41568 2007-03-06  Bruno Haible  <bruno@clisp.org>
41569
41570         * modules/vsprintf-posix-tests: New file.
41571         * tests/test-vsprintf-posix.c: New file.
41572         * tests/test-sprintf-posix.h: New file.
41573
41574         * modules/vsprintf-posix: New file.
41575         * lib/vsprintf.c: New file.
41576         * m4/vsprintf-posix.m4: New file.
41577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
41578         REPLACE_VSPRINTF.
41579         * lib/stdio_.h (vsprintf): New declaration.
41580         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
41581         REPLACE_VSPRINTF.
41582
41583 2007-03-06  Bruno Haible  <bruno@clisp.org>
41584
41585         * modules/vsnprintf (Depend-on): Remove minmax.
41586
41587 2007-03-06  Bruno Haible  <bruno@clisp.org>
41588
41589         * modules/snprintf-posix-tests: New file.
41590         * tests/test-snprintf-posix.c: New file.
41591
41592         * modules/snprintf-posix: New file.
41593         * m4/snprintf-posix.m4: New file.
41594         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
41595         gl_FUNC_SNPRINTF.
41596         (gl_FUNC_SNPRINTF): Invoke it.
41597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
41598         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
41599         is set.
41600         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
41601
41602 2007-03-06  Bruno Haible  <bruno@clisp.org>
41603
41604         * modules/vsnprintf-posix-tests: New file.
41605         * tests/test-vsnprintf-posix.c: New file.
41606         * tests/test-snprintf-posix.h: New file.
41607
41608         * modules/vsnprintf-posix: New file.
41609         * m4/vsnprintf-posix.m4: New file.
41610         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
41611         gl_FUNC_VSNPRINTF.
41612         (gl_FUNC_VSNPRINTF): Invoke it.
41613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
41614         * lib/stdio_.h (vsnprintf): Define as a replacement if
41615         REPLACE_VSNPRINTF is set.
41616         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
41617
41618 2007-03-06  Bruno Haible  <bruno@clisp.org>
41619
41620         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
41621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
41622
41623 2007-03-06  Bruno Haible  <bruno@clisp.org>
41624
41625         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
41626         (asinl): Declare also if HAVE_DECL_ASINL is set.
41627         (atanl): Declare also if HAVE_DECL_ATANL is set.
41628         (ceill): Declare also if HAVE_DECL_CEILL is set.
41629         (cosl): Declare also if HAVE_DECL_COSL is set.
41630         (expl): Declare also if HAVE_DECL_EXPL is set.
41631         (floorl): Declare also if HAVE_DECL_FLOORL is set.
41632         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
41633         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
41634         (logl): Declare also if HAVE_DECL_LOGL is set.
41635         (sinl): Declare also if HAVE_DECL_SINL is set.
41636         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
41637         (tanl): Declare also if HAVE_DECL_TANL is set.
41638         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
41639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
41640         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
41641         declaration of frexpl, ldexpl.
41642         * modules/printf-frexpl (Depends-on): Add math.
41643         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
41644
41645 2007-03-05  Bruno Haible  <bruno@clisp.org>
41646
41647         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
41648         frexpl and ldexpl are declared.
41649         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
41650
41651 2007-03-05  Bruno Haible  <bruno@clisp.org>
41652
41653         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
41654         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
41655
41656 2007-03-05  Bruno Haible  <bruno@clisp.org>
41657
41658         * lib/stdio_.h: Include <stddef.h>.
41659
41660 2007-03-05  Bruno Haible  <bruno@clisp.org>
41661
41662         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
41663
41664 2007-03-05  Bruno Haible  <bruno@clisp.org>
41665
41666         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
41667         NetBSD 4, from Ralf Wildenhues.
41668
41669 2007-03-04  Bruno Haible  <bruno@clisp.org>
41670
41671         * lib/vasprintf.h: Update #if logic for the case when the functions
41672         exist but are overridden.
41673
41674 2007-03-04  Bruno Haible  <bruno@clisp.org>
41675
41676         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
41677         implementations: glibc-2.4 and MacOS X 10.3.
41678         * tests/test-vasnprintf-posix.c (test_function): Test also the case
41679         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
41680         * tests/test-vasprintf-posix.c (test_function): Likewise.
41681
41682 2007-03-04  Bruno Haible  <bruno@clisp.org>
41683
41684         * modules/vasprintf-posix-tests: New file.
41685         * tests/test-vasprintf-posix.c: New file.
41686
41687         * modules/vasprintf-posix: New file.
41688         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
41689         defined.
41690         * m4/vasprintf-posix.m4: New file.
41691         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
41692         gl_FUNC_VASPRINTF.
41693         (gl_FUNC_VASPRINTF): Invoke it.
41694         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
41695         here.
41696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
41697
41698 2007-03-04  Bruno Haible  <bruno@clisp.org>
41699
41700         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
41701         REPLACE_GETTIMEOFDAY.
41702         * modules/sys_time (Makefile.am): Likewise.
41703         * m4/sys_time_h.m4: Likewise.
41704         * m4/gettimeofday.m4: Likewise.
41705
41706 2007-03-04  Bruno Haible  <bruno@clisp.org>
41707
41708         * modules/vasnprintf-posix-tests: New file.
41709         * tests/test-vasnprintf-posix.c: New file.
41710
41711         * modules/vasnprintf-posix: New file.
41712         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
41713         printf-frexpl.h.
41714         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
41715         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
41716         REPLACE_VASNPRINTF is defined.
41717         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
41718         gl_FUNC_VASNPRINTF.
41719         (gl_FUNC_VASNPRINTF): Invoke it.
41720         * m4/vasnprintf-posix.m4: New file.
41721         * m4/printf.m4: New file.
41722
41723 2007-03-04  Bruno Haible  <bruno@clisp.org>
41724
41725         Compile progreloc.c only if --enable-relocatable is specified.
41726         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
41727         if --enable-relocatable was specified.
41728         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
41729         lib_SOURCES.
41730
41731 2007-03-04  Jim Meyering  <jim@meyering.net>
41732
41733         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
41734         Use it consistently, rather than enumerating errno constants.
41735
41736 2007-03-04  Bruno Haible  <bruno@clisp.org>
41737
41738         * modules/xvasprintf-tests: New file.
41739         * tests/test-xvasprintf.c: New file.
41740
41741         * modules/vasprintf-tests: New file.
41742         * tests/test-vasprintf.c: New file.
41743
41744         * modules/vasnprintf-tests: New file.
41745         * tests/test-vasnprintf.c: New file.
41746
41747         * modules/vsnprintf-tests: New file.
41748         * tests/test-vsnprintf.c: New file.
41749
41750         * modules/snprintf-tests: New file.
41751         * tests/test-snprintf.c: New file.
41752
41753 2007-03-04  Bruno Haible  <bruno@clisp.org>
41754
41755         Compile relocatable.c only if --enable-relocatable is specified.
41756         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
41757         gl_RELOCATABLE_LIBRARY.
41758         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
41759         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
41760         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
41761         gl_RELOCATABLE_LIBRARY.
41762         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
41763         (Makefile.am): Remove lib_SOURCES.
41764         * modules/relocatable-lib-lgpl (configure.ac): Invoke
41765         gl_RELOCATABLE_LIBRARY.
41766         (Makefile.am): Remove lib_SOURCES.
41767         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
41768         always.
41769         * modules/relocatable-prog-wrapper (configure.ac): Invoke
41770         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
41771
41772 2007-03-04  Bruno Haible  <bruno@clisp.org>
41773
41774         * modules/argmatch-tests: New file.
41775         * tests/test-argmatch.c: New file.
41776
41777         * tests/test-allocsa.c (main): Halve the number of loop runs.
41778
41779         * modules/alloca-opt-tests: New file.
41780         * tests/test-alloca-opt.c: New file.
41781
41782 2007-03-04  Jim Meyering  <jim@meyering.net>
41783
41784         Work around difference between Linux ACLs and Solaris 10 ZFS.
41785         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
41786         for EINVAL.
41787
41788 2007-03-03  Bruno Haible  <bruno@clisp.org>
41789
41790         * modules/relocatable-prog (Depends-on): Add back progreloc's
41791         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
41792
41793 2007-03-03  Bruno Haible  <bruno@clisp.org>
41794
41795         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
41796         * modules/relocatable-lib: New file.
41797
41798 2007-03-03  Bruno Haible  <bruno@clisp.org>
41799
41800         * modules/relocatable-prog: Renamed from modules/relocatable.
41801         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
41802
41803 2007-03-03  Bruno Haible  <bruno@clisp.org>
41804
41805         * modules/relocatable-script (Files): Add doc/relocatable.texi,
41806         m4/relocatable-lib.m4.
41807         (Depends-on): Remove 'relocatable'.
41808         (configure.ac): Add gl_RELOCATABLE_NOP.
41809
41810 2007-03-03  Bruno Haible  <bruno@clisp.org>
41811
41812         * modules/relocatable-prog-wrapper: New file.
41813         * modules/relocatable (Depends-on): Add it. Remove all other
41814         dependencies except progname.
41815         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
41816
41817         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
41818         (gl_FUNC_STRERROR): Nop.
41819         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
41820
41821         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
41822         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
41823
41824         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
41825         (gl_FUNC_READLINK): Update.
41826
41827         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
41828
41829 2007-03-03  Bruno Haible  <bruno@clisp.org>
41830
41831         * lib/xreadlink.c: Include <unistd.h> unconditionally.
41832         * modules/xreadlink (Depends-on): Add unistd.
41833         * modules/xreadlink-with-size (Depends-on): Likewise.
41834
41835 2007-03-03  Bruno Haible  <bruno@clisp.org>
41836
41837         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
41838         extracted from gt_FUNC_SETENV.
41839         (gt_FUNC_SETENV): Remove macro.
41840         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
41841         remove gt_FUNC_SETENV.
41842
41843 2007-03-03  Bruno Haible  <bruno@clisp.org>
41844
41845         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
41846         ENABLE_RELOCATABLE here.
41847         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
41848
41849 2007-03-03  Bruno Haible  <bruno@clisp.org>
41850
41851         * modules/rbtreehash-list-tests (Depends-on): Add progname.
41852         * tests/test-rbtreehash_list.c: Include progname.h.
41853         (main): Call set_program_name.
41854
41855         * modules/rbtree-oset-tests (Depends-on): Add progname.
41856         * tests/test-rbtree_oset.c: Include progname.h.
41857         (main): Call set_program_name.
41858
41859         * modules/rbtree-list-tests (Depends-on): Add progname.
41860         * tests/test-rbtree_list.c: Include progname.h.
41861         (main): Call set_program_name.
41862
41863         * modules/linked-list-tests (Depends-on): Add progname.
41864         * tests/test-linked_list.c: Include progname.h.
41865         (main): Call set_program_name.
41866
41867 2007-03-03  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
41870         All uses of __restrict changed to _Restrict_.
41871         * lib/glob_.h (__restrict): Remove macro.
41872
41873 2007-03-02  Bruno Haible  <bruno@clisp.org>
41874
41875         * modules/gettext (configure.ac): Require gettext infrastructure
41876         from version 0.16.1.
41877
41878 2007-03-02  Bruno Haible  <bruno@clisp.org>
41879
41880         * modules/linkedhash-list-tests (Depends-on): Add progname.
41881         * tests/test-linkedhash_list.c: Include progname.h.
41882         (main): Call set_program_name.
41883
41884         * modules/carray-list-tests (Depends-on): Add progname.
41885         * tests/test-carray_list.c: Include progname.h.
41886         (main): Call set_program_name.
41887
41888         * modules/avltreehash-list-tests (Depends-on): Add progname.
41889         * tests/test-avltreehash_list.c: Include progname.h.
41890         (main): Call set_program_name.
41891
41892         * modules/avltree-oset-tests (Depends-on): Add progname.
41893         * tests/test-avltree_oset.c: Include progname.h.
41894         (main): Call set_program_name.
41895
41896         * modules/avltree-list-tests (Depends-on): Add progname.
41897         * tests/test-avltree_list.c: Include progname.h.
41898         (main): Call set_program_name.
41899
41900         * modules/array-oset-tests (Depends-on): Add progname.
41901         * tests/test-array_oset.c: Include progname.h.
41902         (main): Call set_program_name.
41903
41904         * modules/array-list-tests (Depends-on): Add progname.
41905         * tests/test-array_list.c: Include progname.h.
41906         (main): Call set_program_name.
41907
41908         * modules/argp-tests (Depends-on): Add progname.
41909         * tests/test-argp.c: Include argp.h first. Include progname.h.
41910         (main): Call set_program_name.
41911
41912 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
41913
41914         * doc/gnulib-tool.texi (Initial import): Reword description of
41915         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
41916         limited effect even if defined after the first system include.
41917
41918 2007-03-01  Bruno Haible  <bruno@clisp.org>
41919
41920         * build-aux/config.libpath: Update to libtool-1.5.22.
41921         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41922
41923 2007-03-01  Bruno Haible  <bruno@clisp.org>
41924
41925         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41926         foo_CFLAGS.
41927         Reported by Ralf Wildenhues.
41928
41929 2007-03-01  Bruno Haible  <bruno@clisp.org>
41930
41931         * build-aux/install-reloc: Remove object files left over by some
41932         compilers.
41933         Reported by Ralf Wildenhues.
41934
41935 2007-03-01  Bruno Haible  <bruno@clisp.org>
41936
41937         * build-aux/install-reloc: Break long lines.
41938
41939 2007-03-01  Bruno Haible  <bruno@clisp.org>
41940
41941         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41942         Reported by Ralf Wildenhues.
41943
41944 2007-03-01  Bruno Haible  <bruno@clisp.org>
41945
41946         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41947         include ordering constraints.
41948
41949 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41950
41951         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41952         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41953         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
41954         as another example.
41955         * lib/time_.h: Fix misspelling.
41956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41957         Require gl_HEADER_TIME_H_DEFAULTS.
41958         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
41959         * m4/time_r.m4 (gl_TIME_R): Likewise.
41960         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
41961
41962 2007-03-01  Bruno Haible  <bruno@clisp.org>
41963
41964         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
41965         * m4/utimens.m4 (gl_UTIMENS): Likewise.
41966
41967 2007-03-01  Jim Meyering  <jim@meyering.net>
41968
41969         * modules/xreadlink (Maintainer): Add my name.
41970         * modules/xreadlink-with-size (Depends-on): Alphabetize.
41971
41972 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
41973             Bruno Haible  <bruno@clisp.org>
41974
41975         * build-aux/install-reloc: Compile also c-ctype.c.
41976         * build-aux/relocatable.sh.in: New file.
41977         * doc/relocatable.texi: New file.
41978         * doc/relocatable-maint.texi: New file.
41979         * doc/gnulib.texi: Include relocatable-maint.texi.
41980         * lib/progreloc.c: Include unistd.h unconditionally.
41981         * lib/relocwrapper.c: Include unistd.h unconditionally.
41982         Include c-ctype.h.
41983         (add_dotbin): Use c_tolower.
41984         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
41985         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
41986         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
41987         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
41988         to m4/relocatable-lib.m4.
41989         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
41990         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
41991         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
41992         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
41993         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
41994         * modules/relocatable: New file.
41995         * modules/relocatable-lib: New file.
41996         * modules/relocatable-script: New file.
41997
41998 2007-02-28  Bruno Haible  <bruno@clisp.org>
41999
42000         Import --enable-relocatable infrastructure.
42001         * build-aux/config.libpath: New file, from GNU gettext.
42002         * build-aux/install-reloc: New file, from GNU gettext.
42003         * build-aux/reloc-ldflags: New file, from GNU gettext.
42004         * lib/relocatable.h: New file, from GNU gettext.
42005         * lib/relocatable.c: New file, from GNU gettext.
42006         * lib/relocwrapper.c: New file, from GNU gettext.
42007         * m4/relocatable.m4: New file, from GNU gettext.
42008
42009 2007-02-28  Bruno Haible  <bruno@clisp.org>
42010
42011         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42012
42013         * modules/xreadlink: New file, from GNU gettext with modifications.
42014         * lib/xreadlink.c: New file, from GNU gettext.
42015         * lib/xreadlink.h: Add comments.
42016         (xreadlink): New declaration.
42017
42018         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42019         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42020         lib/xreadlink-with-size.c.
42021         (configure.ac): Remove gl_XREADLINK invocation.
42022         (Makefile.am): Augment lib_SOURCES.
42023         * m4/xreadlink.m4: Remove file.
42024         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42025         (xreadlink_with_size): Renamed from xreadink.
42026         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42027         * modules/canonicalize (Depends-on): Replace xreadlink with
42028         xreadlink-with-size.
42029         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42030
42031 2007-02-25  Jim Meyering  <jim@meyering.net>
42032
42033         * build-aux/announce-gen: When complaining about excess arguments,
42034         list them.
42035
42036 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42037
42038         * README: Document signed integer overflow situation more
42039         accurately.
42040
42041 2007-02-25  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42044         'a' or 'A' conversion.
42045
42046 2007-02-25  Bruno Haible  <bruno@clisp.org>
42047
42048         * modules/filename: Renamed from modules/pathname.
42049         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42050         lib/concatpath.c with lib/concat-filename.c.
42051         (Makefile.am): Update.
42052         (Include): Replace pathname.h with filename.h.
42053         * lib/filename.h: Renamed from lib/pathname.h.
42054         (concatenated_filename): Renamed from concatenated_pathname.
42055         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42056         (concatenated_filename): Renamed from concatenated_pathname.
42057         * lib/findprog.c: Include filename.h instead of pathname.h.
42058         (find_in_path): Update.
42059         * lib/javacomp.c: Include filename.h instead of pathname.h.
42060         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42061         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42062         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42063         is_oldgcj_14_13_usable, is_javac_usable): Update.
42064         * lib/javaexec.c: Include filename.h instead of pathname.h.
42065         (execute_java_class): Update.
42066         * modules/findprog: Update.
42067         * modules/javacomp: Update.
42068         * modules/javaexec: Update.
42069         * MODULES.html.sh (File system functions): Add 'filename', remove
42070         'pathname'.
42071
42072 2007-02-25  Bruno Haible  <bruno@clisp.org>
42073
42074         * modules/printf-frexpl-tests: New file.
42075         * tests/test-printf-frexpl.c: New file.
42076
42077         * modules/printf-frexpl: New file.
42078         * lib/printf-frexpl.h: New file.
42079         * lib/printf-frexpl.c: New file.
42080         * m4/printf-frexpl.m4: New file.
42081
42082 2007-02-25  Bruno Haible  <bruno@clisp.org>
42083
42084         * modules/printf-frexp-tests: New file.
42085         * tests/test-printf-frexp.c: New file.
42086
42087         * modules/printf-frexp: New file.
42088         * lib/printf-frexp.h: New file.
42089         * lib/printf-frexp.c: New file.
42090         * m4/printf-frexp.m4: New file.
42091
42092 2007-02-25  Bruno Haible  <bruno@clisp.org>
42093
42094         Assume automake >= 1.10 for the tests.
42095         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42096         * modules/arctwo-tests: Likewise.
42097         * modules/argp-tests: Likewise.
42098         * modules/avltree-list-tests: Likewise.
42099         * modules/avltree-oset-tests: Likewise.
42100         * modules/avltreehash-list-tests: Likewise.
42101         * modules/carray-list-tests: Likewise.
42102         * modules/crc-tests: Likewise.
42103         * modules/des-tests: Likewise.
42104         * modules/gc-arcfour-tests: Likewise.
42105         * modules/gc-arctwo-tests: Likewise.
42106         * modules/gc-des-tests: Likewise.
42107         * modules/gc-hmac-md5-tests: Likewise.
42108         * modules/gc-hmac-sha1-tests: Likewise.
42109         * modules/gc-md2-tests: Likewise.
42110         * modules/gc-md4-tests: Likewise.
42111         * modules/gc-md5-tests: Likewise.
42112         * modules/gc-pbkdf2-sha1-tests: Likewise.
42113         * modules/gc-rijndael-tests: Likewise.
42114         * modules/gc-sha1-tests: Likewise.
42115         * modules/gc-tests: Likewise.
42116         * modules/getaddrinfo-tests: Likewise.
42117         * modules/hmac-md5-tests: Likewise.
42118         * modules/hmac-sha1-tests: Likewise.
42119         * modules/linked-list-tests: Likewise.
42120         * modules/linkedhash-list-tests: Likewise.
42121         * modules/lock-tests: Likewise.
42122         * modules/md2-tests: Likewise.
42123         * modules/md4-tests: Likewise.
42124         * modules/md5-tests: Likewise.
42125         * modules/rbtree-list-tests: Likewise.
42126         * modules/rbtree-oset-tests: Likewise.
42127         * modules/rbtreehash-list-tests: Likewise.
42128         * modules/read-file-tests: Likewise.
42129         * modules/rijndael-tests: Likewise.
42130         * modules/stdint-tests: Likewise.
42131         * modules/tls-tests: Likewise.
42132
42133 2007-02-24  Bruno Haible  <bruno@clisp.org>
42134
42135         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42136         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42137         function; instead check whether isnan with a double argument links.
42138         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42139         function; instead check whether isnan with a 'long double' argument
42140         links.
42141         Reported by Eric Blake <ebb9@byu.net>.
42142
42143 2007-02-24  Bruno Haible  <bruno@clisp.org>
42144
42145         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42146         defined.
42147         * lib/isnanl.c: Remove all code. Just include isnan.c.
42148         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42149
42150 2007-02-25  Jim Meyering  <jim@meyering.net>
42151
42152         Avoid conflicting types for 'unsetenv' on FreeBSD.
42153         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42154         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42155         in stdlib.h.
42156
42157 2007-02-24  Bruno Haible  <bruno@clisp.org>
42158
42159         * modules/isnanl-nolibm-tests: New file.
42160         * tests/test-isnanl.c: New file.
42161
42162         * modules/isnanl-nolibm: New file.
42163         * lib/isnanl.h: New file.
42164         * lib/isnanl.c: New file.
42165         * m4/isnanl.m4: New file.
42166
42167 2007-02-24  Bruno Haible  <bruno@clisp.org>
42168
42169         * modules/isnan-nolibm-tests: New file.
42170         * tests/test-isnan.c: New file.
42171
42172         * modules/isnan-nolibm: New file.
42173         * lib/isnan.h: New file.
42174         * lib/isnan.c: New file.
42175         * m4/isnan.m4: New file.
42176
42177 2007-02-24  Bruno Haible  <bruno@clisp.org>
42178
42179         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42180         assume that an exponent fits in 20 bits.
42181
42182 2007-02-24  Jim Meyering  <jim@meyering.net>
42183
42184         * m4/regex.m4: Update the description of the configure-time option,
42185         --without-included-regex, to state accurately what the defaults are,
42186         and perhaps to give people an idea why using this option is risky.
42187
42188 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42189
42190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42191         loops on small arguments.  This attempts to avoid the problem
42192         Bruno Haible reported for AIX 4.3.2 in
42193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42194
42195 2007-02-23  Bruno Haible  <bruno@clisp.org>
42196
42197         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42198         Needed for help2man.
42199
42200 2007-02-23  Karl Berry  <karl@gnu.org>
42201
42202         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42203         exists, foo.h should be cvs-ignored, not committed.
42204
42205 2007-02-23  Eric Blake  <ebb9@byu.net>
42206
42207         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42208         * lib/stat-time.h (includes): Likewise.
42209         * lib/utimecmp.c (includes): Likewise.
42210         * lib/utimens.h (includes): Likewise.
42211         * lib/getdate.y (includes): Also include "timespec.h" for use
42212         internal to the module.
42213         * modules/utimens (Depends-on): Revert yesterday's patch.
42214         * modules/nanosleep (Depends-on): Add missing dependency.
42215
42216 2007-02-22  Bruno Haible  <bruno@clisp.org>
42217
42218         * lib/glob.c: Don't include getlogin_r.h.
42219
42220 2007-02-22  Jim Meyering  <jim@meyering.net>
42221
42222         * modules/utimens (Depends-on): Add timespec, required for
42223         utimens.h's inclusion of timespec.h.
42224
42225 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42226
42227         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42228         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42229         Schwab in
42230         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42231         I'll try to think of a better way to fix the Solaris problem.
42232
42233         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42234         like glibc; on Solaris 10, it fails with errno == EINVAL.
42235         POSIX says the behavior is unspecified if the first argument is NULL,
42236         so play it safe and never pass NULL to the system getcwd.
42237
42238 2007-02-21  Jim Meyering  <jim@meyering.net>
42239
42240         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42241         of gettimeofday.  It would conflict with the one now always
42242         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42243         an IRIX 6.5 build failure.
42244
42245 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42246
42247         Minor fixups to port to Solaris 10 with Sun C 5.8.
42248         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42249         * modules/getcwd (Depends-on): Add dirfd.
42250         * lib/putenv.c (putenv): #undef it.
42251         (rpl_putenv): New decl.
42252         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42253
42254 2007-02-20  Bruno Haible  <bruno@clisp.org>
42255
42256         * modules/stdio-tests: New file.
42257         * tests/test-stdio.c: New file.
42258
42259         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42260         (Depends-on): Add stdio.
42261         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42262         (Include): Use <stdio.h> instead of vsnprintf.h.
42263         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42264         HAVE_DECL_VSNPRINTF.
42265         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42266
42267         * modules/snprintf (Files): Remove lib/snprintf.h.
42268         (Depends-on): Add stdio.
42269         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42270         (Include): Use <stdio.h> instead of snprintf.h.
42271         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42272         HAVE_DECL_SNPRINTF.
42273         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42274         * lib/getaddrinfo.c: Likewise.
42275
42276         * modules/stdio: New file.
42277         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42278         * lib/snprintf.h: Remove file.
42279         * lib/vsnprintf.h: Remove file.
42280         * lib/.cppi-disable: Remove snprintf.h.
42281         * m4/stdio_h.m4: New file.
42282         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42283
42284 2007-02-20  Jim Meyering  <jim@meyering.net>
42285
42286         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42287         used by e.g., mingw.  From Bruno Haible.
42288
42289 2007-02-19  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42292         warnings.
42293         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42294
42295 2007-02-19  Bruno Haible  <bruno@clisp.org>
42296
42297         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42298         from mingw users.
42299
42300 2007-02-19  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42303         warnings.
42304         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42305
42306 2007-02-19  Jim Meyering  <jim@meyering.net>
42307
42308         Don't use FD after a successful "fdopendir (fd)".
42309         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42310         Reset it by calling dirfd on the just-obtained DIR*.
42311
42312         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42313         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42314
42315 2007-02-18  Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/readlink.c: Include <unistd.h>.
42318         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42319         HAVE_READLINK.
42320         * modules/readlink (Depends-on): Add unistd.
42321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42322         (Include): Add <unistd.h>.
42323
42324         * lib/getlogin_r.h: Remove file.
42325         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42326         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42327         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42328         HAVE_DECL_GETLOGIN_R.
42329         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42331         (Include): Use <unistd.h> instead of getlogin_r.h.
42332
42333         * lib/getcwd.h: Remove file.
42334         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42335         * lib/xgetcwd.c: Likewise.
42336         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42337         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42338         * modules/getcwd (Files): Remove lib/getcwd.h.
42339         (Depends-on): Add unistd.
42340         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42341         (Include): Use <unistd.h> instad of getcwd.h.
42342
42343         * lib/ftruncate.c: Include <unistd.h> first.
42344         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42345         Set HAVE_FTRUNCATE.
42346         * modules/ftruncate (Depends-on): Add unistd.
42347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42348
42349         * lib/fchdir.c: Include <unistd.h> first.
42350         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42352         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42353         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42354         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42355
42356         * lib/dup2.c: Include <unistd.h> first.
42357         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42358         HAVE_DUP2.
42359         * modules/dup2 (Depends-on): Add unistd.
42360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42361
42362         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42363         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
42364         REPLACE_CHOWN. Don't define chown as a macro here.
42365         * modules/chown (Depends-on): Add unistd.
42366         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42367
42368         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
42369         Add definition for GL_LINK_WARNING.
42370         (chown, dup2): New declarations.
42371         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
42372         link warning.
42373         (ftruncate): New declaration.
42374         (getcwd): New declaration, taken from old getcwd.h.
42375         (getlogin_r): New declaration, taken from old getlogin_r.h.
42376         (readlink): New declaration.
42377         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
42378         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
42379         (gl_PREREQ_UNISTD): Remove macro.
42380         (gl_UNISTD_MODULE_INDICATOR): New macro.
42381         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
42382         many new variables. Don't set UNISTD_H.
42383         * modules/unistd (Description): Change.
42384         (Depends-on): Add link-warning.
42385         (configure.ac): Update.
42386         (Makefile.am): Create unistd.h always. Substitute many new variables
42387         into it.
42388
42389 2007-02-18  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
42392         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
42393         HAVE_GETSUBOPT.
42394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
42395         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
42396         * lib/getsubopt.h: Remove file.
42397         * modules/getsubopt (Files): Remove lib/getsubopt.h.
42398         (Depends-on): Add stdlib.
42399         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42400         (Includes): Use <stdlib.h> instead of getsubopt.h.
42401         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
42402         Set HAVE_GETSUBOPT.
42403         * lib/getsubopt.c: Don't include getsubopt.h.
42404
42405 2007-02-18  Bruno Haible  <bruno@clisp.org>
42406
42407         * modules/fchdir (Depends-on): Add dup2.
42408
42409 2007-02-18  Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/stdlib_.h: Handle glibc's special invocation convention
42412         specially.
42413
42414 2007-02-18  Bruno Haible  <bruno@clisp.org>
42415
42416         * modules/stdlib-tests: New file.
42417         * tests/test-stdlib.c: New file.
42418
42419         * modules/mkstemp (Files): Remove lib/mkstemp.h.
42420         (Depends-on): Add stdlib.
42421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42422         (Includes): Use <stdlib.h> instead of mkstemp.h.
42423         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42424         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
42425         * lib/mkstemp.c: Don't include mkstemp.h.
42426         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
42427         * lib/stdlib--.h: Don't include mkstemp.h.
42428
42429         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
42430         (Depends-on): Add stdlib.
42431         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42432         (Includes): Use <stdlib.h> instead of mkdtemp.h.
42433         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42434         HAVE_MKDTEMP.
42435         * lib/mkdtemp.c: Don't include mkdtemp.h.
42436         * lib/clean-temp.c: Don't include mkdtemp.h.
42437
42438         * modules/exit (Files): Remove lib/exit.h.
42439         (Depends-on): Add stdlib.
42440         (Makefile.am): Remove lib_SOURCES.
42441         (Include): Use <stdlib.h> instead of exit.h.
42442         * lib/argmatch.c: Don't include exit.h.
42443         * lib/execute.c: Likewise.
42444         * lib/pagealign_alloc.c: Likewise.
42445         * lib/pipe.c: Likewise.
42446         * lib/wait-process.c: Likewise.
42447         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
42448         * lib/exitfail.c: Likewise.
42449         * lib/savewd.c: Likewise.
42450         * lib/xsetenv.c: Likewise.
42451
42452         * modules/stdlib: New file.
42453         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
42454         and extra comments about mkstemp().
42455         * lib/exit.h: Remove file.
42456         * lib/mkdtemp.h: Remove file.
42457         * lib/mkstemp.h: Remove file.
42458         * m4/stdlib_h.m4: New file.
42459         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
42460
42461 2007-02-18  Bruno Haible  <bruno@clisp.org>
42462
42463         * modules/math-tests: New file.
42464         * tests/test-math.c: New file.
42465
42466         * modules/math: New file.
42467         * modules/mathl (Files): Remove lib/mathl.h.
42468         (Depends-on): Add math.
42469         (Makefile.am): Don't mention mathl.h.
42470         (Include): Use <math.h> instead of mathl.h.
42471         * lib/math_.h: New file.
42472         * lib/mathl.h: Remove file.
42473         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
42474         mathl.h.
42475         * lib/asinl.c: Likewise.
42476         * lib/atanl.c: Likewise.
42477         * lib/ceill.c: Likewise.
42478         * lib/cosl.c: Likewise.
42479         * lib/expl.c: Likewise.
42480         * lib/floorl.c: Likewise.
42481         * lib/frexpl.c: Likewise.
42482         * lib/ldexpl.c: Likewise.
42483         * lib/logl.c: Likewise.
42484         * lib/sincosl.c: Likewise.
42485         * lib/sinl.c: Likewise.
42486         * lib/sqrtl.c: Likewise.
42487         * lib/tanl.c: Likewise.
42488         * lib/trigl.c: Likewise.
42489         * m4/math_h.m4: New file.
42490         * MODULES.html.sh (Mathematics): Add math.
42491
42492 2007-02-17  Bruno Haible  <bruno@clisp.org>
42493
42494         * modules/wctype-tests: New file.
42495         * tests/test-wctype.c: New file.
42496
42497         * modules/wchar-tests: New file.
42498         * tests/test-wchar.c: New file.
42499
42500         * modules/unistd-tests: New file.
42501         * tests/test-unistd.c: New file.
42502
42503         * modules/time-tests: New file.
42504         * tests/test-time.c: New file.
42505
42506         * modules/sysexits-tests: New file.
42507         * tests/test-sysexits.c: New file.
42508
42509         * modules/sys_time-tests: New file.
42510         * tests/test-sys_time.c: New file.
42511
42512         * modules/sys_stat-tests: New file.
42513         * tests/test-sys_stat.c: New file.
42514
42515         * modules/sys_socket-tests: New file.
42516         * tests/test-sys_socket.c: New file.
42517
42518         * modules/sys_select-tests: New file.
42519         * tests/test-sys_select.c: New file.
42520
42521         * modules/string-tests: New file.
42522         * tests/test-string.c: New file.
42523
42524         * modules/stdbool-tests: New file.
42525         * tests/test-stdbool.c: New file.
42526
42527         * modules/netinet_in-tests: New file.
42528         * tests/test-netinet_in.c: New file.
42529
42530         * modules/inttypes-tests: New file.
42531         * tests/test-inttypes.c: New file.
42532
42533         * modules/fcntl-tests: New file.
42534         * tests/test-fcntl.c: New file.
42535
42536         * modules/byteswap-tests: New file.
42537         * tests/test-byteswap.c: New file.
42538
42539         * modules/arpa_inet-tests: New file.
42540         * tests/test-arpa_inet.c: New file.
42541
42542 2007-02-17  Bruno Haible  <bruno@clisp.org>
42543
42544         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
42545         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
42546         if the corresponding module is not enabled. Emit link warnings if
42547         the function is used nevertheless.
42548         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
42549         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
42550         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
42551         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
42552         * modules/inttypes (Depends-on): Add link-warning.
42553         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42554         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
42555         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
42556         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
42557         * modules/imaxdiv (configure.ac): Likewise.
42558         * modules/strtoimax (configure.ac): Likewise.
42559         * modules/strtoumax (configure.ac): Likewise.
42560
42561 2007-02-17  Bruno Haible  <bruno@clisp.org>
42562
42563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
42564         gl_STRING_MODULE_INDICATOR_DEFAULTS.
42565         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
42566         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
42567
42568 2007-02-17  Bruno Haible  <bruno@clisp.org>
42569
42570         * modules/link-warning: New file.
42571         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
42572         * lib/string_.h (GL_LINK_WARNING): Remove definition.
42573         * modules/string (Depends-on): Add link-warning.
42574         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42575         string.h.
42576         * MODULES.html.sh (Support for building libraries and executables): Add
42577         link-warning.
42578
42579 2007-02-17  Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
42582         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
42583         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
42584         long lines.
42585
42586 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
42587             Bruno Haible  <bruno@clisp.org>
42588
42589         * modules/tmpfile: New file.
42590         * lib/tmpfile.c: New file.
42591         * m4/tmpfile.m4: New file.
42592         * MODULES.html.sh (func_all_modules): New section "Input/output".
42593
42594 2007-02-15  Bruno Haible  <bruno@clisp.org>
42595
42596         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
42597         (supports_delete_on_close): New function.
42598         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
42599
42600 2007-02-14  Bruno Haible  <bruno@clisp.org>
42601
42602         * modules/mbspcasecmp-tests: New file.
42603         * tests/test-mbspcasecmp.sh: New file.
42604         * tests/test-mbspcasecmp.c: New file.
42605
42606         New module mbspcasecmp.
42607         * modules/mbspcasecmp: New file.
42608         * lib/mbspcasecmp.c: New file.
42609         * lib/string_.h (strncasecmp): Change warning message.
42610         (mbspcasecmp): New declaration.
42611         * m4/mbspcasecmp.m4: New file.
42612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42613         GNULIB_MBSPCASECMP.
42614         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
42615         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
42616
42617 2007-02-14  Bruno Haible  <bruno@clisp.org>
42618
42619         * modules/mbsncasecmp-tests: New file.
42620         * tests/test-mbsncasecmp.sh: New file.
42621         * tests/test-mbsncasecmp.c: New file.
42622
42623         New module mbsncasecmp.
42624         * modules/mbsncasecmp: New file.
42625         * lib/mbsncasecmp.c: New file.
42626         * lib/string_.h (mbsncasecmp): New declaration.
42627         * m4/mbsncasecmp.m4: New file.
42628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42629         GNULIB_MBSNCASECMP.
42630         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
42631         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
42632
42633 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
42634
42635         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
42636         Verify that it doesn't overlap with our flags.
42637         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
42638         do not have the desired effect in multibyte locales; instead, use
42639         mbscasecmp.
42640         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
42641         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
42642         we don't require GNU fnmatch ourselves (if our users require it, they
42643         should do so explicitly).
42644
42645         Fix regex code so it doesn't rely on strcasecmp.
42646         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
42647         Otherwise, include gnulib's langinfo.h.
42648         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
42649         undesirable behavior in non-C locales.  Instead, rely on localecharset.
42650         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
42651         * modules/regex (FILES): Remove m4/codeset.m4.
42652         (Depends-on): Add localcharset.  Remove strcase.
42653
42654 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42655
42656         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
42657         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42658
42659 2007-02-13  Bruno Haible  <bruno@clisp.org>
42660
42661         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
42662         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42663
42664 2007-02-12  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42667         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
42668         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
42669         time warning rather than a link error.
42670
42671 2007-02-12  Bruno Haible  <bruno@clisp.org>
42672
42673         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
42674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42676
42677 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42678
42679         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
42680         args, not 2.
42681
42682 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42683
42684         New module 'time', so that apps can include <time.h> as per
42685         POSIX and GNU instead of separate include files like time_r.h
42686         and timegm.h.  This implementation tries out a simpler approach
42687         for replacing decls in standard include files (as compared to
42688         the string module), somewhat as an experiment.
42689
42690         * config/srclist.txt: Comment out mktime.c for now.
42691         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
42692         since it doesn't apply any more.  Use generic wording instead.
42693         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
42694         'time'.
42695         * lib/time_.h, m4/time_h.m4, modules/time: New files.
42696         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
42697         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
42698         Don't include <sys/types.h>; no longer needed since we assume C89.
42699         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
42700         * lib/strftime.c: Likewise.
42701         * lib/time_r.c: Likewise.
42702         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
42703         * lib/nanosleep.c: Include <time.h> first, to check interface.
42704         * lib/strptime.c: Likewise.
42705         * lib/time_r.c: Likewise.
42706         * lib/timegm.c: Likewise.
42707         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
42708         needed.
42709         * lib/timegm.c: Don't include timegm.h; no longer needed.
42710         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
42711         time.h now handles any problems in that area.
42712         (struct timespec, nanosleep): Remove; time.h now arranges for these.
42713         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
42714         that time.h defines struct timespec.
42715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
42716         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
42717         handles that.
42718         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
42719         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
42720         needed.  Set REPLACE_LOCALTIME.
42721         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
42722         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
42723         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
42724         nanosleep; time_h.m4 now does that.  Don't require
42725         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
42726         module handles this now.
42727         * modules/getdate (Depends-on): Remove timespec.  Add time.
42728         * modules/nanosleep (Depends-on): Likewise.
42729         * modules/stat-time (Depends-on): Likewise.
42730         * modules/nanosleep (Include): Include time.h, not timespec.h.
42731         * modules/strptime (Files): Remove lib/strptime.h.
42732         (Depends-on): Add extensions, time.
42733         (Include): Include time.h, not strptime.h.
42734         * modules/time_r (Files): Remove lib/time_r.h.
42735         (Depends-on): Add time.
42736         (Include): Include time.h, not time_r.h.
42737         * modules/timegm: Likewise.
42738         * modules/timespec (Description): Now does timespec-related decls
42739         of our own, instead of struct timespec itself.
42740         (Depends-on): Add time; remove extensions.
42741         (Maintainer): Add self.
42742         * modules/utimecmp (Depends-on): Add time; remove timespec.
42743         * modules/utimens (Depends-on): Likewise.
42744         * modules/xnanosleep (Depends-on): Likewise.
42745
42746 2007-02-11  Bruno Haible  <bruno@clisp.org>
42747
42748         * lib/c-strstr.c: Include allocsa.h.
42749         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42750         * lib/c-strcasestr.c: Include allocsa.h.
42751         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42752         * lib/strcasestr.c: Include allocsa.h.
42753         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42754         * lib/mbsstr.c: Include allocsa.h.
42755         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42756         allocsa/freesa instead of malloc/free.
42757         * lib/mbscasestr.c: Include allocsa.h.
42758         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42759         allocsa/freesa instead of malloc/free.
42760         * modules/c-strstr (Depends-on): Add allocsa.
42761         * modules/c-strcasestr (Depends-on): Likewise.
42762         * modules/strcasestr (Depends-on): Likewise.
42763         * modules/mbsstr (Depends-on): Likewise.
42764         * modules/mbscasestr (Depends-on): Likewise.
42765
42766 2007-02-11  Bruno Haible  <bruno@clisp.org>
42767
42768         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
42769
42770         * modules/mbsspn-tests: New file.
42771         * tests/test-mbsspn.sh: New file.
42772         * tests/test-mbsspn.c: New file.
42773
42774 2007-02-11  Bruno Haible  <bruno@clisp.org>
42775
42776         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
42777
42778         * modules/mbspbrk-tests: New file.
42779         * tests/test-mbspbrk.sh: New file.
42780         * tests/test-mbspbrk.c: New file.
42781
42782 2007-02-11  Bruno Haible  <bruno@clisp.org>
42783
42784         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
42785         unneeded cast.
42786
42787         * modules/mbscspn-tests: New file.
42788         * tests/test-mbscspn.sh: New file.
42789         * tests/test-mbscspn.c: New file.
42790
42791 2007-02-11  Bruno Haible  <bruno@clisp.org>
42792
42793         * modules/mbscasecmp-tests: New file.
42794         * tests/test-mbscasecmp.sh: New file.
42795         * tests/test-mbscasecmp.c: New file.
42796
42797 2007-02-11  Bruno Haible  <bruno@clisp.org>
42798
42799         Ensure O(n) worst-case complexity of mbscasestr.
42800         * lib/mbscasestr.c: Include stdbool.h.
42801         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42802         functions.
42803         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
42804         the bookkeeping indicates that it's worth it.
42805         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
42806
42807         * modules/mbscasestr-tests: New file.
42808         * tests/test-mbscasestr1.c: New file.
42809         * tests/test-mbscasestr2.sh: New file.
42810         * tests/test-mbscasestr2.c: New file.
42811         * tests/test-mbscasestr3.sh: New file.
42812         * tests/test-mbscasestr3.c: New file.
42813         * tests/test-mbscasestr4.sh: New file.
42814         * tests/test-mbscasestr4.c: New file.
42815         * m4/locale-tr.m4: New file.
42816
42817 2007-02-11  Bruno Haible  <bruno@clisp.org>
42818
42819         Ensure O(n) worst-case complexity of mbsstr.
42820         * lib/mbsstr.c: Include stdbool.h.
42821         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42822         functions.
42823         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
42824         bookkeeping indicates that it's worth it.
42825         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
42826
42827         * modules/mbsstr-tests: New file.
42828         * tests/test-mbsstr1.c: New file.
42829         * tests/test-mbsstr2.sh: New file.
42830         * tests/test-mbsstr2.c: New file.
42831         * tests/test-mbsstr3.sh: New file.
42832         * tests/test-mbsstr3.c: New file.
42833         * m4/locale-fr.m4: New file.
42834
42835 2007-02-11  Bruno Haible  <bruno@clisp.org>
42836
42837         * lib/mbsrchr.c (mbsrchr): Fix bug.
42838
42839         * modules/mbsrchr-tests: New file.
42840         * tests/test-mbsrchr.sh: New file.
42841         * tests/test-mbsrchr.c: New file.
42842
42843 2007-02-11  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/mbschr.c (mbschr): Fix bug.
42846
42847         * modules/mbschr-tests: New file.
42848         * tests/test-mbschr.sh: New file.
42849         * tests/test-mbschr.c: New file.
42850         * m4/locale-zh.m4: New file.
42851
42852 2007-02-11  Bruno Haible  <bruno@clisp.org>
42853
42854         Support for copying multibyte string iterators.
42855         * lib/mbiter.h: Include <string.h>.
42856         (mbiter_multi_copy): New function.
42857         (mbi_copy): New macro.
42858         * lib/mbuiter.h: Include <string.h>.
42859         (mbuiter_multi_copy): New function.
42860         (mbui_copy): New macro.
42861
42862 2007-02-11  Bruno Haible  <bruno@clisp.org>
42863
42864         New module mbslen.
42865         * modules/mbslen: New file.
42866         * lib/mbslen.c: New file.
42867         * lib/string_.h (mbslen): New declaration.
42868         * m4/mbslen.m4: New file.
42869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42870         GNULIB_MBSLEN.
42871         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
42872         * MODULES.html.sh (Internationalization functions): Add mbslen.
42873
42874 2007-02-11  Bruno Haible  <bruno@clisp.org>
42875
42876         Ensure O(n) worst-case complexity of strcasestr substitute.
42877         * lib/strcasestr.c: Include stdbool.h.
42878         (knuth_morris_pratt): New function.
42879         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42880         bookkeeping indicates that it's worth it.
42881         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
42882
42883         * modules/strcasestr-tests: New file.
42884         * tests/test-strcasestr.c: New file.
42885
42886 2007-02-11  Bruno Haible  <bruno@clisp.org>
42887
42888         Ensure O(n) worst-case complexity of c_strcasestr.
42889         * lib/c-strcasestr.c: Include stdbool.h, string.h.
42890         (knuth_morris_pratt): New function.
42891         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
42892         the bookkeeping indicates that it's worth it.
42893         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
42894
42895         * modules/c-strcasestr-tests: New file.
42896         * tests/test-c-strcasestr.c: New file.
42897
42898 2007-02-11  Bruno Haible  <bruno@clisp.org>
42899
42900         Ensure O(n) worst-case complexity of c_strstr.
42901         * lib/c-strstr.c: Include stdbool.h, string.h.
42902         (knuth_morris_pratt): New function.
42903         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42904         bookkeeping indicates that it's worth it.
42905         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
42906
42907         * lib/c-strstr.c: Complete rewrite for maintainability.
42908
42909         * modules/c-strstr-tests: New file.
42910         * tests/test-c-strstr.c: New file.
42911
42912 2007-02-11  Bruno Haible  <bruno@clisp.org>
42913
42914         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
42915         5.2.1 and earlier, whereby \055 was treated just like the range
42916         delimiter '-'.
42917         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42918
42919 2007-02-08  Bruno Haible  <bruno@clisp.org>
42920
42921         * modules/regex (Depends-on): Add stdbool.
42922         Reported by Dalibor Topic <robilad@kaffe.org>.
42923
42924 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42925
42926         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42927         Prefer returning from main to exiting from it.
42928         Remove unnecessary parens after sizeof.
42929
42930 2007-02-05  Bruno Haible  <bruno@clisp.org>
42931
42932         New module mbssep.
42933         * modules/mbssep: New file.
42934         * lib/mbssep.c: New file.
42935         * lib/string_.h (strsep): Add a conditional link warning.
42936         (mbssep): New declaration.
42937         * m4/mbssep.m4: New file.
42938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42939         GNULIB_MBSSEP.
42940         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42941         * MODULES.html.sh (Internationalization functions): Add mbssep.
42942
42943 2007-02-05  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42946         Optimize search in case of 1 delimiter.
42947
42948 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42949
42950         * lib/acl.h: Include sys/types.h before sys/acl.h.
42951
42952 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42953
42954         Merge upstream fix for glibc bugzilla #3957:
42955
42956         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
42957
42958         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
42959         bit for RE_HAT_LISTS_NOT_NEWLINE.
42960         (build_charclass_op): Remove bogus comment.
42961
42962 2007-02-05  Simon Josefsson  <simon@josefsson.org>
42963
42964         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
42965
42966 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42967
42968         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
42969         * lib/memmem.c [!defined _LIBC]: Include config.h.
42970
42971 2007-02-04  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
42974         warning message.
42975
42976 2007-02-04  Bruno Haible  <bruno@clisp.org>
42977
42978         New module mbstok_r.
42979         * modules/mbstok_r: New file.
42980         * lib/mbstok_r.c: New file.
42981         * lib/string_.h (strtok_r): Change argument names to match the
42982         comments. Add a conditional link warning.
42983         (mbstok_r): New declaration.
42984         * m4/mbstok_r.m4: New file.
42985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42986         GNULIB_MBSTOK_R.
42987         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
42988         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
42989
42990 2007-02-04  Bruno Haible  <bruno@clisp.org>
42991
42992         New module mbsspn.
42993         * modules/mbsspn: New file.
42994         * lib/mbsspn.c: New file.
42995         * lib/string_.h (strspn): Add a conditional link warning.
42996         (mbsspn): New declaration.
42997         * m4/mbsspn.m4: New file.
42998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42999         GNULIB_MBSSPN.
43000         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43001         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43002
43003 2007-02-04  Bruno Haible  <bruno@clisp.org>
43004
43005         New module mbspbrk.
43006         * modules/mbspbrk: New file.
43007         * lib/mbspbrk.c: New file.
43008         * lib/string_.h (strpbrk): Add a conditional link warning.
43009         (mbspbrk): New declaration.
43010         * m4/mbspbrk.m4: New file.
43011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43012         GNULIB_MBSPBRK.
43013         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43014         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43015
43016 2007-02-04  Bruno Haible  <bruno@clisp.org>
43017
43018         New module mbscspn.
43019         * modules/mbscspn: New file.
43020         * lib/mbscspn.c: New file.
43021         * lib/string_.h (strcspn): Add a conditional link warning.
43022         (mbscspn): New declaration.
43023         * m4/mbscspn.m4: New file.
43024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43025         GNULIB_MBSCSPN.
43026         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43027         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43028
43029 2007-02-04  Bruno Haible  <bruno@clisp.org>
43030
43031         New module mbscasestr, reduced goal of strcasestr.
43032         * modules/mbscasestr: New file.
43033         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43034         (mbscasestr): Renamed from strcasestr.
43035         * lib/strcasestr.c: Don't include mbuiter.h.
43036         (strcasestr): Remove support for multibyte locales.
43037         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43038         Change the conditional link warning.
43039         (mbscasestr): New declaration.
43040         * m4/mbscasestr.m4: New file.
43041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43042         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43043         REPLACE_STRCASESTR.
43044         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43046         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43047         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43048         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43049         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43050         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43051         (Depends-on): Remove mbuiter.
43052         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43053
43054 2007-02-04  Bruno Haible  <bruno@clisp.org>
43055
43056         Simplify handling of strncasecmp.
43057         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43058         the conditional link warning.
43059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43060         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43061         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43062         * modules/strcase (configure.ac): Don't invoke
43063         gl_STRING_MODULE_INDICATOR.
43064         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43065
43066 2007-02-04  Bruno Haible  <bruno@clisp.org>
43067
43068         New module mbscasecmp, reduced goal of strcasecmp.
43069         * modules/mbscasecmp: New file.
43070         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43071         (mbscasecmp): Renamed from strcasecmp.
43072         * lib/strcasecmp.c: Don't include mbuiter.h.
43073         (strcasecmp): Remove support for multibyte locales.
43074         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43075         Change the conditional link warning.
43076         (mbscasecmp): New declaration.
43077         * m4/mbscasecmp.m4: New file.
43078         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43079         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43080         REPLACE_STRCASECMP.
43081         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43083         GNULIB_MBSCASECMP.
43084         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43085         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43086         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43087         (Depends-on): Remove mbuiter.
43088         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43089
43090 2007-02-04  Bruno Haible  <bruno@clisp.org>
43091
43092         New module mbsstr. Remove module strstr.
43093         * modules/mbsstr: New file.
43094         * modules/strstr: Remove file.
43095         * lib/mbsstr.c: Renamed from lib/strstr.c.
43096         (mbsstr): Renamed from strstr.
43097         * lib/string_.h (strstr): Remove declaration. Change the conditional
43098         link warning.
43099         (mbsstr): New declaration.
43100         * m4/mbsstr.m4: New file.
43101         * m4/strstr.m4: Remove file.
43102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43103         REPLACE_STRSTR.
43104         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43105         Don't initialize GNULIB_STRSTR.
43106         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43107         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43108         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43109         (Support for systems lacking ANSI C 89): Remove strstr.
43110
43111 2007-02-04  Bruno Haible  <bruno@clisp.org>
43112
43113         New module mbsrchr.
43114         * modules/mbsrchr: New file.
43115         * lib/mbsrchr.c: New file.
43116         * lib/string_.h (strrchr): Add a conditional link warning.
43117         (mbsrchr): New declaration.
43118         * m4/mbsrchr.m4: New file.
43119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43120         GNULIB_MBSRCHR.
43121         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43122         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43123
43124 2007-02-04  Bruno Haible  <bruno@clisp.org>
43125
43126         New module mbschr.
43127         * modules/mbschr: New file.
43128         * lib/mbschr.c: New file.
43129         * lib/string_.h (strchr): Add a conditional link warning.
43130         (mbschr): New declaration.
43131         * m4/mbschr.m4: New file.
43132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43133         GNULIB_MBSCHR.
43134         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43135         * MODULES.html.sh (Internationalization functions): Add mbschr.
43136
43137 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43138
43139         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43140
43141         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43142
43143 2007-02-04  Bruno Haible  <bruno@clisp.org>
43144
43145         New module description section 'configure.ac-early'.
43146         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43147         (func_get_autoconf_early_snippet): New function.
43148         (func_import, func_create_testdir): Use it. Remove special cases for
43149         modules 'extensions' and 'lock'.
43150         * modules/extensions (configure.ac-early): Require
43151         gl_USE_SYSTEM_EXTENSIONS.
43152         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43153
43154 2007-02-04  Bruno Haible  <bruno@clisp.org>
43155
43156         Make use of gcj-4.3's -fsource and -ftarget option.
43157         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43158         and if so try the options -fsource and -ftarget.
43159         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43160         source_version, ftarget_option, target_version arguments.
43161         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43162         (is_envjavac_oldgcj_14_14_usable): Renamed from
43163         is_envjavac_gcj_14_14_usable.
43164         (is_envjavac_oldgcj_14_13_usable): Renamed from
43165         is_envjavac_gcj_14_13_usable.
43166         (is_gcj_present): Update.
43167         (is_gcj_43, is_gcj43_usable): New functions.
43168         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43169         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43170         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43171         try the options -fsource and -ftarget.
43172
43173 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43174
43175         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43176         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43177         larger value.
43178
43179 2007-02-03  Jim Meyering  <jim@meyering.net>
43180
43181         Give tools a better chance to allocate space for very large buffers.
43182         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43183
43184         Make pwd and readlink work also when run with an unreadable parent dir
43185         on systems with openat support.
43186         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43187         provided getcwd function, even when we have openat support.
43188         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43189
43190 2007-02-02  Bruno Haible  <bruno@clisp.org>
43191
43192         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43193         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43194         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43195         portability problems if one of these functions is only used on specific
43196         platforms.
43197         Reported by Paul Eggert.
43198
43199 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43200
43201         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43202         is causing more trouble than it's curing.
43203         * lib/regex_internal.h (__mempcpy): Remove.
43204         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43205         (and make the code a tad smaller to boot).
43206         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43207
43208 2007-02-02  Jim Meyering  <jim@meyering.net>
43209
43210         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43211         section, not in the Makefile.am: one.
43212
43213 2007-02-02  Eric Blake  <ebb9@byu.net>
43214
43215         * lib/strchrnul.c: Always include config.h first.
43216
43217         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43218         gnulib strstr is not necessary here.
43219
43220 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43221
43222         * m4/socklen.m4: Fix typo.
43223
43224 2007-02-02  Eric Blake  <ebb9@byu.net>
43225
43226         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43227         * modules/netinet_in (Makefile.am): Likewise.
43228
43229 2007-02-01  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/string_.h (GL_LINK_WARNING): New macro.
43232         (strcasecmp, strstr, strcasestr): If provided by the system,
43233         conditionally define as a macro that leads to a warning instead of to
43234         an error.
43235         (strncasecmp): Conditionally define as a macro that leads to a warning.
43236
43237 2007-02-01  Karl Berry  <karl@gnu.org>
43238
43239         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43240
43241 2007-02-01  Bruno Haible  <bruno@clisp.org>
43242
43243         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43244         renamings.
43245
43246 2007-02-01  Eric Blake  <ebb9@byu.net>
43247
43248         * modules/regex (Depends-on): Revert dependence on mempcpy.
43249         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43250         module's definition of mempcpy.
43251         Reported by Paul Eggert.
43252
43253 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43254
43255         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43256         the symbol XYZ before redefining it.  This fixes a problem with
43257         programs that don't use XYZ, when compiled on systems that define
43258         XYZ to something else.
43259
43260 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43261
43262         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43263         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43264         writeable to group or other and (2) is intended to have a special
43265         mode bit that is set or cleared.  In such a case, the directory
43266         should be neither group- nor other-writeable until the special
43267         mode bits are right.
43268
43269 2007-01-31  Eric Blake  <ebb9@byu.net>
43270
43271         * modules/mountlist (Depends-on): Add strstr.
43272
43273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43274         bug.
43275         * modules/string (Makefile.am): Remove redundant replacement.
43276         * modules/regex (Depends-on): Add mempcpy.
43277
43278 2007-01-31  Bruno Haible  <bruno@clisp.org>
43279
43280         New module description field 'Link'.
43281         * gnulib-tool (func_usage): Document --extract-link-directive.
43282         (sed_extract_prog): Recognize 'Link' directive.
43283         (func_get_link_directive): New function.
43284         (func_import): Show summary of link directives.
43285         Handle --extract-link-directive option.
43286         * modules/acl (Link): New section.
43287         * modules/clock-time (Link): New section.
43288         * modules/euidaccess (Link): New section.
43289         * modules/gettext (Link): New section.
43290         * modules/iconv (Link): New section.
43291         * modules/lock (Link): New section.
43292         * modules/nanosleep (Link): New section.
43293         * modules/readline (Link): New section.
43294
43295 2007-01-27  Bruno Haible  <bruno@clisp.org>
43296
43297         Enforce the use of gnulib modules for unportable <string.h> functions.
43298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43299         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43300         (gl_HEADER_STRING_H_BODY): Require it.
43301         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43302         the symbol XYZ to one that gives a link error.
43303         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43304         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43305         * modules/mempcpy (configure.ac): Likewise.
43306         * modules/memrchr (configure.ac): Likewise.
43307         * modules/stpcpy (configure.ac): Likewise.
43308         * modules/stpncpy (configure.ac): Likewise.
43309         * modules/strcase (configure.ac): Likewise.
43310         * modules/strcasestr (configure.ac): Likewise.
43311         * modules/strchrnul (configure.ac): Likewise.
43312         * modules/strdup (configure.ac): Likewise.
43313         * modules/strndup (configure.ac): Likewise.
43314         * modules/strnlen (configure.ac): Likewise.
43315         * modules/strpbrk (configure.ac): Likewise.
43316         * modules/strsep (configure.ac): Likewise.
43317         * modules/strstr (configure.ac): Likewise.
43318         * modules/strtok_r (configure.ac): Likewise.
43319
43320 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43321
43322         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43323
43324 2007-01-30  Jim Meyering  <jim@meyering.net>
43325
43326         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43327
43328 2007-01-29  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43331         * lib/execute.c: Likewise.
43332         * lib/pipe.c: Likewise.
43333         * lib/printf-args.h: Likewise.
43334         * lib/printf-args.c: Likewise.
43335         * lib/printf-parse.c: Likewise.
43336         * lib/vasnprintf.c: Likewise.
43337
43338 2007-01-29  Eric Blake  <ebb9@byu.net>
43339
43340         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43341         declaration.
43342
43343 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43344
43345         * lib/strptime.h (strptime): Use 'restrict' for args where
43346         POSIX requires this.
43347         * lib/strptime.c (strptime): Likewise.
43348         Change license notice from LGPL to GPL, since gnulib-tool will
43349         change this as needed.
43350         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43351         defined.
43352         Include "strptime.h" first, to check interface.
43353         Do not #undef _LIBC and _NL_CURRENT.
43354         Do not include <stdlib.h>; no longer needed.
43355         Include "time_r.h" and declare ptime_locale_status
43356         only if _LIBC is not defined.
43357         (__P): Remove unused macro.
43358         (match_string): Bring back glibc version, but use it only if _LIBC
43359         is defined.
43360         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43361         Remove unnecessary assertion and abort() call.
43362         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43363         * m4/strptime.m4: Fix serial number comment.
43364         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
43365         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
43366         (Depends-on): Add time_r.
43367
43368 2007-01-29  Bruno Haible  <bruno@clisp.org>
43369
43370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43371         strptime.
43372         * modules/strptime (Depends-on): Add stdbool.
43373         * lib/strptime.h: Include <time.h> always. Add comments.
43374
43375 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43376
43377         * modules/strptime: New file.
43378         * lib/strptime.h: New file.
43379         * lib/strptime.c: New file.
43380         * m4/strptime.m4: New file.
43381
43382 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43383
43384         * MODULES.html.sh: New module mpsort.
43385         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
43386
43387         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
43388         a circularity problem with HP-UX ia64 reported by Bob Proulx in
43389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
43390         All uses changed.
43391         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
43392         All uses changed.
43393         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
43394         to _Restrict_.
43395         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
43396         the parameter matches the prototype.
43397
43398 2007-01-28  Jim Meyering  <jim@meyering.net>
43399
43400         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
43401         sys/time.h here, reverting that part of the previous patch:
43402         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
43403
43404 2007-01-28  Bruno Haible  <bruno@clisp.org>
43405
43406         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
43407         value of $(SYS_TIME_H).
43408         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
43409         remove it conditionally, too. [added by Jim Meyering]
43410         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
43411         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43412         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
43413         GETTIMEOFDAY_REPLACEMENT to 1.
43414
43415 2007-01-28  Bruno Haible  <bruno@clisp.org>
43416
43417         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
43418         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
43419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
43420         Set UNISTD_H instead of UNISTD_H2.
43421         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
43422
43423 2007-01-28  Bruno Haible  <bruno@clisp.org>
43424
43425         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
43426         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
43427
43428 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43429
43430         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
43431         (func_create_testdir): Ensure C locale for `grep' and `tr'
43432         character ranges.
43433         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
43434         ACLOCAL_AMFLAGS parsing state machine.
43435
43436 2007-01-27  Bruno Haible  <bruno@clisp.org>
43437
43438         * modules/unistr/base: Update.
43439
43440 2007-01-27  Bruno Haible  <bruno@clisp.org>
43441
43442         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
43443         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
43444         * modules/unistr/u32-mbtouc-unsafe: Renamed from
43445         modules/unistr/u32-mbtouc.
43446         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
43447         * lib/unistr.h: Update.
43448         * lib/linebreak.c: Update.
43449         * modules/unistr/u32-mbtouc: Renamed from
43450         modules/unistr/u32-mbtouc-safe.
43451         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
43452         * lib/unistr.h: Update.
43453         * lib/unistr/u32-to-u8.c: Update.
43454         * lib/unistr/u32-to-u16.c: Update.
43455
43456 2007-01-27  Bruno Haible  <bruno@clisp.org>
43457
43458         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
43459         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
43460         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
43461         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
43462         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
43463         * modules/unistr/u16-mbtouc-unsafe: Renamed from
43464         modules/unistr/u16-mbtouc.
43465         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
43466         * lib/unistr.h: Update.
43467         * lib/linebreak.c: Update.
43468         * modules/linebreak: Update.
43469         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
43470         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
43471         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
43472         * modules/unistr/u16-mbtouc: Renamed from
43473         modules/unistr/u16-mbtouc-safe.
43474         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
43475         * lib/unistr.h: Update.
43476         * lib/unistr/u16-to-u8.c: Update.
43477         * modules/unistr/u16-to-u8: Update.
43478         * lib/unistr/u16-to-u32.c: Update.
43479         * modules/unistr/u16-to-u32: Update.
43480
43481 2007-01-27  Bruno Haible  <bruno@clisp.org>
43482
43483         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
43484         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
43485         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
43486         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
43487         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
43488         * modules/unistr/u8-mbtouc-unsafe: Renamed from
43489         modules/unistr/u8-mbtouc.
43490         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
43491         * lib/unistr.h: Update.
43492         * lib/striconveh.c: Update.
43493         * modules/striconveh: Update.
43494         * lib/linebreak.c: Update.
43495         * modules/linebreak: Update.
43496         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
43497         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
43498         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
43499         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
43500         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
43501         * lib/unistr.h: Update.
43502         * lib/striconveh.c: Update.
43503         * modules/striconveh: Update.
43504         * lib/unistr/u8-to-u16.c: Update.
43505         * modules/unistr/u8-to-u16: Update.
43506         * lib/unistr/u8-to-u32.c: Update.
43507         * modules/unistr/u8-to-u32: Update.
43508
43509 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43510
43511         Sync from Libtool.
43512         * lib/argz.c: Do not include strings.h nor memory.h, include
43513         string.h unconditionally.  Patch by Simon Josefsson.
43514
43515 2007-01-27  Bruno Haible  <bruno@clisp.org>
43516
43517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
43518         from gl_HEADER_STRING_H_BODY.
43519         (gl_HEADER_STRING_H_BODY): Require it.
43520         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
43521         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43522         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43523         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43525         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
43526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43527         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43528         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
43529         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43530         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43531         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
43532         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43533         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43534         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43535
43536 2007-01-27  Bruno Haible  <bruno@clisp.org>
43537
43538         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
43539         check_PROGRAMS into noinst_PROGRAMS.
43540         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
43541         check_PROGRAMS in this case.
43542         (func_import): Set for_test to false.
43543         (func_create_testdir): Set for_test to true.
43544
43545 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43546             Bruno Haible  <bruno@clisp.org>
43547
43548         * modules/strcasestr (Files): Remove lib/strcasestr.h.
43549         (Depends-on): Add string.
43550         (Includes): Use <string.h> instead of strcasestr.h.
43551         * modules/string (Makefile.am): Also substitute the value of
43552         REPLACE_STRCASESTR.
43553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
43554         assume strcasestr is declared in <string.h> not <strings.h>. Also
43555         set REPLACE_STRCASESTR.
43556         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
43557         REPLACE_STRCASESTR.
43558         * lib/strcasestr.h: Remove file.
43559         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
43560         * lib/string_.h (strcasestr): New declaration.
43561
43562 2007-01-27  Bruno Haible  <bruno@clisp.org>
43563
43564         * lib/string_.h: Use 'extern'.
43565
43566 2007-01-27  Jim Meyering  <jim@meyering.net>
43567
43568         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
43569         of set-but-not-used local, "q".
43570
43571         * lib/mempcpy.c: Include <config.h> before <string.h>.
43572         This fixes a compilation error on HP-UX, due to the system's
43573         "restrict"-using mempcpy prototype.
43574
43575 2007-01-26  Bruno Haible  <bruno@clisp.org>
43576
43577         Small optimization.
43578         * lib/javacomp.c: Include c-strstr.h.
43579          (is_envjavac_gcj): Use c_strstr instead of strstr.
43580         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
43581
43582 2007-01-26  Bruno Haible  <bruno@clisp.org>
43583
43584         * MODULES.html.sh (Unicode string functions): Add the new modules.
43585
43586         * modules/uniconv/u32-strconv-to-locale: New file.
43587         * lib/uniconv/u32-strconv-to-locale.c: New file.
43588
43589         * modules/uniconv/u16-strconv-to-locale: New file.
43590         * lib/uniconv/u16-strconv-to-locale.c: New file.
43591
43592         * modules/uniconv/u8-strconv-to-locale: New file.
43593         * lib/uniconv/u8-strconv-to-locale.c: New file.
43594
43595         * modules/uniconv/u32-strconv-from-locale: New file.
43596         * lib/uniconv/u32-strconv-from-locale.c: New file.
43597
43598         * modules/uniconv/u16-strconv-from-locale: New file.
43599         * lib/uniconv/u16-strconv-from-locale.c: New file.
43600
43601         * modules/uniconv/u8-strconv-from-locale: New file.
43602         * lib/uniconv/u8-strconv-from-locale.c: New file.
43603
43604         * modules/uniconv/u32-strconv-to-enc: New file.
43605         * lib/uniconv/u32-strconv-to-enc.c: New file.
43606         * modules/uniconv/u32-strconv-to-enc-tests: New file.
43607         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
43608
43609         * modules/uniconv/u16-strconv-to-enc: New file.
43610         * lib/uniconv/u16-strconv-to-enc.c: New file.
43611         * lib/uniconv/u-strconv-to-enc.h: New file.
43612         * modules/uniconv/u16-strconv-to-enc-tests: New file.
43613         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
43614
43615         * modules/uniconv/u8-strconv-to-enc: New file.
43616         * lib/uniconv/u8-strconv-to-enc.c: New file.
43617         * modules/uniconv/u8-strconv-to-enc-tests: New file.
43618         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
43619
43620         * modules/uniconv/u32-strconv-from-enc: New file.
43621         * lib/uniconv/u32-strconv-from-enc.c: New file.
43622         * modules/uniconv/u32-strconv-from-enc-tests: New file.
43623         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
43624
43625         * modules/uniconv/u16-strconv-from-enc: New file.
43626         * lib/uniconv/u16-strconv-from-enc.c: New file.
43627         * modules/uniconv/u16-strconv-from-enc-tests: New file.
43628         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
43629
43630         * modules/uniconv/u8-strconv-from-enc: New file.
43631         * lib/uniconv/u8-strconv-from-enc.c: New file.
43632         * lib/uniconv/u-strconv-from-enc.h: New file.
43633         * modules/uniconv/u8-strconv-from-enc-tests: New file.
43634         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
43635
43636         * modules/uniconv/u32-conv-from-enc: New file.
43637         * lib/uniconv/u32-conv-from-enc.c: New file.
43638         * modules/uniconv/u32-conv-from-enc-tests: New file.
43639         * tests/uniconv/test-u32-conv-from-enc.c: New file.
43640
43641         * modules/uniconv/u16-conv-from-enc: New file.
43642         * lib/uniconv/u16-conv-from-enc.c: New file.
43643         * lib/uniconv/u-conv-from-enc.h: New file.
43644         * modules/uniconv/u16-conv-from-enc-tests: New file.
43645         * tests/uniconv/test-u16-conv-from-enc.c: New file.
43646
43647         * modules/uniconv/u8-conv-from-enc: New file.
43648         * lib/uniconv/u8-conv-from-enc.c: New file.
43649         * modules/uniconv/u8-conv-from-enc-tests: New file.
43650         * tests/uniconv/test-u8-conv-from-enc.c: New file.
43651
43652         * modules/uniconv/base: New file.
43653         * lib/uniconv.h: New file.
43654
43655 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
43656
43657         * doc/gnulib-tool.texi (Initial import): Update to match current
43658         behavior with strdup module.
43659         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
43660         * lib/memmem.h: Remove; all uses removed.  This is now done
43661         by <string.h>.
43662         * lib/mempcpy.h: Likewise.
43663         * lib/memrchr.h: Likewise.
43664         * lib/stpcpy.h: Likewise.
43665         * lib/stpncpy.h: Likewise.
43666         * lib/strcase.h: Likewise.
43667         * lib/strchrnul.h: Likewise.
43668         * lib/strdup.h: Likewise.
43669         * lib/strndup.h: Likewise.
43670         * lib/strnlen.h: Likewise.
43671         * lib/strpbrk.h: Likewise.
43672         * lib/strsep.h: Likewise.
43673         * lib/strstr.h: Likewise.
43674         * lib/strtok_r.h: Likewise.
43675         * lib/string_.h: New file.
43676         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
43677         Rely on <string.h> instead.
43678         * lib/canon-host.c: Likewise.
43679         * lib/chdir-long.c: Likewise.
43680         * lib/concatpath.c: Likewise.
43681         * lib/exclude.c: Likewise.
43682         * lib/fchdir.c: Likewise.
43683         * lib/getaddrinfo.c: Likewise.
43684         * lib/getcwd.c: Likewise.
43685         * lib/getsubopt.c: Likewise.
43686         * lib/glob.c: Likewise.
43687         * lib/hard-locale.c: Likewise.
43688         * lib/iconvme.c: Likewise.
43689         * lib/javacomp.c: Likewise.
43690         * lib/mempcpy.c: Likewise.
43691         * lib/memrchr.c: Likewise.
43692         * lib/regex_internal.h: Likewise.
43693         * lib/stpncpy.c: Likewise.
43694         * lib/strcasecmp.c: Likewise.
43695         * lib/strchrnul.c: Likewise.
43696         * lib/strdup.c: Likewise.
43697         * lib/striconv.c: Likewise.
43698         * lib/striconveh.c: Likewise.
43699         * lib/striconveha.c: Likewise.
43700         * lib/strncasecmp.c: Likewise.
43701         * lib/strndup.c: Likewise.
43702         * lib/strnlen.c: Likewise.
43703         * lib/strsep.c: Likewise.
43704         * lib/strstr.c: Likewise.
43705         * lib/strtok_r.c: Likewise.
43706         * lib/userspec.c: Likewise.
43707         * lib/w32spawn.h: Likewise.
43708         * lib/xstrndup.c: Likewise.
43709         * lib/mountlist.c (strstr): Remove decl.
43710         * m4/string_h.m4: New file.
43711         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
43712         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
43713         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
43714         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
43715         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
43716         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
43717         Set REPLACE_STRCASECMP if necessary.
43718         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
43719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
43720         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
43721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
43722         HAVE_DECL_STRDUP if necessary.
43723         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
43724         since gl_FUNC_STRNDUP does that now.
43725         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
43726         Check for decl here...
43727         (gl_PREREQ_STRNLEN): ... not here.
43728         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
43729         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
43730         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
43731         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
43732         necessary.
43733         * modules/string: New file.
43734         * modules/memmem (Files): Remove special-purpose include file.
43735         (Depends-on): Add string.
43736         (Include): Include <string.h>, not the removed file.
43737         * modules/mempcpy: Likewise.
43738         * modules/memrchr: Likewise.
43739         * modules/stpcpy: Likewise.
43740         * modules/stpncpy: Likewise.
43741         * modules/strcase: Likewise.
43742         * modules/strchrnul: Likewise.
43743         * modules/strdup: Likewise.
43744         * modules/strndup: Likewise.
43745         * modules/strnlen: Likewise.
43746         * modules/strpbrk: Likewise.
43747         * modules/strsep: Likewise.
43748         * modules/strstr: Likewise.
43749         * modules/strtok_r: Likewise.
43750         * tests/test-dirname.c: Don't include "strdup.h", since
43751         <string.h> now suffices.
43752         * tests/test-memmem.c: Don't include "memmem.h", since
43753         <string.h> now suffices.
43754
43755 2007-01-25  Bruno Haible  <bruno@clisp.org>
43756
43757         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
43758         *resultp is 0.
43759
43760         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
43761         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
43762         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
43763         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
43764
43765         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
43766         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
43767         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
43768         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
43769         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
43770         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
43771
43772 2007-01-24  Bruno Haible  <bruno@clisp.org>
43773
43774         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
43775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
43776         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
43777         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
43778         gl_FUNC_FTS_CORE.
43779         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
43780         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
43781         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43782         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
43783         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
43784         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
43785         gl_FUNC_FCHOWNAT.
43786         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
43787         gl_FUNC_STRFTIME.
43788         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
43789         Reported by Ralf Wildenhues.
43790
43791 2007-01-24  Bruno Haible  <bruno@clisp.org>
43792
43793         Drop AC_REQUIRE calls that are redundant with the module dependencies.
43794         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
43795         gl_GETADDRINFO.
43796         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
43797         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
43798         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
43799
43800 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
43801
43802         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
43803         Don't use 'exit'; just return from 'main'.
43804         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
43805
43806         * lib/fnmatch_.h: Readjust white space and comments to match
43807         glibc, to avoid spurious diffs.
43808
43809 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43810
43811         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
43812         2004-12-01 change by Jakub Jelinek, since this code won't compile
43813         if !LIBC.  Problem reported by Bob Proulx.
43814
43815 2007-01-23  Bruno Haible  <bruno@clisp.org>
43816
43817         * lib/striconveh.c: Include c-strcaseeq.h.
43818         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
43819         * modules/striconveh (Depends-on): Add c-strcaseeq.
43820
43821 2007-01-23  Bruno Haible  <bruno@clisp.org>
43822
43823         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
43824
43825         * modules/c-strcaseeq: New file.
43826         * lib/c-strcaseeq.h: New file.
43827
43828         * modules/streq: New file.
43829         * lib/streq.h: New file.
43830
43831 2007-01-23  Bruno Haible  <bruno@clisp.org>
43832
43833         * modules/striconveha-tests: New file.
43834         * tests/test-striconveha.c: New file.
43835
43836         * lib/striconveha.h: Include <stdbool.h>.
43837         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
43838         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
43839         (mem_iconveha_notranslit): Renamed from mem_iconveha.
43840         (mem_iconveha): New function.
43841         (str_iconveha_notranslit): Renamed from str_iconveha.
43842         (str_iconveha): New function.
43843         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
43844         c-strcase.
43845
43846 2007-01-23  Bruno Haible  <bruno@clisp.org>
43847
43848         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
43849         encodings without forgiving before trying any encoding with handler.
43850         (str_iconveha): Try all encodings without forgiving before trying any
43851         encoding with handler.
43852
43853 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43854
43855         Import the following changes from libc.
43856
43857         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43858
43859         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
43860
43861         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43862
43863         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
43864         normal_bracket label.
43865
43866         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
43867
43868         [BZ #361]
43869         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
43870         to normal_bracket after fetching the next character.
43871
43872 2007-01-22  Bruno Haible  <bruno@clisp.org>
43873
43874         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
43875         argument.
43876         * lib/striconveh.c (iconv_carefully_1): New function.
43877         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
43878         argument.
43879         (str_cd_iconveh): Update.
43880         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
43881         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
43882         * tests/test-striconveh.c (MAGIC): New macro.
43883         (new_offsets): New function.
43884         (main): Test call with and without offsets.
43885
43886 2007-01-22  Bruno Haible  <bruno@clisp.org>
43887
43888         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
43889         * modules/sys_select (Makefile.am): Likewise.
43890         * modules/sys_socket (Makefile.am): Likewise.
43891         * modules/sys_time (Makefile.am): Likewise.
43892
43893 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43894
43895         * modules/gettimeofday (License): Change from GPL to LGPL, since
43896         gettimeofday is a library function.
43897
43898 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43899
43900         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
43901
43902 2007-01-21  Bruno Haible  <bruno@clisp.org>
43903
43904         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
43905
43906 2007-01-21  Bruno Haible  <bruno@clisp.org>
43907
43908         * modules/striconveha: New file.
43909         * lib/striconveha.h: New file.
43910         * lib/striconveha.c: New file.
43911         * MODULES.html.sh (Internationalization functions): Add striconveha.
43912         * lib/striconv.c (str_iconv): Optimize the case of an empty input
43913         string.
43914         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
43915
43916 2007-01-21  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43919         * lib/striconveh.c (str_iconveh): Likewise.
43920
43921 2007-01-21  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/striconveh.h (mem_iconveh): New declaration.
43924         * lib/striconveh.c (mem_iconveh): New function.
43925         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43926
43927 2007-01-21  Bruno Haible  <bruno@clisp.org>
43928
43929         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43930
43931         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43932         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43933         original result buffer.
43934         (str_cd_iconveh): Update.
43935         * tests/test-striconveh.c (main): Update.
43936
43937         * lib/striconv.h (mem_cd_iconv): Change specification.
43938         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43939         result buffer.
43940         (str_cd_iconv): Update.
43941         * tests/test-striconv.c (main): Update.
43942
43943 2007-01-21  Bruno Haible  <bruno@clisp.org>
43944
43945         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43946
43947 2007-01-20  Jim Meyering  <jim@meyering.net>
43948
43949         * lib/userspec.c (parse_with_separator): If a user or group string
43950         starts with "+", skip the corresponding name-to-ID look-up, since
43951         such a look-up must fail: user and group names may not include "+".
43952
43953 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43954
43955         * lib/poll.c: Include sys/time.h and time.h unconditionally,
43956         since we now assume the sys_time module.
43957         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
43958         check for sys/time.h; no longer needed.
43959         * modules/poll (Depends-on): Depend on sys_time.
43960
43961 2007-01-18  Bruno Haible  <bruno@clisp.org>
43962
43963         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
43964         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43965
43966         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
43967         gettimeofday.
43968
43969         * tests/test-gettimeofday.c: Include <time.h>.
43970         (dummy): Remove variable.
43971
43972         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
43973         gl_HEADER_SYS_TIME_H.
43974         (gl_HEADER_SYS_TIME_H): New macro.
43975
43976         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
43977         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43978         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43979         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
43980         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43981         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
43982         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
43983         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43984         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
43985         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
43986         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43987
43988         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
43989         last change; it caused a compilation error when cross-compiling to
43990         Cygwin.
43991
43992 2007-01-18  Jim Meyering  <jim@meyering.net>
43993
43994         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
43995         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
43996         than the race-prone "test -d sys || mkdir sys".
43997         (configure.ac): Use AC_PROG_MKDIR_P.
43998         * modules/sys_select: Likewise.
43999         * modules/sys_socket: Likewise.
44000         * modules/sys_time: Likewise.
44001
44002 2007-01-18  Eric Blake  <ebb9@byu.net>
44003
44004         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44005         replace gettimeofday.
44006         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44007         name, to avoid infinite recursion.
44008
44009 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44010
44011         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44012         module sys_time.
44013         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44014         assume timespec.h defines struct timeval.
44015         * lib/settime.c: Likewise.
44016         * lib/utimens.c: Likewise.
44017         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44018         since we now assume the gettimeofday module.
44019         * lib/tempname.c (__gen_tempname): Likewise.
44020         * lib/gettimeofday.h: Remove.
44021         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44022         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44023         Include <time.h>, for 'time()'.
44024         (localtime_buffer_addr): Also use this workaround if
44025         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44026         to simplify the uses.  All uses changed.
44027         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44028         that #undef is inside {}, and 'const' follows type name consistently.
44029         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44030         (gettimeofday): Do not use the maximum possible value for
44031         tv->tv_usec, since that might break usages other than ls.c.
44032         Instead, we'll leave ls.c alone.  This undoes today's patch
44033         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44034         we've never observed the problem but might as well keep the
44035         canary.
44036         * lib/nanosleep.c: Include timespec.h first, for interface check.
44037         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44038         now assume the sys_time module.
44039         * lib/tempname.c: Likewise.
44040         * lib/timespec.h: Likewise.
44041         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44042         needed.
44043         * lib/strftime.c: Likewise.
44044         * lib/timespec.h: Likewise.
44045         * lib/posixtm.c: Include posixtm.h first, for interface check.
44046         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44047         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44048         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44049         * lib/sys_time_.h: New file.
44050         * lib/timespec.h (struct timespec): Use long int, not long.
44051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44052         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44053         Remove obsolescent call to AC_HEADER_TIME.
44054         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44056         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44057         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44058         Likewise.
44059         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44060         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44061         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44062         into the sys_time module.  Check for gettimeofday just once.
44063         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44064         for gettimeofday signature to just check the signature.  Merely
44065         compile it, since linking doesn't test signature.  Improve test for
44066         whether gettimeofday.o is actually needed.
44067         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44068         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44069         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44070         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44071         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44072         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44073         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44074         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44075         than worrying about sys/time.h.
44076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44077         Don't bother worrying about TIME_WITH_SYS_TIME.
44078         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44079         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44080         * m4/sys_time_h.m4: New file.
44081         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44082         Don't include sys/time.h.  Return from main rather than exiting.
44083         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44084         all uses changed.
44085         * modules/gethrxtime (Depends-on): Add sys_time.
44086         * modules/gettime (Depends-on): Likewise.
44087         * modules/gettimeofday (Depends-on): Likewise.
44088         * modules/nanosleep (Depends-on): Likewise.
44089         * modules/settime (Depends-on): Likewise.
44090         * modules/tempname (Depends-on): Likewise.
44091         * modules/utimens (Depends-on): Likewise.
44092         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44093         (Include:) Change back to <sys/time.h>.
44094         (Maintainer:) Add self.
44095         * modules/sys_time: New file.
44096         * modules/tempname (Depends-on): Add gettimeofday.
44097         * tests/test-gettimeofday.c: Include <sys/time.h>
44098         rather than gettimeofday.h.
44099
44100 2007-01-17  Bruno Haible  <bruno@clisp.org>
44101
44102         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44103         the license default to GPL.
44104         (func_create_testdir): Don't complain if a module is LGPL and its
44105         tests module depends on GPLed modules.
44106
44107 2007-01-17  Bruno Haible  <bruno@clisp.org>
44108
44109         * lib/gettimeofday.c (gettimeofday): Add code for the case
44110         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44111         maximum possible value for tv->tv_usec, rather than the minimum one.
44112
44113 2005-10-08  Martin Lambers  <marlam@marlam.de>
44114 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44115 2007-01-16  Bruno Haible  <bruno@clisp.org>
44116
44117         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44118         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44119         gl_FUNC_GETTIMEOFDAY.
44120         (Include): Add gettimeofday.h.
44121         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44122         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44123         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44124         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44125         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44126         * lib/gettimeofday.h: New file.
44127         * lib/gettimeofday.c: Include <sys/timeb.h>.
44128         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44129         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44130         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44131         fall back on time().
44132
44133         * tests/test-gettimeofday.c: New file.
44134         * modules/gettimeofday-tests: New file.
44135
44136 2007-01-16  Eric Blake  <ebb9@byu.net>
44137
44138         * modules/fnmatch (Depends-on): Depend on wchar.
44139         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44140         * m4/fnmatch.m4: Likewise.
44141         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44142         * m4/mbchar.m4: Likewise.
44143         * modules/mbswidth (Depends-on): Depend on wchar.
44144         * lib/mbswidth.c: Assume <wchar.h>.
44145         * m4/mbswidth.m4: Likewise.
44146         * modules/quotearg (Depends-on): Depend on wchar.
44147         * lib/quotearg.c: Assume <wchar.h>.
44148         * m4/quotearg.m4: Likewise.
44149         * modules/regex (Depends-on): Depend on wchar.
44150         * lib/regex_internal.h: Assume <wchar.h>.
44151         * m4/regex.m4: Likewise.
44152         * modules/stdint (Depends-on): Depend on wchar.
44153         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44154         * m4/stdint.m4: Likewise.
44155         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44156         * modules/strftime (Depends-on): Depend on wchar.
44157         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44158         * modules/strtol (Depends-on): Depend on wchar.
44159         * lib/strtol.c: Assume <wchar.h>.
44160         * modules/wcwidth (Depends-on): Depend on wchar.
44161         * lib/wcwidth.h: Assume <wchar.h>.
44162         * m4/wcwidth.m4: Likewise.
44163
44164 2007-01-16  Bruno Haible  <bruno@clisp.org>
44165
44166         * modules/csharpexec-script: New, created from...
44167         * modules/csharpexec: ... this.
44168
44169 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44170
44171         * modules/javaexec-script: New, created from...
44172         * modules/javaexec: ... this.
44173
44174 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44175
44176         * modules/poll (Dependencies): Add sys_select.
44177
44178 2007-01-15  Jim Meyering  <jim@meyering.net>
44179
44180         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44181         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44182         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44183         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44184
44185 2007-01-15  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/striconveh: New file.
44188         * lib/striconveh.h: New file.
44189         * lib/striconveh.c: New file.
44190         * MODULES.html.sh (Internationalization functions): Add striconveh.
44191
44192         * modules/striconveh-tests: New file.
44193         * tests/test-striconveh.c: New file.
44194
44195 2007-01-15  Bruno Haible  <bruno@clisp.org>
44196
44197         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44198         not from GNU libiconv or GNU libc.
44199
44200 2007-01-15  Bruno Haible  <bruno@clisp.org>
44201
44202         * doc/gnulib-intro.texi (Copyright): Explain the different license
44203         terms for module descriptions, autoconf macros, tests, documentation.
44204
44205 2007-01-14  Bruno Haible  <bruno@clisp.org>
44206
44207         * modules/striconv-tests: New file.
44208         * tests/test-striconv.c: New file.
44209
44210 2007-01-14  Bruno Haible  <bruno@clisp.org>
44211
44212         * modules/iconv-tests: New file.
44213         * tests/test-iconv.c: New file.
44214
44215 2007-01-14  Bruno Haible  <bruno@clisp.org>
44216
44217         * gnulib-tool (func_get_license): For test modules, use the license of
44218         the main module.
44219
44220 2007-01-14  Bruno Haible  <bruno@clisp.org>
44221
44222         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44223         if iconv is found to exist.
44224
44225 2007-01-14  Bruno Haible  <bruno@clisp.org>
44226
44227         * modules/c-ctype-tests: New file.
44228         * tests/test-c-ctype.c: New file.
44229
44230 2007-01-14  Bruno Haible  <bruno@clisp.org>
44231
44232         * modules/binary-io-tests: New file.
44233         * tests/test-binary-io.sh: New file.
44234         * tests/test-binary-io.c: New file.
44235
44236 2007-01-14  Bruno Haible  <bruno@clisp.org>
44237
44238         * modules/array-oset-tests: New file.
44239         * tests/test-array_oset.c: New file.
44240
44241 2007-01-14  Bruno Haible  <bruno@clisp.org>
44242
44243         * modules/array-list-tests: New file.
44244         * tests/test-array_list.c: New file.
44245
44246 2007-01-14  Bruno Haible  <bruno@clisp.org>
44247
44248         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44249         and make.
44250         Reported by Simon Josefsson in
44251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44252
44253 2007-01-14  Bruno Haible  <bruno@clisp.org>
44254
44255         * modules/allocsa-tests: New file.
44256         * tests/test-allocsa.c: New file.
44257
44258 2007-01-14  Bruno Haible  <bruno@clisp.org>
44259
44260         * modules/fchdir (Depends-on): Add absolute-header.
44261         * modules/unistd (Depends-on): Likewise.
44262
44263 2006-12-30  Bruno Haible  <bruno@clisp.org>
44264
44265         * modules/fchdir: New file.
44266         * modules/unistd (Files): Add lib/unistd_.h.
44267         (Makefile.am): Generate unistd.h from unistd_.h.
44268         * lib/fchdir.c: New file.
44269         * lib/dirent_.h: New file.
44270         * lib/unistd_.h: New file.
44271         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44272         * m4/fchdir.m4: New file.
44273         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44274         (gl_HEADER_UNISTD): Invoke it.
44275         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44276         function.
44277         * lib/backupfile.c (opendir, closedir): Undefine.
44278         * lib/chown.c (open, close): Undefine.
44279         * lib/clean-temp.c (open, close): Undefine.
44280         * lib/copy-file.c (open, close): Undefine.
44281         * lib/execute.c (open, close): Undefine.
44282         * lib/fsusage.c (open, close): Undefine.
44283         * lib/gc-gnulib.c (open, close): Undefine.
44284         * lib/getcwd.c (opendir, closedir): Undefine.
44285         * lib/glob.c (opendir, closedir): Undefine.
44286         * lib/javacomp.c (open, close): Undefine.
44287         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44288         * lib/openat-proc.c (open, close): Undefine.
44289         * lib/pagealign_alloc.c (open, close): Undefine.
44290         * lib/pipe.c (open, close): Undefine.
44291         * lib/progreloc.c (open, close): Undefine.
44292         * lib/savedir.c (opendir, closedir): Undefine.
44293         * lib/utime.c (open, close): Undefine.
44294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44295
44296 2007-01-10  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44299
44300 2007-01-12  Eric Blake  <ebb9@byu.net>
44301
44302         Provide a robust <wchar.h>.  Further simplifications are now
44303         possible in other modules, but not included here.
44304         * modules/wchar: New module.
44305         * m4/wchar.m4: New file.
44306         * lib/wchar_.h: Likewise.
44307         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44308         of the new module.
44309         * MODULES.html.sh (Extended multibyte and wide character utilities):
44310         New section.
44311
44312 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44313
44314         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44315         to a reasonable default for memory allocation.
44316         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44317         file system that reports garbage st_size values for symlinks.
44318         Problem reported by Liyang Hu.
44319
44320 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44321
44322         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44323         Emacs .#* auto-save files).
44324
44325 2007-01-11  Bruno Haible  <bruno@clisp.org>
44326
44327         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44328         directory.
44329
44330 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44331
44332         Use @...@ consistently in lib/wctype_.h.
44333         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44334         on it being set to 1 or 0.
44335         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44336         go back to AC_SUBSTing it.
44337         * modules/wctype (Makefile.am): Undo previous change.
44338
44339 2007-01-10  Eric Blake  <ebb9@byu.net>
44340
44341         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44342         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44343         * modules/wctype (Makefile.am): Likewise.
44344         Reported by Chris McGuire.
44345
44346 2007-01-10  Jim Meyering  <jim@meyering.net>
44347
44348         fts.c: a small readability/maintainability improvement
44349         * lib/fts.c (fts_read): Make this code slightly more readable and
44350         maintainable by hoisting the "sp->fts_cur = p" assignments to
44351         immediately follow the statements that set P.  Derived from
44352         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44353
44354 2007-01-10  Eric Blake  <ebb9@byu.net>
44355
44356         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44357         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44359         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44360         Reported by Chris McGuire.
44361
44362 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44363
44364         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
44365         in sed script.
44366
44367 2007-01-09  Bruno Haible  <bruno@clisp.org>
44368
44369         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
44370         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
44371         variables.
44372         (func_module): Use them.
44373
44374 2007-01-09  Bruno Haible  <bruno@clisp.org>
44375
44376         * modules/unistr/base: New file.
44377         * lib/unistr.h: New file.
44378
44379         * modules/unistr/u8-to-u16: New file.
44380         * lib/unistr/u8-to-u16.c: New file.
44381
44382         * modules/unistr/u8-to-u32: New file.
44383         * lib/unistr/u8-to-u32.c: New file.
44384
44385         * modules/unistr/u16-to-u8: New file.
44386         * lib/unistr/u16-to-u8.c: New file.
44387
44388         * modules/unistr/u16-to-u32: New file.
44389         * lib/unistr/u16-to-u32.c: New file.
44390
44391         * modules/unistr/u32-to-u8: New file.
44392         * lib/unistr/u32-to-u8.c: New file.
44393
44394         * modules/unistr/u32-to-u16: New file.
44395         * lib/unistr/u32-to-u16.c: New file.
44396
44397         * modules/unistr/u8-check: New file.
44398         * modules/unistr/u16-check: New file.
44399         * modules/unistr/u32-check: New file.
44400         * lib/unistr/u8-check.c: New file.
44401         * lib/unistr/u16-check.c: New file.
44402         * lib/unistr/u32-check.c: New file.
44403
44404         * modules/unistr/u8-chr: New file.
44405         * modules/unistr/u16-chr: New file.
44406         * modules/unistr/u32-chr: New file.
44407         * lib/unistr/u8-chr.c: New file.
44408         * lib/unistr/u16-chr.c: New file.
44409         * lib/unistr/u32-chr.c: New file.
44410
44411         * modules/unistr/u8-cmp: New file.
44412         * modules/unistr/u16-cmp: New file.
44413         * modules/unistr/u32-cmp: New file.
44414         * lib/unistr/u8-cmp.c: New file.
44415         * lib/unistr/u16-cmp.c: New file.
44416         * lib/unistr/u32-cmp.c: New file.
44417
44418         * modules/unistr/u8-cpy: New file.
44419         * modules/unistr/u16-cpy: New file.
44420         * modules/unistr/u32-cpy: New file.
44421         * lib/unistr/u8-cpy.c: New file.
44422         * lib/unistr/u16-cpy.c: New file.
44423         * lib/unistr/u32-cpy.c: New file.
44424         * lib/unistr/u-cpy.h: New file.
44425
44426         * modules/unistr/u8-cpy-alloc: New file.
44427         * modules/unistr/u16-cpy-alloc: New file.
44428         * modules/unistr/u32-cpy-alloc: New file.
44429         * lib/unistr/u8-cpy-alloc.c: New file.
44430         * lib/unistr/u16-cpy-alloc.c: New file.
44431         * lib/unistr/u32-cpy-alloc.c: New file.
44432         * lib/unistr/u-cpy-alloc.h: New file.
44433
44434         * modules/unistr/u8-endswith: New file.
44435         * modules/unistr/u16-endswith: New file.
44436         * modules/unistr/u32-endswith: New file.
44437         * lib/unistr/u8-endswith.c: New file.
44438         * lib/unistr/u16-endswith.c: New file.
44439         * lib/unistr/u32-endswith.c: New file.
44440         * lib/unistr/u-endswith.h: New file.
44441
44442         * modules/unistr/u8-mblen: New file.
44443         * modules/unistr/u16-mblen: New file.
44444         * modules/unistr/u32-mblen: New file.
44445         * lib/unistr/u8-mblen.c: New file.
44446         * lib/unistr/u16-mblen.c: New file.
44447         * lib/unistr/u32-mblen.c: New file.
44448
44449         * modules/unistr/u8-mbtouc: New file.
44450         * modules/unistr/u16-mbtouc: New file.
44451         * modules/unistr/u32-mbtouc: New file.
44452         * lib/unistr/u8-mbtouc.c: New file.
44453         * lib/unistr/u16-mbtouc.c: New file.
44454         * lib/unistr/u32-mbtouc.c: New file.
44455
44456         * modules/unistr/u8-mbtouc-safe: New file.
44457         * modules/unistr/u16-mbtouc-safe: New file.
44458         * modules/unistr/u32-mbtouc-safe: New file.
44459         * lib/unistr/u8-mbtouc-safe.c: New file.
44460         * lib/unistr/u16-mbtouc-safe.c: New file.
44461         * lib/unistr/u32-mbtouc-safe.c: New file.
44462
44463         * modules/unistr/u8-move: New file.
44464         * modules/unistr/u16-move: New file.
44465         * modules/unistr/u32-move: New file.
44466         * lib/unistr/u8-move.c: New file.
44467         * lib/unistr/u16-move.c: New file.
44468         * lib/unistr/u32-move.c: New file.
44469         * lib/unistr/u-move.h: New file.
44470
44471         * modules/unistr/u8-next: New file.
44472         * modules/unistr/u16-next: New file.
44473         * modules/unistr/u32-next: New file.
44474         * lib/unistr/u8-next.c: New file.
44475         * lib/unistr/u16-next.c: New file.
44476         * lib/unistr/u32-next.c: New file.
44477
44478         * modules/unistr/u8-prev: New file.
44479         * modules/unistr/u16-prev: New file.
44480         * modules/unistr/u32-prev: New file.
44481         * lib/unistr/u8-prev.c: New file.
44482         * lib/unistr/u16-prev.c: New file.
44483         * lib/unistr/u32-prev.c: New file.
44484
44485         * modules/unistr/u8-set: New file.
44486         * modules/unistr/u16-set: New file.
44487         * modules/unistr/u32-set: New file.
44488         * lib/unistr/u8-set.c: New file.
44489         * lib/unistr/u16-set.c: New file.
44490         * lib/unistr/u32-set.c: New file.
44491         * lib/unistr/u-set.h: New file.
44492
44493         * modules/unistr/u8-startswith: New file.
44494         * modules/unistr/u16-startswith: New file.
44495         * modules/unistr/u32-startswith: New file.
44496         * lib/unistr/u8-startswith.c: New file.
44497         * lib/unistr/u16-startswith.c: New file.
44498         * lib/unistr/u32-startswith.c: New file.
44499         * lib/unistr/u-startswith.h: New file.
44500
44501         * modules/unistr/u8-stpcpy: New file.
44502         * modules/unistr/u16-stpcpy: New file.
44503         * modules/unistr/u32-stpcpy: New file.
44504         * lib/unistr/u8-stpcpy.c: New file.
44505         * lib/unistr/u16-stpcpy.c: New file.
44506         * lib/unistr/u32-stpcpy.c: New file.
44507         * lib/unistr/u-stpcpy.h: New file.
44508
44509         * modules/unistr/u8-stpncpy: New file.
44510         * modules/unistr/u16-stpncpy: New file.
44511         * modules/unistr/u32-stpncpy: New file.
44512         * lib/unistr/u8-stpncpy.c: New file.
44513         * lib/unistr/u16-stpncpy.c: New file.
44514         * lib/unistr/u32-stpncpy.c: New file.
44515         * lib/unistr/u-stpncpy.h: New file.
44516
44517         * modules/unistr/u8-strcat: New file.
44518         * modules/unistr/u16-strcat: New file.
44519         * modules/unistr/u32-strcat: New file.
44520         * lib/unistr/u8-strcat.c: New file.
44521         * lib/unistr/u16-strcat.c: New file.
44522         * lib/unistr/u32-strcat.c: New file.
44523         * lib/unistr/u-strcat.h: New file.
44524
44525         * modules/unistr/u8-strchr: New file.
44526         * modules/unistr/u16-strchr: New file.
44527         * modules/unistr/u32-strchr: New file.
44528         * lib/unistr/u8-strchr.c: New file.
44529         * lib/unistr/u16-strchr.c: New file.
44530         * lib/unistr/u32-strchr.c: New file.
44531
44532         * modules/unistr/u8-strcmp: New file.
44533         * modules/unistr/u16-strcmp: New file.
44534         * modules/unistr/u32-strcmp: New file.
44535         * lib/unistr/u8-strcmp.c: New file.
44536         * lib/unistr/u16-strcmp.c: New file.
44537         * lib/unistr/u32-strcmp.c: New file.
44538
44539         * modules/unistr/u8-strcpy: New file.
44540         * modules/unistr/u16-strcpy: New file.
44541         * modules/unistr/u32-strcpy: New file.
44542         * lib/unistr/u8-strcpy.c: New file.
44543         * lib/unistr/u16-strcpy.c: New file.
44544         * lib/unistr/u32-strcpy.c: New file.
44545         * lib/unistr/u-strcpy.h: New file.
44546
44547         * modules/unistr/u8-strcspn: New file.
44548         * modules/unistr/u16-strcspn: New file.
44549         * modules/unistr/u32-strcspn: New file.
44550         * lib/unistr/u8-strcspn.c: New file.
44551         * lib/unistr/u16-strcspn.c: New file.
44552         * lib/unistr/u32-strcspn.c: New file.
44553         * lib/unistr/u-strcspn.h: New file.
44554
44555         * modules/unistr/u8-strdup: New file.
44556         * modules/unistr/u16-strdup: New file.
44557         * modules/unistr/u32-strdup: New file.
44558         * lib/unistr/u8-strdup.c: New file.
44559         * lib/unistr/u16-strdup.c: New file.
44560         * lib/unistr/u32-strdup.c: New file.
44561         * lib/unistr/u-strdup.h: New file.
44562
44563         * modules/unistr/u8-strlen: New file.
44564         * modules/unistr/u16-strlen: New file.
44565         * modules/unistr/u32-strlen: New file.
44566         * lib/unistr/u8-strlen.c: New file.
44567         * lib/unistr/u16-strlen.c: New file.
44568         * lib/unistr/u32-strlen.c: New file.
44569         * lib/unistr/u-strlen.h: New file.
44570
44571         * modules/unistr/u8-strmblen: New file.
44572         * modules/unistr/u16-strmblen: New file.
44573         * modules/unistr/u32-strmblen: New file.
44574         * lib/unistr/u8-strmblen.c: New file.
44575         * lib/unistr/u16-strmblen.c: New file.
44576         * lib/unistr/u32-strmblen.c: New file.
44577
44578         * modules/unistr/u8-strmbtouc: New file.
44579         * modules/unistr/u16-strmbtouc: New file.
44580         * modules/unistr/u32-strmbtouc: New file.
44581         * lib/unistr/u8-strmbtouc.c: New file.
44582         * lib/unistr/u16-strmbtouc.c: New file.
44583         * lib/unistr/u32-strmbtouc.c: New file.
44584
44585         * modules/unistr/u8-strncat: New file.
44586         * modules/unistr/u16-strncat: New file.
44587         * modules/unistr/u32-strncat: New file.
44588         * lib/unistr/u8-strncat.c: New file.
44589         * lib/unistr/u16-strncat.c: New file.
44590         * lib/unistr/u32-strncat.c: New file.
44591         * lib/unistr/u-strncat.h: New file.
44592
44593         * modules/unistr/u8-strncmp: New file.
44594         * modules/unistr/u16-strncmp: New file.
44595         * modules/unistr/u32-strncmp: New file.
44596         * lib/unistr/u8-strncmp.c: New file.
44597         * lib/unistr/u16-strncmp.c: New file.
44598         * lib/unistr/u32-strncmp.c: New file.
44599
44600         * modules/unistr/u8-strncpy: New file.
44601         * modules/unistr/u16-strncpy: New file.
44602         * modules/unistr/u32-strncpy: New file.
44603         * lib/unistr/u8-strncpy.c: New file.
44604         * lib/unistr/u16-strncpy.c: New file.
44605         * lib/unistr/u32-strncpy.c: New file.
44606         * lib/unistr/u-strncpy.h: New file.
44607
44608         * modules/unistr/u8-strnlen: New file.
44609         * modules/unistr/u16-strnlen: New file.
44610         * modules/unistr/u32-strnlen: New file.
44611         * lib/unistr/u8-strnlen.c: New file.
44612         * lib/unistr/u16-strnlen.c: New file.
44613         * lib/unistr/u32-strnlen.c: New file.
44614         * lib/unistr/u-strnlen.h: New file.
44615
44616         * modules/unistr/u8-strpbrk: New file.
44617         * modules/unistr/u16-strpbrk: New file.
44618         * modules/unistr/u32-strpbrk: New file.
44619         * lib/unistr/u8-strpbrk.c: New file.
44620         * lib/unistr/u16-strpbrk.c: New file.
44621         * lib/unistr/u32-strpbrk.c: New file.
44622         * lib/unistr/u-strpbrk.h: New file.
44623
44624         * modules/unistr/u8-strrchr: New file.
44625         * modules/unistr/u16-strrchr: New file.
44626         * modules/unistr/u32-strrchr: New file.
44627         * lib/unistr/u8-strrchr.c: New file.
44628         * lib/unistr/u16-strrchr.c: New file.
44629         * lib/unistr/u32-strrchr.c: New file.
44630
44631         * modules/unistr/u8-strspn: New file.
44632         * modules/unistr/u16-strspn: New file.
44633         * modules/unistr/u32-strspn: New file.
44634         * lib/unistr/u8-strspn.c: New file.
44635         * lib/unistr/u16-strspn.c: New file.
44636         * lib/unistr/u32-strspn.c: New file.
44637         * lib/unistr/u-strspn.h: New file.
44638
44639         * modules/unistr/u8-strstr: New file.
44640         * modules/unistr/u16-strstr: New file.
44641         * modules/unistr/u32-strstr: New file.
44642         * lib/unistr/u8-strstr.c: New file.
44643         * lib/unistr/u16-strstr.c: New file.
44644         * lib/unistr/u32-strstr.c: New file.
44645         * lib/unistr/u-strstr.h: New file.
44646
44647         * modules/unistr/u8-strtok: New file.
44648         * modules/unistr/u16-strtok: New file.
44649         * modules/unistr/u32-strtok: New file.
44650         * lib/unistr/u8-strtok.c: New file.
44651         * lib/unistr/u16-strtok.c: New file.
44652         * lib/unistr/u32-strtok.c: New file.
44653         * lib/unistr/u-strtok.h: New file.
44654
44655         * modules/unistr/u8-uctomb: New file.
44656         * modules/unistr/u16-uctomb: New file.
44657         * modules/unistr/u32-uctomb: New file.
44658         * lib/unistr/u8-uctomb.c: New file.
44659         * lib/unistr/u16-uctomb.c: New file.
44660         * lib/unistr/u32-uctomb.c: New file.
44661
44662         * MODULES.html.sh (Unicode string functions): Add the new modules.
44663
44664 2007-01-08  Bruno Haible  <bruno@clisp.org>
44665
44666         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
44667         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
44668         subdirectories.
44669
44670 2007-01-08  Karl Berry  <karl@gnu.org>
44671
44672         * doc/error.texi: mention that main() fns must set program_name
44673         when progname is used.
44674
44675 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
44676
44677         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
44678         WCTYPE_H is empty, for the benefit of builds from non-distclean
44679         directories.  Problem reported by Eric Blake in
44680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
44681
44682 2007-01-08  Bruno Haible  <bruno@clisp.org>
44683
44684         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
44685         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
44686         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
44687         PROVIDE_CANONICALIZE_FILENAME_MODE.
44688         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
44689
44690 2007-01-08  Bruno Haible  <bruno@clisp.org>
44691
44692         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
44693         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
44694         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
44695         * lib/fts.c: Likewise.
44696         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
44697
44698 2006-12-25  Bruno Haible  <bruno@clisp.org>
44699
44700         * modules/utf8-ucs4-safe: New file.
44701         * lib/utf8-ucs4-safe.h: New file.
44702         * lib/unistr/utf8-ucs4-safe.c: New file.
44703
44704         * modules/utf16-ucs4-safe: New file.
44705         * lib/utf16-ucs4-safe.h: New file.
44706         * lib/unistr/utf16-ucs4-safe.c: New file.
44707
44708         * MODULES.html.sh (Unicode string functions): Add the new modules.
44709
44710 2007-01-08  Bruno Haible  <bruno@clisp.org>
44711
44712         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
44713         (Depends-on): Add unitypes.
44714         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44715         (u8_mbtouc_aux): Move out to separate file.
44716         (u8_mbtouc): Use ucs4_t, uint8_t types.
44717         * lib/unistr/utf8-ucs4.c: New file.
44718
44719         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
44720         (Depends-on): Add unitypes.
44721         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44722         (u16_mbtouc_aux): Move out to separate file.
44723         (u16_mbtouc): Use ucs4_t, uint16_t types.
44724         * lib/unistr/utf16-ucs4.c: New file.
44725
44726         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
44727         (Depends-on): Add unitypes.
44728         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
44729         (u8_uctomb_aux): Move out to separate file.
44730         (u8_uctomb): Use ucs4_t, uint8_t types.
44731         * lib/unistr/ucs4-utf8.c: New file.
44732
44733         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
44734         (Depends-on): Add unitypes.
44735         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
44736         (u16_uctomb_aux): Move out to separate file.
44737         (u16_uctomb): Use ucs4_t, uint16_t types.
44738         * lib/unistr/ucs4-utf16.c: New file.
44739
44740 2006-12-25  Bruno Haible  <bruno@clisp.org>
44741
44742         * modules/unitypes: New file.
44743         * lib/unitypes.h: New file.
44744         * MODULES.html.sh (func_all_modules): New section "Unicode string
44745         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
44746         this section. Add unitypes.
44747
44748 2007-01-08  Bruno Haible  <bruno@clisp.org>
44749
44750         Avoid variable names that conflict with those from libtool.
44751         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
44752         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
44753         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
44754         library_names_spec to acl_library_names_spec, hardcode_* to
44755         acl_hardcode_*.
44756         Reported by Ralf Wildenhues.
44757
44758 2007-01-08  Bruno Haible  <bruno@clisp.org>
44759
44760         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
44761         definition.
44762         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
44763         definition.
44764         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
44765         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
44766         definition.
44767         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
44768         definition.
44769         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
44770         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
44771         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
44772         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
44773         definition.
44774         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
44775         definition.
44776         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
44777         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
44778         GC_USE_<algorithm>.
44779         * lib/gc-libgcrypt.c: Likewise.
44780         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
44781         * modules/gc-arctwo (configure.ac): Likewise.
44782         * modules/gc-des (configure.ac): Likewise.
44783         * modules/gc-hmac-md5 (configure.ac): Likewise.
44784         * modules/gc-hmac-sha1 (configure.ac): Likewise.
44785         * modules/gc-md2 (configure.ac): Likewise.
44786         * modules/gc-md4 (configure.ac): Likewise.
44787         * modules/gc-md5 (configure.ac): Likewise.
44788         * modules/gc-random (configure.ac): Likewise.
44789         * modules/gc-rijndael (configure.ac): Likewise.
44790         * modules/gc-sha1 (configure.ac): Likewise.
44791
44792 2007-01-08  Bruno Haible  <bruno@clisp.org>
44793
44794         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
44795         macro definition.
44796         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
44797         definition.
44798         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
44799         definition.
44800         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
44801         * modules/fcntl-safer (configure.ac): Likewise.
44802         * modules/fopen-safer (configure.ac): Likewise.
44803         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
44804         GNULIB_FWRITEERROR macro definition.
44805
44806 2007-01-08  Bruno Haible  <bruno@clisp.org>
44807
44808         * m4/gnulib-common.m4: New file.
44809         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
44810         (func_get_filelist): Add m4/gnulib-common.m4.
44811
44812 2007-01-08  Bruno Haible  <bruno@clisp.org>
44813
44814         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
44815         command.
44816
44817 2007-01-08  Jim Meyering  <jim@meyering.net>
44818
44819         Use a more robust test for a "can't happen" condition.
44820         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
44821         narrowed the st_size value.  Presuming the "can't happen" condition
44822         is true, that narrowing could conceivably convert an invalid st_size
44823         value into a valid one.  Instead, use a change based on Matthew
44824         Woehlke's original patch.
44825
44826         Slight readability improvement: use an assert-like macro
44827         in place of literal "abort ()" uses.
44828         * lib/fts.c (fts_assert): Define.
44829         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
44830         Use this macro instead of a bare 'abort'.
44831
44832 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44833
44834         Don't worry about using IRIX 5.3's wctype.h broken definitions;
44835         simply work around them.
44836         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
44837         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
44838         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
44839         declaring.
44840         Don't bother to define as macros, since the standard doesn't require it.
44841         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
44842         longer worry about IRIX 5.3.
44843         (HAVE_WCTYPE_CTMP_BUG): Remove.
44844
44845 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44846
44847         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
44848         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
44849         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44850         Problems reported by Georg Schwarz for IRIX 5.3.
44851
44852         * gnulib-tool (autoconf_minversion): Take the maximum version number
44853         found, not the minimum.  Problem reported by James Youngman.
44854
44855 2007-01-03  Karl Berry  <karl@gnu.org>
44856
44857         * doc/error.texi: new file, explaining interaction with progname.
44858         * doc/gnulib.texi: include it.  Update copyright.
44859
44860 2007-01-03  Simon Josefsson  <simon@josefsson.org>
44861
44862         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
44863         AC_CANONICAL_HOST, to improve autobuild outputs.
44864
44865 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
44866             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44867
44868         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
44869         sockets, server sockets, and other file descriptors.  Count errors
44870         to compute the return value.  Reorder the code a bit to be easier
44871         to follow.  Don't set event bits that were not requested (except
44872         POLLERR and POLLHUP).
44873
44874 2007-01-01  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
44877
44878 2007-01-03  Jim Meyering  <jim@meyering.net>
44879
44880         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
44881
44882 2007-01-02  Bruno Haible  <bruno@clisp.org>
44883
44884         * modules/settime (Include): Require timespec.h.
44885         * modules/nanosleep (Include): Likewise.
44886
44887 2007-01-01  Bruno Haible  <bruno@clisp.org>
44888
44889         * gnulib-tool (func_emit_copyright_notice): Bump year.
44890         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
44891
44892 2007-01-01  Bruno Haible  <bruno@clisp.org>
44893
44894         Improve support for OpenBSD.
44895         * build-aux/config.rpath (libname_spec): Export.
44896         (library_names_spec): New variable. Export.
44897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
44898         library_names_spec from the config.rpath output. Locate shared library
44899         through the name pattern in library_names_spec.
44900
44901 2007-01-01  Eric Blake  <ebb9@byu.net>
44902
44903         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
44904
44905 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
44908         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
44909         assume the C locale, and avoid an "eval" that could cause trouble.
44910         Problem with SORT reported by Bob Proulx.
44911
44912         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
44913         Define.  Trivial patch from Henning Nielsen Lund, originally
44914         sent to bug-grep@gnu.org today.
44915
44916 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44917
44918         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44919         struct stat.  Problem reported by Henning Nielsen Lund.
44920         * lib/acl.c: Include acl.h first, to check interface.  Don't
44921         bother to include sys/types.h and sys/stat.h again.
44922
44923 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44924
44925         Import the following change from libc; problem reported by
44926         Sven Verdoolaege.
44927
44928         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44929
44930         [BZ #1373]
44931         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44932
44933 2006-12-28  Jim Meyering  <jim@meyering.net>
44934
44935         * build-aux/announce-gen: Do not assume that the package
44936         builds any of tar.gz, tar.bz2, and .xdelta files.
44937         Suggestion from Simon Josefsson.
44938
44939 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44940
44941         * modules/announce-gen: New file.
44942
44943 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44944
44945         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44946         handles its gotchas now.
44947         * lib/mbswidth.c: Likewise.
44948         * lib/wcwidth.h: Likewise.
44949         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44950         and iswcntrl; the wctype module does this stuff now.
44951         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44953         * modules/mbchar (Depends-on): Add wctype.
44954         * modules/mbswidth (Depends-on): Likewise.
44955         * modules/wcwidth (Depends-on): Likewise.
44956
44957 2006-12-27  Eric Blake  <ebb9@byu.net>
44958
44959         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
44960         module uses more than what <wctype.h> is required to provide.
44961
44962 2006-12-26  Eric Blake  <ebb9@byu.net>
44963
44964         * gnulib-tool (sed_extract_prog): Avoid space-tab.
44965
44966 2006-12-26  Eric Blake  <ebb9@byu.net>
44967
44968         * modules/absolute-header: New module.
44969         * modules/fcntl (Depends-on): Depend on it.
44970         * modules/inttypes (Depends-on): Likewise.
44971         * modules/stdint (Depends-on): Likewise.
44972         * modules/sys_stat (Depends-on): Likewise.
44973         * modules/wctype (Depends-on): Likewise.
44974         * MODULES.html.sh (Support for building libraries and
44975         executables): Document it.
44976
44977 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44978
44979         * gnulib-tool (SED): Remove, undoing previous change.
44980         The problem was that it broke coreutils on Solaris, because
44981         "sed --posix" leaked into a makefile.
44982         (sed): New alias, if 'alias' and GNU sed.
44983
44984 2006-12-24  Jim Meyering  <jim@meyering.net>
44985
44986         Work around an fchownat bug in glibc-2.4:
44987         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
44988         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
44989         in spite of the -P option.
44990         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
44991         New macros.
44992         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
44993         * modules/openat (Files): Add lib/fchownat.c.
44994         * lib/openat.c (fchownat): Don't define here.  Move to...
44995         * lib/fchownat.c: ...this new file.
44996
44997 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44998
44999         Fix bug reported by Bruno Haible in
45000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45001         where quotearg.c didn't compile on Mac OS X 10.2 because it
45002         lacks <wchar.h> and wint_t.
45003         * lib/wctype_.h (__wctype_wint_t): New type.
45004         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45005         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45006         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45007         Arg is now of type __wctype_wint_t, not wint_t.
45008         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45009         substitute HAVE_WINT_T.
45010         * modules/wctype (Files): Add m4/wint_t.m4.
45011         (wctype.h): Substitute HAVE_WINT_T.
45012
45013 2006-12-23  Bruno Haible  <bruno@clisp.org>
45014
45015         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45016
45017 2006-12-23  Bruno Haible  <bruno@clisp.org>
45018
45019         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45020         S_ISLNK.
45021         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45022         mingw.
45023
45024 2006-12-22  Bruno Haible  <bruno@clisp.org>
45025
45026         * lib/copy-file.c: Include acl.h.
45027         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45028         Close the file descriptors only after being done with copy_acl.
45029         * modules/copy-file (Depends-on): Add acl.
45030
45031 2006-12-22  Bruno Haible  <bruno@clisp.org>
45032
45033         * gnulib-tool (SED): New variable.
45034         Use $SED instead of sed everywhere.
45035
45036 2006-12-22  Bruno Haible  <bruno@clisp.org>
45037
45038         * modules/no-c++: New file.
45039         * m4/no-c++.m4: New file.
45040         * MODULES.html.sh (Support for building libraries and executables):
45041         Add no-c++.
45042
45043 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45044
45045         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45046         Include <limits.h>, and use its INT_MAX to rewrite the
45047         j loop so that it does not overflow 'int'.  Problem reported by
45048         Ralf Wildenhues in
45049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45050         Play it safe by shifting left by 1 rather than multiplying by 2,
45051         as GCC is less likely to optimize this away when the value
45052         is signed (when it assumes overflow leads to undefined behavior).
45053         Also, don't assume time_t uses two's complement.
45054
45055 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45056
45057         * MODULES.html.sh: New module wctype.
45058         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45059         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45060         <wctype.h>, since the new wctype module should fix this.
45061         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45062         the wctype module should arrange for it.
45063         * lib/regex_internal.h: Likewise.
45064         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45065         since the wctype module should handle this now.
45066         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45067         * modules/fnmatch (Depends-on): Add wctype.
45068         * modules/quotearg (Depends-on): Likewise.
45069         * modules/regex (Depends-on): Likewise.
45070
45071 2006-12-19  Bruno Haible  <bruno@clisp.org>
45072
45073         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45074         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45075
45076 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45077
45078         * modules/savewd (Depends-on): Fix dependency on fcntl.
45079
45080 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45081
45082         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45083         conforms to C99, rather than relying on the user's environment
45084         setting of STDINT_H.
45085
45086 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45087         and Eric Blake  <ebb9@byu.net>
45088
45089         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45090         This is more consistent with the other defines here.
45091         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45092         Port to z/OS.  Problem reported by Paul Gilmartin.
45093         Change local vars to use gl_ prefix rather than ac_.
45094         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45095         with other defines.
45096         * modules/double-slash-root: New module.
45097         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45098         (Depends-on): Add double-slash-root.
45099         * MODULES.html.sh (File system functions): Mention new module.
45100
45101 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45104         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45105         This is for the benefit of gzip, which doesn't do i18n.
45106
45107 2006-12-12  Jim Meyering  <jim@meyering.net>
45108
45109         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45110         Reported by Andreas Schwab <schwab@suse.de>.
45111
45112 2006-12-12  Bruno Haible  <bruno@clisp.org>
45113
45114         Merge these changes.
45115         2006-09-05  Bruno Haible  <bruno@clisp.org>
45116         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45117         iconv_alloc succeeded.
45118         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45119         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45120         test for " && dest " at the end - dest is always != NULL there. Call
45121         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45122         with 2xNULL arguments, also to flush the state storage. Handle the
45123         IRIX iconv behaviour. Realloc the final result, to throw away unused
45124         memory.
45125
45126 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45129         and fchmodat unconditionally, since glibc 2.4 has them.
45130         Problem reported by Arkadiusz Miskiewicz.
45131
45132 2006-12-10  Bruno Haible  <bruno@clisp.org>
45133
45134         * gnulib-tool (func_import): Show the include files only for those
45135         modules that are copied and specified.
45136         Reported by Karl Berry.
45137
45138 2006-12-08  Jim Meyering  <jim@meyering.net>
45139
45140         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45141         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45142
45143         * build-aux/announce-gen: Add two new options, both optional:
45144         --bootstrap-tools=TOOL_LIST
45145               a comma-separated list of tools, e.g.,
45146               autoconf,automake,bison,gnulib
45147         --gnulib-snapshot-date=DATE
45148               if gnulib is in the bootstrap tool list,
45149               then report this as the snapshot date.
45150               If not specified, use the current date/time.
45151               If you specify a date here, be sure it's UTC.
45152
45153 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45154
45155         * tests/test-argp-2.sh: Fix test to match actual output.
45156         (func_compare): Fix sed script to be portable.
45157
45158 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45159
45160         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45161         workaround for this case.  It is not autoconfigured now; offhand
45162         it's hard to see how to autoconfigure it.
45163
45164 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45165
45166         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45167         a directory that is about to be chowned.  Such a directory's
45168         initial file permissions should permit the owner only and this
45169         should not be changed until after the chown, since the group and
45170         other bits would be incorrect if they granted permission before
45171         the chown.
45172
45173         Fix porting problem for iswctype reported by Georg Schwarz in:
45174         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45175         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45176         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45177         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45178         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45179
45180 2006-12-03  Jim Meyering  <jim@meyering.net>
45181
45182         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45183         p->fts_statp may not yet be defined.
45184         (fts_read): Instead, set it in the caller, once p->fts_statp is
45185         sure to be defined, and corresponds to a top-level directory.
45186         This bug made du -x fail.  Here's the coreutils test case:
45187         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45188         Reported by Mike Frysinger.
45189
45190 2006-12-01  Jim Meyering  <jim@meyering.net>
45191
45192         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45193         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45194         Reported by Simon Josefsson.
45195
45196 2006-11-30  Jim Meyering  <jim@meyering.net>
45197
45198         * m4/warning.m4: Use the all-permissive copyright notice
45199         recommended by RMS (rather than LGPL).
45200         * m4/vararrays.m4: Likewise.
45201         * m4/flexmember.m4: Likewise.
45202
45203 2006-11-29  Bruno Haible  <bruno@clisp.org>
45204
45205         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45206         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45207         using +=.
45208         Reported by Simon Josefsson <simon@josefsson.org>.
45209
45210 2006-11-28  James Youngman <jay@gnu.org>
45211
45212         * README: Advise users that they might find the bug-gnulib@gnu.org
45213         and autotools-announce@gnu.org mailing lists useful.
45214
45215 2006-11-28  Bruno Haible  <bruno@clisp.org>
45216
45217         * m4/ptrdiff_max.m4: Remove file.
45218
45219 2006-11-21  Bruno Haible  <bruno@clisp.org>
45220
45221         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45222         _AC_COMPUTE_INT.
45223         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45224         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45225         _AC_COMPUTE_INT.
45226         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45227         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45228         _AC_COMPUTE_INT.
45229         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45230
45231 2006-11-28  Jim Meyering  <jim@meyering.net>
45232
45233         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45234         warning from "gcc -Wshadow" about shadowing the builtin.
45235
45236 2006-11-27  Bruno Haible  <bruno@clisp.org>
45237
45238         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45239         _AC_COMPUTE_INT.
45240         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45241
45242 2006-11-27  Bruno Haible  <bruno@clisp.org>
45243             Paul Eggert  <eggert@cs.ucla.edu>
45244
45245         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45246
45247 2006-11-26  Bruno Haible  <bruno@clisp.org>
45248
45249         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45250         noinst_LTLIBRARIES.
45251
45252 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45253             Bruno Haible  <bruno@clisp.org>
45254
45255         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45256         if compiling with "gcc -ansi".
45257
45258 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45259
45260         Fix some incompatibilities with gcc -ansi -pedantic.
45261         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45262         if compiling pedantically with GCC, unless it's C99 or later.
45263         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45264         it mishandles gcc -ansi -pedantic as well.
45265         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45266         if gcc -pedantic.
45267         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45268         initializers for struct if -pedantic, unless it's C99 or later.
45269
45270 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45271
45272         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45273         Don't close an fd more than once. Identical atimes indicate
45274         success, not failure.
45275
45276 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45277
45278         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45279
45280 2006-11-23  Jim Meyering  <jim@meyering.net>
45281
45282         * build-aux/announce-gen: New file.  From coreutils.
45283
45284 2006-11-22  Jim Meyering  <jim@meyering.net>
45285
45286         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45287         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45288         (fts_read): Use a temporary to narrow the overused st_size member
45289         before using it in a switch statement.  Reported by Matthew Woehlke.
45290
45291         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45292         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45293
45294 2006-11-20  Bruno Haible  <bruno@clisp.org>
45295
45296         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45297         changequote instead of pairs of brackets.
45298         Reported by Andreas Schwab <schwab@suse.de>.
45299
45300 2006-11-21  Jim Meyering  <jim@meyering.net>
45301
45302         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45303         so as to remain compatible with older compilers.
45304         Patch from Michael Deutschmann.
45305
45306 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45307
45308         * MODULES.html.sh (File system functions): Add openat.
45309
45310         * lib/openat.h (rpl_fstatat): New macro, if
45311         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45312         (fstatat): Define to rpl_fstatat under the same conditions,
45313         unless COMPILING_FSTATAT.
45314         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45315         seems to have the bug.
45316         * lib/fstatat.c: New file.
45317         * modules/openat (Files): Add it.
45318
45319 2006-11-20  Bruno Haible  <bruno@clisp.org>
45320
45321         * Makefile: New file.
45322
45323 2006-11-20  Jim Meyering  <jim@meyering.net>
45324
45325         The beginnings of syntax-related checks for gnulib.
45326         * lib/Makefile: New file.
45327         * lib/t-idcache: New script.  Ensure that the two halves of
45328         idcache.c stay in sync.
45329
45330         * lib/idcache.c: Adjust comments in user- and group- portions to
45331         be more accurate, and to be consistent with one another.
45332
45333 2006-11-20  Jim Meyering  <jim@meyering.net>
45334
45335         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45336         continue using the flexible array member (thus, this module performs
45337         half as many malloc calls), with the addition that...
45338         (getgroup, getuser): Consistently record a non-match via an empty
45339         "name" string, and map an empty string match to a NULL return value.
45340         * modules/idcache (Depends-on): Re-add flexmember.
45341
45342         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45343         (getuidbyname, getgroup, getgidbyname): Likewise.
45344
45345         Use cleaner syntax: NULL rather than 0.
45346         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45347
45348 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45349
45350         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45351         It mishandled the case where the group was missing.
45352         Problem reported by Greg Schafer.
45353         * modules/idcache: Likewise.
45354
45355 2006-11-18  Jim Meyering  <jim@meyering.net>
45356
45357         * check-module (%exempt_header): Add exception for some
45358         conditionally-included headers.
45359
45360         * modules/i-ring (Depends-on): Add verify.
45361         (License): Change to LGPL.
45362
45363 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45364
45365         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
45366         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
45367         and inttostr.h.  Use snprintf rather than uinttostr, so that
45368         LGPLed code doesn't depend on GPLed.
45369
45370 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45371
45372         * modules/inline (License): Change from GPL to LGPL.
45373
45374 2006-11-17  Jim Meyering  <jim@meyering.net>
45375
45376         * modules/d-type (License): Switch to LGPL.
45377
45378 2006-11-15  Bruno Haible  <bruno@clisp.org>
45379
45380         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
45381
45382 2006-11-15  Eric Blake  <ebb9@byu.net>
45383
45384         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
45385         the module dependency.
45386
45387 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45388             Bruno Haible  <bruno@clisp.org>
45389
45390         * gnulib-tool (func_create_testdir): Add license consistency check.
45391
45392 2006-11-15  Eric Blake  <ebb9@byu.net>
45393
45394         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
45395         random "(cached)" in configure output.
45396
45397 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45398
45399         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
45400         test for conforming inttypes.h is both announced and cached.
45401
45402         * MODULES.html.sh (seen_modules, seen_files): New variables.
45403         (func_module): Rewrite to use a few less gnulib-tool and sed
45404         invocations.  Avoid a couple of quadratic algorithms for ...
45405         (missed_modules, missed_files): ... these, with ...
45406         (func_append, func_tmpdir): ... these new functions, from
45407         gnulib-tool.  Analogously, install traps for cleanup.
45408
45409         * tests/test-gc.c (main): Remove unused variables.
45410         * tests/test-read-file.c: Include stdlib.h, for 'free'.
45411
45412 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
45413
45414         * modules/inttostr (License): Change to LGPL.
45415
45416 2006-11-14  Eric Blake  <ebb9@byu.net>
45417
45418         * modules/tempname (License): Change to LGPL.
45419
45420 2006-11-14  Eric Blake  <ebb9@byu.net>
45421
45422         * doc/functions.texi (Function Portability): *printf functions on
45423         Cygwin now understand all POSIX size specifiers.
45424
45425 2006-11-14  Bruno Haible  <bruno@clisp.org>
45426
45427         * modules/c-ctype (License): Change to LGPL.
45428
45429 2006-11-12  Bruno Haible  <bruno@clisp.org>
45430
45431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45432         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
45433         for GNOME libraries, for which the include files are installed in
45434         subdirectories of $prefix/include.
45435
45436 2006-11-12  Bruno Haible  <bruno@clisp.org>
45437
45438         * m4/lib-link.m4: Require at least autoconf-2.54.
45439         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
45440         name to underscores for the --with option.
45441
45442 2006-11-13  Bruno Haible  <bruno@clisp.org>
45443
45444         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
45445         the tests directory.
45446         Reported by Ralf Wildenhues.
45447
45448 2006-11-13  Bruno Haible  <bruno@clisp.org>
45449
45450         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
45451         (func_emit_initmacro_end): Undo the override here.
45452         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
45453         Works around the famous automake error in coreutils.
45454
45455 2006-11-13  Eric Blake  <ebb9@byu.net>
45456
45457         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
45458         element, not its node.
45459
45460 2006-11-12  Bruno Haible  <bruno@clisp.org>
45461
45462         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
45463         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
45464
45465 2006-11-12  Bruno Haible  <bruno@clisp.org>
45466
45467         * gnulib-tool: New option --local-symlink.
45468         (func_usage): Document it.
45469         (lsymbolic): New variable.
45470         (func_import, func_create_testdir): If --symlink was not specified,
45471         test whether --local-symlink was specified and the file comes from
45472         the local_gnulib_dir.
45473
45474 2006-11-12  Bruno Haible  <bruno@clisp.org>
45475
45476         * gnulib-tool (func_ln): New function.
45477         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
45478
45479 2006-11-12  Bruno Haible  <bruno@clisp.org>
45480
45481         Finish support for source files in subdirectories.
45482         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
45483         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
45484         AUTOMAKE_OPTIONS.
45485         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
45486
45487 2006-11-12  Bruno Haible  <bruno@clisp.org>
45488
45489         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45490         EXTRA_lib_SOURCES augmentation.
45491         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
45492
45493 2006-11-12  Jim Meyering  <jim@meyering.net>
45494
45495         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
45496         file descriptors.  This also averts a failure on systems with
45497         native openat support when a traversed directory lacks "x" access.
45498         * lib/fts_.h: Include "i-ring.h"
45499         (struct FTS) [fts_fd_ring]: New member.
45500         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
45501         (FCHDIR): Add parentheses.
45502         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
45503         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
45504         When descending, rather than simply closing the previous
45505         fts_cwd_fd value, push that file descriptor onto the ring.
45506         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
45507         (fts_open): Initialize the new fd_ring member.
45508         (fts_close): Clear the ring.
45509         (fts_safe_changedir): When possible, use our new fd_ring to skip
45510         the diropen and fstat and dev/ino comparison that would normally
45511         accompany a virtual `chdir ("..")'.
45512
45513         * modules/fts (Depends-on): Add i-ring.
45514         * modules/i-ring: New module.
45515         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
45516         * m4/i-ring.m4: New file.
45517
45518 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45519
45520         * gnulib-tool (func_create_testdir): Fix replacement of
45521         `build-aux' in configure.ac.  Run autotools in gltests
45522         subdirectory.
45523         (func_create_testdir, func_create_megatestdir, test): There is
45524         no need for '--force' in most autotool invocations in a new
45525         tree.  Actually fail the whole test if any of the tools, or the
45526         configure or make stages fail.
45527
45528         Sync from Automake.
45529         * build-aux/gnupload: Revert last change.  Add pointer to upload
45530         instructions of the GNU Maintenance Instructions.
45531         Suggestion by Karl Berry.
45532
45533 2006-11-10  Jim Meyering  <jim@meyering.net>
45534
45535         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
45536
45537 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45538
45539         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
45540         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
45541         (bind_textdomain_codeset) [! ENABLE_NLS]:
45542         Evaluate all the arguments.  That way, callers get compatible behavior
45543         if the arguments have side effects.  Also, it avoids some GCC
45544         diagnostics in some cases; Joel E. Denny reported problems when Bison
45545         was configured with --enable-gcc-warnigs.
45546
45547 2006-11-10  Jim Meyering  <jim@meyering.net>
45548
45549         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
45550         relevant options in CFLAGS (like -O, -fno-inline) are taken into
45551         account.
45552
45553 2006-11-10  Jim Meyering  <jim@meyering.net>
45554
45555         * modules/inline: New file/module.
45556         * modules/xalloc (Files): Remove m4/inline.m4.
45557         (Depends-on): Add inline, instead.
45558         * modules/oset: Likewise.
45559         * modules/list: Likewise.
45560
45561 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45562
45563         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
45564         Problem reported by Matthew Woehlke.
45565
45566 2006-11-09  Bruno Haible  <bruno@clisp.org>
45567
45568         * lib/tempname.c (gen_tempname): Remove variant that invokes
45569         __gen_tempname.
45570         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
45571         __gen_tempname.
45572
45573 2006-11-08  Bruno Haible  <bruno@clisp.org>
45574
45575         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
45576         to 'yes' instead of 'cross-compiling'.
45577
45578 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
45579
45580         * lib/quotearg.h (quotearg_free): New decl.
45581         * lib/quotearg.c (quotearg_free): New function.
45582         (slot0, nslots, slotvec0, slotvec):
45583         Now file-scope so that quotearg_free can get at them.
45584
45585 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45586
45587         Sync from Automake.
45588         * build-aux/gnupload: Add missing 'gnu' to example URL.
45589         Report by Karl Berry.
45590
45591 2006-11-08  Bruno Haible  <bruno@clisp.org>
45592
45593         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
45594         Suggested by Paul Eggert.
45595
45596 2006-11-08  Jim Meyering  <jim@meyering.net>
45597
45598         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
45599         It's already included if !_LIBC.
45600         (fts_safe_changedir): Add a comment.
45601
45602 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45603
45604         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
45605         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
45606         Matthew Woehlke.
45607
45608         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
45609         definitions up, to avoid colliding with change below.
45610         (static_inline) [HAVE_INLINE]: New macro.
45611         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
45612         Provide extern decls when !HAVE_INLINE.  Do not define unless
45613         static_inline is defined, either by us or by xmalloc.c.  Use
45614         static_inline rather than static inline.
45615         (XCALLOC): Optimize sizeof(T) = 1 case.
45616         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
45617
45618 2006-11-07  Bruno Haible  <bruno@clisp.org>
45619
45620         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
45621         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
45622         AC_C_INLINE.
45623         * modules/xalloc (Files): Add m4/inline.m4.
45624
45625 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45626
45627         * README: Fix typo.
45628         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
45629         (Miscellanous Notes): ...from this.
45630
45631 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45632
45633         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
45634         Mention that offsetof should be used instead of sizeof.
45635         From Bruno Haible.
45636
45637 2006-11-07  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
45640
45641 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45642
45643         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45644         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
45645         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45646         (gl_tree_add_before, gl_tree_add_after):
45647         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
45648         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
45649         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45650         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
45651         (gl_linked_add_after, gl_linked_add_at): Likewise.
45652         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
45653         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45654         (gl_tree_add_before, gl_tree_add_after): Likewise.
45655         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
45656         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
45657         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
45658
45659 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45660
45661         * lib/gl_oset.h: Use C comment style, not C++ comment style.
45662
45663 2006-11-06  Bruno Haible  <bruno@clisp.org>
45664
45665         * m4/inline.m4: New file.
45666         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
45667         * modules/list (Files): Add m4/inline.m4.
45668         * modules/oset (Files): Likewise.
45669
45670 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45671
45672         * lib/idcache.c: Include <stddef.h>, for offsetof.
45673         (struct userid.name): Change from char * to a flexible array member.
45674         All uses changed.
45675         * modules/idcache (Depends-on): Add flexmember.
45676
45677         * MODULES.html.sh (Core language properties): New module flexmember.
45678         * modules/flexmember, m4/flexmember.m4: New files.
45679
45680         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
45681         inline functions that are identical with the old xnmalloc_inline,
45682         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
45683         that we can avoid some unnecessary integer multiplications and
45684         divisions in the common case where the element size is known at
45685         compile time.
45686         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
45687         needed.
45688         (xnboundedmalloc): Remove.
45689         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
45690         arguments, for consistency with rest of this header.
45691         (xcharalloc): Rewrite using XNMALLOC.
45692         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
45693         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
45694         versions have been moved to lib/xalloc.h and renamed to be the
45695         non-*_inline versions.
45696         (xmalloc, xrealloc): Implement without reference to the xnmalloc
45697         and xnrealloc functions, since those functions are now inline and
45698         now call us.
45699         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
45700         renaming described above.
45701         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
45702         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
45703         captures the dependency in AC_C_INLINE.
45704
45705         New module canonicalize-lgpl, proposed by Charles Wilson in
45706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
45707         with a few small changes afterwards.
45708         * MODULES.html.sh (File system functions): New module
45709         canonicalize-lgpl.
45710         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
45711         and canonicalize_file_name.
45712         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
45713         * modules/canonicalize-lgpl: New files.
45714
45715 2006-11-05  Bruno Haible  <bruno@clisp.org>
45716
45717         * gnulib-tool (func_import, func_create_testdir): Create directories
45718         also for files in subdirectories of lib/.
45719
45720 2006-11-05  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
45723         ANSI C compliant.
45724
45725 2006-11-03  Bruno Haible  <bruno@clisp.org>
45726
45727         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45728         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
45729         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
45730         (xnboundedmalloc): New inline function.
45731         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
45732         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
45733         xmalloc.
45734         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
45735         xmalloc.
45736         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
45737         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
45738         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
45739         xmalloc.
45740         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45741         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
45742         xmalloc.
45743         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
45744         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45745         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
45746         xmalloc.
45747         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45748         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
45749         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45750         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
45751         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
45752         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
45753         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
45754
45755 2006-11-03  Bruno Haible  <bruno@clisp.org>
45756
45757         * lib/c-ctype.h [C++]: Define functions without name mangling.
45758         * lib/fwriteerror.h [C++]: Likewise.
45759         * lib/gcd.h [C++]: Likewise.
45760         * lib/linebreak.h [C++]: Likewise.
45761
45762 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45763
45764         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
45765         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
45766         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
45767         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45768         Check for functions and headers just once.
45769         Check for declaration of canonicalize_file_name.
45770         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
45771
45772 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45773
45774         * gnulib-tool (func_import): Fix typo in actioncmd.
45775
45776 2006-11-02  Bruno Haible  <bruno@clisp.org>
45777
45778         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
45779         newline sequence in the Makefile.am snippet as a space, like "make"
45780         does.
45781         Reported by Roger Persson <perrog@gmail.com>.
45782
45783 2006-11-01  Bruno Haible  <bruno@clisp.org>
45784
45785         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
45786         already declared in <string.h>.
45787         * lib/strcase.h (strncasecmp): Don't declare it if yes.
45788
45789 2006-11-01  Bruno Haible  <bruno@clisp.org>
45790
45791         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
45792         * lib/strcase.h: Include <string.h>.
45793         (strcasecmp): Define to rpl_strcasecmp here.
45794
45795 2006-11-01  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
45798
45799 2006-11-01  Eric Blake  <ebb9@byu.net>
45800
45801         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
45802
45803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
45804
45805 2006-10-29  Bruno Haible  <bruno@clisp.org>
45806
45807         Make it compile in C++ mode.
45808         * lib/full-write.c (full_rw): Add a cast.
45809
45810 2006-11-01  Bruno Haible  <bruno@clisp.org>
45811
45812         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
45813         be POSIX compliant.
45814         Reported by Roger Persson <perrog@gmail.com>.
45815
45816 2006-11-01  Eric Blake  <ebb9@byu.net>
45817
45818         * lib/getopt_.h: Fix comments.
45819
45820 2006-10-31  Eric Blake  <ebb9@byu.net>
45821
45822         * modules/tmpdir (Depends-on): Add sys_stat.
45823         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
45824         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
45825         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
45826         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
45827         tempname.
45828
45829 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45830
45831         Avoid some C++ diagnostics reported by Bruno Haible.
45832         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
45833         xmalloc.
45834         (quotearg_alloc): Use xcharalloc rather than xmalloc.
45835         (struct slotvec): Move to top level.
45836         (quotearg_n_options): Rewrite to avoid xmalloc.
45837         * lib/xalloc.h (xcharalloc): New function.
45838         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
45839         [defined __cplusplus]: Add function template that provides result
45840         type propagation.  This part of the change is from Bruno Haible.
45841
45842 2006-10-29  Bruno Haible  <bruno@clisp.org>
45843
45844         Make it compile in C++ mode.
45845         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
45846         * lib/strnlen1.c (strnlen1): Cast memchr result.
45847         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
45848         * lib/clean-temp.c (string_equals, string_hash): Add casts.
45849         (create_temp_dir): Rename local variable 'template'.
45850         (compile_csharp_using_sscli): Add cast.
45851         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
45852         * lib/findprog.c (find_in_path): Likewise.
45853         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
45854         * lib/wait-process.c (register_slave_subprocess): Likewise.
45855
45856 2006-10-22  Bruno Haible  <bruno@clisp.org>
45857
45858         * modules/tsearch: New file.
45859         * lib/tsearch.h: New file.
45860         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
45861         * m4/tsearch.m4: New file.
45862         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
45863
45864 2006-10-29  Eric Blake  <ebb9@byu.net>
45865
45866         * lib/arcfour.c: Assume config.h.
45867         * lib/arctwo.c: Likewise.
45868         * lib/base64.c: Likewise.
45869         * lib/check-version.c: Likewise.
45870         * lib/crc.c: Likewise.
45871         * lib/des.c: Likewise.
45872         * lib/gc-gnulib.c: Likewise.
45873         * lib/gc-libgcrypt.c: Likewise.
45874         * lib/gc-pbkdf2-sha1.c: Likewise.
45875         * lib/getaddrinfo.c: Likewise.
45876         * lib/getdelim.c: Likewise.
45877         * lib/getline.c: Likewise.
45878         * lib/hmac-md5.c: Likewise.
45879         * lib/hmac-sha1.c: Likewise.
45880         * lib/iconvme.c: Likewise.
45881         * lib/md2.c: Likewise.
45882         * lib/md4.c: Likewise.
45883         * lib/memxor.c: Likewise.
45884         * lib/read-file.c: Likewise.
45885         * lib/readline.c: Likewise.
45886         * lib/rijndael-alg-fst.c: Likewise.
45887         * lib/rijndael-api-fst.c: Likewise.
45888         * lib/xgetdomainname.c: Likewise.
45889
45890 2006-10-28  Eric Blake  <ebb9@byu.net>
45891
45892         * lib/xstrndup.c: Assume config.h.
45893
45894 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45895
45896         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
45897         stat-macros.h is now for our own macros, whereas stat_h is for
45898         macros in the <sys/stat.h> name space.
45899         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
45900         (STAT_MACROS_H): Remove.
45901         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
45902         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
45903         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
45904         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
45905         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
45906         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
45907         Move these macros to ...
45908         * lib/stat_.h: here.  Don't include stat-macros.h.
45909         * lib/canonicalize.c: Don't include stat-macros.h.
45910         * lib/chown.c: Likewise.
45911         * lib/euidaccess.c: Likewise.
45912         * lib/file-type.c: Likewise.
45913         * lib/filemode.c: Likewise.
45914         * lib/glob.c: Likewise.
45915         * lib/isapipe.c: Likewise.
45916         * lib/lchown.c: Likewise.
45917         * lib/lstat.c: Likewise.
45918         * lib/mkdir-p.c: Likewise.
45919         * lib/rmdir.c: Likewise.
45920         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45921         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45922         unless mkdir isn't declared, to speed up 'configure'.
45923         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45924         would define all the S_* symbols.
45925         * modules/canonicalize (Depends-on):
45926         Depend on sys_stat, not stat-macros.
45927         * modules/chown: Likewise.
45928         * modules/euidaccess: Likewise.
45929         * modules/filemode: Likewise.
45930         * modules/file-type: Likewise.
45931         * modules/glob: Likewise.
45932         * modules/isapipe: Likewise.
45933         * modules/lchown: Likewise.
45934         * modules/lstat: Likewise.
45935         * modules/mkancesdirs: Likewise.
45936         * modules/rmdir: Likewise.
45937         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45938         * modules/modechange: Likewise.
45939         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45940         (configure.ac): Remove gl_STAT_MACROS.
45941         * modules/sys_stat (Depends-on): Remove stat-macros.
45942
45943 2006-10-27  Bruno Haible  <bruno@clisp.org>
45944
45945         * m4/signed.m4: Remove file.
45946         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45947         invocation.
45948         * modules/vasnprintf (Files): Remove m4/signed.m4.
45949
45950 2006-10-27  Bruno Haible  <bruno@clisp.org>
45951
45952         Update to GNU gettext 0.16.
45953         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
45954         m4/inttypes-h.m4, m4/signed.m4.
45955         * m4/gettext.m4: Update to GNU gettext 0.16.
45956         * m4/intl.m4: New file, from GNU gettext.
45957         * m4/intldir.m4: New file, from GNU gettext.
45958         * config/srclist.txt: Update
45959
45960 2006-10-27  Eric Blake  <ebb9@byu.net>
45961
45962         * MODULES.html.sh: Document tempname.
45963         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
45964         dependencies.
45965         (Files): Move lib/tempname.c...
45966         * modules/tempname: ...to this new module.
45967         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
45968         (gl_PREREQ_TEMPNAME): Move...
45969         * m4/tempname.m4: ...to this new file.
45970         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
45971         * modules/sys_stat (Depends-on): Add stat-macros.
45972         * lib/stat_.h (includes): Pick up stat macros.
45973         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
45974         if stat macros are broken.
45975         * lib/tempname.c (includes): No need to include "stat-macros.h".
45976         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
45977         (direxists, __path_search) [!_LIBC]: Don't compile these in
45978         gnulib; the tmpdir module covers that.
45979         * lib/tempname.h: New file.
45980
45981 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45982
45983         * COPYING: Explain how gnulib-tool converts licence headers.
45984         Almost all wording by Eric Blake.
45985
45986 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
45987
45988         * lib/mbchar.h (is_basic_table): Make read-only.
45989         * lib/mbchar.c (is_basic_table): Likewise.
45990         Reported by John Darrington.
45991
45992 2006-10-25  Bruno Haible  <bruno@clisp.org>
45993
45994         * lib/progname.h (set_program_name): Undefine before defining.
45995
45996 2006-10-25  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
45999         false for non-gcc C++ compilers.
46000         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46001
46002 2006-10-24  Bruno Haible  <bruno@clisp.org>
46003
46004         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46005         iconv implementations like Irix iconv.
46006
46007 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * modules/vararrays: New file.
46010         * m4/vararrays.m4: New file, taken from diffutils.
46011         * MODULES.html.sh: New module vararrays.
46012
46013 2006-10-24  Karl Berry  <karl@gnu.org>
46014
46015         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46016         Don't call GNU Unix.
46017
46018 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46019
46020         * users.txt: Add Libtool.
46021
46022         Sync from Libtool:
46023
46024         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46025
46026         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46027         to gnulib's policy of including config.h unconditionally.
46028
46029 2006-10-24  Bruno Haible  <bruno@clisp.org>
46030
46031         * modules/wcwidth (Files): Add m4/wint_t.m4.
46032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46033         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46034
46035 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46036
46037         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46038         to pacify GCC with some -W flags enabled.  Problem reported by
46039         Bruno Haible.
46040
46041 2006-10-24  Jim Meyering  <jim@meyering.net>
46042
46043         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46044         Reported by Karl Berry.
46045
46046 2006-10-23  Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46049
46050 2006-10-24  Bruno Haible  <bruno@clisp.org>
46051
46052         * lib/gl_list.h: Use C comment style, not C++ comment style.
46053
46054 2006-10-23  Eric Blake  <ebb9@byu.net>
46055
46056         * lib/getaddrinfo.c (includes): Add missing include.
46057
46058 2006-10-23  Bruno Haible  <bruno@clisp.org>
46059             Paul Eggert  <eggert@cs.ucla.edu>
46060
46061         Ability to rename obstack_free.
46062         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46063         obstack_free.
46064         (obstack_free): Invoke the __obstack_free macro.
46065         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46066
46067 2006-10-23  Bruno Haible  <bruno@clisp.org>
46068             Paul Eggert  <eggert@cs.ucla.edu>
46069
46070         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46071         __argc, __argv from the declaration. (They are defined as macros on
46072         mingw.)
46073
46074 2006-10-22  Bruno Haible  <bruno@clisp.org>
46075
46076         * doc/gnulib-intro.texi: New file.
46077         * doc/gnulib.texi: Include it.
46078
46079 2006-10-21  Bruno Haible  <bruno@clisp.org>
46080
46081         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46082         "Introduction", "Miscellanous Notes", "Particular Modules".
46083
46084 2006-10-21  Bruno Haible  <bruno@clisp.org>
46085
46086         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46087         Change mostlyclean-local rule to avoid sh syntax error from bash
46088         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46089
46090 2006-10-23  Jim Meyering  <jim@meyering.net>
46091
46092         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46093         in place of snprintf.
46094
46095         * modules/inttostr (Files): Add lib/uinttostr.c.
46096         * lib/uinttostr.c (inttostr): New file/function.
46097         * lib/inttostr.h (uinttostr): Declare.
46098         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46099         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46100         Add uinttostr.
46101         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46102
46103 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46104
46105         * lib/canonicalize.c (ELOOP): Define if not already defined.
46106         Problem reported by Bruno Haible in
46107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46108
46109 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46110
46111         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46112         Problem reported by Perry Smith and Ville Laurikari.
46113
46114         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46115         uses.
46116
46117 2006-10-19  Bruno Haible  <bruno@clisp.org>
46118
46119         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46120         for mingw.
46121
46122 2006-10-19  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46125         Needed for mingw.
46126
46127 2006-10-19  Bruno Haible  <bruno@clisp.org>
46128
46129         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46130
46131 2006-10-19  Bruno Haible  <bruno@clisp.org>
46132
46133         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46134         it.
46135
46136 2006-10-19  Bruno Haible  <bruno@clisp.org>
46137
46138         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46139         invocation.
46140
46141 2006-10-19  Bruno Haible  <bruno@clisp.org>
46142
46143         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46144         mountlist by default.
46145
46146 2006-10-16  Bruno Haible  <bruno@clisp.org>
46147
46148         * lib/c-strstr.c: Include c-strstr.h.
46149
46150 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46151
46152         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46153         in a slash.
46154
46155 2006-10-18  Bruno Haible  <bruno@clisp.org>
46156
46157         * lib/lock.h [C++]: Wrap definitions in extern "C".
46158
46159 2006-10-18  Bruno Haible  <bruno@clisp.org>
46160
46161         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46162         gl_LIBOBJS list.
46163
46164 2006-10-18  Bruno Haible  <bruno@clisp.org>
46165
46166         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46167
46168 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46169
46170         * lib/xstrtol.h: Include gettext.h.
46171         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46172         Problem reported by Eric Blake.
46173         * modules/xstrtol (Depends-on): Add gettext-h.
46174
46175 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46176
46177         * lib/strftime.c (advance): New macro.
46178         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46179         incomplete type, so you can't add 0 to it.  Problem and patch
46180         reported by Eelco Dolstra for dietlibc.
46181
46182 2006-10-18  Jim Meyering  <jim@meyering.net>
46183
46184         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46185         type for a local, and rename it: s/up/user_proc/.
46186
46187 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46188
46189         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46190         READ_UTMP_USER_PROCESS.
46191         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46192
46193 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46194
46195         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46196         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46197
46198 2006-10-17  Eric Blake  <ebb9@byu.net>
46199
46200         * lib/sigprocmask.c (sigprocmask): Fix typo.
46201
46202         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46203
46204         * modules/clean-temp (Makefile.am): Don't add to make output...
46205         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46206         config.h.
46207
46208 2006-10-17  Bruno Haible  <bruno@clisp.org>
46209
46210         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46211         differently if DEFAULT_TEXT_DOMAIN is set.
46212
46213 2006-10-16  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/clean-temp.c: Include fwriteerror.h.
46216
46217 2006-10-16  Bruno Haible  <bruno@clisp.org>
46218
46219         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46220
46221 2006-10-16  Bruno Haible  <bruno@clisp.org>
46222
46223         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46224         * lib/sigprocmask.h: Include <sys/types.h>.
46225         (sigset_t): Use the system's definition if present.
46226
46227 2006-10-17  Eric Blake  <ebb9@byu.net>
46228
46229         * lib/xvasprintf.c (includes): Assume config.h.
46230         * lib/xasprintf.c (includes): Likewise.
46231
46232 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46233
46234         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46235         at least as wide as intmax_t.
46236
46237 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46238
46239         (Imported from Automake.)
46240         * build-aux/gnupload: Update to version 1.1 of directive file.
46241
46242 2006-10-16  Eric Blake  <ebb9@byu.net>
46243
46244         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46245         match Automake 1.10a.
46246
46247 2006-10-14  Bruno Haible  <bruno@clisp.org>
46248
46249         * modules/sigprocmask: New file.
46250         * lib/sigprocmask.h: New file.
46251         * lib/sigprocmask.c: New file.
46252         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46253         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46254         request sigprocmask.o.
46255         (gl_PREREQ_SIGPROCMASK): New macro.
46256         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46257         (Depends-on): Add sigprocmask.
46258         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46259         gt_SIGNALBLOCKING. Test for 'raise' only once.
46260         * lib/fatal-signal.c: Include sigprocmask.h.
46261         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46262         unblock_fatal_signals): Define always.
46263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46264         sigprocmask.
46265
46266 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46267
46268         Sync from Automake.
46269         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46270         which incorrectly sets the mode of an existing destination
46271         directory.  In some cases the unpatched install-sh could do the
46272         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46273         system.  We hope this is rare in practice, but it's clearly worth
46274         fixing.  Problem reported by Alex Unleashed in
46275         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46276         Also, don't bother to check for -m bugs unless we're using -m;
46277         suggested by Stepan Kasal.
46278
46279 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46280
46281         Sync from Automake.
46282         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46283         `-c' flag, so they appear at the same position as in %FASTDEP%
46284         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46285         which ignores unknown options only after the first non-option.
46286         Bug report against M4 by Nelson H. F. Beebe.
46287
46288 2006-10-13  Jim Meyering  <jim@meyering.net>
46289
46290         Fix a bug in yesterday's change.
46291         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46292         p->fts_statp->st_dev would be used uninitialized.
46293         Ensures that we always call fts_stat on the very first entry.
46294         Miklos Szeredi reported that find -xdev stopped working.
46295
46296 2006-10-12  Bruno Haible  <bruno@clisp.org>
46297
46298         * gnulib-tool (func_get_automake_snippet): Append an automatically
46299         computed EXTRA_DIST augmentation.
46300         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46301         * modules/alloca-opt (Makefile.am): Likewise.
46302         * modules/allocsa (Makefile.am): Likewise.
46303         * modules/arcfour (Makefile.am): Likewise.
46304         * modules/arctwo (Makefile.am): Likewise.
46305         * modules/argmatch (Makefile.am): Likewise.
46306         * modules/argz (Makefile.am): Likewise.
46307         * modules/atexit (Makefile.am): Likewise.
46308         * modules/backupfile (Makefile.am): Likewise.
46309         * modules/byteswap (Makefile.am): Likewise.
46310         * modules/c-strtod (Makefile.am): Likewise.
46311         * modules/c-strtold (Makefile.am): Likewise.
46312         * modules/calloc (Makefile.am): Likewise.
46313         * modules/canon-host (Makefile.am): Likewise.
46314         * modules/canonicalize (Makefile.am): Likewise.
46315         * modules/chdir-long (Makefile.am): Likewise.
46316         * modules/chdir-safer (Makefile.am): Likewise.
46317         * modules/check-version (Makefile.am): Likewise.
46318         * modules/chown (Makefile.am): Likewise.
46319         * modules/cloexec (Makefile.am): Likewise.
46320         * modules/close-stream (Makefile.am): Likewise.
46321         * modules/closeout (Makefile.am): Likewise.
46322         * modules/crc (Makefile.am): Likewise.
46323         * modules/csharpexec (Makefile.am): Likewise.
46324         * modules/cycle-check (Makefile.am): Likewise.
46325         * modules/des (Makefile.am): Likewise.
46326         * modules/dev-ino (Makefile.am): Likewise.
46327         * modules/dirfd (Makefile.am): Likewise.
46328         * modules/dirname (Makefile.am): Likewise.
46329         * modules/dup2 (Makefile.am): Likewise.
46330         * modules/eealloc (Makefile.am): Likewise.
46331         * modules/error (Makefile.am): Likewise.
46332         * modules/euidaccess (Makefile.am): Likewise.
46333         * modules/exclude (Makefile.am): Likewise.
46334         * modules/exitfail (Makefile.am): Likewise.
46335         * modules/fcntl-safer (Makefile.am): Likewise.
46336         * modules/fcntl (Makefile.am): Likewise.
46337         * modules/file-type (Makefile.am): Likewise.
46338         * modules/fileblocks (Makefile.am): Likewise.
46339         * modules/filemode (Makefile.am): Likewise.
46340         * modules/filenamecat (Makefile.am): Likewise.
46341         * modules/fnmatch (Makefile.am): Likewise.
46342         * modules/fopen-safer (Makefile.am): Likewise.
46343         * modules/fpending (Makefile.am): Likewise.
46344         * modules/fprintftime (Makefile.am): Likewise.
46345         * modules/free (Makefile.am): Likewise.
46346         * modules/fsusage (Makefile.am): Likewise.
46347         * modules/ftruncate (Makefile.am): Likewise.
46348         * modules/fts (Makefile.am): Likewise.
46349         * modules/gc-arcfour (Makefile.am): Likewise.
46350         * modules/gc-des (Makefile.am): Likewise.
46351         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46352         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46353         * modules/gc-md4 (Makefile.am): Likewise.
46354         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46355         * modules/gc-sha1 (Makefile.am): Likewise.
46356         * modules/gc (Makefile.am): Likewise.
46357         * modules/getaddrinfo (Makefile.am): Likewise.
46358         * modules/getcwd (Makefile.am): Likewise.
46359         * modules/getdelim (Makefile.am): Likewise.
46360         * modules/getdomainname (Makefile.am): Likewise.
46361         * modules/getgroups (Makefile.am): Likewise.
46362         * modules/gethostname (Makefile.am): Likewise.
46363         * modules/gethrxtime (Makefile.am): Likewise.
46364         * modules/getline (Makefile.am): Likewise.
46365         * modules/getloadavg (Makefile.am): Likewise.
46366         * modules/getlogin_r (Makefile.am): Likewise.
46367         * modules/getndelim2 (Makefile.am): Likewise.
46368         * modules/getopt (Makefile.am): Likewise.
46369         * modules/getpagesize (Makefile.am): Likewise.
46370         * modules/getpass-gnu (Makefile.am): Likewise.
46371         * modules/getpass (Makefile.am): Likewise.
46372         * modules/getsubopt (Makefile.am): Likewise.
46373         * modules/gettime (Makefile.am): Likewise.
46374         * modules/gettimeofday (Makefile.am): Likewise.
46375         * modules/getugroups (Makefile.am): Likewise.
46376         * modules/getusershell (Makefile.am): Likewise.
46377         * modules/glob (Makefile.am): Likewise.
46378         * modules/group-member (Makefile.am): Likewise.
46379         * modules/hard-locale (Makefile.am): Likewise.
46380         * modules/hash (Makefile.am): Likewise.
46381         * modules/hmac-md5 (Makefile.am): Likewise.
46382         * modules/hmac-sha1 (Makefile.am): Likewise.
46383         * modules/human (Makefile.am): Likewise.
46384         * modules/idcache (Makefile.am): Likewise.
46385         * modules/imaxabs (Makefile.am): Likewise.
46386         * modules/imaxdiv (Makefile.am): Likewise.
46387         * modules/inet_ntop (Makefile.am): Likewise.
46388         * modules/inet_pton (Makefile.am): Likewise.
46389         * modules/intprops (Makefile.am): Likewise.
46390         * modules/inttostr (Makefile.am): Likewise.
46391         * modules/inttypes (Makefile.am): Likewise.
46392         * modules/isapipe (Makefile.am): Likewise.
46393         * modules/javaversion (Makefile.am): Likewise.
46394         * modules/lchmod (Makefile.am): Likewise.
46395         * modules/lchown (Makefile.am): Likewise.
46396         * modules/localcharset (Makefile.am): Likewise.
46397         * modules/long-options (Makefile.am): Likewise.
46398         * modules/lstat (Makefile.am): Likewise.
46399         * modules/malloc (Makefile.am): Likewise.
46400         * modules/mathl (Makefile.am): Likewise.
46401         * modules/mbchar (Makefile.am): Likewise.
46402         * modules/md2 (Makefile.am): Likewise.
46403         * modules/md4 (Makefile.am): Likewise.
46404         * modules/md5 (Makefile.am): Likewise.
46405         * modules/memcasecmp (Makefile.am): Likewise.
46406         * modules/memchr (Makefile.am): Likewise.
46407         * modules/memcmp (Makefile.am): Likewise.
46408         * modules/memcoll (Makefile.am): Likewise.
46409         * modules/memcpy (Makefile.am): Likewise.
46410         * modules/memmem (Makefile.am): Likewise.
46411         * modules/memmove (Makefile.am): Likewise.
46412         * modules/mempcpy (Makefile.am): Likewise.
46413         * modules/memrchr (Makefile.am): Likewise.
46414         * modules/memset (Makefile.am): Likewise.
46415         * modules/memxor (Makefile.am): Likewise.
46416         * modules/mkancesdirs (Makefile.am): Likewise.
46417         * modules/mkdir-p (Makefile.am): Likewise.
46418         * modules/mkdir (Makefile.am): Likewise.
46419         * modules/mkdtemp (Makefile.am): Likewise.
46420         * modules/mkstemp (Makefile.am): Likewise.
46421         * modules/mktime (Makefile.am): Likewise.
46422         * modules/modechange (Makefile.am): Likewise.
46423         * modules/mountlist (Makefile.am): Likewise.
46424         * modules/nanosleep (Makefile.am): Likewise.
46425         * modules/obstack (Makefile.am): Likewise.
46426         * modules/openat (Makefile.am): Likewise.
46427         * modules/pagealign_alloc (Makefile.am): Likewise.
46428         * modules/pathmax (Makefile.am): Likewise.
46429         * modules/physmem (Makefile.am): Likewise.
46430         * modules/poll (Makefile.am): Likewise.
46431         * modules/posixtm (Makefile.am): Likewise.
46432         * modules/posixver (Makefile.am): Likewise.
46433         * modules/putenv (Makefile.am): Likewise.
46434         * modules/quote (Makefile.am): Likewise.
46435         * modules/quotearg (Makefile.am): Likewise.
46436         * modules/raise (Makefile.am): Likewise.
46437         * modules/read-file (Makefile.am): Likewise.
46438         * modules/readline (Makefile.am): Likewise.
46439         * modules/readlink (Makefile.am): Likewise.
46440         * modules/readtokens (Makefile.am): Likewise.
46441         * modules/readutmp (Makefile.am): Likewise.
46442         * modules/realloc (Makefile.am): Likewise.
46443         * modules/regex (Makefile.am): Likewise.
46444         * modules/rename-dest-slash (Makefile.am): Likewise.
46445         * modules/rename (Makefile.am): Likewise.
46446         * modules/rijndael (Makefile.am): Likewise.
46447         * modules/rmdir (Makefile.am): Likewise.
46448         * modules/rpmatch (Makefile.am): Likewise.
46449         * modules/safe-read (Makefile.am): Likewise.
46450         * modules/safe-write (Makefile.am): Likewise.
46451         * modules/same-inode (Makefile.am): Likewise.
46452         * modules/same (Makefile.am): Likewise.
46453         * modules/save-cwd (Makefile.am): Likewise.
46454         * modules/savedir (Makefile.am): Likewise.
46455         * modules/setenv (Makefile.am): Likewise.
46456         * modules/settime (Makefile.am): Likewise.
46457         * modules/sha1 (Makefile.am): Likewise.
46458         * modules/sig2str (Makefile.am): Likewise.
46459         * modules/snprintf (Makefile.am): Likewise.
46460         * modules/stat-macros (Makefile.am): Likewise.
46461         * modules/stat-time (Makefile.am): Likewise.
46462         * modules/stdbool (Makefile.am): Likewise.
46463         * modules/stdint (Makefile.am): Likewise.
46464         * modules/stdlib-safer (Makefile.am): Likewise.
46465         * modules/stpcpy (Makefile.am): Likewise.
46466         * modules/stpncpy (Makefile.am): Likewise.
46467         * modules/strcase (Makefile.am): Likewise.
46468         * modules/strcasestr (Makefile.am): Likewise.
46469         * modules/strchrnul (Makefile.am): Likewise.
46470         * modules/strcspn (Makefile.am): Likewise.
46471         * modules/strdup (Makefile.am): Likewise.
46472         * modules/strerror (Makefile.am): Likewise.
46473         * modules/strftime (Makefile.am): Likewise.
46474         * modules/strndup (Makefile.am): Likewise.
46475         * modules/strnlen (Makefile.am): Likewise.
46476         * modules/strpbrk (Makefile.am): Likewise.
46477         * modules/strsep (Makefile.am): Likewise.
46478         * modules/strstr (Makefile.am): Likewise.
46479         * modules/strtod (Makefile.am): Likewise.
46480         * modules/strtoimax (Makefile.am): Likewise.
46481         * modules/strtok_r (Makefile.am): Likewise.
46482         * modules/strtol (Makefile.am): Likewise.
46483         * modules/strtoll (Makefile.am): Likewise.
46484         * modules/strtoul (Makefile.am): Likewise.
46485         * modules/strtoull (Makefile.am): Likewise.
46486         * modules/strtoumax (Makefile.am): Likewise.
46487         * modules/strverscmp (Makefile.am): Likewise.
46488         * modules/sys_socket (Makefile.am): Likewise.
46489         * modules/sys_stat (Makefile.am): Likewise.
46490         * modules/sysexits (Makefile.am): Likewise.
46491         * modules/time_r (Makefile.am): Likewise.
46492         * modules/timegm (Makefile.am): Likewise.
46493         * modules/timespec (Makefile.am): Likewise.
46494         * modules/tmpfile-safer (Makefile.am): Likewise.
46495         * modules/trim (Makefile.am): Likewise.
46496         * modules/unistd-safer (Makefile.am): Likewise.
46497         * modules/unlinkdir (Makefile.am): Likewise.
46498         * modules/unlocked-io (Makefile.am): Likewise.
46499         * modules/userspec (Makefile.am): Likewise.
46500         * modules/utime (Makefile.am): Likewise.
46501         * modules/utimecmp (Makefile.am): Likewise.
46502         * modules/utimens (Makefile.am): Likewise.
46503         * modules/vasnprintf (Makefile.am): Likewise.
46504         * modules/vasprintf (Makefile.am): Likewise.
46505         * modules/vsnprintf (Makefile.am): Likewise.
46506         * modules/xalloc (Makefile.am): Likewise.
46507         * modules/xgetcwd (Makefile.am): Likewise.
46508         * modules/xnanosleep (Makefile.am): Likewise.
46509         * modules/xreadlink (Makefile.am): Likewise.
46510         * modules/xstrtod (Makefile.am): Likewise.
46511         * modules/xstrtol (Makefile.am): Likewise.
46512         * modules/xstrtold (Makefile.am): Likewise.
46513         * modules/yesno (Makefile.am): Likewise.
46514         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
46515
46516 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46517
46518         * modules/error (Makefile.am): Distribute files through
46519         EXTRA_DIST, not lib_SOURCES.
46520
46521 2006-10-12  Eric Blake  <ebb9@byu.net>
46522
46523         * modules/error (Makefile.am): Distribute files in /lib.
46524         * modules/obstack (Makefile.am): Likewise.
46525
46526 2006-10-12  Bruno Haible  <bruno@clisp.org>
46527
46528         * modules/acl (Makefile.am): Distribute all files in lib/ through
46529         EXTRA_DIST.
46530         * modules/arcfour (Makefile.am): Likewise.
46531         * modules/arctwo (Makefile.am): Likewise.
46532         * modules/argmatch (Makefile.am): Likewise.
46533         * modules/argz (Makefile.am): Likewise.
46534         * modules/atexit (Makefile.am): Likewise.
46535         * modules/backupfile (Makefile.am): Likewise.
46536         * modules/c-strtod (Makefile.am): Likewise.
46537         * modules/c-strtold (Makefile.am): Likewise.
46538         * modules/calloc (Makefile.am): Likewise.
46539         * modules/canon-host (Makefile.am): Likewise.
46540         * modules/canonicalize (Makefile.am): Likewise.
46541         * modules/chdir-long (Makefile.am): Likewise.
46542         * modules/chdir-safer (Makefile.am): Likewise.
46543         * modules/check-version (Makefile.am): Likewise.
46544         * modules/chown (Makefile.am): Likewise.
46545         * modules/cloexec (Makefile.am): Likewise.
46546         * modules/close-stream (Makefile.am): Likewise.
46547         * modules/closeout (Makefile.am): Likewise.
46548         * modules/crc (Makefile.am): Likewise.
46549         * modules/cycle-check (Makefile.am): Likewise.
46550         * modules/des (Makefile.am): Likewise.
46551         * modules/dirfd (Makefile.am): Likewise.
46552         * modules/dirname (Makefile.am): Likewise.
46553         * modules/dup2 (Makefile.am): Likewise.
46554         * modules/euidaccess (Makefile.am): Likewise.
46555         * modules/exclude (Makefile.am): Likewise.
46556         * modules/exitfail (Makefile.am): Likewise.
46557         * modules/fcntl-safer (Makefile.am): Likewise.
46558         * modules/file-type (Makefile.am): Likewise.
46559         * modules/fileblocks (Makefile.am): Likewise.
46560         * modules/filemode (Makefile.am): Likewise.
46561         * modules/filenamecat (Makefile.am): Likewise.
46562         * modules/fnmatch (Makefile.am): Likewise.
46563         * modules/fopen-safer (Makefile.am): Likewise.
46564         * modules/fpending (Makefile.am): Likewise.
46565         * modules/fprintftime (Makefile.am): Likewise.
46566         * modules/free (Makefile.am): Likewise.
46567         * modules/fsusage (Makefile.am): Likewise.
46568         * modules/ftruncate (Makefile.am): Likewise.
46569         * modules/fts (Makefile.am): Likewise.
46570         * modules/gc (Makefile.am): Likewise.
46571         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46572         * modules/getaddrinfo (Makefile.am): Likewise.
46573         * modules/getcwd (Makefile.am): Likewise.
46574         * modules/getdelim (Makefile.am): Likewise.
46575         * modules/getdomainname (Makefile.am): Likewise.
46576         * modules/getgroups (Makefile.am): Likewise.
46577         * modules/gethostname (Makefile.am): Likewise.
46578         * modules/gethrxtime (Makefile.am): Likewise.
46579         * modules/getline (Makefile.am): Likewise.
46580         * modules/getloadavg (Makefile.am): Likewise.
46581         * modules/getlogin_r (Makefile.am): Likewise.
46582         * modules/getopt (Makefile.am): Likewise.
46583         * modules/getpass (Makefile.am): Likewise.
46584         * modules/getpass-gnu (Makefile.am): Likewise.
46585         * modules/getsubopt (Makefile.am): Likewise.
46586         * modules/gettime (Makefile.am): Likewise.
46587         * modules/gettimeofday (Makefile.am): Likewise.
46588         * modules/getugroups (Makefile.am): Likewise.
46589         * modules/getusershell (Makefile.am): Likewise.
46590         * modules/glob (Makefile.am): Likewise.
46591         * modules/group-member (Makefile.am): Likewise.
46592         * modules/hard-locale (Makefile.am): Likewise.
46593         * modules/hash (Makefile.am): Likewise.
46594         * modules/hmac-md5 (Makefile.am): Likewise.
46595         * modules/hmac-sha1 (Makefile.am): Likewise.
46596         * modules/human (Makefile.am): Likewise.
46597         * modules/idcache (Makefile.am): Likewise.
46598         * modules/imaxabs (Makefile.am): Likewise.
46599         * modules/imaxdiv (Makefile.am): Likewise.
46600         * modules/inet_ntop (Makefile.am): Likewise.
46601         * modules/inet_pton (Makefile.am): Likewise.
46602         * modules/inttostr (Makefile.am): Likewise.
46603         * modules/isapipe (Makefile.am): Likewise.
46604         * modules/lchown (Makefile.am): Likewise.
46605         * modules/long-options (Makefile.am): Likewise.
46606         * modules/lstat (Makefile.am): Likewise.
46607         * modules/malloc (Makefile.am): Likewise.
46608         * modules/mathl (Makefile.am): Likewise.
46609         * modules/mbchar (Makefile.am): Likewise.
46610         * modules/md2 (Makefile.am): Likewise.
46611         * modules/md4 (Makefile.am): Likewise.
46612         * modules/md5 (Makefile.am): Likewise.
46613         * modules/memcasecmp (Makefile.am): Likewise.
46614         * modules/memchr (Makefile.am): Likewise.
46615         * modules/memcmp (Makefile.am): Likewise.
46616         * modules/memcoll (Makefile.am): Likewise.
46617         * modules/memcpy (Makefile.am): Likewise.
46618         * modules/memmem (Makefile.am): Likewise.
46619         * modules/memmove (Makefile.am): Likewise.
46620         * modules/mempcpy (Makefile.am): Likewise.
46621         * modules/memrchr (Makefile.am): Likewise.
46622         * modules/memset (Makefile.am): Likewise.
46623         * modules/memxor (Makefile.am): Likewise.
46624         * modules/mkancesdirs (Makefile.am): Likewise.
46625         * modules/mkdir (Makefile.am): Likewise.
46626         * modules/mkdir-p (Makefile.am): Likewise.
46627         * modules/mkdtemp (Makefile.am): Likewise.
46628         * modules/mkstemp (Makefile.am): Likewise.
46629         * modules/mktime (Makefile.am): Likewise.
46630         * modules/modechange (Makefile.am): Likewise.
46631         * modules/mountlist (Makefile.am): Likewise.
46632         * modules/nanosleep (Makefile.am): Likewise.
46633         * modules/openat (Makefile.am): Likewise.
46634         * modules/pagealign_alloc (Makefile.am): Likewise.
46635         * modules/physmem (Makefile.am): Likewise.
46636         * modules/poll (Makefile.am): Likewise.
46637         * modules/posixtm (Makefile.am): Likewise.
46638         * modules/posixver (Makefile.am): Likewise.
46639         * modules/putenv (Makefile.am): Likewise.
46640         * modules/quote (Makefile.am): Likewise.
46641         * modules/quotearg (Makefile.am): Likewise.
46642         * modules/raise (Makefile.am): Likewise.
46643         * modules/read-file (Makefile.am): Likewise.
46644         * modules/readline (Makefile.am): Likewise.
46645         * modules/readlink (Makefile.am): Likewise.
46646         * modules/readtokens (Makefile.am): Likewise.
46647         * modules/readutmp (Makefile.am): Likewise.
46648         * modules/realloc (Makefile.am): Likewise.
46649         * modules/regex (Makefile.am): Likewise.
46650         * modules/rename (Makefile.am): Likewise.
46651         * modules/rename-dest-slash (Makefile.am): Likewise.
46652         * modules/rijndael (Makefile.am): Likewise.
46653         * modules/rmdir (Makefile.am): Likewise.
46654         * modules/rpmatch (Makefile.am): Likewise.
46655         * modules/safe-read (Makefile.am): Likewise.
46656         * modules/safe-write (Makefile.am): Likewise.
46657         * modules/same (Makefile.am): Likewise.
46658         * modules/save-cwd (Makefile.am): Likewise.
46659         * modules/savedir (Makefile.am): Likewise.
46660         * modules/setenv (Makefile.am): Likewise.
46661         * modules/settime (Makefile.am): Likewise.
46662         * modules/sha1 (Makefile.am): Likewise.
46663         * modules/sig2str (Makefile.am): Likewise.
46664         * modules/snprintf (Makefile.am): Likewise.
46665         * modules/stdlib-safer (Makefile.am): Likewise.
46666         * modules/stpcpy (Makefile.am): Likewise.
46667         * modules/stpncpy (Makefile.am): Likewise.
46668         * modules/strcase (Makefile.am): Likewise.
46669         * modules/strcasestr (Makefile.am): Likewise.
46670         * modules/strchrnul (Makefile.am): Likewise.
46671         * modules/strcspn (Makefile.am): Likewise.
46672         * modules/strdup (Makefile.am): Likewise.
46673         * modules/strerror (Makefile.am): Likewise.
46674         * modules/strftime (Makefile.am): Likewise.
46675         * modules/strndup (Makefile.am): Likewise.
46676         * modules/strnlen (Makefile.am): Likewise.
46677         * modules/strpbrk (Makefile.am): Likewise.
46678         * modules/strsep (Makefile.am): Likewise.
46679         * modules/strstr (Makefile.am): Likewise.
46680         * modules/strtod (Makefile.am): Likewise.
46681         * modules/strtoimax (Makefile.am): Likewise.
46682         * modules/strtok_r (Makefile.am): Likewise.
46683         * modules/strtol (Makefile.am): Likewise.
46684         * modules/strtoll (Makefile.am): Likewise.
46685         * modules/strtoul (Makefile.am): Likewise.
46686         * modules/strtoull (Makefile.am): Likewise.
46687         * modules/strtoumax (Makefile.am): Likewise.
46688         * modules/strverscmp (Makefile.am): Likewise.
46689         * modules/time_r (Makefile.am): Likewise.
46690         * modules/timegm (Makefile.am): Likewise.
46691         * modules/tmpfile-safer (Makefile.am): Likewise.
46692         * modules/unistd-safer (Makefile.am): Likewise.
46693         * modules/unlinkdir (Makefile.am): Likewise.
46694         * modules/userspec (Makefile.am): Likewise.
46695         * modules/utime (Makefile.am): Likewise.
46696         * modules/utimecmp (Makefile.am): Likewise.
46697         * modules/utimens (Makefile.am): Likewise.
46698         * modules/vasnprintf (Makefile.am): Likewise.
46699         * modules/vasprintf (Makefile.am): Likewise.
46700         * modules/vsnprintf (Makefile.am): Likewise.
46701         * modules/xalloc (Makefile.am): Likewise.
46702         * modules/xgetcwd (Makefile.am): Likewise.
46703         * modules/xnanosleep (Makefile.am): Likewise.
46704         * modules/xreadlink (Makefile.am): Likewise.
46705         * modules/xstrtod (Makefile.am): Likewise.
46706         * modules/xstrtol (Makefile.am): Likewise.
46707         * modules/xstrtold (Makefile.am): Likewise.
46708         * modules/yesno (Makefile.am): Likewise.
46709
46710 2006-10-12  Jim Meyering  <jim@meyering.net>
46711
46712         * m4/getloadavg.m4: Revert the change below.
46713
46714         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
46715         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
46716         fail with a symlink, which is what coreutils' ./bootstrap now
46717         creates by default.
46718
46719 2006-10-12  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
46722         mingw.
46723         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
46724         MSVC and mingw explicitly.
46725
46726 2006-10-11  Simon Josefsson  <jas@extundo.com>
46727             Bruno Haible  <bruno@clisp.org>
46728
46729         Add support for multiple gnulib-tool invocations in the scope of a
46730         single configure.ac file.
46731         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
46732         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
46733         with the same contents as the _LIBADD variable.
46734         (func_emit_initmacro_start, func_emit_initmacro_end,
46735         func_emit_initmacro_done): New functions.
46736         (func_import, func_create_testdir): Invoke them. Allow the identifiers
46737         gl_LIBOBJS and gl_LTLIBOBJS.
46738
46739 2006-10-11  Bruno Haible  <bruno@clisp.org>
46740
46741         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
46742         (func_create_testdir): Don't create po/Makefile.am, don't invoke
46743         autoreconf. Instead, invoke autopoint explicitly but move back the
46744         *.m4 files from gnulib.
46745
46746 2006-10-11  Bruno Haible  <bruno@clisp.org>
46747
46748         * gnulib-tool (func_usage): Make module names after --create-testdir
46749         optional.
46750         (func_create_testdir): If no module was specified, use nearly all
46751         modules.
46752
46753 2006-10-12  Jim Meyering  <jim@meyering.net>
46754
46755         Big performance improvement for fts-based tools that use FTS_NOSTAT.
46756         Avoid spurious inode-mismatch problems on non-POSIX file systems.
46757         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
46758         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
46759         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
46760         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
46761         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
46762         (fts_set_stat_required): New function.
46763         (fts_open): Defer the calls to fts_stat, if possible or requested.
46764         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
46765         into fts_stat itself.
46766         (fts_read): Perform any required (deferred) fts_stat call.
46767         (fts_build): Likewise, for the directory we're about to open and read.
46768         In the readdir loop, carefully decide whether each entry will require
46769         an eventual call to fts_stat, using dirent.d_type info if available.
46770         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
46771         a command line argument into this function.  Update all callers.
46772         Map a return value of FTS_DOT to FTS_D for a command line argument.
46773         * modules/fts (Depends-on): Add d-type.  Alphabetize.
46774         Thanks to Miklos Szeredi for his tenacity and for the initial
46775         bug report about "find" failing on a FUSE-based file system.
46776
46777         * lib/fts.c (fts_open): Use consistent indentation.
46778
46779 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46780
46781         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
46782         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
46783         reported by Jim Meyering.  All uses of cache variables renamed
46784         to match Autoconf's.
46785         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
46786         the other one.
46787
46788         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46789         Fix misspelling in diagnostic.
46790
46791 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46792
46793         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
46794         defined.  Problem reported by Matthew Woehlke.
46795
46796         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
46797         Add support for Tandem NonStop R series.
46798         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
46799         Use new macro.
46800
46801         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
46802         (has_trailing_slash): Omit size arg; all callers changed.
46803         Omit 'inline', since it doesn't help performance and we'd
46804         need to configure it.
46805         Don't count //, ///, etc. as having a trailing slash.
46806         As a side effect, this removes a C99ism reported by Matthew Woehlke.
46807         (rpl_rename_dest_slash): On failure, use rename's errno rather
46808         than (in some cases) an incorrect or junk errno.
46809         Simplify code by removing need to compute length; this does
46810         cause it to make two passes instead of one over the file name,
46811         but it's worth it.
46812
46813         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
46814         change, since Autoconf's version may no longer be appropriate now
46815         that we are using CVS Autoconf's version.  Add support for Tandem.
46816
46817 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46818             Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
46821         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
46822         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
46823         gl_AC_TYPE_LONG_LONG.
46824
46825         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
46826         instead of HAVE_LONG_LONG.
46827         * lib/printf-args.c (printf_fetchargs): Likewise.
46828         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46829         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46830         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
46831         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
46832         gl_AC_TYPE_LONG_LONG.
46833
46834 2006-10-11  Bruno Haible  <bruno@clisp.org>
46835
46836         * m4/longlong.m4: Add comments.
46837         * m4/ulonglong.m4: Likewise.
46838
46839 2006-10-10  Bruno Haible  <bruno@clisp.org>
46840
46841         Make it possible to #define stpcpy, strdup to aliases.
46842         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
46843         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
46844
46845 2006-10-10  Bruno Haible  <bruno@clisp.org>
46846
46847         Make it possible to #define gcd to an alias.
46848         * lib/gcd.c: Include config.h.
46849
46850 2006-10-10  Bruno Haible  <bruno@clisp.org>
46851
46852         Make it possible to #define c_isascii to an alias.
46853         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
46854         defined. Undefine the macros before defining them, to avoid gcc
46855         warnings.
46856         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
46857         define NO_C_CTYPE_MACROS early.
46858
46859 2006-10-10  Bruno Haible  <bruno@clisp.org>
46860
46861         Make it possible to #define set_program_name to an alias.
46862         * lib/progname.c: Don't undefine set_program_name; instead, undefine
46863         ENABLE_RELOCATABLE early.
46864
46865 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46866
46867         Port to Tandem NSK OSS, which has 64-bit signed int but at most
46868         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
46869         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
46870         More generally, don't assume that 64-bit signed int is available
46871         if unsigned int is, and vice versa.
46872         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
46873         unsigned symbols, not on their signed counterparts.
46874         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
46875         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
46876         (UINT64_C, UINTMAX_C):
46877         Likewise.
46878         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
46879         unsigned counterparts.
46880         (Have_long_long, Unsigned): New macros.
46881         (Int): Renamed from INT.
46882         (strtoimax): Use the new macros.
46883         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
46884         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
46885         * modules/inttypes (inttypes.h): Substitute
46886         HAVE_UNSIGNED_LONG_LONG_INT.
46887         * modules/stdint (stdint.h): Likewise.
46888         (Files): Add m4/ulonglong.m4.
46889
46890 2006-10-10  Bruno Haible  <bruno@clisp.org>
46891
46892         Fix a gcc -Wshadow warning.
46893         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46894         to 'bucket'.
46895         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
46896         gl_linked_indexof_from_to): Likewise.
46897         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
46898         Likewise.
46899         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
46900         Likewise.
46901         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
46902         Reported by Eric Blake.
46903
46904 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
46905
46906         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
46907         for NetBSD.  Problem reported by Bruno Haible.
46908
46909 2006-10-09  Jim Meyering  <jim@meyering.net>
46910
46911         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
46912         Patch from Bruno Haible.
46913
46914 2006-10-09  Jim Meyering  <jim@meyering.net>
46915
46916         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
46917         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
46918         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46919
46920 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46921
46922         Don't include <config.h> twice; this doesn't work in some cases,
46923         e.g., when config.h has "#define intmax_t long long int" and
46924         we include <config.h>, <inttypes.h>, <config.h> in that order.
46925         Problem reported by Matthew Woehlke in:
46926         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46927         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46928         * lib/fts-cycle.c: Don't include config.h.
46929         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46930         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46931         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46932         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46933         inttypes.h.
46934         * lib/xstrtoumax.c: Likewise.
46935         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46936         __strtol and the like, so that this module is more like its siblings.
46937         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46938         Remove; no longer needed now that we assume gnulib inttypes.h.
46939
46940 2006-10-08  Bruno Haible  <bruno@clisp.org>
46941
46942         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46943         option.
46944
46945 2006-10-07  Jim Meyering  <jim@meyering.net>
46946
46947         * modules/inttypes (inttypes.h): Revert what seems to have been
46948         an inadvertent part of today's change: use "|", not "/" in the
46949         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46950
46951 2006-10-07  Bruno Haible  <bruno@clisp.org>
46952
46953         * modules/sublist: New file.
46954
46955 2006-10-07  Bruno Haible  <bruno@clisp.org>
46956
46957         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
46958         * modules/argz (argz.h): Likewise.
46959         * modules/arpa_inet (arpa/inet.h): Likewise.
46960         * modules/byteswap (byteswap.h): Likewise.
46961         * modules/configmake (configmake.h): Likewise.
46962         * modules/fcntl (fcntl.h): Likewise.
46963         * modules/fnmatch (fnmatch.h): Likewise.
46964         * modules/getopt (getopt.h): Likewise.
46965         * modules/glob (glob.h): Likewise.
46966         * modules/inttypes (inttypes.h): Likewise.
46967         * modules/netinet_in (netinet/in.h): Likewise.
46968         * modules/poll (poll.h): Likewise.
46969         * modules/stdbool (stdbool.h): Likewise.
46970         * modules/stdint (stdint.h): Likewise.
46971         * modules/sys_select (sys/select.h): Likewise.
46972         * modules/sys_socket (sys/socket.h): Likewise.
46973         * modules/sys_stat (sys/stat.h): Likewise.
46974         * modules/sysexits (sysexits.h): Likewise.
46975         * modules/unistd (unistd.h): Likewise.
46976         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46977         Add a "DO NOT EDIT" comment to the generated file.
46978         (func_import): Likewise for gnulib-comp.m4.
46979
46980 2006-10-07  Bruno Haible  <bruno@clisp.org>
46981
46982         * lib/gl_sublist.h: New file.
46983         * lib/gl_sublist.c: New file.
46984
46985 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46986
46987         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
46988         name (relative to the original working directory) and the file
46989         name component (relative to the temporary working directory).  All
46990         callers changed.
46991         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
46992         * lib/mkdir-p.c (make_dir_parents): Likewise.
46993         * lib/mkdir-p.h (make_dir_parents): Likewise.
46994
46995 2006-10-06  Eric Blake  <ebb9@byu.net>
46996
46997         Define several macros for use by the clean-temp module.
46998         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
46999         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47000         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47001
47002         * lib/clean-temp.h (close_stream_temp): New declaration.
47003         * lib/clean-temp.c (includes): Pull in headers according to what
47004         other modules are in use.
47005         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47006
47007 2006-10-06  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47010         instead of fopen, fwriteerror.
47011
47012 2006-10-06  Bruno Haible  <bruno@clisp.org>
47013
47014         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47015         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47016         int.
47017         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47018         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47019         Return an error indicator.
47020         Suggested by Eric Blake.
47021
47022 2006-10-06  Bruno Haible  <bruno@clisp.org>
47023
47024         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47025         Reported by Eric Blake.
47026
47027 2006-10-06  Bruno Haible  <bruno@clisp.org>
47028
47029         * modules/closeout (Description): Mention stderr too.
47030
47031 2006-10-06  Bruno Haible  <bruno@clisp.org>
47032         and Paul Eggert  <eggert@cs.ucla.edu>
47033
47034         * lib/closeout.c (close_stdout): Also close stderr.
47035         * lib/closeout.h: Update comment.
47036
47037 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47038
47039         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47040         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47041         * lib/dirchownmod.c: Include lchown.h.
47042         * lib/lchown.c: Don't include files that lchown.h now includes.
47043         Don't declare chown, since lchown.h now does that.
47044         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47045         (lchown): Define to rpl_chown if lchown is declared but
47046         does not exist.  Declare using a prototype if lchown is not
47047         declared.  Add a copyright notice.
47048         * lib/mkstemp.h: Include <unistd.h>.
47049         * lib/openat.c: Include lchown.h.
47050
47051         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47052         we now test for that separately.
47053         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47054         rather than O_NOFOLLOW, when testing whether it's possible to
47055         avoid a race condition reliably.
47056         * lib/savewd.c (savewd_chdir): Likewise.
47057
47058         Remove macros that are no longer needed now that stdint.h is
47059         reliable.
47060         * lib/fsusage.c (UINTMAX_MAX): Remove.
47061         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47062         * lib/utimecmp.c (SIZE_MAX): Remove.
47063
47064         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47065
47066         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47067         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47068         O_NOATIME works.
47069
47070 2006-10-05  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/gl_list.h (gl_sortedlist_search_from_to,
47073         gl_sortedlist_indexof_from_to): New declarations.
47074         (gl_list_implementation): New fields sortedlist_search_from_to,
47075         sortedlist_indexof_from_to.
47076         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47077         inline functions.
47078         * lib/gl_list.c (gl_sortedlist_search_from_to,
47079         gl_sortedlist_indexof_from_to): New functions.
47080         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47081         function.
47082         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47083         (gl_array_sortedlist_search_from_to): New function.
47084         (gl_array_list_implementation): Update.
47085         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47086         function.
47087         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47088         (gl_carray_sortedlist_search_from_to): New function.
47089         (gl_carray_list_implementation): Update.
47090         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47091         gl_linked_sortedlist_indexof_from_to): New functions.
47092         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47093         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47094         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47095         gl_tree_sortedlist_indexof_from_to): New functions.
47096         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47097         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47098         Update.
47099         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47100         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47101         Update.
47102
47103 2006-10-05  Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47106         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47107         (struct gl_list_implementation): Add fields search_from_to,
47108         indexof_from_to. Remove fields search, indexof.
47109         (gl_list_search): Use the search_from_to method.
47110         (gl_list_search_from, gl_list_search_from_to): New functions.
47111         (gl_list_indexof): Use the indexof_from_to method.
47112         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47113         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47114         (gl_list_search_from, gl_list_search_from_to): New functions.
47115         (gl_list_indexof): Use the indexof_from_to method.
47116         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47117         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47118         gl_array_indexof. Add start_index, end_index arguments.
47119         (gl_array_search_from_to): Renamed from gl_array_search. Add
47120         start_index, end_index arguments.
47121         (gl_array_remove, gl_array_list_implementation): Update.
47122         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47123         gl_carray_indexof. Add start_index, end_index arguments.
47124         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47125         start_index, end_index arguments.
47126         (gl_carray_remove, gl_carray_list_implementation): Update.
47127         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47128         gl_linked_search. Add start_index, end_index arguments.
47129         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47130         start_index, end_index arguments.
47131         (gl_linked_remove): Update.
47132         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47133         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47134         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47135         field to 'size_t'.
47136         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47137         gl_tree_search. Add start_index, end_index arguments.
47138         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47139         start_index, end_index arguments.
47140         (gl_tree_remove): Update.
47141         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47142         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47143         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47144         function.
47145         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47146         gl_tree_search. Add start_index, end_index arguments.
47147         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47148         start_index, end_index arguments.
47149         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47150         Update.
47151         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47152
47153 2006-10-05  Bruno Haible  <bruno@clisp.org>
47154
47155         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47156
47157         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47158         fwriteerror_temp): New declarations.
47159         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47160         (descriptors): New variable.
47161         (cleanup): First, close the descriptors.
47162         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47163         fclose_temp, fwriteerror_temp): New functions.
47164
47165 2006-10-04  Jim Meyering  <jim@meyering.net>
47166
47167         * lib/fts.c (fts_open): Tiny comment change.
47168
47169 2006-10-04  Bruno Haible  <bruno@clisp.org>
47170
47171         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47172         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47173         gl_LOCK_BODY.
47174         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47175         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47176         gl_LOCK_EARLY_BODY.
47177         (gl_LOCK): Require gl_LOCK_BODY.
47178
47179 2006-10-04  Bruno Haible  <bruno@clisp.org>
47180
47181         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47182         (gl_oset_search_atleast): New declaration.
47183         (struct gl_oset_implementation): Add field 'search_atleast'.
47184         (gl_oset_search_atleast): New inline function.
47185         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47186         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47187         (gl_array_oset_implementation): Update.
47188         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47189         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47190         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47191
47192 2006-10-04  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47195
47196 2006-10-03  Bruno Haible  <bruno@clisp.org>
47197
47198         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47199         from gl_avltreehash_list_implementation.
47200
47201 2006-10-03  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/gl_oset.c (gl_oset_add): Fix return type.
47204
47205 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47206
47207         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47208
47209 2006-10-02  Eric Blake  <ebb9@byu.net>
47210
47211         * modules/strnlen (Depends-on): Add extensions.
47212
47213 2006-10-02  Eric Blake  <ebb9@byu.net>
47214
47215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47216         definition in 2.60+.
47217
47218 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47219
47220         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47221         checks.
47222
47223 2006-10-02  Bruno Haible  <bruno@clisp.org>
47224
47225         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47226         to the AUTOMAKE_OPTIONS.
47227         Reported by Jim Meyering.
47228
47229 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47230
47231         Work around bug in Solaris 10 /proc file system:
47232         /proc/self/fd/NNN/.. isn't the parent directory of
47233         the directory whose file descriptor is NNN.  This needs to
47234         be worked around at run time, not compile time, since a
47235         program might be built on Solaris 8, where things work, and
47236         run on Solaris 10.
47237         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47238         to use the following interface instead:
47239         (OPENAT_BUFFER_SIZE): New macro.
47240         (openat_proc_name): New function.
47241         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47242         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47243         Likewise.
47244         * lib/openat-proc.c: New file.
47245         * modules/openat (Files): Add lib/openat-proc.c.
47246         (Depends-on): Add same-inode, stdbool.
47247         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47248
47249 2006-09-29  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47252         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47253         argument. Set stdout_closed before testing for ferror, not after.
47254         (fwriteerror, fwriteerror_no_ebadf): New functions.
47255
47256 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47257
47258         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47259
47260 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47261
47262         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47263         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47264
47265 2006-09-28  Jim Meyering  <jim@meyering.net>
47266
47267         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47268         Include <unistd.h>.
47269
47270 2006-09-28  Bruno Haible  <bruno@clisp.org>
47271
47272         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47273         * modules/linkedhash-list (Depends-on): Likewise.
47274         * modules/rbtreehash-list (Depends-on): Likewise.
47275
47276 2006-09-28  Bruno Haible  <bruno@clisp.org>
47277
47278         * lib/strndup.h: Simplify the redefinition of strndup.
47279         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47280         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47281
47282 2006-09-28  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47285         * lib/gl_linkedhash_list.c: Likewise.
47286         * lib/gl_rbtreehash_list.c: Likewise.
47287
47288 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47289
47290         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47291         getaddrinfo.
47292
47293         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47294         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47295         it causes <stdio_ext.h> to cause a compile-time error.
47296         Problem reported by Nelson H. F. Beebe.
47297         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47298         of HAVE_DECL___PENDING.
47299
47300         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47301         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47302         declaration.
47303
47304 2006-09-27  Jim Meyering  <jim@meyering.net>
47305
47306         This file could end up with a definition for a function
47307         named __strndup, rather than rpl_strndup on a system with
47308         incomplete weak_alias support.
47309         * lib/strndup.c (strndup): Rename from __strndup.
47310         Remove #defines that used to map __strndup to strndup.
47311         Don't use K&R prototypes.
47312         Remove LIBC-related code, since this file is not sync'd with glibc.
47313         * lib/strndup.h: Revamp, accordingly.
47314         * m4/strndup.m4: Modernize.
47315
47316 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47317
47318         * modules/savewd (Depends-on): Add 'raise'.
47319         * lib/savewd.c: Include <signal.h>, for 'raise'.
47320
47321 2006-09-26  Jim Meyering  <jim@meyering.net>
47322
47323         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47324         when we detect Darwin 8.7.0's acl_get_file bug.
47325         Rearrange to perform the new (below) run-test while $LIBS
47326         contains any acl-related library.  Set USE_ACL at the end.
47327         (gl_ACL_GET_FILE): New function.
47328
47329 2006-09-26  Eric Blake  <ebb9@byu.net>
47330
47331         * lib/verror.c: Include <config.h> unconditionally.
47332
47333 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47334
47335         * modules/clock-time (Maintainer): Add self.
47336         * modules/getlogin_r (Depends-on): Add extensions.
47337
47338 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47339
47340         * modules/clock-time: New module.
47341         * modules/nanosleep (Depends-on): Add clock-time.
47342         * modules/gethrxtime (Depends-on): Likewise.
47343         * modules/gettime (Depends-on): Likewise.
47344         * modules/settime (Depends-on): Likewise.
47345
47346         * modules/fts-lgpl: Depend on openat.
47347         * modules/mkancesdirs: Depend on savewd.
47348         * modules/mkdir-p: Likewise.
47349
47350 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47351
47352         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47353
47354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47355         `gl_have_arbitrary_file_name_length_limit' to
47356         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47357         actually works between configure runs.
47358
47359 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47360             Bruno Haible  <bruno@clisp.org>
47361
47362         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47363
47364 2006-09-25  Jim Meyering  <jim@meyering.net>
47365
47366         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
47367         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
47368
47369 2006-09-25  Eric Blake  <ebb9@byu.net>
47370
47371         * gnulib-tool (func_import, func_create_testdir): Fix typos in
47372         exec's in 2006-09-18 patch when shuffling fds.
47373
47374 2006-09-25  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
47377         Reported by Jim Meyering.
47378
47379 2006-09-24  Jim Meyering  <jim@meyering.net>
47380
47381         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
47382         compare a pointer against a literal "0".  That caused failures with
47383         at least HP-UX's hpcc.
47384
47385 2006-09-22  Simon Josefsson  <jas@extundo.com>
47386
47387         * modules/gc-sha1:
47388         * modules/gc-md4:
47389         * modules/gc-hmac-sha1:
47390         * modules/gc-hmac-md5:
47391         * modules/gc-des:
47392         * modules/gc-arcfour: Distribute more files.
47393
47394 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47395
47396         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
47397         (gl_linked_iterator_from_to): Initialize struct completely.
47398         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
47399         (gl_tree_iterator_from_to): Likewise
47400         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
47401         * lib/gl_array_list.c [lint] (gl_array_iterator)
47402         (gl_array_iterator_from_to): Likewise.
47403         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
47404         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
47405         (gl_carray_iterator_from_to): Likewise.
47406
47407         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
47408         * lib/md4.c (md4_process_block): Remove unused variable.
47409         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
47410         parentheses for clarity.
47411
47412 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47413
47414         * modules/bison-i18n (Depends-on): Add gettext.
47415
47416 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47417
47418         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
47419         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
47420         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
47421         also add missing comma that caused broken test.
47422         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
47423         stdlib.h, for `abort'.
47424         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
47425         variables.
47426         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
47427         include unistd.h if present, for `rmdir'.
47428         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
47429         variables.
47430         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
47431         in the process include standard headers for prototypes.
47432         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
47433         gets declared on GNU/Linux.
47434         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
47435         unistd.h, for `rmdir'.
47436         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
47437
47438         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
47439         always true.
47440         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
47441
47442         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
47443
47444 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47445
47446         * gnulib-tool (func_version): Create output all at once.  This
47447         may help avoid triggering unnecessary SIGPIPEs, and at any
47448         rate it doesn't hurt.
47449
47450 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47451             Bruno Haible  <bruno@clisp.org>
47452
47453         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
47454         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47455         * m4/signed.m4 (bh_C_SIGNED): Likewise.
47456
47457         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
47458         (gl_FUNC_VASPRINTF): Invoke it.
47459
47460 2006-09-22  Bruno Haible  <bruno@clisp.org>
47461
47462         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
47463         getloadavg.c as first argument.
47464
47465 2006-09-22  Bruno Haible  <bruno@clisp.org>
47466
47467         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
47468         at the beginning of the gl_INIT macro.
47469         * modules/getloadavg (configure.ac): Pass $gl_source_base to
47470         gl_GETLOADAVG.
47471
47472 2006-09-22  Bruno Haible  <bruno@clisp.org>
47473
47474         * gnulib-tool (func_create_megatestdir): Don't include the config-h
47475         module.
47476         Suggested by Ralf Wildenhues.
47477
47478 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
47479
47480         Import this patch from libc:
47481
47482         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
47483
47484         * lib/regex_internal.c (re_string_reconstruct): Handle
47485         offset < pstr->valid_raw_len && pstr->offsets_needed case.
47486         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
47487         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
47488         re_string_context_at.
47489
47490         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
47491         now requires it.
47492         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
47493         gl_REGEX now does it for us.
47494         (gl_REGEX): Add test taken from
47495         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
47496
47497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
47498         Check that large offsets work.  Modernize Autoconf usages.
47499         Prefer "yes" to mean a good thing rather than a bad.
47500         Don't put "#define mkstemp" in config.h, as this might interfere
47501         with standard system headers that "#define mkstemp mkstemp64".
47502
47503         * modules/mkstemp (Depends-on): Add extensions, so that
47504         mkstemp is visible on some platforms.
47505         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
47506         (Include): Change to "mkstemp.h" from <stdlib.h>.
47507         (Files): Add mkstemp.h.
47508
47509         * lib/mkstemp.h: New file, since some standard headers
47510         #define mkstemp.
47511         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
47512         Include "mkstemp.h".
47513         Make the _LIBC code resemble glibc original more,
47514         e.g., use K&R style.
47515         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
47516         (mkstemp): Remove, since mkstemp.h does this for us.
47517         * lib/stdlib--.h: Include mkstemp.h.
47518
47519         Import this patch from libc:
47520
47521         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47522
47523         * lib/tempname.c (__gen_tempname): Change attempts_min
47524         into a macro.  Use preprocessor to decide how to initialize
47525         attempts [Coverity CID 67].
47526
47527 2006-09-20  Bruno Haible  <bruno@clisp.org>
47528
47529         * lib/mkdtemp.c: Import from libc.
47530         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47531                 * sysdeps/posix/tempname.c (__gen_tempname): Change
47532                 attempts_min into a macro.  Use preprocessor to decide how to
47533                 initialize attempts [Coverity CID 67].
47534         2001-11-27  Paul Eggert  <eggert@twinsun.com>
47535                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
47536                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
47537
47538 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47539
47540         * gnulib-tool (func_exit): New function, to allow to pass the
47541         exit status portably through the trap.  Use everywhere.
47542         (--help, --version): Signal a write error.
47543         (trap): catch SIGPIPE, for write errors.
47544         Exit at the end of the trap, with the correct exit status.
47545
47546 2006-09-19  Karl Berry  <karl@gnu.org>
47547
47548         * doc/gnulib.texi: note about the license texinfo files.
47549
47550 2006-09-19  Eric Blake  <ebb9@byu.net>
47551
47552         * gnulib-tool: Avoid space-tab.
47553
47554 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47555
47556         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
47557         that prevented coreutils 6.1 from building.  Problem reported
47558         by Petter Reinholdtsen.
47559
47560 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47561
47562         * gnulib-tool (avoidlist): Fix typo that broke options like
47563         --avoid=lock that are used by coreutils bootstrap.
47564
47565 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
47566
47567         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
47568         more systematically.
47569
47570 2006-09-18  Jim Meyering  <jim@meyering.net>
47571
47572         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
47573
47574 2006-09-18  Bruno Haible  <bruno@clisp.org>
47575
47576         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
47577
47578 2006-09-18  Bruno Haible  <bruno@clisp.org>
47579
47580         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
47581         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
47582         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
47583         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
47584         * m4/gettext.m4: Require autoconf >= 2.52.
47585         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
47586         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
47587         of gl_cv_header_inttypes_h.
47588
47589 2006-09-18  Bruno Haible  <bruno@clisp.org>
47590
47591         * lib/javaversion.c: Include configmake.h.
47592
47593 2006-09-18  Bruno Haible  <bruno@clisp.org>
47594
47595         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
47596         avoid that the while loops be executed in a subshell.
47597
47598 2006-09-18  Bruno Haible  <bruno@clisp.org>
47599
47600         * MODULES.html.sh (func_module): Break long lines.
47601         Suggested by Bruce Korb <bkorb@gnu.org>.
47602
47603 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47604
47605         Speed up by a factor of 1.12.
47606         * gnulib-tool (nl): New variable.
47607         (func_import): Rewrite include directive extraction to only read each
47608         directive once.
47609
47610 2006-09-17  Bruno Haible  <bruno@clisp.org>
47611
47612         * modules/javaversion (Makefile.am): Remove DEFS setting.
47613         (Depends-on): Add configmake, for PKGDATADIR definition.
47614
47615 2006-09-17  Bruno Haible  <bruno@clisp.org>
47616
47617         * gnulib-tool (func_create_testdir): Rewrite all files at once.
47618
47619 2006-09-17  Bruno Haible  <bruno@clisp.org>
47620
47621         * gnulib-tool (func_append): New function, stolen from libtool.m4.
47622         (func_modules_transitive_closure, func_modules_add_dummy,
47623         func_modules_to_filelist, func_import, func_create_testdir,
47624         func_create_megatestdir, ...): Use it wherever possible.
47625         Suggested by Ralf Wildenhues.
47626
47627 2006-09-16  Karl Berry  <karl@gnu.org>
47628
47629         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
47630         to avoid sectioning errors.
47631         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
47632         [ifinfo]: blank line after @center-ed titles.
47633         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
47634         Spell FSF address consistently with others.
47635         (These changes approved by rms.)
47636
47637 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47638
47639         Speed up by a factor of 1.61.
47640         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
47641         already checked module names again.
47642
47643 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47644
47645         Speed up by a factor of 1.13.
47646         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
47647         for new_files, and the input to func_add_or_update.
47648
47649 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47650
47651         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
47652         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
47653
47654 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47655
47656         * modules/mkancesdirs (Depends-on): Add fcntl.
47657         * modules/savewd: New file.
47658         * MODULES.html.sh (File system functions): Add savewd.
47659
47660         * modules/configmake (Makefile.am): Add support for the
47661         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
47662
47663 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47664
47665         * m4/savewd.m4: New file.
47666
47667 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47668
47669         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
47670         (dirchownmod): New arg FD.  All callers changed.
47671         Use FD rather than opening the directory ourself, as opening is
47672         now the caller's responsibility.
47673         * lib/dirchownmod.h: Likewise.
47674         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
47675         hosts that require <sys/types.h> before <sys/stat.h>.  Include
47676         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
47677         (test_dir): Remove.
47678         (mkancesdirs): Return length of prefix of FILE that has already
47679         been made, or -2 if there is a child doing the work.  Redo
47680         algorithm so that it is O(N) rather than O(N**2).  Optimize away
47681         ".", and treat ".." specially since it might stray back into
47682         already-created areas.  Use a subprocess if necessary.  New arg
47683         WD; all users changed.  MAKE_DIR function should now return 1
47684         if it creates a directory that is not readable.  Return -2 if
47685         a child process is spun off.
47686         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
47687         Adjust signature to match code.
47688         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
47689         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
47690         all users changed.
47691         * lib/savewd.c, lib/savewd.h: New files.
47692
47693 2006-09-15  Jim Meyering  <jim@meyering.net>
47694
47695         * modules/rename-dest-slash: New module.
47696         * MODULES.html.sh (posix_compat): Add it here.
47697
47698         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
47699
47700 2006-09-15  Jim Meyering  <jim@meyering.net>
47701
47702         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
47703         file.
47704
47705         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
47706
47707 2006-09-15  Jim Meyering  <jim@meyering.net>
47708
47709         * lib/rename-dest-slash.c (has_trailing_slash): Use
47710         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
47711         (rpl_rename_dest_slash): Perform the cheaper trailing slash
47712         test before testing whether SRC is a directory.
47713         Suggestions from Bruno Haible.
47714
47715         Avoid a warning about an unused variable.
47716         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
47717         into the #ifdef block where it's used.
47718
47719         * lib/rename-dest-slash.c: New file.
47720
47721 2006-09-14  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/allocsa.c: Include <config.h> unconditionally.
47724         * lib/asnprintf.c: Likewise.
47725         * lib/asprintf.c: Likewise.
47726         * lib/c-strcasecmp.c: Likewise.
47727         * lib/c-strcasestr.c: Likewise.
47728         * lib/c-strncasecmp.c: Likewise.
47729         * lib/c-strstr.c: Likewise.
47730         * lib/classpath.c: Likewise.
47731         * lib/clean-temp.c: Likewise.
47732         * lib/concatpath.c: Likewise.
47733         * lib/copy-file.c: Likewise.
47734         * lib/csharpcomp.c: Likewise.
47735         * lib/csharpexec.c: Likewise.
47736         * lib/execute.c: Likewise.
47737         * lib/fatal-signal.c: Likewise.
47738         * lib/findprog.c: Likewise.
47739         * lib/fwriteerror.c: Likewise.
47740         * lib/gl_array_list.c: Likewise.
47741         * lib/gl_array_oset.c: Likewise.
47742         * lib/gl_avltree_list.c: Likewise.
47743         * lib/gl_avltree_oset.c: Likewise.
47744         * lib/gl_avltreehash_list.c: Likewise.
47745         * lib/gl_carray_list.c: Likewise.
47746         * lib/gl_linked_list.c: Likewise.
47747         * lib/gl_linkedhash_list.c: Likewise.
47748         * lib/gl_list.c: Likewise.
47749         * lib/gl_oset.c: Likewise.
47750         * lib/gl_rbtree_list.c: Likewise.
47751         * lib/gl_rbtree_oset.c: Likewise.
47752         * lib/gl_rbtreehash_list.c: Likewise.
47753         * lib/imaxabs.c: Likewise.
47754         * lib/imaxdiv.c: Likewise.
47755         * lib/javacomp.c: Likewise.
47756         * lib/javaexec.c: Likewise.
47757         * lib/javaversion.c: Likewise.
47758         * lib/linebreak.c: Likewise.
47759         * lib/localcharset.c: Likewise.
47760         * lib/lock.c: Likewise.
47761         * lib/mbchar.c: Likewise.
47762         * lib/mbswidth.c: Likewise.
47763         * lib/mkdtemp.c: Likewise.
47764         * lib/pipe.c: Likewise.
47765         * lib/printf-args.c: Likewise.
47766         * lib/printf-parse.c: Likewise.
47767         * lib/progname.c: Likewise.
47768         * lib/progreloc.c: Likewise.
47769         * lib/readlink.c: Likewise.
47770         * lib/sh-quote.c: Likewise.
47771         * lib/stpcpy.c: Likewise.
47772         * lib/stpncpy.c: Likewise.
47773         * lib/strcasecmp.c: Likewise.
47774         * lib/strcasestr.c: Likewise.
47775         * lib/strcspn.c: Likewise.
47776         * lib/striconv.c: Likewise.
47777         * lib/strncasecmp.c: Likewise.
47778         * lib/strnlen1.c: Likewise.
47779         * lib/strstr.c: Likewise.
47780         * lib/strtok_r.c: Likewise.
47781         * lib/tls.c: Likewise.
47782         * lib/tmpdir.c: Likewise.
47783         * lib/unicodeio.c: Likewise.
47784         * lib/unsetenv.c: Likewise.
47785         * lib/vasnprintf.c: Likewise.
47786         * lib/vasprintf.c: Likewise.
47787         * lib/wait-process.c: Likewise.
47788         * lib/xallocsa.c: Likewise.
47789         * lib/xsetenv.c: Likewise.
47790         * lib/xstriconv.c: Likewise.
47791
47792 2006-09-13  Simon Josefsson  <jas@extundo.com>
47793
47794         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
47795         that internally, suggested by Ralf Wildenhues
47796         <Ralf.Wildenhues@gmx.de>.
47797
47798 2006-09-13  Simon Josefsson  <jas@extundo.com>
47799
47800         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
47801         @LIBOBJS@.
47802         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47803
47804 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47805
47806         * lib/_fpending.c: Include <config.h> unconditionally, since we no
47807         longer worry about uses that don't define HAVE_CONFIG_H.
47808         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
47809         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
47810         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
47811         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
47812         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
47813         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
47814         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
47815         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
47816         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
47817         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
47818         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
47819         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
47820         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
47821         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
47822         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
47823         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
47824         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
47825         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
47826         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
47827         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
47828         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
47829         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
47830         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
47831         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
47832         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
47833         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
47834         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
47835         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
47836         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
47837         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
47838         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
47839         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
47840         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
47841         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
47842         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
47843         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
47844         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
47845         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
47846         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
47847         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
47848         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
47849         Likewise.
47850
47851 2006-09-13  Eric Blake  <ebb9@byu.net>
47852
47853         * lib/getopt.c: Fix typo in last commit.
47854
47855 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47856
47857         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
47858         dgettext.
47859
47860 2006-09-12  Jim Meyering  <jim@meyering.net>
47861
47862         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
47863         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
47864         Reported by Nelson H. F. Beebe.
47865
47866 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47867
47868         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
47869         program_invocation_name and program_invocation_short_name are
47870         initialized.
47871         * lib/argp-namefrob.h: Move declarations of program_invocation_name
47872         and program_invocation_short_name to argp.h, so they are visible
47873         to user programs.
47874         * lib/argp.h: Likewise
47875
47876 2006-09-10  Bruno Haible  <bruno@clisp.org>
47877
47878         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47879         m4/inttypes_h.m4, m4/uintmax_t.m4.
47880
47881 2006-09-10  Bruno Haible  <bruno@clisp.org>
47882
47883         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
47884         gl_AC_TYPE_UINTMAX_T.
47885
47886 2006-09-10  Bruno Haible  <bruno@clisp.org>
47887
47888         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
47889
47890 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47891
47892         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
47893         convention.  Text proposed by Bruno Haible.
47894         (struct argp_option): Document the use of N_() wrappers.
47895
47896         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
47897         '\v', and translate the two parts separately, instead of feeding
47898         the whole string to gettext.  This allows to exclude
47899         '\v' from the strings visible to the translator by writing doc
47900         strings as N_("..") "\v" N_("..").
47901
47902 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
47903
47904         * config/srclist.txt: Undo latest change; the bug was fixed.
47905
47906 2006-09-09  Bruno Haible  <bruno@clisp.org>
47907
47908         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
47909         assignments if building a library without libtool.
47910         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
47911         in func_emit_lib_Makefile_am.
47912         (func_import): When building a static library libfoo.a, arrange to
47913         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
47914         (func_create_testdir): Likewise.
47915         * modules/gc (configure.ac, Makefile.am): If building statically,
47916         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
47917         * modules/iconvme (configure.ac, Makefile.am): Likewise.
47918         * modules/striconv (configure.ac, Makefile.am): Likewise.
47919         Based on a suggestion by Ralf Wildenhues.
47920
47921 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47922
47923         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47924         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47925         Also:
47926
47927         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47928         Add year_2050_test to catch glibc bug 2821
47929         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47930
47931         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47932         Prefer #ifdef to #if.
47933
47934         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47935         Return from 'main' instead of calling 'exit'.
47936
47937 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47938
47939         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47940         returned the maximum time_t value rather than (time_t) -1.
47941         Problem originally reported by William Bardwell
47942         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47943
47944         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47945         Moved to here ...
47946         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47947         ... from here.
47948
47949 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47950
47951         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47952         2821 is fixed.
47953
47954 2006-09-08  Jim Meyering  <jim@meyering.net>
47955
47956         Don't make generated files read-only.  That would bother too many
47957         people.  However, do retain the ability to work when targets are
47958         read-only: remove the destination and temporary files before writing
47959         them (when generated via sed or echo), or by using the -f option for
47960         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
47961         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47962         * modules/byteswap, modules/configmake, modules/fcntl:
47963         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47964         * modules/localcharset, modules/netinet_in, modules/poll:
47965         * modules/stdbool, modules/stdint, modules/sys_select:
47966         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47967
47968 2006-09-08  Jim Meyering  <jim@meyering.net>
47969
47970         Avoid new build failure on FreeBSD 6.0.
47971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
47972         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
47973         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
47974
47975 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47976
47977         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
47978
47979 2006-09-07  Jim Meyering  <jim@meyering.net>
47980
47981         Fix global typo in last change: use chmod u-w, not chmod u-x.
47982         Spotted by Paul Eggert and Bruce Korb.
47983         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47984         * modules/byteswap, modules/configmake, modules/fcntl:
47985         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47986         * modules/localcharset, modules/netinet_in, modules/poll:
47987         * modules/stdbool, modules/stdint, modules/sys_select:
47988         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47989
47990 2006-09-06  Jim Meyering  <jim@meyering.net>
47991
47992         Make generated files be read-only.
47993         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
47994         Ensure that each generated file is now read-only.
47995         * modules/argz: Likewise.
47996         * modules/arpa_inet: Likewise.
47997         * modules/byteswap: Likewise.
47998         * modules/configmake: Likewise.
47999         * modules/fcntl: Likewise.
48000         * modules/fnmatch: Likewise.
48001         * modules/getopt: Likewise.
48002         * modules/glob: Likewise.
48003         * modules/inttypes: Likewise.
48004         * modules/netinet_in: Likewise.
48005         * modules/poll: Likewise.
48006         * modules/stdbool: Likewise.
48007         * modules/stdint: Likewise.
48008         * modules/sys_select: Likewise.
48009         * modules/sys_socket: Likewise.
48010         * modules/sys_stat: Likewise.
48011         * modules/sysexits: Likewise.
48012         * modules/localcharset: Same as above, but continue using temporary
48013         file named "t-$@" (why different?) rather than the "$@-t" used
48014         everywhere else.
48015
48016         * modules/sysexits (Makefile.am): Replace literal occurrences
48017         of "sysexit.h" more readable, and more consistent, "$@".
48018
48019 2006-09-06  Bruno Haible  <bruno@clisp.org>
48020
48021         * modules/striconv: New file.
48022         * modules/xstriconv: New file.
48023         * MODULES.html.sh (Internationalization functions): Add striconv,
48024         xstriconv.
48025
48026 2006-09-06  Bruno Haible  <bruno@clisp.org>
48027
48028         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48029         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48030         not using libtool correctly.
48031
48032 2006-09-06  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/striconv.h: New file.
48035         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48036         iconvstring.c.
48037         * lib/xstriconv.h: New file.
48038         * lib/xstriconv.c: New file.
48039
48040 2006-09-06  Bruno Haible  <bruno@clisp.org>
48041
48042         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48043         lib_..._LDFLAGS.
48044
48045 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48046
48047         * lib/argz_.h: Sync from Libtool.
48048
48049         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48050                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48051
48052         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48053
48054 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48055
48056         * modules/trim: New file.
48057
48058 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48059
48060         * lib/trim.h: New file.
48061         * lib/trim.c: New file.
48062
48063 2006-09-05  Bruno Haible  <bruno@clisp.org>
48064
48065         * MODULES.html.sh (String handling): Add trim.
48066
48067 2006-09-04  Karl Berry  <karl@gnu.org>
48068
48069         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48070         until next release.
48071
48072 2006-09-03  Bruno Haible  <bruno@clisp.org>
48073
48074         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48075         correctly.
48076
48077 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48078
48079         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48080         not gl_GETLOADAVG.  Omit unneeded semicolons.
48081         Problems reported by Ralf Wildenhues in
48082         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48083         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48084         at the end, which is the usual gnulib style.
48085
48086         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48087         of doing all the work ourselves.
48088         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48089         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48090
48091 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48092
48093         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48094         Problem reported by Ralf Wildenhues in
48095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48096
48097         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48098         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48099
48100 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48101
48102         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48103         yesterday's patch by changing test -n to test -z.
48104
48105 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48106
48107         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48108         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48109         the former is now obsolescent.
48110
48111         * modules/chdir-long (Depends-on): Add fcntl.
48112
48113 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48114
48115         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48116         obsolescent, and programs should use gnulib instead.
48117         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48118         but with prefixes changed.
48119
48120 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48121
48122         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48123         or stdbool.h, because they might not exist while configuring.
48124
48125         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48126         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48127         does that for us.
48128         (O_DIRECTORY): Remove.
48129
48130 2006-08-31  Eric Blake  <ebb9@byu.net>
48131
48132         * gnulib-tool: Don't let emacs change spaces to TAB.
48133
48134 2006-08-31  Bruno Haible  <bruno@clisp.org>
48135
48136         * gnulib-tool: When calling func_import more than once, do it in a
48137         subshell.
48138         Reported by Eric Blake <ebb9@byu.net>.
48139
48140 2006-08-31  Bruno Haible  <bruno@clisp.org>
48141
48142         * gnulib-tool (nl): Remove variable.
48143         (sed_transform_lib_file): Use more robust test for config-h module.
48144         (func_import): Fix typo in 2006-08-25 patch.
48145
48146 2006-08-31  Bruno Haible  <bruno@clisp.org>
48147
48148         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48149         specified, augment Makefile.am variables instead of assigning them.
48150
48151 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48152
48153         Work around a bug in both the Linux and SunOS 64-bit kernels:
48154         nanosleep mishandles sleeps for longer than 2**31 seconds.
48155         Problem reported by Frank v Waveren in
48156         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48158         Check for nanosleep bug.
48159         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48160
48161 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48162
48163         Work around a bug in both the Linux and SunOS 64-bit kernels:
48164         nanosleep mishandles sleeps for longer than 2**31 seconds.
48165         Problem reported by Frank v Waveren in
48166         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48167         * lib/nanosleep.c (BILLION): New constant.
48168         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48169         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48170         implementation.
48171
48172 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         * modules/nanosleep (Depends-on): Add gettime.
48175
48176 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48177         and Simon Josefsson  <jas@extundo.com>
48178         and Oskar Liljeblad  <oskar@osk.mine.nu>
48179
48180         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48181         * gnulib-tool (func_import): New license type 'unmodifiable license
48182         text'.
48183         * modules/fdl: Use it.  Longer description.
48184         * module/gpl, module/lgpl: New files.
48185
48186 2006-08-30  Jim Meyering  <jim@meyering.net>
48187
48188         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48189         shadowing the parameter.
48190
48191 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48192
48193         Sync from Libtool:
48194
48195         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48196
48197         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48198         sharing with gnulib.  Report by Eric Blake.
48199
48200 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48201
48202         * modules/isapipe: New file.
48203         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48204
48205 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48206
48207         * modules/configmake (Makefile.am): Add a comment, and omit
48208         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48209         by Bruno Haible.
48210
48211 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48212
48213         * m4/isapipe.m4: New file.
48214
48215 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48216
48217         * lib/isapipe.c, lib/isapipe.h: New files.
48218
48219 2006-08-29  Jim Meyering  <jim@meyering.net>
48220
48221         * modules/configmake (Makefile.am): Make configmake.h depend on
48222         Makefile.  Otherwise, a stale configmake.h could hang around.
48223
48224 2006-08-29  Eric Blake  <ebb9@byu.net>
48225
48226         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48227         resolution of upstream bug 3044.
48228
48229 2006-08-29  Bruno Haible  <bruno@clisp.org>
48230
48231         * modules/localcharset (Depends-on): Add configmake.
48232         (Makefile.am): Remove setting of LIBDIR through DEFS.
48233
48234 2006-08-29  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48237         defined.
48238
48239 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48240
48241         * modules/fcntl: New file.
48242         * modules/chdir-safer (Depends-on): Add fcntl.
48243         * modules/fts: Likewise.
48244         * modules/mkdir-p: Likewise.
48245
48246         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48247         This undoes the most recent change, since we're now addressing the
48248         problem in a different way.
48249
48250         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48251         into output, since the output might be called Makefile.am even
48252         if $makefile_name is something different.
48253         (func_import): Use $makefile_am rather than
48254         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48255         empty.
48256
48257         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48258
48259 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48260
48261         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48262         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48263         recent change to stdint.m4, since we're now addressing the problem in a
48264         different way.
48265
48266 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         * m4/fcntl_h.m4: New file.
48269
48270 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48271
48272         * lib/fcntl_.h: New file.
48273         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48274         the fcntl module.
48275         * lib/dirchownmod.c: Likewise.
48276         * lib/fts.c: Likewise.
48277
48278         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48279         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48280         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48281         just before including <inttypes.h>, to avoid circular inclusion.
48282
48283 2006-08-28  Jim Meyering  <jim@meyering.net>
48284
48285         * doc/visibility.texi: Actually read and correct the grammar of the
48286         sentence affected by yesterday's change.
48287
48288 2006-08-28  Eric Blake  <ebb9@byu.net>
48289
48290         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48291         needs wrapper.
48292
48293 2006-08-28  Eric Blake  <ebb9@byu.net>
48294
48295         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48296
48297 2006-08-28  Eric Blake  <ebb9@byu.net>
48298
48299         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48300
48301 2006-08-28  Bruno Haible  <bruno@clisp.org>
48302
48303         * modules/c-strstr: New file, from GNU gettext.
48304         * MODULES.html.sh (String handling): Add c-strstr.
48305
48306 2006-08-28  Bruno Haible  <bruno@clisp.org>
48307
48308         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48309         macros.
48310         Reported by Eric Blake.
48311
48312 2006-08-28  Bruno Haible  <bruno@clisp.org>
48313
48314         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48315         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48316         * lib/vasprintf.c: Include errno.h, limits.h.
48317         (EOVERFLOW): New fallback definition.
48318         (vasprintf): Test here whether the string length is > INT_MAX.
48319         * lib/vsnprintf.c: Include errno.h, limits.h.
48320         (EOVERFLOW): New fallback definition.
48321         (vsnprintf): Fix bug when generated string was too long for the buffer.
48322         Test here whether the string length is > INT_MAX.
48323
48324 2006-08-28  Bruno Haible  <bruno@clisp.org>
48325
48326         * lib/inttypes_.h (SCNX*): Remove definitions.
48327         Reported by Eric Blake.
48328
48329 2006-08-28  Bruno Haible  <bruno@clisp.org>
48330
48331         * lib/c-strstr.h: New file, from GNU gettext.
48332         * lib/c-strstr.c: New file, from GNU gettext.
48333
48334 2006-08-28  Bruno Haible  <bruno@clisp.org>
48335
48336         * gnulib-tool: Reorder some statements.
48337
48338 2006-08-28  Bruno Haible  <bruno@clisp.org>
48339
48340         * gnulib-tool: New option --makefile-name.
48341         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48342         $makefile_name.
48343         (func_import): Write $makefile_name to the cache file, and read it from
48344         there unless explicitly specified. Use $makefile_name as file name
48345         instead of Makefile.am. Adjust the recommendations accordingly.
48346
48347 2006-08-28  Bruno Haible  <bruno@clisp.org>
48348
48349         * gnulib-tool (func_verify_module): Check against misapplying patch.
48350
48351 2006-08-28  Bruno Haible  <bruno@clisp.org>
48352
48353         * gnulib-tool (func_relativize, func_relconcat): New functions.
48354         Give an error if --local-dir is given with --update.
48355         Remove trailing slashes from $local_gnulib_dir.
48356         (func_import): Store the relativized $local_gnulib_dir in
48357         gnulib-cache.m4, and read it from there if not specified explicitly.
48358
48359 2006-08-28  Bruno Haible  <bruno@clisp.org>
48360
48361         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48362         is the current directory. Respect also $local_gnulib_dir.
48363
48364 2006-08-28  Bruno Haible  <bruno@clisp.org>
48365             Simon Josefsson  <jas@extundo.com>
48366
48367         BeOS portability.
48368         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
48369
48370 2006-08-27  Jim Meyering  <jim@meyering.net>
48371
48372         * doc/visibility.texi: Remove duplicate word: "pointer".
48373
48374 2006-08-26  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
48377         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
48378         (Makefile.am): Create inttypes.h from inttypes_.h.
48379         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
48380
48381         * modules/imaxabs: New file.
48382
48383         * modules/imaxdiv: New file.
48384
48385 2006-08-26  Bruno Haible  <bruno@clisp.org>
48386
48387         * m4/inttypes.m4: New file.
48388         * m4/_inttypes_h.m4: Remove file.
48389         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
48390         PRI_MACROS_BROKEN.
48391         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
48392
48393         * m4/imaxabs.m4: New file.
48394
48395         * m4/imaxdiv.m4: New file.
48396
48397 2006-08-26  Bruno Haible  <bruno@clisp.org>
48398
48399         * lib/inttypes_.h: New file.
48400         * lib/inttypes.h: Remove file.
48401         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
48402
48403         * lib/imaxabs.c: New file.
48404
48405         * lib/imaxdiv.c: New file.
48406
48407 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48408
48409         New config-h module, so that "make" output needn't be cluttered
48410         by -DHAVE_CONFIG_H.
48411         * MODULES.html.sh (Support for building libraries and executables):
48412         Add config-h.
48413         * modules/config-h: New file.
48414         * gnulib-tool (nl, sed_transform_lib_file): New vars.
48415         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
48416         the config-h module is used.
48417
48418         New configmake module, so that "make" output needn't be cluttered
48419         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
48420         * MODULES.html.sh (Support for building libraries and executables):
48421         Add configmake.
48422         * modules/configmake: New file.
48423
48424 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48425
48426         * m4/config-h.m4: New file.
48427
48428 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48429
48430         * config/srclist.txt: Add elisp-comp.
48431
48432 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48433
48434         * MODULES.html.sh (Support for building libraries and executables):
48435         Add elisp-comp.
48436         * build-aux/elisp-comp: New file.
48437         * modules/elisp-comp: New file.
48438
48439 2006-08-24  Bruno Haible  <bruno@clisp.org>
48440
48441         * gnulib-tool (func_create_testdir): Use non-default values of
48442         sourcebase and m4base.
48443
48444 2006-08-24  Bruno Haible  <bruno@clisp.org>
48445
48446         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
48447         HTML structure.
48448
48449 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48450
48451         * modules/openat (Depends-on): Add lchown.
48452
48453 2006-08-23  Bruno Haible  <bruno@clisp.org>
48454
48455         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
48456         of gl_LOCK_EARLY instead of gl_LOCK.
48457
48458 2006-08-23  Bruno Haible  <bruno@clisp.org>
48459
48460         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
48461         on OSF/1 to no.
48462         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
48463
48464 2006-08-23  Bruno Haible  <bruno@clisp.org>
48465
48466         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
48467         as unusable.
48468
48469         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
48470         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
48471         (gl_LOCK): New macro.
48472
48473 2006-08-22  Simon Josefsson  <jas@extundo.com>
48474
48475         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
48476         to md5 module.
48477
48478 2006-08-22  Simon Josefsson  <jas@extundo.com>
48479
48480         * MODULES.html.sh: Add "Support for maintaining and release
48481         projects".
48482
48483         * build-aux/gnupload: New file, from coreutils.
48484
48485 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48486
48487         Avoid the need for AC_LIBSOURCES in m4 macros.
48488         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
48489         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
48490         * modules/check-version (EXTRA_DIST): Add check-version.h.
48491         * modules/crc (EXTRA_DIST): Add crc.h.
48492         * modules/des (EXTRA_DIST): Add des.h.
48493         * modules/gc (EXTRA_DIST): Add gc.h.
48494         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
48495         * modules/getline (EXTRA_DIST): Add getline.h.
48496         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
48497         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
48498         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
48499         * modules/md2 (EXTRA_DIST): Add md2.h.
48500         * modules/md4 (EXTRA_DIST): Add md4.h.
48501         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
48502         * modules/read-file (EXTRA_DIST): Add read-file.h.
48503         * modules/readline (EXTRA_DIST): Add readline.h.
48504         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
48505         rijndael-api-fst.h.
48506
48507 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48508
48509         * m4/rijndael.m4 (gl_ARCFOUR):
48510         * m4/arctwo.m4 (gl_ARCTWO):
48511         * m4/check-version.m4 (gl_CHECK_VERSION):
48512         * m4/crc.m4 (gl_CRC):
48513         * m4/des.m4 (gl_DES):
48514         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
48515         * m4/gc.m4 (gl_GC):
48516         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
48517         * m4/getline.m4 (gl_FUNC_GETLINE):
48518         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
48519         * m4/hmac-md5.m4 (gl_HMAC_MD5):
48520         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
48521         * m4/md2.m4 (gl_MD2):
48522         * m4/md4.m4 (gl_MD4):
48523         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
48524         * m4/read-file.m4 (gl_FUNC_READ_FILE):
48525         * m4/readline.m4 (gl_FUNC_READLINE):
48526         * m4/rijndael.m4 (gl_RIJNDAEL):
48527         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48528         to get the necessary .h files and whatnot.
48529
48530 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48531
48532         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
48533         gnulib rather than the other way around.
48534         * config/srclistvars.sh (COREUTILS): Remove.
48535
48536 2006-08-22  Jim Meyering  <jim@meyering.net>
48537
48538         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
48539
48540         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
48541
48542 2006-08-22  Eric Blake  <ebb9@byu.net>
48543
48544         * modules/regexprops-generic: New file.
48545         * MODULES.html.sh (Support for building documentation): List it.
48546
48547 2006-08-22  Eric Blake  <ebb9@byu.net>
48548
48549         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
48550         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48551         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
48552         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
48553
48554 2006-08-22  Bruno Haible  <bruno@clisp.org>
48555
48556         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
48557         and lib_LTLIBRARIES like the other lib_* variables.
48558
48559 2006-08-22  Bruno Haible  <bruno@clisp.org>
48560
48561         * build-aux/x-to-1.in: New file, from GNU gettext.
48562
48563 2006-08-22  Bruno Haible  <bruno@clisp.org>
48564
48565         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
48566         <utmpx.h> exists.
48567
48568 2006-08-22  Bruno Haible  <bruno@clisp.org>
48569
48570         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
48571         <utmpx.h> exists.
48572
48573 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48574
48575         BeOS portability.
48576         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
48577         exist.
48578         Problem reported by Bruno Haible.
48579
48580 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48581
48582         Avoid the need for AC_LIBSOURCES in m4 macros.
48583         * modules/acl (EXTRA_DIST): Add acl.h.
48584         * modules/argmatch (Files): Add m4/argmatch.m4.
48585         (configure.ac): Add gl_ARGMATCH.
48586         (EXTRA_DIST): Renamed from lib_SOURCES, for
48587         consistency with the other modules.  Remove argmatch.c.
48588         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
48589         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
48590         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
48591         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
48592         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
48593         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
48594         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
48595         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
48596         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
48597         * modules/closeout (EXTRA_DIST): Add closeout.h.
48598         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
48599         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
48600         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
48601         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
48602         dirname.h; remove basename.c and stripslash.c.
48603         * modules/exclude (EXTRA_DIST): Add exclude.h.
48604         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
48605         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
48606         * modules/file-type (EXTRA_DIST): Add file-type.h.
48607         * modules/filemode (EXTRA_DIST): Add filemode.h.
48608         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
48609         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48610         * modules/fpending (EXTRA_DIST): Add __fpending.h.
48611         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
48612         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
48613         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
48614         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
48615         * modules/getdate (EXTRA_DIST): Add getdate.c.
48616         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
48617         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
48618         * modules/getpass (EXTRA_DIST): Add getpass.h.
48619         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
48620         * modules/group-member (EXTRA_DIST): Add group-member.h.
48621         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
48622         * modules/hash (EXTRA_DIST): Add hash.h.
48623         * modules/human (EXTRA_DIST): Add human.h.
48624         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
48625         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
48626         * modules/lchown (EXTRA_DIST): Add lchown.h.
48627         * modules/long-options (EXTRA_DIST): Add long-options.h.
48628         * modules/lstat (EXTRA_DIST): Add lstat.h.
48629         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
48630         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
48631         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
48632         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
48633         * modules/memxor (EXTRA_DIST): Add memxor.h.
48634         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
48635         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
48636         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
48637         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
48638         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
48639         * modules/physmem (EXTRA_DIST): Add physmem.h.
48640         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
48641         * modules/posixver (EXTRA_DIST): Add posixver.h.
48642         * modules/quote (EXTRA_DIST): Add quote.h.
48643         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
48644         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
48645         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
48646         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
48647         regex_internal.h regexec.c.
48648         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
48649         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
48650         * modules/same (EXTRA_DIST): Add same.h.
48651         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
48652         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
48653         * modules/savedir (EXTRA_DIST): Add savedir.h.
48654         * modules/sha1 (EXTRA_DIST): Add sha1.h.
48655         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
48656         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
48657         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
48658         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
48659         * modules/strdup (EXTRA_DIST): Add strdup.h.
48660         * modules/strftime (EXTRA_DIST): Add strftime.h.
48661         * modules/strndup (EXTRA_DIST): Add strndup.h.
48662         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
48663         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
48664         * modules/time_r (EXTRA_DIST): Add time_r.h.
48665         * modules/timespec (EXTRA_DIST): Add timespec.h.
48666         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48667         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
48668         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
48669         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
48670         * modules/userspec (EXTRA_DIST): Add userspec.h.
48671         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
48672         * modules/utimens (EXTRA_DIST): Add utimens.h.
48673         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
48674         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
48675         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
48676         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
48677         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
48678         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
48679         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
48680         * modules/yesno (EXTRA_DIST): Add yesno.h.
48681
48682 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48683
48684         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
48685
48686         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
48687         * m4/dev-ino.m4, same-inode.m4: Remove.
48688
48689         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
48690         * m4/acl.m4 (AC_FUNC_ACL):
48691         * m4/backupfile.m4 (gl_BACKUPFILE):
48692         * m4/c-strtod.m4 (gl_C99_STRTOLD):
48693         * m4/canon-host.m4 (gl_CANON_HOST):
48694         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48695         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
48696         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
48697         * m4/cloexec.m4 (gl_CLOEXEC):
48698         * m4/close-stream.m4 (gl_CLOSE_STREAM):
48699         * m4/closeout.m4 (gl_CLOSEOUT):
48700         * m4/dirfd.m4 (gl_FUNC_DIRFD):
48701         * m4/dirname.m4 (gl_DIRNAME):
48702         * m4/exclude.m4 (gl_EXCLUDE):
48703         * m4/exitfail.m4 (gl_EXITFAIL):
48704         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
48705         * m4/file-type.m4 (gl_FILE_TYPE):
48706         * m4/filemode.m4 (gl_FILEMODE):
48707         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
48708         * m4/fpending.m4 (gl_FUNC_FPENDING):
48709         * m4/fprintftime.m4 (gl_FPRINTFTIME):
48710         * m4/fts.m4 (gl_FUNC_FTS):
48711         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
48712         * m4/getdate.m4 (gl_GETDATE):
48713         * m4/gethrxtime.m4 (gl_GETHRXTIME):
48714         * m4/getpagesize.m4 (gl_GETPAGESIZE):
48715         * m4/getpass.m4 (gl_FUNC_GETPASS):
48716         * m4/gettime.m4 (gl_GETTIME):
48717         * m4/getugroups.m4 (gl_GETUGROUPS):
48718         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
48719         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
48720         * m4/hard-locale.m4 (gl_HARD_LOCALE):
48721         * m4/hash.m4 (gl_HASH):
48722         * m4/idcache.m4 (gl_IDCACHE):
48723         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
48724         * m4/lchown.m4 (gl_FUNC_LCHOWN):
48725         * m4/long-options.m4 (gl_LONG_OPTIONS):
48726         * m4/lstat.m4 (gl_FUNC_LSTAT):
48727         * m4/md5.m4 (gl_MD5):
48728         * m4/memcasecmp.m4 (gl_MEMCASECMP):
48729         * m4/memcoll.m4 (gl_MEMCOLL):
48730         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
48731         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
48732         * m4/memxor.m4 (gl_MEMXOR):
48733         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
48734         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
48735         * m4/modechange.m4 (gl_MODECHANGE):
48736         * m4/mountlist.m4 (gl_MOUNTLIST):
48737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48738         * m4/openat.m4 (gl_FUNC_OPENAT):
48739         * m4/pathmax.m4 (gl_PATHMAX):
48740         * m4/physmem.m4 (gl_PHYSMEM):
48741         * m4/posixtm.m4 (gl_POSIXTM):
48742         * m4/posixver.m4 (gl_POSIXVER):
48743         * m4/quote.m4 (gl_QUOTE):
48744         * m4/quotearg.m4 (gl_QUOTEARG):
48745         * m4/readtokens.m4 (gl_READTOKENS):
48746         * m4/readutmp.m4 (gl_READUTMP):
48747         * m4/regex.m4 (gl_REGEX):
48748         * m4/safe-read.m4 (gl_SAFE_READ):
48749         * m4/safe-write.m4 (gl_SAFE_WRITE):
48750         * m4/same.m4 (gl_SAME):
48751         * m4/save-cwd.m4 (gl_SAVE_CWD):
48752         * m4/savedir.m4 (gl_SAVEDIR):
48753         * m4/settime.m4 (gl_SETTIME):
48754         * m4/sha1.m4 (gl_SHA1):
48755         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
48756         * m4/stat-macros.m4 (gl_STAT_MACROS):
48757         * m4/stat-time.m4 (gl_STAT_TIME):
48758         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
48759         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
48760         * m4/strdup.m4 (gl_FUNC_STRDUP):
48761         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
48762         * m4/strndup.m4 (gl_FUNC_STRNDUP):
48763         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
48764         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
48765         * m4/time_r.m4 (gl_TIME_R):
48766         * m4/timespec.m4 (gl_TIMESPEC):
48767         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
48768         * m4/unlinkdir.m4 (gl_UNLINKDIR):
48769         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
48770         * m4/userspec.m4 (gl_USERSPEC):
48771         * m4/utimecmp.m4 (gl_UTIMECMP):
48772         * m4/utimens.m4 (gl_UTIMENS):
48773         * m4/xalloc.m4 (gl_XALLOC):
48774         * m4/xgetcwd.m4 (gl_XGETCWD):
48775         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
48776         * m4/xreadlink.m4 (gl_XREADLINK):
48777         * m4/xstrtod.m4 (gl_XSTRTOD):
48778         * m4/yesno.m4 (gl_YESNO):
48779         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48780         to get the necessary .h files and whatnot.
48781
48782 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
48783             Bruno Haible  <bruno@clisp.org>
48784
48785         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
48786         /bin/sh understanding of '!' conditional negation.
48787
48788 2006-08-21  Jim Meyering  <jim@meyering.net>
48789
48790         * modules/openat (Depends-on): Really alphabetize.
48791
48792         * modules/acl (Depends-on): Add error and quote.
48793
48794         * check-module (find_included_lib_files): Add at-func.c to the
48795         ok-to-include-more-than-once white list.
48796
48797         * modules/openat (Depends-on): Add lstat.  Alphabetize.
48798
48799 2006-08-21  Bruno Haible  <bruno@clisp.org>
48800
48801         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48802         Emit a pkgdata_DATA variable only if some snippets add contents to it.
48803         Reported by Martin Lambers <marlam@marlam.de>.
48804
48805 2006-08-21  Bruno Haible  <bruno@clisp.org>
48806
48807         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
48808         specify an installation location, don't emit a noinst_LIBRARIES or
48809         noinst_LTLIBRARIES assignment.
48810
48811 2006-08-21  Bruno Haible  <bruno@clisp.org>
48812
48813         BeOS portability.
48814         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
48815         BeOS has mbrtowc() but no <wctype.h>.
48816
48817 2006-08-21  Bruno Haible  <bruno@clisp.org>
48818
48819         BeOS portability.
48820         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
48821         exist.
48822
48823 2006-08-21  Bruno Haible  <bruno@clisp.org>
48824
48825         BeOS portability.
48826         * lib/mbchar.h: Include <wctype.h> only if it exists.
48827
48828 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48829
48830         Remove files that are no longer needed by their respective modules.
48831         * m4/obstack.m4: Remove.
48832         * m4/strerror_r.m4: Remove.
48833         * m4/uint32_t.m4: Remove.
48834         * m4/uintptr_t.m4: Remove.
48835         * m4/ullong_max.m4: Remove.
48836         * m4/xstrtoimax.m4: Remove.
48837         * m4/xstrtoumax.m4: Remove.
48838
48839         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
48840         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
48841         dependencies now capture this.
48842
48843         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
48844         Do not use AC_LIBSOURCES, since gnulib modules now do this.
48845         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
48846         * m4/human.m4 (gl_HUMAN): Likewise.
48847         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
48848         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
48849
48850         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
48851
48852         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
48853         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
48854         stdint.
48855         * m4/human.m4 (gl_HUMAN): Likewise.
48856         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
48857         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
48858         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48859         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48860         * m4/xstrtol (gl_XSTRTOL): Likewise.
48861
48862         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
48863         AC_TYPE_LONG_LONG_INT.
48864         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48865         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
48866         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
48867         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48868
48869         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
48870         on stdbool.
48871
48872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
48873         (gl_PREREQ_XSTRTOUL): Remove.
48874
48875         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
48876
48877         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
48878         mode.
48879
48880 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48881
48882         Add and change modules to make it easier for coreutils to use
48883         gnulib-tool.
48884         * modules/backupfile (Files): Remove m4/d-ino.m4.
48885         (Depends-on): Add d-ino.
48886         * modules/cycle-check (Depends-on): Add stdint.
48887         (lib_SOURCES): Add cycle-check.h.
48888         * modules/d-ino: New module.
48889         * modules/d-type: New module.
48890         * modules/error (Files): Remove m4/strerror_r.m4.
48891         * modules/filemode (Files): Add m4/st_dm_mode.m4.
48892         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48893         m4/inttypes_h.m4, m4/uintmax_t.m4.
48894         (Depends-on): Add stdint.
48895         (lib_SOURCES): Add fsusage.h.
48896         * modules/getcwd (Files): Remove d-ino.m4.
48897         (Depends-on): Add d-ino.
48898         * modules/getndelim2 (Depends-on): Add stdint.
48899         * modules/glob (Files): Remove m4/d-type.m4.
48900         (Depends-on): Add d-type.
48901         * modules/host-os: New module.
48902         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
48903         m4/inttypes_h.m4, m4/uintmax_t.m4.
48904         * Depends-on: Add stdint.
48905         (lib_SOURCES): Add human.h.
48906         * modules/inttostr (Files): Remove m4/intmax_t.m4,
48907         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
48908         m4/uintmax_t.m4, m4/ulonglong.m4.
48909         (Depends-on): Add stdint.
48910         (EXTRA_DIST): Add inttostr.h.
48911         * modules/lchmod: New module.
48912         * modules/link-follow: New module.
48913         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
48914         (Depends-on): Add lchmod.
48915         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
48916         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
48917         (Depends-on): Add stdint.
48918         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48919         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48920         (Depends-on): Add stdint.
48921         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48922         * modules/perl: New module.
48923         * modules/regex (Depends-on): Add stdint.
48924         * modules/rmdir-errno: New module.
48925         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48926         m4/intmax_t.m4.
48927         (Depends-on): Add stdint.
48928         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48929         m4/uintmax_t.m4.
48930         (Depends-on): Add stdint.
48931         * modules/unlink-busy: New module.
48932         * modules/utimecmp (Depends-on): Add stdint.
48933         * modules/uptime: New module.
48934         * modules/winsz-ioctl: New module.
48935         * modules/winsz-termios: New module.
48936         * modules/xnanosleep (Depends-on): Add nanosleep.
48937         * modules/ullong_max: Remove.
48938         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48939         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48940         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48941         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48942         (Depends-on): Add inttypes.
48943         (lib_SOURCES): Add xstrtol.h.
48944         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48945         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48946         * MODULES.html.sh: Move 'assert' into the assert section.
48947         Move 'dummy' into the linking section.
48948         Remove ullong_max.
48949         Add section for compatibility checks for POSIX:2001 functions,
48950         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48951         winsz-ioctl, and winsz-termios into it.
48952         Add lchmod.
48953         Add top-level Misc section and put host-os, perl, and uptime
48954         into it.
48955
48956 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48957
48958         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
48959         now assume the stdint module.  Do not include inttypes.h.
48960         * lib/fsusage.h: Likewise.
48961         * lib/getndelim2.c: Likewise.
48962         * lib/human.h: Likewise.
48963         * lib/inttostr.h: Likewise.
48964         * lib/obstack.c: Likewise.
48965         * lib/regex_internal.h: Likewise.
48966         * lib/tempname.c: Likewise.
48967         * lib/utimecmp.c: Likewise.
48968         * lib/xstrtol.h: Likewise.
48969
48970         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
48971
48972         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
48973         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
48974         * lib/xtime.h: Likewise.
48975
48976 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48977
48978         * modules/openat (Files): Add lib/fchmodat.c.
48979         Fixes problem reported by Jay Youngman.
48980
48981 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48982
48983         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
48984         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
48985
48986 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48987             Bruno Haible  <bruno@clisp.org>
48988
48989         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
48990         and is a script that invokes bison. Tighten the code. Add comments.
48991
48992 2006-08-18  Jim Meyering  <jim@meyering.net>
48993
48994         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
48995         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
48996         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
48997         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
48998
48999 2006-08-18  Bruno Haible  <bruno@clisp.org>
49000
49001         * modules/bison-i18n: New file.
49002         * MODULES.html.sh (Internationalization functions): Add it.
49003
49004 2006-08-18  Bruno Haible  <bruno@clisp.org>
49005
49006         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49007         sys/statvfs.h. When getmntinfo was found, check its declaration and
49008         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49009
49010 2006-08-18  Bruno Haible  <bruno@clisp.org>
49011
49012         * m4/bison-i18n.m4: New file, from bison.
49013
49014 2006-08-18  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49017         (ME_DUMMY): Treat "kernfs" as a dummy.
49018         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49019
49020 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49021
49022         Update from coreutils.
49023
49024         2006-08-15  Jim Meyering  <jim@meyering.net>
49025
49026         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49027
49028         2006-01-17  Jim Meyering  <jim@meyering.net>
49029
49030         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49031
49032         2006-01-11  Jim Meyering  <jim@meyering.net>
49033
49034         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49035         Check for the lchmod function.
49036
49037 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49038
49039         Update from coreutils.
49040
49041         * lib/__fpending.h: Add copyright notice.
49042         * lib/fprintftime.h: Likewise.
49043         * lib/savedir.c: Use (C) in copyright notice.
49044         * lib/savedir.h: Likewise.
49045
49046         2006-08-15  Jim Meyering  <jim@meyering.net>
49047
49048         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49049         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49050         in support of the EXPECTED_ERRNO macro.
49051         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49052         definitions.  Instead, define the appropriate symbols and include
49053         "at-func.c".
49054         * lib/mkdirat.c (mkdirat): Likewise.
49055         * lib/fchmodat.c (fchmodat): Likewise.
49056         (ENOSYS): Remove definition.
49057         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49058         it.  Don't include "unistd--.h" -- it wasn't ever used.
49059
49060         2006-01-17  Jim Meyering  <jim@meyering.net>
49061
49062         Rewrite fts.c not to change the current working directory,
49063         by using openat, fstatat, fdopendir, etc..
49064
49065         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49066         (HAVE_OPENAT_SUPPORT): Define.
49067         [_LIBC] (fchdir): Don't undef or define; no longer used.
49068         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49069         Now, this `function' always succeeds, and consumes its file descriptor
49070         parameter -- so callers must not close such FDs.  Update callers.
49071         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49072         (diropen): Add parameter, SP.  Adjust all callers.
49073         Implement using diropen_fd, rather than open.
49074         (fts_open): Initialize new member, fts_cwd_fd.
49075         Remove fts_rft-setting code.
49076         (fts_close): Close fts_cwd_fd, if necessary.
49077         (__opendir2): Define in terms of opendir or opendirat,
49078         depending on whether the FST_NOCHDIR flag is set.
49079         (fts_build): Since fts_safe_changedir consumes its FD, and since
49080         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49081         and close the dup'd file descriptor upon failure.
49082         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49083         (fts_safe_changedir): Tweak semantics to reflect that this function
49084         now calls cwd_advance_fd and hence consumes its FD argument.
49085         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49086         [struct FTS] (fts_rft): Remove now-unused member.
49087         [struct FTS] (fts_cycle.state): Improve comment.
49088
49089         * lib/openat.c (openat_needs_fchdir): New function.
49090         * lib/openat.h (openat_needs_fchdir): Declare it.
49091
49092 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49093
49094         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49095         Problem and fix reported by Pádraig Brady in
49096         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49097
49098 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49099
49100         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49101
49102 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49103
49104         * lib/memcoll.c (memcoll): Optimize for the common case where the
49105         arguments are bytewise equal.
49106
49107 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49108
49109         * doc/regexprops-generic.texi: Add a copyright notice.
49110
49111 2006-08-15  Bruno Haible  <bruno@clisp.org>
49112
49113         * modules/tmpdir (License): Change to LGPL.
49114
49115 2006-08-15  Bruno Haible  <bruno@clisp.org>
49116
49117         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49118         module.
49119
49120 2006-08-14  Simon Josefsson  <jas@extundo.com>
49121
49122         * config/srclist.txt: Add gnupload.
49123
49124 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49125
49126         Change copyright notice from LGPL 2 to GPL 2, since that's the
49127         standard form used in the gnulib repository.
49128         * tests/test-lock.c: Likewise.
49129         * tests/test-stdint.c: Likewise.
49130         * tests/test-tls.c: Likewise.
49131
49132         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49133         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49134         Add copyright notice.
49135
49136         * check-module: Add copyright notice.  Output a copyright
49137         notice if "--version" is specified.
49138         * modules/COPYING: New file.
49139         * tests/test-getaddrinfo.c: Add copyright notice.
49140         * tests/test-verify.c: Likewise.
49141
49142 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49143
49144         Change copyright notice from LGPL 2 to GPL 2, since that's the
49145         standard form used in the gnulib repository.
49146         * lib/lock.c: LGPL -> GPL.
49147         * lib/lock.h: Likewise.
49148         * lib/strnlen1.c: Likewise.
49149         * lib/strnlen1.h: Likewise.
49150         * lib/tls.c: Likewise.
49151         * lib/tls.h: Likewise.
49152         * lib/tmpdir.c: Likewise.
49153
49154         * lib/TODO: Remove; this belongs only in coreutils.
49155
49156 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49157
49158         Add copyright notices to long-enough files that lack them, since
49159         otherwise the files aren't clearly free.  Use the same notice that
49160         getdate.texi already uses.
49161         * doc/alloca-opt.texi: Add copyright notice.
49162         * doc/alloca.texi: Likewise.
49163         * doc/ctime.texi: Likewise.
49164         * doc/functions.texi: Likewise.
49165         * doc/gcd.texi: Likewise.
49166         * doc/gnulib-tool.texi: Likewise.
49167         * doc/inet_ntoa.texi: Likewise.
49168         * doc/visibility.texi: Likewise.
49169
49170         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49171         * doc/quote.texi: Add copyright notice.
49172
49173         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49174         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49175         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49176         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49177         is now obsolete, and give a pointer to the Sun list.
49178         Add copyright notice.
49179
49180 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         * config/srclistvars.sh: Add copyright notice.
49183
49184 2006-08-14  Eric Blake  <ebb9@byu.net>
49185
49186         Import the following change from libc:
49187
49188         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49189
49190         Upstream bug 2997.
49191         * lib/misc/error.c: Add space between program name and message if file
49192         name is missing.
49193
49194 2006-08-12  Karl Berry  <karl@gnu.org>
49195
49196         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49197         remove, these originate in gnulib now.
49198
49199 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49200
49201         * doc/Makefile (standards.info standards.html standards.dvi):
49202         Also depend on make-stds.texi.
49203
49204 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49205
49206         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49207         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49208
49209         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49210         in wchar_t.  Problem reported by Eric Blake.
49211
49212         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49213         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49214         Also, help the compiler to keep LEN in a register.
49215
49216 2006-08-11  Eric Blake  <ebb9@byu.net>
49217
49218         * users.txt: Sort.  Add tar.
49219
49220 2006-08-11  Bruno Haible  <bruno@clisp.org>
49221
49222         * users.txt: New file.
49223
49224 2006-08-11  Bruno Haible  <bruno@clisp.org>
49225
49226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49227         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49228
49229 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49230
49231         * modules/snprintf (Depends-on): Remove minmax.
49232         (Maintainer): Add self and Bruno.
49233
49234 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49235
49236         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49237         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49238         (EOVERFLOW): Define if the system does not.
49239         Do not include "minmax.h"; it wasn't used.
49240         (snprintf): Don't assume size_t promotes to an unsigned type.
49241         Fix bug when generated string was too long for the buffer: the
49242         buffer's contents are supposed to be the initial prefix of the
49243         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49244         exceeds INT_MAX; do the check ourselves.
49245
49246         Import the following changes from libc:
49247
49248         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49249
49250         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49251         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49252         set wc to the byte which couldn't be converted.
49253         (re_string_reconstruct): Don't clear valid_raw_len before calling
49254         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49255         tip_context using re_string_context_at.
49256
49257         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49258
49259         * lib/posix/regex.h: g++ still cannot handled [restrict].
49260
49261         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49262
49263         * lib/posix/regex.h: Remove special handling for VMS.
49264
49265 2006-08-10  Jim Meyering  <jim@meyering.net>
49266
49267         * modules/same-inode: New module.
49268         * modules/dev-ino: New module.
49269         * modules/cycle-check: Depend on these modules, rather than simply
49270         including their .h files.
49271         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49272         required via m4/cycle-check.m4.
49273         * modules/same: Depend on new same-inode module, rather than
49274         including same-inode.h.
49275         * modules/chdir-safer: New file.
49276
49277         * modules/chown (Depends-on): Add stat-macros.
49278
49279 2006-08-10  Jim Meyering  <jim@meyering.net>
49280
49281         * m4/cycle-check.m4: New file.
49282         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49283         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49284
49285 2006-08-10  Eric Blake  <ebb9@byu.net>
49286
49287         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49288         in from original proposal.
49289
49290 2006-08-10  Eric Blake  <ebb9@byu.net>
49291         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49292
49293         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49294         namespace.
49295
49296 2006-08-10  Bruno Haible  <bruno@clisp.org>
49297
49298         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49299         as well.
49300
49301 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49302
49303         Sync from coreutils.
49304
49305         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49306
49307         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49308         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49309
49310 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49311
49312         * modules/restrict: Remove; no longer needed now that we assume
49313         Autoconf 2.59 or later.
49314         * MODULES.html.sh: Remove 'restrict'.
49315         * modules/argp (Depends-on): Remove 'restrict'.
49316         * modules/base64 (Depends-on): Likewise.
49317         * modules/gc (Depends-on): Likewise.
49318         * modules/getaddrinfo (Depends-on): Likewise.
49319         * modules/glob (Depends-on): Likewise.
49320         * modules/inet_ntop (Depends-on): Likewise.
49321         * modules/inet_pton (Depends-on): Likewise.
49322         * modules/memxor (Depends-on): Likewise.
49323         * modules/regex (Depends-on): Likewise.
49324         * modules/strtok_r (Depends-on): Likewise.
49325         * modules/time_r (Depends-on): Likewise.
49326
49327 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49328
49329         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49330         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49331         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49332         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49333         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49334         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49335         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49336         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49337
49338         Merge from coreutils.
49339         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49340         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49341         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49342         * m4/time_r.m4 (gl_TIME_R): Likewise.
49343
49344 2006-08-09  Karl Berry  <karl@gnu.org>
49345
49346         * config/srclist.txt: no more gettext-tools, per Bruno.
49347
49348 2006-08-08  Eric Blake  <ebb9@byu.net>
49349
49350         * modules/verror: New module.
49351         * MODULES.html.sh: Document it.
49352
49353 2006-08-08  Eric Blake  <ebb9@byu.net>
49354
49355         * lib/verror.h, lib/verror.c: New files.
49356
49357 2006-08-08  Eric Blake  <ebb9@byu.net>
49358
49359         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49360         verror_at_line output complies with GNU Coding Standards even when
49361         file is NULL.
49362
49363 2006-08-07  Bruno Haible  <bruno@clisp.org>
49364
49365         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
49366         versions of AIX.
49367         Reported by Ralf Wildenhues.
49368
49369 2006-08-07  Bruno Haible  <bruno@clisp.org>
49370
49371         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
49372         in an AC_DEFUN. Needed so that the autoconf snippets can use
49373         AC_REQUIRE.
49374
49375 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49376
49377         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49378         Initialize pkgdata_DATA.
49379         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
49380         overriding it.
49381
49382 2006-08-06  Eric Blake  <ebb9@byu.net>
49383
49384         * lib/error.h: Fold in some upstream changes from glibc.
49385         * lib/error.c: Likewise.
49386
49387 2006-08-04  Bruno Haible  <bruno@clisp.org>
49388
49389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49390         Make the mostlyclean-local rule depend on mostlyclean-generic.
49391         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
49392
49393 2006-07-31  Bruno Haible  <bruno@clisp.org>
49394
49395         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
49396         <stdlib.h>, <string.h>.
49397
49398 2006-07-30  Bruno Haible  <bruno@clisp.org>
49399
49400         * modules/readlink (License): Change to LGPL.
49401
49402 2006-07-30  Bruno Haible  <bruno@clisp.org>
49403
49404         * modules/javaversion (Makefile.am): Distribute javaversion.java and
49405         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
49406         set PKGDATADIR to point to it.
49407
49408 2006-07-30  Bruno Haible  <bruno@clisp.org>
49409
49410         * modules/csharpexec (configure.ac): Comment out macro invocation.
49411         * modules/javaexec (configure.ac): Likewise.
49412         * modules/javacomp-script (configure.ac): Likewise.
49413
49414         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
49415
49416 2006-07-30  Bruno Haible  <bruno@clisp.org>
49417
49418         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
49419         linked-list.
49420
49421 2006-07-30  Bruno Haible  <bruno@clisp.org>
49422
49423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
49424
49425 2006-07-30  Bruno Haible  <bruno@clisp.org>
49426
49427         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49428         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
49429         get removed.
49430
49431 2006-07-29  Bruno Haible  <bruno@clisp.org>
49432
49433         Make it possible for gnulib-tool to work with locally modified or
49434         augmented gnulib repositories.
49435         * gnulib-tool (func_usage): Document --local-dir option.
49436         (local_gnulib_dir): New variable.
49437         Handle --local-dir option.
49438         (func_lookup_file): New function.
49439         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
49440         (func_get_description, func_get_filelist, func_get_description,
49441         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
49442         func_get_automake_snippet, func_get_include_directive,
49443         func_get_license, func_get_maintainer): Use func_lookup_file.
49444         (func_import, func_create_testdir): Use func_lookup_file.
49445
49446 2006-07-29  Bruno Haible  <bruno@clisp.org>
49447
49448         * modules/setenv (Depends-on): Add unistd.
49449
49450 2006-07-29  Bruno Haible  <bruno@clisp.org>
49451
49452         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
49453
49454 2006-07-29  Bruno Haible  <bruno@clisp.org>
49455
49456         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
49457
49458 2006-07-29  Bruno Haible  <bruno@clisp.org>
49459
49460         * gnulib-tool (import, update): If there is no Makefile.am, look at
49461         aclocal.m4, instead of bailing out.
49462
49463 2006-07-29  Bruno Haible  <bruno@clisp.org>
49464
49465         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
49466         Categorize the options by when they are useful.
49467
49468 2006-07-29  Bruno Haible  <bruno@clisp.org>
49469
49470         * gnulib-tool (func_usage): Document option --no-libtool.
49471         Handle option --no-libtool.
49472         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
49473         for changed semantics of $libtool variable.
49474         (func_import): Likewise. If libtool is not used, show this through
49475         an option --no-libtool.
49476         (func_create_testdir): Update.
49477
49478 2006-07-29  Bruno Haible  <bruno@clisp.org>
49479
49480         * gnulib-tool (func_import): Extend error message about missing
49481         --doc-base.
49482
49483 2006-07-29  Bruno Haible  <bruno@clisp.org>
49484
49485         * gnulib-tool (func_import): Don't create the $docbase directory if
49486         there is no file to store there.
49487
49488 2006-07-29  Bruno Haible  <bruno@clisp.org>
49489
49490         * gnulib-tool (autoconf_minversion): If a --dir option is given and
49491         relevant, look for configure.ac there, not in the current directory.
49492         Also use a simple search for AC_PREREQ, not "autoconf --trace".
49493
49494 2006-07-29  Bruno Haible  <bruno@clisp.org>
49495
49496         * gnulib-tool (SORT): New variable.
49497         (func_usage): Undocument --assume-autoconf option.
49498         Remove --assume-autoconf option handling.
49499         (autoconf_minversion): Determine from the contents of configure.ac.
49500         (func_import): Remove autoconf_minversion handling.
49501         Suggested by Eric Blake.
49502
49503 2006-07-29  Bruno Haible  <bruno@clisp.org>
49504
49505         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
49506
49507 2006-07-29  Bruno Haible  <bruno@clisp.org>
49508
49509         * config/srclist.txt (*setenv.[ch]): Remove rules.
49510
49511 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49512
49513         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
49514
49515 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49516
49517         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
49518         arpa/inet.h.
49519
49520 2006-07-28  Simon Josefsson  <jas@extundo.com>
49521
49522         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
49523         * modules/inet_pton (Depends-on): Likewise.
49524
49525 2006-07-28  Simon Josefsson  <jas@extundo.com>
49526
49527         * m4/netinet_in_h.m4: New file.
49528
49529 2006-07-28  Simon Josefsson  <jas@extundo.com>
49530
49531         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
49532         #include's.
49533
49534 2006-07-28  Simon Josefsson  <jas@extundo.com>
49535
49536         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
49537         #include's.
49538
49539 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
49540
49541         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
49542         setgid on directories only if they set these bits.
49543         * lib/modechange.h: Remove obsolete comment about masks.
49544
49545 2006-07-28  Eric Blake  <ebb9@byu.net>
49546
49547         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
49548         macro expansion.
49549
49550 2006-07-28  Bruno Haible  <bruno@clisp.org>
49551
49552         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
49553
49554 2006-07-28  Bruno Haible  <bruno@clisp.org>
49555
49556         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
49557
49558 2006-07-28  Bruno Haible  <bruno@clisp.org>
49559
49560         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49561         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49562         Define fallbacks.
49563         Avoids link error on FreeBSD 4.x.
49564         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49565
49566         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
49567         encoding.
49568         * lib/mbswidth.c (iswcntrl): Likewise.
49569
49570 2006-07-27  Bruno Haible  <bruno@clisp.org>
49571
49572         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
49573         test.
49574
49575 2006-07-27  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
49578         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
49579         defined.
49580
49581 2006-07-26  Eric Blake  <ebb9@byu.net>
49582
49583         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
49584
49585 2006-07-26  Eric Blake  <ebb9@byu.net>
49586
49587         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
49588         like mingw that lack mkstemp.
49589         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
49590         avoid compilation warning on mingw.
49591
49592 2006-07-26  Bruno Haible  <bruno@clisp.org>
49593
49594         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
49595         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
49596         INT_FAST*_MIN, INTPTR_MIN.
49597
49598 2006-07-25  Bruno Haible  <bruno@clisp.org>
49599
49600         * modules/version-etc (Depends-on): Add stdarg.
49601
49602 2006-07-25  Bruno Haible  <bruno@clisp.org>
49603
49604         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
49605         complex commands.
49606
49607 2006-07-25  Bruno Haible  <bruno@clisp.org>
49608
49609         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
49610         defined in <stdarg.h> or config.h.
49611
49612 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49613
49614         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
49615         (gl_STDIO_SAFER): Remove.
49616
49617 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49618
49619         * MODULES.html.sh (File stream based Input/Output):
49620         Add fopen-safer, tmpfile-safer; remove stdio-safer.
49621         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
49622         * modules/fopen-safer, modules/tmpfile-safer: New files.
49623         * modules/stdio-safer: Remove.
49624
49625 2006-07-24  Bruno Haible  <bruno@clisp.org>
49626
49627         * modules/tmpdir: New file.
49628         * MODULES.html.sh (File system functions): Add it.
49629
49630 2006-07-24  Bruno Haible  <bruno@clisp.org>
49631
49632         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
49633         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
49634
49635 2006-07-24  Bruno Haible  <bruno@clisp.org>
49636
49637         * modules/clean-temp: New file.
49638
49639 2006-07-24  Bruno Haible  <bruno@clisp.org>
49640
49641         * m4/tmpdir.m4: New file, from GNU gettext.
49642
49643 2006-07-24  Bruno Haible  <bruno@clisp.org>
49644
49645         * lib/tmpdir.h: New file, from GNU gettext.
49646         * lib/tmpdir.c: New file, from GNU gettext.
49647
49648 2006-07-24  Bruno Haible  <bruno@clisp.org>
49649
49650         * lib/clean-temp.h: New file, from GNU gettext.
49651         * lib/clean-temp.c: New file, from GNU gettext.
49652
49653 2006-07-23  Eric Blake  <ebb9@byu.net>
49654
49655         * modules/stdio-safer (Files): Add tmpfile-safer.c.
49656         (Depends-on): Add binary-io.
49657
49658 2006-07-23  Eric Blake  <ebb9@byu.net>
49659
49660         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
49661
49662 2006-07-23  Eric Blake  <ebb9@byu.net>
49663
49664         * lib/tmpfile-safer.c: New file.
49665         * lib/stdio-safer.h (fopen_safer): Add prototype.
49666         * lib/stdio--.h (tmpfile): Make safer.
49667
49668 2006-07-23  Bruno Haible  <bruno@clisp.org>
49669
49670         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
49671         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
49672         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
49673         gl_linked_remove_at): Use it.
49674
49675 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49676         and Simon Josefsson <jas@extundo.com>
49677
49678         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
49679
49680         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
49681
49682 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49683
49684         * modules/close-stream: New file.
49685         * modules/closeout (Description): Make it clear that it exits
49686         with a diagnostic on error.
49687         (Depends-on): Add close-stream.  Remove fpending, stdbool.
49688         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
49689
49690 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49691
49692         * m4/close-stream.m4: New file.
49693
49694 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49695
49696         * lib/close-stream.c, lib/close-stream.h: New files.
49697
49698 2006-07-22  Bruno Haible  <bruno@clisp.org>
49699
49700         Merge from GNU gettext 0.15.
49701
49702         2006-05-01  Bruno Haible  <bruno@clisp.org>
49703
49704                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
49705
49706         2006-07-22  Bruno Haible  <bruno@clisp.org>
49707
49708                 * modules/javaversion: New file.
49709                 * MODULES.html.sh (Java): Add javaversion.
49710
49711         2006-03-12  Bruno Haible  <bruno@clisp.org>
49712
49713                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
49714
49715         2005-12-04  Bruno Haible  <bruno@clisp.org>
49716
49717                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
49718                 (untested).
49719
49720         2006-06-21  Bruno Haible  <bruno@clisp.org>
49721
49722                 Avoid warnings from recent versions of mcs.
49723                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
49724                 -o, -L, -r any more. Use options documented since mcs-1.0
49725                 instead. Similarly for -g.
49726
49727         2005-12-04  Bruno Haible  <bruno@clisp.org>
49728
49729                 * build-aux/csharpcomp.sh.in: Suffix for resources is
49730                 .resources, not .resource.
49731
49732         2005-07-09  Bruno Haible  <bruno@clisp.org>
49733
49734                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
49735                 add a .dll suffix.
49736                 Reported by Mark Junker <mjscod@gmx.de>.
49737
49738         2006-07-22  Bruno Haible  <bruno@clisp.org>
49739
49740                 * modules/gettext: Upgrade to gettext-0.15.
49741                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
49742                 m4/visibility.m4.
49743                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
49744
49745 2006-07-22  Bruno Haible  <bruno@clisp.org>
49746
49747         Merge from GNU gettext 0.15.
49748
49749         2006-03-25  Bruno Haible  <bruno@clisp.org>
49750
49751                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
49752
49753         2006-07-21  Bruno Haible  <bruno@clisp.org>
49754
49755                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
49756                 "1.1".
49757
49758         2006-05-09  Bruno Haible  <bruno@clisp.org>
49759
49760                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
49761                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
49762                 for the conftestver execution.
49763
49764         2006-05-01  Bruno Haible  <bruno@clisp.org>
49765
49766                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
49767                 optional target-version argument. Verify that the compiler
49768                 groks source of the specified source-version, or add -source
49769                 option as necessary. Verify that the compiler produces
49770                 bytecode in the specified target-version, or add -target and
49771                 -source options as necessary. Make the result of the test
49772                 available as variable CONF_JAVAC. Also log error output in
49773                 config.log.
49774
49775         2006-03-11  Bruno Haible  <bruno@clisp.org>
49776
49777                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
49778
49779         2006-05-09  Bruno Haible  <bruno@clisp.org>
49780
49781                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
49782                 CLASSPATH_SEPARATOR to a semicolon.
49783
49784         2006-03-12  Bruno Haible  <bruno@clisp.org>
49785
49786                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
49787                 available as variable CONF_JAVA, for subsequent autoconf
49788                 tests. Also log error output in config.log.
49789
49790         2006-07-19  Bruno Haible  <bruno@clisp.org>
49791
49792                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
49793                 that getline works on glibc2 systems. Needed to avoid trouble
49794                 in relocatable.c.
49795                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
49796
49797         2005-12-04  Bruno Haible  <bruno@clisp.org>
49798
49799                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
49800                 launcher (untested).
49801
49802         2005-12-04  Bruno Haible  <bruno@clisp.org>
49803
49804                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
49805
49806         2006-07-22  Bruno Haible  <bruno@clisp.org>
49807
49808                 * gettext.m4: Update from GNU gettext-0.15.
49809                 * nls.m4: Likewise.
49810                 * po.m4: Likewise.
49811                 * inttypes-pri.m4: Likewise.
49812                 * inttypes-h.m4: Renamed from inttypes.m4.
49813                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
49814
49815 2006-07-22  Bruno Haible  <bruno@clisp.org>
49816
49817         Merge from GNU gettext 0.15.
49818
49819         2005-07-05  Bruno Haible  <bruno@clisp.org>
49820
49821                 * printf-args.c (printf_fetchargs): Work around broken
49822                 definition of wint_t on mingw.
49823
49824         2005-02-12  Bruno Haible  <bruno@clisp.org>
49825
49826                 * xallocsa.h: Add extern "C" for C++.
49827
49828         2006-05-17  Bruno Haible  <bruno@clisp.org>
49829
49830                 Cygwin portability.
49831                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
49832
49833         2006-04-30  Bruno Haible  <bruno@clisp.org>
49834
49835                 * progreloc.c: Include <mach-o/dyld.h> if available.
49836                 (find_executable): Use _NSGetExecutablePath when possible.
49837
49838         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49839
49840                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
49841                 function.
49842
49843         2005-12-29  Bruno Haible  <bruno@clisp.org>
49844
49845                 * progreloc.c (set_program_name_and_installdir): Fix
49846                 compilation error.
49847
49848         2005-12-04  Bruno Haible  <bruno@clisp.org>
49849
49850                 Cygwin portability.
49851                 * progreloc.c: Include <windows.h> also on Cygwin.
49852                 (find_executable): Add support for Cygwin.
49853                 (set_program_name_and_installdir): Handle also platforms with
49854                 nonempty EXEEXT.
49855
49856         2006-07-11  Bruno Haible  <bruno@clisp.org>
49857
49858                 * javacomp.c: Fix a comment.
49859                 Reported by Jim Meyering.
49860
49861         2006-04-30  Bruno Haible  <bruno@clisp.org>
49862
49863                 * javacomp.h (compile_java_class): Add source_version,
49864                 target_version arguments.
49865                 * javacomp.c: Rewritten to choose only a compiler that
49866                 respects the specified source_version and target_version.
49867
49868         2006-06-27  Bruno Haible  <bruno@clisp.org>
49869
49870                 Assume correct S_ISDIR macro.
49871                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
49872
49873         2006-07-22  Bruno Haible  <bruno@clisp.org>
49874
49875                 * javaversion.h: New file, from GNU gettext.
49876                 * javaversion.c: New file, from GNU gettext.
49877                 * javaversion.java: New file, from GNU gettext.
49878                 * javaversion.class: New file, from GNU gettext.
49879
49880         2006-05-17  Bruno Haible  <bruno@clisp.org>
49881
49882                 Cygwin portability.
49883                 * javaexec.c (execute_java_class): Test for jview program
49884                 also on Cygwin.
49885
49886         2006-04-09  Bruno Haible  <bruno@clisp.org>
49887
49888                 * fatal-signal.c: Don't include string.h.
49889                 (at_fatal_signal): Use a copying loop instead of memcpy.
49890
49891         2005-12-04  Bruno Haible  <bruno@clisp.org>
49892
49893                 * csharpexec.c: Add support for 'clix' launcher (untested).
49894                 (execute_csharp_using_sscli): New function.
49895                 (execute_csharp_program): Call it.
49896
49897         2006-06-21  Bruno Haible  <bruno@clisp.org>
49898
49899                 Avoid warnings from recent versions of mcs.
49900                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
49901                 -o, -L, -r any more. Use options documented since mcs-1.0
49902                 instead. Similarly for -g.
49903
49904         2005-07-09  Bruno Haible  <bruno@clisp.org>
49905
49906                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
49907                 add a .dll suffix.
49908                 Reported by Mark Junker <mjscod@gmx.de>.
49909
49910         2006-06-17  Bruno Haible  <bruno@clisp.org>
49911
49912                 * config.charset: Update for NetBSD 3.0.
49913
49914         2006-05-17  Bruno Haible  <bruno@clisp.org>
49915
49916                 Cygwin portability.
49917                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
49918
49919         2006-05-16  Bruno Haible  <bruno@clisp.org>
49920
49921                 * localcharset.c [CYGWIN]: Include <windows.h>.
49922                 (get_charset_aliases): For Cygwin, return the same CPxxx
49923                 aliases list as under WIN32.
49924                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49925                 the environment variables. Fall back to GetACP().
49926
49927         2006-04-05  Bruno Haible  <bruno@clisp.org>
49928
49929                 * config.charset: Update Juan Manuel Guerrero's address.
49930
49931         2005-02-12  Bruno Haible  <bruno@clisp.org>
49932
49933                 * allocsa.h: Add extern "C" for C++.
49934
49935         2005-02-10  Bruno Haible  <bruno@clisp.org>
49936
49937                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49938                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49939
49940         2006-07-22  Bruno Haible  <bruno@clisp.org>
49941
49942                 * gettext.h: Update to GNU gettext-0.15.
49943
49944 2006-07-22  Bruno Haible  <bruno@clisp.org>
49945
49946         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49947         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49948         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49949
49950 2006-07-21  Eric Blake  <ebb9@byu.net>
49951
49952         * modules/stdlib-safer: New file.
49953         * MODULES.html.sh (File stream based Input/Output): Add
49954         stdlib-safer.
49955
49956 2006-07-21  Eric Blake  <ebb9@byu.net>
49957
49958         * lib/stdlib-safer.h: New file from coreutils, required by
49959         stdlib--.h.
49960
49961 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
49962
49963         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
49964
49965 2006-07-20  Bruno Haible  <bruno@clisp.org>
49966
49967         * gnulib-tool: Recognize new option --assume-autoconf.
49968         (autoconf_minversion): New variable.
49969         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
49970
49971 2006-07-20  Bruno Haible  <bruno@clisp.org>
49972
49973         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
49974
49975 2006-07-19  Derek R. Price  <derek@ximbiot.com>
49976
49977         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
49978         Reindent and repaginate.
49979
49980 2006-07-19  Derek Price  <derek@ximbiot.com>
49981
49982         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
49983         Correct grammar.
49984
49985 2006-07-17  Bruno Haible  <bruno@clisp.org>
49986
49987         * modules/list: New file.
49988         * modules/array-list: New file.
49989         * modules/carray-list, modules/carray-list-tests: New files.
49990         * modules/linked-list, modules/linked-list-tests: New files.
49991         * modules/avltree-list, modules/avltree-list-tests: New files.
49992         * modules/rbtree-list, modules/rbtree-list-tests: New files.
49993         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
49994         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
49995         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
49996         * modules/oset: New file.
49997         * modules/array-oset: New file.
49998         * modules/avltree-oset, modules/avltree-oset-tests: New files.
49999         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50000         * tests/test-carray_list.c: New file.
50001         * tests/test-linked_list.c: New file.
50002         * tests/test-avltree_list.c: New file.
50003         * tests/test-rbtree_list.c: New file.
50004         * tests/test-linkedhash_list.c: New file.
50005         * tests/test-avltreehash_list.c: New file.
50006         * tests/test-rbtreehash_list.c: New file.
50007         * tests/test-avltree_oset.c: New file.
50008         * tests/test-rbtree_oset.c: New file.
50009         * MODULES.html.sh (Container data structures): New section.
50010
50011 2006-07-17  Bruno Haible  <bruno@clisp.org>
50012
50013         * m4/gl_list.m4: New file.
50014
50015 2006-07-17  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/gl_list.h: New file.
50018         * lib/gl_list.c: New file.
50019         * lib/gl_array_list.h: New file.
50020         * lib/gl_array_list.c: New file.
50021         * lib/gl_carray_list.h: New file.
50022         * lib/gl_carray_list.c: New file.
50023         * lib/gl_linked_list.h: New file.
50024         * lib/gl_linked_list.c: New file.
50025         * lib/gl_anylinked_list1.h: New file.
50026         * lib/gl_anylinked_list2.h: New file.
50027         * lib/gl_avltree_list.h: New file.
50028         * lib/gl_avltree_list.c: New file.
50029         * lib/gl_anyavltree_list1.h: New file.
50030         * lib/gl_anyavltree_list2.h: New file.
50031         * lib/gl_rbtree_list.h: New file.
50032         * lib/gl_rbtree_list.c: New file.
50033         * lib/gl_anyrbtree_list1.h: New file.
50034         * lib/gl_anyrbtree_list2.h: New file.
50035         * lib/gl_anytree_list1.h: New file.
50036         * lib/gl_anytree_list2.h: New file.
50037         * lib/gl_linkedhash_list.h: New file.
50038         * lib/gl_linkedhash_list.c: New file.
50039         * lib/gl_anyhash_list1.h: New file.
50040         * lib/gl_anyhash_list2.h: New file.
50041         * lib/gl_avltreehash_list.h: New file.
50042         * lib/gl_avltreehash_list.c: New file.
50043         * lib/gl_rbtreehash_list.h: New file.
50044         * lib/gl_rbtreehash_list.c: New file.
50045         * lib/gl_anytreehash_list1.h: New file.
50046         * lib/gl_anytreehash_list2.h: New file.
50047
50048         * lib/gl_oset.h: New file.
50049         * lib/gl_oset.c: New file.
50050         * lib/gl_array_oset.h: New file.
50051         * lib/gl_array_oset.c: New file.
50052         * lib/gl_avltree_oset.h: New file.
50053         * lib/gl_avltree_oset.c: New file.
50054         * lib/gl_rbtree_oset.h: New file.
50055         * lib/gl_rbtree_oset.c: New file.
50056         * lib/gl_anytree_oset.h: New file.
50057
50058 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50059
50060         * m4/mkancesdirs.m4: New file.
50061         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50062         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50063         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50064         it.
50065
50066 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50067
50068         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50069         * lib/mkancesdirs.h: New files.
50070         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50071         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50072         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50073         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50074         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50075         callers changed.  Revamp internals significantly, by not
50076         attempting to create directories that are temporarily more
50077         permissive than the final results.  Do not attempt to use
50078         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50079         This removes some race conditions, fixes some bugs, and simplifies
50080         things.  Use new dirchownmod function to do owner and mode changes.
50081         * lib/mkdir-p.h: Likewise.
50082         * lib/modechange.c (octal_to_mode): New function.
50083         (struct mode_change): New member mentioned.
50084         (make_node_op_equals): New arg mentioned.  All callers changed.
50085         (mode_compile): Keep track of which mode bits the user has explicitly
50086         mentioned.
50087         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50088         New arg PMODE_BITS, to keep track of which mode bits the user
50089         mentioned; it treats S_ISUID and S_ISGID speciall.
50090         All callers changed.
50091         * lib/modechange.h: Likewise.
50092
50093 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50094
50095         * MODULES.html.sh: Add mkancestors.
50096         * modules/mkancesdirs: New module.
50097         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50098         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50099         The chdir-safer and afs files are now orphans; I'll remove them
50100         unless someone speaks up.
50101         Add lib/dirchownmod.c, lib/dirchownmod.h.
50102         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50103         Add lchown, mkancesdirs.
50104         (Maintainer): Add self.
50105
50106 2006-07-15  Karl Berry  <karl@gnu.org>
50107
50108         * gnulib-tool: help message wording/arrangement.
50109
50110 2006-07-14  Simon Josefsson  <jas@extundo.com>
50111
50112         * doc/gnulib.texi (Libtool and Windows): New section.
50113
50114 2006-07-12  Simon Josefsson  <jas@extundo.com>
50115
50116         * modules/gendocs (License): Fix license, approved by Karl.
50117
50118 2006-07-12  Eric Blake  <ebb9@byu.net>
50119
50120         * MODULES.html.sh: Add gendocs.
50121
50122 2006-07-11  Eric Blake  <ebb9@byu.net>
50123
50124         * modules/fdl: New module, to install doc/fdl.texi.
50125         * MODULES.html.sh: Add new section for documentation modules.
50126         * gnulib-tool: Avoid space-tab.
50127         (--doc-base): New option, to manage files from doc.
50128
50129 2006-07-11  Eric Blake  <ebb9@byu.net>
50130
50131         * m4/absolute-header.m4: Fix comments to match recent change.
50132
50133 2006-07-11  Eric Blake  <ebb9@byu.net>
50134
50135         * gnulib-tool: List --doc-base before --tests-base.
50136
50137 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50138
50139         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50140
50141 2006-07-11  Bruno Haible  <bruno@clisp.org>
50142
50143         * README: Mention where to put documentation.
50144
50145 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50146
50147         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50148
50149 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50150
50151         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50152         to stdint.m4.
50153
50154 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50155
50156         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50157         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50158         "no/such/file/stdint.h" when there is no such file, so that
50159         the resulting C code can be parsed by dodgy compilers.
50160         Problems reported by Bob Proulx.
50161
50162 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50163
50164         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50165         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50166         macros into the GNU _D_EXACT_NAMLEN.
50167         * lib/savedir.c:  Likewise.
50168         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50169
50170 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50171         and Paul Eggert  <eggert@cs.ucla.edu>
50172
50173         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50174         * m4/savedir.m4:
50175         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50176         macros into the GNU _D_EXACT_NAMLEN.
50177
50178 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50179
50180         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50181         around the absolute name, to work around a problem with the HP-UX
50182         11.23 native C compiler, reported by Bob Proulx.
50183
50184 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50185
50186         * doc/maintain.texi, make-stds.texi: Sync from
50187         <http://savannah.gnu.org/projects/gnustandards>.
50188
50189 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50190
50191         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50192
50193 2006-07-09  Jim Meyering  <jim@meyering.net>
50194
50195         * m4/glob.m4: Remove a doubled word in a comment.
50196
50197 2006-07-09  Jim Meyering  <jim@meyering.net>
50198
50199         * lib/argp-pv.c: Remove a doubled word in a comment.
50200         * lib/check-version.c (check_version): Likewise.
50201         * lib/javacomp.c (compile_java_class): Likewise.
50202
50203 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50204
50205         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50206         for the benefit of people using Autoconf 2.60.  If you want to
50207         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50208         (or m4/onceonly.m4, if pre-2.57) manually.
50209
50210 2006-07-08  Jim Meyering  <jim@meyering.net>
50211
50212         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50213         comment.
50214         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50215         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50216         comment.
50217
50218 2006-07-08  Jim Meyering  <jim@meyering.net>
50219
50220         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50221
50222 2006-07-07  Simon Josefsson  <jas@extundo.com>
50223
50224         * tests/test-crc.c: Change expected crc value, the test vector
50225         were probably computed using the old broken crc.c?
50226
50227 2006-07-06  Simon Josefsson  <jas@extundo.com>
50228
50229         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50230         now the canonical place for the M4 file).
50231
50232         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50233         from the sys_socket dependency now.
50234
50235         * modules/inet_pton (Files): Ditto.
50236
50237         * modules/inet_ntop (Files): Ditto.
50238
50239 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50240
50241         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50242         not gl_PREREQ_GETUSERSHELL.
50243
50244 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50245
50246         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50247         with only one argument, for Autoconf 2.60.
50248         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50249         expand to nothing, so add a shell command to avoid syntax error.
50250         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50251
50252 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50253
50254         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50255
50256 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50257
50258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50259         no longer needed.  Check for isblank decl.
50260         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50261         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50262         of existence.
50263
50264 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50265
50266         * lib/getloadavg.c: Use __VMS, not VMS.
50267         * lib/getopt.c: Likewise.
50268         * lib/getpagesize.h: Likewise.
50269         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50270         and probably does not work.
50271
50272 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50273
50274         * lib/.cppi-disable: Add wcwidth.
50275         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50276         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50277         (ISGRAPH): Remove.  All uses changed to isgraph.
50278         (FOLD) [!defined _LIBC]: Remove special case.
50279         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50280         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50281         HAVE_ISBLANK.
50282         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50283         case.
50284
50285 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50286
50287         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50288         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50289         brackets.  Other minor changes to suppress some compiler
50290         warnings.
50291
50292 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50293         and Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50296         of invoking obsolescent AC_HEADER_DIRENT macro.
50297         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50298         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50299         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50300         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50301         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50302         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50303         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50304         * m4/readdir.m4: Remove; no longer needed.
50305
50306 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50307         and Paul Eggert  <eggert@cs.ucla.edu>
50308
50309         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50310         Don't worry about this obsolete case any more.
50311         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50312         directories.
50313         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50314         worry about this obsolete case any more.
50315         * lib/fts.c: Likewise.
50316         * lib/getcwd.c: Likewise.
50317         * lib/glob.h: Likewise.
50318         * lib/savedir.c: Likewise.
50319
50320 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50321
50322         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50323         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50324         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50325         needed.
50326         All uses removed.
50327         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50328         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50329         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50330         needed.
50331         * m4/getdate.m4 (gl_GETDATE): Likewise.
50332         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50333         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50334         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50335         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50336         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50338         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50339         needed.
50340
50341 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * lib/memcasecmp.c: Include <limits.h>.
50344         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50345         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50346         Don't assume isdigit succeeds only on '0' through '9'.
50347
50348 2006-07-05  Eric Blake  <ebb9@byu.net>
50349
50350         * modules/getaddrinfo (Depends-on): Add snprintf.
50351
50352 2006-07-05  Eric Blake  <ebb9@byu.net>
50353
50354         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50355         to avoid 'header present but could not be compiled' on cygwin.
50356
50357 2006-07-05  Eric Blake  <ebb9@byu.net>
50358
50359         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50360         missing from netdb.h.
50361         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50362
50363 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50364
50365         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
50366         no longer needed.
50367         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
50368         * m4/getdate.m4 (gl_GETDATE): Likewise.
50369         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50370         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50371         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50372         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50373         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50374
50375 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50376
50377         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
50378         All uses of is_space replaced by isspace.
50379         * lib/exit.h: Don't talk about STDC_HEADERS.
50380         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
50381         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
50382         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
50383         replaced by isprint etc.
50384         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
50385         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50386         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
50387         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
50388         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
50389         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50390
50391 2006-07-05  Bruno Haible  <bruno@clisp.org>
50392
50393         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
50394         the function exists, before testing against AIX.
50395         Reported by Martin Lambers <marlam@marlam.de>.
50396
50397 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50398
50399         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
50400         From Mark D. Baushke.
50401
50402 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50403
50404         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
50405         to the absolute name, not just one, to bypass Sun C 5.8's
50406         "warning: #include of /usr/include/... may be non-portable".
50407
50408 2006-07-04  Eric Blake  <ebb9@byu.net>
50409
50410         * modules/dirname-tests: New test module.
50411         * tests/test-dirname.c: New file, replacing dirname.c
50412         TEST_DIRNAME section that was recently deleted.
50413
50414 2006-07-04  Bruno Haible  <bruno@clisp.org>
50415
50416         Assume ANSI C header files and <ctype.h> functions.
50417         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
50418         (mbsnwidth): Use isprint, iscntrl instead.
50419
50420 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50421
50422         Merge from coreutils.
50423         * MODULES.html.sh: Add xstrtold.
50424         * modules/xstrtold: New file.
50425         * modules/cycle-check (Files): Add lib/same-inode.h.
50426         * modules/dirname (Files): Add m4/double-slash-root.m4.
50427         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
50428         * modules/mkdir-p (Files): Add lib/same-inode.h.
50429         * modules/same (Files): Add lib/same-inode.h.
50430
50431 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50432
50433         * m4/absolute-header.m4: Renamed from full-header-path.m4.
50434         This is to keep the terminology clean; POSIX talks about
50435         "absolute pathnames", not "full pathnames", but the GNU
50436         Coding Standards say to use "path" for something else;
50437         so use "absolute" to keep both sides happy.
50438         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
50439         Set gl_absolute_header, not gl_full_header_path.
50440         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
50441         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
50442         All uses changed.
50443
50444         Merge from coreutils.
50445
50446         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50447
50448         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
50449         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
50450         want to require the building of c-strtod.o.
50451         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
50452         needs -lm directly.
50453         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
50454
50455         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
50458         --as-needed option if available.  Problem reported by Albert Chin in
50459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
50460         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
50461         cc merely issues a bunch of annoying warnings for --as-needed
50462         (this problem was reported by Bob Proulx).  Also, try linking with
50463         -lm to detect a bug in binutils 2.16 (this problem was reported
50464         by Ralf Wildenhues).
50465
50466         2006-06-18  Jim Meyering  <jim@meyering.net>
50467
50468         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
50469         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
50470         macro.
50471         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
50472         also check for glibc-2.4's abort-inducing bug.
50473
50474         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
50475         Low-probability clean-up should be to use rmdir to get rid of
50476         the just-created directory, not unlink.
50477
50478         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
50479         configure fail, and request a bug report to inform us about it.
50480         Add a comment that, barring reports to the contrary, in 2007 we'll
50481         assume ftruncate is universally available.
50482
50483         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50484
50485         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
50486
50487         2006-03-12  Jim Meyering  <jim@meyering.net>
50488
50489         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
50490         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
50491         * m4/same.m4 (gl_SAME): Likewise.
50492         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
50493
50494         2006-03-11  Eric Blake  <ebb9@byu.net>
50495
50496         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
50497         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
50498         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
50499         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
50500
50501 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
50504         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
50505         reported by Mark D. Baushke, one in
50506         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
50507
50508         Merge from coreutils.
50509
50510         * lib/.cppi-disable: Add stdint_.h.
50511         * lib/.cvsignore: Add stdint.h.
50512
50513         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50514
50515         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
50516         both double and long double versions.
50517         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
50518         * lib/xstrtold.c: New file.
50519         * lib/xstrtod.h (xstrtold): New decl.
50520
50521         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50522
50523         * lib/filemode.c (setst): Remove.
50524         (strmode): Rewrite to avoid setst.  This makes the code shorter,
50525         (arguably) clearer, and the generated code is a bit smaller on my
50526         Debian GNU/Linux stable x86 host.
50527
50528         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50529
50530         * lib/filemode.c: Include "filemode.h" first, to test the interface.
50531         Assume that filemode.h includes sys/types.h and sys/stat.h.
50532         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
50533         (ftypelet): Reorder to put common cases first, for efficiency.
50534         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
50535         to do 'M'.
50536         (strmode): Renamed from mode_string, and now stores 12 bytes instead
50537         of 10, for compatibility with FreeBSD.  All callers changed.
50538         (filemodestring): Now stores 12 bytes instead of 10, and sets file
50539         types that can't be deduced solely from st_mode.  First arg is now a
50540         const pointer.
50541         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
50542         (strmode): Renamed from mode_string.
50543         (filemodestring): New decl.
50544         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
50545         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
50546         needed.
50547         (S_ISPORT, S_ISWHT): New macros, if not already defined.
50548
50549         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50550
50551         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
50552         fsusage.h now does that.  Include fsusage.h first, to test interface.
50553         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
50554         at most one method (the old code could have generated decls that
50555         didn't conform to C89, not that this was ever exercised).
50556         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
50557
50558         2006-03-19  Jim Meyering  <jim@meyering.net>
50559
50560         Work even in a chroot where d_ino values for entries in "/"
50561         don't match the stat.st_ino values for the same names.
50562         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
50563         number, iterate through all entries again, using lstat instead.
50564         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
50565         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
50566
50567         * lib/getcwd.c (__getcwd): Clarify a comment.
50568         Use memcpy in place of a call to strcpy.
50569
50570         2006-03-12  Jim Meyering  <jim@meyering.net>
50571
50572         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
50573         matches that of the current directory (which we're about to chdir ".."
50574         out of), then save the dev-ino of the parent, instead.
50575
50576         * lib/same-inode.h (SAME_INODE): New file/macro.
50577         * lib/chdir-safer.c (SAME_INODE): Remove definition.
50578         Include "same-inode.h", instead.
50579         * lib/same.c: Likewise.
50580         * lib/cycle-check.h: Include "same-inode.h".
50581         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
50582         * lib/cycle-check.c (SAME_INODE): Remove definition.
50583         * lib/root-dev-ino.h: Include "same-inode.h".
50584
50585         2006-03-11  Eric Blake  <ebb9@byu.net>
50586
50587         * lib/same.c (same_name): s/base_name/last_component/
50588         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
50589         * lib/filenamecat.c (file_name_concat): Likewise.
50590
50591         2006-03-11  Eric Blake  <ebb9@byu.net>,
50592                     Paul Eggert  <eggert@cs.ucla.edu>
50593
50594         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
50595         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
50596         drive prefix.
50597         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
50598         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
50599         (last_component): New method.
50600         * lib/dirname.c (dir_len): Determine when drive letters need a
50601         subsequent slash.  Preserve // when it is special.
50602         (dir_name): Don't append dot when drive letter is absolute.
50603         [TEST_DIRNAME]: Move into a full-blown gnulib test.
50604         * lib/basename.c (base_name): New semantics - malloc the result.
50605         Preserve // when it is special.  Preserve relative files that look
50606         like drive letters.
50607         (base_len): Preserve // when it is special.
50608         (last_component): New method, similar to old base_name semantics.
50609         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
50610         base_name.  Strip redundant slashes from ///.
50611
50612 2006-07-03  Jim Meyering  <jim@meyering.net>
50613
50614         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
50615         macro is used before the first cycle_check call.
50616
50617 2006-07-03  Eric Blake  <ebb9@byu.net>
50618
50619         * modules/dirname (Depends-on): Add xstrndup.
50620
50621 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
50624         test cases, so that config.log is a bit easier to follow.
50625
50626 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50627
50628         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
50629         both are 64 bits, since this seems to be the tradition, and this
50630         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
50631         we ever run into a host that prefers long long to long in this
50632         case, we'll need another configure-time test.  Problem reported by
50633         Jim Meyering.
50634
50635 2006-07-02  Eric Blake  <ebb9@byu.net>
50636
50637         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
50638
50639 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50640
50641         * modules/inttypes (Depends-on): No longer depends on stdint.
50642         * modules/stdint (Description): Say more about assumptions.
50643         Say that the fast types might differ.  Say macros are used.
50644         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
50645         (Makefile.am): Revise list of substituted symbols to match
50646         new stdint.m4.
50647         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
50648         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
50649         * tests/test-stdint.c (verify_same_types)
50650         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
50651         the code conforms to C99/C89.
50652         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
50653         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
50654
50655 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
50658         but fix a bug, by requiring at least 64 bits.
50659         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50660         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
50661         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
50662         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
50663
50664         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
50665         changes.  Make 2.59 a prerequisite.  Check and substitute for
50666         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
50667         inttypes.h.  Do not use special include files; just use the
50668         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
50669         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
50670         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
50671         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
50672         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
50673         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
50674         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
50675         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
50676         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
50677         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
50678         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
50679         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
50680         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
50681         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
50682         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
50683         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
50684         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
50685         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
50686         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
50687         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
50688         WINT_MAX.  Check for C99 conformance more strictly, by detecting
50689         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
50690         not check for things that C99 does not require, e.g., int8_t.  If
50691         a test isn't needed unless <stdint.h> isn't working, and is
50692         unlikely to be needed for any other reason, then don't do it
50693         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
50694         size_t, since we assume C89 freestanding at least.  Do not check
50695         for sig_atomic_t, wchar_t, or wint_t, since the code now does
50696         the right thing even if the types are not defined.  Instead use:
50697         (gl_STDINT_TYPE_PROPERTIES): New macro.
50698         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
50699         testing whether <sys/types.h> clashes, as Autoconf does this for
50700         us now.  All uses removed.
50701         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
50702         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
50703         (gl_CHECK_TYPE_SAME):
50704         Remove; no longer needed.
50705         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
50706         exists, since we'll return 0 anyway in that case.
50707         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
50708
50709 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50710
50711         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
50712         possible collision with system files.
50713         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
50714         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
50715         WCHAR_MIN and WCHAR_MAX in this case.
50716         (<stddef.h>): Do not include; no longer needed.
50717         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
50718         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
50719         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
50720         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
50721         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
50722         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
50723         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
50724         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
50725         !defined(__c99))]: Include in this case too, since it's harmless
50726         now.
50727         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
50728         dangerous to do so.
50729         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
50730         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
50731         (_STDINT_MIN, _STDINT_MAX): New macros.
50732         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
50733         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
50734         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
50735         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
50736         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
50737         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
50738         macros, not typedefs; this simplifies things quite a bit.
50739         Use long int for all types narrower than int64_t.
50740         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
50741         Define in terms of long long int or int64_t or long int,
50742         not int64_t or int32_t.  This saves some compile-time testing.
50743         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
50744         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
50745         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
50746         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
50747         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
50748         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
50749         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
50750         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
50751         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
50752         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
50753         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50754         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50755         undef any previous version and define our own version, for
50756         simplicity and consistency with the new macros for types.
50757         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50758         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50759         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
50760         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
50761         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
50762         @WINT_T_SUFFIX@ to keep things simple here.
50763         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
50764         Simplify by assuming typical 8/16/32/64 host, since we're
50765         already doing that elsewhere anyway.
50766         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
50767         and assume long long int is 64 bits if available.  This
50768         speeds up 'configure'.
50769
50770 2006-07-01  Eric Blake  <ebb9@byu.net>
50771
50772         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
50773         Reported by Andreas Buening.
50774
50775 2006-07-01  Eric Blake  <ebb9@byu.net>
50776
50777         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
50778
50779 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50780
50781         * lib/getaddrinfo.c: fixed typo
50782
50783 2006-06-29  Jim Meyering  <jim@meyering.net>
50784
50785         * modules/strftime (Maintainer): Add my name, since with the
50786         FPRINTFTIME changes strftime.c has forked from glibc.
50787
50788 2006-06-29  Eric Blake  <ebb9@byu.net>
50789
50790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
50791
50792 2006-06-29  Eric Blake  <ebb9@byu.net>
50793
50794         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
50795
50796 2006-06-29  Eric Blake  <ebb9@byu.net>
50797
50798         * lib/stat_.h: New file.
50799
50800 2006-06-29  Eric Blake  <ebb9@byu.net>
50801
50802         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
50803         unused static function.
50804
50805 2006-06-29  Eric Blake  <ebb9@byu.net>
50806
50807         * doc/functions.texi (Function Portability): Document missing lstat
50808         on mingw.
50809
50810 2006-06-29  Eric Blake  <ebb9@byu.net>
50811
50812         * MODULES.html.sh: Add sys_stat.
50813         * modules/sys_stat: New module.
50814         * modules/mkstemp (Depends-on): Add sys_stat.
50815
50816 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50817
50818         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
50819
50820 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50821
50822         * m4/c-bs-a.m4: Removed.
50823
50824 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50825
50826         * lib/strftime.c: Assume strftime() exists.
50827
50828 2006-06-29  Derek Price  <derek@ximbiot.com>
50829
50830         * modules/c-bs-a: Removed - \a is C89.
50831         * MODULES.html.sh: Remove c-bs-a.
50832
50833 2006-06-29  Bruno Haible  <bruno@clisp.org>
50834
50835         * modules/wcwidth (License): Change to LGPL.
50836
50837 2006-06-28  Simon Josefsson  <jas@extundo.com>
50838
50839         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
50840         on _WIN32.
50841
50842         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
50843         getnameinfo.
50844
50845 2006-06-28  Simon Josefsson  <jas@extundo.com>
50846
50847         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
50848
50849 2006-06-28  Simon Josefsson  <jas@extundo.com>
50850
50851         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
50852         functions there.  It will succeed on Windows XP, but on Windows
50853         2000 and (presumably) earlier, it will fail, and use the internal
50854         re-implementation.
50855         (use_win32_p): New function.
50856         (getaddrinfo): Use strtoul on servname, to support numeric ports.
50857         Support AI_NUMERICSERV to disable getservbyname.
50858         (getnameinfo): New function, only supports
50859         NI_NUMERICHOST|NI_NUMERICSERV for now.
50860
50861         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
50862         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
50863         getnameinfo.
50864
50865 2006-06-28  Eric Blake  <ebb9@byu.net>
50866
50867         * modules/wcwidth: New file.
50868         * modules/mbchar (Depends-on): Add wcwidth.
50869         * modules/mbswidth (Depends-on): Add wcwidth.
50870         * MODULES.html.sh: Add wcwidth.
50871
50872 2006-06-28  Eric Blake  <ebb9@byu.net>
50873
50874         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
50875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
50876
50877 2006-06-28  Eric Blake  <ebb9@byu.net>
50878
50879         * lib/xvasprintf.h: Fix comments.
50880
50881 2006-06-28  Eric Blake  <ebb9@byu.net>
50882
50883         * lib/mbchar.h (wcwidth): Include wcwidth.h.
50884         * lib/mbswidth.c (wcwidth): Move from here...
50885         * lib/wcwidth.h: ...to this new file.
50886
50887 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50888
50889         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
50890
50891         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
50892         it's obsolete.
50893         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
50894
50895 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50896
50897         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
50898         Autoconf 2.60 says this stuff was obsolete.
50899
50900 2006-06-28  Bruno Haible  <bruno@clisp.org>
50901
50902         * modules/wcwidth (Files): Add m4/wchar_t.m4.
50903
50904 2006-06-28  Bruno Haible  <bruno@clisp.org>
50905
50906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
50907         gt_TYPE_WCHAR_T.
50908
50909 2006-06-28  Bruno Haible  <bruno@clisp.org>
50910
50911         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
50912         declaration for wcwidth.
50913         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
50914
50915 2006-06-28  Bruno Haible  <bruno@clisp.org>
50916
50917         * lib/mkdtemp.c [MINGW]: Include <io.h>.
50918         (mkdir): Define using _mkdir.
50919
50920 2006-06-28  Bruno Haible  <bruno@clisp.org>
50921
50922         * lib/getaddrinfo.h: Fix POSIX URL.
50923         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50924         _WIN32.
50925         (use_win32_p): Make static.
50926         (getaddrinfo): Reject service name if it is empty or does not consist
50927         solely of decimal digits, or if its value is > 65535.
50928         (getnameinfo): Remove useless casts.
50929
50930 2006-06-27  Simon Josefsson  <jas@extundo.com>
50931
50932         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50933         Eggert and Martin Lambers.
50934
50935 2006-06-27  Simon Josefsson  <jas@extundo.com>
50936
50937         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50938         Eggert and Martin Lambers.
50939
50940 2006-06-27  Bruno Haible  <bruno@clisp.org>
50941
50942         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50943         result to 0, not to empty.
50944         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50945
50946 2006-06-27  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50949
50950 2006-06-26  Simon Josefsson  <jas@extundo.com>
50951
50952         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50953         present.
50954
50955 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
50956
50957         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
50958         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
50959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
50960
50961 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
50962
50963         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
50964
50965 2006-06-26  Bruno Haible  <bruno@clisp.org>
50966
50967         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
50968
50969 2006-06-26  Bruno Haible  <bruno@clisp.org>
50970
50971         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
50972
50973 2006-06-26  Bruno Haible  <bruno@clisp.org>
50974
50975         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
50976         SGI C compiler in pre-C99 mode.
50977         Suggested by Mark D. Baushke and Larry Jones.
50978
50979 2006-06-26  Bruno Haible  <bruno@clisp.org>
50980
50981         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
50982         WCHAR_MAX.
50983         Reported by Mark D. Baushke and Larry Jones.
50984
50985 2006-06-26  Bruno Haible  <bruno@clisp.org>
50986
50987         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
50988         in pre-C99 mode.
50989         Suggested by Mark D. Baushke and Larry Jones.
50990
50991 2006-06-23  Simon Josefsson  <jas@extundo.com>
50992             Bruno Haible  <bruno@clisp.org>
50993
50994         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
50995         Emit mostlyclean-local rule.
50996         (func_emit_tests_Makefile_am): Likewise.
50997         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
50998
50999 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51000
51001         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51002
51003 2006-06-23  Bruno Haible  <bruno@clisp.org>
51004
51005         * tests/test-stdint.c: Update to match ISO C 99 Technical
51006         Corrigendum 1.
51007
51008 2006-06-23  Bruno Haible  <bruno@clisp.org>
51009
51010         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51011
51012 2006-06-23  Bruno Haible  <bruno@clisp.org>
51013
51014         * lib/stdint_.h: Treat IRIX like OpenBSD.
51015
51016 2006-06-23  Bruno Haible  <bruno@clisp.org>
51017
51018         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51019         ISO C 99 Technical Corrigendum 1.
51020
51021 2006-06-22  Simon Josefsson  <jas@extundo.com>
51022
51023         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51024         MinGW.
51025
51026 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51027
51028         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51029         needed.  Some compiler complained about some of them.  Problem reported
51030         by Larry Jones in
51031         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51032
51033 2006-06-21  Simon Josefsson  <jas@extundo.com>
51034
51035         * tests/test-getaddrinfo.c: New file.
51036
51037         * modules/getaddrinfo-tests: New file.
51038
51039         * MODULES.html.sh: Add inet_pton.
51040
51041         * modules/inet_pton: New file.
51042
51043 2006-06-21  Simon Josefsson  <jas@extundo.com>
51044
51045         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51046         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51047         of using the (limited) gnulib implementation on Windows XP.
51048
51049         * m4/inet_pton.m4: New file.
51050
51051 2006-06-21  Simon Josefsson  <jas@extundo.com>
51052
51053         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51054         variable.
51055
51056         * lib/socket_.h: Don't define WINVER.
51057
51058         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51059         slightly modified to work in gnulib.
51060
51061 2006-06-21  Simon Josefsson  <jas@extundo.com>
51062
51063         * doc/gnulib.texi (Windows sockets): Add.
51064
51065 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51066
51067         * lib/read-file.c (fread_file): Start with buffer allocation of
51068         0 bytes rather than 1 byte; this simplifies the code.
51069         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51070         code to free buffer and save/restore errno.
51071         (internal_read_file): Remove unused local.
51072
51073 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51074
51075         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51076         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51077         Problem reported by Denis Excoffier in
51078         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51079
51080 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51081
51082         * modules/sys_socket, modules/socklen: Include sys/types since
51083         FreeBSD 4.x's sys/socket.h needs it.
51084
51085 2006-06-19  Simon Josefsson  <jas@extundo.com>
51086
51087         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51088
51089 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51090
51091         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51092
51093 2006-06-19  Bruno Haible  <bruno@clisp.org>
51094
51095         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51096         and FULL_PATH_INTTYPES_H in angle brackets.
51097         Reported by Mark D. Baushke <mdb@gnu.org>.
51098
51099 2006-06-17  Eric Blake  <ebb9@byu.net>
51100
51101         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51102         errno.
51103
51104 2006-06-17  Bruno Haible  <bruno@clisp.org>
51105
51106         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51107         <sys/inttypes.h>.
51108
51109 2006-06-17  Bruno Haible  <bruno@clisp.org>
51110
51111         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51112         whether errno is declared. Assume <errno.h> declares errno.
51113
51114 2006-06-17  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51117
51118 2006-06-17  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51121         problem on Solaris 2.5.1.
51122
51123 2006-06-16  Eric Blake  <ebb9@byu.net>
51124
51125         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51126         * lib/unicodeio.c [!defined errno]: Likewise.
51127         * lib/strtol.c [!defined errno]: Likewise.
51128         * lib/strtod.c [!defined errno]: Likewise.
51129
51130 2006-06-15  Eric Blake  <ebb9@byu.net>
51131
51132         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51133
51134 2006-06-15  Eric Blake  <ebb9@byu.net>
51135
51136         * config/srclist.txt (ssize_t.m4): Lose sync.
51137
51138 2006-06-15  Bruno Haible  <bruno@clisp.org>
51139
51140         * modules/stdint (Files): Include m4/full-header-path.m4,
51141         m4/size_max.m4, m4/wchar_t.m4.
51142         (Makefile.am): Many more substitutions.
51143         * modules/stdint-tests: New file.
51144         * tests/test-stdint.c: New file.
51145
51146 2006-06-15  Bruno Haible  <bruno@clisp.org>
51147
51148         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51149         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51150         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51151         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51152         gl_CHECK_TYPE_SAME): New macros.
51153
51154 2006-06-15  Bruno Haible  <bruno@clisp.org>
51155
51156         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51157
51158 2006-06-15  Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/stdint_.h: Rewritten to be fully auto-configured.
51161         Fixes bug on HP-UX/IA64.
51162
51163 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51164
51165         * lib/getdate.y (__attribute__): Don't define if already defined.
51166         Problem reported by Larry Jones.
51167         * lib/utimens.c (__attribute__): Likewise.
51168
51169 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51172         reported by Andreas Schwab.
51173
51174 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51175             Bruno Haible  <bruno@clisp.org>
51176
51177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51178         check for the declaration of strnlen and a run test that exposes the
51179         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51180         rpl_strndup.
51181
51182 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51183             Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51186
51187 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51188
51189         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51190         compile test, for Tru64 4.0D.
51191
51192 2006-05-28  Karl Berry  <karl@gnu.org>
51193
51194         * config/srclist.txt (printf-args.c): lose sync.
51195
51196 2006-05-26  Martin Lambers  <marlam@marlam.de>
51197
51198         * lib/getpass.c: Updates the test for the native W32 API, and adds
51199         missing includes, thus fixing compilation warnings.
51200
51201 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51202
51203         * lib/exclude.c (exclude_fnmatch): New function.
51204         (excluded_file_name): Call exclude_fnmatch.
51205         * lib/exclude.h (excluded_file_name): New prototype
51206
51207 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         * lib/tempname.c (small_open, large_open): New macros.
51210         (__open, __open64) [!_LIBC]: Remove.
51211         (__gen_tempname): Use small_open and large_open instead of __open
51212         and __open64.  This fixes a portability bug on HP-UX 11.11i
51213         reported by Simon Wing-Tang in
51214         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51215
51216 2006-05-24  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51219         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51220         Reported by Thorsten Maerz <torte@netztorte.de> via
51221         Aaron Stone <aaron@serendipity.cx>.
51222
51223 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51224
51225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51226         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51227         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51228         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51229         not really conditional on the cache.
51230         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51231
51232 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51233
51234         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51235         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51236         (my_usleep): Don't mishandle maximum value.
51237
51238 2006-05-19  Jim Meyering  <jim@meyering.net>
51239
51240         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51241
51242 2006-05-17  Bruno Haible  <bruno@clisp.org>
51243
51244         Cygwin portability.
51245         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51246
51247 2006-05-17  Bruno Haible  <bruno@clisp.org>
51248
51249         * lib/stdint_.h: Fix recognition of Cygwin.
51250
51251 2006-05-15  Bruno Haible  <bruno@clisp.org>
51252
51253         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51254         on libtool patch by Ralf Wildenhues.
51255
51256 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51257
51258         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51259         test for C99 conformance; (bool) 0.5 is an integer constant
51260         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51261         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51262
51263 2006-05-11  Simon Josefsson  <jas@extundo.com>
51264
51265         * m4/xvasprintf.m4: Fix obvious typo.
51266
51267 2006-05-11  Jim Meyering  <jim@meyering.net>
51268
51269         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51270         James Lemley.
51271
51272 2006-05-10  Simon Josefsson  <jas@extundo.com>
51273
51274         * lib/md4.c: Typo fix, update copyright years.
51275         (K1, K2): Don't use L because it turn computations into 64-bit on
51276         64-bit platforms.
51277
51278 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51281         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51282         unwanted sign propagation, e.g., on hosts with 64-bit int.
51283         There still are some problems with reeelly weird theoretical hosts
51284         (e.g., 33-bit int) but it's not worth worrying about now.
51285         * lib/sha1.c (rol): Likewise.
51286         (K1, K2, K3, K4): Remove unnecessary L suffix.
51287
51288 2006-05-10  Bruno Haible  <bruno@clisp.org>
51289
51290         * lib/des.c: Cast to avoid warnings.
51291
51292 2006-05-09  Bruno Haible  <bruno@clisp.org>
51293
51294         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51295         (Depends-on): Depend also on xsize, stdarg.
51296         (configure.ac): Add gl_XVASPRINTF.
51297
51298 2006-05-09  Bruno Haible  <bruno@clisp.org>
51299
51300         * m4/xvasprintf.m4: New file.
51301
51302 2006-05-09  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51305         (EOVERFLOW): Define fallback value.
51306         (xstrcat): New function.
51307         (xvasprintf): Recognize the special case of a string concatenation.
51308
51309 2006-05-08  Eric Blake  <ebb9@byu.net>
51310
51311         * gnulib-tool (func_version): Base copyright year on CVS date.
51312         (func_emit_copyright_notice): New function.
51313         (func_emit_lib_Makefile_am): Use it.
51314         (func_emit_tests_Makefile_am): Likewise.
51315         (func_import): Likewise.
51316
51317 2006-05-08  Bruno Haible  <bruno@clisp.org>
51318
51319         * modules/stdarg: New file.
51320         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51321
51322 2006-05-08  Bruno Haible  <bruno@clisp.org>
51323
51324         * m4/stdarg.m4: New file, from GNU gettext.
51325
51326 2006-05-08  Bruno Haible  <bruno@clisp.org>
51327
51328         * config/srclist.txt (build-aux/config.rpath): different from latest
51329         release.
51330
51331 2006-05-08  Bruno Haible  <bruno@clisp.org>
51332
51333         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51334
51335 2006-05-05  Jim Meyering  <jim@meyering.net>
51336
51337         * m4/warning.m4: New file, derived from bison's file by the same name.
51338
51339 2006-05-03  Bruno Haible  <bruno@clisp.org>
51340
51341         * lib/stdint_.h: Shorter URL.
51342         * lib/inttypes.h: Likewise.
51343
51344 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51345
51346         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51347
51348 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51349
51350         * lib/verify.h: Document the internals better.  Most of this change
51351         was written by Bruno Haible.
51352
51353 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51354
51355         * doc/verify.texi: New file, partly based on a proposal by
51356         Bruno Haible.
51357
51358 2006-05-02  Bruno Haible  <bruno@clisp.org>
51359
51360         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51361         test from here...
51362         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51363
51364 2006-04-29  Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
51367         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
51368
51369 2006-04-29  Bruno Haible  <bruno@clisp.org>
51370
51371         * gnulib-tool: Make --update option actually work.
51372
51373 2006-04-29  Bruno Haible  <bruno@clisp.org>
51374
51375         * doc/gcd.texi: New file.
51376         * doc/gnulib.texi: Include it.
51377
51378 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
51379
51380         * lib/getdate.y (get_date): When adding relative date, start with the
51381         initial time, not with the result of the first mktime call.
51382
51383 2006-04-25  Bruno Haible  <bruno@clisp.org>
51384
51385         * gnulib-tool (func_import): Output the include directives in three
51386         blocks, sorted separately.
51387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51388
51389 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51390
51391         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
51392         to define main with arguments, for C++.  Reported by Eric Blake.
51393         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51394         Prefer 'int main ()' to 'int main (void)', for C++.
51395         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
51397         for 'main', for C99 and C++.
51398
51399 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51400
51401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
51402         Don't assume that exit status -1 is valid.
51403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51404         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51405         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
51406         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
51407         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
51408         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
51409         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
51410         functions can be used without declaring them, or that you can
51411         exit with status -1.
51412         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
51413
51414 2006-04-24  Karl Berry  <karl@gnu.org>
51415
51416         * config/srclist.txt (longdouble.m4): sync lost.
51417
51418 2006-04-24  Eric Blake  <ebb9@byu.net>
51419
51420         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
51421
51422 2006-04-24  Bruno Haible  <bruno@clisp.org>
51423
51424         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
51425         poll() implementation in AIX.
51426         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51427
51428 2006-04-24  Bruno Haible  <bruno@clisp.org>
51429
51430         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
51431         assigned exactly once.
51432
51433 2006-04-23  Claudio Fontana  <claudio@gnu.org>
51434             Bruno Haible  <bruno@clisp.org>
51435
51436         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
51437         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
51438         for AM_CPPFLAGS.
51439
51440 2006-04-23  Bruno Haible  <bruno@clisp.org>
51441
51442         * modules/copy-file: Depend on unistd.
51443         * modules/execute: Likewise.
51444         * modules/fatal-signal: Likewise.
51445         * modules/findprog: Likewise.
51446         * modules/mkdtemp : Likewise.
51447         * modules/pipe: Likewise.
51448         * modules/wait-process: Likewise.
51449
51450 2006-04-23  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
51453         condition was already detected.
51454         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51455
51456 2006-04-23  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/copy-file.c: Include <unistd.h> unconditionally.
51459         * lib/execute.c: Likewise.
51460         * lib/fatal-signal.c: Likewise.
51461         * lib/findprog.c: Likewise.
51462         * lib/mkdtemp.c: Likewise.
51463         * lib/pipe.h: Likewise.
51464         * lib/pipe.c: Likewise.
51465         * lib/wait-process.h: Likewise.
51466
51467 2006-04-23  Bruno Haible  <bruno@clisp.org>
51468
51469         * gnulib-tool (func_usage): Fix --import description. Document
51470         --update.
51471         (func_import): Create temporary file in a temporary directory, if
51472         --dry-run is specified. Silence errors from 'grep' when there are no
51473         m4 files in $m4dir.
51474         (func_create_testdir): Silence errors from 'grep' when there are no
51475         m4 files in $m4dir.
51476         Reported by Karl Berry <karl@freefriends.org>.
51477
51478 2006-04-20  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
51481         one argument, so that the code will be portable to Autoconf 2.60.
51482         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
51483         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51484         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
51485
51486 2006-04-19  Derek Price  <derek@ximbiot.com>
51487             Eric Blake  <ebb9@byu.net>
51488
51489         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
51490         rather than "/full/path.h".  Update comment to match.  Shorten &
51491         generalize m4_translit call via AS_TR_CPP.
51492
51493 2006-04-19  Derek Price  <derek@ximbiot.com>
51494             Eric Blake  <ebb9@byu.net>
51495
51496         * lib/inttypes.h: Correct grammar in comment.
51497
51498 2006-04-18  Derek Price  <derek@ximbiot.com>
51499             Paul Eggert  <eggert@cs.ucla.edu>
51500
51501         * modules/inttypes: New file.
51502         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
51503
51504 2006-04-18  Derek Price  <derek@ximbiot.com>
51505             Paul Eggert  <eggert@cs.ucla.edu>
51506
51507         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
51508         New files.
51509
51510 2006-04-18  Derek Price  <derek@ximbiot.com>
51511             Paul Eggert  <eggert@cs.ucla.edu>
51512
51513         * lib/inttypes.h: New file.
51514         * lib/strtoimax.c: Assume <inttypes.h>.
51515
51516 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
51517
51518         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
51519         isn't mounted.  Problem reported by Kir Kolyshkin.
51520
51521 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51522
51523         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
51524         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
51525         Derek R. Price.
51526         * lib/regex.h (RE_DUP_MAX): Update comment to match current
51527         implementation.
51528
51529 2006-04-12  Eric Blake  <ebb9@byu.net>
51530
51531         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
51532         is now done automatically by the corresponding Autoconf macro.
51533
51534 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
51535
51536         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
51537         time_r.h.
51538
51539 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         Merge regex changes from libc, removing some of our
51542         POSIX-conformance changes that were rejected and redoing them in a
51543         less-intrusive way.
51544
51545         * lib/regcomp.c (re_compile_internal, init_dfa):
51546         Length arg is now size_t, not Idx.  All uses changed.
51547         (peek_token): Forward decl now says internal_function.
51548         (__re_error_msgid, __re_error_msgid_idx):
51549         Now static rather than extern with attribute_hidden.
51550         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
51551         For some reason libc prefers K&R style defns for external functions.
51552         (regerror) [!defined _LIBC]: Likewise.
51553         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
51554         (seek_collating_symbol_entry, lookup_collation_sequence_value):
51555         (build_range_exp, build_collating_symbol):
51556         Use K&R-style defn.
51557         (re_compile_fastmap): Use '\0' to memset, not 0.
51558         (utf8_sb_map): Make the calculations more obvious.
51559         (init_dfa, parse_bracket_exp, build_charclass_op):
51560         Call calloc and cast result, as glibc does.
51561         (init_word_char, fetch_token, peek_token, peek_token_bracket):
51562         (build_range_exp, build_collating_symbol):
51563         Now internal functions.
51564
51565         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
51566
51567         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
51568         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
51569         Don't depend on VMS; depend on __VMS instead, for POSIX
51570         namespace cleanness.
51571         (regoff_t): Define to ssize_t, not long int.
51572
51573         Remove the REG_ macros named below.  Instead, make the old names
51574         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
51575         __USE_GNU_REGEX.
51576         (REG_BACKSLASH_ESCAPE_IN_LISTS):
51577         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
51578         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
51579         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
51580         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
51581         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
51582         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
51583         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
51584         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
51585         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
51586         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
51587         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
51588         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
51589         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
51590         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
51591         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
51592         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
51593         (REG_NREGS):
51594         Remove.  All uses replaced by the old RE_* names.
51595         (RE_BACKSLASH_ESCAPE_IN_LISTS):
51596         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
51597         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
51598         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
51599         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
51600         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
51601         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
51602         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
51603         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
51604         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
51605         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
51606         Don't bother having these macros be independent of each others'
51607         values, since they no longer exist in the POSIX name space.
51608
51609         Rename the following member names back to their old names,
51610         unless !__USE_GNU_REGEX.  All uses changed back.
51611         (buffer): Renamed from re_buffer.
51612         (allocated): Renamed from re_allocated.
51613         (used): Renamed from re_used.
51614         (syntax): Renamed from re_syntax.
51615         (fastmap): Renamed from re_fastmap.
51616         (translate): Renamed from re_translate.
51617         (can_be_null): Renamed from re_can_be_null.
51618         (regs_allocated): Renamed from re_regs_allocated.
51619         (fastmap_accurate): Renamed from re_fastmap_accurate.
51620         (no_sub): Renamed from re_no_sub.
51621         (not_bol): Renamed from re_not_bol.
51622         (not_eol): Renamed from re_not_eol.
51623         (newline_anchor): Renamed from re_newline_anchor.
51624         (num_regs): Renamed from rm_num_regs.
51625         (start): Renamed from rm_start.
51626         (end): Renamed from rm_end.
51627
51628         (free_state): Move up a bit.
51629
51630         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
51631         #define to be empty.
51632         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
51633         when that is what is intended.
51634         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
51635         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
51636         (MAX): New macro.
51637         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
51638         All uses changed back to re_malloc, etc.  It's now the caller's
51639         responsibility to check for overflow; all callers changed.
51640         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
51641         (re_x2nrealloc): Remove.
51642         (free_state): Remove decl.
51643
51644         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
51645         (re_set_registers, re_exec):
51646         Use K&R-style defn.
51647
51648         2006-01-31  Roland McGrath  <roland@redhat.com>
51649
51650         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
51651         Reported by Mike Frysinger <vapier@gentoo.org>.
51652
51653         2006-01-15  Andreas Jaeger  <aj@suse.de>
51654
51655         [BZ #1950]
51656         * lib/regex_internal.c (re_string_reconstruct): Adjust for
51657         build_wcs_upper_buffer change.
51658         (build_wcs_upper_buffer): Change return type.
51659
51660         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
51661
51662         * lib/regex_internal.h: Include <stdint.h> if available.
51663
51664         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
51665
51666         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
51667
51668         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51669
51670         * lib/regcomp.c: Adjust for changed secondary hash function.
51671
51672         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
51673
51674         * lib/regex.h: Pretty printing.
51675         Clean up namespace a bit.
51676
51677         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
51678
51679         * lib/regexec.c (update_cur_sifted_state, check_arrival,
51680         check_arrival_add_next_nodes): Avoid using uninitialized variable.
51681
51682         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51683                     Ulrich Drepper  <drepper@redhat.com>
51684
51685         [BZ #1302]
51686         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
51687         changed.
51688         (bitset_word_t): Renamed from bitset_word.  All uses changed.
51689
51690         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
51691
51692         [BZ #281]
51693         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
51694         * lib/regcomp.c: Remove unnecessary uses of
51695         unsigned RE_TRANSLATE_TYPE.
51696         * lib/regex_internal.h: Likewise.
51697         * lib/regex_internal.c: Likewise.
51698         * lib/regexec.c: Likewise.
51699         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
51700
51701         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
51702
51703         * lib/regexec.c (find_recover_state): Remove unnecessary
51704         initialization.
51705         (transit_state_bkref): Make DFA a const pointer.
51706         (get_subexp): Likewise.
51707         (check_arrival): Likewise.
51708         (update_cur_sifted_state): Likewise.
51709         (re_search_internal): Likewise.
51710         (prune_impossible_nodes): Likewise.
51711         (acquire_init_state_context): Likewise.
51712         (proceed_next_node): Likewise.
51713         (set_regs): Likewise.
51714         (free_fail_stack_return): Likewise.
51715         (check_arrival_expand_ecl): Mark DFA parameter as const.
51716         (check_arrival_expand_ecl_sub): Likewise.
51717         (check_subexp_limits): Likewise.
51718         (sub_epsilon_src_nodes):  Likewise.
51719         (add_epsilon_src_nodes):  Likewise.
51720         (merge_state_array): Likewise.
51721         (update_regs): Likewise.
51722         (build_trtable): Likewise.
51723         (sift_states_backward): Mark MCTX parameter as const.
51724         (build_sifted_states): Likewise.
51725         (update_cur_sifted_state): Likewise.
51726         (sift_states_mkref): Likewise.
51727         (check_arrival_expand_ecl): Mark eclosure as const.
51728         (check_dst_limits_calc_pos_1): Likewise.
51729         * lib/regex_internal.h (re_match_context_t): Make dfa a const
51730         pointer.
51731
51732         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
51733
51734         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
51735         (transit_state_sb): Likewise.
51736         (transit_state_mb): Likewise.
51737         (sift_states_iter_mb): Likewise.
51738         (check_arrival_add_next_nodes): Likewise.
51739         (check_node_accept_bytes): Change first parameter to pointer-to-const.
51740         [_LIBC] (re_search_2_stub): Use mempcpy.
51741
51742         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
51743         mbrtowc for very simple UTF-8 case.
51744
51745         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
51746         a pointer-to-const.
51747         (re_acquire_state_context): Likewise.
51748         * lib/regex_internal.h: Adjust prototypes.
51749
51750         * lib/regex.c: Prevent using C++ compilers.
51751
51752         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
51753         (re_acquire_state_context): Likewise.
51754
51755 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51756
51757         * modules/regex (Depends-on): Add ssize_t.
51758
51759 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51760
51761         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
51762         translation table.
51763
51764 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51765
51766         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
51767
51768 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
51769             Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
51772         <sys/types.h> and <inttypes.h>.
51773
51774 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51775
51776         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
51777         `__error_t_defined', so argp.h will not typedef the former.
51778
51779 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
51780
51781         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
51782         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
51783         glibc names.  Even if glibc is changed to conform to POSIX, the
51784         traditional names will be available anyway, since regex depends on
51785         the extensions module.  Also, fix a longstanding typo in the
51786         implementation of Spencer ERE test #75 from grep 2.3.  Problems
51787         reported by Emanuele Giaquinta.  Also, change sense of cached
51788         variable, so that the message makes sense.
51789
51790 2006-03-24  Simon Josefsson  <jas@extundo.com>
51791
51792         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
51793         including some doc fixes.
51794         (base64_encode_alloc): Fix +1 bug on allocation failures.
51795
51796 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51797
51798         * lib/base64.c (base64_encode): Do not read past end of array with
51799         unsanitized input on systems with CHAR_BIT > 8.
51800
51801 2006-03-24  Eric Blake  <ebb9@byu.net>
51802
51803         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
51804
51805 2006-03-22  Karl Berry  <karl@gnu.org>
51806
51807         * config/srclist.txt (*setenv.[ch]): get from coreutils.
51808         * config/srclistvars.sh (COREUTILS): new var.
51809
51810 2006-03-17  Jim Meyering  <jim@meyering.net>
51811
51812         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
51813         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
51814
51815 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
51818         no longer needs it.  Instead, check that regoff_t is as least
51819         as wide as ptrdiff_t.
51820
51821         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
51822         so that our regex.h stays compatible with the installed regex.
51823         This is helpful for installers who configure --without-included-regex.
51824         Problem reported by Emanuele Giaquinta.
51825
51826 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
51829         Typedef to long int, not to off_, as POSIX will likely change
51830         in that direction.
51831
51832 2006-03-15  Eric Blake  <ebb9@byu.net>
51833
51834         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
51835
51836 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51837
51838         * lib/argp-help.c (validate_uparams): Fix typo
51839         * lib/argp-parse.c (argp_default_options): Consistently begin help
51840         messages with a lowercase letter.
51841
51842 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
51843
51844         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
51845         overrun buffers and shouldn't be used (much as gets shouldn't be
51846         used).
51847         * lib/time_r.c (asctime_r, ctime_r): Likewise.
51848
51849 2006-03-08  Simon Josefsson  <jas@extundo.com>
51850
51851         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
51852         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51853
51854 2006-03-08  Simon Josefsson  <jas@extundo.com>
51855
51856         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
51857         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51858
51859 2006-03-08  Simon Josefsson  <jas@extundo.com>
51860
51861         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
51862         signal that configure disabled the device.
51863
51864 2006-03-08  Simon Josefsson  <jas@extundo.com>
51865
51866         * build-aux/maint.mk: Fix refresh-po, to handle no translated
51867         languages.
51868
51869 2006-03-07  Simon Josefsson  <jas@extundo.com>
51870
51871         * modules/getopt (Depends-on): Add unistd.
51872
51873         * modules/unistd: New file.
51874
51875 2006-03-07  Simon Josefsson  <jas@extundo.com>
51876
51877         * modules/gc-random: New file.
51878
51879 2006-03-07  Simon Josefsson  <jas@extundo.com>
51880
51881         * m4/unistd_h.m4: New file.
51882
51883 2006-03-07  Simon Josefsson  <jas@extundo.com>
51884
51885         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
51886         test to be side-effect free by storing the result in the cache
51887         variable gl_cv_lib_readline, and moving the assignment of
51888         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
51889         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51890
51891 2006-03-07  Simon Josefsson  <jas@extundo.com>
51892
51893         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
51894         error on missing devices (the functions will return an error).
51895
51896         * m4/gc.m4: Move random stuff to gc-random.m4
51897
51898 2006-03-07  Simon Josefsson  <jas@extundo.com>
51899
51900         * lib/unistd_.h: New file.
51901
51902 2006-03-07  Simon Josefsson  <jas@extundo.com>
51903
51904         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
51905
51906 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51907
51908         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
51909         Problem reported by Juan Manuel Guerrero.
51910
51911 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51912
51913         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
51914         the unistd module.
51915         * lib/getlogin_r.c: Likewise.
51916         * lib/getlogin_r.h: Likewise.
51917         * lib/glob.c: Likewise.
51918         * lib/pagealign_alloc.c: Likewise.
51919         * lib/unistd_.h: Remove; no longer needed.
51920
51921 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51922
51923         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51924         Add unistd.
51925         * modules/c-stack (Depends-on): Add unistd.
51926         * modules/getlogin_r: Likewise.
51927         * modules/glob: Likewise.
51928         * modules/pagealign_alloc: Likewise.
51929         * modules/unistd (Files): Remove lib/unistd_.h.
51930         (EXTRA_DIST): Remove.
51931         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51932         need unistd_.h.
51933         (MOSTLYCLEANFILES): Remove unistd.h-t.
51934
51935 2006-03-03  Simon Josefsson  <jas@extundo.com>
51936
51937         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51938
51939 2006-03-03  Simon Josefsson  <jas@extundo.com>
51940
51941         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51942         libidn and bison.
51943
51944 2006-03-03  Simon Josefsson  <jas@extundo.com>
51945
51946         * build-aux/maint.mk: Add indent target.
51947
51948 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51949
51950         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51951         our replacement poll.h in any case, to avoid a differing
51952         declaration from a system header.  Seen on AIX.
51953
51954 2006-03-01  Simon Josefsson  <jas@extundo.com>
51955
51956         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
51957         <kasal@ucw.cz>.
51958
51959 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51960
51961         * modules/gettime (Depends-on): Add extensions module.
51962         * modules/nanosleep (Depends-on): Likewise.
51963         * modules/settime (Depends-on): Likewise.
51964
51965 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51966
51967         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
51968         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
51969         pedantically.
51970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51971         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
51972
51973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
51974         not "==".  Reported by Ralf Wildenhues.
51975
51976 2006-03-01  Karl Berry  <karl@gnu.org>
51977
51978         * doc/Copyright/request-*: new files, synced from gnuorg.
51979
51980 2006-03-01  Karl Berry  <karl@gnu.org>
51981
51982         * config/srclist.txt (Copyright/*): new entries.
51983
51984 2006-02-28  Simon Josefsson  <jas@extundo.com>
51985
51986         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
51987
51988 2006-02-27  Simon Josefsson  <jas@extundo.com>
51989
51990         * lib/base64.h: Indent #define's.  From Jim Meyering
51991         <jim@meyering.net>.
51992
51993 2006-02-27  Jim Meyering  <jim@meyering.net>
51994
51995         Revert the change of 2006-02-24, so these files can continue
51996         to be sync'd from gettext.
51997         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
51998         of `config.h'.
51999
52000 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52001
52002         * modules/intprops: New file.
52003         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52004         Add intprops.
52005         * modules/getloadavg (Files): Remove lib/intprops.h.
52006         (Depends-on): Add intprops.
52007         * modules/human: Likewise.
52008         * modules/inttostr: Likewise.
52009         * modules/openat: Likewise.
52010         * modules/sig2str: Likewise.
52011         * modules/userspec: Likewise.
52012         * modules/utimecmp: Likewise.
52013         * modules/xnanosleep: Likewise.
52014         * modules/xstrtol: Likewise.
52015
52016 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52017
52018         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52019         * modules/lock-tests (TESTS): Use $(EXEEXT).
52020         * modules/tls-tests: Likewise.
52021         * modules/argp-tests: Likewise.
52022         (check_PROGRAMS): New var, replacing...
52023         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52024
52025 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52026
52027         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52028         `config.h'.
52029
52030 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52031
52032         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52033
52034 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52035
52036         Sync from coreutils.
52037         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52038         gl_CHDIR_SAFER.
52039
52040 2006-02-22  Jim Meyering  <jim@meyering.net>
52041
52042         Sync from coreutils.
52043         * m4/chdir-safer.m4: New file.
52044
52045 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52046
52047         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52048         AT_FDCWD exceeds INT_MAX.
52049         * lib/openat.h (AT_FDCWD): Likewise.
52050
52051 2006-02-17  Eric Blake  <address@hidden>
52052
52053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52054
52055 2006-02-16  Simon Josefsson  <jas@extundo.com>
52056
52057         * modules/getaddrinfo (Depends-on): Add sys_socket.
52058
52059 2006-02-15  Simon Josefsson  <jas@extundo.com>
52060
52061         * build-aux/maint.mk: Add dsyntax-check rule.
52062
52063 2006-02-15  Eric Blake  <ebb9@byu.net>
52064
52065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52066         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52067         'present but cannot compile' warnings on cygwin.
52068         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52069         use ws2tcpip.h if sys/socket.h works.
52070         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52071         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52072
52073 2006-02-14  Simon Josefsson  <jas@extundo.com>
52074
52075         * modules/maintainer-makefile (Files): Rename.
52076
52077         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52078         and (the local) Makefile.cfg to maint-cfg.mk.
52079
52080         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52081         to the latter.
52082
52083         * modules/maintainer-makefile: New module.
52084
52085         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52086         severaly stripped to make it possible to build it up from scratch
52087         with reliable tests.
52088
52089         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52090         fixes to permit overriding the default actions when configure and
52091         makefile are not available.
52092
52093 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         Sync from coreutils.
52096         * modules/lstat (Depends-on): Don't depend on xalloc.
52097         (License): Change from GPL to LGPL, since this is now simply a
52098         replacement for a libc function.
52099
52100 2006-02-14  Jim Meyering  <jim@meyering.net>
52101
52102         Sync from coreutils.
52103
52104         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52105         failure on deficient systems, and simplify gnulib lgpl dependencies.
52106         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52107         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52108
52109         * lib/xalloc-die.c: Remove unused definition of N_.
52110
52111 2006-02-14  Jim Meyering  <jim@meyering.net>
52112
52113         Sync from coreutils.
52114         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52115         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52116         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52117         double-quote uses of that variable, to accommodate the rare case in
52118         which getmntent is available in none of the libraries checked.  This
52119         happens at least on FreeBSD 5.0.
52120
52121 2006-02-13  Simon Josefsson  <jas@extundo.com>
52122
52123         * gnulib-tool (Usage): Fix --import, from
52124         karl@freefriends.org (Karl Berry).
52125
52126 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52127
52128         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52129
52130 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52131
52132         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52133         "autoupdate" on 2005-12-12.
52134
52135 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         * modules/closeout (Depends-on): Remove atexit.
52138
52139 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52140
52141         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52142         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52143
52144 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52145
52146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52147         __EXTENSIONS__ if this causes compilation to fail.  Problem
52148         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52149         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52150
52151 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52154         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52156         All uses changed.
52157
52158 2006-01-26  Simon Josefsson  <jas@extundo.com>
52159
52160         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52161         prototype is visible on mingw32.
52162
52163         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52164         for mingw32.
52165
52166         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52167         mingw32).
52168
52169 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52170
52171         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52172         attempt to open for write; this always fails, at least on POSIX
52173         hosts.  This reinstates the 2006-01-09 change, which was
52174         inadvertently removed.
52175
52176 2006-01-26  Bruno Haible  <bruno@clisp.org>
52177
52178         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52179         Reported by Paul Eggert.
52180
52181 2006-01-26  Bruno Haible  <bruno@clisp.org>
52182             Paul Eggert  <eggert@cs.ucla.edu>
52183
52184         * lib/stdbool_.h (_Bool)
52185         [(! (defined __cplusplus || defined __BEOS__)
52186           && !defined __GNUC__
52187           && !(defined __HP_cc || defined __xlc__
52188                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52189                || defined __sgi))]:
52190         #define to signed char in these cases too; this simplifies
52191         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52192         etc., separately) and makes it more conservative.
52193
52194 2006-01-25  Simon Josefsson  <jas@extundo.com>
52195
52196         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52197         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52198         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52199
52200 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52201
52202         * lib/argp-namefrob.h: Bugfix. Remove stray #
52203
52204 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52205
52206         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52207         so that we test the test.
52208         Check for yet another HP-UX cc bug involving *bool |= bool.
52209
52210 2006-01-25  Karl Berry  <karl@gnu.org>
52211
52212         * config/srclist.txt (vasnprintf.c): sync lost.
52213
52214 2006-01-25  Jim Meyering  <jim@meyering.net>
52215
52216         Sync from the stable (b5) branch of coreutils:
52217
52218         * lib/fts.c (fts_children): Don't let close() clobber errno from
52219         failed fchdir().
52220
52221         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52222         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52223         a dangling symlink.  That can also happen at least for ELOOP.
52224         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52225         FYI, this bug predates the inclusion of fts.c in coreutils.
52226
52227         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52228         in their own block, so pre-c99 compilers don't object.
52229
52230         Avoid the double-free (first in fts_read, second in fts_close) that
52231         would occur when an `active' directory is made inaccessible (e.g.,
52232         via chmod a-x) during a traversal.
52233         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52234         before returning.  Reproduce this failure by
52235         mkdir -p a/b; cd a; chmod a-x . b
52236         Reported by Stavros Passas.
52237
52238 2006-01-25  Jim Meyering  <jim@meyering.net>
52239
52240         * lib/fileblocks.c: Remove more useless parentheses.
52241         * lib/readutmp.h: Likewise.
52242
52243 2006-01-25  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52246         warnings.
52247         Reported by Paul Eggert.
52248
52249 2006-01-25  Bruno Haible  <bruno@clisp.org>
52250
52251         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52252         rid of a trap command. For Solaris sh.
52253         Reported by Mark D. Baushke <mdb@gnu.org>.
52254
52255 2006-01-24  Simon Josefsson  <jas@extundo.com>
52256
52257         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52258         Bruno.
52259
52260 2006-01-24  Karl Berry  <karl@gnu.org>
52261
52262         * config/srclist.txt (argp-namefrob.h): sync lost.
52263
52264 2006-01-24  Jim Meyering  <jim@meyering.net>
52265
52266         * modules/openat (Files): Add lib/intprops.h.
52267         From Mark D. Baushke.
52268
52269 2006-01-24  Jim Meyering  <jim@meyering.net>
52270
52271         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52272         Reported by Mark D. Baushke.
52273
52274 2006-01-24  Jim Meyering  <jim@meyering.net>
52275
52276         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52277
52278 2006-01-24  Bruno Haible  <bruno@clisp.org>
52279
52280         * modules/strnlen (Maintainer): Change from glibc to all.
52281
52282 2006-01-24  Bruno Haible  <bruno@clisp.org>
52283
52284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52285         Patch by Paul Eggert.
52286
52287 2006-01-24  Bruno Haible  <bruno@clisp.org>
52288
52289         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52290         already has it.
52291         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52292         2005-11-26.
52293
52294         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52295         'signed char' to avoid problems with the built-in _Bool type.
52296         Reported by Paul Eggert on 2005-11-26.
52297
52298 2006-01-24  Bruno Haible  <bruno@clisp.org>
52299
52300         * gnulib-tool (func_import): Avoid constructing complicated sed
52301         expressions inside backquote.
52302         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52303
52304 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52305
52306         These changes imported from libc.
52307         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52308         test and two separate function calls.
52309         * lib/strndup.c (__strndup): Add libc_hidden_def.
52310
52311 2006-01-23  Simon Josefsson  <jas@extundo.com>
52312
52313         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52314         Remove the test_*_SOURCES variable: automake infers it by default.
52315         * modules/tls-tests: Likewise.
52316
52317 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52318
52319         Work around porting bugs reported by Dieter in
52320         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52321         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52322         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52323         Include "getopt.h" first, to check interface.
52324         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52325         !HAVE_DECL_GETENV.
52326         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52327         (__strndup): Revert to K&R-style function dfns, the glibc style.
52328         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52329         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52330         Include strnlen.h first, to get prototype properly.
52331         (strnlen): Renamed from __strnlen.
52332         Remove weak alias.
52333
52334 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52335
52336         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52337
52338 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52339
52340         * config/srclist.txt: Adjust to reflect glibc reorganization.
52341         This affects only comments.
52342
52343 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52344
52345          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52346          Reported by Bruce Korb <bkorb@gnu.org>.
52347
52348 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52351         to pacify gcc -Wswitch-default.
52352
52353 2006-01-22  Bruno Haible  <bruno@clisp.org>
52354
52355         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52356         temporary buffer for sprintf, take into account the precision also
52357         for 'd', 'i', 'u', 'o', 'x', 'X'.
52358
52359 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52360
52361         * modules/argp-tests: New module
52362         * tests/test-argp.c: New file
52363         * tests/test-argp-2.sh: New file
52364
52365 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52366
52367         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
52368         (__argp_base_name): Removed
52369         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
52370         typo.
52371         (__argp_base_name): Provide macro definition or extern declaration
52372         depending on the configuration
52373
52374 2006-01-20  Simon Josefsson  <jas@extundo.com>
52375
52376         * modules/inet_ntop (Depends-on): Depend on sys_socket.
52377
52378 2006-01-20  Simon Josefsson  <jas@extundo.com>
52379
52380         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
52381
52382 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52383
52384         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
52385         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
52386         Suggested by Bruno Haible.
52387
52388 2006-01-20  Karl Berry  <karl@gnu.org>
52389
52390         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
52391         until changes propagate, I guess.
52392
52393 2006-01-19  Simon Josefsson  <jas@extundo.com>
52394
52395         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
52396
52397 2006-01-19  Simon Josefsson  <jas@extundo.com>
52398
52399         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
52400
52401 2006-01-19  Simon Josefsson  <jas@extundo.com>
52402
52403         * gnulib-tool: Set check_PROGRAMS.
52404
52405         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52406         modules/des-tests, modules/gc-arcfour-tests,
52407         modules/gc-arctwo-tests, modules/gc-des-tests,
52408         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52409         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52410         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52411         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52412         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52413         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
52414         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
52415         test_*_SOURCES.
52416
52417 2006-01-18  Simon Josefsson  <jas@extundo.com>
52418
52419         * modules/socklen (Depends-on): Depend on sys_socket.
52420
52421 2006-01-18  Simon Josefsson  <jas@extundo.com>
52422
52423         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52424         modules/des-tests, modules/gc-arcfour-tests,
52425         modules/gc-arctwo-tests, modules/gc-des-tests,
52426         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52427         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52428         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52429         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52430         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52431         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
52432         $(EXEEXT) to automake TESTS variable, for mingw32.
52433
52434 2006-01-17  Simon Josefsson  <jas@extundo.com>
52435
52436         * modules/socklen (Include): Need sys/socket.h.
52437
52438 2006-01-17  Bruno Haible  <bruno@clisp.org>
52439
52440         * modules/ssize_t (Include): Add <sys/types.h>.
52441
52442 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
52443
52444         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
52445         it's not portable and it doesn't work with cross-compiles.
52446         Problem reported by Bruno Haible.  Fix missing-$ typo in
52447         'test "gl_cv_ignore_unused_libraries" ...' that prevented
52448         -zignore from being used with Sun's C compiler.
52449
52450 2006-01-12  Simon Josefsson  <jas@extundo.com>
52451
52452         * lib/base64.c: Fix warning, reported by Bruno Haible
52453         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
52454
52455 2006-01-12  Bruno Haible  <bruno@clisp.org>
52456
52457         * modules/ldd: New file.
52458         * build-aux/ldd.sh.in: New file.
52459         * MODULES.html.sh (Support for building libraries and executables): Add
52460         ldd.
52461
52462 2006-01-12  Bruno Haible  <bruno@clisp.org>
52463
52464         * m4/ldd.m4: New file.
52465
52466 2006-01-12  Bruno Haible  <bruno@clisp.org>
52467
52468         * gnulib-tool (func_import, func_create_testdir): Don't go into an
52469         endless loop while replacing $auxdir with build-aux.
52470
52471 2006-01-11  Simon Josefsson  <jas@extundo.com>
52472
52473         * lib/stdint_.h (SIZE_MAX): Add missing (.
52474
52475 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         Sync from coreutils.
52478         * lib/md5.c: Fix commentary typos.
52479         (alignof, UNALIGNED_P): No need for a GCC-specific version.
52480         * lib/md5.h (__attribute__): Remove; unused.
52481         * lib/sha1.c: Fix commentary to match md5 better.
52482         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
52483         so that we don't need to worry about alignment.  All uses changed.
52484         This merges the 2005-10-28 md5 change into sha1.
52485
52486 2006-01-11  Jim Meyering  <jim@meyering.net>
52487
52488         Sync from coreutils.
52489         * lib/md5.c (OP): Fix spacing.
52490
52491 2006-01-11  Bruno Haible  <bruno@clisp.org>
52492
52493         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52494         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
52495         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
52496
52497 2006-01-11  Bruno Haible  <bruno@clisp.org>
52498
52499         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52500         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
52501         the "early" section as well.
52502
52503 2006-01-11  Bruno Haible  <bruno@clisp.org>
52504
52505         Avoid "ar: no archive members specified" error on MacOS X.
52506         * gnulib-tool (func_modules_add_dummy): New function.
52507         (func_import, func_create_testdir): Invoke it.
52508
52509 2006-01-11  Bruno Haible  <bruno@clisp.org>
52510
52511         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
52512         with $auxdir in AC_CONFIG_FILES statements.
52513
52514 2006-01-11  Bruno Haible  <bruno@clisp.org>
52515
52516         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52517         Initialize also noinst_HEADERS to empty.
52518
52519 2006-01-11  Bruno Haible  <bruno@clisp.org>
52520
52521         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
52522         variables.
52523         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
52524         autoreconf.
52525
52526 2006-01-11  Bruno Haible  <bruno@clisp.org>
52527
52528         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
52529         overridable by the user.
52530         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52531
52532 2006-01-10  Simon Josefsson  <jas@extundo.com>
52533
52534         * modules/sys_socket: New file.
52535
52536 2006-01-10  Simon Josefsson  <jas@extundo.com>
52537
52538         * m4/sys_socket_h.m4: New file.
52539
52540 2006-01-10  Simon Josefsson  <jas@extundo.com>
52541
52542         * lib/socket_.h: New file.
52543
52544 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52545
52546         * modules/readutmp (Maintainer): Add myself.
52547
52548 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
52551         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
52552         People who are still concerned with buggy memcmp implementations
52553         can invoke gl_FUNC_MEMCMP themselves.
52554
52555 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52556
52557         * lib/regex_internal.h (BITSET_WORD_BITS):
52558         Work around a bug in 64-bit PGC (before version 6.1-2), where the
52559         preprocessor mishandles large unsigned values as if they were signed.
52560         Problem reported by Claudio Fontana in
52561         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
52562
52563 2006-01-10  Jim Meyering  <jim@meyering.net>
52564
52565         Avoid the double-free (first in fts_read, second in fts_close) that
52566         would occur when an `active' directory is made inaccessible (e.g.,
52567         via chmod a-x) during a traversal.
52568         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52569         before returning.  Reproduce this failure by
52570         mkdir -p a/b; cd a; chmod a-x . b
52571         Reported by Stavros Passas.
52572
52573         Sync from coreutils.
52574         * lib/sha1.c: Tweak grammar in a comment.
52575
52576 2006-01-10  Jim Meyering  <jim@meyering.net>
52577
52578         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
52579         Patch by Joerg Sonnenberger.
52580
52581 2006-01-10  Bruno Haible  <bruno@clisp.org>
52582
52583         * modules/readutmp: Depend on module free.
52584         * modules/strtok_r: Depend on module restrict.
52585
52586 2006-01-10  Bruno Haible  <bruno@clisp.org>
52587
52588         * modules/gettext (configure.ac): Add an invocation of
52589         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
52590
52591 2006-01-10  Bruno Haible  <bruno@clisp.org>
52592
52593         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
52594         Reported by Werner Lemberg <wl@gnu.org>.
52595
52596 2006-01-10  Bruno Haible  <bruno@clisp.org>
52597
52598         * lib/localcharset.c: Update from GNU gettext.
52599
52600 2006-01-10  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/argp.h (__const): Remove macro. Use const instead.
52603         * lib/argp-fmtstream.h (__const): Likewise.
52604         * lib/glob_.h (__const): Remove macro.
52605         * lib/glob-libc.h: Use const instead of __const.
52606
52607 2006-01-10  Bruno Haible  <bruno@clisp.org>
52608
52609         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
52610         variable.
52611         Needed to avoid an automake error regarding the 'gettext' module.
52612
52613 2006-01-09  Simon Josefsson  <jas@extundo.com>
52614
52615         * modules/inet_ntop (Depends-on): Add restrict.
52616
52617 2006-01-09  Simon Josefsson  <jas@extundo.com>
52618
52619         * modules/gc-rijndael-tests (License): Put under LGPL.
52620
52621         * modules/gc-des-tests (License): Likewise.
52622
52623         * modules/gc-arcfour-tests (License): Likewise.
52624
52625         * modules/gc-arctwo-tests (License): Likewise.
52626
52627         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
52628
52629         * modules/gc-hmac-sha1-tests (Files): Likewise.
52630
52631         * modules/gc-hmac-md5-tests (License): Likewise.
52632
52633         * modules/gc-sha1-tests (License): Likewise.
52634
52635         * modules/gc-md5-tests (License): Likewise.
52636
52637         * modules/gc-md4-tests (License): Likewise.
52638
52639         * modules/gc-md2-tests (License): Likewise.
52640
52641         * modules/gc-tests (License): Likewise.
52642
52643         * modules/des-tests (License): Likewise.
52644
52645         * modules/md4-tests (License): Likewise.
52646
52647         * modules/md2-tests (License): Likewise.
52648
52649 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52650
52651         Sync from coreutils:
52652
52653         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
52654         * modules/lib-ignore: New file.
52655         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
52656         chdir-safer.m4, lchmod.m4.
52657         * modules/openat: Add mkdirat.c, openat-priv.h.
52658
52659 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52660
52661         Sync from coreutils.
52662         * m4/lib-ignore.m4: New file.
52663         * m4/lchmod.m4: New file.
52664
52665 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52666
52667         Sync from coreutils.
52668         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
52669         for write access: POSIX says that must fail.
52670         * lib/fts.c (diropen): Likewise.
52671         * lib/save-cwd.c (save_cwd): Likewise.
52672         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
52673         well, for minor improvements on hosts that lack O_DIRECTORY.
52674         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
52675         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
52676         Fall back on chown if open failed with EACCES.
52677
52678         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
52679         Report an error at compile-time if only a 1-second nominal clock
52680         resolution is found.
52681
52682         * lib/lchmod.h: New file.
52683         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
52684         (make_dir_parents): Use lchown rather than chown, and
52685         lchmod rather than chmod.
52686
52687         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
52688         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
52689         "proc" reported by n0dalus.
52690
52691         * lib/mountlist.c: Include <limits.h>.
52692         (dev_from_mount_options)
52693         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
52694         New function.  It no longer assumes "dev=" has the System V meaning
52695         on Linux (since it doesn't).  It also parses "dev=" more carefully.
52696         (read_file_system_list)
52697         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
52698         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
52699         dev= in that case.
52700
52701         * lib/posixtm.h (PDS_PRE_2000): New macro.
52702         * lib/posixtm.c (year): Arg is now syntax_bits rather than
52703         allow_century.  All usages changed.  Reject dates outside the range
52704         1969-1999 if PDS_PRE_2000 is used.
52705
52706 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         Sync from coreutils.
52709         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
52710         (Time of day items): Mention the possibility of leap seconds.
52711         Problem reported by Dr. David Alan Gilbert.
52712
52713 2006-01-09  Jim Meyering  <jim@meyering.net>
52714
52715         Sync from coreutils.
52716
52717         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
52718
52719         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
52720
52721         * lib/modechange.c (mode_compile): Reject an invalid mode string
52722         that starts with an octal digit.  From Andreas Gruenbacher.
52723
52724         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
52725         and dup to open_safer and dup_safer, respectively.
52726         (openat_permissive): Fix typo in comment.
52727
52728         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
52729         "gettext.h"; either no longer needed or are guaranteed by openat.h.
52730         (_): Remove; no longer needed.
52731         (openat): Renamed from rpl_openat; no need for rpl_openat
52732         since openat.h renames openat for us.
52733         Replace most of the body with a call to openat_permissive,
52734         to avoid duplicate code.
52735         Port to (probably hypothetical) environments were mode_t is
52736         wider than int.
52737         (openat_permissive): Require mode arg, so that we can check
52738         types better.  Put it just after flags.  Change cwd failure
52739         indicator from pointer-to-bool to pointer-to-errno-value.
52740         All callers changed.
52741         Invoke openat_save_fail and/or openat_restore_fail if
52742         cwd_errno is null, so that openat can call us.
52743         (openat_permissive, fdopendir, fstatat, unlinkat):
52744         Simplify errno handling to avoid some duplicate code,
52745         as it's OK to set errno on success.
52746         * lib/openat.h: Revamp code so that function macros depend on
52747         __OPENAT_PREFIX only, not also on AT_FDCWD.
52748         (openat_ro): Remove.  Caller changed to use openat_permissive.
52749         (openat_permissive): Now a macro, if not a function.
52750         (openat_restore_fail, openat_save_fail): Now always functions,
52751         since mkdirat needs them even if __OPENAT_PREFIX is defined.
52752
52753         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
52754         and openat.c.
52755         * lib/mkdirat.c: Include openat-priv.h.
52756         Remove definitions of macros defined therein.
52757         * lib/openat.c: Likewise.
52758
52759         * lib/mkdirat.c (mkdirat): New file and function.
52760         * lib/openat.h (mkdirat): Declare.
52761
52762         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
52763
52764         * lib/openat.h (openat_permissive): Declare.
52765         (openat_ro): Define.
52766
52767         * lib/openat.c (EXPECTED_ERRNO): New macro.
52768         (openat_permissive): New function -- used in remove.c rewrite.
52769         (all functions): Set errno just before returning, only if there
52770         was an actual failure.
52771         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
52772
52773         Emulate openat-family functions using Linux's procfs, if possible.
52774         Idea and some code based on Ulrich Drepper's glibc changes.
52775
52776         * lib/openat.c: (BUILD_PROC_NAME): New macro.
52777         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
52778         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
52779         before falling back on save_cwd and restore_cwd.
52780         (fdopendir, fstatat, unlinkat): Likewise.
52781
52782         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
52783         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
52784
52785         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
52786         as second argument to va_arg.  Otherwise, some versions of gcc
52787         warn that `if this code is reached, the program will abort'.
52788
52789 2006-01-09  Jim Meyering  <jim@meyering.net>
52790
52791         Sync from coreutils.
52792         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
52793         Require openat-priv.h.
52794
52795 2006-01-09  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/strnlen (Include): Use strnlen.h.
52798
52799 2006-01-09  Bruno Haible  <bruno@clisp.org>
52800
52801         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
52802
52803 2006-01-09  Bruno Haible  <bruno@clisp.org>
52804
52805         * lib/sysexit_.h (EX_OK): New macro.
52806         Suggested by Martin Lambers <marlam@marlam.de>.
52807
52808 2006-01-09  Bruno Haible  <bruno@clisp.org>
52809
52810         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
52811         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
52812
52813 2006-01-09  Bruno Haible  <bruno@clisp.org>
52814
52815         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
52816         numbers.
52817
52818 2006-01-09  Bruno Haible  <bruno@clisp.org>
52819
52820         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
52821         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
52822         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
52823         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
52824
52825 2006-01-09  Bruno Haible  <bruno@clisp.org>
52826
52827         * build-aux/javacomp.sh.in: New file, moved from lib/.
52828         * modules/javacomp-script (Files): Update.
52829         (configure.ac): Add AC_CONFIG_FILES invocation.
52830         (EXTRA_DIST): Remove variable.
52831
52832         * build-aux/javaexec.sh.in: New file, moved from lib/.
52833         * modules/javaexec (Files): Update.
52834         (configure.ac): Add AC_CONFIG_FILES invocation.
52835         (EXTRA_DIST): Remove javaexec.sh.in.
52836
52837         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
52838         * modules/csharpcomp-script (Files): Update.
52839         (configure.ac): Add AC_CONFIG_FILES invocation.
52840         (EXTRA_DIST): Remove variable.
52841
52842         * build-aux/csharpexec.sh.in: New file, moved from lib/.
52843         * modules/csharpexec (Files): Update.
52844         (configure.ac): Add AC_CONFIG_FILES invocation.
52845         (EXTRA_DIST): Remove csharpexec.sh.in.
52846
52847 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52848
52849         Sync from coreutils.
52850
52851         Add POSIX ACL support
52852         * lib/acl.h (copy_acl, set_acl): Add declarations.
52853         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
52854         systems other than Linux.
52855         (chmod_or_fchmod): New function: use fchmod when possible,
52856         and chmod otherwise.
52857         (file_has_acl): Add a POSIX ACL implementation, with a
52858         Linux-specific subcase.
52859         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
52860         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
52861         acls are unsupported.
52862         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
52863         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
52864         are unsupported.
52865
52866 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52867
52868         Sync from coreutils.
52869         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
52870
52871 2006-01-07  Bruno Haible  <bruno@clisp.org>
52872
52873         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
52874         gl_EARLY.
52875
52876 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52877
52878         * lib/strftime.c (tzname): Don't declare if it is already #defined.
52879         Problem reported for Mingw by Mark Junker.
52880
52881 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52882
52883         * README: Gnulib normally doesn't generate a tarball.
52884
52885 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
52886
52887         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
52888         long int, not int, for nanosecond counts, so that people who are
52889         used to POSIX struct timespec won't be surprised.  Reported by Jim
52890         Meyering.
52891
52892 2005-12-28  Bruno Haible  <bruno@clisp.org>
52893
52894         * build-aux/config.rpath: Update from GNU gettext.
52895
52896 2005-12-16  Jim Meyering  <jim@meyering.net>
52897
52898         * modules/fprintftime: New module.
52899         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
52900
52901 2005-12-16  Jim Meyering  <jim@meyering.net>
52902
52903         * m4/fprintftime.m4: New file.
52904
52905 2005-12-16  Jim Meyering  <jim@meyering.net>
52906
52907         * lib/fprintftime.c, lib/fprintftime.h: New files.
52908
52909 2005-12-15  Simon Josefsson  <jas@extundo.com>
52910
52911         * modules/socklen (configure.ac): Fix M4 macro name, to align with
52912         new m4/socklen.m4.
52913
52914 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52915
52916         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
52917         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
52918
52919 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52920
52921         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52922         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52923         struct uparams is valid. Fall back to the default values if it is
52924         not.
52925
52926 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52927
52928         * modules/argp (Files): Add argp-pin.c
52929         (Depends-on): dirname
52930         (lib_SOURCES): Add argp-pin.c
52931
52932 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52933
52934         * m4/argp.m4:  Check if program_invocation_name and
52935         program_invocation_short_name are declared and define appropriate
52936         macros if they are not.
52937
52938 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52939
52940         * lib/argp-help.c (__argp_base_name): New function
52941         (__argp_short_program_name): Rewrite using __argp_base_name
52942         * lib/argp-namefrob.h: Define program_invocation_name and
52943         program_invocation_short_name if requested
52944         (__argp_base_name): Add prototype
52945         * lib/argp-parse.c (argp_def): Use gettext wrappers
52946         (argp_default_parser): Use __argp_base_name
52947         * lib/argp-pin.c: New file. Defines program_invocation_name and
52948         program_invocation_short_name on systems that lack them.
52949
52950 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52951
52952         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52953         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52954         porting problem reported by Georg Schwarz in
52955         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52956
52957 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
52960         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52961         porting problem reported by Georg Schwarz in
52962         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52963
52964 2005-12-05  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
52967         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
52968         Reported by Mark Junker <mjscod@gmx.de>.
52969
52970 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
52971
52972         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
52973         Use implementation from Albert Chin, with some
52974         comments/corrections by Stepan Kasal and myself.
52975
52976 2005-12-02  Bruno Haible  <bruno@clisp.org>
52977
52978         * gnulib-tool (func_import): Accept GPLed build tool modules when
52979         --lgpl is given.
52980         * modules/csharpcomp-script: New file.
52981         * modules/csharpcomp: Depend on it.
52982         * modules/javacomp-script: New file.
52983         * modules/javacomp: Depend on it.
52984         Suggested by Simon Josefsson.
52985
52986 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52987
52988         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
52989         statement, to work around an HP-UX 10.20 compiler bug reported by
52990         Peter O'Gorman.
52991
52992 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         * modules/savedir (Depends-on): Add openat.
52995
52996 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52997
52998         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
52999         (uintmax_t) [defined uintmax_t]: Do not declare.
53000         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53001         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53002         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53003         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53004         sake of portability to weird hosts that C allows (though we don't
53005         know of any practical examples).
53006
53007         * lib/savedir.h (fdsavedir): New decl.
53008         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53009         contains most of the former guts of savedir.
53010         (savedir): Use savedirstream.
53011         Include "openat.h".
53012
53013 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * modules/obstack (Files): Add m4/ulonglong.m4.
53016         Problem reported by Davide Angelocola.
53017
53018 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53021         coreutils no longer futzes with rounding modes.
53022
53023 2005-11-14  Jim Meyering  <jim@meyering.net>
53024
53025         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53026         replacement of mkstemp.
53027
53028 2005-11-10  Simon Josefsson  <jas@extundo.com>
53029
53030         * lib/readline.c: Remove EOL.
53031
53032 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         * modules/gethrxtime (Depends-on): Add gettime.
53035
53036 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53037
53038         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53039         or gettimeofday; no longer needed.
53040
53041 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53042
53043         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53044         time business.
53045         (gethrxtime) [! (HAVE_NANOUPTIME
53046         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53047         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53048         our own approximation.
53049
53050 2005-11-08  Eric Blake  <ebb9@byu.net>
53051
53052         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53053
53054 2005-11-08  Eric Blake  <ebb9@byu.net>
53055
53056         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53057
53058 2005-11-04  Bruno Haible  <bruno@clisp.org>
53059
53060         * gnulib-tool: Implement --update mode.
53061
53062 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53063
53064         Fix porting problem reported by Theodoros V. Kalamatianos.
53065         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53066         Don't assume that futimes failing means we must fail.
53067
53068 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53069
53070         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53071         variables to suggest the intended function of the PATH_MAX check.
53072
53073 2005-10-30  Kean Johnston  <jkj@sco.com>
53074
53075         Trivial changes to support SCO systems.
53076         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53077         as PATH_MAX.
53078         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53079         where __ptr is null when no I/O is pending.
53080
53081 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53082
53083         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53084         leave errno alone.  Problem reported by Dmitry V. Levin.
53085
53086 2005-10-28  Simon Josefsson  <jas@extundo.com>
53087
53088         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53089         Test more.
53090
53091         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53092
53093         * modules/md2, modules/md2-tests: New files.
53094
53095 2005-10-28  Simon Josefsson  <jas@extundo.com>
53096
53097         * m4/inet_ntop.m4: More tests.
53098
53099         * m4/gc-md2.m4, md2.m4: New file.
53100
53101 2005-10-28  Simon Josefsson  <jas@extundo.com>
53102
53103         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53104         "restrict" keywords, as per POSIX.  Protect the function
53105         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53106         Don't use K&R prototypes.  Check the sprintf return values.
53107         Re-define EAFNOSUPPORT if not present.  Indent.
53108
53109         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53110         suggested by Bruno Haible <bruno@clisp.org>.
53111
53112         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53113
53114         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53115
53116         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53117         libgcrypt).
53118
53119         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53120
53121         * lib/md2.h, lib/md2.c: New files.
53122
53123 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53124
53125         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53126         errno alone.  Problem reported by Frederic Jolliton.
53127
53128 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53129
53130         * modules/verify (License): Change from GPL to LGPL.  This is a
53131         tiny module and there are apparently near-equivalents that are
53132         under the BSD license.
53133
53134 2005-10-24  Simon Josefsson  <jas@extundo.com>
53135
53136         * modules/sha1: Relicense to LGPL.
53137
53138 2005-10-24  Simon Josefsson  <jas@extundo.com>
53139
53140         * lib/md4.h: Shrink buffer size, now that we changed the type.
53141
53142 2005-10-23  Simon Josefsson  <jas@extundo.com>
53143
53144         * gnulib-tool (func_import): Fix --tests-base.
53145
53146 2005-10-22  Simon Josefsson  <jas@extundo.com>
53147
53148         * modules/arcfour (Depends-on): Need stdint.
53149
53150 2005-10-22  Simon Josefsson  <jas@extundo.com>
53151
53152         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53153         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53154
53155 2005-10-22  Simon Josefsson  <jas@extundo.com>
53156
53157         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53158         suggested by Bruno Haible <bruno@clisp.org>.
53159
53160 2005-10-22  Simon Josefsson  <jas@extundo.com>
53161
53162         * lib/crc.h: Include stddef.h, for size_t.
53163
53164 2005-10-22  Simon Josefsson  <jas@extundo.com>
53165
53166         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53167         arcfour_context struct (simplify test vector testing in GNU
53168         Shishi).
53169
53170 2005-10-21  Simon Josefsson  <jas@extundo.com>
53171
53172         * modules/des, modules/des-tests: New files.
53173
53174         * modules/gc-des, modules/gc-des-tests: New files.
53175
53176         * tests/test-des.c, tests/test-gc-des.c: New file.
53177
53178 2005-10-21  Simon Josefsson  <jas@extundo.com>
53179
53180         * modules/arctwo, modules/arctwo-tests: New files.
53181
53182         * tests/test-arctwo.c: New file.
53183
53184         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53185
53186         * tests/test-gc-arctwo.c: New file.
53187
53188 2005-10-21  Simon Josefsson  <jas@extundo.com>
53189
53190         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53191         Bruno Haible <bruno@clisp.org>.
53192
53193         * m4/gc-des.m4: New file.
53194
53195 2005-10-21  Simon Josefsson  <jas@extundo.com>
53196
53197         * m4/arctwo.m4: New file.
53198
53199         * m4/gc-arctwo.m4: New file.
53200
53201 2005-10-21  Simon Josefsson  <jas@extundo.com>
53202
53203         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53204         block.
53205
53206 2005-10-21  Simon Josefsson  <jas@extundo.com>
53207
53208         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53209         <bruno@clisp.org>.
53210
53211         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53212
53213         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53214         Bruno Haible <bruno@clisp.org>.
53215
53216         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53217         <bruno@clisp.org>.
53218
53219 2005-10-21  Simon Josefsson  <jas@extundo.com>
53220
53221         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53222
53223 2005-10-21  Simon Josefsson  <jas@extundo.com>
53224
53225         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53226
53227 2005-10-21  Simon Josefsson  <jas@extundo.com>
53228
53229         * lib/des.h, lib/des.c: New files.
53230
53231         * lib/gc-gnulib.c: Support DES.c
53232
53233 2005-10-21  Simon Josefsson  <jas@extundo.com>
53234
53235         * lib/arctwo.h, lib/arctwo.c: New files.
53236
53237         * lib/gc-gnulib.c: Support ARCTWO.
53238
53239 2005-10-21  Simon Josefsson  <jas@extundo.com>
53240
53241         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53242         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53243
53244 2005-10-21  Simon Josefsson  <jas@extundo.com>
53245
53246         * gnulib-tool (func_import, func_create_testdir): Define automake
53247         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53248         Makefile.am snippet),
53249         suggested by Bruno Haible <bruno@clisp.org>.
53250
53251         * modules/gc (Makefile.am): Use it.
53252
53253 2005-10-21  Bruno Haible  <bruno@clisp.org>
53254
53255         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53256         patch.
53257
53258 2005-10-19  Simon Josefsson  <jas@extundo.com>
53259
53260         * tests/test-gc-rijndael.c: New file.
53261
53262         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53263
53264 2005-10-19  Simon Josefsson  <jas@extundo.com>
53265
53266         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53267         interface too.
53268
53269 2005-10-19  Simon Josefsson  <jas@extundo.com>
53270
53271         * tests/test-gc-arcfour.c: New file.
53272
53273         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53274
53275 2005-10-19  Simon Josefsson  <jas@extundo.com>
53276
53277         * modules/gc-md4, modules/gc-md4-tests: New file.
53278
53279         * tests/test-gc-md4.c: New file.
53280
53281 2005-10-19  Simon Josefsson  <jas@extundo.com>
53282
53283         * m4/gc-md4.m4: New file.
53284
53285 2005-10-19  Simon Josefsson  <jas@extundo.com>
53286
53287         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53288         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53289         <kasal@ucw.cz>.
53290
53291 2005-10-19  Simon Josefsson  <jas@extundo.com>
53292
53293         * m4/gc-arcfour.m4: New file.
53294
53295         * m4/gc-rijndael.m4: New file.
53296
53297 2005-10-19  Simon Josefsson  <jas@extundo.com>
53298
53299         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53300
53301 2005-10-19  Simon Josefsson  <jas@extundo.com>
53302
53303         * lib/gc-gnulib.c: Support ARCFOUR.
53304
53305 2005-10-19  Simon Josefsson  <jas@extundo.com>
53306
53307         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53308         support.
53309
53310         * lib/gc.h: Add ECB enum type.
53311
53312         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53313
53314 2005-10-18  Simon Josefsson  <jas@extundo.com>
53315
53316         * tests/test-md5.c: New file.
53317
53318         * modules/md5-tests: New file.
53319
53320 2005-10-18  Simon Josefsson  <jas@extundo.com>
53321
53322         * tests/test-md4.c: New file.
53323
53324         * modules/md4, modules/md4-tests: New files.
53325
53326 2005-10-18  Simon Josefsson  <jas@extundo.com>
53327
53328         * m4/md4.m4: New file.
53329
53330 2005-10-18  Simon Josefsson  <jas@extundo.com>
53331
53332         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53333
53334 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53335
53336         * gnulib-tool (func_create_testdir): Omit the second check whether
53337         BUILT_SOURCES in nonempty.
53338
53339 2005-10-17  Simon Josefsson  <jas@extundo.com>
53340
53341         * tests/test-rijndael.c: New file.
53342
53343 2005-10-17  Simon Josefsson  <jas@extundo.com>
53344
53345         * modules/sha1: Depend on stdint instead of md5.
53346
53347         * modules/md5: Depend on stdint, remove uint32_t.
53348
53349 2005-10-17  Simon Josefsson  <jas@extundo.com>
53350
53351         * modules/gc-sha1-tests: New file.
53352
53353         * tests/test-gc-sha1.c: New file.
53354
53355 2005-10-17  Simon Josefsson  <jas@extundo.com>
53356
53357         * m4/md5.m4: Remove call to uint32_t.m4.
53358
53359 2005-10-17  Simon Josefsson  <jas@extundo.com>
53360
53361         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53362
53363         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
53364         md5.h.
53365
53366         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
53367
53368         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
53369
53370 2005-10-17  Simon Josefsson  <jas@extundo.com>
53371
53372         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
53373
53374 2005-10-17  Simon Josefsson  <jas@extundo.com>
53375
53376         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
53377
53378 2005-10-17  Simon Josefsson  <jas@extundo.com>
53379
53380         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
53381
53382         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
53383
53384 2005-10-17  Bruno Haible  <bruno@clisp.org>
53385
53386         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
53387         that it can also be used in a test.
53388
53389 2005-10-16  Bruno Haible  <bruno@clisp.org>
53390
53391         * gnulib-tool (func_emit_tests_Makefile_am): Also define
53392         TESTS_ENVIRONMENT, so that individual tests can augment it.
53393
53394         * gnulib-tool (func_create_testdir): Use an intermediate target for
53395         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
53396         macros, like $(ALLOCA_H), which cannot be passed through the command
53397         line.
53398
53399 2005-10-15  Simon Josefsson  <jas@extundo.com>
53400
53401         * modules/rijndael-tests: New file.
53402
53403         * modules/rijndael: New file.
53404
53405 2005-10-15  Simon Josefsson  <jas@extundo.com>
53406
53407         * m4/rijndael.m4: New file.
53408
53409 2005-10-15  Simon Josefsson  <jas@extundo.com>
53410
53411         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
53412
53413         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
53414
53415 2005-10-14  Simon Josefsson  <jas@extundo.com>
53416
53417         * tests/test-arcfour.c: New file.
53418
53419         * modules/arcfour, modules/arcfour-tests: New files.
53420
53421 2005-10-14  Simon Josefsson  <jas@extundo.com>
53422
53423         * m4/arcfour.m4: New file.
53424
53425 2005-10-14  Simon Josefsson  <jas@extundo.com>
53426
53427         * lib/arcfour.h, lib/arcfour.c: New files.
53428
53429 2005-10-14  Roland McGrath  <roland@redhat.com>
53430
53431         Import from libc.  [BZ #1331]
53432         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
53433         macro argument.
53434         Reported by Matej Vela <vela@debian.org>.
53435
53436 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53437
53438         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
53439         include <wchar.h>; no longer needed.
53440
53441 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53442
53443         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
53444
53445 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
53446         and  Ulrich Drepper  <drepper@redhat.com>
53447
53448         Import from libc.
53449         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
53450         instead of inline stream orientation test and two separate
53451         function calls.  Pay no attention to USE_IN_LIBIO.
53452
53453 2005-10-13  Simon Josefsson  <jas@extundo.com>
53454
53455         * modules/gc-hmac-md5-tests: New file.
53456
53457         * tests/test-gc-hmac-sha1.c: New file.
53458
53459         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
53460
53461         * modules/gc-hmac-md5-tests: New file.
53462
53463         * tests/test-gc-md5.c: New file.
53464
53465         * modules/gc-md5-tests: New file.
53466
53467 2005-10-13  Simon Josefsson  <jas@extundo.com>
53468
53469         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
53470         Move memory allocation outside of loop.
53471
53472 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
53475         intermediate directory is in a read-only file system.  Problem
53476         reported by Eric Blake.
53477
53478 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
53479
53480         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
53481
53482 2005-10-12  Simon Josefsson  <jas@extundo.com>
53483
53484         * tests/test-hmac-sha1.c: New file.
53485
53486         * modules/hmac-sha1-tests: New file.
53487
53488         * modules/hmac-sha1: New file.
53489
53490 2005-10-12  Simon Josefsson  <jas@extundo.com>
53491
53492         * modules/gc-sha1: New file.
53493
53494 2005-10-12  Simon Josefsson  <jas@extundo.com>
53495
53496         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
53497
53498         * tests/test-gc-pbkdf2-sha1.c: New file.
53499
53500 2005-10-12  Simon Josefsson  <jas@extundo.com>
53501
53502         * modules/gc-md5, modules/gc-hmac-md5: New files.
53503
53504         * modules/gc (Files): Remove md5, memxor and hmac files.
53505
53506 2005-10-12  Simon Josefsson  <jas@extundo.com>
53507
53508         * m4/gc-pbkdf2-sha1.m4: New file.
53509
53510         * m4/gc-hmac-sha1.m4: New file.
53511
53512         * m4/gc-sha1: New file.
53513
53514         * m4/hmac-sha1.m4: New file.
53515
53516 2005-10-12  Simon Josefsson  <jas@extundo.com>
53517
53518         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
53519
53520         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
53521
53522 2005-10-12  Simon Josefsson  <jas@extundo.com>
53523
53524         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
53525         suggested by Bruno Haible <bruno@clisp.org>.
53526
53527 2005-10-12  Simon Josefsson  <jas@extundo.com>
53528
53529         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
53530
53531 2005-10-12  Simon Josefsson  <jas@extundo.com>
53532
53533         * lib/gc-pbkdf2-sha1.c: New file.
53534
53535         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
53536
53537 2005-10-12  Simon Josefsson  <jas@extundo.com>
53538
53539         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
53540
53541         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
53542
53543 2005-10-12  Simon Josefsson  <jas@extundo.com>
53544
53545         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
53546         GC_USE_HMAC_MD5, respectively.
53547
53548         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
53549         (gc_md5): Fix typo.
53550
53551         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
53552
53553         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
53554
53555         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
53556
53557 2005-10-12  Bruno Haible  <bruno@clisp.org>
53558
53559         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
53560         Reported by Stepan Kasal <kasal@ucw.cz>.
53561
53562 2005-10-11  Simon Josefsson  <jas@extundo.com>
53563
53564         * tests/test-crc.c: New file.
53565
53566         * modules/crc, modules/crc-tests: New files.
53567
53568 2005-10-11  Simon Josefsson  <jas@extundo.com>
53569
53570         * m4/crc.m4: New file.
53571
53572 2005-10-11  Simon Josefsson  <jas@extundo.com>
53573
53574         * lib/gc.h: Add gc_hash and gc_hash_buffer.
53575
53576         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
53577
53578         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
53579
53580 2005-10-11  Simon Josefsson  <jas@extundo.com>
53581
53582         * lib/crc.h, lib/crc.c: New files.
53583
53584         * lib/gc.h (gc_hash_buffer): Add doc.
53585
53586 2005-10-11  Bruno Haible  <bruno@clisp.org>
53587
53588         * modules/c-strcasestr: New file.
53589         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
53590
53591 2005-10-11  Bruno Haible  <bruno@clisp.org>
53592
53593         * modules/c-strcase: New file.
53594         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
53595
53596 2005-10-11  Bruno Haible  <bruno@clisp.org>
53597
53598         * lib/strcasecmp.c: Include limits.h.
53599         (strcasecmp): Avoid integer overflow on exotic platforms.
53600         * lib/strncasecmp.c: Include limits.h.
53601         (strncasecmp): Avoid integer overflow on exotic platforms.
53602         Reported by Paul Eggert.
53603
53604 2005-10-11  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/c-strcasestr.h: New file, from GNU gettext.
53607         * lib/c-strcasestr.c: New file, from GNU gettext.
53608
53609 2005-10-11  Bruno Haible  <bruno@clisp.org>
53610
53611         * lib/c-strcase.h: New file, from GNU gettext.
53612         * lib/c-strcasecmp.c: New file, from GNU gettext.
53613         * lib/c-strncasecmp.c: New file, from GNU gettext.
53614
53615 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53616
53617         * modules/mempcpy (License): GPL -> LGPL.
53618         * modules/strchrnul (License): Likewise.
53619         * modules/sysexits (License): Likewise.
53620
53621 2005-10-08  Simon Josefsson  <jas@extundo.com>
53622
53623         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
53624
53625 2005-10-07  Simon Josefsson  <jas@extundo.com>
53626
53627         * m4/memxor.m4: Remove gl_C_RESTRICT call.
53628
53629 2005-10-06  Simon Josefsson  <jas@extundo.com>
53630
53631         * tests/test-hmac-md5.c: New file.
53632
53633         * modules/hmac-md5-tests: New file.
53634
53635         * modules/hmac-md5: New file.
53636
53637 2005-10-06  Simon Josefsson  <jas@extundo.com>
53638
53639         * m4/hmac-md5.m4: New file.
53640
53641         * m4/memxor.m4: Require gl_C_RESTRICT.
53642
53643 2005-10-06  Simon Josefsson  <jas@extundo.com>
53644
53645         * lib/memxor.c (memxor): Avoid casts and warnings.
53646
53647 2005-10-06  Simon Josefsson  <jas@extundo.com>
53648
53649         * lib/hmac-md5.c: New file.
53650
53651         * lib/hmac.h: New file.
53652
53653 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53654
53655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
53656         promotes to int, not unsigned int, to catch the AIX 5.3
53657         compiler bug.
53658
53659 2005-10-05  Simon Josefsson  <jas@extundo.com>
53660
53661         * modules/memxor: New file.
53662
53663         * modules/iconv (Files): Move config.rpath to havelib, it is used
53664         there.
53665
53666         * modules/havelib (Files): Add config.rpath.
53667
53668 2005-10-05  Simon Josefsson  <jas@extundo.com>
53669
53670         * m4/memxor.m4: New file.
53671
53672 2005-10-05  Simon Josefsson  <jas@extundo.com>
53673
53674         * lib/memxor.c (memxor): Fix compiler error.
53675
53676         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
53677         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
53678
53679         * lib/memxor.h, lib/memxor.c: New files.
53680
53681         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
53682         we assume all systems have it, suggested by Jim Meyering
53683         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
53684         any systems lack sys/socket.h; mingw32 is known to lack it, but we
53685         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
53686         same reasons.
53687
53688 2005-10-05  Simon Josefsson  <jas@extundo.com>
53689
53690         * config/srclist.txt: Add glibc bug 1423 for md5.h.
53691
53692 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53693
53694         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
53695         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
53696         needed, since the source code now assumes these .h files.
53697
53698 2005-10-05  Derek Price  <derek@ximbiot.com>
53699
53700         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
53701
53702 2005-10-05  Bruno Haible  <bruno@clisp.org>
53703
53704         * modules/stdint (License): Change to LGPL.
53705
53706 2005-10-04  Simon Josefsson  <jas@extundo.com>
53707
53708         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
53709         D. Baushke" <mdb@gnu.org>.
53710
53711 2005-10-04  Bruno Haible  <bruno@clisp.org>
53712
53713         * lib/verify.h (verify_true): Provide alternative definition for C++.
53714
53715 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53716
53717         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
53718         (SSIZE_MAX): New macro, if not already defined.
53719         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
53720         than 2 GiB.
53721
53722 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53723
53724         Sync from coreutils.
53725         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
53726         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
53727         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
53728         ULLONG_MAX doesn't work with 2.7.2.1.
53729
53730 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53731
53732         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
53733         From Ben Pfaff.
53734
53735         * modules/exclude (Depends-on): Depend on verify.
53736         * modules/strtoimax (Depends-on): Likewise.
53737         * modules/utimecmp (Depends-on): Likewise.
53738
53739 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53740
53741         * lib/exclude.c: Include verify.h.
53742         (verify): Remove.  All callers changed to use verify.h's version.
53743         * lib/strtoimax.c: Likewise.
53744         * lib/utimecmp.c: Likewis.e
53745
53746         Sync from coreutils.
53747         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
53748         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
53749         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
53750         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
53751         bother returning ENOSYS if settimeofday or stime fails; just let
53752         them return whatever errno they want to return.
53753         * lib/utimens.c: Include unistd.h, for dup2.
53754         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
53755         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
53756
53757 2005-10-02  Jim Meyering  <jim@meyering.net>
53758
53759         Sync from coreutils.
53760         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
53761         from glibc-2.2.5 that fails for read-only files.
53762
53763 2005-10-02  Jim Meyering  <jim@meyering.net>
53764
53765         Sync from coreutils.
53766         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
53767         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
53768         `#if HAVE_CONFIG_H'.
53769         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
53770         Remove AT_FDCWD test.
53771         Do not consume the fd unless successful.
53772         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
53773         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
53774         block, so that we don't even try to compile it if settimeofday is
53775         available.  This works around a compilation failure on OSF1 V5.1,
53776         due to stime requiring a `long int*' while tv_sec is `int'.
53777
53778 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
53779
53780         Sync from coreutils.
53781         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
53782         against `yes', rather than just testing for nonempty.
53783
53784 2005-10-01  Simon Josefsson  <jas@extundo.com>
53785
53786         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
53787         and Darwin.
53788
53789         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
53790         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
53791         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
53792         freeaddrinfo and gai_strerror are declared by the POSIX headers.
53793         Check if struct addrinfo is declared.
53794
53795 2005-10-01  Simon Josefsson  <jas@extundo.com>
53796
53797         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
53798         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
53799         AI_* and EAI_* definitions.  Protect function declarations.
53800
53801 2005-10-01  Jim Meyering  <jim@meyering.net>
53802
53803         Sync from coreutils.
53804
53805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
53806         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
53807         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
53808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53809         in the inet and nsl libraries.  Required on Solaris 5.7.
53810
53811 2005-10-01  Jim Meyering  <jim@meyering.net>
53812
53813         Sync from coreutils.
53814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53815         in the inet and nsl libraries.  Required on Solaris 5.7.
53816
53817 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
53818
53819         * lib/getdelim.c (getdelim): Remove unused variables.
53820
53821 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53822
53823         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
53824         so that the code works even with ancient cpp.  Portability problem
53825         with GCC 2.7.2.1 reported by Thomas M.Ott.
53826
53827 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53828
53829         * modules/regex (Depends-on): Add strcase.
53830
53831         * modules/gethostname (Licence): Change from GPL to LGPL, since
53832         gethostname.c is a trivial implementation of a standard library
53833         function.
53834         * modules/poll (License): Change from GPL to LGPL, since it's
53835         derived from LGPL code.
53836
53837 2005-09-27  Jim Meyering  <jim@meyering.net>
53838
53839         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
53840         HAVE_CONFIG_H.
53841
53842         * lib/intprops.h (signed_type_or_expr__): Define.
53843         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
53844         for unsigned types.
53845
53846 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * lib/verify.h (verify_expr): Remove, replacing with:
53849         (verify_true): New macro that returns true instead of void.
53850         (verify_type__): Remove.
53851         (verify): Use verify_true rather than verify_type__.
53852
53853 2005-09-26  Bruno Haible  <bruno@clisp.org>
53854
53855         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
53856         is necessary.
53857         (lib_SOURCES): Remove mbchar.c.
53858         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
53859         (Files): Add m4/mbrtowc.m4.
53860         * modules/mbiter: Likewise.
53861         * modules/mbuiter: Likewise.
53862
53863 2005-09-26  Bruno Haible  <bruno@clisp.org>
53864
53865         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
53866         compile mbchar.c if they are not both present.
53867         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
53868         * m4/mbiter.m4 (gl_MBITER): Likewise.
53869         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
53870         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
53871         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
53872
53873 2005-09-25  Jim Meyering  <jim@meyering.net>
53874
53875         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
53876         also uses socklen_t.
53877
53878 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
53879
53880         * lib/utimens.c (ENOSYS): Define if not already defined.
53881         (futimens): Support having a null PATH if the file descriptor
53882         is nonnegative.
53883
53884         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
53885         Remove.
53886         (__attribute): Define to empty unless GCC 3.1 or later.
53887         This works around a core dump on OpenBSD 3.4, which has GCC
53888         2.95.3, which dumps core when given __attribute__(()).  It also
53889         simplifies other tests, since we really don't want to bother with
53890         worrying about which ancient version of GCC supported what.
53891         Original problem reported by Yoann Vandoorselaere, with part of
53892         the fix suggested by Derek Price.
53893
53894 2005-09-24  Jim Meyering  <jim@meyering.net>
53895
53896         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
53897         so we can once again use a positive bitfield width of 1 -- now we
53898         don't have to explain why we were using a bitfield width of 2.
53899
53900 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
53903         and similarly for the other external symbols.  Problem reported
53904         by James Gallager.
53905
53906         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
53907         bug reported by Jim Meyering.
53908
53909         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
53910         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
53911         not needed, since socklen is a prerequisite module.
53912
53913 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53914
53915         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
53916         Problem reported by Eric Blake.
53917         (getaddrinfo): Initialize se so that it's not garbage.
53918         Redo internal storage allocation so that it doesn't make unportable
53919         assumptions about alignment.
53920         Fix a memory leak.
53921
53922         * lib/utimens.c (futimens): Use futimesat if available.
53923         Prefer it to futimes since it doesn't have the futimes bug.
53924
53925         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53926         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53927         Instead, declare a function that returns a pointer to an array,
53928         and use verify_type__ to declare the size of the array.
53929         Problem and germ of a solution reported by Bruno Haible.
53930         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53931         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53932
53933 2005-09-23  Jim Meyering  <jim@meyering.net>
53934
53935         Sync from coreutils.
53936         Correct build failure (socklen_t not defined) on at least
53937         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53938         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53939
53940 2005-09-23  Jim Meyering  <jim@meyering.net>
53941
53942         * modules/getaddrinfo (Depends-on): Add socklen.
53943
53944 2005-09-23  Bruno Haible  <bruno@clisp.org>
53945
53946         * tests/test-verify.c: New file.
53947
53948 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53949
53950         Sync from coreutils.
53951
53952         * modules/argmatch (Depends-on): Add verify.
53953         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
53954         unistd-safer.
53955         * modules/save-cwd (Depends-on): Likewise.
53956
53957         * modules/openat (Files): Add lib/openat-die.c.
53958         (Depends-on): Remove error, exitfail.
53959         Add dirname.
53960
53961         * modules/verify: New file.
53962         * MODULES.html.sh (Diagnostics <assert.h>): New section,
53963         with "verify" module.
53964
53965 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53966
53967         Sync from coreutils.
53968
53969         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
53970         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
53971         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
53972         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
53973         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
53974         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
53975         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
53976         Don't bother checking for string.h, stdlib.h, unistd.h.
53977         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
53978         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
53979         module's job.
53980         * m4/jm-macros.m4 (gl_MACROS): Likewise.
53981         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
53982
53983         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
53984         (gl_GETDATE): Use it.
53985
53986         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
53987
53988 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         Sync from coreutils.
53991
53992         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
53993         stat-time.h.
53994         * lib/argmatch.h: Include verify.h
53995         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
53996         (ARGMATCH_ASSERT): Remove; unused.
53997         * lib/canonicalize.c: Assume STDC_HEADERS.
53998         * lib/exclude.c: Include "strcase.h".
53999         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54000         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54001         and stdio-safer.h.
54002         (getusershell): Call fopen, not fopen_safer.
54003         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54004         Do not include unistd-safer.h.
54005         (save_cwd): Don't call fd_safer; no longer needed
54006         now that we include fcntl--.h.
54007
54008         * lib/getdate.y (relative_time): New type.
54009         (RELATIVE_TIME_0): New constant.
54010         (parser_control): Use relative_time instead of doing it ourselves.
54011         (%union): Add new relative_time rel member.
54012         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54013         Now typeless.
54014         (relunit, relunit_snumber): Now of type rel.
54015         (zone, rel, relunit, get_date): Adjust to above changes.
54016
54017         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54018         Do not include unistd-safer.h.
54019         (getloadavg): Don't call fd_safer; no longer needed
54020         now that we include fcntl--.h.
54021
54022         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54023         (make_dir_parents): Treat ENOSYS like EEXIST.
54024
54025         Improve quality of diagnostics on restore_cwd failure.
54026         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54027         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54028         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54029         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54030         each time through the loop.  Do not diagnose restore_cwd failure;
54031         that is the caller's job (and perhaps the caller does not care).
54032
54033         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54034         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54035         If the file already exists but is not a directory, don't bother
54036         to try to make its parents.
54037         Close potential file descriptor leak if we can't chdir("/") (!).
54038         Don't always return true if chdir($PWD) fails; return true only
54039         if the requested action was done successfully (except for the
54040         chdir($PWD)).
54041         Don't log final directory unless we actually made it.
54042         Refactor to avoid duplicate code to fix up permissions.
54043         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54044
54045         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54046         to make it a bit faster and (I hope) clearer.
54047         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54048         Fix bug in formats like %2N.
54049
54050         * lib/verify.h: New file.
54051
54052 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54053
54054         Sync from coreutils.
54055         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54056
54057 2005-09-22  Jim Meyering  <jim@meyering.net>
54058
54059         Sync from coreutils.
54060
54061         * m4/lstat.m4 (gl_FUNC_LSTAT):
54062         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54063         Remove obsolete comment.
54064         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54065         * m4/xstrtod.m4: Likewise.
54066
54067         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54068
54069 2005-09-22  Jim Meyering  <jim@meyering.net>
54070
54071         Sync from coreutils.
54072
54073         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54074
54075         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54076         the .tm_year member, since otherwise gcc-4.0 would now warn about
54077         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54078
54079         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54080         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54081
54082         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54083         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54084         when run in a time zone for which daylight savings time is in effect
54085         for the starting date.
54086
54087         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54088         stop us from restricting permissions of just-created absolute-named
54089         directories.
54090         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54091         to restore initial working directory.
54092         * lib/mkdir-p.c (make_dir_parents): New parameter:
54093         different_working_dir, to tell caller if/when we change the working
54094         directory and are unable to return to the initial one.
54095         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54096         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54097         `return false'.  This fixes a bug introduced on 2004-07-30.
54098
54099         * lib/openat.c (fdopendir): Be sure to close the supplied
54100         file descriptor before returning.  This makes our replacement
54101         implementation a little closer to Solaris's, where fdopendir
54102         ties the file descriptor to the returned DIR* pointer.
54103         * lib/openat.c (unlinkat): New function.
54104         * lib/openat.h (unlinkat): Add prototype.
54105         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54106         (openat_restore_fail): Rename from openat_restore_die.
54107         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54108
54109         Provide an alternative to exiting immediately upon save_cwd or
54110         restore_cwd failure.  Now, an application can arrange e.g.,
54111         to perform a longjump in that case.
54112         * lib/openat.c: Include dirname.h.
54113         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54114         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54115         and openat_restore_die rather than calling error directly.
54116         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54117
54118         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54119         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54120         define.
54121
54122         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54123         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54124                             int utc, int nanoseconds);
54125         Background:
54126         date should not have to allocate a megabyte of virtual memory to
54127         handle a format argument like +%1048575T.  When implemented with
54128         strftime, it must allocate such a buffer, use strftime to fill it
54129         in, print it, then free it.
54130         With fprintftime, it simply prints everything and exits.
54131         With no need for memory allocation, that's one fewer way to fail.
54132         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54133         optional field width, not before, so we accept %9:z, not %:9z.
54134         (my_strftime): Be sure to use L_('x') for literals.
54135
54136         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54137         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54138         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54139         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54140         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54141         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54142         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54143         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54144         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54145         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54146         * lib/xgethostname.c, lib/xreadlink.c:
54147         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54148
54149         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54150         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54151         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54152         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54153         and don't include <sys/file.h>).
54154
54155 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54156
54157         Sync from coreutils.
54158
54159         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54160         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54161         [!LDAV_DONE]: Avoid unused variable warning.
54162
54163 2005-09-21  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/unicodeio.h (unicode_to_mb): New declaration.
54166
54167 2005-09-20  Derek Price  <derek@ximbiot.com>
54168
54169         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54170         getaddrinfo.h.
54171
54172 2005-09-20  Bruno Haible  <bruno@clisp.org>
54173
54174         * gnulib-tool: Remove trailing slashes from the values specified for
54175         --source-base, --m4-base, --tests-base, --aux-dir.
54176         Suggested by Simon Josefsson <jas@extundo.com>.
54177
54178 2005-09-20  Bruno Haible  <bruno@clisp.org>
54179
54180         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54181         func_modules_to_filelist, func_import, func_create_testdir): Make all
54182         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54183         change when gnulib-tool is invoked in a different locale.
54184
54185 2005-09-19  Simon Josefsson  <jas@extundo.com>
54186
54187         * m4/socklen.m4: Fix typo.
54188
54189 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54190
54191         Use a consistent style for including <config.h>.
54192         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54193         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54194         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54195         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54196         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54197         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54198         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54199         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54200         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54201         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54202         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54203         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54204         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54205         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54206         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54207         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54208         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54209         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54210         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54211         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54212         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54213         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54214         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54215         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54216         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54217         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54218         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54219         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54220         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54221         lib/xstrtoumax.c, lib/yesno.c:
54222         Standardize inclusion of config.h.
54223         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54224         lib/inttostr.h:  Removed inclusion of config.h from header files.
54225         * lib/inttostr.c:  Adjusted in-tree users.
54226         * lib/timespec.h: Remove superfluous warning to include config.h.
54227         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54228         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54229         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54230         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54231         config.h with HAVE_CONFIG_H.
54232
54233 2005-09-19  Jim Meyering  <jim@meyering.net>
54234
54235         * modules/pathmax (License): Change to LGPL.
54236
54237 2005-09-19  Derek Price  <derek@ximbiot.com>
54238
54239         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54240
54241 2005-09-19  Bruno Haible  <bruno@clisp.org>
54242
54243         * gnulib-tool (import): Provide default for --tests-base.
54244
54245 2005-09-19  Bruno Haible  <bruno@clisp.org>
54246
54247         * doc/quote.texi: New file, extracted from gnulib.texi.
54248         * doc/ctime.texi: New file, extracted from gnulib.texi.
54249         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54250         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54251         * doc/gnulib.texi: Include them.
54252
54253 2005-09-18  Bruno Haible  <bruno@clisp.org>
54254
54255         Portability fix.
54256         * gnulib-tool (func_readlink): New function.
54257         (func_ln_if_changed): Use it.
54258
54259 2005-09-18  Bruno Haible  <bruno@clisp.org>
54260
54261         * gnulib-tool: Support --with-tests also with --import.
54262         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54263         (func_import): Use variables $testsbase and $inctests. Emit a
54264         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54265         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54266         SUBDIRS += $testsdir.
54267         (func_create_testdir): Update.
54268
54269 2005-09-18  Bruno Haible  <bruno@clisp.org>
54270
54271         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54272         instead of $dry_run.
54273         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54274         (func_ln_if_changed): Don't handle dry-run here.
54275         (func_import): In dry-run mode, detect more precisely which actions
54276         would be performed, and don't use "...ing" verbs.
54277
54278 2005-09-18  Bruno Haible  <bruno@clisp.org>
54279
54280         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54281         (func_import): Use join on two temporary files instead of three nested
54282         loops, in order to determine which files are new or old.
54283
54284 2005-09-18  Bruno Haible  <bruno@clisp.org>
54285
54286         * gnulib-tool (func_import): Comment out code that spits out the
54287         new files with --dry-run.
54288
54289 2005-09-18  Bruno Haible  <bruno@clisp.org>
54290
54291         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54292
54293 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         * lib/stat-time.h: New file.
54296         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54297         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54298         in a different way.
54299         (timespec_cmp): New function.
54300         * lib/utimecmp.c: Include stat-time.h.
54301         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54302         members exist, not on the obsolescent ST_MTIM_NSEC.
54303         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54304
54305 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54306
54307         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54308
54309 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54310
54311         * MODULES.html.sh (File system functions): Add stat-time.
54312         * modules/stat-time: New file.
54313         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54314         is now done in a different way, by the stat-time module.
54315         * modules/utimecmp (Depends-on): Add stat-time.
54316
54317 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54318
54319         * m4/st_mtim.m4: Remove.  Superseded by...
54320         * m4/stat-time.m4: New file.
54321         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54322         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54323
54324 2005-09-15  Derek Price  <derek@ximbiot.com>
54325
54326         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54327
54328 2005-09-15  Derek Price  <derek@ximbiot.com>
54329
54330         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54331         * lib/regex_internal.c: Ditto, using this...
54332         (__GNUC_PREREQ): ...new macro.
54333         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54334         using...
54335         (__GNUC_PREREQ): ...this new macro.
54336
54337         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54338
54339 2005-09-15  Derek Price  <derek@ximbiot.com>
54340             Paul Eggert  <eggert@cs.ucla.edu>
54341
54342         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54343         changes, consolidating in...
54344         * lib/regex_internal.h: ...this file.
54345
54346 2005-09-13  Jim Meyering  <jim@meyering.net>
54347
54348         * lib/canon-host.c: Filter through gnu indent and reword comments
54349         slightly.
54350         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54351
54352 2005-09-13  Derek Price  <derek@ximbiot.com>
54353
54354         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54355         failure.
54356         Reported by Jim Meyering  <jim@meyering.net>.
54357
54358 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54359
54360         * lib/base64.c: Typo.
54361         (base64_encode): Put b64str in initialized data section.
54362
54363 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54364
54365         Merge glibc and coreutils changes into gnulib, plus a few
54366         extra fixes.
54367         * lib/md5.c: Use #error rather than a string.
54368         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
54369         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
54370         (__attribute__): Define to empty for non recent-GCC.
54371         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
54372         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
54373         Renamed from their non-__ counterparts, with new macros replacing
54374         them if not _LIBC.  Add __THROW attribute.
54375         (rol): Remove.
54376         (struct md5_ctx): Align buffer if using GCC.
54377         * lib/sha1.h (struct sha1_ctx): Likewise.
54378         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
54379         The old name was backwards.
54380         (NOTSWAP): Remove; not used.
54381         (rol): New macro, moved here from md5.h.
54382         (sha1_process_block): Remove a FIXME that doesn't make sense.
54383
54384 2005-09-12  Derek Price  <derek@ximbiot.com>
54385
54386         Return usable errors from canon-host.
54387         * lib/canon-host.h: New file.
54388         * lib/canon-host.c (canon_host): Wrap...
54389         (canon_host_r): ...this new function, which now relies exclusively on
54390         getaddrinfo.
54391         (ch_strerror): New function.
54392         (last_cherror): New global.
54393         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
54394         interface.
54395         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
54396         void *.
54397         (freeaddrinfo): Free ai->ai_canonname when set.
54398
54399 2005-09-12  Derek Price  <derek@ximbiot.com>
54400
54401         Make canon-host require getaddrinfo.
54402         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
54403         AC_LIBSOURCE canon-host.h.  Call...
54404         (gl_PREREQ_CANON_HOST): ...this new function, which requires
54405         gl_GETADDRINFO.
54406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
54407
54408 2005-09-12  Derek Price  <derek@ximbiot.com>
54409
54410         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
54411         LGPL.
54412         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
54413
54414 2005-09-12  Derek Price  <derek@ximbiot.com>
54415
54416         * lib/gai_strerror.c: Include config.h when available.  Include
54417         getaddrinfo.h before other headers to test interface.
54418         Reported by Larry Jones <lawrence.jones@ugs.com>.
54419
54420 2005-09-12  Derek Price  <derek@ximbiot.com>
54421             Paul Eggert  <eggert@cs.ucla.edu>
54422
54423         * modules/glob (Files): Add glob-libc.h.
54424
54425 2005-09-12  Derek Price  <derek@ximbiot.com>
54426             Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
54429         glob_.h, glob-libc.h.
54430         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
54431
54432 2005-09-12  Derek Price  <derek@ximbiot.com>
54433             Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
54436         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
54437         protecting things that should be done only in gnulib contexts.
54438         * lib/glob_.h: New file, containing only the glob things needed for
54439         gnulib.
54440         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
54441         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
54442         (glob, globfree, glob_pattern_p): Now defined simply in terms of
54443         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
54444         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
54445         and to respect the namespace rules better.
54446
54447 2005-09-08  Simon Josefsson  <jas@extundo.com>
54448
54449         * modules/socklen: New file.
54450
54451 2005-09-08  Simon Josefsson  <jas@extundo.com>
54452
54453         * m4/socklen.m4: New file.
54454
54455 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54456
54457         * modules/utimens (Files): Add m4/utimbuf.m4, since
54458         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
54459         Reported by Sergey Poznyakoff.
54460
54461 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54462
54463         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
54464         definitions, since that's the preferred style in glibc.
54465         Fix a minor spacing issue, and update copyright notice to match
54466         glibc's.
54467
54468 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54469
54470         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
54471
54472 2005-09-06  Simon Josefsson  <jas@extundo.com>
54473
54474         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
54475         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
54476
54477 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
54480         warning.
54481
54482 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * config/srclist.txt: Add glibc bug 1302.
54485
54486 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
54487
54488         Change bitset word type from unsigned int to unsigned long int,
54489         as this has better performance on typical 64-bit hosts.
54490         Port bitset code to hosts with unusual word sizes.
54491         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
54492         (build_collating_symbol):
54493         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
54494         argument is a bitset.  This is merely a style issue, but it makes
54495         it clearer that an entire array is expected.
54496         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
54497         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
54498         Port to the case where bitset_word is not the same as unsigned int.
54499         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54500         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
54501         Likewise.
54502         * lib/regexec.c (check_dst_limits_calc_pos_1,
54503         check_subexp_matching_top):
54504         (build_trtable, group_nodes_into_DFAstates):
54505         Likewise.
54506         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
54507         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
54508         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
54509         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
54510         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
54511         * lib/regcomp.c (optimize_subexps, lower_subexp):
54512         Work even if bitset_word has holes in its bitwise representation.
54513         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
54514         * lib/regexec.c (check_dst_limits_calc_pos_1,
54515         check_subexp_matching_top):
54516         Likewise.
54517         * lib/regex_internal.c (re_string_reconstruct):
54518         Don't assume UCHAR_MAX == 255.
54519         * lib/regex_internal.h (bitset_set_all): Likewise.
54520         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
54521         All uses changed.
54522         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
54523         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
54524         All uses changed.
54525         (BITSET_WORD_MAX): New macro.
54526         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
54527         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
54528         (bitset_empty, bitset_copy):
54529         Prefer sizeof (bitset) to multiplying it out ourselves.
54530         (bitset_not_merge): Remove; unused.
54531         (bitset_contain): Return bool, not unsigned int with one bit on.
54532         All callers changed.
54533         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
54534         alignment than re_node_set; do this by defining a new internal
54535         type struct dests_alloc and using it to allocate memory.
54536
54537 2005-09-05  Bruno Haible  <bruno@clisp.org>
54538
54539         * gnulib-tool (func_import): Fix comparison in handling of symbolic
54540         links.
54541
54542 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
54543
54544         * modules/size_max (Makefile.am): Add size_max.h
54545
54546 2005-09-04  Derek Price  <derek@ximbiot.com>
54547
54548         * gnulib-tool (func_import): Fix reversed $symbolic logic.
54549
54550 2005-09-03  Simon Josefsson  <jas@extundo.com>
54551
54552         * gnulib-tool: Fix typo.
54553
54554 2005-09-03  Simon Josefsson  <jas@extundo.com>
54555
54556         * config/srclist.txt: Add glibc bug 1293.
54557
54558 2005-09-03  Derek Price  <derek@ximbiot.com>
54559
54560         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
54561         From Larry Jones <lawrence.jones@ugs.com>.
54562
54563 2005-09-02  Simon Josefsson  <jas@extundo.com>
54564
54565         * modules/socklen: New file.
54566
54567 2005-09-02  Simon Josefsson  <jas@extundo.com>
54568
54569         * modules/havelib: New module.
54570
54571         * modules/gettext, modules/iconv, modules/lock, modules/readline:
54572         Use havelib.
54573
54574 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         Check for arithmetic overflow when calculating sizes, to prevent
54577         some buffer-overflow issues.  These patches are conservative, in the
54578         sense that when I couldn't determine whether an overflow was possible,
54579         I inserted a run-time check.
54580         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
54581         macros.
54582         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
54583         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
54584         (re_xnrealloc, re_x2nrealloc): New inline functions.
54585         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
54586         parse_bracket_exp):
54587         (build_equiv_class, build_charclass): Check for arithmetic overflow
54588         in size expression calculations.
54589         * lib/regex_internal.c (re_string_realloc_buffers):
54590         (build_wcs_upper_buffer, re_node_set_add_intersect):
54591         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
54592         (re_dfa_add_node, register_state): Likewise.
54593         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
54594         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
54595         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
54596         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
54597
54598 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54601         m4/ulonglong.m4.  Problem reported by Martin Lambers.
54602
54603 2005-09-02  Bruno Haible  <bruno@clisp.org>
54604
54605         Support for lib vs. lib64 distinction on biarch platforms.
54606         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
54607         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
54608         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
54609
54610 2005-09-02  Bruno Haible  <bruno@clisp.org>
54611
54612         * gnulib-tool (import): In the other first-use case, provide defaults
54613         as well.
54614
54615 2005-09-02  Bruno Haible  <bruno@clisp.org>
54616
54617         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
54618         patches not yet found in the latest gettext release.
54619
54620 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54621
54622         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
54623         to avoid a collision with bits/local_lim.h in glibc.
54624         All uses changed.  Problem reported by Dmitry V. Levin in
54625         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
54626
54627         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
54628         bugs in int versus size_t comparisons.
54629         (re_string_context_at): Fix bug where the code assumed that
54630         Idx is signed.
54631
54632         Use bool where appropriate.
54633         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
54634         All callers changed.
54635         (calc_eclosure_iter): Likewise, for ROOT arg.
54636         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
54637         (build_charclass_op): Likewise, for NON_MATCH arg.
54638         * lib/regex_internal.c (re_string_allocate, re_string_construct):
54639         (re_string_construct_common): Likewise, for ICASE arg.
54640         * lib/regexec.c (re_search_2_stub, re_search_stub):
54641         Likewise, for RET_LEN arg.
54642         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
54643         (set_regs): Likewise, for FL_BACKTRACK arg.
54644         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
54645         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
54646         (calc_eclosure_iter, parse_bracket_exp):
54647         Use bool for internal variables that are booleans.
54648         * lib/regexec.c (re_search_internal, check_matching,
54649         proceed_next_node):
54650         (set_regs, build_sifted_states, sift_states_bkref):
54651         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
54652         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54653         (find_collation_sequence_value):
54654         Likewise.
54655         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
54656         (re_node_set_compare):
54657         Return bool, not int. All callers changed.
54658         * lib/regexec.c (check_halt_node_context, check_dst_limits):
54659         (build_trtable, check_node_accept): Likewise.
54660         * lib/regex_internal.h: Include stdbool.h.
54661
54662         Fix bugs uncovered when converting to bool.
54663         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
54664         failure instead of charging ahead blindly.
54665         * lib/regex_internal.c (register_state): Likewise.
54666         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
54667         for freeing internal storage.
54668         (group_nodes_into_DFA_states): Use unsigned int, not int, for
54669         bitset pieces used as boolean, to avoid undefined behavior
54670         on hosts that do int overflow checking.
54671
54672 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54673
54674         * config/srclist.txt: Add glibc bugs 1285-1287.
54675
54676 2005-09-01  Jim Meyering  <jim@meyering.net>
54677
54678         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
54679         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
54680         Require gl_STAT_MACROS, too.
54681
54682 2005-09-01  Bruno Haible  <bruno@clisp.org>
54683
54684         * gnulib-tool (import): In the first-use case, provide defaults.
54685
54686 2005-09-01  Bruno Haible  <bruno@clisp.org>
54687
54688         * gnulib-tool (func_import): Remove the .tmp files.
54689
54690 2005-09-01  Bruno Haible  <bruno@clisp.org>
54691
54692         * gnulib-tool (func_import): Fix handling of symbolic links.
54693
54694 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54695
54696         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
54697         old glibc regex code mishandles strings longer than 2**31 bytes.
54698         This patch fixes this when the regex code is used in gnulib
54699         (i.e., outside glibc).
54700
54701         This patch should not affect the use of the regex code inside
54702         glibc.  No doubt this problem also needs to be handled for glibc
54703         as well, but the result will be an incompatible change to the
54704         glibc ABI, and the old ABI will have to be supported too.  That
54705         can be the the subject for another patch.
54706
54707         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
54708         governing whether the rest of this patch is active.  By default,
54709         the macro is disabled and the patch has no effect.
54710         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
54711         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
54712         (struct re_pattern_buffer, re_search, re_search_2, re_match):
54713         (re_match_2, re_set_registers): Use the new types.
54714         * lib/regex_internal.h (Idx, re_hashval_t): New types.
54715         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
54716         New macros.
54717         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
54718         (re_string_context_at, bin_tree_t, re_dfastate_t):
54719         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
54720         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
54721         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
54722         (re_string_char_size_at, re_string_wchar_at):
54723         (re_string_elem_size_at):
54724         Use the new types and macros to port to 64-bit hosts.
54725         Use unsigned types for internal values, so that the code
54726         mostly works even for arrays larger than SSIZE_MAX.
54727         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
54728         (search_duplicated_node, calc_eclosure_iter, fetch_number):
54729         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
54730         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
54731         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
54732         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
54733         (calc_inveclosure, parse_dup_op, build_range_exp):
54734         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
54735         (fetch_number, create_token_tree, mark_opt_subexp):
54736         Likewise.
54737         * lib/regex_internal.c (re_string_construct_common,
54738         create_ci_newstate):
54739         (create_cd_newstate, re_string_allocate, re_string_construct):
54740         (re_string_realloc_buffers, build_wcs_upper_buffer):
54741         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54742         (re_string_reconstruct, re_string_peek_byte_case):
54743         (re_string_fetch_byte_case, re_string_context_at):
54744         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54745         (re_node_set_init_copy, re_node_set_add_intersect):
54746         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54747         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54748         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54749         (re_acquire_state, re_acquire_state_context, register_state):
54750         Likewise.
54751         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
54752         search_cur_bkref_entry):
54753         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
54754         (re_search_internal, re_search_2_stub, re_search_stub)
54755         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
54756         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
54757         (update_cur_sifted_state, check_dst_limits):
54758         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54759         (check_subexp_limits, sift_states_bkref, merge_state_array):
54760         (check_subexp_matching_top, get_subexp, get_subexp_sub):
54761         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
54762         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54763         (expand_bkref_cache, check_node_accept_bytes):
54764         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
54765         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
54766         (acquire_init_state_context, check_halt_node_context):
54767         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
54768         (sift_states_backward, clean_state_log_if_needed):
54769         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
54770         (find_recover_state, transit_state_sb, transit_state_mb):
54771         (transit_state_bkref, build_trtable, match_ctx_clean):
54772         Likewise.
54773         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
54774         to work around an assumption that REG_MISSING is negative.
54775
54776         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
54777         (seek_collating_symbol_entry) [defined _LIBC]:
54778         (lookup_collation_sequence_value) [defined _LIBC]:
54779         (build_range_exp, build_collating_symbol) [defined _LIBC]:
54780         Use prototypes rather than old-style function definitions.
54781         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
54782         (transit_state_sb) [0]:
54783         (find_collation_sequence_value) [defined _LIBC]: Likewise.
54784
54785         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
54786         rm_eo.
54787
54788         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
54789         (optimize_subexps, lower_subexp):
54790         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
54791         since the signed shift might overflow.  Use 1u<<31 instead.
54792         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54793         Likewise.
54794         * lib/regexec.c (check_dst_limits_calc_pos_1,
54795         check_subexp_matching_top): Likewise.
54796
54797         * lib/regcomp.c (optimize_subexps, lower_subexp):
54798         Use CHAR_BIT rather than 8, for clarity.
54799         * lib/regexec.c (check_dst_limits_calc_pos_1):
54800         (check_subexp_matching_top): Likewise.
54801         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
54802         have to worry about portability issues when shifting it left.
54803         Remove no-longer-needed test for table_size > 0.
54804         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
54805         in a word, as the resulting behavior is undefined.
54806         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
54807         in one case, a <= should have been an <, and in another case the
54808         whole test was missing.
54809         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
54810         the standard name CHAR_BIT.
54811         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
54812         this is not true on one's complement and signed-magnitude hosts.
54813
54814         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
54815         next_last_offset.
54816         (struct re_dfa_t): Remove unused member states_alloc.
54817         * lib/regcomp.c (init_dfa): Don't initialize unused members.
54818
54819 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54820
54821         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
54822         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
54823         and large-file glibc and in 32-bit large-file Solaris.
54824
54825 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54826
54827         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
54828         lengths fit in regoff_t; this isn't true if regoff_t is the same
54829         width as size_t.
54830         * lib/regex.c (re_search_internal): 5th arg is LAST_START
54831         (= START + RANGE) instead of RANGE.  This avoids overflow
54832         problems when regoff_t is the same width as size_t.
54833         All callers changed.
54834         (re_search_2_stub): Check for overflow when adding the
54835         sizes of the two strings.
54836         (re_search_stub): Check for overflow when adding START
54837         to RANGE; if it occurs, substitute the extreme value.
54838
54839 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
54842
54843 2005-08-31  Jim Meyering  <jim@meyering.net>
54844
54845         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
54846         a pointer-to-const.
54847         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
54848         (register_state): Likewise.
54849         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
54850         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54851         (group_nodes_into_DFAstates): Likewise.
54852
54853 2005-08-31  Jim Meyering  <jim@meyering.net>
54854
54855         * check-module: Add a FIXME comment.
54856
54857 2005-08-31  Eric Blake  <ebb9@byu.net>
54858
54859         * modules/unistd-safer (Files): Add unistd--.h.
54860         * modules/stdio-safer (Files): Add stdio--.h.
54861
54862 2005-08-31  Derek Price  <derek@ximbiot.com>
54863
54864         * lib/getdelim.c (getdelim): Return EOF on EOF.
54865         Reported by Larry Jones <lawrence.jones@ugs.com>.
54866
54867 2005-08-31  Bruno Haible  <bruno@clisp.org>
54868
54869         Avoid unnecessary diffs in the generated lib/Makefile.am.
54870         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
54871         the generated files.
54872         (func_import): Don't set cmd.
54873
54874 2005-08-31  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/strstr.c: Include <stddef.h>, for NULL.
54877         * lib/strcasestr.c: Likewise.
54878         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54879
54880 2005-08-31  Bruno Haible  <bruno@clisp.org>
54881
54882         * gnulib-tool: New option --macro-prefix.
54883         (func_import): Use macro_prefix.
54884         (import): Handle option --macro-prefix.
54885
54886 2005-08-31  Bruno Haible  <bruno@clisp.org>
54887
54888         * gnulib-tool (import): Rename most ac_* variables to cached_*.
54889         Also use new variables cached_lgpl, cached_libtool.
54890
54891 2005-08-31  Bruno Haible  <bruno@clisp.org>
54892
54893         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
54894         always instantiating them.
54895
54896 2005-08-31  Bruno Haible  <bruno@clisp.org>
54897
54898         * gnulib-tool (func_import): Read the previous cached settings
54899         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
54900         earlier added by gnulib but are now dropped. Warn when a gnulib file
54901         overwrites a non-gnulib file.
54902
54903 2005-08-31  Bruno Haible  <bruno@clisp.org>
54904
54905         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
54906         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
54907         projects that don't keep autogenerated files in CVS. Put into
54908         actioncmd only the specified modules, not the transitive closure.
54909
54910 2005-08-31  Bruno Haible  <bruno@clisp.org>
54911
54912         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
54913         Create directories that shall be filled.
54914         (import): Don't look for gl_* macros in configure.ac. Recurse across
54915         all directories containing a gnulib-cache.m4 files, if meaningful.
54916
54917 2005-08-31  Bruno Haible  <bruno@clisp.org>
54918
54919         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54920         (import): Set seen_libtool when we see gl_LIBTOOL.
54921
54922 2005-08-31  Bruno Haible  <bruno@clisp.org>
54923
54924         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54925         declaration macro definitions from generated gnulib.m4.
54926
54927 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54928
54929         * lib/iconvme.h: Add prototype for iconv_alloc.
54930
54931 2005-08-29  Simon Josefsson  <jas@extundo.com>
54932
54933         * lib/iconvme.c: Fix errno.
54934
54935 2005-08-29  Bruno Haible  <bruno@clisp.org>
54936
54937         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54938         that it works when the directory contains spaces.
54939
54940 2005-08-29  Bruno Haible  <bruno@clisp.org>
54941
54942         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54943
54944 2005-08-29  Bruno Haible  <bruno@clisp.org>
54945
54946         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54947         Emit more advice.
54948
54949 2005-08-29  Bruno Haible  <bruno@clisp.org>
54950         and Stepan Kasal  <kasal@ucw.cz>
54951
54952         * check-module: If more parameters are given, check each of them
54953         separately; add more exceptions, as noted by Jim Meyering.
54954         (check_module): New procedure.
54955         (%exempt_header): Now contains all exceptions.
54956
54957 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
54958
54959         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
54960
54961 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54962
54963         * lib/iconvme.c: Split iconv_string into iconv_alloc.
54964
54965 2005-08-28  Bruno Haible  <bruno@clisp.org>
54966
54967         * m4/gnulib-tool.m4: New file.
54968
54969 2005-08-27  Jim Meyering  <jim@meyering.net>
54970
54971         * modules/unistd-safer (Files): Add pipe-safer.c.
54972         * modules/fcntl-safer (Files): Add creat-safer.c.
54973
54974 2005-08-27  Jim Meyering  <jim@meyering.net>
54975
54976         * m4/stdlib-safer.m4: New file.  From coreutils.
54977         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
54978         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
54979         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
54980         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
54981         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
54982
54983 2005-08-27  Jim Meyering  <jim@meyering.net>
54984
54985         * lib/fopen-safer.c: Merge minor changes from coreutils.
54986         * lib/dup-safer.c: Likewise.
54987         * lib/fd-safer.c: Likewise.
54988
54989         Merge from coreutils.
54990         * lib/stdio--.h: New file.
54991         * lib/stdlib--.h: New file.
54992         * lib/mkstemp-safer.c: New file.
54993
54994         GNU tar needs these.
54995         * lib/pipe-safer.c: New file.
54996         * lib/creat-safer.c: New file.
54997         * lib/fcntl--.h (creat): Define to creat_safer.
54998         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
54999         * lib/unistd--.h (pipe): Define to pipe_safer.
55000         * lib/unistd-safer.h: Declare pipe_safer.
55001
55002 2005-08-26  Simon Josefsson  <jas@extundo.com>
55003
55004         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55005         Haible <bruno@clisp.org>.
55006
55007 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         * lib/regex_internal.h: Remove all references to
55010         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55011         or better.
55012         (bitset_not, bitset_merge, bitset_not_merge):
55013         (bitset_mask, re_string_allocate, re_string_construct):
55014         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55015         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55016         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55017         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55018         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55019         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55020         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55021         (re_acquire_state_context):
55022         Remove unnecessary forward decls.
55023         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55024         Put __attribute at function definition,
55025         now that the function decl has been removed.
55026         * lib/regex_internal.c (re_string_peek_byte_case):
55027         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55028         Likewise.
55029
55030 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55031
55032         * m4/regex.m4: Add AC_PREREQ(2.50).
55033         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55034
55035 2005-08-25  Simon Josefsson  <jas@extundo.com>
55036
55037         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55038         __fsetlocking.
55039
55040 2005-08-25  Simon Josefsson  <jas@extundo.com>
55041
55042         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55043         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55044         GLIBC specific code.
55045
55046 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55047
55048         Make regex safe for g++.  This fixes one real bug (an "err"
55049         that should have been "*err").  g++ problem reported by
55050         Sam Steingold.
55051         * lib/regex_internal.h (re_calloc): New macro, consistent with
55052         re_malloc etc.  All callers of calloc changed to use re_calloc.
55053         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55054         not int.  All callers changed.
55055         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55056         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55057         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55058         (find_recover_state): Change "err" to "*err"; this fixes what
55059         appears to be a real bug.
55060         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55061         versus int.
55062
55063 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55064
55065         * modules/regex (Depends-on): Add malloc, since the code
55066         assumes that !malloc(0) means failure.
55067
55068 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55069
55070         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55071
55072         alloca modernization/simplification for regex.
55073         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55074         needs to be at the start of the file, and can be moved into
55075         regex_internal.h and simplified.
55076         * lib/regex_internal.h: Include <alloca.h>.
55077         (__libc_use_alloca) [!defined _LIBC]: New macro.
55078         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55079         now works outside glibc.
55080
55081 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55082
55083         * config/srclist.txt: Add glibc bugs 1241, 1245.
55084
55085 2005-08-25  Jim Meyering  <jim@meyering.net>
55086
55087         * lib/open-safer.c: Include <config.h>.
55088         Otherwise, we'd lose LARGEFILE support in any file using
55089         e.g. "fcntl--.h"
55090
55091 2005-08-25  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/minmax.m4: Require autoconf 2.52.
55094         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55095         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55096         alternatives of translit over the alphabet.
55097         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55098
55099 2005-08-24  Simon Josefsson  <jas@extundo.com>
55100
55101         * tests/test-getpass.c: New file.
55102
55103 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55104
55105         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55106         for GNU regex features.
55107
55108 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55109
55110         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55111         * lib/regex.h (regerror): Likewise.
55112
55113         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55114         requires this.  (The code never needed it.)
55115
55116         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55117         All uses of recently-renamed identifiers changed to use the new,
55118         POSIX-compliant names.  The code will build and run just fine
55119         without these changes, but it's better to eat our own dog food
55120         and use the standard-conforming names.
55121
55122         * lib/regex.h: Fix a multitude of POSIX name space violations.
55123         These changes have an effect only for programs that define
55124         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55125         do not change anything for programs compiled in the normal way.
55126         Also, there is no effect on the ABI.
55127
55128         (_REGEX_SOURCE): New macro.
55129         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55130         defined and _GNU_SOURCE is not; this fixes a name space violation.
55131
55132         Rename the following macros to obey POSIX requirements.
55133         The old names are still visible as macros if _REGEX_SOURCE is defined.
55134         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55135         RE_BACKSLASH_ESCAPE_IN_LISTS.
55136         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55137         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55138         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55139         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55140         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55141         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55142         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55143         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55144         (REG_INTERVALS): renamed from RE_INTERVALS.
55145         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55146         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55147         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55148         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55149         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55150         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55151         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55152         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55153         RE_UNMATCHED_RIGHT_PAREN_ORD.
55154         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55155         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55156         (REG_DEBUG): renamed from RE_DEBUG.
55157         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55158         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55159         unusual, since we can't clash with the POSIX REG_ICASE.
55160         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55161         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55162         (REG_NO_SUB): renamed from RE_NO_SUB.
55163         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55164         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55165         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55166         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55167         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55168         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55169         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55170         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55171         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55172         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55173         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55174         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55175         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55176         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55177         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55178         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55179         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55180         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55181         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55182         (REG_FIXED): Renamed from REGS_FIXED.
55183         (REG_NREGS): Renamed from RE_NREGS.
55184
55185         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55186         of other REG_* macros, since POSIX says the user is allowed to
55187         #undef these macros selectively.
55188
55189         (reg_errcode_t): Update comment stating what other tables need
55190         to be consistent.
55191
55192         Rename the following enum values to obey POSIX requirements.
55193         The old names are still visible as macros.
55194         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55195         is not defined, since GNU is supposed to be a superset of POSIX as
55196         much as possible, and since we want reg_errcode_t to be a signed
55197         type for implementation consistency.
55198         (_REG_NOERROR): Renamed from REG_NOERROR.
55199         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55200         (_REG_BADPAT): Renamed from REG_BADPAT.
55201         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55202         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55203         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55204         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55205         (_REG_EBRACK): Renamed from REG_EBRACK.
55206         (_REG_EPAREN): Renamed from REG_EPAREN.
55207         (_REG_EBRACE): Renamed from REG_EBRACE.
55208         (_REG_BADBR): Renamed from REG_BADBR.
55209         (_REG_ERANGE): Renamed from REG_ERANGE.
55210         (_REG_ESPACE): Renamed from REG_ESPACE.
55211         (_REG_BADRPT): Renamed from REG_BADRPT.
55212         (_REG_EEND): Renamed from REG_EEND.
55213         (_REG_ESIZE): Renamed from REG_ESIZE.
55214         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55215         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55216         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55217         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55218         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55219
55220         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55221         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55222         changed.  But support the old name if the new one is not defined
55223         and if _REGEX_SOURCE.
55224
55225         Change the following member names in struct re_pattern_buffer.
55226         The old names are still supported if !_REGEX_SOURCE.
55227         The new names are always supported, regardless of _REGEX_SOURCE.
55228         (re_buffer): Renamed from buffer.
55229         (re_allocated): Renamed from allocated.
55230         (re_used): Renamed from used.
55231         (re_syntax): Renamed from syntax.
55232         (re_fastmap): Renamed from fastmap.
55233         (re_translate): Renamed from translate.
55234         (re_can_be_null): Renamed from can_be_null.
55235         (re_regs_allocated): Renamed from regs_allocated.
55236         (re_fastmap_accurate): Renamed from fastmap_accurate.
55237         (re_no_sub): Renamed from no_sub.
55238         (re_not_bol): Renamed from not_bol.
55239         (re_not_eol): Renamed from not_eol.
55240         (re_newline_anchor): Renamed from newline_anchor.
55241
55242         Change the following member names in struct re_registers.
55243         The old names are still supported if !_REGEX_SOURCE.
55244         The new names are always supported, regardless of _REGEX_SOURCE.
55245         (rm_num_regs): Renamed from num_regs.
55246         (rm_start): Renamed from start.
55247         (rm_end): Renamed from end.
55248
55249         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55250         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55251         Prepend __ to parameter names.
55252
55253         Undo yesterday's changes.
55254
55255 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55258         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55259         lib/regex.c.
55260
55261 2005-08-24  Jim Meyering  <jim@meyering.net>
55262
55263         Sync from coreutils.
55264         * m4/fcntl-safer.m4: New file.
55265
55266         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55267         and object files for this module.
55268
55269 2005-08-24  Jim Meyering  <jim@meyering.net>
55270
55271         Sync from coreutils.
55272         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55273
55274 2005-08-24  Jim Meyering  <jim@meyering.net>
55275
55276         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55277         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55278
55279 2005-08-24  Jim Meyering  <jim@meyering.net>
55280
55281         * modules/fcntl-safer: New module.
55282         * modules/fts (Depends-on): Add fcntl-safer.
55283         * MODULES.html.sh (File descriptor based Input/Output):
55284         Add fcntl-safer.
55285
55286 2005-08-24  Bruno Haible  <bruno@clisp.org>
55287
55288         Support for unit test modules.
55289         * modules/README: Mention tests modules.
55290         * modules/TEMPLATE-TESTS: New file.
55291         * gnulib-tool: New options --extract-tests-module, --with-tests and
55292         --tests-base (unused for the moment).
55293         (testsbase, inctests): New variables.
55294         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55295         (func_verify_module): Exclude TEMPLATE-TESTS.
55296         (func_verify_nontests_module, func_verify_tests_module): New functions.
55297         (func_get_dependencies): Add implicit dependency for tests modules.
55298         (func_get_tests_module): New function.
55299         (func_modules_transitive_closure): When --with-tests was specified,
55300         include the unit tests as well, unless explicitly avoided.
55301         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55302         (func_emit_tests_Makefile_am): New function.
55303         (func_create_testdir): When --with-tests was specified, emit a
55304         tests/ directory.
55305         * MODULES.html.sh (Future developments): Update.
55306
55307 2005-08-24  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/tls-tests: New file.
55310         * tests/test-tls.c: New file, from GNU gettext.
55311
55312 2005-08-24  Bruno Haible  <bruno@clisp.org>
55313
55314         * modules/lock-tests: New file.
55315         * tests/test-lock.c: New file, from GNU gettext.
55316
55317 2005-08-24  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/lock.h: Add multiple inclusion guard.
55320         * lib/tls.h: Add multiple inclusion guard.
55321
55322 2005-08-24  Bruno Haible  <bruno@clisp.org>
55323
55324         * gnulib-tool: Add support for the --aux-dir option to
55325         --create-testdir, --create-megatestdir, --test, --megatest.
55326         (func_create_testdir, func_create_megatestdir): Optionally emit a
55327         AC_CONFIG_AUX_DIR directive.
55328         (create-testdir, create-megatestdir, test, megatest): Provide a
55329         default value for $auxdir.
55330
55331 2005-08-24  Bruno Haible  <bruno@clisp.org>
55332
55333         * gnulib-tool (import): Use compound statement instead of subshell
55334         where possible.
55335
55336 2005-08-24  Bruno Haible  <bruno@clisp.org>
55337
55338         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55339
55340 2005-08-24  Bruno Haible  <bruno@clisp.org>
55341
55342         * gnulib-tool (func_version): Update.
55343
55344 2005-08-24  Bruno Haible  <bruno@clisp.org>
55345
55346         * gnulib-tool (func_import, func_create_testdir,
55347         func_create_megatestdir): Quote all autoconf macro arguments.
55348
55349 2005-08-24  Bruno Haible  <bruno@clisp.org>
55350
55351         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55352         option --force, because --force causes the aclocal.m4 of each
55353         subdirectory to be newer than the corresponding config.h.in.
55354
55355 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55356
55357         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55358         All contents moved to gl_REGEX.
55359         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55360         assume that it does.
55361
55362 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55363
55364         * lib/regex.h (REG_NOSYS)
55365         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
55366         Define, since POSIX requires it as of 2001.
55367         (_REG_ENOSYS)
55368         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
55369         New private symbol, used to keep the enum signed in all cases.
55370         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
55371         Youngman in
55372         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
55373
55374         * lib/regex_internal.c (re_string_skip_chars, register_state):
55375         (calc_state_hash):
55376         Remove forward decls; no longer needed now that we use prototypes.
55377         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
55378         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
55379         (clean_state_log_if_needed): Likewise.
55380
55381 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55382
55383         * config/srclist.txt: Add glibc bugs 1231-1233.
55384
55385 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55386
55387         Fix problems reported by Sam Steingold in
55388         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
55389         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
55390         assumed that reg_errcode_t is a signed type, which is not
55391         necessarily true if _XOPEN_SOURCE is not defined.
55392         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
55393         since some compilers warn about it otherwise.
55394
55395 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55396
55397         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
55398         (init_word_char, create_initial_state, duplicate_node_closure):
55399         (fetch_token, peek_token_bracket, build_range_exp):
55400         (build_collating_symbol): Remove forward decls; no longer needed
55401         now that we use prototypes.
55402
55403         * lib/regcomp.c:
55404         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
55405         (re_compile_fastmap_iter, regcomp, regerror, regfree):
55406         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
55407         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
55408         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
55409         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
55410         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
55411         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
55412         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
55413         (build_range_exp, build_collating_symbol, parse_bracket_exp):
55414         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
55415         (build_charclass, build_charclass_op, fetch_number, create_tree):
55416         (create_token_tree, mark_opt_subexp, duplicate_tree):
55417         Use prototypes rather than old-style definitions.
55418
55419         * lib/regex_internal.c:
55420         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
55421         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
55422         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55423         (re_string_reconstruct, re_string_peek_byte_case):
55424         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
55425         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55426         (re_node_set_init_copy, re_node_set_add_intersect):
55427         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55428         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55429         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55430         (re_acquire_state, re_acquire_state_context, register_state):
55431         (create_ci_newstate, create_cd_newstate, free_state):
55432         Likewise.
55433         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
55434         re_search_2):
55435         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
55436         (re_search_internal, prune_impossible_nodes):
55437         (acquire_init_state_context, check_matching, static):
55438         (check_halt_node_context, check_halt_state_context, proceed_next_node):
55439         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
55440         (update_regs, sift_states_backward, build_sifted_states):
55441         (clean_state_log_if_needed, merge_state_array):
55442         (update_cur_sifted_state, add_epsilon_src_nodes):
55443         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
55444         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
55445         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
55446         (find_recover_state, check_subexp_matching_top, transit_state_mb):
55447         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
55448         (check_arrival, check_arrival_add_next_nodes):
55449         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55450         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55451         (check_node_accept_bytes, check_node_accept, extend_buffers):
55452         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
55453         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
55454         (sift_ctx_init):
55455         Likewise.
55456
55457         * lib/regex_internal.h:
55458         (re_string_allocate, re_string_construct, re_string_reconstruct):
55459         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
55460         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
55461         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
55462         (re_string_context_at, re_string_peek_byte_case):
55463         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
55464         is defined, since we now use prototypes always.
55465
55466         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
55467         C89 or better.  All uses removed.
55468
55469 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55470
55471         * config/srclist.txt: Add glibc bugs 1220-1227.
55472
55473 2005-08-20  Jim Meyering  <jim@meyering.net>
55474
55475         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
55476         of unused local, dfa.
55477
55478 2005-08-20  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
55481
55482 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
55485         (re_node_set_insert_last, re_dfa_add_node):
55486         Rename local variables to avoid GCC shadowing warnings.
55487
55488 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55489
55490         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
55491         [defined lint]: Suppress bogus uninitialized-variable warnings.
55492
55493         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
55494         and let the caller return REG_ESPACE if out of space.  This
55495         removes an uninitialied-variable warning with GCC 4.0.1, and also
55496         avoids taking the address of a local variable.  All callers
55497         changed.
55498
55499 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55500
55501         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
55502         $LIBCSRC/posix/regexec.c.
55503         Add glibc bug 1217 for regcomp.c.
55504
55505 2005-08-19  Jim Meyering  <jim@meyering.net>
55506
55507         * lib/regexec.c (proceed_next_node): Redo local variables to
55508         avoid GCC shadowing warnings.
55509
55510 2005-08-18  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/strstr.c (strstr): Fix return value in multibyte case.
55513         * lib/strcasestr.c (strcasestr): Likewise.
55514
55515 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55516
55517         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
55518
55519 2005-08-17  Jim Meyering  <jim@meyering.net>
55520
55521         Make the %s format (seconds since the epoch) work for a negative
55522         number and when used with a zero-padded field width, e.g. %015s.
55523
55524         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
55525         label so that it precedes the code to set `digits'.  Otherwise,
55526         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
55527         print `00-22'.  Now, it prints `-0022', as it should.
55528
55529 2005-08-17  Bruno Haible  <bruno@clisp.org>
55530
55531         * modules/strstr (Files): Add m4/mbrtowc.m4.
55532         (Depends-on): Add mbuiter.
55533
55534 2005-08-17  Bruno Haible  <bruno@clisp.org>
55535
55536         * modules/strcasestr: New file.
55537         * MODULES.html.sh (String handling, based on ANSI C 89): Add
55538         strcasestr.
55539
55540 2005-08-17  Bruno Haible  <bruno@clisp.org>
55541
55542         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
55543
55544 2005-08-17  Bruno Haible  <bruno@clisp.org>
55545
55546         * modules/mbuiter: New file.
55547         * MODULES.html.sh (Extended multibyte and wide character utilities):
55548         Add mbuiter.
55549
55550 2005-08-17  Bruno Haible  <bruno@clisp.org>
55551
55552         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
55553         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
55554
55555 2005-08-17  Bruno Haible  <bruno@clisp.org>
55556
55557         * m4/strcasestr.m4: New file.
55558
55559 2005-08-17  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
55562         * lib/strstr.c: Completely rewritten, with multibyte locale support.
55563
55564 2005-08-17  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/strcasestr.h: New file.
55567         * lib/strcasestr.c: New file.
55568
55569 2005-08-17  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/strcasecmp.c: Use mbuiter.h.
55572
55573 2005-08-17  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/mbuiter.h: New file.
55576
55577 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55578
55579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
55580         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
55581         and gl_GETOPT are both invoked via different paths (as happens
55582         with GNU tar CVS because it uses both argp and getopt), the former
55583         wins.
55584
55585 2005-08-16  Bruno Haible  <bruno@clisp.org>
55586
55587         * modules/tls: New file.
55588         * MODULES.html.sh (Multithreading): Add tls.
55589
55590 2005-08-16  Bruno Haible  <bruno@clisp.org>
55591
55592         * modules/strnlen1: New file.
55593         * MODULES.html.sh (String handling): Add strnlen1.
55594
55595 2005-08-16  Bruno Haible  <bruno@clisp.org>
55596
55597         * modules/strcase (Files): Add m4/mbrtowc.m4.
55598         (Depends-on): Add strnlen1, mbchar.
55599
55600 2005-08-16  Bruno Haible  <bruno@clisp.org>
55601
55602         * modules/mbiter: New file.
55603         * MODULES.html.sh (Extended multibyte and wide character utilities):
55604         Add mbiter.
55605
55606 2005-08-16  Bruno Haible  <bruno@clisp.org>
55607
55608         * modules/mbfile: New file.
55609         * MODULES.html.sh (Extended multibyte and wide character utilities):
55610         Add mbfile.
55611
55612 2005-08-16  Bruno Haible  <bruno@clisp.org>
55613
55614         * modules/mbchar: New file.
55615         * MODULES.html.sh (Extended multibyte and wide character utilities):
55616         New section.
55617
55618 2005-08-16  Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/tls.m4: New file, from GNU gettext.
55621
55622 2005-08-16  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
55625         always.
55626         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
55627
55628 2005-08-16  Bruno Haible  <bruno@clisp.org>
55629
55630         * m4/mbiter.m4: New file.
55631
55632 2005-08-16  Bruno Haible  <bruno@clisp.org>
55633
55634         * m4/mbfile.m4: New file.
55635
55636 2005-08-16  Bruno Haible  <bruno@clisp.org>
55637
55638         * m4/mbchar.m4: New file.
55639
55640 2005-08-16  Bruno Haible  <bruno@clisp.org>
55641
55642         * lib/tls.h: New file, from GNU gettext.
55643         * lib/tls.c: New file, from GNU gettext.
55644
55645 2005-08-16  Bruno Haible  <bruno@clisp.org>
55646
55647         * lib/strnlen1.h: New file.
55648         * lib/strnlen1.c: New file.
55649
55650 2005-08-16  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
55653         (mbi_init): Update.
55654         (mbi_avail, mbi_advance): Let the iteration end before the terminating
55655         NUL byte, not after it.
55656
55657 2005-08-16  Bruno Haible  <bruno@clisp.org>
55658
55659         * lib/strcase.h (strcasecmp): Add note in comments.
55660         * lib/strncasecmp.c: Use code from strcasecmp.c.
55661         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
55662         (strcasecmp): Work correctly in multibyte locales.
55663
55664 2005-08-16  Bruno Haible  <bruno@clisp.org>
55665
55666         * lib/mbiter.h: New file.
55667
55668 2005-08-16  Bruno Haible  <bruno@clisp.org>
55669
55670         * lib/mbfile.h: New file.
55671
55672 2005-08-16  Bruno Haible  <bruno@clisp.org>
55673
55674         * lib/mbchar.h: New file.
55675         * lib/mbchar.c: New file.
55676
55677 2005-08-16  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
55680         the valid ones. Makes the comparison operations transitive:
55681         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
55682         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
55683
55684 2005-08-15  Simon Josefsson  <jas@extundo.com>
55685
55686         * modules/ssize_t (License): Change to 'unlimited'.
55687
55688         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
55689
55690 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
55693         Add comments for each pending glibc patch.
55694
55695 2005-08-15  Bruno Haible  <bruno@clisp.org>
55696
55697         * lib/regex.h (__restrict_arr): Don't define to __restrict if
55698         __cplusplus is defined.
55699
55700 2005-08-14  Jim Meyering  <jim@meyering.net>
55701
55702         Sync from coreutils.
55703
55704         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
55705         Use the hash-table-based cycle-detection code not just when
55706         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
55707         Reported by James Youngman in
55708         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
55709         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
55710         FTS_TIGHT_CYCLE_CHECK.
55711         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
55712         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
55713         once again.
55714         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
55715         * lib/fts.c (fd_safer): Remove decl.
55716         Include fcntl--.h rather than unistd-safer.h
55717         (fts_safe_changedir): Don't call fd_safer; no longer needed
55718         now that we include fcntl--.h.
55719
55720 2005-08-12  Simon Josefsson  <jas@extundo.com>
55721
55722         * modules/getndelim2: Use ssize_t module.
55723         * modules/getnline: Likewise.
55724         * modules/safe-read: Likewise.
55725         * modules/xreadlink: Likewise.
55726
55727         * modules/ssize_t: New file.
55728
55729 2005-08-12  Simon Josefsson  <jas@extundo.com>
55730
55731         * m4/readline.m4: Look for termcap, curses or ncurses if required.
55732
55733 2005-08-12  Simon Josefsson  <jas@extundo.com>
55734
55735         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55736         ssize_t.
55737
55738 2005-08-12  Simon Josefsson  <jas@extundo.com>
55739
55740         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
55741         readline, getdelim and check_version.
55742         (Support for systems lacking ISO C 99: Sizes of integer types):
55743         Add size_max.
55744
55745 2005-08-12  Bruno Haible  <bruno@clisp.org>
55746
55747         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
55748
55749 2005-08-11  Simon Josefsson  <jas@extundo.com>
55750
55751         * modules/readline: New file.
55752
55753         * modules/strnlen (Files): Add strnlen.h.
55754
55755 2005-08-11  Simon Josefsson  <jas@extundo.com>
55756
55757         * m4/readline.m4: New file.
55758
55759 2005-08-11  Simon Josefsson  <jas@extundo.com>
55760
55761         * lib/readline.h, readline.c: New file.
55762
55763 2005-08-11  Simon Josefsson  <jas@extundo.com>
55764
55765         * doc/gnulib.texi (Initial import, Finishing touches): Mention
55766         gl_AVOID.
55767
55768 2005-08-11  Bruno Haible  <bruno@clisp.org>
55769
55770         * lib/strnlen.h (strnlen): Change parameter name to match comment.
55771
55772 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
55773
55774         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
55775
55776 2005-08-10  Simon Josefsson  <jas@extundo.com>
55777
55778         * tests/test-iconvme.c: New file.
55779
55780 2005-08-10  Simon Josefsson  <jas@extundo.com>
55781
55782         * m4/strnlen.m4: New file.
55783
55784         * m4/strndup.m4: Don't check for strnlen declaration, done in
55785         strnlen.m4.
55786
55787 2005-08-10  Simon Josefsson  <jas@extundo.com>
55788
55789         * lib/strndup.c: Use strnlen.h.
55790
55791         * lib/strnlen.h: New file.
55792
55793 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55794
55795         * README: Typos.
55796
55797 2005-08-02  Simon Josefsson  <jas@extundo.com>
55798
55799         * modules/readline: New file.
55800
55801 2005-08-02  Simon Josefsson  <jas@extundo.com>
55802
55803         * modules/getdelim: New file.
55804
55805         * modules/getline: Rewrite, don't use getndelim2.
55806
55807 2005-08-02  Simon Josefsson  <jas@extundo.com>
55808
55809         * m4/getline.m4: Separate out getdelim stuff into separate module.
55810
55811         * m4/getdelim.m4: New file.
55812
55813 2005-08-02  Simon Josefsson  <jas@extundo.com>
55814
55815         * lib/getline.h, getline.c: Rewrite.
55816
55817         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
55818
55819 2005-07-31  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/lock.h (gl_lock_initializer): New macro.
55822         (gl_lock_define_initialized): Use it.
55823         (gl_rwlock_initializer): New macro.
55824         (gl_rwlock_define_initialized): Use it.
55825         (gl_recursive_lock_initializer): New macro.
55826         (gl_recursive_lock_define_initialized): Use it.
55827
55828 2005-07-30  Karl Berry  <karl@gnu.org>
55829
55830         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
55831         Report from Ben Pfaff, regarding getopt.
55832
55833 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
55834
55835         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
55836         normal way.
55837         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
55838         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
55839         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
55840         (gl_GETOPT): Use the new macros.  Most of the implementation
55841         is moved to the new macros.  This is for programs like Emacs
55842         that don't want all the functionality of gl_GETOPT.
55843
55844 2005-07-26  Bruno Haible  <bruno@clisp.org>
55845
55846         * m4/lock.m4: Update from GNU gettext.
55847
55848 2005-07-26  Bruno Haible  <bruno@clisp.org>
55849
55850         * lib/lock.h: Update from GNU gettext.
55851         * lib/lock.c: Update from GNU gettext.
55852
55853 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
55856         obsolescent AC_TRY_RUN.  Include the default includes files, for
55857         'exit'.
55858
55859 2005-07-24  Bruno Haible  <bruno@clisp.org>
55860
55861         * modules/visibility: New file.
55862         * MODULES.html.sh (Misc): Add visibility.
55863
55864 2005-07-24  Bruno Haible  <bruno@clisp.org>
55865
55866         * m4/visibility.m4: New file.
55867
55868 2005-07-24  Bruno Haible  <bruno@clisp.org>
55869
55870         * doc/visibility.texi: New file.
55871
55872 2005-07-22  Bruno Haible  <bruno@clisp.org>
55873
55874         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
55875         $(ALLOCA_H), redundant through BUILT_SOURCES.
55876         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
55877         redundant through BUILT_SOURCES.
55878         * modules/byteswap (Makefile.am): Remove explicit dependency on
55879         $(BYTESWAP_H), redundant through BUILT_SOURCES.
55880         * modules/fnmatch (Makefile.am): Remove explicit dependency on
55881         $(FNMATCH_H), redundant through BUILT_SOURCES.
55882         * modules/getopt (Makefile.am): Remove explicit dependency on
55883         $(GETOPT_H), redundant through BUILT_SOURCES.
55884         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
55885         redundant through BUILT_SOURCES.
55886         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
55887         redundant through BUILT_SOURCES.
55888         * modules/stdbool (Makefile.am): Remove explicit dependency on
55889         $(STDBOOL_H), redundant through BUILT_SOURCES.
55890         * modules/stdint (Makefile.am): Remove explicit dependency on
55891         $(STDINT_H), redundant through BUILT_SOURCES.
55892         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
55893         Remove explicit dependency on $(SYSEXITS_H).
55894         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
55895
55896 2005-07-18  Simon Josefsson  <jas@extundo.com>
55897
55898         * lib/check-version.c (check_version): Accept identical versions too.
55899
55900 2005-07-18  Bruno Haible  <bruno@clisp.org>
55901
55902         * modules/lock: New file.
55903         * MODULES.html.sh (Multithreading): New section.
55904
55905 2005-07-18  Bruno Haible  <bruno@clisp.org>
55906
55907         * m4/lock.m4: New file, from GNU gettext.
55908
55909 2005-07-18  Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/lock.h: New file, from GNU gettext.
55912         * lib/lock.c: New file, from GNU gettext.
55913
55914 2005-07-18  Bruno Haible  <bruno@clisp.org>
55915
55916         * lib/lock.h (gl_once_t): New type.
55917         (gl_once_define, gl_once): New macros.
55918         * lib/lock.c (fresh_once): New variable.
55919         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55920         functions.
55921
55922 2005-07-16  Simon Josefsson  <jas@extundo.com>
55923
55924         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55925         workaround, suggested by Bruno.
55926
55927 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         * modules/xalloc (Depends-on): Add xalloc-die.
55930         * modules/xvasprintf (Depends-on): Add xalloc-die.
55931
55932 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55935         with a minor change.
55936
55937 2005-07-15  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55940         When using lib/poll.c, define poll as rpl_poll.
55941
55942 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55943
55944         * modules/argp (Depends-on): Remove unlocked-io.
55945
55946 2005-07-14  Derek Price  <derek@ximbiot.com>
55947
55948         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55949         for glob symlink bug.
55950
55951 2005-07-14  Bruno Haible  <bruno@clisp.org>
55952
55953         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
55954         Instead, test for *_unlocked function declarations directly.
55955
55956 2005-07-11  Simon Josefsson  <jas@extundo.com>
55957
55958         * modules/size_max: New file.
55959
55960         * modules/xsize: Depend on size_max module for size_max.m4.
55961
55962 2005-07-11  Simon Josefsson  <jas@extundo.com>
55963
55964         * lib/size_max.h: New file.
55965
55966 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
55967
55968         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
55969         copyright symbol and the year.
55970         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
55971         (version_etc_va): Use parameterized copyright notice.
55972         Reword to conform to the current GNU coding standards.
55973
55974 2005-07-11  Karl Berry  <karl@gnu.org>
55975
55976         * doc/gnulib.texi (Quoting): new node.
55977         (Initial import): more info, from Patrice.
55978
55979 2005-07-11  Bruno Haible  <bruno@clisp.org>
55980
55981         * gnulib-tool (func_usage): Document option --avoid.
55982         (Command line options): Handle --avoid.
55983         (func_acceptable): New function.
55984         (func_modules_transitive_closure): Use it.
55985
55986 2005-07-11  Bruno Haible  <bruno@clisp.org>
55987
55988         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
55989         Reported by Jim Meyering.
55990
55991 2005-07-10  Bruno Haible  <bruno@clisp.org>
55992
55993         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
55994         Needed when size_t is smaller than 'unsigned int'.
55995         Reported by Paul Eggert.
55996
55997 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55998
55999         * modules/argp (Depends-on): Add unlocked-io
56000
56001 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56002
56003         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56004         block of defines.
56005
56006 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56007
56008         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56009         fix now.
56010
56011 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56012         and Paul Eggert  <eggert@cs.ucla.edu>
56013
56014         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56015         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56016
56017 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56018
56019         * modules/regex (Files): Add lib/regex_internal.c,
56020         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56021         (Depends-on): Add extensions.
56022         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56023
56024 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56025
56026         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56027         pathconf.
56028         * m4/same.m4 (gl_SAME): Likewise.
56029         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56030
56031         * m4/regex.m4: Adjust to new libc regex implementation.
56032         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56033         all the .c and .h parts of (the new) regex.
56034         Quote the m4 stuff better.
56035         Check for RE_ICASE bug of old gnulib.
56036         Check for REG_STARTEND of recent libc.
56037         Rename local variables from jm_* to gl_*.
56038         Quote operand of "test -f".
56039         Say "recent enough" version of libc, not "version 2".
56040         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56041         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56042         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56043         Remove check for btowc, isascii.
56044         Require AM_LANGINFO_CODESET.
56045
56046 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56047
56048         * lib/regex.c, regex.h: Sync from libc.
56049         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56050         * lib/regexec.c:
56051         New files, synced from libc, except that regex_internal.h
56052         currently has a small porting fix.
56053
56054 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56055
56056         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56057         regex_internal.c, regexec.c.
56058         Add regex_internal.h too, but as a comment, since the libc version
56059         is currently broken in gnulib mode.
56060
56061 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56062
56063         Support programs like Emacs that use gnulib but not gettext.
56064         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56065         * modules/gettext-h: New file.
56066         * modules/gettext (Files): Remove lib/gettext.h.
56067         (Depends-on): Add gettext-h.
56068         (Makefile.am): Remove lib_SOURCES.
56069         * modules/argmatch, modules/c-stack, modules/closeout:
56070         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56071         * modules/execute, modules/file-type, modules/getaddrinfo:
56072         * modules/getopt, modules/human, modules/javacomp:
56073         * modules/javaexec, modules/mkdir-p, modules/obstack:
56074         * modules/openat, modules/pagealign_alloc, modules/pipe:
56075         * modules/quotearg, modules/regex, modules/rpmatch:
56076         * modules/unicodeio, modules/userspec, modules/version-etc:
56077         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56078         * modules/xsetenv:
56079         Depend on gettext-h, not gettext.
56080
56081 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56082
56083         * gnulib-tool (func_import): Add support for 'public domain' license.
56084         * modules/alloca, modules/atexit, modules/memmove:
56085         Now public domain, not GPL.
56086         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56087         * modules/realloc, modules/strerror, modules/strtod:
56088         Now LGPL, not GPL.
56089
56090 2005-07-05  Bruno Haible  <bruno@clisp.org>
56091
56092         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56093         autoconf CVS. Needed for mingw.
56094
56095 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56096
56097         Remove the dependency of the strftime module on the tzset module.
56098         * modules/strftime (Depends-on): Remove dependency on tzset.
56099
56100 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         Remove the dependency of the strftime module on the tzset module.
56103         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56104         gl_FUNC_TZSET_CLOBBER.
56105
56106 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56107
56108         Remove the dependency of the strftime module on the tzset module.
56109         * lib/strftime.c (my_strftime)
56110         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56111         Copy the input structure, to work around some of the bug with
56112         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56113         Solaris releases, you should also use the tzset module, but we won't
56114         require it as a dependency any more since we don't want LGPLed code
56115         to depend on GPLed code.
56116
56117 2005-07-02  Jim Meyering  <jim@meyering.net>
56118
56119         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56120         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56121         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56122         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56123
56124 2005-07-02  Jim Meyering  <jim@meyering.net>
56125
56126         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56127
56128 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56129
56130         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56131         declares only 'struct timespec;' (!).
56132
56133 2005-07-01  Jim Meyering  <jim@meyering.net>
56134
56135         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56136         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56137         * lib/save-cwd.c, tempname.c:
56138         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56139         and don't include <sys/file.h>).
56140
56141 2005-06-29  Jim Meyering  <jim@meyering.net>
56142
56143         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56144         type name.  Use the variable name instead.
56145         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56146         Likewise.
56147
56148 2005-06-28  Simon Josefsson  <jas@extundo.com>
56149
56150         * modules/check-version (Files): Add check-version.m4.
56151
56152 2005-06-28  Simon Josefsson  <jas@extundo.com>
56153
56154         * m4/check-version.m4: New file, suggested by Jim Meyering
56155         <jim@meyering.net>.
56156
56157 2005-06-28  Simon Josefsson  <jas@extundo.com>
56158
56159         * lib/check-version.h, lib/check-version.c: New files.
56160
56161 2005-06-28  Simon Josefsson  <jas@extundo.com>
56162
56163         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56164         collision with global variable.  Better indentation.  Don't
56165         increment buffer pointer beyond buffer end.  Based on comments
56166         from Paul Eggert <eggert@cs.ucla.edu>.
56167
56168         * lib/base64.h: Indent.
56169
56170 2005-06-28  Simon Josefsson  <jas@extundo.com>
56171
56172         * doc/gnulib.texi (Library version handling): New section.
56173
56174 2005-06-28  Jim Meyering  <jim@meyering.net>
56175
56176         * check-module (find_included_lib_files): Hard-code another
56177         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56178         but modules/fts-lgpl (correctly) does not list those files.
56179
56180         * modules/canonicalize (Files): Add lib/pathmax.h.
56181
56182 2005-06-25  Simon Josefsson  <jas@extundo.com>
56183
56184         * modules/check-version: New file.
56185
56186 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56187
56188         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56189         initializer of struct addrinfo, as an indication that we don't
56190         care how many members the structure has.
56191
56192 2005-06-24  Derek Price  <derek@ximbiot.com>
56193         and Bruno Haible  <bruno@clisp.org>
56194
56195         Remove stat module & update lstat.
56196         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56197         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56198         * m4/stat.m4: Remove this file.
56199
56200 2005-06-24  Derek Price  <derek@ximbiot.com>
56201         and Bruno Haible  <bruno@clisp.org>
56202
56203         Remove stat module & update lstat.
56204         * lib/stat.c: Remove this file...
56205         (slash_aware_lstat): ...moving this content and its support...
56206         * lib/lstat.c (rpl_lstat): ...into here.
56207         * lib/lstat.h: New file.
56208
56209 2005-06-24  Derek Price  <derek@ximbiot.com>
56210         and Bruno Haible  <bruno@clisp.org>
56211
56212         Remove stat module & update lstat.
56213         * config/srclist.txt (libc sources): Remove stat.
56214
56215 2005-06-24  Derek Price  <derek@ximbiot.com>
56216         and Bruno Haible  <bruno@clisp.org>
56217
56218         Remove stat module & update lstat.
56219         * MODULES.html.sh (stat): Remove.
56220         * MODULES.html: Regenerated.
56221         * modules/lstat (Description): Correct function name.
56222         (Files): Add "lstat.h".
56223         (Depends-on): Remove stat, add xalloc, stat-macros.
56224         * modules/stat: Remove this file.
56225         (Include): Add "lstat.h", remove <sys/stat.h>.
56226
56227 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56228
56229         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56230         (ranged_convert): Don't save conversion in a temporary struct.
56231         This causes a warning with GCC 4.0.0, and anyway in the typical
56232         case it's not worth the extra 100 bytes or so of code.
56233         (ranged_convert, __mktime_internal): When calling a function via a
56234         pointer P, use P () rather than (*P) (), as we now assume C89 or
56235         better.
56236
56237 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56240         "who -r" failed to give output.  Problem reported by Tim Waugh.
56241
56242         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56243         (xcalloc): Use it to avoid needless tests.
56244         Problem reported by Jim Meyering.
56245
56246 2005-06-20  Derek Price  <derek@ximbiot.com>
56247
56248         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56249         unnecessary for Autoconfs > 2.59c.
56250
56251 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56252
56253         * lib/argp.h (__option_is_short): Check upper limit of
56254         __key. Isprint() requires its argument to have the value
56255         of an unsigned char or EOF.
56256
56257 2005-06-16  Jim Meyering  <jim@meyering.net>
56258
56259         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56260         when either N or S is zero.
56261
56262 2005-06-16  Derek Price  <derek@ximbiot.com>
56263
56264         * m4/bison.m4: Declare YACC & YFLAGS precious.
56265
56266 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56267
56268         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56269         multibyte string or pattern, fall back on unibyte matching.
56270         Problem reported by James Youngman.
56271
56272 2005-06-08  Bruno Haible  <bruno@clisp.org>
56273
56274         * modules/csharpcomp: New file.
56275         * MODULES.html.sh (C#): Add csharpcomp.
56276
56277 2005-06-08  Bruno Haible  <bruno@clisp.org>
56278
56279         * m4/csharpcomp.m4: New file, from GNU gettext.
56280
56281 2005-06-08  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/csharpcomp.h: New file, from GNU gettext.
56284         * lib/csharpcomp.c: New file, from GNU gettext.
56285         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56286
56287 2005-06-08  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56290         warning on mingw.
56291
56292 2005-06-07  Derek Price  <derek@ximbiot.com>
56293
56294         Sync from CVS.
56295         * lib/glob_.h: Indent nested #ifdef.
56296
56297 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         Sync from coreutils.
56300         Use "file name" when talking about file names, instead of "filename"
56301         or "path", as per the GNU coding standards.
56302         * lib/mkdir-p.c: Renamed from makepath.c.
56303         (make_dir_parents): Renamed from make_path.  All callers changed.
56304         * lib/mkdir-p.h: Likewise.  All includers changed.
56305         * lib/filenamecat.c: Renamed from path-concat.c.
56306         (file_name_concat): Renamed from path_concat.  All callers changed.
56307         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56308         * lib/filenamecat.h: Likewise.  All includers changed.
56309         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56310         in comments or local variable names.
56311         * lib/basename.c: Likewise.
56312         * lib/canonicalize.c, canonicalize.h: Likewise.
56313         * lib/dirname.c, dirname.h: Likewise.
56314         * lib/euidaccess.c: Likewise.
56315         * lib/exclude.c: Likewise
56316         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56317         * lib/fsusage.c, fsuage.h: Likewise.
56318         * lib/fts.c, fts_.h: Likewise.
56319         * lib/getcwd.c: Likewise.
56320         * lib/getloadavg.c: Likewise.
56321         * lib/mkstemp.c: Likewise.
56322         * lib/mountlist.c, mountlist.h: Likewise.
56323         * lib/openat.c, openat.h: Likewise.
56324         * lib/readlink-stub.c: Likewise.
56325         * lib/readutmp.c, readutmp.h: Likewise.
56326         * lib/rename.c: Likewise.
56327         * lib/rmdir.c: Likewise.
56328         * lib/same.c: Likewise.
56329         * lib/savedir.c: Likewise.
56330         * lib/stripslash.c: Likewise.
56331         * lib/tempname.c: Likewise.
56332         * lib/xreadlink.c: Likewise.
56333         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56334         All uses changed.
56335         * lib/exclude.h: Likewise.
56336
56337         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56338         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56339         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56340         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56341         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56342         files have been getting away with it for years (MORE/BSD 4.3
56343         is extinct now).
56344         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56345         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56346
56347         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56348         Define to 256, not 255, as per modern POSIX.
56349
56350 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56351
56352         Sync from coreutils.
56353         Use "file name" when talking about file names, instead of "filename"
56354         or "path", as per the GNU coding standards.
56355         * MODULES.html.sh: mkdir-p renamed from makepath.
56356         filenamecat renamed from path-concat.
56357         * modules/filenamecat: Renamed from modules/path-concat.
56358         (Files): filenamecat.h and filenamecat.c renamed from
56359         path-concat.h and path-concat.c.
56360         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56361         (Include): filenamecat.h, not path-concat.h.
56362         * modules/mkdir-p: Renamed from modules/makepath.
56363         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
56364         makepath.c.
56365         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
56366         (Include): mkdir-p.h, not makepath.h.
56367
56368 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         Sync from coreutils.
56371         * m4/mkdir-p.m4: Renamed from makepath.m4.
56372         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
56373         Rename files from makepath.c to mkdir-p.c, and from
56374         makepath.h to mkdir-p.h.
56375         * m4/filenamecat.m4: Renamed from path-concat.m4.
56376         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
56377         Rename files from path-concat.c to filenamecat.c,
56378         and from path-concat.h to filenamecat.h.
56379         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
56380         "file name" in local variables or comments.
56381         * m4/rename.m4: Likewise.
56382
56383 2005-06-01  Bruno Haible  <bruno@clisp.org>
56384
56385         * modules/csharpexec: New file.
56386         * MODULES.html.sh (C#): New section.
56387
56388 2005-06-01  Bruno Haible  <bruno@clisp.org>
56389
56390         * m4/csharp.m4: New file, from GNU gettext.
56391         * m4/csharpexec.m4: New file, from GNU gettext.
56392
56393 2005-06-01  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/csharpexec.h: New file, from GNU gettext.
56396         * lib/csharpexec.c: New file, from GNU gettext.
56397         * lib/csharpexec.sh.in: New file, from GNU gettext.
56398
56399 2005-05-31  Derek Price  <derek@ximbiot.com>
56400             Paul Eggert  <eggert@cs.ucla.edu>
56401
56402         Sync from cvs.
56403         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56404
56405 2005-05-31  Derek Price  <derek@ximbiot.com>
56406             Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         Sync from cvs.
56409         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56410
56411 2005-05-29  Derek Price  <derek@ximbiot.com>
56412
56413         * config/srclist.txt (glob_.h, glob.c): Add these files.
56414
56415 2005-05-29  Derek Price  <derek@ximbiot.com>
56416
56417         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
56418         * modules/glob: New file.
56419         * modules/getlogin_r: Add link to POSIX spec in description.
56420
56421 2005-05-29  Derek Price  <derek@ximbiot.com>
56422             Paul Eggert  <eggert@cs.ucla.edu>
56423
56424         * m4/glob.m4: New file.
56425
56426 2005-05-29  Derek Price  <derek@ximbiot.com>
56427             Paul Eggert  <eggert@cs.ucla.edu>
56428
56429         * lib/glob_.h, lib/glob.c: New files.
56430
56431 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * modules/fts (Files): Remove m4/inttypes-pri.m4.
56434         * modules/fts-lgpl (Depends-on): Remove gettext.
56435
56436 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
56439         and don't require gt_INTTYPES_PRI.
56440
56441 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56442
56443         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
56444
56445         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
56446         the configuration hassle isn't worth it.
56447         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
56448         (LONGEST_MODIFIER, PRIuMAX): Remove.
56449
56450 2005-05-27  Bruno Haible  <bruno@clisp.org>
56451
56452         * lib/getlogin_r.h: Remove second include of <stddef.h>.
56453
56454 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
56455
56456         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
56457         _POSIX_PTHREAD_SEMANTICS for Solaris.
56458
56459 2005-05-25  Derek Price  <derek@ximbiot.com>
56460
56461         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
56462
56463 2005-05-25  Derek Price  <derek@ximbiot.com>
56464             Paul Eggert  <eggert@cs.ucla.edu>
56465
56466         * modules/getlogin_r, m4/getlogin_r.m4: New files.
56467         * lib/getlogin_r.c, getlogin_r.h: New files.
56468
56469 2005-05-25  Bruno Haible  <bruno@clisp.org>
56470             Derek Price  <derek@ximbiot.com>
56471
56472         * lib/getlogin_r.h: Simplify API documentation.
56473
56474 2005-05-23  Derek Price  <derek@ximbiot.com>
56475
56476         * modules/minmax (Files): Add m4/minmax.m4.
56477         (configure.ac): Add gl_MINMAX.
56478
56479 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56480
56481         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
56482         so that unistd-safer.h (GPL'ed code) need not be included.
56483
56484 2005-05-22  Bruno Haible  <bruno@clisp.org>
56485
56486         * m4/minmax.m4: New file.
56487         Based on a patch by Derek Price <derek@ximbiot.com>.
56488
56489 2005-05-22  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
56492         (INT64_MIN): Fix definition.
56493         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
56494
56495         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
56496         NEED_SIGNED_INT_TYPES.
56497
56498         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
56499         HAVE_SYSTEM_INTTYPES.
56500
56501 2005-05-22  Bruno Haible  <bruno@clisp.org>
56502
56503         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
56504         Also include <sys/param.h> if it defines MIN, MAX.
56505         Based on a patch by Derek Price <derek@ximbiot.com>.
56506
56507 2005-05-21  Jim Meyering  <jim@meyering.net>
56508
56509         * modules/fts (Files): Add m4/inttypes-pri.m4.
56510         (Depends-on): Add lstat and remove gettext.  Alphabetize.
56511
56512 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56513
56514         New fts module.
56515         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
56516         (setup_dir, free_dir): New functions.
56517         (enter_dir, leave_dir): Define trivial
56518         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
56519         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
56520         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
56521         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
56522         Move to fts-cycle.c.
56523         (fts_open): Use setup_dir.
56524         (fts_close): Use free_dir.
56525         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
56526         This adds a label and some gotos, but the alternatives were messier.
56527         Check for memory allocation failure when entering a dir.
56528         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
56529         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
56530         (FTS): New member fts_cycle, that is a union that contains the
56531         old active_dir_ht and cycle_state.  All uses changed to mention
56532         fts_cycle.ht and fts_cycle.state.
56533         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
56534         fts.c, with the following changes:
56535         (setup_dir, free_dir): New functions.
56536         (enter_dir): Now returns bool.  Return true if successful, false
56537         if memory exhausted.  All callers changed.
56538         Do not bother partly cleaning up on
56539         memory allocation failure; that is free_dir's job.
56540         However, free ad if hash_insert fails, to avoid memory leak.
56541         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
56542         fts->fts_options to see which union member to use.
56543
56544 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56545
56546         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
56547         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
56548
56549 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56550
56551         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
56552
56553 2005-05-20  Jim Meyering  <jim@meyering.net>
56554
56555         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
56556         Now a macro, to pacify GCC.
56557
56558 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56559
56560         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
56561         of -1.
56562
56563 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56564
56565         * lib/chown.c (rpl_chown): Return -1 on failure.
56566
56567 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56568
56569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
56570         Don't check for stddef.h.
56571         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
56572         don't use its results.
56573         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
56574         since we include them unconditionally.  Don't require
56575         AM_STDBOOL_H, since stdbool is a prerequisite.
56576         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
56577         since we assume C89 or better.
56578         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
56579         as we don't use their results.
56580         Don't check for fchdir, memmove, memset, strrchr, as we use
56581         them unconditionally.
56582         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
56583         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
56584
56585 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56586
56587         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
56588         Include <stddef.h> unconditionally, since we assume C89 now.
56589         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
56590         * lib/fts.c: Include fts_.h first, to check interface.
56591         Do not include intprops.h; no longer needed.
56592         Include cycle-check.h and hash.h, since fts_.h no longer does.
56593         Remove unnecessary casts of closedir to void.
56594         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
56595         decide whether to decrement nlinks.
56596         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
56597         (FTS): Use struct hash_table * instead of Hash_table, so that
56598         we no longer need to include hash.h here.
56599
56600 2005-05-18  Jim Meyering  <jim@meyering.net>
56601
56602         * modules/dirfd (License): Change to LGPL.  Most of the code
56603         is already in the public domain.
56604
56605 2005-05-18  Jim Meyering  <jim@meyering.net>
56606
56607         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
56608         Reported by Yoann Vandoorselaere.
56609
56610 2005-05-17  Jim Meyering  <jim@meyering.net>
56611
56612         * m4/fts.m4: New file, from coreutils.
56613
56614 2005-05-17  Jim Meyering  <jim@meyering.net>
56615
56616         * lib/fts.c, lib/fts_.h: New files, from coreutils.
56617
56618 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56619
56620         Sync from coreutils.
56621         * m4/unlinkdir.m4: New file.
56622
56623 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56624
56625         Sync from coreutils.
56626         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
56627         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
56628         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
56629         White space changes only.
56630         * lib/makepath.c (make_path): Port to hosts where leading "//" is
56631         special.
56632         * lib/yesno.c: Include getline.h, not ctype.h.
56633         (yesno): Don't remove leading white space; POSIX doesn't allow it.
56634         Use getline to remove arbitrary restriction on response length.
56635
56636 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56637
56638         * config/srclist-update: Spell out "Street" in FSF postal
56639         mail address; this is the style the FSF seems to prefer.
56640
56641         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
56642         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
56643         this updates FSF postal mail address.
56644
56645         Sync from coreutils.
56646         * modules/unlinkdir: New file.
56647         * modules/yesno (Depends-on): Add getline.
56648         * MODULES.html.sh (File system functions): Add unlinkdir.
56649
56650 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56651
56652         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
56653         lib/strsep.h:
56654         Change the initial comment to refer to GPL, not LGPL.
56655         gnulib-tool will change it to LGPL as needed.
56656
56657         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
56658         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
56659         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
56660         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
56661         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
56662         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
56663         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
56664         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
56665         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
56666         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
56667         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
56668         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
56669         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
56670         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
56671         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
56672         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
56673         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
56674         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
56675         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
56676         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
56677         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
56678         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
56679         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
56680         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
56681         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
56682         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
56683         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
56684         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
56685         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
56686         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
56687         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
56688         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
56689         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
56690         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
56691         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
56692         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
56693         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
56694         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
56695         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
56696         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
56697         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
56698         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
56699         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
56700         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
56701         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
56702         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
56703         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
56704         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
56705         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
56706         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
56707         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56708         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
56709         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
56710         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
56711         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
56712         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
56713         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
56714         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
56715         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
56716         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
56717         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
56718         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
56719         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
56720         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
56721         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
56722         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
56723         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
56724         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
56725         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
56726         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
56727         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
56728         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
56729         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
56730         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
56731         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
56732         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
56733         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
56734         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
56735         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
56736         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
56737         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
56738         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
56739         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
56740         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
56741         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
56742         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
56743         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
56744         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
56745         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
56746         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
56747         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
56748         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
56749         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
56750         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
56751         lib/yesno.c, lib/yesno.h:
56752         Update FSF postal mail address.
56753
56754 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56755
56756         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
56757         tests/test-memmem.c, tests/test-stpncpy.c:
56758         Update FSF postal mail address.
56759
56760 2005-05-13  Bruno Haible  <bruno@clisp.org>
56761
56762         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
56763         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
56764         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
56765         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
56766         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
56767         Add support for 64-bit integers in the MSVC compiler.
56768
56769 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56770
56771         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
56772
56773 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
56774
56775         * gnulib-tool (func_import): Sort and uniquify recommended includes.
56776
56777 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
56778
56779         * doc/getdate.texi (General date syntax): Don't say that date
56780         date --iso-8601=ns generates acceptable dates; it doesn't yet.
56781         Problem reported by Nic Ferrier.
56782
56783 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56784
56785         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
56786         specified in ai_socktype. Fix invalid ai_protocol
56787         check. ai_protocol is usually set to 0 or depending on
56788         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
56789         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
56790         ai_socktype / ai_protocol in the returned addrinfo structure.
56791
56792 2005-05-10  Simon Josefsson  <jas@extundo.com>
56793
56794         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
56795         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56796
56797 2005-05-10  Karl Berry  <karl@gnu.org>
56798
56799         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
56800         (from http://www.gnu.org/licenses).
56801         * doc/COPYING.LIB: also rename to COPYING.LESSER.
56802         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
56803         fdl.texi suffices.
56804
56805 2005-05-10  Karl Berry  <karl@gnu.org>
56806
56807         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
56808         (COPYING.DOC): remove.
56809
56810         * config/srclist-update: new FSF address.
56811
56812 2005-05-10  Derek Price  <derek@ximbiot.com>
56813
56814         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
56815         possible.
56816
56817 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56818             Bruno Haible  <bruno@clisp.org>
56819
56820         * modules/inet_ntop: New file.
56821         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56822         inet_ntop.
56823
56824 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56825             Bruno Haible  <bruno@clisp.org>
56826
56827         * m4/inet_ntop.m4: New file.
56828
56829 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56830             Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/inet_ntop.h: New file.
56833         * lib/inet_ntop.c: New file, from glibc with modifications.
56834
56835 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
56836
56837         * modules/time_r (License): Change to LGPL.
56838         * modules/extensions (License): Change to LGPL.  Actually,
56839         the license is more permissive than that, but currently gnulib-tool
56840         doesn't know how to handle more-permissive licenses.
56841
56842         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
56843         Problem reported by Dave Love.
56844
56845 2005-05-08  Jim Meyering  <jim@meyering.net>
56846
56847         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
56848         blank.
56849
56850 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * modules/argmatch (Depends-on): Add stdbool.
56853         * modules/backupfile (Depends-on): Likewise.
56854         * modules/chdir-long (Depends-on): Likewise.
56855         * modules/closeout (Depends-on): Likewise.
56856         * modules/cycle-check (Depends-on): Likewise.
56857         * modules/dirname (Depends-on): Likewise.
56858         * modules/fnmatch (Depends-on): Likewise.
56859         * modules/fsusage (Depends-on): Likewise.
56860         * modules/fwriteerror (Depends-on): Likewise.
56861         * modules/getcwd (Depends-on): Likewise.
56862         * modules/getloadavg (Depends-on): Likewise.
56863         * modules/hard-locale (Depends-on): Likewise.
56864         * modules/makepath (Depends-on): Likewise.
56865         * modules/mountlist (Depends-on): Likewise.
56866         * modules/nanosleep (Depends-on): Likewise.
56867         * modules/posixtm (Depends-on): Likewise.
56868         * modules/quotearg (Depends-on): Likewise.
56869         * modules/readtokens (Depends-on): Likewise.
56870         * modules/readtokens0 (Depends-on): Likewise.
56871         * modules/readutmp (Depends-on): Likewise.
56872         * modules/save-cwd (Depends-on): Likewise.
56873         * modules/strftime (Depends-on): Likewise.
56874         * modules/userspec (Depends-on): Likewise.
56875         * modules/utimecmp (Depends-on): Likewise.
56876         * modules/xgetcwd (Depends-on): Likewise.
56877         * modules/xnanosleep (Depends-on): Likewise.
56878         * modules/xstrtod (Depends-on): Likewise.
56879         * modules/yesno (Depends-on): Likewise.
56880
56881 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56882
56883         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
56884         needless checks.
56885
56886 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56887
56888         Merge from coreutils.  Among other things,
56889         add bulletproofing for cases where stdin, stdout, or stderr are closed.
56890         * lib/fd-safer.c: New file.
56891         * lib/fcntl-safer.h, open-safer.c: Remove.
56892         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
56893         * lib/dup-safer.c: Include unistd-safer.h first.
56894         Don't include errno.h.
56895         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
56896         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
56897         * lib/file-type.c: Rely on file-type.h change.
56898         * lib/getloadavg.c: Include unistd-safer.h.
56899         (getloadavg): Use safer open.
56900         * lib/getusershell.c: Include "stdio-safer.h".
56901         (getusershell): Use safer fopen.
56902         * lib/long-options.c (long_options): Use NULL rather than 0.
56903         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
56904         'free'.
56905         * lib/modechange.c: Likewise.
56906         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
56907         (MODE_DONE): New constant.
56908         (struct mode_change): Remove 'next' member.
56909         (make_node_op_equals): New function; like the old one of the
56910         same name, except it allocates an array.
56911         (mode_compile, mode_create_from_ref): Use it.
56912         (mode_compile): Allocate result as an array, not a linked list.
56913         Parse octal string ourself, so that we catch mistakes like "+0".
56914         (mode_adjust): Arg is an array, not a linked list.
56915         * lib/modechange.c: Include stat-macros.h, xalloc.h.
56916         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
56917         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
56918         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56919         Remove.  This is now stat-macros.h's job.
56920         (talloc): Remove.  All callers replaced by xalloc, so that
56921         our invokers don't have to worry about reporting memory failures.
56922         (make_node_op_equals): Remove.
56923         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56924         New constants.
56925         (struct mode_change): Moved here from modechange.h.
56926         (mode_append_entry): Remove.
56927         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56928         apps to have incorrect behavior.  Use simpler algorithm for head
56929         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56930         Detect more invalid usages rather than having somewhat-random behavior.
56931         Don't insert an "a=" action, as that leads to incorrect behavior.
56932         (mode_compile, mode_create_from_ref): Return NULL on error instead
56933         of an enum, since now there's only one way to have an error.  All
56934         callers changed.
56935         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56936         at the correct time.  Simplify calculation of "+u" and its ilk.
56937         Don't mishandle "+X".
56938         (mode_free): Remove "register" and localize decls.
56939         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56940         (struct mode_change): Move to modechange.c; callers don't
56941         need to see this stuff.
56942         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56943         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56944         (mode_change, mode_adjust): Reflect the new signatures noted above.
56945         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56946         that might redefine system include files.
56947         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56948         (my_usleep): Use NULL rather than (void *) 0.
56949         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56950         Use siginterrupt to specify that system calls should be interrupted.
56951         (rpl_nanosleep): Move initialization of suspended closer to call of
56952         my_usleep.
56953         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
56954         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
56955         (desirable_utmp_entry): New function.
56956         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
56957         using x2nrealloc, to simplify logic.
56958         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
56959         size calculation.  Do not assume utmp file is a regular file.
56960         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
56961         (READ_UTMP_CHECK_PIDS): New constant.
56962         * lib/save-cwd.c: Include unistd-safer.h.
56963         (save_cwd): Use fd_safer.
56964         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
56965         [!_LIBC] Include "stat-macros.h" instead.
56966         * lib/unistd-safer.h (fd_safer): New decl.
56967
56968 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56969
56970         * modules/getloadavg (Depends-on): Add unistd-safer.
56971         * modules/getusershell (Depends-on): Add stdio-safer.
56972         * modules/lstat (Depends-on): Remove xalloc.
56973         * modules/mkstemp (Depends-on): Add stat-macros.
56974         * modules/modechange (Depends-on): Remove xstrtol.
56975         Add stat-macros, xalloc.
56976         * modules/save-cwd (Depends-on): Add unistd-safer.
56977         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
56978         * modules/unistd-safer (Files): Add lib/fd-safer.c
56979         (Makefile.am): Remove lib_SOURCES.
56980
56981         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
56982         Remove fcntl-safer; unistd-safer supersedes it.
56983
56984 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
56987         AC_HEADER_STAT.
56988         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
56989         (gl_PREREQ_CHOWN): Remove.
56990         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
56991         it.  Don't require AC_HEADER_STAT.
56992         (gl_PREREQ_LSTAT): Remove.
56993         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
56994         Don't require AC_HEADER_STAT.
56995         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
56996         (gl_PREREQ_RMDIR): Remove.
56997         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
56998         mention stat-macros.h or AC_HEADER_STAT, since we'll make
56999         the stat-macros module a prerequisite.
57000         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57001         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57002         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57003         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57004         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57005         variable names.
57006         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57007         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57008         variable prefixes.
57009         * m4/fcntl-safer.m4: Remove.
57010         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57011         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57012         Invoke gl_PREREQ_FD_SAFER.
57013         (gl_PREREQ_FD_SAFER): New macro.
57014         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57015         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57016         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57017         Remove duplicate call to AC_LIBOBJ(readutmp).
57018         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57019
57020         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57021         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57022
57023 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57024
57025         * MODULES.html.sh (Misc): Add byteswap.
57026
57027 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57028
57029         * modules/getcwd (Depends-on): Add extensions.
57030         * modules/openat (Depends-on): Likewise.
57031
57032 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57033
57034         * modules/byteswap: New file.
57035
57036 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57037
57038         * m4/byteswap.m4: New file.
57039
57040 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57041
57042         * lib/byteswap_.h: New file.
57043
57044 2005-04-25  Karl Berry  <karl@gnu.org>
57045
57046         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57047
57048 2005-04-25  Albert Chin  <china@thewrittenword.com>
57049
57050         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57051         Toolkit C bug.
57052
57053 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57054
57055         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57056         (func_ln_if_changed) Remove forcibly for no error message
57057         in case file does not exist.
57058
57059 2005-04-19  Simon Josefsson  <jas@extundo.com>
57060
57061         * gnulib-tool (Options): Make --symlink mean --symbolic.
57062
57063 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57064
57065         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57066
57067 2005-04-16  Simon Josefsson  <jas@extundo.com>
57068
57069         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57070
57071 2005-04-15  Simon Josefsson  <jas@extundo.com>
57072
57073         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57074
57075 2005-04-15  Simon Josefsson  <jas@extundo.com>
57076
57077         * gnulib-tool: Rename --symlink to --symbolic.
57078
57079 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57080
57081         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57082         symbolic links to files instead of copying/moving.  Add --aux-dir,
57083         specifying directory relative --dir where auxiliary build tools
57084         are placed.
57085
57086 2005-04-14  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/allocsa (License): Change to LGPL.
57089         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57090
57091 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57092
57093         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57094         that "UTC +1 second" continues to work.  Problem reported
57095         by Dmitry V. Levin.
57096         (relunit_snumber): New rule.
57097         (relunit): Use it.
57098
57099 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57100
57101         * lib/getdate.y (universal_time_zone_table): New constant.
57102         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57103         universal_time_zone_table.
57104         (lookup_zone): Prefer universal_time_zone_table to
57105         local_time_zone_table, so that "GMT" time stamps are allowed in
57106         London during the summer.  Problem reported by Ian Abbott.
57107
57108 2005-04-12  Jim Meyering  <jim@meyering.net>
57109
57110         * lib/human.c (humblock): Set *options even when returning due to
57111         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57112         warning from gcc-4.
57113
57114 2005-04-09  Jim Meyering  <jim@meyering.net>
57115
57116         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57117         -Wuninitialized: initialize tm0.tm_year.
57118
57119 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57122         count, since there's no maximum.  All uses changed.
57123         Add member dsts_seen.
57124         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57125         not being INT_MAX.
57126         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57127         Use pc_rels_seen to decide whther a date is absolute.
57128
57129         * lib/getdate.y (number): Don't overwrite year.
57130         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57131         check.
57132
57133 2005-04-02  Simon Josefsson  <jas@extundo.com>
57134
57135         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57136         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57137
57138 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57139
57140         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57141         where no absolute path name can be longer than PATH_MAX.
57142
57143 2005-03-27  Jim Meyering  <jim@meyering.net>
57144
57145         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57146
57147 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57148
57149         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57150         "one's complement" -> "ones' complement" in comment, as per Knuth.
57151         "value of type" -> "type or expression" in comment.
57152         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57153
57154 2005-03-26  Jim Meyering  <jim@meyering.net>
57155
57156         Comment nits.
57157         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57158         Correct typos: s/or/of/.
57159
57160 2005-03-26  Jim Meyering  <jim@meyering.net>
57161
57162         * modules/check-include-files: Move to ../ and rename to...
57163         * check-module: ...this.
57164
57165 2005-03-25  Jim Meyering  <jim@meyering.net>
57166
57167         * modules/xvasprintf (Files): Add xalloc.h.
57168
57169 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         * modules/gettext (Files): config/config.rpath ->
57172         build-aux/config.rpath
57173         * modules/iconv (Files): Likewise.
57174         Problem reported by Oskar Liljeblad.
57175
57176 2005-03-23  Jim Meyering  <jim@meyering.net>
57177
57178         * modules/check-include-files: New script to check for
57179         missing dependencies, multiple includes, etc.
57180
57181         * modules/c-strtold (Depends-on): Add xalloc.
57182         * modules/c-strtod (Depends-on): Add xalloc.
57183         * modules/hash (Depends-on): Add xalloc.
57184         (Files): Remove lib/xalloc.h.
57185
57186         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57187         * modules/userspec (Files): Add lib/inttostr.h.
57188
57189 2005-03-23  Jim Meyering  <jim@meyering.net>
57190
57191         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57192
57193 2005-03-22  Jim Meyering  <jim@meyering.net>
57194
57195         * modules/stat-macros: New module.
57196         * modules/canonicalize, modules/euidaccess, modules/file-type,
57197         * modules/filemode, modules/lchown, modules/makepath,
57198         * modules/rmdir, modules/stat: Depend on new stat-macros module
57199         rather than listing lib/stat-macros.h manually.
57200         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57201
57202 2005-03-22  Jim Meyering  <jim@meyering.net>
57203
57204         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57205
57206 2005-03-22  Bruno Haible  <bruno@clisp.org>
57207
57208         * config/srclist.txt: Replace target directory 'config' with
57209         'build-aux'.
57210         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57211         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57212         ../build-aux/.
57213
57214 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57215
57216         * modules/chdir-long (Depends-on): Add mempcpy.
57217
57218         * modules/acl, modules/backupfile, modules/c-strtod,
57219         modules/c-strtold, modules/canon-host, modules/canonicalize,
57220         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57221         modules/exclude, modules/exitfail, modules/file-type,
57222         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57223         modules/getdate, modules/getline, modules/getpagesize,
57224         modules/getpass, modules/getugroups, modules/group-member,
57225         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57226         modules/inttostr, modules/long-options, modules/makepath,
57227         modules/md5, modules/memcasecmp, modules/memcoll,
57228         modules/modechange, modules/mountlist, modules/path-concat,
57229         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57230         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57231         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57232         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57233         modules/strftime, modules/strndup, modules/strverscmp,
57234         modules/timespec, modules/unlocked-io, modules/userspec,
57235         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57236         modules/yesno:
57237         Remove lib_SOURCES line from Makefile.am section, as this is now
57238         done automatically by the corresponding Autoconf macro.
57239
57240 2005-03-21  Jim Meyering  <jim@meyering.net>
57241
57242         Changes imported from coreutils.
57243
57244         * lib/cycle-check.c: Don't include xalloc.h.
57245
57246         * lib/path-concat.c: Don't include assert.h.
57247         (path_concat): Remove assertion that would have triggered
57248         for ABASE starting with more than one slash.
57249         Reported by Andreas Schwab.
57250
57251         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57252         properly when ABASE is an absolute file name.
57253         Correct the description of this function.
57254         Include <assert.h>.
57255         Add an assertion and a test driver.
57256         This fixes a bug introduced on 2004-07-02.
57257         Andreas Schwab reported the resulting failure of cp --parents:
57258         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57259
57260 2005-03-21  Jim Meyering  <jim@meyering.net>
57261
57262         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57263         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57264
57265 2005-03-21  Jim Meyering  <jim@meyering.net>
57266         and  Paul Eggert  <eggert@cs.ucla.edu>
57267
57268         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57269         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57270         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57271         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57272         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57273         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57274         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57275         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57276         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57277         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57278         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57279         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57280         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57281         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57282         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57283         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57284         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57285         for these modules.
57286
57287 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57288
57289         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57290         (which shouldn't happen), generate nothing instead of returning 0
57291         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57292
57293 2005-03-16  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57296         HAVE_LONGLONG_64BIT.
57297
57298 2005-03-16  Bruno Haible  <bruno@clisp.org>
57299
57300         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57301         HAVE_LONGLONG_64BIT.
57302
57303 2005-03-16  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57306         HAVE_LONGLONG_64BIT.
57307
57308 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57309
57310         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57311         reliably distinguish strftime failure from empty output on POSIX
57312         hosts.
57313
57314 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57317         (iconv_string): Don't guess a size-zero buffer, as that might cause
57318         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57319         result would be 'too large', where 'too large' is (heuristically)
57320         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57321         overflow concerns.  This will prevent some unwanted malloc failures
57322         when the inputs are very large.
57323
57324 2005-03-15  Karl Berry  <karl@gnu.org>
57325
57326         * config/srclist.txt (config.rpath): from gettext.
57327         * config/config.rpath: update.
57328
57329 2005-03-15  Bruno Haible  <bruno@clisp.org>
57330
57331         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57332         to 'negate'.
57333
57334         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57335         variable.
57336
57337         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57338         results.
57339
57340 2005-03-14  Simon Josefsson  <jas@extundo.com>
57341
57342         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57343         <fx@gnu.org>.
57344
57345 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57348         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57349         intprops.h.
57350         * lib/strtol.c: Likewise.
57351
57352 2005-03-14  Jim Meyering  <jim@meyering.net>
57353
57354         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57355         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57356         to be nonzero so that we (and caller) can detect the difference
57357         between a valid zero-length expansion and an error return, even
57358         when the underlying strftime fails before writing anything into
57359         that location.
57360
57361 2005-03-14  Bruno Haible  <bruno@clisp.org>
57362
57363         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
57364         Update from GNU gettext 0.14.3.
57365
57366 2005-03-10  Jim Meyering  <jim@meyering.net>
57367
57368         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
57369
57370 2005-03-10  Jim Meyering  <jim@meyering.net>
57371
57372         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
57373         so that this module works on systems without fchdir.
57374
57375 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
57376
57377         Factor int-properties macros into a single file, except for
57378         glibc-related files.
57379         * lib/intprops.h: New file.
57380         * lib/getloadavg.c: Include it instead of limits.h.
57381         (INT_STRLEN_BOUND): Remove.
57382         * lib/human.c: Include intprops.h.
57383         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
57384         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
57385         302/1000.
57386         * lib/inttostr.h: Include intprops.h instead of limits.h.
57387         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
57388         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
57389         for consistency with intprops.h.
57390         (time_t_is_integer, twos_complement_arithmetic): Use them.
57391         * lib/sig2str.h: Include <signal.h>, intprops.h.
57392         (INT_STRLEN_BOUND): Remove.
57393         * lib/strftime.c (TYPE_SIGNED): Remove.
57394         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
57395         * lib/strtol.c: Adjust comments to match intprops.h.
57396         * lib/userspec.c: Include intprops.h.
57397         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
57398         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
57399         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
57400         instead of rolling our own expressions.
57401         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
57402
57403         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
57404         instead of int.
57405         (my_strftime): Do not mishandle years close to INT_MAX, by doing
57406         the right thing even if adding 1900 would overflow.  Similarly
57407         for tm_mon + 1 and tm_yday + 1.
57408         Make %Y always equivalent to %C%y, and similarly for %G and %g.
57409         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
57410         (DO_SIGNED_NUMBER): New macro.
57411         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
57412
57413 2005-03-07  Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
57416
57417 2005-03-07  Bruno Haible  <bruno@clisp.org>
57418
57419         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
57420
57421 2005-03-04  Derek R. Price  <derek@ximbiot.com>
57422
57423         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
57424         (func_import): Only replace files via --import when they have actually
57425         changed.
57426
57427 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57428
57429         * m4/mmap-anon.m4: New file.
57430         * m4/pagealign_alloc.m4: New file.
57431
57432 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57433             Bruno Haible  <bruno@clisp.org>
57434
57435         * modules/pagealign_alloc: New file.
57436         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
57437
57438 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57439             Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/pagealign_alloc.h: New file.
57442         * lib/pagealign_alloc.c: New file.
57443
57444 2005-03-03  Bruno Haible  <bruno@clisp.org>
57445
57446         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
57447         Use an all-permissive copyright notice, recommended by RMS.
57448
57449 2005-03-02  Bruno Haible  <bruno@clisp.org>
57450
57451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
57452         of AIX, the replacement has to be done only after <string.h> is
57453         included, therefore not in config.h. stpncpy.h does the replacement,
57454         and stpncpy.c uses it.
57455
57456 2005-03-02  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
57459         stpncpy.c uses it.
57460
57461 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57462
57463         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
57464         The workaround isn't strictly needed for POSIX conformance, and
57465         it's too much of a pain to configure and maintain.  We'll ask
57466         people to fix their kernels instead.
57467         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
57468         (NANOSLEEP_BUG_WORKAROUND): Remove.
57469         (xnanosleep): Remove the workaround.
57470
57471 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57472
57473         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
57474         Reported by Derek Price.
57475         (Include): Add "timespec.h".
57476
57477         * modules/xnanosleep (Depends-on): Remove gethrxtime.
57478
57479 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57480
57481         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
57482         to detect nanosleep bug.
57483
57484 2005-03-01  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
57487
57488 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57489
57490         * modules/gethrxtime: New file.
57491         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
57492         (Depends-on): Add gethrxtime.
57493         (configure.ac): Add gl_XNANOSLEEP.
57494         (Makefile.am): Remove lib_SOURCES line.
57495
57496 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
57499         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
57500
57501 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57502
57503         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
57504         * lib/timespec.h (gettime): Return void, since it always
57505         succeeds now.  All uses changed.
57506         * lib/gettime.c (gettime) Likewise.
57507         [HAVE_NANOTIME]: Prefer nanotime.
57508         Assume gettimeofday succeeds, as POSIX requires.
57509         Assime time () succeeds, since other code already does.
57510         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
57511         (timespec_subtract): Remove.
57512         (NANOSLEEP_BUG_WORKAROUND): New constant.
57513         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
57514         things considerably.  Use it only on GNU/Linux hosts, since the
57515         workaround shouldn't be needed elsewhere.
57516
57517 2005-02-24  Bruno Haible  <bruno@clisp.org>
57518
57519         * modules/gettext (Files): Add m4/glibc2.m4.
57520
57521 2005-02-24  Bruno Haible  <bruno@clisp.org>
57522
57523         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
57524         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
57525         * m4/progtest.m4:
57526         Update from GNU gettext 0.14.2.
57527         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
57528
57529 2005-02-24  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/localcharset.c: Update from GNU gettext 0.14.2.
57532         * lib/config.charset: Update from GNU gettext 0.14.2.
57533
57534 2005-02-24  Bruno Haible  <bruno@clisp.org>
57535
57536         * lib/gettext.h: Update from GNU gettext 0.14.2.
57537
57538 2005-02-23  Simon Josefsson  <jas@extundo.com>
57539
57540         * m4/iconvme.m4: New file.
57541
57542 2005-02-23  Jim Meyering  <jim@meyering.net>
57543
57544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
57545         change.
57546         Thanks to Bruno Haible for catching it.
57547
57548 2005-02-22  Simon Josefsson  <jas@extundo.com>
57549
57550         * modules/iconvme: New file.
57551
57552         * MODULES.html.sh: Add iconvme.
57553
57554 2005-02-22  Simon Josefsson  <jas@extundo.com>
57555
57556         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
57557
57558 2005-02-22  Simon Josefsson  <jas@extundo.com>
57559
57560         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
57561
57562 2005-02-22  Jim Meyering  <jim@meyering.net>
57563
57564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
57565         s/ifndef/ifdef/.
57566
57567 2005-02-20  Neil Conway  <neilc@samurai.com>
57568
57569         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
57570         returned by OSX/Darwin if the specified buffer is not large
57571         enough for the hostname.
57572
57573 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57574
57575         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
57576         pass it to _help, otherwise the latter coredumps trying to
57577         dereference state.root_argp.
57578
57579 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57580
57581         * modules/chdir-long (Depends-on): Add memrchr.
57582         * modules/memrchr (Files): Add lib/memrchr.h.
57583         (Include): "memrchr.h".
57584
57585 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57586
57587         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
57588
57589 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57590
57591         * lib/memrchr.h: New file.
57592         * lib/chdir-long.c: Include it.
57593         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
57594         Don't bother including stddef.h.
57595
57596 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57597
57598         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
57599         inclusion.
57600         Include <sys/types.h>, for dev_t.
57601         (ME_DUMMY, ME_REMOTE): Move from here....
57602         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
57603         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
57604         Dmitry V. Levin.
57605         Include mountlist.h first, to test the interface.
57606
57607 2005-01-29  Bruno Haible  <bruno@clisp.org>
57608
57609         * lib/progname.c (program_name): Initialize.
57610         Needed when linking statically on MacOS X.
57611
57612 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         Sync from coreutils.
57615         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
57616         (Depends-on): Add c-strtod.
57617         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
57618
57619 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57620
57621         Sync from coreutils.
57622         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
57623
57624         Remove files that are specific to coreutils.
57625         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
57626
57627 2005-01-28  Bruno Haible  <bruno@clisp.org>
57628
57629         * modules/javacomp: New file.
57630         * MODULES.html.sh (Java): Add javacomp.
57631
57632 2005-01-28  Bruno Haible  <bruno@clisp.org>
57633
57634         * m4/javacomp.m4: New file, from GNU gettext.
57635
57636 2005-01-28  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/javacomp.sh.in: New file, from GNU gettext.
57639         * lib/javacomp.h: New file, from GNU gettext.
57640         * lib/javacomp.c: New file, from GNU gettext.
57641
57642 2005-01-26  Simon Josefsson  <jas@extundo.com>
57643
57644         * lib/gai_strerror.c: Use GPL in header.
57645
57646 2005-01-26  Bruno Haible  <bruno@clisp.org>
57647
57648         * modules/javaexec: New file.
57649         * MODULES.html.sh (Java): Add javaexec.
57650
57651 2005-01-26  Bruno Haible  <bruno@clisp.org>
57652
57653         * m4/javaexec.m4: New file, from GNU gettext.
57654
57655 2005-01-26  Bruno Haible  <bruno@clisp.org>
57656
57657         * lib/javaexec.sh.in: New file, from GNU gettext.
57658         * lib/javaexec.h: New file, from GNU gettext.
57659         * lib/javaexec.c: New file, from GNU gettext.
57660
57661 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57662
57663         * modules/lchown (Depends-on): Remove lchown.h
57664
57665 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57666
57667         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
57668         must be defined if the header file was not found, in order
57669         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
57670
57671 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57672
57673         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
57674         initializers for struct pentry_state.
57675         (__argp_error): Check return value of __asprintf
57676         (__argp_failure): Translate error message
57677
57678         * lib/argp-parse.c: Removed braces around the expansion of N_()
57679
57680 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
57683         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
57684         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
57685         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
57686         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
57687         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
57688         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
57689         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
57690         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
57691         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
57692         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
57693         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
57694         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
57695         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
57696         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
57697         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
57698         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
57699         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
57700         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
57701         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
57702         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
57703         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
57704         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
57705         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
57706         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
57707         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
57708         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
57709         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
57710         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
57711         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
57712         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
57713         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
57714         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
57715         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
57716         xstrtol.m4, xstrtoumax.m4, yesno.m4:
57717         Use an all-permissive copyright notice, recommended by RMS.
57718
57719 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57720
57721         * modules/chdir-long (Depends-on): Remove mempcpy.
57722
57723 2005-01-21  Jim Meyering  <jim@meyering.net>
57724
57725         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
57726         same value as for Solaris 9.
57727
57728         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
57729         component length.  This included changing the parameter to be
57730         of type `char *' rather than `char const *'.
57731         * lib/chdir-long.h (chdir_long): Update prototype.
57732
57733         * lib/openat.c (fdopendir, fstatat): New functions.
57734         * lib/openat.h: Include headers required for use of DIR and struct
57735         stat.
57736         [AT_SYMLINK_NOFOLLOW]: Define.
57737         (fdopendir, fstatat): Add prototypes.
57738
57739 2005-01-21  Bruno Haible  <bruno@clisp.org>
57740
57741         * modules/classpath: New file.
57742         * MODULES.html.sh (Java): Add classpath.
57743
57744 2005-01-21  Bruno Haible  <bruno@clisp.org>
57745
57746         * lib/classpath.h: New file, from GNU gettext.
57747         * lib/classpath.c: New file, from GNU gettext.
57748
57749 2005-01-20  Simon Josefsson  <jas@extundo.com>
57750
57751         * modules/version-etc-fsf: New file.
57752
57753 2005-01-20  Simon Josefsson  <jas@extundo.com>
57754
57755         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
57756         * lib/version-etc.c: Remove version_etc_copyright.
57757         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
57758         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
57759
57760 2005-01-20  Simon Josefsson  <jas@extundo.com>
57761
57762         * lib/base64.h (isbase64): Add.
57763
57764         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
57765         using a unsigned prototype, don't inline.
57766         (base64_decode): Use it.
57767
57768 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57769
57770         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
57771         it.
57772
57773 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57774
57775         * lib/save-cwd.c (save_cwd): Remove code to support the case
57776         where fchdir is missing or flaky.
57777
57778 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57779
57780         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
57781
57782 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57783
57784         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
57785         AC_LIBSOURCES now does this.
57786         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
57787         with new ullong_max module.
57788
57789 2005-01-19  Bruno Haible  <bruno@clisp.org>
57790
57791         * modules/sh-quote: New file.
57792         * MODULES.html.sh (Executing programs): Add sh-quote.
57793
57794 2005-01-19  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/sh-quote.h: New file, from GNU gettext.
57797         * lib/sh-quote.c: New file, from GNU gettext.
57798
57799 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57800
57801         Merge from coreutils.
57802         * m4/ullong_max.m4: New file.
57803         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
57804         (gl_MACROS): Assume localeconv exists.
57805
57806 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57807
57808         Merge changes from coreutils, as described below in several
57809         changelogs dated today.
57810
57811         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
57812         (O_DIRECTORY): Remove; not needed here, since "." must be
57813         a directory.  All uses removed.
57814         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
57815         universal on Suns, and we also need to test for IRIX.
57816         Revamp code to use 'if' rather than '#if'.
57817         Avoid unnecessary comparison of cwd->desc to 0.
57818
57819         * lib/utimens.c (futimens): Robustify the previous patch, by checking
57820         for known valid error numbers rather than observed invalid ones.
57821
57822 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * modules/ullong_max: New file.
57825
57826         * modules/chdir-long, modules/openat: New files.
57827         * modules/save-cwd (Depends-on): Depend on chdir-long.
57828         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
57829
57830 2005-01-18  Jim Meyering  <jim@meyering.net>
57831
57832         Merge from coreutils.
57833         * m4/chdir-long.m4, m4/openat.m4: New files.
57834         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
57835         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
57836         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
57837         is sane and DOES follow symlinks.  Besides, testing 20 different
57838         systems found no broken chown implementations.
57839         Prompted by a change in rsync's copy of this macro.
57840         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
57841
57842         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
57843
57844         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
57845         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
57846         NULL-means-set-to-current-time semantics.
57847         Remove temporary file immediately, rather than waiting
57848         for configure's at-exit trap code to do it.
57849
57850 2005-01-18  Jim Meyering  <jim@meyering.net>
57851
57852         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57853
57854         * lib/utimens.c (futimens): Account for the fact that futimes
57855         can also fail with errno == ENOSYS or errno == ENOENT.
57856         Patch from Dmitry V. Levin.
57857
57858         Change the name of the robust chdir function from chdir to chdir_long.
57859         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
57860         (restore_cwd): Use chdir_long, not chdir.
57861         * lib/chdir-long.c: Renamed from chdir.c.
57862         * lib/chdir-long.h: Renamed from chdir.h.
57863         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
57864         Hurd.
57865
57866 2005-01-18  Bruno Haible  <bruno@clisp.org>
57867
57868         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
57869         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
57870         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
57871         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
57872         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
57873         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
57874         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
57875         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
57876         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
57877         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
57878         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
57879         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
57880         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
57881         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
57882         Use an all-permissive copyright notice, recommended by RMS.
57883
57884 2005-01-18  Bob Proulx  <bob@proulx.com>
57885
57886         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
57887         simplify offsetof() macro construct to avoid compile failure with
57888         native HP-UX 11.0 ANSI C compiler.
57889
57890 2005-01-17  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
57893         redundant because stpncpy.m4 takes care of it.
57894
57895 2005-01-17  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
57898
57899 2005-01-17  Bruno Haible  <bruno@clisp.org>
57900
57901         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
57902         used.
57903
57904 2005-01-17  Bruno Haible  <bruno@clisp.org>
57905
57906         * lib/fwriteerror.h (fwriteerror): Change specification to include
57907         fclose.
57908         * lib/fwriteerror.c: Include <stdbool.h>.
57909         (fwriteerror): At the end, close the file stream. Record whether
57910         stdout was already closed.
57911
57912 2005-01-17  Bruno Haible  <bruno@clisp.org>
57913
57914         * lib/execute.c (environ): Declare if needed.
57915         * lib/pipe.c (environ): Likewise.
57916         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
57917
57918 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57919
57920         * modules/argp: Depend on vsnprintf
57921
57922 2005-01-10  Jim Meyering  <jim@meyering.net>
57923
57924         * modules/closeout (Depends-on): Add atexit.
57925
57926 2005-01-06  Bruno Haible  <bruno@clisp.org>
57927
57928         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57929
57930 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57933         definitions to be after all include files, to avoid collisions.
57934         Problem reported by Bob Proulx.
57935
57936 2005-01-04  Jim Meyering  <jim@meyering.net>
57937
57938         Changes imported from coreutils.
57939         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57940         as the mkstemp template, use a temporary directory and an
57941         8.3-friendly template to avoid trouble on systems like DJGPP.
57942         Reported by Juan M. Guerrero via Stepan Kasal.
57943         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57944         close. Remove the temporary directory right away, rather than waiting
57945         for configure's at-exit trap code to do it.
57946         Suggestion from Stepan Kasal.
57947
57948 2005-01-01  Simon Josefsson  <jas@extundo.com>
57949
57950         * gnulib-tool: Print #include directives when --import'ing.
57951
57952 2004-12-28  Simon Josefsson  <jas@extundo.com>
57953
57954         * tests/test-base64.c: Include required header files.  Remove
57955         unused variables.
57956
57957 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         * modules/error (Depends-on): Remove gettext.
57960
57961 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57962
57963         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
57964         not needed.  This removes a dependency on the gettext module.
57965         [defined _LIBC]: Do not include <libintl.h>; not needed.
57966
57967 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
57970         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
57971
57972 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57973
57974         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
57975         HAVE_DECL_STRTOLD.
57976
57977 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57978
57979         * modules/getdate (Depends-on): Remove alloca-opt.
57980
57981 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57982
57983         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
57984
57985 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57986
57987         * lib/argp-parse.c: Include <stddef.h>.
57988         (alignof, alignto): New macros.
57989         (parser_init): Don't assume that void * is aligned sufficiently
57990         for struct option.
57991
57992         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
57993         need to extend the stack.
57994         (YYINITDEPTH): New macro, so that the initial stack isn't overly
57995         large.
57996
57997 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57998
57999         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58000
58001 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58002
58003         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58004         (2004-10-24) change.  Apparently this was a false alarm.
58005
58006         * modules/getdate: Depend on alloca-opt, not alloca.
58007
58008 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58009
58010         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58011         Remove now-obsolete comment about AIX.
58012         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58013         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58014         (YYMAXDEPTH): New macro.
58015
58016 2004-12-18  Simon Josefsson  <jas@extundo.com>
58017
58018         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58019
58020 2004-12-18  Bruno Haible  <bruno@clisp.org>
58021
58022         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58023
58024 2004-12-18  Bruno Haible  <bruno@clisp.org>
58025
58026         * lib/fatal-signal.c (fatal_signals): Make non-const.
58027         (init_fatal_signals): New function.
58028         (uninstall_handlers, install_handlers): Ignore signals that were set to
58029         SIG_IGN.
58030         (at_fatal_signal): Call init_fatal_signals.
58031         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58032         SIG_IGN.
58033         Reported by Paul Eggert.
58034
58035 2004-12-18  Bruno Haible  <bruno@clisp.org>
58036
58037         * doc/alloca.texi: New file.
58038         * doc/alloca-opt.texi: New file.
58039
58040 2004-12-17  Jim Meyering  <jim@meyering.net>
58041
58042         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58043         Otherwise, install-sh could exit with improper exit status when
58044         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58045
58046 2004-12-16  Simon Josefsson  <jas@extundo.com>
58047
58048         * tests/test-base64.c: Add license.
58049
58050 2004-12-15  Stepan Kasal  <address@hidden>
58051
58052         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58053
58054 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         * modules/getcwd (Files): Add m4/d-ino.m4.
58057         Suggested by Mark D. Baushke.
58058
58059 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * lib/getdate.y (textint): New member "negative".
58062         (time_zone_hhmm): New function.
58063         Expect 14 shift-reduce conflicts, not 13.
58064         (o_colon_minutes): New rule.
58065         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58066         (yylex): Set the "negative" member of signed numbers.
58067
58068 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58069
58070         * doc/getdate.texi (Time of day items, Time zone items):
58071         Describe new formats +00:00, UTC+00:00.
58072
58073 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58074
58075         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58076         spurious "-l"s.  Problem reported by Stepan Kasal.
58077
58078 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58079
58080         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58081         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58082
58083 2004-12-04  Simon Josefsson  <jas@extundo.com>
58084
58085         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58086         Vandoorselaere <yoann@prelude-ids.org>.
58087
58088 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58089
58090         Changes imported from coreutils.
58091         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58092         exist.
58093         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58094
58095 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58096
58097         Changes imported from coreutils.
58098         * lib/hard-locale.c: Assume <locale.h> exists.
58099         Include "strdup.h".
58100         (GLIBC_VERSION): New macro.
58101         (hard_locale): Assume setlocale exists.
58102         Rewrite to avoid #ifdef.
58103         Use strdup rather than malloc + strcpy.
58104         * lib/human.c: Assume <locale.h> exists.
58105         (human_readable): Assume localeconv exists.
58106
58107 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58108
58109         * modules/hard-locale (Depends-on): Add strdup.
58110
58111 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58112
58113         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58114         convert T2, not T.  (Imported from libc.)
58115
58116 2004-11-30  Simon Josefsson  <jas@extundo.com>
58117
58118         * modules/restrict (License): Change to LGPL.
58119
58120 2004-11-30  Simon Josefsson  <jas@extundo.com>
58121
58122         * m4/restrict.m4: Add copyright and copying conditions.
58123
58124 2004-11-30  Simon Josefsson  <jas@extundo.com>
58125
58126         * m4/base64.m4: New file.
58127
58128 2004-11-30  Simon Josefsson  <jas@extundo.com>
58129
58130         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58131         base64.
58132
58133         * tests/test-base64.c: New file.
58134
58135         * modules/base64: New file.
58136
58137 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58138
58139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58140         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58141
58142         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58143
58144 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58145
58146         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58147         (__getcwd.c): Don't restore errno; glibc doesn't.
58148         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58149         first, falling back to our code only if its results look suspicious.
58150         Ensure that the resulting buffer is only as large as necessary.
58151
58152         * lib/readutmp.c: Include readutmp.h first.
58153         Include <errno.h>, since readutmp.h no longer does that.
58154         * lib/readutmp.h: Don't include <errno.h>,
58155         <sys/param.h>, <time.h>; not needed to establish interface.
58156         (errno): Remove decl.
58157         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58158         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58159         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58160
58161 2004-11-28  Simon Josefsson  <jas@extundo.com>
58162
58163         * lib/base64.h, base64.c: New file.
58164
58165 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58166
58167         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58168
58169 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58170
58171         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58172         (Depends-on): Remove pathmax, same.  Add mempcpy.
58173         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58174         (Makefile.am): Append getcwd.h to lib_SOURCES.
58175         (Include): Add getcwd.h.
58176         (Maintainer): Change from Jim Meyering to "all, glibc",
58177         since getdate now uses intended-for-glibc code.
58178         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58179         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58180
58181 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58182
58183         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58184         HP's ANSI C compiler.
58185         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58186         Declaring int functions causes warnings on some modern systems and
58187         shouldn't be needed to compile on ancient ones.
58188         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58189         defined.
58190
58191         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58192         with the following changes.
58193         (__set_errno): Parenthesize properly.
58194         Include <stdbool.h>.
58195         (MIN, MAX, MATCHING_INO): New macros.
58196         (__getcwd): Define with prototype, not K&R form.
58197         Use heuristics to allocate default buffer on stack if possible.
58198         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58199         behavior, and to avoid the PATH_MAX limit when computing
58200         ../../../../...
58201         Use MATCHING_INO to compare inode number to file.
58202         Check for arithmetic overflow in size calculations.
58203         Fix bug in reallocation of dot array that caused getcwd to fail
58204         on directories nested deeper than 75.
58205         Be more careful about saving errno on error.
58206         Do not use realloc; use only free+malloc, as this is a bit
58207         more flexible and avoids a needless copy operation.
58208         Do not inspect st_dev and st_ino for symbolic links; POSIX
58209         doesn't specify the latter.
58210         Check for closedir errors.
58211         Avoid needless casts.
58212         Use "#ifdef weak_alias" around weak_alias, to be like other
58213         glibc code.
58214         The following changes to getcwd.c have effect only when used in
58215         gnulib; they have no effect inside glibc proper.
58216         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58217         as alloca isn't used.
58218         (alloca, __alloca): Likewise.
58219         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58220         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58221         unconditionally, as gnulib assumes C89 or better.
58222         Do not include <sys/param.h>.
58223         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58224         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58225         better.
58226         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58227         Include <dirent.h> in a way that is compatible with modern Autoconf.
58228         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58229         New macros, if not already defined.
58230         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58231         Use "_LIBC", not "defined _LIBC", for consistency.
58232         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58233         a mempcpy module.
58234         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58235         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58236         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58237         credit only to Jim Meyering and adjust the copyright dates.
58238         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58239         <stdlib.h>, <unistd.h>, "pathmax.h".
58240         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58241         (INITIAL_BUFFER_SIZE): Remove.
58242         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58243
58244 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58245
58246         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58247         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58248         Use the _ONCE methods, for efficiency.
58249         Check for fcntl.h.  In test program, include <errno.h>
58250         and <fcntl.h> if available.  Remove old K&R cruft from
58251         test program.  Check for common errors in GNU/Linux,
58252         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58253         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58254         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58255         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58256         name accordingly.
58257         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58258         accommodate new getcwd.c.
58259         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58260         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58261         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58262         that's all we need now.
58263
58264 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58265
58266         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58267         argp-parse.c depends on getopt internals, that means we should
58268         always use our getopt, to be on the safe side.
58269         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58270         order not to spoil the result of an eventual previous invocation
58271         of gl_GETOPT_SUBSTITUTE.
58272
58273 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58274
58275         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58276         redefinition warnings. To avoid them, include the defines
58277         in `#if !defined __need_getopt ... #endif'. The only place
58278         where __getopt_argv_const is used is in definitions
58279         of getopt_long and getopt_long_only below, which are as well
58280         protected by `#ifndef __need_getopt'.
58281         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58282         __need_getopt after including <stdio.h> and <unistd.h> These
58283         headers might have defined it.
58284
58285 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58286
58287         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58288
58289 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58290
58291         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58292         (futimens): New function, which uses futimes if available.
58293         (futimens, utimens): Support timespec==NULL, with same semantics
58294         as utime and utimens.
58295         * lib/utimens.h (futimens): New decl.
58296
58297 2004-11-23  Jim Meyering  <jim@meyering.net>
58298
58299         * lib/getopt_.h: Remove trailing blanks.
58300
58301 2004-11-23  Jim Meyering  <jim@meyering.net>
58302
58303         * lib/__fpending.c: Add comment.
58304
58305 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         * modules/canonicalize (Depends-on): Add xreadlink.
58308         Problem reported by James Youngman.
58309
58310 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58311
58312         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58313         New macros.
58314         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58315         optopt): Use them instead of invoking ## directly; otherwise, the
58316         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58317
58318 2004-11-19  Bruno Haible  <bruno@clisp.org>
58319
58320         * lib/strtok_r.c: Move comments from here...
58321         * lib/strtok_r.h: ... to here.
58322
58323 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58326         implementations that mishandle size_t overflow.
58327
58328 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58331         might fail.  Problem reported by Yoann Vandoorselaere.
58332         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58333         implementations that mishandle size_t overflow.
58334
58335 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58336
58337         * modules/canon-host (Depends-on): Add strdup.
58338
58339 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58340
58341         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58342
58343 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58344
58345         * lib/canon-host.c: Include "strdup.h".
58346         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58347         Use strdup instead of malloc/strcpy to duplicate strings.
58348
58349         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58350         (human_space_before_unit): New constant.
58351         * lib/human.c (human_readable): Support it.
58352
58353         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58354         (xgetcwd): Set errno correctly when failing.
58355         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58356         the failure is actually due to a PATH_MAX problem.
58357
58358         Further getopt changes to make it more likely that glibc will
58359         buy the changes back.
58360         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58361         (getopt): Use it, so to preserve glibc semantic
58362         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58363         when compiling for libc.
58364         * lib/getopt_.h (__getopt_argv_const): Bring it back.
58365         (getopt_long, getopt_long_only): Use it.
58366
58367         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58368         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
58369         (getopt): Argv is now char * const *, as per standard.
58370         (_getopt_internal_r, _getopt_internal): Argv is now char **,
58371         not char *__getopt_argv_const *.
58372         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58373         _getopt_long_only_r): Likewise.
58374         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
58375         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58376         _getopt_long_r, _getopt_long_only_r): Likewise.
58377         * lib/getopt_.h (__getopt_argv_const): Remove.
58378         (getopt): Argv is now char * const *, as per standard.
58379
58380         * lib/getdate.y (tORDINAL): New token.
58381         (day, relunit): Allow it for relative times.
58382         (relative_time_table): Use tORDINAL for ordinals.
58383
58384 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58385
58386         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
58387         Document that "second" isn't allowed as an ordinal number.
58388
58389 2004-11-16  Jim Meyering  <jim@meyering.net>
58390
58391         * modules/closeout (Depends-on): Add fpending.
58392
58393 2004-11-15  Jim Meyering  <jim@meyering.net>
58394
58395         * lib/closeout.c: Include "__fpending.h" once again.
58396         Include <stdbool.h>.
58397         (close_stdout): Don't fail just because stdout was closed initially,
58398         since some programs don't write to stdout in the normal course of
58399         operation (other than --version and --help), and we don't want this
58400         function to make e.g. `touch file >&-' fail.
58401         But do fail if it was closed and someone has tried to write to it.
58402         E.g., `printf foo >&-' must fail.
58403
58404 2004-11-13  Jim Meyering  <jim@meyering.net>
58405
58406         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
58407
58408 2004-11-12  Simon Josefsson  <jas@extundo.com>
58409
58410         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
58411         small doc fix is still pending.
58412
58413 2004-11-11  Simon Josefsson  <jas@extundo.com>
58414
58415         * modules/strtok_r: New file.
58416
58417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58418         strtok_r.
58419
58420 2004-11-11  Simon Josefsson  <jas@extundo.com>
58421
58422         * m4/strtok_r.m4: New file.
58423
58424         * m4/getopt.m4: Replace opterr.
58425
58426 2004-11-11  Simon Josefsson  <jas@extundo.com>
58427
58428         * lib/strtok_r.h, strtok_r.c: New file.
58429
58430 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58431
58432         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
58433         of replacing opterr, getopt, etc.  This should handle the
58434         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
58435
58436 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58437
58438         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
58439         we can stop lying to compilers about the constness of argv when we
58440         are compiled outside glibc.
58441         (getopt, getopt_long, getopt_long_only): Use it.
58442         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58443         _getopt_internal, getopt): Likewise.
58444         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58445         _getopt_long_only_r): Likewise.
58446         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58447         _getopt_long_r, _getopt_long_only_r): Likewise.
58448
58449         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
58450         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
58451         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
58452         the other external symbols.
58453         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
58454         declaration, since the above renaming now works around collisions.
58455
58456 2004-11-11  Jim Meyering  <jim@meyering.net>
58457
58458         * lib/linebreak.c: Remove trailing blanks.
58459         * lib/alloca_.h: Likewise.
58460         * lib/acosl.c: Likewise.
58461         * lib/euidaccess.c: Likewise.
58462         * lib/allocsa.h: Likewise.
58463
58464 2004-11-10  Simon Josefsson  <jas@extundo.com>
58465
58466         * m4/getaddrinfo.m4: New file.
58467
58468 2004-11-10  Simon Josefsson  <jas@extundo.com>
58469
58470         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
58471
58472 2004-11-10  Simon Josefsson  <jas@extundo.com>
58473
58474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58475         getaddrinfo.
58476
58477         * modules/getaddrinfo: New file.
58478
58479 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58480
58481         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
58482
58483 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58484
58485         * lib/mktime.c (SHR): New macro, which is a portable
58486         substitute for >> that should work even on Crays.
58487         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
58488         Problem reported by Mark D. Baushke in
58489         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
58490         * lib/getdate.y (SHR): Likewise.
58491         (tm_diff): Use it.
58492         * lib/strftime.c (SHR): Likewise.
58493         (tm_diff): Use it.
58494         * lib/quotearg.c (struct quoting_options): Use unsigned int for
58495         quote_these_too, so that right shifts are well defined.  All uses
58496         changed.
58497
58498 2004-11-10  Jim Meyering  <jim@meyering.net>
58499
58500         Ensure that no close failure goes unreported.
58501         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
58502         return early when it seems there's nothing to flush.
58503         Don't include __fpending.h.
58504
58505 2004-11-10  Jim Meyering  <jim@meyering.net>
58506
58507         * modules/closeout (Depends-on): Remove fpending.
58508
58509 2004-11-10  Jim Meyering  <jim@meyering.net>
58510
58511         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
58512
58513 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
58516         gl_FUNC_STRFTIME.
58517         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
58518         and AC_REQUIRE when possible, to avoid duplicate checks.
58519         Check for <wchar.h>.
58520
58521 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
58524
58525 2004-11-09  Bruno Haible  <bruno@clisp.org>
58526
58527         * m4/sockpfaf.m4: New file.
58528
58529 2004-11-05  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
58532         Reported by Mark D. Baushke <mdb@cvshome.org>.
58533
58534 2004-11-04  Bruno Haible  <bruno@clisp.org>
58535
58536         2004-09-11  Bruno Haible  <bruno@clisp.org>
58537                 * allocsa.valgrind: New file.
58538         2004-02-06  Bruno Haible  <bruno@clisp.org>
58539                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
58540                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
58541                 Reported by Christopher Seip <chris.seip@hp.com>.
58542
58543 2004-11-04  Bruno Haible  <bruno@clisp.org>
58544
58545         * modules/allocsa (Files): Add lib/allocsa.valgrind.
58546         (Makefile.am): Distribute it.
58547
58548 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58549
58550         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
58551         with errno == ERANGE if the buffer is too small.
58552         Problem reported by Mark D. Baushke.
58553
58554 2004-11-03  Albert Chin  <china@thewrittenword.com>
58555             Paul Eggert  <eggert@cs.ucla.edu>
58556
58557         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
58558         equivalent, substitute $ac_type for equivalent type rather than
58559         blindly using uint32_t *always* which won't work if uint32_t is not
58560         available.  Define _UINT32_T to work around typedef of uint32_t if
58561         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
58562         2.5.1.
58563
58564 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58565
58566         * m4/jm-macros.m4: Sync from coreutils.
58567         (gl_MACROS): Check for mbrlen, for pathchk.
58568         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
58569
58570 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58571
58572         * lib/xreadlink.c (MAXSIZE): New macro.
58573         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
58574         size does not exceed MAXSIZE.  Avoid cast.
58575         As suggested by Mark D. Baushke in
58576         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
58577         if readlink fails with buffer size just under MAXSIZE, try again
58578         with MAXSIZE.
58579
58580 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58581
58582         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
58583
58584 2004-11-02  Derek R. Price  <derek@ximbiot.com>
58585         and  Paul Eggert  <eggert@cs.ucla.edu>
58586
58587         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
58588         (get_date): Overparenthesize to avoid GCC warning.
58589
58590 2004-11-02  Bruno Haible  <bruno@clisp.org>
58591
58592         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
58593         returns void.
58594
58595 2004-11-02  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
58598         function returns void.
58599
58600 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58601
58602         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
58603         fflush_unlocked, flockfile, funlockfile, funlockfile,
58604         fputs_unlocked, putc_unlocked.
58605
58606 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58609         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
58610         already declared.
58611
58612 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * modules/getdate (Files): Add doc/getdate.texi.
58615         (Depends-on): Add setenv, xalloc.
58616
58617 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58618
58619         * lib/getdate.y: Add support for TZ="foo" within a date string.
58620         Fix some bugs near time_t boundaries.  Reject dates with
58621         out-of-range components, e.g., "Sept 31".
58622         Include <stdlib.h>, "setenv.h", "xalloc.h".
58623         (ISDIGIT_LOCALE): Remove; unused.
58624         Note that the TZ and time functions used here are not reentrant.
58625         (mktime_ok, get_tz): New functions.
58626         (TZBUFSIZE): New constant.
58627         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
58628         This requires that we sometimes generate our own TZ="XXX..." setting.
58629
58630 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * doc/getdate.texi: New file, from coreutils with modifications for
58633         the new TZ parsing.
58634
58635 2004-10-27  Derek R. Price  <derek@ximbiot.com>
58636
58637         * lib/mktime.c (not_equal_tm): Remove redundant check.
58638
58639 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58640
58641         * modules/regex (lib_SOURCES): Add regex.c.
58642         Reported by James Youngman in
58643         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
58644
58645 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58646
58647         * lib/getdate.y: Use Bison 1.875 features, and some minor
58648         code cleanups.  This change does not affect semantics.
58649         Don't include <stdlib.h>; no longer needed.
58650         Don't include unlocked-io.h; only the "#if TEST" code uses
58651         stdio, and performance isn't crucial there.
58652         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
58653         Bison 1.875 features as described below.
58654         All uses of "PC." replaced by "pc->".
58655         (YYSTYPE): Add a forward declaration.
58656         (yylex, yyerror): Use full prototypes in forward decls.
58657         Use "%pure-parser" rather than obsolescent "%pure_parser".
58658         Use %parse-param and %lex-param instead of obsolescent
58659         YYPARSE_PARAM and YYLEX_PARAM.
58660         (meridian_table, month_and_day_table, time_units_table,
58661         relative_time_table, time_zone_table, military_table,
58662         lookup_zone, lookup_word, get_date):
58663         Use NULL instead of 0 where appropriate.
58664         (to_hour): Avoid abort (), to avoid a dependency on
58665         stdlib.h.
58666         (yyerror, yylex): Now accepts parser_control * arg.
58667         (main) [TEST]: Use '\0' rather than 0 for char.
58668
58669 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58670
58671         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
58672
58673 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
58676         It's now the caller's responsibility to handle the case where
58677         !HAVE_GETPAGESIZE && !defined getpagesize.
58678
58679         * lib/mktime.c (leapyear): Arg is long int, not int.
58680
58681 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
58684
58685 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58686
58687         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
58688         missing.  Problem reported by James Youngman.
58689
58690 2004-10-16  Simon Josefsson  <jas@extundo.com>
58691
58692         * gnulib-tool: Fix comments.  Fix parse problem.
58693         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
58694
58695 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
58698         implementation of getopt_long.  Problem reported by Alexander Taler in:
58699         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
58700
58701 2004-10-15  Bruno Haible  <bruno@clisp.org>
58702
58703         * gnulib-tool: Untabify. Initialize supplied_libname.
58704         (func_usage): More homogenous output.
58705         (func_modules_transitive_closure, func_modules_to_filelist,
58706         func_emit_lib_Makefile_am): New functions.
58707         (func_import): New function, extracted from big case statement. Use
58708         func_get_license, func_modules_transitive_closure,
58709         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
58710         opt_lgpl. Don't use test -a, as it's not portable.
58711         (func_create_testdir): Use func_modules_transitive_closure,
58712         func_modules_to_filelist, func_emit_lib_Makefile_am.
58713
58714 2004-10-15  Bruno Haible  <bruno@clisp.org>
58715
58716         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
58717
58718 2004-10-15  Bruno Haible  <bruno@clisp.org>
58719
58720         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
58721         the portions belonging to each module.
58722         Suggested by Derek Robert Price <derek@ximbiot.com>.
58723
58724 2004-10-12  Simon Josefsson  <jas@extundo.com>
58725
58726         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58727         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
58728         to real functions.
58729
58730 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58731
58732         * modules/vsnprintf: New file.
58733
58734 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58735
58736         * m4/vsnprintf.m4: New file.
58737
58738 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58739
58740         * lib/vsnprintf.h: New file.
58741         * lib/vsnprintf.c: New file.
58742
58743 2004-10-11  Bruno Haible  <bruno@clisp.org>
58744
58745         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
58746         vsnprintf.
58747
58748 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58749
58750         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
58751
58752 2004-10-07  Bruno Haible  <bruno@clisp.org>
58753
58754         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
58755         fits into the provided buffer.
58756
58757 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         * lib/diacrit.c, diacrit.h: Add GPL notice.
58760
58761         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
58762         notice.
58763         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
58764         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
58765         This avoids a potential constant-folding bug.
58766
58767 2004-10-05  Bruno Haible  <bruno@clisp.org>
58768
58769         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
58770         for the declaration of strsep.
58771
58772 2004-10-05  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
58775
58776 2004-10-04  Simon Josefsson  <jas@extundo.com>
58777
58778         * modules/memmem: New file.
58779         * tests/test-memmem.c: New file.
58780         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
58781
58782 2004-10-04  Simon Josefsson  <jas@extundo.com>
58783
58784         * m4/memmem.m4: New file.
58785
58786 2004-10-04  Simon Josefsson  <jas@extundo.com>
58787
58788         * lib/memmem.h: New file.
58789         * lib/memmem.c: New file, taken from glibc.
58790
58791 2004-10-04  Simon Josefsson  <jas@extundo.com>
58792
58793         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
58794         '#ifdef USE_UNLOCKED_IO'.
58795
58796 2004-10-04  Simon Josefsson  <jas@extundo.com>
58797
58798         * config/srclist.txt: Add memmem from glibc.
58799
58800 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58801
58802         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
58803
58804         * modules/argmatch, modules/argp, modules/closeout, modules/error,
58805         modules/exclude, modules/getdate, modules/getline,
58806         modules/getndelim2, modules/getpass, modules/getpass-gnu,
58807         modules/getusershell, modules/linebuffer, modules/md5,
58808         modules/mountlist, modules/posixtm, modules/readtokens,
58809         modules/readutmp, modules/regex, modules/sha1,
58810         modules/version-etc, modules/yesno:
58811         Remove dependency on unlocked-io.
58812
58813 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
58816
58817         * m4/unlocked-io.m4: Add copyright notice.
58818         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
58819
58820 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58821
58822         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
58823         * lib/xmalloc.c (xmemdup): Likewise.
58824         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
58825         XFREE): Remove these long-obsolescent macros.
58826         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
58827         * lib/xstrdup.c: Remove.
58828
58829         * lib/regex.c (re_comp): Cast gettext return value to char *,
58830         Problem reported by Martin Neitzel via Mark D. Baushke.
58831
58832 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58833
58834         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
58835         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
58836         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
58837         regex.c, sha1.c, version-etc.c, yesno.c:
58838         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
58839         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
58840         the includer's responsibility.
58841
58842         Sync from coreutils.
58843
58844         * lib/modechange.c (mode_compile): Don't decrement a pointer that
58845         points to the start of a string, as the C Standard says the
58846         resulting behavior is undefined.
58847
58848         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
58849         simple -> simple_backups, numbered_existing ->
58850         numbered_existing_backups, numbered -> numbered_backups
58851         to avoid shadowing problems.  All uses changed.
58852         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
58853         * lib/backupfile.c (check_extension, numbered_backup):
58854         Rename locals to avoid shadowing 'basename'.
58855         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
58856         once.
58857
58858         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
58859         * lib/.cvsignore: Add getopt.h.
58860
58861 2004-10-04  Bruno Haible  <bruno@clisp.org>
58862
58863         * modules/README: New file.
58864         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
58865         not a module.
58866
58867 2004-10-02  Jim Meyering  <jim@meyering.net>
58868
58869         * lib/dirfd.h, getpagesize.h: Add copyright notice.
58870
58871 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58872
58873         * modules/strsep: New file.
58874
58875 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58876
58877         * m4/strsep.m4: New file.
58878
58879 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58880
58881         * lib/strsep.h: New file.
58882         * lib/strsep.c: New file.
58883
58884 2004-10-01  Simon Josefsson  <jas@extundo.com>
58885
58886         * lib/snprintf.c (snprintf): Handle size==0.
58887
58888 2004-10-01  Simon Josefsson  <jas@extundo.com>
58889             Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
58892         (snprintf): Declare 'args'.
58893
58894 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         * lib/snprintf.c: Remove comments as to why each header is needed.
58897
58898 2004-10-01  Bruno Haible  <bruno@clisp.org>
58899
58900         * MODULES.html.sh: Add strsep.
58901
58902 2004-09-30  Simon Josefsson  <jas@extundo.com>
58903
58904         * modules/snprintf: New file.
58905
58906 2004-09-30  Simon Josefsson  <jas@extundo.com>
58907
58908         * m4/snprintf.m4: New file.
58909
58910 2004-09-30  Simon Josefsson  <jas@extundo.com>
58911
58912         * lib/snprintf.h, lib/snprintf.c: New files.
58913
58914 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58915
58916         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
58917         (hol_entry_help): Never translate an empty string.
58918         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58919         * lib/argp.h (OPTION_NO_TRANS): New option.
58920
58921 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * modules/argp (Maintainer): Replace Simon Josefsson
58924         by Sergey Poznyakoff.
58925
58926 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58927
58928         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58929         changes merged back into glibc.
58930
58931 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58934
58935 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58936
58937         * lib/xvasprintf.c: Include xalloc.h.
58938         (xvasprintf): Use xalloc_die, not xmalloc_die.
58939
58940 2004-09-29  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/alloca-opt: New file, derived from modules/alloca.
58943         * modules/allocsa: Depend on alloca-opt instead of alloca.
58944         * modules/setenv: Likewise.
58945         * modules/vasnprintf: Likewise.
58946         * MODULES.html.sh: Add alloca-opt.
58947
58948 2004-09-28  Simon Josefsson  <jas@extundo.com>
58949
58950         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58951         LGPL, and to replace license template from GPL to LGPL.
58952
58953 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         * modules/dummy: Change license to LGPL.
58956
58957 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58958
58959         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
58960
58961 2004-09-24  Simon Josefsson  <jas@extundo.com>
58962
58963         * modules/minmax (License): Change from GPL to LGPL.
58964
58965 2004-09-23  Simon Josefsson  <jas@extundo.com>
58966
58967         * gnulib-tool (--import): Typo.
58968
58969 2004-09-23  Simon Josefsson  <jas@extundo.com>
58970
58971         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
58972
58973 2004-09-22  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/*: Add 'License' field.
58976         * gnulib-tool: Accept --extract-license option.
58977         (func_get_license): New function.
58978
58979 2004-09-21  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
58982         Reported by Simon Josefsson.
58983
58984 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
58987         gl_AC_TYPE_LONG_LONG.
58988
58989 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
58992
58993 2004-09-18  Simon Josefsson  <jas@extundo.com>
58994         and  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
58997         calls with autoreconf.  Define GL_LIB.
58998
58999 2004-09-14  Karl Berry  <karl@gnu.org>
59000
59001         * config/srclist.txt: unsync setenv.c, sigh.
59002
59003 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59006         Problem reported by Bruno Haible in:
59007         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59008
59009 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59010
59011         * config/srclist.txt: Comment out argp-pvh.c.
59012
59013 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59014
59015         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59016         in case some system header has #define'd it.  Problem reported by
59017         Soeren D. Schulze in
59018         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59019
59020 2004-09-09  Karl Berry  <karl@gnu.org>
59021
59022         * regex.[ch]: delete from the root.  These were supposed to be
59023                 synced with emacs cvs, but this has not happened for about
59024                 a year, and anyway nothing else uses emacs regex.[ch].
59025                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59026                 lib/regex[.ch] is untouched.
59027
59028 2004-09-09  Bruno Haible  <bruno@clisp.org>
59029
59030         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59031
59032 2004-09-09  Bruno Haible  <bruno@clisp.org>
59033
59034         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59035         modifications.
59036         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59037
59038 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59039
59040         * modules/xvasprintf: New file.
59041         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59042
59043 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59044
59045         * lib/xvasprintf.h: New file.
59046         * lib/xvasprintf.c: New file.
59047         * lib/xasprintf.c: New file.
59048
59049 2004-09-08  Bruno Haible  <bruno@clisp.org>
59050
59051         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59052
59053 2004-09-08  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59056         length is > INT_MAX.
59057         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59058         more.
59059
59060 2004-09-08  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/stdint_.h: New file, taken from GNU clisp.
59063
59064 2004-09-08  Bruno Haible  <bruno@clisp.org>
59065             Oskar Liljeblad  <oskar@osk.mine.nu>
59066
59067         * modules/stdint: New file.
59068         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59069
59070 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59071
59072         Import from coreutils.
59073         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59074         strings on unbounded length.  alloca's performance benefits aren't
59075         that important here.
59076         (V_STRDUP): Remove.
59077         (parse_with_separator): New function, with most of the internals
59078         of the old parse_user_spec.  Allow user to omit both user and group,
59079         for compatibility with FreeBSD.
59080         Clone only the user name, not the entire spec.
59081         Do not set *uid, *gid unless entirely successful.
59082         Avoid memory leak in some failing cases.
59083         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59084         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59085         (parse_user_spec): Rewrite to use parse_with_separator.
59086
59087 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * modules/userspec: Don't depend on alloca.
59090
59091 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59092
59093         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59094
59095 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59096
59097         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59098         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59099         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59100
59101 2004-08-16  Simon Josefsson  <jas@extundo.com>
59102
59103         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59104         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59105         Add --dry-run for --import.
59106         Let user provided command line parameters override configure.ac
59107         settings.
59108
59109 2004-08-12  Simon Josefsson  <jas@extundo.com>
59110
59111         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59112         as discussed with Paul Eggert in threads rooted at
59113         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59114         and
59115         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59116         Before, the test was empty, and relied on ELIDE_CODE in source
59117         code.)
59118         (gl_PREREQ_GETOPT): New macro.
59119         (gl_GETOPT): Use them.
59120
59121 2004-08-12  Simon Josefsson  <jas@extundo.com>
59122
59123         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59124         * lib/getopt_.h: Renamed from getopt.h.
59125
59126 2004-08-12  Simon Josefsson  <jas@extundo.com>
59127
59128         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59129         Change default library name from libfoo to libgnu.
59130         Now, if you have a configure.ac that says:
59131                 gl_SOURCE_BASE(gl)
59132                 gl_M4_BASE(gl/m4)
59133                 gl_MODULES(error getopt etcetera)
59134                 gl_INIT
59135         you can import all you need by running:
59136                 ../gnulib/gnulib-tool --import
59137
59138         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59139         (Makefile.am): Rewrite, use logic from argz.
59140         (Include): Use <getopt.h> instead of "getopt.h".
59141
59142 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * modules/argp (Files): Add m4/unlocked-io.m4.
59145         (Depends-on): Add extensions.
59146
59147 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59148
59149         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59150         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59151         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59152         Check for program_invocation_name, program_invocation_short_name,
59153         flockfile, funlockfile, features.h, _getopt_long_only_r.
59154
59155 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59156
59157         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59158         its complicated substitute.
59159         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59160         and program_invocation_name.
59161         (__argp_basename) [!_LIBC]: Remove; the only use was
59162         replaced by its body.
59163         (__argp_short_program_name): Change condition from
59164         !defined __argp_short_program_name to
59165         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59166         to match argp-namefrob.h.
59167         (__argp_failure): Don't assume strerror_r returns char *.
59168         * lib/argp-parse.c (N_): Define unconditionally.
59169         (argp_default_options): Fill out initializers with 0 to avoid
59170         gcc warnings.
59171
59172 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59175         getopt1.c.
59176
59177 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59178
59179         Merge from coreutils.
59180
59181         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59182
59183         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59184         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59185
59186 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         Merge from coreutils.
59189
59190         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59191         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59192         for Reliant Unix 5.43.
59193
59194         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59195         (union fooround): Use uintmax_t, not long int.
59196         The rest is a merge from libc:
59197         [defined _LIBC]: Include <shlib-compat.h>.
59198         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59199
59200         * lib/settime.c (settime): Recode to avoid warning with
59201         Sun Forte C 6U2.
59202
59203         * lib/strverscmp.c: Convert to UTF-8.
59204
59205 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59208         m4/uintmax_t.m4.
59209
59210 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * modules/xalloc-die: New file.
59213         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59214
59215         * modules/md5 (Files): Add m4/uint32_t.m4.
59216         * modules/sha1: Renamed from modules/sha.
59217         (Files):
59218         Rename lib/sha.h to lib/sha1.h.
59219         Rename lib/sha.c to lib/sha1.c.
59220         Rename m4/sha.m4 to m4/sha1.m4.
59221         (lib_SOURCES): Likewise.
59222         (configure.ac): Rename gl_SHA to gl_SHA1.
59223         (Include): sha.h -> sha1.h.
59224
59225 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59226
59227         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59228         * m4/sha1.m4: Renamed from sha.m4.
59229         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59230
59231 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59232
59233         * lib/obstack.h (obstack_empty_p):
59234         Don't assume that chunk->contents is suitably aligned.
59235         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59236         Likewise. Problem reported by Benno in
59237         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59238
59239         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59240         readable.  This could be improved further but it'd take some work.
59241
59242 2004-08-08  Simon Josefsson  <jas@extundo.com>
59243
59244         * modules/xgethostname (Depends-on): Remove exit and error (not
59245         used).
59246
59247         * modules/getpass-gnu: Add getpass.h.
59248         (Depends-on): Add stdbool.
59249         * modules/getpass: Add getpass.h.
59250
59251 2004-08-08  Simon Josefsson  <jas@extundo.com>
59252
59253         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59254         Check getpass declaration.
59255
59256 2004-08-08  Simon Josefsson  <jas@extundo.com>
59257
59258         * lib/xgethostname.c: Don't include error.h (not used).
59259
59260         * lib/getpass.h: Add.
59261         * lib/getpass.c: Include getpass.h first.
59262
59263 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         * lib/xalloc-die.c: New file.
59266         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59267         All uses removed.
59268         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59269         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59270         xalloc-die.c.
59271         (_, N_, xalloc_die): Move to xalloc-die.c.
59272         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59273         so that we needn't mess with xalloc_msg_memory_exhausted.
59274
59275         * lib/sha1.h: Renamed from sha.h.
59276         (SHA1_H): Renamed from _SHA_H.
59277         (sha1_ctx): Renamed from sha_ctx.
59278         (sha1_init_ctx): Renamed from sha_init_ctx.
59279         (sha1_process_block): Renamed from sha_process_block.
59280         (sha1_process_bytes): Renamed from sha_process_bytes.
59281         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59282         (sha1_read_ctx): Renamed from sha_read_ctx.
59283         (sha1_stream): Renamed from sha_stream.
59284         (sha1_buffer): Renamed from sha_buffer.
59285         * lib/sha1.c: Likewise; renamed from sha.c.
59286         Do not include <sys/types.h>.
59287         Include <stddef.h> rather than <stdlib.h>.
59288
59289 2004-08-08  Bruno Haible  <bruno@clisp.org>
59290
59291         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59292         FILESYSTEM_PREFIX_LEN.
59293         * lib/progreloc.c: Likewise.
59294         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59295
59296 2004-08-06  Simon Josefsson  <jas@extundo.com>
59297
59298         * modules/progname (Depends-on): Don't depend on stdbool.
59299
59300 2004-08-06  Simon Josefsson  <jas@extundo.com>
59301
59302         * modules/getsubopt: New file.
59303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59304         getsubopt.
59305
59306 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         More merge from coreutils.
59309
59310         * m4/utimens.m4, m4/utimecmp.m4: New files.
59311         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59312         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59313         prereq.m4, sha.m4: Import changes from coreutils.
59314
59315 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59316
59317         More merge from coreutils.
59318         * modules/raise, modules/readtokens0, modules/utimens:
59319         * modules/utimecmp, module/xnanosleep: New files.
59320         * modules/strftime: Add lib/strftime.h.
59321         Change include from <time.h> to "strftime.h".
59322         * modules/yesno: Add lib/yesno.h.
59323         * modules/backupfile: Remove lib/addext.c.
59324         * modules/euidaccess: Add stat-macros.h.
59325         * modules/canonicalize, modules/euidaccess,
59326         modules/filemode, modules/lchown, modules/makepath,
59327         modules/rmdir, modules/stat: Likewise.
59328
59329 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59330
59331         Merge from tar.
59332         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59333         SIZE_MAX is a valid preprocessor constant.
59334         (__argp_basename): Change from "#ifndef _LIBC"
59335         to "#ifndef __argp_short_program_name", so that
59336         we don't compile these functions for tar.
59337
59338         More merges from coreutils.
59339         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59340         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59341         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59342         * lib/addext.c: Remove; no longer needed.
59343         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59344         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59345         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59346         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59347         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59348         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59349         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59350         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59351         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59352         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59353         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59354         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59355         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59356         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59357         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59358         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59359         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59360         Import changes from coreutils.
59361
59362 2004-08-05  Simon Josefsson  <jas@extundo.com>
59363
59364         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
59365
59366 2004-08-05  Simon Josefsson  <jas@extundo.com>
59367
59368         * m4/getsubopt.m4: New file.
59369
59370 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         Merge from coreutils.
59373
59374         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
59375         * m4/getcwd-path-max.m4: New files.
59376
59377         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
59378         FILESYSTEM_PREFIX_LEN ->
59379         FILE_SYSTEM_PREFIX_LEN.
59380         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
59381         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
59382         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
59383         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
59384
59385         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
59386         prerequisite modules now handle the DOS stuff.
59387         Don't check for unistd.h.
59388
59389 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59390
59391         Merge from coreutils.
59392
59393         * lib/.gdb-history: Remove; this doesn't belong here.
59394
59395         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
59396         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
59397         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
59398         * lib/getcwd.c: New files.
59399
59400         * lib/dirname.h: Include <stdbool.h>.
59401         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
59402         for consistency with POSIX terminology.  All uses changed.
59403         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
59404         (strip_trailing_slashes): Use bool for booleans.
59405         * lib/stripslash.c (strip_trailing_slashes): Likewise.
59406
59407         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
59408         sometimes returns a positive errno value even when it succeeds.
59409         (print_errno_message) [!LIBC]: Fall back on strerror if
59410         __strerror_r fails.
59411
59412         * lib/path-concat.c (mempcpy): Don't define if a system header defines
59413         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
59414         (longest_relative_suffix): New function.
59415         (path_concat): Use it.  Assume first argument is not NULL.
59416         Port to DOS.  Omit redundant separators.
59417         Report an error instead of returning NULL.
59418         Use mempcpy instead of memcpy.
59419         (xpath_concat): Remove: not declared or used.
59420
59421         * lib/same.h: Include <stdbool.h>
59422         (same_name): Return bool, not int.
59423         * lib/same.c (same_name): Likewise.
59424         (errno): Don't declare; we assume C89 or better now.
59425
59426         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
59427         if not already defined.
59428
59429         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
59430         * lib/dup-safer.c (errno): Likewise.
59431
59432 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59433
59434         Merge from coreutils.
59435         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
59436         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
59437         * modules/path-concat: Don't depend on strdup.
59438
59439 2004-08-03  Simon Josefsson  <jas@extundo.com>
59440
59441         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
59442         * lib/progname.h: Don't include stdbool.h.
59443
59444 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
59447         * MODULES.html.sh (func_all_modules): Remove fatal.
59448
59449 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59450
59451         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
59452
59453 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59454
59455         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
59456         working.
59457
59458 2004-08-02  Simon Josefsson  <jas@extundo.com>
59459
59460         * lib/getsubopt.h: New file, with comments from Bruno Haible.
59461         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
59462         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
59463
59464 2004-08-01  Simon Josefsson  <jas@extundo.com>
59465
59466         * lib/xgetdomainname.c: Include stdlib.h, for free().
59467
59468 2004-07-19  Bruno Haible  <bruno@clisp.org>
59469
59470         * MODULES.html.sh (func_all_modules): Add dummy.
59471
59472 2004-07-16  Simon Josefsson  <jas@extundo.com>
59473
59474         * modules/dummy: New file.
59475
59476 2004-07-16  Simon Josefsson  <jas@extundo.com>
59477
59478         * lib/dummy.c: New file.
59479
59480 2004-07-16  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/backupfile.h: Add extern "C" for C++.
59483         * lib/closeout.h: Likewise.
59484         * lib/copy-file.h: Likewise.
59485         * lib/findprog.h: Likewise.
59486         * lib/full-write.h: Likewise.
59487         * lib/pathname.h: Likewise.
59488         * lib/progname.h: Likewise.
59489         * lib/stpcpy.h: Likewise.
59490         * lib/stpncpy.h: Likewise.
59491         * lib/strcase.h: Likewise.
59492         * lib/strstr.h: Likewise.
59493         * lib/xalloc.h: Likewise.
59494
59495         * lib/mbswidth.h: Add extern "C" for C++.
59496         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
59497
59498 2004-07-13  Robert Millan  <robertmh@gnu.org>
59499
59500         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
59501
59502 2004-07-09  Simon Josefsson  <jas@extundo.com>
59503
59504         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
59505         failed without this.)
59506
59507 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * modules/chown (Files): Add lib/fchown-stub.c, since
59510         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
59511
59512 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         * lib/fchown-stub.c: New file.
59515
59516 2004-06-24  Jim Meyering  <jim@meyering.net>
59517
59518         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
59519
59520 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         * modules/argz: Omit "#include".
59523
59524         * MODULES.html.sh (func_all_modules): Add calloc, to match
59525         2004-06-01 addition of calloc module.
59526
59527 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59528
59529         * m4/argz.m4: New file, which is autoupdated from libtool.
59530
59531 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59532
59533         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
59534         libtool.
59535
59536 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59537
59538         * config/srclist-update: Don't insist on "USA." before the
59539         close-comment, as libtool omits the period and puts the */ on a
59540         separate line.
59541         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
59542         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
59543
59544 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
59545
59546         * modules/argz: New file.
59547         * MODULES.html.sh (func_all_modules): Add argz.
59548
59549 2004-06-12  Jim Meyering  <jim@meyering.net>
59550         and  Paul Eggert  <eggert@cs.ucla.edu>
59551
59552         * modules/hash (Files): Add lib/xalloc.h.
59553         * modules/pipe (Depends-on): Add wait-process.
59554         * modules/stat (Depends-on): Add xalloc.
59555         * modules/userspec (Files): Add lib/userspec.h.
59556         * modules/xstrto
59557
59558         Upgrade from gettext-0.13.
59559         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
59560         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
59561         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
59562
59563 2004-06-10  Jim Meyering  <jim@meyering.net>
59564
59565         * lib/calloc.c: New file.
59566
59567 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59568
59569         * lib/getdate.y (yylex): Allow space between sign and number.
59570         Problem reported by Dan Jacobson.
59571
59572 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         Merge from coreutils CVS.
59575
59576         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
59577         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
59578         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
59579         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
59580         xstrtol.m4: Fix copyright date and/or serial number.
59581
59582         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
59583         See if we need an fchown replacement.
59584         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
59585         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
59586         and use the replacement function if we detect either defect.
59587
59588         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
59589         gl_UTIMECMP.
59590
59591 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59592         and  Jim Meyering  <jim@meyering.net>
59593
59594         Merge from coreutils CVS.
59595
59596         * lib/stat-macros.h: New file, with contents from file-type.h
59597         and coreutils' system.h.
59598         * lib/file-type.c: Include "stat-macros.h".
59599         * lib/file-type.h (file_type): Move all macro definitions to new file,
59600         stat-macros.h.
59601
59602         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
59603         Wrap old code with this conditional.
59604         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
59605         function that does not dereference symlinks.
59606         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
59607
59608         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
59609         dependency problems.
59610         (xreadlink): Accept new arg SIZE, for efficiency.
59611         All decls and uses changed.
59612         * lib/xreadlink.h: Include <stddef.h>, for size_t.
59613
59614         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
59615         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
59616
59617         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
59618         sysexits.h.
59619
59620 2004-06-01  Jim Meyering  <jim@meyering.net>
59621
59622         * m4/calloc.m4: New file.
59623
59624 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
59627         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
59628         Also, fix a typo in a diagnostic.
59629
59630 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
59633         or AC_FUNC_REALLOC.
59634
59635 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
59638         macros to be defined.
59639         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
59640         the allocator returns NULL because the requested size is zero.
59641
59642 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
59645         var.  Add comment explaining why libc still defines it.  This
59646         merges the following patch from glibc:
59647         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
59648
59649 2004-05-20  Andreas Schwab  <schwab@suse.de>
59650
59651         * m4/free.m4: Replace free if it not known to work, not the other
59652         way round.
59653
59654 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
59657         present in glibc since revision 1.1 of this file.
59658         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
59659         obstack_alignment_mask, obstack_alloc, obstack_base,
59660         obstack_blank, obstack_blank_fast, obstack_chunk_size,
59661         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
59662         obstack_grow0, obstack_init, obstack_int_grow,
59663         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
59664         obstack_next_free, obstack_object_size, obstack_ptr_grow,
59665         obstack_ptr_grow_fast, obstack_room): Remove declarations of
59666         nonexistent functions.
59667
59668 2004-05-18  Karl Berry  <karl@gnu.org>
59669
59670         * config/srclist.txt: break link for vasnprintf.c.
59671
59672 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59673
59674         Port obstack to the AS/400, where pointers are 16 bytes wide and
59675         you cannot cast an integer to a valid pointer.  This patch is
59676         currently waiting to be integrated into glibc; see
59677         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
59678
59679         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
59680         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
59681         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
59682         (struct obstack): temp member is now a union of a pointer and
59683         an integer, instead of an integer.  All integer uses changed.
59684         This does not affect the physical layout of struct obstack,
59685         except on hosts (like the AS/400) where the size or alignment of
59686         void * is greater than that of ptrdiff_t.
59687         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
59688         __STDC__)]: Store temporary in pointer member of union, not
59689         integer member.
59690         * lib/obstack.c: Include <stddef.h>, for offsetof.
59691         (struct fooalign): Remove; it doesn't need a name.
59692         (union fooround): Change double to long double, and add void *.
59693         (DEFAULT_ALIGNMENT): Use offsetof to compute.
59694         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
59695         not a macro.  Hence the values are always int; so remove all
59696         casts-to-int in uses.
59697
59698 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59699
59700         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
59701         we can get this patch merged into glibc.
59702
59703 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59704             Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * m4/argp: Depend on alloca.
59707
59708 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59709             Paul Eggert  <eggert@cs.ucla.edu>
59710
59711         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
59712         freecoding.
59713
59714 2004-05-17  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
59717         precision that consists of a '.' followed by an empty digit string.
59718         Patch by Tor Lillqvist <tml@iki.fi>.
59719
59720 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59721
59722         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
59723         for backward compatibility with older code.  We need our own
59724         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
59725         it under some other name, and our alloca.h will define it.
59726
59727 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59728             Derek Price  <derek@ximbiot.com>
59729
59730         * lib/alloca.c: Include <alloca.h>, to get our interface.
59731         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
59732         include <alloca.h> first.  Use C89 prototype for alloca; this
59733         requires including <stddef.h> for size_t.  Use extern "C" if C++.
59734         Use #elif for simplicity, since we can assume C89 now.
59735         Don't try to source the system alloca.h since it will not be found
59736         and to prevent recursively including its replacement.
59737         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
59738         * lib/regex.c: Likewise.
59739
59740 2004-05-16  Derek Price  <derek@ximbiot.com>
59741             Paul Eggert  <eggert@cs.ucla.edu>
59742
59743         getline cleanup.  This changes the getndelim2 API: both order of
59744         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
59745         no delimiter).
59746
59747         * lib/getline.c: Don't include stddef.h or stdio.h, since our
59748         interface does that.
59749         (getline): Always use getdelim, so that we don't have two
59750         copies of this code.
59751         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
59752         if available.
59753         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
59754         (GETNDELIM2_MAXIMUM): New macro.
59755         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
59756         instead of the old practice of delim2==0.  All callers changed.
59757         Return -1 on overflow, instead of returning junk.
59758         Do not set *linesize unless allocation succeeds.
59759         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
59760         that we include sys/types.h.
59761         * lib/getnline.h: Likewise.
59762         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
59763         (getndelim2): Reorder arguments.
59764         * lib/getnline.c (getnline, getndelim):
59765         Don't discard the NMAX argument.
59766         (getnline): Invoke getndelim, to avoid code duplication.
59767         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
59768         of (size_t) -1 by callers of the getnline family.
59769
59770 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59771
59772         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
59773         Check for gettimeofday.
59774         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
59775         Check for settimeofday, stime.
59776
59777 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * lib/nanosleep.c (suspended): Change its type from int to
59780         sig_atomic_t volatile.
59781         (first_call): Make it private to rpl_nanosleep, and have it
59782         be zero initially as that's a bit faster.
59783         (my_usleep): Round up fractional times instead of truncating them,
59784         as this is the usual meaning for 'sleep'.
59785
59786         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
59787         doesn't work.
59788         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
59789         (ENOSYS): Define if not defined.
59790         (settime): Fall back on stime if it exists and settimeofday fails.
59791         But don't bother with fallbacks if a method fails with errno == EPERM.
59792
59793 2004-05-11  Jim Meyering  <jim@meyering.net>
59794
59795         Prior to this change, the save_cwd caller required read access to the
59796         current directory on most systems (ones with the fchdir function).
59797
59798         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
59799         fails, try write-only, and finally, resort to using xgetcwd.
59800
59801 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * lib/obstack.c, obstack.h: Import changes from libc.
59804
59805 2004-04-28  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
59808         also implicitly appends .exe to executables.
59809         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
59810         accepts Windows pathnames.
59811         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59812         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59813         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59814         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59815         Reported by Derek Robert Price <derek@ximbiot.com>.
59816
59817 2004-04-21  Karl Berry  <karl@gnu.org>
59818
59819         * config/srclist.txt (localcharset.c): break sync.
59820
59821 2004-04-20  Paul Eggert  <eggert@twinsun.com>
59822
59823         * m4/host-os.m4: Add a copyright notice.
59824
59825 2004-04-20  Jim Meyering  <jim@meyering.net>
59826
59827         Change UTILS_ to gl_ in AC_DEFINE'd names.
59828         Change utils_- and jm_-prefixed variables, too.
59829         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
59830         UTILS_FUNC_MKDIR_TRAILING_SLASH.
59831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
59832
59833         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
59834         Don't emit trailing blanks.
59835         Also rename jm_-prefixed variables to have gl_ prefix.
59836
59837         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
59838         Also rename jm_-prefixed variables to have gl_ prefix.
59839
59840         * m4/jm-macros.m4: Reflect the renamings.
59841         * m4/prereq.m4: Likewise.
59842
59843 2004-04-20  Jim Meyering  <jim@meyering.net>
59844
59845         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
59846         memory.
59847
59848 2004-04-20  Jim Meyering  <jim@meyering.net>
59849             Bruno Haible  <bruno@clisp.org>
59850
59851         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
59852         memory when realloc fails.
59853
59854 2004-04-19  Jim Meyering  <jim@meyering.net>
59855
59856         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
59857         now that readutmp.c may call `free (0)'.
59858
59859 2004-04-19  Bruno Haible  <bruno@clisp.org>
59860
59861         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
59862         * m4/inttypes_h.m4: Likewise.
59863         * m4/stdint_h.m4: Likewise.
59864         * m4/intmax_t.m4: Likewise.
59865         * m4/uintmax_t.m4: Likewise.
59866
59867 2004-04-18  Jim Meyering  <jim@meyering.net>
59868
59869         * m4/prereq.m4: Don't forbid jm_ prefix.
59870
59871         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
59872         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
59873         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
59874         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
59875         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
59876         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
59877         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
59878         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
59879         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
59880         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
59881         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
59882         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
59883         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
59884         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
59885         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
59886         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
59887         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
59888         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
59889         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
59890
59891 2004-04-18  Jim Meyering  <jim@meyering.net>
59892
59893         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
59894         failure, don't leak memory and do call END_UTMP_ENT.
59895
59896 2004-04-16  Jim Meyering  <jim@meyering.net>
59897
59898         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
59899         coreutils' stat program.
59900         (gl_PREREQ): Don't require jm_PREREQ_STAT.
59901
59902 2004-04-11  Paul Eggert  <eggert@twinsun.com>
59903
59904         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
59905         C89.
59906         (CHAR_BIT): Remove, since we assume C89.
59907         Include <stdint.h> if available, as per current Autoconf CVS advice.
59908
59909 2004-03-31  Jim Meyering  <jim@meyering.net>
59910
59911         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
59912         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
59913         * m4/xalloc.m4: Likewise.
59914
59915 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59916
59917         Merge from coreutils.
59918
59919         * m4/inttostr.m4: New file.
59920         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59921         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59922         Require gl_CLOCK_TIME.
59923         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59924
59925 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59926
59927         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59928         not bool, to be more consistent with Unix conventions.
59929         Suggested by Bruno Haible.
59930
59931         Merge from coreutils.
59932
59933         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59934         * lib/umaxtostr.c: New files.
59935
59936         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59937         the usual <time.h> dance.
59938         (get_date): Change signature to support fractional time stamps.
59939         All callers changed.
59940         * lib/getdate.y: Include "getdate.h" first, as we can now
59941         assume C89 and don't need to worry about 'const'.
59942         Similarly, include "unlocked-io.h" near start, not in middle.
59943         Include <limits.h>.
59944         (textint.value): Use long int rather than int.
59945         (textint.digits): Use size_t rather than int.
59946         (BILLION, LOG10_BILLION): New constants.
59947         (parser_control): New member rel_ns.  Members day_ordinal,
59948         time_zone, month, day, hour, minutes, rel_year, rel_month,
59949         rel_day, rel_hour, rel_minutes, rel_seconds
59950         are now long int, not int.  Member seconds is now struct timespec,
59951         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59952         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59953         not int.
59954         (%union.intval): Now long int, not int.
59955         New member timespec.
59956         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
59957         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
59958         (spec): Now is a timespec or an item list.
59959         (timespec, items): New nonterminals.
59960         (time, rel, relunit, number, get_date):
59961         Add support for fractional seconds.
59962         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
59963         (gmtime, localtime, mktime): Remove decls; not needed with C89.
59964         (to_hour): First arg is now long int, not int.
59965         (to_year): Returns long int, not int.
59966         Don't treat year -70 like 70.
59967         (tm_diff): Returns long int, not int.
59968         (lookup_word): Use bool instead of int when appropriate.
59969         (yylex): Use size_t for count, not int.
59970         Detect overflow when parsing large integer constants.
59971         Add support for fractions.
59972         (get_date): Make pointers 'const' if possible.
59973         Use more-portable code to detect integer overflow.
59974         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
59975         Don't use ctime; it's not reliable if the year has >4 digits.
59976
59977         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
59978         This is for compatibility with BSD.
59979
59980         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
59981         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
59982         From coreutils' system.h.
59983
59984         * lib/userspec.c: Don't include "posixver.h".
59985         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
59986         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
59987         compatible extension.  Simplify code by removing a boolean int
59988         that was always nonzero if a string was nonnull.
59989
59990 2004-03-30  Jim Meyering  <jim@meyering.net>
59991
59992         Merge from coreutils.
59993
59994         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
59995         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
59996         on some systems one must include <grp.h> before it.
59997         Reported by Christian Krackowizer.
59998
59999 2004-03-30  Jim Meyering  <jim@meyering.net>
60000
60001         Merge from coreutils.
60002
60003         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60004
60005         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60006         an empty input stream.
60007
60008         * lib/readtokens.c: Include <stdbool.h>.
60009         (readtoken): Use `size_t' rather than int/long.
60010         All callers adjusted.
60011         Use `bool' rather than `int' where appropriate.
60012         Use memset rather than an explicit loop.
60013         Use x2nrealloc rather than xrealloc.
60014         Allow the use of `\0' as a delimiter.
60015         (readtokens): Likewise.
60016         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60017
60018 2004-03-30  Jim Meyering  <jim@meyering.net>
60019
60020         * m4/realloc.m4: Remove file, since now it does no more than
60021         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60022         the `configure.ac' section of module/realloc.
60023         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60024
60025 2004-03-30  Bruno Haible  <bruno@clisp.org>
60026
60027         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60028         nonnull.
60029
60030 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60031
60032         Merge changes to getloadavg.c from coreutils and Emacs.
60033
60034         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60035         Define to an expression, not to the empty string.
60036         Include cloexec.h and xalloc.h.
60037         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60038         Use set_cloexec_flag rather than rolling our own.
60039         * lib/cloexec.c, lib/cloexec.h: New files.
60040
60041 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60042
60043         * m4/cloexec.m4: New file.
60044
60045 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60046
60047         * lib/getopt.h: Sync with libc CVS.
60048
60049 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60050             Bruno Haible  <bruno@clisp.org>
60051
60052         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60053         mbswidth.
60054
60055 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60056             Bruno Haible  <bruno@clisp.org>
60057
60058         * lib/mbswidth.h: Include <wchar.h> only if
60059         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60060         <wchar.h>.
60061         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60062
60063 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60064
60065         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60066         Sync with libc CVS.
60067         * lib/getopt_int.h: New file, also synced from libc.
60068
60069 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60070
60071         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60072         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60073         Bring back getopt.c, getopt.h, getopt1.c.
60074
60075 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60076
60077         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60078         All uses changed.  Check for sa_sigaction member; this fixes
60079         a bug first reported by Jason Andrade in
60080         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60081
60082 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60083
60084         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60085         '#if' expressions.  Unlike the code it replaces, it does not
60086         depend on (defined _SC_PAGESIZE).  However, it does depend on
60087         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60088         first reported by Jason Andrade in
60089         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60090
60091 2004-02-25  Simon Josefsson  <jas@extundo.com>
60092
60093         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60094
60095 2004-02-25  Simon Josefsson  <jas@extundo.com>
60096
60097         * lib/strdup.h: New file.
60098         * lib/strdup.c: Include it.
60099         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60100         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60101
60102 2004-02-23  Karl Berry  <karl@gnu.org>
60103
60104         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60105         (from fencepost.gnu.org:/gd/gnuorg).
60106
60107 2004-02-23  Karl Berry  <karl@gnu.org>
60108
60109         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60110         * config/srclist.txt: add maintain/standards documents.
60111
60112 2004-02-18  Bruno Haible  <bruno@clisp.org>
60113
60114         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60115         Reported by Derek Robert Price <derek@ximbiot.com>.
60116
60117 2004-02-16  Karl Berry  <karl@gnu.org>
60118
60119         * config/mkinstalldirs, install-sh: update from automake.
60120
60121 2004-02-06  Karl Berry  <karl@gnu.org>
60122
60123         * m4/po.m4: update from gettext 0.14.1.
60124
60125 2004-02-06  Karl Berry  <karl@gnu.org>
60126
60127         * lib/config.charset: update from gettext 0.14.1.
60128
60129 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60130
60131         Add comments and code, prompted by suggestions from Bruno Haible
60132         for sh-quote.
60133         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60134         describing the enum quoting_style values.
60135         * lib/quotearg.c (quotearg_alloc): New function.
60136         (quotearg_buffer_restyled): Treat lone { and } as special.
60137         Treat = as special.  Work around bug with older shells
60138         that "see" a '\' that is really the 2nd byte of a multibyte char.
60139         Quote empty string with shell_quoting_style.
60140
60141 2004-02-03  Bruno Haible  <bruno@clisp.org>
60142
60143         * m4/pipe.m4: New file, from GNU gettext.
60144
60145 2004-02-03  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/pipe.h: New file, from GNU gettext.
60148         * lib/pipe.c: New file, from GNU gettext.
60149
60150 2004-01-27  Bruno Haible  <bruno@clisp.org>
60151
60152         * m4/execute.m4: New file, from GNU gettext.
60153
60154 2004-01-27  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/execute.h: New file, from GNU gettext.
60157         * lib/execute.c: New file, from GNU gettext.
60158         * lib/w32spawn.h: New file, from GNU gettext.
60159
60160 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60161
60162         Merge from diffutils.
60163
60164         * lib/file-type.c (file_type): Add typed memory objects.
60165         * lib/file-type.h (S_TYPEISTMO): New macro.
60166
60167         * lib/c-stack.h (c_stack_action): Remove argv argument.
60168         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60169         (die): Don't calculate message unless segv_action returns.
60170         (get_stack_location, min_address_from_argv, max_address_from_argv,
60171         volatile stack_base, volatile_stack_size): Remove.
60172         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60173         that every segmentation violation is a stack overflow.  (Ouch!)
60174         See Debian bug 136249 (still outstanding) for more info about why
60175         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60176
60177 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60178
60179         Exit-status fix from coreutils.
60180
60181         Use exit_failure consistently in place of EXIT_FAILURE,
60182         so that program exit statuses are consistent on failure.
60183
60184         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60185         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60186         * lib/argmatch.h: Comment fix to match the above.
60187         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60188         Now a macro referring to exit_failure, instead of a separate
60189         variable.  Include "exitfail.h" to get it.
60190         * lib/xstrtol.h: Include "exitfail.h".
60191         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60192
60193         * lib/long-options.c (parse_long_options): Use prototype
60194         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60195         for clarity.
60196
60197 2004-01-21  Jim Meyering  <jim@meyering.net>
60198
60199         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60200         so as not to conflict with a different-sized __mktime_internal
60201         function in GNU libc.
60202         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60203         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60204
60205 2004-01-20  Karl Berry  <karl@gnu.org>
60206
60207         * config/config.guess: update from config.
60208
60209         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60210
60211 2004-01-20  Bruno Haible  <bruno@clisp.org>
60212
60213         Safer stack allocation.
60214         * lib/setenv.c: Include allocsa.h.
60215         (alloca): Remove fallback definition.
60216         (freea): Remove macro.
60217         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60218         instead of freea.
60219
60220 2004-01-20  Bruno Haible  <bruno@clisp.org>
60221
60222         * m4/eealloc.m4: New file, from GNU gettext.
60223
60224 2004-01-20  Bruno Haible  <bruno@clisp.org>
60225
60226         * m4/allocsa.m4: New file, from GNU gettext.
60227
60228 2004-01-20  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/xallocsa.h: New file, from GNU gettext.
60231         * lib/xallocsa.c: New file, from GNU gettext.
60232
60233 2004-01-20  Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60236
60237 2004-01-20  Bruno Haible  <bruno@clisp.org>
60238
60239         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60240         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60241         specially.
60242
60243 2004-01-20  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60246         patch.
60247
60248 2004-01-20  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60251
60252 2004-01-20  Bruno Haible  <bruno@clisp.org>
60253
60254         * lib/eealloc.h: New file.
60255
60256 2004-01-20  Bruno Haible  <bruno@clisp.org>
60257
60258         * lib/binary-io.h: Avoid warnings on Cygwin.
60259
60260 2004-01-20  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/allocsa.h: New file, from GNU gettext.
60263         * lib/allocsa.c: New file, from GNU gettext.
60264
60265 2004-01-18  Karl Berry  <karl@gnu.org>
60266
60267         * doc/gpl.texi, doc/lgpl.texi: new files.
60268
60269 2004-01-18  Karl Berry  <karl@gnu.org>
60270
60271         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60272         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60273
60274 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60275
60276         Merge from coreutils.
60277
60278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60279         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60280         (gl_DEFAULT_POSIX2_VERSION): Move
60281         the documentation from 'configure' into 'config.hin',
60282         so that 'configure --help' isn't burdened by it and
60283         we don't have to worry about its formatting there.
60284         Reword the documentation so that it's more succinct
60285         and can be run together into a single paragraph.
60286         * m4/same.m4 (gl_SAME): Check for pathconf.
60287
60288 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60289
60290         Merge from coreutils.
60291
60292         * lib/posixver.c: Include posixver.h.
60293
60294         * lib/same.c: Include <stdbool.h>, <limits.h>.
60295         (_POSIX_NAME_MAX): Define if not defined.
60296         (MIN): New macro.
60297         (same_name): If file names are silently truncated, report
60298         that the file names are the same if they are the same after
60299         the silent truncation.
60300
60301         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60302         conversion function.
60303         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60304         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60305         longer needed.
60306
60307 2004-01-15  Jim Meyering  <jim@meyering.net>
60308
60309         Merge from coreutils.
60310
60311         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60312         if no library is required.
60313         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60314         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60315         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60316         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60317         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60318         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60319         value, $ac_cv_search_crypt, if it's "none required".
60320         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60321         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60322         not gl_FUNC_GETLOADAVG.
60323         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60324         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60325
60326 2004-01-15  Jim Meyering  <jim@meyering.net>
60327
60328         Merge from coreutils.
60329
60330         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60331         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60332         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60333
60334         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60335         optional configure-time default.
60336
60337         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60338
60339         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60340
60341 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60342
60343         Merge from coreutils.
60344
60345         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60346         value, $ac_cv_search_nanosleep, if it's "none required".
60347
60348 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60349
60350         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60351         with like-named macro in fnmatch.c.
60352         (EXT): Use an internal constant instead.
60353
60354         Merge fnmatch patches from glibc.
60355         * lib/fnmatch.c (mbsinit): Remove define.
60356         Add libc_hidden_ver (__fnmatch, fnmatch).
60357         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60358         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60359
60360 2004-01-14  Karl Berry  <karl@gnu.org>
60361
60362         * config/install-sh: update from automake.
60363
60364 2004-01-13  Karl Berry  <karl@gnu.org>
60365
60366         * config/install-sh: update from automake.
60367
60368 2004-01-09  Karl Berry  <karl@gnu.org>
60369
60370         * config/install-sh: update from automake.
60371
60372 2004-01-05  Karl Berry  <karl@gnu.org>
60373
60374         * config/config.{sub,guess}: update from config.
60375
60376 2003-12-31  Karl Berry  <karl@gnu.org>
60377
60378         * config/depcomp: update from automake.
60379
60380 2003-12-14  Karl Berry  <karl@gnu.org>
60381
60382         * lib/config.charset: update from gettext-runtime.
60383
60384 2003-12-03  Paul Eggert  <eggert@twinsun.com>
60385
60386         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
60387         Bug reported by Alfred M. Szmidt.
60388
60389 2003-12-03  Bruno Haible  <bruno@clisp.org>
60390
60391         * m4/gettext.m4: Upgrade from gettext-0.13.
60392         * m4/po.m4: Upgrade from gettext-0.13.
60393         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
60394         * m4/intmax.m4: New file, from gettext-0.13.
60395         * m4/printf-posix.m4: New file, from gettext-0.13.
60396
60397 2003-11-29  Karl Berry  <karl@gnu.org>
60398
60399         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
60400
60401 2003-11-25  Paul Eggert  <eggert@twinsun.com>
60402             Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/printf-parse.h: Don't include sys/types.h.
60405         (ARG_NONE): New macro.
60406         (char_directive): Change type of *arg_index fields to size_t.
60407         * lib/printf-parse.c: Don't include sys/types.h.
60408         (SSIZE_MAX): Remove macro.
60409         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
60410         Remove unnecessary overflow check.
60411         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
60412         fields.
60413
60414 2003-11-25  Bruno Haible  <bruno@clisp.org>
60415
60416         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
60417
60418 2003-11-25  Bruno Haible  <bruno@clisp.org>
60419
60420         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
60421         gt_TYPE_SSIZE_T.
60422
60423 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60424
60425         * modules/alloca: Remove dependency on xalloc.
60426
60427 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60428
60429         * lib/alloca.c: Remove dependency on xalloc module.
60430         (xalloc_die): Remove.
60431         (memory_full) [!defined emacs]: New macro.
60432         [!defined emacs]: Don't include xalloc.h.
60433         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
60434         address arithmetic overflows.  Change datatypes a bit to avoid
60435         unnecessary casts.
60436
60437 2003-11-22  Jim Meyering  <jim@meyering.net>
60438
60439         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
60440         s/size/size_t/.
60441
60442 2003-11-21  Karl Berry  <karl@gnu.org>
60443
60444         * config/config.{sub,guess}: update from config.
60445
60446 2003-11-18  Karl Berry  <karl@gnu.org>
60447
60448         * config/config.{sub,guess}: update from config.
60449
60450         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
60451
60452 2003-11-17  Paul Eggert  <eggert@twinsun.com>
60453
60454         * README: Mention that S+T cannot overflow if S is the size of
60455         an existing object and T is sufficiently small.
60456
60457 2003-11-17  Jim Meyering  <jim@meyering.net>
60458
60459         On systems without utime and without a utimes function capable of
60460         dealing with a NULL struct utimbuf* argument, this utime replacement
60461         could -- in unusual circumstances -- leak a file descriptor.
60462         * lib/utime.c: Include <unistd.h> and <errno.h>.
60463         (utime_null): Be sure to close `fd' and to preserve errno.
60464         Reported by Geoff Collyer via Arnold Robbins.
60465
60466 2003-11-17  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
60469         (Depends-on): Add xsize.
60470
60471 2003-11-17  Bruno Haible  <bruno@clisp.org>
60472
60473         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
60474
60475 2003-11-17  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/vasnprintf.c (alloca): Remove fallback definition.
60478         (freea): Remove definition.
60479         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
60480         Reported by Paul Eggert.
60481
60482 2003-11-16  Paul Eggert  <eggert@twinsun.com>
60483             Bruno Haible  <bruno@clisp.org>
60484
60485         Protect against address arithmetic overflow.
60486         * lib/printf-args.h: Include stddef.h.
60487         (arguments): Change type of field 'count' to size_t.
60488         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
60489         'unsigned int' where appropriate.
60490         * lib/printf-parse.h: Include sys/types.h.
60491         (char_directive): Change type of *arg_index fields to ssize_t.
60492         (char_directives): Change type of fields 'count', max_*_length to
60493         size_t.
60494         * lib/printf-parse.c: Include sys/types.h and xsize.h.
60495         (SSIZE_MAX): Define fallback value.
60496         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
60497         instead of 'int' where appropriate. Check a_allocated, d_allocated
60498         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
60499         * lib/vasnprintf.c: Include xsize.h.
60500         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
60501         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
60502         overflow. Avoid wraparound when converting a width or precision from
60503         decimal to binary.
60504
60505 2003-11-16  Bruno Haible  <bruno@clisp.org>
60506
60507         Update from GNU gettext.
60508         * lib/printf-parse.c: Generalize to it can be compiled for wide
60509         strings.
60510         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
60511         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
60512         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
60513         SNPRINTF): New macros.
60514         Don't include <alloca.h> if the file is used inside libintl.
60515         (local_wcslen): New function, for Solaris 2.5.1.
60516         (VASNPRINTF): Use it instead of wcslen.
60517
60518 2003-11-16  Bruno Haible  <bruno@clisp.org>
60519
60520         * lib/xsize.h (xmax): New function.
60521         (xsum, xsum3, xsum4): Declare as "pure" functions.
60522
60523 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60524
60525         * modules/xalloc (Files): Undo latest change, since xalloc.h
60526         no longer needs SIZE_MAX or PTRDIFF_MAX.
60527
60528 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60529
60530         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
60531         gl_PTRDIFF_MAX.
60532
60533 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60534
60535         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
60536         "return", to pacify some unknown compiler.  Problem reported
60537         by Joerg Schilling.
60538
60539 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60540
60541         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
60542         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
60543         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
60544         heuristic is just as accurate as far as we know, and it removes a
60545         dependency on size_max.m4 and ptrdiff_max.m4.
60546
60547 2003-11-11  Bruno Haible  <bruno@clisp.org>
60548
60549         * modules/xsize (Files): Add m4/size_max.m4.
60550         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
60551
60552 2003-11-11  Bruno Haible  <bruno@clisp.org>
60553
60554         * m4/size_max.m4: New file.
60555         * m4/ptrdiff_max.m4: New file.
60556         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
60557         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
60558         (gl_XALLOC): Invoke it.
60559
60560 2003-11-11  Bruno Haible  <bruno@clisp.org>
60561
60562         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
60563         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
60564         defined.
60565
60566 2003-11-10  Paul Eggert  <eggert@twinsun.com>
60567
60568         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
60569         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
60570         rejected some allocations of exactly SIZE_MAX - 2 bytes.
60571         From Bruno Haible.
60572         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
60573         not (size_t) -1, since it's defined here.
60574
60575 2003-11-09  Karl Berry  <karl@gnu.org>
60576
60577         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
60578
60579 2003-11-06  Paul Eggert  <eggert@twinsun.com>
60580
60581         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
60582         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
60583         Reject sizes of exactly SIZE_MAX bytes.
60584         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
60585         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
60586
60587 2003-11-05  Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/xsize.h: Include limits.h, to avoid a possible collision with
60590         SIZE_MAX defined in <limits.h> on Solaris.
60591
60592 2003-11-04  Jim Meyering  <jim@meyering.net>
60593
60594         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
60595         variable names, rather than @VAR@.
60596         * modules/poll: Likewise.
60597
60598 2003-11-04  Bruno Haible  <bruno@clisp.org>
60599
60600         * modules/xsize: New file.
60601         * modules/linebreak: Depend on xsize.
60602         * MODULES.html.sh (func_all_modules): Add xsize.
60603
60604 2003-11-04  Bruno Haible  <bruno@clisp.org>
60605
60606         * m4/xsize.m4: New file.
60607
60608 2003-11-04  Bruno Haible  <bruno@clisp.org>
60609
60610         * lib/xsize.h: New file.
60611         * lib/linebreak.c: Include xsize.h.
60612         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
60613         argument for overflow.
60614         Suggested by Paul Eggert.
60615
60616 2003-11-03  Karl Berry  <karl@gnu.org>
60617
60618         * config/config.{guess,sub}: update from config.
60619
60620 2003-11-03  Jim Meyering  <jim@meyering.net>
60621
60622         * modules/userspec (lib_SOURCES): Add userspec.h.
60623         (Include): Add "userspec.h".
60624         Improve description.
60625
60626 2003-11-03  Jim Meyering  <jim@meyering.net>
60627
60628         * lib/userspec.c: Include "userspec.h".
60629         * lib/userspec.h: New file.
60630
60631 2003-11-03  Bruno Haible  <bruno@clisp.org>
60632
60633         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
60634
60635 2003-11-03  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
60638         available, to avoid (extremely rare) race condition.
60639         Suggested by Paul Eggert.
60640
60641 2003-11-02  Karl Berry  <karl@gnu.org>
60642
60643         * config/srclist.txt (vasprintf.c): sync broken, sigh.
60644
60645 2003-10-31  Paul Eggert  <eggert@twinsun.com>
60646
60647         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
60648         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
60649         (read_filesystem_list): Set and use me_type_malloced.
60650         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
60651         whatever the type happens to be), for brevity and consistency.
60652         Check for size calculation overflow on Alphas running OSF/1.
60653
60654 2003-10-31  Jim Meyering  <jim@meyering.net>
60655
60656         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
60657
60658         * lib/linebuffer.c: Include <string.h> for declaration of memset.
60659
60660 2003-10-30  Paul Eggert  <eggert@twinsun.com>
60661             Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
60664         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
60665
60666 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60667
60668         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
60669         netbsd*-gnu*.  Suggested by Robert Millan.
60670
60671 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60672
60673         * modules/group-member: Depend on stdbool.
60674
60675 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60676
60677         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
60678
60679 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60680
60681         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
60682         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
60683         after the 'gnu' in these cases.  This fixes some bugs in the
60684         previous change, and is based on suggestions by Robert Millan.
60685
60686 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60687
60688         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
60689         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
60690         no longer needed.
60691         * lib/quotearg.c (quotearg_n_options): Use it.
60692         * lib/group-member.c: Include <stdbool.h>.
60693         (free_group_info): Arg is now const *; don't free arg.
60694         (get_group_info): Now returns bool and accepts struct group_info *,
60695         rather than returning a malloc'ed struct group_info *.
60696         All uses changed.  Check for overflow in internal size calculation.
60697
60698         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
60699         rather than xmalloc/xrealloc.
60700         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
60701         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
60702         conformance bug: the old code used a pointer after freeing the
60703         storage that it addressed.
60704         * lib/hash.c (hash_initialize): Simplify the code by using
60705         xalloc_oversized rather than doing it by hand.
60706         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
60707         the buffer preserved.  Use free and xmalloc instead.
60708         * lib/quotearg.c (quotearg_n_options): Likewise.
60709         Use a simpler test for size overflow.  Don't use xalloc_oversized
60710         because unsigned int might be wider than size_t (!); this suggests
60711         that we should switch from unsigned int to size_t for slot numbers.
60712
60713 2003-10-28  Paul Eggert  <eggert@twinsun.com>
60714
60715         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
60716         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
60717         NetBSD kernels.  Requested by Richard Stallman.
60718
60719 2003-10-27  Paul Eggert  <eggert@twinsun.com>
60720
60721         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
60722         to allocate the returned structure.  Do not allocate a subarray,
60723         as x2nrealloc will do that.
60724         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
60725         instead of xnrealloc.
60726         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
60727
60728 2003-10-27  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/stdbool_.h: Better support for BeOS.
60731
60732 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60733
60734         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
60735         now uses inline.
60736
60737 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60738
60739         * lib/xalloc.h (xalloc_oversized): New static inline function, for
60740         callers that want to do their own size-overflow checking.  Include
60741         <stdbool.h>, since xalloc_oversized returns bool.
60742         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
60743         to use xalloc_oversized.
60744
60745         Add two functions x2realloc, x2nrealloc, for programs that grow
60746         arrays dynamically by doubling their sizes.
60747         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
60748         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
60749         New functions.
60750
60751         Port to C99 semantics for 'inline' of external functions.
60752         Bug reported by Bruno Haible.
60753         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
60754         with the old contents of xnmalloc.
60755         (xnmalloc, xmalloc): Use it.
60756         (xnrealloc_inline): New static inline function,
60757         with the old contents of xnrealloc.
60758         (xnrealloc, xrealloc): Use it.
60759
60760         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
60761         that.
60762
60763 2003-10-26  Karl Berry  <karl@gnu.org>
60764
60765         * config/srclist.txt (COPYING.DOC): no longer available from
60766         /gd/gnuorg; don't know where the ultimate source is.
60767
60768 2003-10-25  Paul Eggert  <eggert@twinsun.com>
60769
60770         Fix several address-calculation bugs in the hash modules,
60771         plus some minor code cleanup.
60772
60773         * lib/hash.h: Include <stdbool.h>, for bool.
60774         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
60775         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
60776         hash_get_n_entries, hash_get_max_bucket_length,
60777         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
60778         hash_rehash): Use size_t rather than unsigned.
60779         * lib/hash.c (struct hash_table, hash_get_n_buckets,
60780         hash_get_n_buckets_used, hash_get_n_entries,
60781         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
60782         hash_get_entries, hash_do_for_each, hash_string, is_prime,
60783         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
60784         Likewise.
60785         (SIZE_MAX): Define if not defined.
60786         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
60787         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
60788         hash_print):
60789         Use const * when possible.
60790         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
60791         (check_tuning): Fix bug: if tuning parameters were very close to
60792         0 or 1, rounding errors could have caused subscript violations.
60793         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
60794         (hash_initialize): Add 'fail:' label
60795         to free table and return NULL, and use it to simplify code.
60796         Use calloc rather than clearing the storage ourself.
60797         (hash_initialize, hash_rehash): Check for arithmetic overflow in
60798         buffer size calculations.
60799         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
60800         Include <stddef.h>, for size_t.
60801         * lib/hash-pjw.c (hash_pjw): Likewise.
60802         Switch to method described by Bruno Haible.
60803         Include <limits.h>, for CHAR_BIT.
60804         (SIZE_BITS): New macro.
60805
60806 2003-10-23  Paul Eggert  <eggert@twinsun.com>
60807
60808         * m4/getline.m4 (AM_FUNC_GETLINE):
60809         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
60810         hosts.  Problem reported by Derek Robert Price in
60811         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
60812         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
60813         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
60814
60815 2003-10-21  Paul Eggert  <eggert@twinsun.com>
60816
60817         * lib/getndelim2.c (getndelim2): When size calculation overflows,
60818         ceiling the allocation at NMAX bytes rather than silently
60819         discarding input bytes before NMAX is reached.  This makes
60820         a difference only if NMAX exceeds SIZE_MAX / 2.
60821
60822         * lib/obstack.c: Merge from glibc.
60823         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
60824         Add libc_hidden_def (_obstack_newchunk).
60825         (_obstack_free) [! defined _LIBC]: Remove.
60826         [defined _LIBC]: Make a strong alias from obstack_free, rather than
60827         a clone of the function body.
60828         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
60829         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
60830
60831         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
60832         glibc.
60833         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
60834         arg to memcpy.
60835
60836         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
60837         (obstack_ptr_grow_fast, obstack_int_grow_fast):
60838         Don't use lvalue casts, as GCC plans to remove support for them
60839         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
60840         was also present in the non-GCC version, indicating that this
60841         code had always been buggy and had never been widely used.
60842         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
60843         Use the fast variant of each macro, rather than copying the
60844         definiens of the fast variant; that way, we'll be more likely to
60845         catch future bugs in the fast variants.
60846
60847 2003-10-20  Bruno Haible  <bruno@clisp.org>
60848
60849         * modules/wait-process: New file.
60850         * MODULES.html.sh (func_all_modules): Add wait-process.
60851
60852 2003-10-20  Bruno Haible  <bruno@clisp.org>
60853
60854         * m4/wait-process.m4: New file.
60855
60856 2003-10-20  Bruno Haible  <bruno@clisp.org>
60857
60858         * lib/wait-process.h: New file, from GNU gettext.
60859         * lib/wait-process.c: New file, from GNU gettext.
60860
60861 2003-10-19  Jim Meyering  <jim@meyering.net>
60862
60863         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
60864         HPUX 10.20.
60865
60866 2003-10-18  Karl Berry  <karl@gnu.org>
60867
60868         * config/config.guess: update from config.
60869
60870 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60871
60872         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
60873         (getgroups): First arg is int, not size_t.
60874         Don't let 'free' mangle errno.
60875
60876 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60877
60878         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
60879
60880 2003-10-16  Karl Berry  <karl@gnu.org>
60881
60882         * config/config.{guess,sub}: update from config.
60883
60884 2003-10-16  Jim Meyering  <jim@meyering.net>
60885
60886         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
60887         memcpy.
60888
60889 2003-10-15  Paul Eggert  <eggert@twinsun.com>
60890
60891         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
60892         (SIZE_MAX): Remove.
60893         (new_exclude, add_exclude_file): Initial size no longer needs to
60894         be a power of 2.
60895         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
60896         our own address arithmetic overflow checking.
60897
60898         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
60899         (fnmatch): Do not alloca more than 2000 wide characters;
60900         instead, use malloc for large buffers.
60901         Check for address arithmetic overflow, and return -1
60902         with errno set to ENOMEM in that case.
60903         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
60904         (NEW_PATTERN): Do not alloca more than 8000 bytes;
60905         instead, return -1.  Check for address arithmetic overflow.
60906
60907 2003-10-14  Paul Eggert  <eggert@twinsun.com>
60908
60909         Handle invalid suffixes and overflow independently, so that
60910         callers can treat them independently as needed.  Fix some bugs in
60911         suffix handling, e.g., "100k@" was not diagnosed as an invalid
60912         suffix for a human-readable blocksize.  The major caller-visible
60913         change is the addition of a new
60914         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
60915         that both overflow and suffix chars were found.
60916
60917         * lib/human.c (humblock): Don't check separately for invalid suffix
60918         char; that is xstrtoumax's job (now that its bug is fixed).
60919         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60920         INTMAX_MAX]: New macros.
60921         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60922         TYPE_MAXIMUM): New macros.
60923         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60924         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60925         if overflow occurs, as it's what __strtol does and it's more useful
60926         in practice.
60927         (__xstrtol): If __strtol reports some error other than ERANGE,
60928         reflect it to the caller as LONGINT_INVALID.  If it reports
60929         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60930         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60931         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60932         value.
60933         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60934         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60935         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60936         [defined UINTMAX_MAX]: New macros.
60937
60938 2003-10-14  Bruno Haible  <bruno@clisp.org>
60939
60940         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60941
60942 2003-10-14  Bruno Haible  <bruno@clisp.org>
60943
60944         * m4/sig_atomic_t: New file, from GNU gettext.
60945         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60946
60947 2003-10-14  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60950         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60951         Also use volatile where needed.
60952
60953 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60954
60955         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
60956         Change maintainer from Bruno Haible to 'all'.
60957
60958 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60959
60960         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
60961
60962 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60963
60964         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
60965         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
60966         and define in terms of the other primitives.
60967         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
60968         (SIZE_MAX): Define if not already defined.
60969         (array_size_overflow): New function.
60970         (xalloc_die): Abort instead of exiting if 'error' returns.
60971         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
60972         (xmalloc, xrealloc): Use them.
60973         (xcalloc): Check for address arithmetic overflow.
60974         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
60975         a bit faster than strcpy.
60976
60977 2003-10-10  Simon Josefsson  <jas@extundo.com>
60978
60979         * modules/argp (Depends-on): Add restrict and strcase.
60980
60981 2003-10-10  Simon Josefsson  <jas@extundo.com>
60982
60983         * m4/argp.m4: Add AC_C_INLINE.
60984
60985 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60986
60987         Merge getpass from libc, plus a few fixes.
60988
60989         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
60990         Include <stdbool.h>.
60991         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
60992         __fsetlocking to empty.
60993         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
60994         do include <bits/libc-lock.h>.
60995         Do not include <fcntl.h>; not needed.
60996         [_LIBC]: Include <wchar.h>.
60997         (NOTCANCEL_MODE): New macro.
60998         (flockfile, funlockfile) [_LIBC]: New macros.
60999         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61000         [!_LIBC]: New macros.
61001         (call_fclose): New function.
61002         (getpass): Use it.  Save tty stream separately; this simplifies the
61003         code and makes it more reliable if stdin happens to equal stdout.
61004         Invoke __fsetlocking on tty.
61005         Handle thread cancellation if needed.
61006         Namespace cleanup (use __tcgetattr, __getline).
61007         Use bool for Booleans.
61008         [USE_IN_LIBIO]: Handle wide streams.
61009         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61010         stream might go where.
61011
61012         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61013         doesn't have to include <stdio.h> before us.
61014         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61015         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61016         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61017         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61018         if not declared, so that we can use getpass.c code from libc without
61019         rewriting it.
61020         (flockfile, ftrylockfile, funlockfile): New macros.
61021
61022 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61023
61024         * modules/getpass: Depend on stdbool.
61025
61026 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61027
61028         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61029
61030 2003-10-07  Karl Berry  <karl@gnu.org>
61031
61032         * config/config.{guess,sub}: update from config.
61033
61034 2003-10-06  Jim Meyering  <jim@meyering.net>
61035             Bruno Haible  <bruno@clisp.org>
61036
61037         This lets translators provide better translations for the
61038         "Written by ..." part of --version output.
61039         * lib/version-etc.h: Include stdarg.h.
61040         (version_etc_copyright): Declare as readonly.
61041         (version_etc): Make this function variadic with a NULL-terminated list
61042         of author name strings.
61043         (version_etc_va): New declaration.
61044         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61045         (version_etc_copyright): Declare as readonly.
61046         (version_etc_va): New function. Provide a different translatable string
61047         for each possible number of authors < 10. Abbreviate when there are 10
61048         authors or more.
61049         (version_etc): Make this function variadic. Call version_etc_va.
61050         Suggestion from Gary V. Vaughan.
61051
61052         * lib/long-options.h (parse_long_options): Change prototype: the
61053         authors string is moved to the end and becomes variadic.
61054         * lib/long-options.c: Include stdarg.h.
61055         (parse_long_options): Make this function variadic, too.
61056         Call version_etc_va, not version_etc.
61057
61058 2003-10-06  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/version-etc-2: Remove file.
61061         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61062
61063 2003-10-06  Bruno Haible  <bruno@clisp.org>
61064
61065         * modules/fatal-signal: New file.
61066         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61067
61068 2003-10-06  Bruno Haible  <bruno@clisp.org>
61069
61070         * m4/fatal-signal.m4: New file.
61071         * m4/signalblocking.m4: New file, from GNU gettext.
61072
61073 2003-10-06  Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/version-etc-2.h: Remove file.
61076         * lib/version-etc-2.c: Remove file.
61077
61078 2003-10-06  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/fatal-signal.h: New file, from GNU gettext.
61081         * lib/fatal-signal.c: New file, from GNU gettext.
61082
61083 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61084
61085         * README: Rework advice for preventing empty .o files.
61086         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61087         not <sys/types.h>.
61088
61089 2003-10-04  Karl Berry  <karl@gnu.org>
61090
61091         * lib/argp*: update from libc.
61092
61093 2003-10-04  Karl Berry  <karl@gnu.org>
61094
61095         * config/config.{guess,sub}: update from config.
61096
61097 2003-10-02  Bruno Haible  <bruno@clisp.org>
61098
61099         * modules/lchown (Include): Add lchown.h.
61100         * modules/time_r (Include): Use "..." syntax.
61101         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61102
61103 2003-10-01  Simon Josefsson  <jas@extundo.com>
61104
61105         * MODULES.html.sh (func_all_modules): Move gethostname from section
61106         'based on' to section 'lacking' POSIX:2001.
61107
61108 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61109
61110         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61111         to output mode on the same stream.
61112
61113 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61114
61115         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61116         Fix arg typo in previous patch.
61117
61118 2003-09-28  Jim Meyering  <jim@meyering.net>
61119
61120         * lib/error.c: Correct cpp indentation.
61121
61122 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61123
61124         * modules/free: New file.
61125
61126 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61127
61128         * m4/free.m4: New file.
61129
61130 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61131
61132         * lib/minmax.h (MIN, MAX)
61133         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61134         Omit the special code that used __typeof__, since we worry that
61135         it could be more trouble than it's worth.  See:
61136         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61137         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61138
61139         * lib/free.c: New file.
61140
61141 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61142
61143         Trivial fixes to Makefile.am parts of module listings.
61144         * modules/strstr: Append strstr.h to lib_SOURCES.
61145         * modules/strcase: Likewise, for strcase.h.
61146
61147 2003-09-27  Karl Berry  <karl@gnu.org>
61148
61149         * config/mkinstalldirs: update from automake.
61150
61151 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61152
61153         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61154         (error_tail): Do not loop, reallocating temporary buffer, since
61155         the output cannot contain more wide characters than the input
61156         contains bytes, the size must be big enough already.  This avoids
61157         one potential size overflow calculation.  Check for size overflow
61158         when calculating temporary buffer size.  Free temporary buffer
61159         when done, if it was allocated with malloc; this plugs a memory
61160         leak.  Remove casts from void * to pointers, that are no longer
61161         needed now that we're assuming C89 or better.
61162
61163         Merge error changes from glibc.
61164
61165         * lib/error.c, error.h: Update copyright notice header to match glibc.
61166         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61167         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61168         Disable cancellation while printing error.
61169         * lib/error.h: Prepend __ to parameter names.
61170
61171 2003-09-26  Jim Meyering  <jim@meyering.net>
61172
61173         * lib/error.c (error_tail): Move some declarations
61174         into inner scope where the local variables are used.
61175
61176 2003-09-26  Bruno Haible  <bruno@clisp.org>
61177
61178         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61179         stpncpy().
61180         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61181
61182 2003-09-26  Bruno Haible  <bruno@clisp.org>
61183
61184         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61185         (stpncpy): Define as alias for gnu_stpncpy.
61186         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61187
61188 2003-09-25  Simon Josefsson  <jas@extundo.com>
61189
61190         * lib/xgetdomainname.h: New file.
61191         * lib/xgetdomainname.c: New file.
61192
61193 2003-09-25  Simon Josefsson  <jas@extundo.com>
61194             Bruno Haible  <bruno@clisp.org>
61195
61196         * modules/getdomainname: New file.
61197         * modules/xgetdomainname: New file.
61198         * MODULES.html.sh (func_all_modules): Add getdomainname,
61199         xgetdomainname.
61200
61201 2003-09-25  Simon Josefsson  <jas@extundo.com>
61202             Bruno Haible  <bruno@clisp.org>
61203
61204         * m4/getdomainname.m4: New file.
61205
61206 2003-09-25  Simon Josefsson  <jas@extundo.com>
61207             Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/getdomainname.h: New file.
61210         * lib/getdomainname.c: New file.
61211
61212 2003-09-25  Karl Berry  <karl@gnu.org>
61213
61214         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61215
61216 2003-09-25  Karl Berry  <karl@gnu.org>
61217
61218         * config/install-sh: update from automake.
61219
61220 2003-09-25  Bruno Haible  <bruno@clisp.org>
61221
61222         * modules/version-etc-2: New file, from modules/version-etc with
61223         modifications.
61224         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61225
61226 2003-09-25  Bruno Haible  <bruno@clisp.org>
61227
61228         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61229         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61230
61231 2003-09-24  Simon Josefsson  <jas@extundo.com>
61232
61233         * modules/xgethostname: Add xgethostname.h.
61234
61235 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61236
61237         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61238         the buffer associated with the argument.  Bug reported by
61239         Simon Josefsson.
61240
61241 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61242
61243         * README: Document assumptions that 'int' is at least 32 bits
61244         wide, that integer arithmetic is 2's complement without overflow,
61245         that there are no holes in integer values, that adding sizes of
61246         two nonoverlapping objects can't overflow, and that all-bits-zero
61247         yields scalar zero.  Fix spelling and capitalization typos.
61248
61249 2003-09-19  Karl Berry  <karl@gnu.org>
61250
61251         * lib/argp.h: update from libc.
61252
61253 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61254
61255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61256         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61257         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61258
61259 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61260
61261         * gnulib-tool: Use "test -h", not "test -L", for portability
61262         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61263         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61264         (sed_extract_prog): Issue s commands one-by-one, rather than
61265         using \| in one s command.
61266
61267 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61268
61269         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61270         input error, instead of returning NULL the next time we are called
61271         (and therefore losing track of errno).
61272
61273 2003-09-16  Bruno Haible  <bruno@clisp.org>
61274
61275         * gnulib-tool (func_create_testdir): Warn about duplicated
61276         dependencies.
61277
61278 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61279
61280         * modules/argmatch, modules/fatal, modules/obstack,
61281         modules/xalloc, modules/xgethostname: Sort dependencies by
61282         importance, not alphabetically.
61283
61284 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61285
61286         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61287         fails, so that the caller gets the proper errno.
61288
61289         * lib/readutmp.c (read_utmp): Likewise.
61290         Check for fstat error.  Close stream and free storage
61291         when failing.
61292
61293 2003-09-14  Karl Berry  <karl@gnu.org>
61294
61295         * config/srclist.txt (strdup.c): disable for c89 changes.
61296
61297 2003-09-14  Jim Meyering  <jim@meyering.net>
61298
61299         * lib/getloadavg.c: Correct cpp indentation.
61300         * lib/strdup.c: Likewise.
61301         * lib/vasnprintf.c: Likewise.
61302
61303 2003-09-14  Bruno Haible  <bruno@clisp.org>
61304
61305         * modules/fwriteerror: New file.
61306         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61307
61308 2003-09-14  Bruno Haible  <bruno@clisp.org>
61309
61310         * lib/fwriteerror.h: New file.
61311         * lib/fwriteerror.c: New file.
61312
61313 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61314
61315         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61316         modules/xgethostname, modules/xalloc: Depend on exit.
61317
61318 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61319
61320         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61321
61322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61323         and AC_MINIX, too, so that their extensions are available.
61324
61325         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61326         This macro has been superseded by gl_BACKUPFILE.
61327
61328         More patches to assume C89 or better.
61329
61330         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61331
61332         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61333         unconditionally.
61334         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61335         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61336         Include <string.h>, <stdlib.h> unconditionally.
61337         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61338         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61339         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61340         headers or for string.h.
61341         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61342         or strtoul.
61343
61344         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61345         headers.
61346         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61347         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61348         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61349         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61350         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61351         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61352         memcpy, memset.
61353         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61354         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61355         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61356         strtol.
61357         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61358         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61359         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61360         strtoul.
61361
61362 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61363
61364         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
61365         * lib/obstack.c [!defined _LIBC]: Likewise.
61366         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
61367         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
61368         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
61369
61370         More changes to assume C89 or better.
61371
61372         * lib/error.c (error_tail): Assume vprintf.
61373
61374         * lib/argmatch.c (getenv): Remove decl.
61375         * lib/progreloc.c (get_full_program_name): Define via prototype.
61376         * lib/setenv.c (clearenv): Likewise.
61377         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
61378         needed.
61379         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
61380         (malloc, memcpy): Remove decls.
61381         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
61382         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
61383         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61384         (memcpy): Remove macro.
61385         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
61386         (__P): Remove.  All uses removed.
61387         (PTR): Remove.  All uses changed to void *.
61388         (CHAR_BIT, NULL): Remove.
61389         (spaces, zeros, memset_space, memset_zero)
61390         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
61391         Remove.
61392         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
61393         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
61394         Define with prototype.
61395         Remove now-unnecessary prototype decl.
61396         (extra_args_spec): Assume ANSI C.  All uses changed.
61397         (extra_args_spec_iso): Remove.
61398         (my_strftime, emacs_strftimeu): Define via prototype.
61399         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
61400         unconditionally.
61401         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
61402         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
61403         (strtoul, strtol): Remove decls.
61404         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
61405         LONG_MAX): Remove.
61406         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61407         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
61408         (LOCALE_PARAM_PROTO): New macro.
61409         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
61410         (INTERNAL (strtol), strtol): Define with a prototype.
61411         (PARAMS): Remove.  All uses removed.
61412         * lib/tempname.c: Include <string.h> unconditionally.
61413         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
61414         * lib/xgethostname.c (main): Define with a prototype.
61415         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
61416         Include <stdlib.h> unconditionally.
61417         (calloc, malloc, realloc, free): Remove decls.
61418         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
61419         Include <stdlib.h> unconditionally.  Sort include file names.
61420         (strtod): Remove.
61421         (xstrtod): Define with a prototype.
61422         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
61423         (strtol, strtoul): Remove decls.
61424
61425 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61426
61427         More patches to assume C89 or better.
61428         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
61429         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
61430         string.h, memchr, STDC_HEADERS.
61431
61432 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61433
61434         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
61435         Include <stdlib.h>, <string.h> unconditionally.
61436         Remove now-unnecessary cast to char *.
61437         * lib/strnlen.c: Include <string.h> unconditionally.
61438         * lib/yesno.c (yesno): Define with a prototype.
61439
61440 2003-09-11  Bruno Haible  <bruno@clisp.org>
61441
61442         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
61443
61444 2003-09-10  Jim Meyering  <jim@meyering.net>
61445
61446         * lib/error.c: Correct indentation of cpp directives.
61447
61448 2003-09-10  Bruno Haible  <bruno@clisp.org>
61449
61450         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
61451         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
61452         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
61453         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
61454         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
61455         <stdlib.h> and <string.h> checks.
61456         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
61457         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
61458
61459 2003-09-10  Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/strcspn.c: Include <string.h> unconditionally.
61462         * lib/strpbrk.c: Include <string.h> unconditionally.
61463         * lib/strstr.c: Include <string.h> unconditionally.
61464         * lib/unicodeio.c: Include <string.h> unconditionally.
61465         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
61466         * lib/unsetenv.c: Likewise.
61467         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
61468         * lib/yesno.c: Include <stdlib.h> unconditionally.
61469         (rpmatch): Add prototype.
61470
61471 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61472
61473         More patches to assume C89 or better.
61474         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
61475         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
61476         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
61477         or for string.h.
61478         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
61479         stdlib.h.
61480         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
61481         C headers.
61482         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
61483         string.h.
61484         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
61485         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
61486         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
61487         or for string.h.
61488         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
61489         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
61490         C headers.
61491         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
61492         memcpy.
61493         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
61494         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
61495         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
61496         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
61497         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
61498         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
61499         string.h, free.
61500         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
61501         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
61502         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
61503         C headers, or for string.h.
61504         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
61505         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
61506         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
61507         headers, memory.h, stdlib.h, string.h, strings.h.
61508         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
61509         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
61510         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
61511         strchr.
61512         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
61513         headers, memory.h, string.h.
61514         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
61515         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
61516         free.
61517         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
61518         headers.
61519         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
61520         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
61521         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
61522         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
61523         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
61524
61525 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61526
61527         More K&R removal.
61528
61529         * lib/acosl.c (main): Use a prototype.
61530         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
61531         tanl.c: Likewise.
61532
61533         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
61534
61535         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
61536         (getopt, etopt_long, getopt_long_only, _getopt_internal)
61537         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
61538         with a prototype.
61539         * lib/getopt.c (const): Remove macro.
61540         Include <string.h> unconditionally.
61541         (my_index): Remove; all uses changed to strchr.
61542         (strlen): Remove decl.
61543         (exchange): Remove forward decl; no longer needed.
61544         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
61545         Define with prototype.
61546         * lib/getopt1.c (const): Remove macro.
61547         (getopt_long, getopt_long_only, main): Define with prototype.
61548
61549         * lib/getugroups.c: Include <string.h> unconditionally.
61550
61551         * lib/getusershell.c: Include <stdlib.h> unconditionally.
61552         (getusershell, setusershell, endusershell, readname, main):
61553         Define with prototypes.
61554
61555         * lib/group-member.c: Include group-member.h first.
61556         Include <stdlib.h> unconditionally.
61557
61558         * lib/hard-locale.c: Include hard-locale.h first.
61559         Include <stdlib.h>, <string.h> unconditionally.
61560
61561         * lib/hash.c (free, malloc): Remove decls.
61562         Include <stdlib.h> unconditionally.
61563
61564         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
61565         (getenv): Do not declare.
61566
61567         * lib/idcache.c: Include <string.h> unconditionally.
61568
61569         * lib/long-options.c: Include long-options.h first, to test interface.
61570         Include <stdlib.h> unconditionally.
61571
61572         * lib/makepath.c: Include makepath.h first, to test interface.
61573         Include <stdlib.h> and <string.h> unconditionally.
61574
61575         * lib/linebuffer.c: Include <stdlib.h>.
61576         (free): Remove decl.
61577
61578         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
61579         stddef.h. rpl_malloc returns void *, not char *.
61580         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
61581         prototype.
61582
61583         * lib/md5.h: Include <limits.h> unconditionally.
61584         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
61585         (__P): Remove; all uses removed.
61586         * lib/md5.c: Include "md5.h" first.
61587         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
61588         md5_buffer, md5_process_bytes, md5_process_block):
61589         Define with prototypes.
61590         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
61591         * lib/sha.c: Include "sha.h" first.
61592         Include <stdlib.h>, <string.h> unconditionally.
61593
61594         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
61595         * lib/memcmp.c (__ptr_t): Likewise.
61596         * lib/memrchr.c (__ptr_t): Likewise.
61597         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
61598         Include <string.h> unconditionally.
61599         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
61600         * lib/memchr.c: Include <stdlib.h> unconditionally.
61601         * lib/memchr.c (LONG_MAX): Remove.
61602         * lib/memrchr.c (LONG_MAX): Likewise.
61603         * lib/memchr.c (__memchr): Define via a prototype.
61604         * lib/memrchr.c (__memrchr): Likewise.
61605         * lib/memcmp.c (__P): Remove, and remove all uses.
61606         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
61607         Remove forward decls; no longer needed.
61608         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
61609         Use types required by C89 in prototype.
61610
61611         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
61612         * lib/savedir.c: Likewise.
61613         * lib/mkdir.c (free): Remove decl.
61614         * lib/rmdir.c (rmdir): Define with a prototype.
61615         * lib/savedir.c: Include savedir.h first, to test interface.
61616
61617         * lib/mktime.c (STDC_HEADERS): Remove.
61618         Include <stdlib.h>, <string.h> unconditionally.
61619
61620         * lib/modechange.c: Include <stdlib.h> unconditionally.
61621         (malloc): Remove decl.
61622
61623         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
61624         (free): Remove decl.
61625
61626         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
61627         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
61628         (This type really should be intptr_t, but that's a C99ism.)
61629         (_obstack_memcpy): Remove: all uses changed to memcpy.
61630         Include <string.h> unconditionally.
61631         (struct obstack): Assume __STDC__ for types of members
61632         chunkfun, freefun, extra_arg.
61633         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
61634         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
61635         obstack_begin, obstack_specify_allocation,
61636         obstack_specify_allocation_with_arg, obstack_chunkfun,
61637         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
61638         Remove unprototyped decls and the macros that use them.
61639         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
61640         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
61641         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
61642         (defined __STDC__ && __STDC__)]:
61643         Remove nonprototyped code.
61644         Include <stdlib.h> unconditionally.
61645         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
61646         _obstack_allocated_p, _obstack_free, obstack_free,
61647         _obstack_memory_used, print_and_abort):
61648         Define using prototypes.
61649         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
61650         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
61651         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
61652         obstack_next_free, obstack_object_size, obstack_room) [0]:
61653         Remove unused, unprototyped code.
61654
61655         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
61656
61657         * lib/physmem.c (physmem_total, physmem_available, main): Define
61658         with prototypes.
61659
61660         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
61661         (main): Define with a prototype.
61662
61663         * lib/posixver.c (getenv): Remove decl.
61664
61665         * lib/putenv.c (malloc): Returns void *, not char *.
61666         Include <string.h> unconditionally.
61667         (strchr, memcpy, NULL): Do not define.
61668
61669         * lib/readtokens.c: Include readtokens.h first, to test interface.
61670         Include <stdlib.h>, <string.h> unconditionally.
61671         (init_tokenbuffer): Define with a prototype.
61672
61673         * lib/regex.c (PARAMS): Remove.  All uses removed.
61674         All uses of _RE_ARGS removed, too.
61675         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61676         unconditionally.
61677         (bzero): Assume memset exists.
61678         (memcmp, memcpy, NULL): Remove.
61679         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
61680         char, or assignments to local vars of type signed char.
61681         (init_syntax_once, PREFIX(extract_number_and_incr),
61682         PREFIX(print_partial_compiled_pattern),
61683         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
61684         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
61685         PREFIX(regex_grow_registers), PREFIX(regex_compile),
61686         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
61687         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
61688         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
61689         wcs_compile_range, byte_compile_range, truncate_wchar,
61690         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
61691         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
61692         count_mbs_length, wcs_re_match_2_internal,
61693         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
61694         PREFIX(alt_match_null_string_p),
61695         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
61696         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
61697         regfree, PREFIX(extract_number)): Define with prototype.  Remove
61698         now-unnecessary declaration, if any.
61699         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
61700         regcomp, regexec):
61701         Remove now-unnecessary casts among pointer types.
61702         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
61703
61704         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
61705         (free): Remove decl.
61706
61707         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
61708
61709         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
61710         (free): Remove decl.
61711
61712         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
61713         * lib/xgetcwd.c: Likewise.
61714
61715         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
61716         (free): Remove decl.
61717
61718         * lib/strchrnul.c (strchrnul): Define with a prototype.
61719         Fix bug: c_in was not converted to char before searching.
61720
61721         The following changes are not K&R related:
61722
61723         * lib/group-member.h: Include <sys/types.h>, so that this file is
61724         self-contained.
61725         * lib/makepath.h: Likewise.
61726
61727         * lib/getusershell.c (readname, default_index, line_size, readname):
61728         Use size_t, not int, for sizes.
61729         (readname): If the size overflows, report an error instead of
61730         looping forever.
61731
61732 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61733
61734         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
61735         libc.
61736
61737 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61738
61739         * README: New section: portability guidelines.
61740
61741 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61742
61743         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
61744         C89 spec.
61745
61746 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61747
61748         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
61749
61750 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61751
61752         Assume C89 or better; remove K&R cruft.
61753         A few of these changes were first proposed by Derek Robert Price
61754         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
61755
61756         * lib/addext.c: Include <string.h> unconditionally.
61757         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
61758         Don't declare getenv or malloc.
61759
61760         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
61761         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
61762         (NULL): Remove.
61763         (find_stack_direction, alloca): Use prototypes.
61764
61765         * lib/atexit.c (atexit): Define using a prototype.
61766
61767         * lib/basename.c, dirname.c, stripslash.c:
61768         Include <string.h> unconditionally.
61769
61770         * lib/bcopy.c: Include <stddef.h>.
61771         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
61772
61773         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
61774
61775         * lib/error.h (error, error_at_line, error_print_progname)
61776         [! (defined (__STDC__) && __STDC__)]: Remove decls.
61777         * lib/error.c: Include error.h first, to check interface.
61778         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61779         (VA_START): Remove; all uses changeed to va_start.
61780         (exit, strerror): Remove decls.
61781         (error_print_progname): Prototype uncondionally.
61782         Don't include <errno.h>; no longer needed.
61783         (private_strerror): Remove.
61784         (error_tail): Always define.
61785         (error, error_at_line): Assume C89 or better; always use prototypes.
61786         * lib/fatal.c: Include "fatal.h" first, to test interface.
61787         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61788         (VA_START): Remove; all uses changed to va_start.
61789         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
61790         this case.
61791         (exit): Remove decl.
61792         (fatal): Prototype unconditionally.  Assume va_start works.
61793         Abort at end, to pacify gcc.
61794
61795         * lib/euidaccess.c (main): Define with a prototype.
61796
61797         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
61798
61799         * lib/exitfail.c: Include <stdlib.h> unconditionally.
61800
61801         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
61802         prototypes.
61803         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
61804         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
61805         (getenv): Remove decl.
61806         (fnmatch): Define using a prototype.
61807         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
61808         (FCT): Define using a prototype.
61809
61810         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
61811
61812         * lib/gethostname.c: Include <stddef.h>.
61813         (gethostname): Define with prototype.  Length is size_t, not int.
61814
61815 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61816
61817         Assume C89 or better; remove K&R cruft.
61818         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
61819         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
61820         string.h, getenv, malloc.
61821         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
61822         headers.
61823         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
61824         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
61825         do not check for strerror.
61826         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
61827         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
61828         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
61829         do not check for doprnt or vprintf.
61830         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
61831         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
61832
61833 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61834
61835         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
61836         getversion.c should have been removed then, but was accidentally
61837         preserved.
61838
61839         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
61840         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
61841
61842 2003-09-08  Karl Berry  <karl@gnu.org>
61843
61844         * config/config.sub, config.guess, srclistvars.sh: update from savannah
61845                 config, forget about prep.
61846
61847         * config/depcomp, missing: update from automake.
61848
61849 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61850
61851         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
61852         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61853
61854 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61855
61856         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
61857         copy_tm_result.  Bug reported by Simon Josefsson in
61858         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61859
61860 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61861
61862         * m4/time_r.m4: New file.
61863         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
61864         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
61865         is. Check for timegm declaration.
61866         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
61867         Do not check for gmtime_r.
61868         Replace mktime if __mktime_internal does not exist and if mktime
61869         hasn't been replaced already.
61870
61871 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61872
61873         * lib/time_r.c, lib/time_r.h: New files.
61874
61875         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
61876         __localtime_r.
61877         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
61878         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
61879
61880         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
61881         __gmtime_r.
61882         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
61883         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
61884         Include <time_r.h>.
61885
61886         * lib/timegm.c: Switch to glibc implementation, with the following
61887         changes:
61888         [defined HAVE_CONFIG_H]: Include <config.h>.
61889         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
61890         (__mktime_internal) [!defined _LIBC]: New decl.
61891         (__gmtime_r) [!defined _LIBC]: New macro and function.
61892         (timegm): Use a prototype, since gnulib assumes C89.
61893         Do not bother declaring tmp to be const, as it's not really usefu.
61894         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
61895         (timegm): Declare only if HAVE_DECL_TIMEGM.
61896
61897 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61898
61899         * MODULES.html.sh (func_all_modules): Add time_r.
61900         * modules/time_r: New file.
61901         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
61902         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
61903
61904 2003-09-03  Paul Eggert  <eggert@twinsun.com>
61905
61906         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
61907         Bug reported by Lute Kamstra in
61908         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
61909
61910         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
61911         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
61912         course with correspondingly smaller numbers for tomorrow and
61913         yesterday.  From Tadayoshi Funaba.  Originally installed into
61914         sh-utils on 1999-08-07, but the patch got lost (I guess during the
61915         coreutils merge?).
61916
61917 2003-08-31  Simon Josefsson  <jas@extundo.com>
61918
61919         * modules/timegm: New file.
61920         * MODULES.html.sh (func_all_modules): Add timegm.
61921
61922 2003-08-31  Simon Josefsson  <jas@extundo.com>
61923
61924         * m4/timegm.m4: New file.
61925
61926 2003-08-31  Simon Josefsson  <jas@extundo.com>
61927
61928         * lib/timegm.h: New file.
61929         * lib/timegm.c: New file.  Based on
61930         wget-1.8.2/src/http.c:mktime_from_utc.
61931
61932 2003-08-31  Karl Berry  <karl@gnu.org>
61933
61934         * lib/argp.h: update from libc.
61935
61936 2003-08-28  Bruno Haible  <bruno@clisp.org>
61937
61938         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61939         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61940         followed by '#define fnmatch fnmatch_posix' gives an error.
61941
61942 2003-08-28  Bruno Haible  <bruno@clisp.org>
61943
61944         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61945         warning on QNX, which defines O_BINARY to 000000.
61946
61947 2003-08-27  Jim Meyering  <jim@meyering.net>
61948
61949         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61950         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61951         would fail after 32.  Reported by Danny Levinson.  Details here:
61952         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61953
61954 2003-08-24  Bruno Haible  <bruno@clisp.org>
61955
61956         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
61957         MSVC7 <stdio.h> is included later.
61958
61959 2003-08-22  Simon Josefsson  <jas@extundo.com>
61960
61961         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
61962
61963 2003-08-20  Karl Berry  <karl@gnu.org>
61964
61965         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
61966
61967 2003-08-20  Bruno Haible  <bruno@clisp.org>
61968
61969         * modules/progname: New file.
61970         * MODULES.html.sh (func_all_modules): Add progname.
61971
61972 2003-08-20  Bruno Haible  <bruno@clisp.org>
61973
61974         * lib/progname.h: New file, from GNU gettext.
61975         * lib/progname.c: New file, from GNU gettext.
61976         * lib/progreloc.c: New file, from GNU gettext.
61977
61978 2003-08-19  Jim Meyering  <jim@meyering.net>
61979
61980         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
61981         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
61982
61983 2003-08-19  Bruno Haible  <bruno@clisp.org>
61984
61985         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
61986         more.
61987
61988 2003-08-19  Bruno Haible  <bruno@clisp.org>
61989
61990         * lib/xstrdup.c: Assume <string.h> exists.
61991
61992 2003-08-18  Paul Eggert  <eggert@twinsun.com>
61993
61994         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
61995         in makefile rules.
61996
61997 2003-08-18  Jim Meyering  <jim@meyering.net>
61998
61999         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62000         * m4/lib-ld.m4: Likewise.
62001
62002 2003-08-18  Jim Meyering  <jim@meyering.net>
62003
62004         * lib/setenv.h: Indent nested cpp directive.
62005         * lib/vasnprintf.c: Remove trailing blanks.
62006
62007 2003-08-17  Simon Josefsson  <jas@extundo.com>
62008
62009         * modules/xstrndup: New file.
62010         * MODULES.html.sh (func_all_modules): Add xstrndup.
62011
62012 2003-08-17  Simon Josefsson  <jas@extundo.com>
62013
62014         * modules/argp: Fix autoconf macro name. Add more dependencies.
62015
62016 2003-08-17  Simon Josefsson  <jas@extundo.com>
62017
62018         * m4/xstrndup.m4: New file.
62019
62020 2003-08-17  Simon Josefsson  <jas@extundo.com>
62021
62022         * m4/argp.m4: New file.
62023
62024 2003-08-17  Simon Josefsson  <jas@extundo.com>
62025             Bruno Haible  <bruno@clisp.org>
62026
62027         * lib/xstrndup.h: New file.
62028         * lib/xstrndup.c: New file.
62029
62030 2003-08-17  Bruno Haible  <bruno@clisp.org>
62031
62032         * modules/strndup (Files, Include): Add lib/strndup.h.
62033
62034 2003-08-17  Bruno Haible  <bruno@clisp.org>
62035
62036         * modules/euidaccess (Files): Add lib/euidaccess.h.
62037
62038 2003-08-17  Bruno Haible  <bruno@clisp.org>
62039
62040         * lib/strndup.h: New file.
62041
62042 2003-08-17  Bruno Haible  <bruno@clisp.org>
62043
62044         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62045         like AC_GNU_SOURCE.
62046         * modules/extensions (configure.ac): Comment out the invocation of
62047         gl_USE_SYSTEM_EXTENSIONS.
62048
62049 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62050
62051         Merges from coreutils, etc.
62052         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62053         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62054         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62055         fixing a typo.
62056         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62057         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62058
62059 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62060
62061         Document merge from coreutils.
62062         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62063         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62064         * modules/utime: Add m4/utimes-null.m4.
62065
62066 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62067
62068         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62069         space, undoing this 2003-08-12 change:
62070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62071
62072 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62073
62074         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62075         strtoul.c from libc, undoing this 2003-08-12 change:
62076         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62077
62078 2003-08-16  Jim Meyering  <jim@meyering.net>
62079
62080         Merges from coreutils.
62081         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62082         prefix.  Adjust cache variables similarly.  Create 500 rather than
62083         just 300 files, to exercise bug on Darwin6.5, too.
62084         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62085         $missing_dir.
62086         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62087         AM_SYS_POSIX_TERMIOS.
62088         Reported by mkc@mathdogs.com.
62089         Also change use of $am_cv_sys_posix_termios
62090         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62091         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62092         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62093         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62094         in /proc/mounts until it finds one with matching device number.  This
62095         is unnecessary when the FILE argument *is* a mount point.  No stat call
62096         is necessary in that case.  So, disable the statvfs-testing code on
62097         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62098         as RedHat bug# 84846.
62099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62100         to 1MB, so as not to render systems with no stack size limit (e.g.,
62101         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62102         Include <unistd.h>.  On some systems,
62103         it is required for the definition of _SC_PAGESIZE.
62104
62105 2003-08-16  Jim Meyering  <jim@meyering.net>
62106
62107         Merge from coreutils.
62108         * lib/xstrtoimax.c: #else #if -> #elif.
62109         * lib/xstrtoumax.c: Likewise.
62110
62111 2003-08-16  Jim Meyering  <jim@meyering.net>
62112
62113         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62114         * m4/utimes.m4: Removed.
62115         * m4/utimes-null.m4: Renamed from utimes.m4.
62116
62117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62118         to 1MB, so as not to render systems with no stack size limit (e.g.,
62119         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62120         Include <unistd.h>.  On some systems,
62121         it is required for the definition of _SC_PAGESIZE.
62122
62123 2003-08-16  Jim Meyering  <jim@meyering.net>
62124         and Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         Merges from coreutils, etc.
62127
62128         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62129         using the latest version from cvs.  This avoids problems with #line
62130         directives using a vendor (Sun) compiler.
62131         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62132         Don't set GETGROUPS_LIB here; now it's
62133         done via getgroups.m4's wrapper function.
62134         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62135         rather than just in sh-util/configure.in, so that the
62136         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62137         same.
62138         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62139         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62140         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62141         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62142         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62143         Remove code that is now done by the newly-required macros.
62144         Append $(EXEEXT) to DF_PROG.
62145         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62146         Do not invoke or require the following here,
62147         since prereq.m4 or some gnulib .m4 now does this for us:
62148         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62149         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62150         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62151         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62152         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62153         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62154         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62155         AC_FUNC_OBSTACK.
62156         Do not replace the following functions, as this is now the job
62157         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62158         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62159         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62160         atexit getpass, strdup, getpagesize.
62161         Replace 'raise'.
62162         Do not check for the following functions, as this is now the job
62163         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62164         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62165         setregid.
62166         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62167         Check for sys/sysctl.h.
62168         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62169         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62170         of checking for ssize_t ourselves.
62171
62172         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62173         Require every macro that gnulib/modules/* suggests for us.
62174         (jm_PREREQ_ADDEXT): New macro.
62175         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62176         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62177
62178         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62179         (gl_PHYSMEM): Use it.
62180         Also check for `table' function.
62181         Check for new headers and functions.
62182         Add check for sys/sysmp.h.
62183         With suggestions from Kaveh Ghazi.
62184         Ignore headers that are present but cannot be compiled.  This
62185         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62186         C 5.4.
62187
62188 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62189
62190         Document merge from coreutils.
62191         * modules/userspec: Depend on posixver.
62192         * modules/strftime: Depend on tzset.
62193
62194 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62195
62196         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62197         rather than tab, after '#' in shell-script copyright notices.
62198         Suggested by Bruno Haible.
62199
62200 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62201
62202         * config/srclist-update: Use three spaces, rather than tab, after '#'
62203         in shell-script copyright notices.  Suggested by Bruno Haible.
62204         Remove unnecessary parenthesization in regular expression.
62205
62206 2003-08-15  Jim Meyering  <jim@meyering.net>
62207
62208         Merge from coreutils.
62209         * lib/xgethostname.c: Include <stdlib.h>.
62210         (xghostname): Don't exit for anything other than memory-related
62211         failure; just return NULL.
62212         * lib/userspec.c: Include "posixver.h".
62213         (parse_user_spec): Accept `.' as a separator only
62214         in pre-POSIX-200112 mode.
62215         * lib/strtoimax.c: Use #elif rather than #else #if.
62216         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62217         Remove function, now that we can rely on a working tzset function.
62218         [!_LIBC]: Ensure that the required autoconf test has been run.
62219         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62220         Use underlying_strftime for %r.
62221         * lib/sha.c: Merge in some clean-up and optimization changes from
62222         glibc.
62223         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62224         Ensure that it is a multiple of 64.
62225         Rearrange loop exit tests so as to avoid performing an
62226         additional fread after encountering an error or EOF.
62227         * lib/realloc.c: Update copyright date.
62228
62229 2003-08-15  Jim Meyering  <jim@meyering.net>
62230         and Paul Eggert  <eggert@twinsun.com>
62231
62232         Merge from coreutils.
62233         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62234         member but strut utmpx does not.  Needed for AIX 4.3.3.
62235         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62236
62237 2003-08-15  Jim Meyering  <jim@meyering.net>
62238         and Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         Merges from coreutils, etc.
62241         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62242         Require gl_FUNC_TZSET_CLOBBER.
62243         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62244         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62245         members.
62246
62247 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62248
62249         Help the merge from coreutils.
62250         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62251         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62252         * m4/tzset.m4: Use it too.
62253
62254 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62255
62256         * modules/tzset: New file.
62257
62258 2003-08-14  Jim Meyering  <jim@meyering.net>
62259
62260         Merges from coreutils.
62261         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62262         variable names, rather than @FNMATCH_H@.
62263         * modules/alloca: Likewise for $(ALLOCA_H).
62264
62265         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62266         the three copies of the literal target, `fnmatch.h'.
62267         * modules/alloca (alloca.h): Likewise.
62268
62269 2003-08-14  Jim Meyering  <jim@meyering.net>
62270
62271         Merge from coreutils.
62272         * m4/tzset.m4: New file.
62273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62274         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62275         otherwise, AIX 5.1 systems would end up using the latter.
62276         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62277         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62278         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62279         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62280
62281 2003-08-14  Jim Meyering  <jim@meyering.net>
62282
62283         Merge from coreutils.
62284         * lib/obstack.h: Whitespace changes.
62285         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62286         and xcalloc return values.
62287         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62288         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62289         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62290         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62291         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62292         error from mntctl.
62293         Use mntctl's return value to drive the entry-processing loop, since
62294         we can't rely on the value of the vmt_length member in the last
62295         entry.  On some systems doing so could result in exhausting
62296         virtual memory.  Based in part on a patch from Mike Jetzer.
62297
62298 2003-08-14  Jim Meyering  <jim@meyering.net>
62299         and Paul Eggert  <eggert@twinsun.com>
62300
62301         Merges from coreutils, plus other fixes.
62302         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62303         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62304         for credits and details.  Thanks to Kaveh Ghazi for helping
62305         to keep these files in sync.
62306         (ARRAY_SIZE): Define it.
62307         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62308         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62309         (memcasecmp): Don't assume size_t fits in unsigned int.
62310         Remove casts and duplicate code.
62311         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62312         (memcpy): Remove definition.
62313         Merge in some clean-up and optimization changes from glibc.
62314         [BLOCKSIZE]: Move definition to top of file.
62315         Ensure that it is a multiple of 64.
62316         Rearrange loop exit tests so as to avoid performing an
62317         additional fread after encountering an error or EOF.
62318         * lib/md5.h (md5_uintptr): Define.
62319         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62320         return to the initial working directory.  Preserve errno
62321         for caller.
62322         * lib/idcache.c: Include "xalloc.h".
62323         (xmalloc, xrealloc): Remove decls.
62324         (getuser): Remove casts no longer required in C89.
62325         * lib/human.c: Include stdio.h, for sprintf.
62326         * lib/group-member.c: Include "xalloc.h".
62327         (xmalloc, xrealloc): Remove decls.
62328         (get_group_info): Remove casts no longer required in C89.
62329         * lib/getusershell.c (readname): Remove casts no longer required in
62330         C89.
62331         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62332         * lib/getline.c: Whitespace fix, from coreutils.
62333
62334 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62335
62336         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62337         Check for isascii.
62338
62339         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62340         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62341         Undo previous (whitespace-only) change.
62342
62343 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62344
62345         * lib/exclude.c: Include <ctype.h>
62346         (IN_CTYPE_DOMAIN): New macro.
62347         (is_space): New fn.
62348         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62349         and empty lines.
62350
62351         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62352         Undo previous (whitespace-only) change.
62353
62354 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62355
62356         * config/srclist-update: Change update back to the old behavior,
62357         leaving whitespace alone.  Use one 'sed' command rather than a
62358         pipeline.
62359         (fixlicense): Now a variable, not a function.
62360         (remove_trailing_blanks): Remove.
62361         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62362         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62363         Undo previous (whitespace-only) change.
62364
62365 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62366
62367         Merge from coreutils.
62368         * modules/euidaccess: Add lib_SOURCES, include for new
62369         file euidaccess.h
62370
62371 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62372
62373         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62374         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62375         Normalize leading white space and remove trailing white space.
62376
62377         Merge from coreutils
62378         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
62379
62380         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
62381         0.12.1.  These files are now being upgraded automatically by
62382         ../config/srclist-update.
62383
62384 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62385
62386         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62387         Normalize leading white space and remove trailing white space.
62388         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
62389         notice, as per ../config/srclist-update.
62390
62391         Merge from coreutils.
62392         * lib/euidaccess.h: New file.
62393         * lib/euidaccess.c: Include it.
62394         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
62395         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
62396         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
62397
62398 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62399
62400         * config/srclist-update: Add copyright notice.
62401         (remove_id_lines, remove_trailing_blanks): New constants.
62402         (fixfile): Use them to normalize spacing a bit in copied files.
62403         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62404         Normalize leading white space and remove trailing white space.
62405
62406         * config/texinfo.tex: Sync with texinfo.
62407
62408         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
62409         strtoul.c from libc, to merge coreutils whitespace changes.
62410
62411         * config/srclist.txt: Get the following m4 files from gettext:
62412         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
62413         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
62414         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
62415         wint_t.m4.
62416
62417 2003-08-12  Karl Berry  <karl@gnu.org>
62418
62419         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
62420         been made.
62421
62422 2003-08-11  Paul Eggert  <eggert@twinsun.com>
62423
62424         * modules/gnu-source, m4/gnu-source.m4:
62425         Remove; we're assuming Autoconf 2.54 or later now.
62426         Suggested by Bruno Haible.
62427         * MODULES.html.sh (func_all_modules): Remove gnu-source.
62428
62429 2003-08-11  Bruno Haible  <bruno@clisp.org>
62430
62431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
62432
62433 2003-08-11  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
62436         (vasnprintf): Use it instead of wcslen.
62437
62438 2003-08-11  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
62441         value to ensure that _Bool promotes to int. Use #define for _Bool when
62442         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
62443
62444 2003-08-10  Karl Berry  <karl@gnu.org>
62445
62446         * lib/regex.h: update from libc (whitespace fix).
62447
62448 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62449
62450         Merge some files from coreutils.  These changes were
62451         originally made by Jim Meyering.
62452         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
62453         many older Unixes require this.
62454         * lib/alloca.c (alloca): Remove cast to argument of free;
62455         no longer needed in C89.
62456         * lib/alloca_.h, regex.h: Fix white space to match
62457         what GNU indent does.
62458
62459 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62460
62461         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
62462         apparently Emacs's Unicode mode got confused before my 2003-08-05
62463         checkin.
62464
62465 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62466
62467         * m4/extensions.m4: New file.
62468         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
62469         Require gl_USE_SYSTEM_EXTENSIONS.
62470         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
62471         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
62472
62473 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62474
62475         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
62476         * modules/extensions, modules/gnu-source: New files.
62477         * modules/timespec, modules/unlocked-io: Depend on extensions.
62478
62479 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62480
62481         * modules/restrict: New file.
62482         * MODULES.html.sh (func_all_modules): Add restrict.
62483         * modules/regex: Depend on restrict.
62484
62485 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62486
62487         * m4/restrict.m4: New file.
62488         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
62489
62490 2003-08-07  Bruno Haible  <bruno@clisp.org>
62491
62492         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
62493         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
62494
62495 2003-08-07  Bruno Haible  <bruno@clisp.org>
62496
62497         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
62498         makes the module 'getndelim2' compatible with the module 'getline'.
62499
62500 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62501
62502         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
62503         byte with "\201" to avoid glitches when editing that source file
62504         with multi-gnome-terminal.
62505
62506 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62507
62508         * lib/bumpalloc.h: Remove.
62509
62510 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62511
62512         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
62513         * modules/bumpalloc: Remove.
62514
62515 2003-08-04  Paul Eggert  <eggert@twinsun.com>
62516
62517         * lib/getloadavg.c: Change copyright notice and spacing to conform to
62518         GNU coding style.
62519
62520         Merge from coreutils.
62521         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
62522         1. From glibc.
62523         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
62524         from Karl Berry, implemented by Jim Meyering.
62525         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
62526         from Dmitry V. Levin.
62527         Remove anachronistic cast of xrealloc.
62528         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
62529         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
62530         type. Otherwise, it wouldn't compile with at least /bin/cc on
62531         ymp-cray-unicos9.0.2.X.
62532         Combine two mostly-identical uses of alloca into one.
62533         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
62534
62535 2003-08-04  Dave Love  <d.love@dl.ac.uk>
62536
62537         [From Emacs.]
62538
62539         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
62540         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
62541         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
62542         obsolete NLIST_NAME_UNION.
62543         [__GNU__]: Undef BSD and FSCALE.
62544         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
62545
62546 2003-08-03  Paul Eggert  <eggert@twinsun.com>
62547
62548         * lib/stdbool_.h (_Bool): Make it signed char, instead of
62549         an enum type, so that it's guaranteed to promote to int.  See:
62550         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
62551
62552 2003-08-03  Karl Berry  <karl@gnu.org>
62553
62554         * config/depcomp: update from automake.
62555
62556 2003-07-31  Paul Eggert  <eggert@twinsun.com>
62557
62558         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
62559         (strerror): Don't assume that a printable int fits in 14 bytes.
62560
62561 2003-07-31  Bruno Haible  <bruno@clisp.org>
62562
62563         * modules/getpass-gnu: New file.
62564         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
62565
62566 2003-07-31  Bruno Haible  <bruno@clisp.org>
62567
62568         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
62569
62570 2003-07-24  Karl Berry  <karl@gnu.org>
62571
62572         * config/missing: update from automake.
62573
62574 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
62575             Bruno Haible  <bruno@clisp.org>
62576
62577         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
62578         * lib/getline.c (getline, getdelim): Likewise.
62579         Remove _GNU_SOURCE define; now it's defined in config.h through
62580         m4/getline.m4.
62581
62582 2003-07-23  Karl Berry  <karl@gnu.org>
62583
62584         * config/config.sub: update from prep.
62585
62586 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62587
62588         * modules/xalloc (Depends-on): Add exitfail.
62589         * modules/xmemcoll: Likewise.
62590
62591 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62592
62593         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
62594         over-parenthesization in macros.
62595
62596         Sync with coreutils.
62597
62598         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
62599         required by C99.
62600
62601         Use `exit_failure' for xalloc and xmemcoll instead of their own
62602         private exit-failure variables.
62603         * lib/xalloc.h (xalloc_exit_failure): Remove.
62604         * lib/xmalloc.c: Likewise.  Include exitfail.h.
62605         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
62606         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
62607         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
62608         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
62609
62610 2003-07-20  Jim Meyering  <jim@meyering.net>
62611
62612         * modules/closeout (Depends-on): Add exitfail.
62613         Suggestion from Bruno Haible.
62614
62615 2003-07-19  Karl Berry  <karl@gnu.org>
62616
62617         * config/config.sub: update from prep.
62618
62619 2003-07-18  Paul Eggert  <eggert@twinsun.com>
62620
62621         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
62622         Remove.
62623         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
62624         to test that it can stand by itself.  Include "exitfail.h".
62625         Clients should set exit_failure instead.
62626         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
62627
62628 2003-07-18  Bruno Haible  <bruno@clisp.org>
62629
62630         * modules/getndelim2: New file.
62631         * modules/getline: Share files with module getndelim2.
62632         * modules/getnline: Depend on getndelim2 instead of sharing files with
62633         it. Add getnline.c to lib_SOURCES.
62634         * MODULES.html.sh (func_all_modules): Add getndelim2.
62635
62636 2003-07-18  Bruno Haible  <bruno@clisp.org>
62637
62638         * m4/getndelim2.m4: New file.
62639         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
62640         invoke gl_PREREQ_GETNDELIM2.
62641         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
62642         gl_PREREQ_GETNDELIM2.
62643         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
62644         gl_GETNDELIM2.
62645
62646 2003-07-18  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/getndelim2.h: New file.
62649         * lib/getndelim2.c: Make into a module of its own. Include config.h,
62650         getndelim2.h.
62651         (getndelim2): Make non-static. Change return type to ssize_t.
62652         * lib/getline.h: Change argument names.
62653         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
62654         * lib/getnline.c: Include getndelim2.h.
62655
62656 2003-07-18  Andreas Schwab  <schwab@suse.de>
62657
62658         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
62659
62660 2003-07-17  Karl Berry  <karl@gnu.org>
62661
62662         * config/config.sub: update from prep.
62663
62664 2003-07-17  Bruno Haible  <bruno@clisp.org>
62665
62666         * modules/getnline: New file.
62667         * modules/getline: Add lib/getndelim2.c to source file list.
62668         * MODULES.html.sh (func_all_modules): Add getnline.
62669
62670 2003-07-17  Bruno Haible  <bruno@clisp.org>
62671
62672         * m4/getnline.m4: New file.
62673
62674 2003-07-17  Bruno Haible  <bruno@clisp.org>
62675
62676         * m4/Makefile.am.in: Remove file.
62677         * m4/Makefile.am: Remove file.
62678         * m4/Makefile.in: Remove file.
62679
62680 2003-07-17  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/getnline.h: New file.
62683         * lib/getnline.c: New file.
62684         * lib/getndelim2.c: New file, extracted from getline.c.
62685         (getndelim2): Renamed from getdelim2, with added nmax argument.
62686         * lib/getline.c: Include getndelim2.c.
62687         (getdelim2): Moved out to getndelim2.c.
62688         (getline, getdelim): Update.
62689
62690 2003-07-17  Bruno Haible  <bruno@clisp.org>
62691
62692         * lib/Makefile.am: Remove file.
62693         * lib/Makefile.in: Remove file.
62694
62695 2003-07-17  Bruno Haible  <bruno@clisp.org>
62696
62697         * configure.in: Remove file.
62698         * Makefile.in: Remove file.
62699
62700 2003-07-17  Bruno Haible  <bruno@clisp.org>
62701
62702         * MODULES.html.sh: Put the </BODY> right before </HTML>.
62703
62704 2003-07-16  Karl Berry  <karl@gnu.org>
62705
62706         * config/srclist-update: was running fixlicense twice, which caused
62707                 texinfo.tex to be nullified for some reason.  Simplify,
62708                 $gplsrc is no longer needed as far as I can see?
62709
62710 2003-07-16  Jim Meyering  <jim@meyering.net>
62711
62712         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
62713
62714 2003-07-15  Paul Eggert  <eggert@twinsun.com>
62715
62716         * config/srclist.txt: Get the following files from gettext-runtime/intl
62717         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
62718         ref-del.sin.  From Bruno Haible.
62719         * config/srclist-update (fixfile): Change grep pattern again, since the
62720         previous fix didn't work (there was another trailing $).  Use
62721         '[$]' to escape the $s.
62722
62723 2003-07-15  Karl Berry  <karl@gnu.org>
62724
62725         * lib/vasnprintf.c: update from gettext.
62726
62727 2003-07-15  Karl Berry  <karl@gnu.org>
62728
62729         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
62730         gets expanded when surrounded by '$'.
62731
62732 2003-07-15  Jim Meyering  <jim@meyering.net>
62733
62734         * modules/save-cwd: Don't depend on error.  From Derek Price.
62735
62736 2003-07-15  Jim Meyering  <jim@meyering.net>
62737
62738         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
62739
62740 2003-07-14  Simon Josefsson  <jas@extundo.com>
62741
62742         * modules/mempcpy: New file.
62743         * MODULES.html.sh (func_all_modules): Add mempcpy.
62744
62745 2003-07-14  Simon Josefsson  <jas@extundo.com>
62746
62747         * m4/mempcpy.m4: New file.
62748
62749 2003-07-14  Simon Josefsson  <jas@extundo.com>
62750
62751         * lib/mempcpy.h: New file.
62752         * lib/mempcpy.c: New file.
62753
62754 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62755
62756         * modules/getdate, modules/posixtm: Depend on mktime.
62757
62758 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62759
62760         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
62761         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
62762         unicodeio.c, unicodeio.h, unlocked-io.h:
62763         Switch from LGPL to GPL.
62764
62765 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62766
62767         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
62768         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
62769         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
62770         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
62771         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
62772         updated automatically by ../config/srclist-update.  This changes
62773         their license from LPGL to GPL.
62774
62775 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62776
62777         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
62778         assumed to refer to the root of the most recent stable gettext version.
62779         * config/srclistvars.sh: Add defaults for eggert.
62780         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
62781         Match "This program" as well as "The program".  This is needed
62782         for gettext.
62783
62784 2003-07-14  Jim Meyering  <jim@meyering.net>
62785
62786         Don't emit diagnostics.  Let callers do that.
62787         * lib/save-cwd.c: Don't include "error.h".
62788         (save_cwd): Don't call error.  Ensure that errno is valid
62789         when returning nonzero.
62790
62791         * lib/save-cwd.h (restore_cwd): Update prototype.
62792         * lib/save-cwd.c (restore_cwd): Remove two parameters.
62793         Simplify.  Don't call error upon failure.  Let callers do that.
62794         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
62795         when auditing is enabled.  But don't bother updating the #if.
62796
62797 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
62798
62799         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
62800         it breaks C++ compilation.
62801         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
62802
62803 2003-07-10  Simon Josefsson  <jas@extundo.com>
62804
62805         * modules/strchrnul (Makefile.am): Add strchrnul.h.
62806
62807 2003-07-10  Jim Meyering  <jim@meyering.net>
62808
62809         * m4/clock_time.m4: Remove trailing blank.
62810         * m4/intmax_t.m4: Likewise.
62811
62812 2003-07-10  Jim Meyering  <jim@meyering.net>
62813
62814         * lib/vasnprintf.c: Remove trailing blanks.
62815         Make cpp indentation consistent.
62816
62817 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62818
62819         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
62820         posixver.c, strftime.c, strnlen.c, strverscmp.c:
62821         Switch from LGPL to GPL.
62822
62823 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62824
62825         * config/srclist.txt: Sort sublists.  Add
62826         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
62827         that differ from gnulib for one reason or another; we'd like this list
62828         to be smaller but for now let's document what we have.
62829
62830 2003-07-08  Paul Eggert  <eggert@twinsun.com>
62831
62832         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
62833         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
62834         and sweeter "eval x=$x".
62835         * config/srclist.txt: Get lib/argp* from glibc.
62836
62837 2003-07-07  Paul Eggert  <eggert@twinsun.com>
62838
62839         * lib/mktime.c: Fix some boundary cases and remove need for floating
62840         point.
62841
62842         Issue a compile-time diagnostic if time_t is floating point, or if
62843         two's complement arithmetic is not in effect, or if arithmetic
62844         right shift does not propagate the sign.  These assumptions were
62845         all in the original code but they weren't checked.
62846
62847         (TIME_T_MIDPOINT, verify): New macros.
62848         (__isleap): Remove; it has integer overflow problems.
62849         (leapyear): New function, without those problems.
62850         (ydhms_tm_diff): Remove; splitting into two parts.
62851         (ydhms_diff): New function, containing the arithmetic part of
62852         the old ydhms_tm_diff function.  Issue a compile-time
62853         diagnostic if we are not using C99 integer division.
62854         Avoid casts when possible.
62855         (guess_time_tm): New function, containing the checking part of
62856         the old ydhms_tm_diff function.  Return the new value, rather than
62857         the difference between it and the old.  Accept a new argument T
62858         so that *T specifies the old value.  Check for overflow in the result.
62859
62860         (__mktime_internal): Use a time_t offset, not a long int offset.
62861         This undoes the 2003-06-04 change, which is no longer needed now
62862         that we have better overflow checking.
62863         (localtime_offset): Likewise.
62864
62865         (__mktime_internal): Avoid harmful overflow on hosts where time_t
62866         and long are 64-bit but int is only 32-bit.
62867         (ydhms_diff): Use long int to store year1 and yday1.
62868         Issue a compile-time diagnostic if long int is not wide enough.
62869
62870         (__mktime_internal): Use long int to store adjusted year and yday.
62871         Use plain C rather than preprocessor commands, if that doesn't
62872         affect efficiency.
62873         Check for overflow (and try to repair) after each probe
62874         rather than checking only at the very end.  This avoids some bugs
62875         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
62876         does not equal GMT offset at maximum time).
62877         Use integer to check for overflow rather than floating point; this
62878         is more portable to non-IEEE hosts, and is a tad faster.
62879         When we detect that we are oscillating between two values,
62880         don't check whether tm_isdst has the requested value, since
62881         we already know the answer.  When tm_isdst has the wrong value,
62882         use a different heuristic to find the right one, based on the
62883         extreme values actually observed in practice in tz2003a,
62884         rather than the (overly optimistic) "previous 3 calendar quarters".
62885
62886         (not_equal_tm, print_tm, check_result): Use "const T" rather than
62887         "T const" to accommodate glibc style.
62888         (check_result): Use less-confusing report format.  "long" -> "long int.
62889         (main): Likewise.
62890         Don't loop if the iteration overflows time_t.
62891         Allow a negative step in the iteration.
62892
62893 2003-07-06  Karl Berry  <karl@gnu.org>
62894
62895         * config/depcomp: update from automake.
62896         * config/config.sub: update from prep.
62897
62898 2003-07-03  Karl Berry  <karl@gnu.org>
62899
62900         * config/config.guess: update from prep.
62901
62902 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62903
62904         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
62905         xreadlink.c now includes it unconditionally.
62906
62907 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62908
62909         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
62910         having it depend on HAVE_SYS_TYPES_H.
62911
62912 2003-07-01  Bruno Haible  <bruno@clisp.org>
62913
62914         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
62915         <sys/types.h> should be sufficient.
62916         Reported by Paul Eggert.
62917
62918 2003-06-26  Karl Berry  <karl@gnu.org>
62919
62920         * config/depcomp: update from automake.
62921
62922 2003-06-26  Bruno Haible  <bruno@clisp.org>
62923
62924         * modules/human: Depend on module stdbool.
62925
62926 2003-06-25  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/readlink: New file.
62929         * modules/xreadlink: Depend on it.
62930         * MODULES.html.sh (func_all_modules): Add readlink.
62931
62932 2003-06-25  Bruno Haible  <bruno@clisp.org>
62933
62934         * m4/readlink.m4: New file.
62935
62936 2003-06-25  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/readlink.c: New file.
62939
62940 2003-06-22  Karl Berry  <karl@gnu.org>
62941
62942         * config/srclist.txt: update mkinstalldirs from automake.
62943         * config/mkinstalldirs: update.
62944
62945 2003-06-22  Bruno Haible  <bruno@clisp.org>
62946
62947         Portability to mingw32.
62948         * m4/ssize_t.m4: New file, from GNU gettext.
62949         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62950         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62951
62952 2003-06-22  Bruno Haible  <bruno@clisp.org>
62953
62954         * modules/safe-read: Add m4/ssize_t.m4.
62955         * modules/xreadlink: Add m4/ssize_t.m4.
62956
62957 2003-06-20  Bruno Haible  <bruno@clisp.org>
62958
62959         Assume C89, so PARAMS isn't needed.
62960         * lib/unicodeio.h (PARAMS): Remove.
62961         * lib/unicodeio.c: Don't use PARAMS.
62962
62963 2003-06-18  Karl Berry  <karl@gnu.org>
62964
62965         * config/config.{guess,sub}: update from prep.
62966
62967 2003-06-18  Jim Meyering  <jim@meyering.net>
62968
62969         Merge changes from coreutils.
62970         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
62971         Remove explicit declarations of xmalloc and realloc.
62972         Include xalloc.h.
62973         (read_utmp): Remove anachronistic cast of xmalloc.
62974
62975 2003-06-17  Paul Eggert  <eggert@twinsun.com>
62976
62977         Assume C89, so PARAMS isn't needed.
62978         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
62979         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
62980         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
62981         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
62982         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
62983         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
62984         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
62985         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
62986         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
62987         lib/xstrtod.h, lib/xstrtol.h: Likewise.
62988         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
62989         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
62990         no longer needed. Anyway, config.h should always be included before any
62991         other file.
62992
62993 2003-06-11  Simon Josefsson  <jas@extundo.com>
62994
62995         * modules/sysexits: New file.
62996         * MODULES.html.sh (func_all_modules): Add sysexits.
62997
62998 2003-06-11  Simon Josefsson  <jas@extundo.com>
62999
63000         * lib/sysexit_.h: New file.
63001
63002 2003-06-11  Derek Price  <derek@ximbiot.com>
63003
63004         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63005         necessary.
63006
63007 2003-06-11  Bruno Haible  <bruno@clisp.org>
63008
63009         * m4/sysexits.m4: New file.
63010
63011 2003-06-10  Simon Josefsson  <jas@extundo.com>
63012
63013         * lib/argp.h: New file, from glibc.
63014         * lib/argp-ba.c: New file, from glibc.
63015         * lib/argp-eexst.c: New file, from glibc.
63016         * lib/argp-fmtstream.c: New file, from glibc.
63017         * lib/argp-fmtstream.h: New file, from glibc.
63018         * lib/argp-fs-xinl.c: New file, from glibc.
63019         * lib/argp-help.c: New file, from glibc.
63020         * lib/argp-namefrob.h: New file, from glibc.
63021         * lib/argp-parse.c: New file, from glibc.
63022         * lib/argp-pv.c: New file, from glibc.
63023         * lib/argp-pvh.c: New file, from glibc.
63024         * lib/argp-xinl.c: New file, from glibc.
63025
63026 2003-06-10  Simon Josefsson  <jas@extundo.com>
63027
63028         * modules/strchrnul: New file.
63029
63030 2003-06-10  Simon Josefsson  <jas@extundo.com>
63031
63032         * modules/argp: New file.
63033
63034 2003-06-10  Simon Josefsson  <jas@extundo.com>
63035
63036         * m4/strchrnul.m4: New file.
63037
63038 2003-06-10  Simon Josefsson  <jas@extundo.com>
63039
63040         * lib/strchrnul.h: New file.
63041         * lib/strchrnul.c: New file.
63042
63043 2003-06-10  Bruno Haible  <bruno@clisp.org>
63044
63045         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63046
63047 2003-06-07  Karl Berry  <karl@gnu.org>
63048
63049         * config/config.{guess,sub}: update from prep.
63050
63051 2003-06-07  Jim Meyering  <jim@meyering.net>
63052
63053         * modules/strtod: Use $(...) notation, not @...@ for
63054         AC_REPLACE'd variables.
63055         * modules/localcharset: Likewise.
63056
63057 2003-06-07  Jim Meyering  <jim@meyering.net>
63058
63059         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63060         in place of my name in the copyright comment.
63061         Remove definition and uses of __P.
63062
63063         From coreutils.
63064         * lib/stat.c: Don't declare xmalloc explicitly.
63065         Instead, include "xalloc.h".
63066         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63067         xrealloc, and xcalloc return values.
63068         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63069         Improve comment.
63070         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63071
63072 2003-06-07  Bruno Haible  <bruno@clisp.org>
63073
63074         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63075         avoid AC_CONFIG_LINKS.
63076         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63077         fnmatch.h, to avoid AC_CONFIG_LINKS.
63078         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63079
63080 2003-06-07  Bruno Haible  <bruno@clisp.org>
63081
63082         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63083         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63084         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63085         directory.
63086         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63087         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63088         directory.
63089
63090 2003-06-06  Jim Meyering  <jim@meyering.net>
63091
63092         Merge from coreutils.
63093         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63094         Consolidate declarations and initializations of *_base* locals.
63095
63096         Merge from coreutils.
63097         This avoids a core dump on systems without GNU putenv,
63098         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63099         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63100         (unsetenv): New static function, from GNU libc.
63101         (rpl_putenv): Use it.
63102
63103         * lib/modechange.c: Remove trailing blanks.
63104
63105         Merge from coreutils.
63106         * lib/fsusage.c: Remove declaration of statfs.
63107         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63108
63109         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63110
63111 2003-06-06  Jim Meyering  <jim@meyering.net>
63112
63113         * lib/stdbool_.h: Renamed from stdbool.h.in.
63114
63115 2003-06-06  Jim Meyering  <jim@meyering.net>
63116             Bruno Haible  <bruno@clisp.org>
63117
63118         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63119         Adjust Makefile.am snippet not to redirect directly to target.
63120         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63121
63122 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63123
63124         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63125         mismatch, look in future quarters as well as past.  This fixes a
63126         bug when processing fall-backwards gaps immediately after a long
63127         period of daylight-saving time.
63128
63129         * lib/mktime.c: Assume freestanding C89 or better.
63130         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63131         (__P): Remove; not used.
63132         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63133         (mktime, not_equal_tm, print_tm, check_result,
63134         main): Use prototypes.  Use const * where appropriate.
63135         (main): Fix typo in testing code that uncovered by above changes.
63136         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63137
63138 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63139
63140         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63141         locale.h, localeconv.  This merges changes from coreutils.
63142
63143         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63144         It can be removed after the next Autoconf is released.
63145         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63146         needed.
63147
63148 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63149
63150         * lib/mktime.c: Fix Debian bug 177940
63151         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63152         (localtime_offset): Now long int, not time_t, because we want it
63153         to be guaranteed to be signed.  All uses changed.
63154         (__mktime_internal): If overflow would occur when adding offset,
63155         don't add it.
63156
63157         Merge 'human' changes from coreutils.  Rewrite to support
63158         locale-specific notations like thousands separators.
63159         * lib/human.c: Simplify authorship notice.
63160         Include human.h immediately after config.h.
63161         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63162         <limits.h>: Do not include, since human.h does.
63163         (SIZE_MAX, UINTMAX_MAX): New macros.
63164         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63165         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63166         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63167         (power_letter): Renamed from suffixes.
63168         (generate_suffix_backwards): Remove.
63169         (adjust_value): Now takes int style (because of human.h changes)
63170         and long double value (for greater precision on some platforms).
63171         (group_number): New function.
63172         (human_readable): Use it.  Use integer options, not enum.
63173         Put the options before the sizes in the arg list.
63174         Support all the new options.
63175         The old human_readable function has been removed;
63176         use inttostr.h instead.
63177         (human_readable, default_block_size, humblock):
63178         Use uintmax_t, not int, for block sizes.
63179         (human_readable_inexact, block_size_types): Remove.
63180         (block_size_opts): New constant.
63181         (human_options): Renamed from human_block_size, with new signature
63182         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63183         * lib/human.h: Add copyright and authorship notice.
63184         Include <limits.h> and <stdbool.h> unconditionally.
63185         (PARAMS): Remove.  All uses removed.
63186         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63187         (enum human_inexact_style): Remove tag; now a nameless enum.
63188         (human_floor, human_ceiling, human_round_to_even): Now have
63189         values 2, 0, 1 rather than -1, 1, 0.
63190         (human_group_digits, human_suppress_point_zero, human_autoscale,
63191         human_base_1024, human_SI, human_B): New constants.
63192         (human_readable_inexact, human_block_size): Remove.
63193         (human_readable): Size args are now uintmax_t, not int.
63194         (human_options): New decl.
63195
63196         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63197         unnecessary now that we assume C89 or better.  This change
63198         imported from coreutils.
63199
63200         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63201         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63202         in the 2003-05-30 sync from glibc.
63203
63204         .h files should stand alone, but we shouldn't include <sys/types.h>
63205         if we can get away with just <stddef.h>.
63206
63207         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63208         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63209         rather than <sys/types.h>, as we merely need size_t.
63210         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63211         to get size_t.
63212         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63213         Include <stdio.h>, to get FILE.
63214         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63215         memcasecmp.h has included <stddef.h> and all we need is size_t.
63216         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63217         our interface, instead of including <sys/types.h>
63218
63219 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63220
63221         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63222         now, as glibc mktime is buggy on non-glibc systems.
63223
63224 2003-06-03  Karl Berry  <karl@gnu.org>
63225
63226         * config/config.sub: update from prep.
63227
63228 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63229
63230         [from coreutils]
63231         Fix some minor time-related bugs with POSIX time arguments.
63232         Some valid time stamps were being rejected (notably -1, and
63233         time stamps before 1900 on 64-bit hosts).  And some invalid
63234         time stamps were being accepted, e.g. September 31.
63235
63236         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63237         that we can return (time_t) -1 successfully.
63238         * lib/posixtm.c: Likewise.
63239         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63240         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63241         (t): Remove static var.
63242         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63243         of static var.  All uses changed.
63244         (year): Do not reject years before 1900; they can occur with
63245         64-bit time_t.
63246         (posix_time_parse): Do not check for out-of-range components;
63247         that is now the caller's responsibility, since our checks were
63248         only approximations.
63249         (posixtime): Use mktime to check for out-of-range components,
63250         since it knows them exactly.
63251         If mktime returns (time_t) -1, check whether an error actually occurred
63252         by invoking localtime on -1.
63253         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63254         posixtime failures better.
63255         Improve the test data (in comments only).
63256
63257 2003-06-02  Karl Berry  <karl@gnu.org>
63258
63259         * config/mkinstalldirs (version): new variable.
63260         (--version): new option.
63261         (usage): improve message.
63262
63263 2003-05-30  Karl Berry  <karl@gnu.org>
63264
63265         * lib/mktime.c: update from libc.
63266
63267 2003-05-30  Bruno Haible  <bruno@clisp.org>
63268
63269         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63270         * config/config.rpath: Upgrade to gettext-0.12.1.
63271
63272 2003-05-30  Bruno Haible  <bruno@clisp.org>
63273
63274         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63275         * m4/nls.m4: New file, from gettext-0.12.1.
63276         * m4/po.m4: New file, from gettext-0.12.1.
63277         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63278
63279 2003-05-30  Bruno Haible  <bruno@clisp.org>
63280
63281         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63282         * lib/localcharset.h: Likewise.
63283         * lib/localcharset.c: Likewise.
63284
63285 2003-05-29  Karl Berry  <karl@gnu.org>
63286
63287         * config/config.rpath: update from gettext.
63288
63289 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63290
63291         Assume the headers required for C89 freestanding compilers.
63292         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63293         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63294         * m4/human.m4 (gl_HUMAN): Likewise.
63295         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63296         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63297         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63298         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63299         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63300         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63301
63302 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63303
63304         Assume the headers required for C89 freestanding compilers.
63305         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63306         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63307         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63308         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63309         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63310         define, since <limits.h> is guaranteed to do that.
63311         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63312         * lib/exclude.c: Include <stdbool.h> unconditionally.
63313         * lib/tempname.c: Include <stddef.h> unconditionally.
63314         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63315         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63316         <stddef.h> does that.
63317         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63318         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63319         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63320         needed.
63321         * lib/xstrtol.c: Likewise.
63322         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63323         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63324
63325         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63326         warnings on some platforms.
63327
63328         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63329         arbitrarily.
63330
63331 2003-05-26  Jim Meyering  <jim@meyering.net>
63332
63333         Merge in a change from coreutils:
63334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63335         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63336         that condition, rather than `-1' which is slightly misleading.
63337         Change the name of the cache variable to have the gl_ prefix.
63338         Prompted by a patch from Richard Dawe for DJGPP.
63339
63340 2003-05-24  Karl Berry  <karl@gnu.org>
63341
63342         * config/config.guess: update from prep.
63343
63344 2003-05-22  Karl Berry  <karl@gnu.org>
63345
63346         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63347
63348 2003-05-20  Karl Berry  <karl@gnu.org>
63349
63350         * config/config.guess: update from prep.
63351
63352 2003-05-18  Karl Berry  <karl@gnu.org>
63353
63354         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63355         might actually be set by the user.
63356
63357         * config/depcomp, install-sh, mdate-sh: update from automake.
63358
63359 2003-05-17  Bruno Haible  <bruno@clisp.org>
63360
63361         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63362         invalid expansion for AC_EGREP_CPP.
63363         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63364         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63365         Suggested by Akim Demaille <akim@epita.fr> in
63366         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
63367
63368 2003-05-12  Jim Meyering  <jim@meyering.net>
63369
63370         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
63371         the space-padded-by-default conversion specifiers, %e, %k, %l.
63372
63373 2003-05-12  Bruno Haible  <bruno@clisp.org>
63374
63375         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
63376         the string is longer than 4 KB.
63377
63378 2003-05-11  Karl Berry  <karl@gnu.org>
63379
63380         * config/config.{guess,sub}: update from prep.
63381
63382 2003-05-09  Bruno Haible  <bruno@clisp.org>
63383
63384         * modules/error: Add m4/strerror_r.m4 to file list.
63385
63386 2003-05-03  Bruno Haible  <bruno@clisp.org>
63387
63388         Upgrade to Unicode-4.0.
63389         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
63390         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
63391         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
63392         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
63393         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
63394         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
63395         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
63396         Change width of U+E0100..U+E01EF from 1 to 0.
63397
63398 2003-04-25  Jim Meyering  <jim@meyering.net>
63399
63400         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
63401         of type size_t, not int.
63402
63403 2003-04-25  Bruno Haible  <bruno@clisp.org>
63404
63405         * lib/copy-file.c: Include <stddef.h>, for size_t.
63406
63407 2003-04-21  Paul Eggert  <eggert@twinsun.com>
63408
63409         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
63410         code which expansion is under static control.  Patch imported from
63411         Akim Demaille's patch to Bison; see
63412         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
63413
63414 2003-04-14  Bruno Haible  <bruno@clisp.org>
63415
63416         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
63417
63418 2003-04-11  Jim Meyering  <jim@meyering.net>
63419
63420         Merge changes from Coreutils.
63421
63422         2003-03-22  Jim Meyering  <jim@meyering.net>
63423
63424         * lib/strftime.c (widen): Cast alloca return value to proper type.
63425
63426         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
63427
63428         From GNU libc.
63429         * lib/strftime.c (my_strftime): Handle very large width
63430         specifications for numeric values correctly.  Improve checks for
63431         overflow.
63432
63433         2003-01-19  Jim Meyering  <jim@meyering.net>
63434
63435         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
63436         definitions.
63437         (nl_get_alt_digit) [! defined my_strftime]: Define.
63438         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
63439         _nl_get_alt_digit and _nl_get_walt_digit.
63440
63441         * lib/strftime.c (my_strftime): Merge in locale-related changes from
63442         libc. These changes have no effect outside of _LIBC.
63443
63444 2003-04-10  Bruno Haible  <bruno@clisp.org>
63445
63446         * modules/findprog: New file.
63447         * MODULES.html.sh (func_all_modules): Add it.
63448
63449 2003-04-10  Bruno Haible  <bruno@clisp.org>
63450
63451         * m4/findprog.m4: New file.
63452         * m4/eaccess.m4: New file.
63453
63454 2003-04-10  Bruno Haible  <bruno@clisp.org>
63455
63456         * lib/findprog.h: New file, from GNU gettext.
63457         * lib/findprog.c: New file, from GNU gettext.
63458
63459 2003-04-05  Jim Meyering  <jim@meyering.net>
63460
63461         Merge changes from Coreutils.
63462
63463         * lib/exclude.h (PARAMS): Remove definition and uses.
63464         * lib/exclude.c: Remove uses of `PARAMS'.
63465
63466         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
63467         Add test-cases for DOS filenames. Declare program_name.
63468         (main): Set up program_name.  Patch by Rich Dawe.
63469
63470         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63471         error from mntctl.
63472         Use mntctl's return value to drive the entry-processing loop, since
63473         we can't rely on the value of the vmt_length member in the last
63474         entry.  On some systems doing so could result in exhausting
63475         virtual memory.  Based in part on a patch from Mike Jetzer.
63476
63477 2003-04-04  Bruno Haible  <bruno@clisp.org>
63478
63479         * modules/linebreak: New file.
63480         * MODULES.html.sh (func_all_modules): Add it.
63481
63482 2003-04-04  Bruno Haible  <bruno@clisp.org>
63483
63484         * m4/linebreak.m4: New file.
63485
63486 2003-04-04  Bruno Haible  <bruno@clisp.org>
63487
63488         * lib/linebreak.h: New file, from GNU gettext.
63489         * lib/linebreak.c: New file, from GNU gettext with slight
63490         modifications.
63491         * lib/lbrkprop.h: New file, from GNU gettext.
63492
63493 2003-04-03  Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/utf8-ucs4: New file.
63496         * modules/utf16-ucs4: New file.
63497         * modules/ucs4-utf8: New file.
63498         * modules/ucs4-utf16: New file.
63499         * MODULES.html.sh (func_all_modules): Add them.
63500
63501 2003-04-03  Bruno Haible  <bruno@clisp.org>
63502
63503         * m4/utf-ucs4.m4: New file.
63504         * m4/ucs4-utf.m4: New file.
63505
63506 2003-04-03  Bruno Haible  <bruno@clisp.org>
63507
63508         * lib/utf8-ucs4.h: New file, from GNU gettext.
63509         * lib/utf16-ucs4.h: New file, from GNU gettext.
63510         * lib/ucs4-utf8.h: New file, from GNU gettext.
63511         * lib/ucs4-utf16.h: New file, from GNU gettext.
63512
63513 2003-04-02  Bruno Haible  <bruno@clisp.org>
63514
63515         * modules/binary-io: New file.
63516         * MODULES.html.sh (func_all_modules): Add it.
63517
63518 2003-04-02  Bruno Haible  <bruno@clisp.org>
63519
63520         * lib/binary-io.h: New file, from GNU gettext.
63521
63522 2003-04-01  Bruno Haible  <bruno@clisp.org>
63523
63524         * modules/pathname: New file.
63525         * MODULES.html.sh (func_all_modules): Add it.
63526
63527 2003-04-01  Bruno Haible  <bruno@clisp.org>
63528
63529         * lib/pathname.h: New file, from GNU gettext.
63530         * lib/concatpath.c: New file, from GNU gettext.
63531
63532 2003-03-30  Bruno Haible  <bruno@clisp.org>
63533
63534         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
63535
63536 2003-03-30  Bruno Haible  <bruno@clisp.org>
63537
63538         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
63539         function chown() doesn't exist.
63540
63541 2003-03-28  Bruno Haible  <bruno@clisp.org>
63542
63543         * modules/copy-file: New file.
63544         * MODULES.html.sh (func_all_modules): Add it.
63545
63546 2003-03-28  Bruno Haible  <bruno@clisp.org>
63547
63548         * m4/copy-file.m4: New file.
63549
63550 2003-03-28  Bruno Haible  <bruno@clisp.org>
63551
63552         * lib/copy-file.h: New file, from GNU gettext.
63553         * lib/copy-file.c: New file, from GNU gettext.
63554
63555 2003-03-18  Jim Meyering  <jim@meyering.net>
63556
63557         * lib/quote.c (quote_n): Fix typo in comment.
63558
63559 2003-03-18  Bruno Haible  <bruno@clisp.org>
63560
63561         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
63562         checking.
63563         * m4/onceonly_2_57.m4: Likewise.
63564
63565 2003-03-17  Bruno Haible  <bruno@clisp.org>
63566
63567         * m4/onceonly.m4: Require autoconf 2.54 or newer.
63568         (m4_quote): Remove macro.
63569         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
63570
63571 2003-03-14  Jim Meyering  <jim@meyering.net>
63572
63573         Merge changes from Coreutils.
63574         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
63575         to be const, in order to avoid warnings.
63576         (obstack_room): Likewise.
63577         (obstack_empty_p): Likewise.
63578
63579 2003-03-14  Bruno Haible  <bruno@clisp.org>
63580
63581         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
63582         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
63583
63584 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63585
63586         Merge changes from Bison.
63587         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
63588         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
63589         when compiling Bison 1.875's `bitset bset = obstack_alloc
63590         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
63591         * lib/hash.c: Include <stdbool.h> unconditionally.
63592
63593 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63594
63595         * m4/onceonly.m4 (m4_quote): New macro.
63596         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
63597         Quote AC_FOREACH variable-expansions properly.
63598
63599 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63600
63601         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
63602
63603 2003-03-09  Paul Eggert  <eggert@twinsun.com>
63604
63605         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
63606         Reported by Bruce Becker; see:
63607         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
63608
63609 2003-03-03  Paul Eggert  <eggert@twinsun.com>
63610             Bruno Haible  <bruno@clisp.org>
63611
63612         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
63613         Reported by John Hughes, see
63614         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
63615
63616 2003-02-20  Bruno Haible  <bruno@clisp.org>
63617
63618         * MODULES.html.sh (func_all_modules): Add poll.
63619
63620 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63621
63622         * modules/poll: New file.
63623
63624 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63625
63626         * lib/poll_.h: New file.
63627         * lib/poll.c: New file.
63628
63629 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63630
63631         * m4/poll.m4: New file.
63632
63633 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63634
63635         * modules/mathl: New file.
63636
63637 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63638
63639         * lib/mathl.h: New file.
63640         * lib/acosl.c: New file.
63641         * lib/asinl.c: New file.
63642         * lib/atanl.c: New file.
63643         * lib/ceill.c: New file.
63644         * lib/cosl.c: New file.
63645         * lib/expl.c: New file.
63646         * lib/floorl.c: New file.
63647         * lib/frexpl.c: New file.
63648         * lib/ldexpl.c: New file.
63649         * lib/logl.c: New file.
63650         * lib/sincosl.c: New file.
63651         * lib/sinl.c: New file.
63652         * lib/sqrtl.c: New file.
63653         * lib/tanl.c: New file.
63654         * lib/trigl.c: New file.
63655         * lib/trigl.h: New file.
63656
63657 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63658
63659         * m4/mathl.m4: New file.
63660
63661 2003-02-18  Bruno Haible  <bruno@clisp.org>
63662
63663         * MODULES.html.sh (func_all_modules): Add mathl.
63664
63665 2003-02-17  Bruno Haible  <bruno@clisp.org>
63666
63667         * modules/mkdtemp: New module.
63668         * MODULES.html.sh (func_all_modules): Add it.
63669
63670 2003-02-17  Bruno Haible  <bruno@clisp.org>
63671
63672         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
63673
63674 2003-02-17  Bruno Haible  <bruno@clisp.org>
63675
63676         * lib/mkdtemp.h: New file, from GNU gettext.
63677         * lib/mkdtemp.c: New file, from GNU gettext.
63678
63679 2003-02-02  Jim Meyering  <jim@meyering.net>
63680
63681         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
63682         e.g. glibc-2.2.93.
63683
63684 2003-01-31  Bruno Haible  <bruno@clisp.org>
63685
63686         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
63687         'rpl_rename'.
63688         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
63689         'rpl_strnlen'.
63690         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
63691         'rpl_strtod'.
63692         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
63693         'rpl_utime'.
63694
63695 2003-01-31  Bruno Haible  <bruno@clisp.org>
63696
63697         * lib/rename.c: #undef rename before defining rpl_rename.
63698         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
63699
63700 2003-01-30  Bruno Haible  <bruno@clisp.org>
63701
63702         * modules/vasnprintf, modules/vasprintf: New modules.
63703         * MODULES.html.sh (func_all_modules): Add them.
63704
63705 2003-01-30  Bruno Haible  <bruno@clisp.org>
63706
63707         * m4/signed.m4: New file, from GNU gettext.
63708         * m4/longdouble.m4: New file, from GNU gettext.
63709         * m4/wchar_t.m4: New file, from GNU gettext.
63710         * m4/wint_t.m4: New file, from GNU gettext.
63711         * m4/vasnprintf.m4: New file.
63712         * m4/vasprintf.m4: New file.
63713
63714 2003-01-30  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/printf-args.h: New file, from GNU gettext.
63717         * lib/printf-args.c: New file, from GNU gettext.
63718         * lib/printf-parse.h: New file, from GNU gettext.
63719         * lib/printf-parse.c: New file, from GNU gettext.
63720         * lib/vasnprintf.h: New file, from GNU gettext.
63721         * lib/vasnprintf.c: New file, from GNU gettext.
63722         * lib/asnprintf.c: New file, from GNU gettext.
63723         * lib/vasprintf.h: New file, from GNU gettext with modifications.
63724         * lib/vasprintf.c: New file, from GNU gettext.
63725         * lib/asprintf.c: New file, from GNU gettext.
63726
63727 2003-01-29  Bruno Haible  <bruno@clisp.org>
63728
63729         * modules/stpncpy: New module.
63730         * MODULES.html.sh (func_all_modules): Add it.
63731
63732 2003-01-29  Bruno Haible  <bruno@clisp.org>
63733
63734         * m4/stpncpy.m4: New file.
63735
63736 2003-01-29  Bruno Haible  <bruno@clisp.org>
63737
63738         * lib/stpncpy.h: New file, from GNU gettext with modifications.
63739         * lib/stpncpy.c: New file, from GNU gettext with modifications.
63740
63741 2003-01-28  Bruno Haible  <bruno@clisp.org>
63742
63743         * modules/c-ctype: New module.
63744         * MODULES.html.sh (func_all_modules): Add it.
63745
63746 2003-01-28  Bruno Haible  <bruno@clisp.org>
63747
63748         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
63749         Paul Eggert.
63750         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
63751         Paul Eggert.
63752
63753 2003-01-27  Bruno Haible  <bruno@clisp.org>
63754
63755         * modules/xsetenv: New module.
63756         * MODULES.html.sh (func_all_modules): Add it.
63757
63758 2003-01-27  Bruno Haible  <bruno@clisp.org>
63759
63760         * lib/xsetenv.h: New file, from GNU gettext.
63761         * lib/xsetenv.c: New file, from GNU gettext.
63762
63763 2003-01-23  Jim Meyering  <jim@meyering.net>
63764
63765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
63766         from working on systems without dirfd (at least Irix and OSF1/Tru64).
63767
63768 2003-01-23  Bruno Haible  <bruno@clisp.org>
63769
63770         * modules/minmax: New module.
63771         * MODULES.html.sh (func_all_modules): Add it.
63772
63773 2003-01-23  Bruno Haible  <bruno@clisp.org>
63774
63775         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
63776         Eggert.
63777
63778 2003-01-22  Bruno Haible  <bruno@clisp.org>
63779
63780         * modules/exit: New module.
63781         * MODULES.html.sh (func_all_modules): Add it.
63782
63783 2003-01-22  Bruno Haible  <bruno@clisp.org>
63784
63785         * lib/exit.h: New file, from GNU gettext.
63786
63787 2003-01-19  Bruno Haible  <bruno@clisp.org>
63788
63789         * gnulib-tool: Recognize option --extract-maintainer.
63790         (func_get_maintainer): New function.
63791         * modules/*: Add Maintainer entry.
63792
63793 2003-01-16  Jim Meyering  <jim@meyering.net>
63794
63795         * m4/regex.m4: The `regex' struct is both input and output.
63796         Initialize it before each use.  Patch by Tim Waugh.
63797
63798 2003-01-16  Bruno Haible  <bruno@clisp.org>
63799
63800         * MODULES.html.sh: Add a table of contents. Add the module name as
63801         leftmost column. Add hyperlinks.
63802
63803 2003-01-15  Bruno Haible  <bruno@clisp.org>
63804
63805         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
63806
63807 2003-01-15  Bruno Haible  <bruno@clisp.org>
63808
63809         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
63810         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
63811         suffix.
63812
63813 2003-01-15  Bruno Haible  <bruno@clisp.org>
63814
63815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
63816
63817 2003-01-15  Bruno Haible  <bruno@clisp.org>
63818
63819         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
63820         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
63821
63822 2003-01-14  Jim Meyering  <jim@meyering.net>
63823
63824         * lib/same.c (same_name): Tweak a comment.
63825
63826 2003-01-14  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
63829         when a string comparison is sufficient.
63830
63831 2003-01-14  Bruno Haible  <bruno@clisp.org>
63832
63833         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
63834         'unsigned int'.
63835
63836 2003-01-14  Bruno Haible  <bruno@clisp.org>
63837
63838         * lib/hash-pjw.c: Add comment about low quality of this function.
63839
63840 2003-01-13  Bruno Haible  <bruno@clisp.org>
63841
63842         * modules/stpcpy: Distribute lib/stpcpy.h.
63843         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
63844
63845 2003-01-13  Bruno Haible  <bruno@clisp.org>
63846
63847         * modules/*: Add a description.
63848         * modules/strpbrk: Fix Makefile.am snippet.
63849         * modules/strtoimax: Fix dependencies.
63850         * modules/strtoumax: Likewise.
63851
63852 2003-01-13  Bruno Haible  <bruno@clisp.org>
63853
63854         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
63855         * modules/alloca (Makefile.am): All object files depend on alloca.h.
63856         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
63857
63858 2003-01-13  Bruno Haible  <bruno@clisp.org>
63859
63860         * gnulib-tool (func_create_testdir): Store config/* files in the main
63861         directory.
63862         * config.rpath: Move to ...
63863         * config/config.rpath: ... here.
63864         * modules/gettext: Contains config/config.rpath, not config.rpath.
63865         * modules/iconv: Likewise.
63866
63867 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63868
63869         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63870         to avoid collisions with libcurses and libreadline.
63871
63872         * m4/getstr.m4: Remove.
63873         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
63874
63875 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63876
63877         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63878         to avoid collisions with libcurses and libreadline.
63879
63880         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
63881         * lib/getstr.h, getstr.c: Remove.
63882         * lib/getline.c: Include "getline.h", to check interface.
63883         Move body of old getstr.c here: this defines MIN_CHUNK and
63884         declares getdelim2, which is renamed from getstr.
63885         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
63886
63887         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
63888         All uses changed.
63889         * lib/linebuffer.h: Likewise.
63890         (readline): Remove backward-compatibility macro.
63891
63892 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63893
63894         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63895         to avoid collisions with libcurses and libreadline.
63896         * getstr: Remove.
63897         * MODULES.html.sh: Remove getstr.
63898         * modules/getline: Depend on unlocked-io, not getstr.
63899
63900 2003-01-12  Jim Meyering  <jim@meyering.net>
63901
63902         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
63903
63904 2003-01-10  Bruno Haible  <bruno@clisp.org>
63905
63906         * modules/alloca: Change Makefile.am requirements. Simplify Include
63907         requirements. Add lib/alloca_.h to file list.
63908
63909 2003-01-10  Bruno Haible  <bruno@clisp.org>
63910
63911         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
63912
63913 2003-01-10  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/alloca_.h: New file.
63916         * lib/getdate.y: Unconditionally include alloca.h.
63917         * lib/makepath.c: Likewise.
63918         * lib/setenv.c: Likewise.
63919         * lib/userspec.c: Likewise.
63920
63921 2003-01-09  Karl Berry  <karl@gnu.org>
63922
63923         * MODULES.html.sh: include `dirname $0` in PATH, to find
63924         gnulib-tool.
63925
63926 2003-01-09  Bruno Haible  <bruno@clisp.org>
63927
63928         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63929         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63930
63931 2003-01-09  Bruno Haible  <bruno@clisp.org>
63932
63933         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63934
63935 2003-01-09  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/stdbool.h.in: New file.
63938
63939 2003-01-09  Bruno Haible  <bruno@clisp.org>
63940
63941         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63942         * MODULES.html.sh: Likewise.
63943
63944 2003-01-08  Jim Meyering  <jim@meyering.net>
63945
63946         * lib/full-write.c: Undefine and define-away `const' after inclusion
63947         of errno.h, not before.  Suggestion from Bruno Haible.
63948
63949 2003-01-08  Bruno Haible  <bruno@clisp.org>
63950
63951         * modules/full-read: Depend on full-write.
63952
63953 2003-01-08  Bruno Haible  <bruno@clisp.org>
63954
63955         * lib/safe-read.c: Include specification header first, to ensure its
63956         selfcontainedness.
63957         * lib/full-write.c: Likewise.
63958
63959 2003-01-07  Jim Meyering  <jim@meyering.net>
63960
63961         * lib/full-write.c: Rework so that it may serve to define full_read,
63962         too.
63963         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
63964
63965 2003-01-07  Bruno Haible  <bruno@clisp.org>
63966
63967         * lib/strtoimax.c: Include <stdint.h> as an alternative to
63968         <inttypes.h>.
63969         * lib/xstrtol.h: Likewise.
63970         * lib/xstrtoimax.c: Likewise.
63971         * lib/xstrtoumax.c: Likewise.
63972         * lib/human.h: Likewise.
63973
63974         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
63975         on systems that have <inttypes.h> but not <stdint.h>.
63976
63977 2003-01-07  Bruno Haible  <bruno@clisp.org>
63978
63979         * MODULES.html.sh: Add copyright notice.
63980         (missed_files): Omit CVS directory entries.
63981         (func_module): Make it work with sed-3.02.
63982         * MODULES.txt: Remove file.
63983
63984 2003-01-06  Jim Meyering  <jim@meyering.net>
63985
63986         * lib/version-etc.c: Update year in translatable copyright string.
63987
63988 2003-01-03  Karl Berry  <karl@gnu.org>
63989
63990         * config/config.{guess,sub}: update from prep.
63991
63992 2003-01-02  Karl Berry  <karl@gnu.org>
63993
63994         * doc/COPYING.DOC: belatedly updated to 1.2.
63995
63996 2003-01-01  Karl Berry  <karl@gnu.org>
63997
63998         * gnulib-tool (func_verify_module): report module name $module in
63999         error message, not $1.
64000         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64001         be created, only if it doesn't exist.
64002         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64003
64004 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64005
64006         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64007
64008 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64009
64010         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64011         memcmp if strcoll doesn't work.
64012
64013 2002-12-31  Bruno Haible  <bruno@clisp.org>
64014
64015         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64016         nonempty.
64017
64018 2002-12-31  Bruno Haible  <bruno@clisp.org>
64019
64020         * lib/memcoll.c (STRCOLL): New macro.
64021         (memcoll): Use it.
64022
64023 2002-12-31  Bruno Haible  <bruno@clisp.org>
64024
64025         * lib/localcharset.h: New file.
64026         * lib/localcharset.c: Include it.
64027         * lib/unicodeio.c: Likewise.
64028
64029 2002-12-31  Bruno Haible  <bruno@clisp.org>
64030
64031         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64032         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64033
64034 2002-12-31  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/getline.h: Include <stddef.h>, for size_t.
64037
64038         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64039         * lib/unicodeio.c: Don't include <stddef.h>.
64040
64041 2002-12-31  Bruno Haible  <bruno@clisp.org>
64042
64043         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64044         HAVE_TM_ZONE.
64045
64046 2002-12-24  Karl Berry  <karl@gnu.org>
64047
64048         * config/config.guess: update from prep.
64049
64050 2002-12-24  Bruno Haible  <bruno@clisp.org>
64051
64052         General infrasructure.
64053         * m4/README: Rewritten.
64054         * m4/onceonly.m4: New file.
64055         * m4/onceonly_2_57.m4: New file.
64056
64057         Module atexit.
64058         * m4/atexit.m4: New file.
64059
64060         Module strtod.
64061         * m4/strtod.m4: New file.
64062
64063         Module strtol.
64064         * m4/strtol.m4: New file.
64065
64066         Module strtoul.
64067         * m4/strtoul.m4: New file.
64068
64069         Module memchr.
64070         * m4/memchr.m4: New file.
64071
64072         Module memcmp.
64073         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64074         (jm_FUNC_MEMCMP): Invoke it.
64075
64076         Module memcpy.
64077         * m4/memcpy.m4: New file.
64078
64079         Module memmove.
64080         * m4/memmove.m4: New file.
64081
64082         Module memset.
64083         * m4/memset.m4: New file.
64084
64085         Module strcspn.
64086         * m4/strcspn.m4: New file.
64087
64088         Module strpbrk.
64089         * m4/strpbrk.m4: New file.
64090
64091         Module strstr.
64092         * m4/strstr.m4: New file.
64093
64094         Module strerror.
64095         * m4/strerror.m4: New file.
64096
64097         Module mktime.
64098         * m4/mktime.m4: Renamed from jm-mktime.m4.
64099         (gl_PREREQ_MKTIME): New macro.
64100         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64101
64102         Module malloc.
64103         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64104         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64105         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64106
64107         Module realloc.
64108         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64109         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64110         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64111
64112         Module strftime.
64113         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64114         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64115         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64116         gl_TM_GMTOFF.
64117         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64118
64119         Module xalloc.
64120         * m4/xalloc.m4: New file.
64121
64122         Module alloca.
64123         * m4/alloca.m4: New file.
64124
64125         Module putenv.
64126         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64127         (jm_FUNC_PUTENV): Invoke it.
64128
64129         Module setenv.
64130         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64131         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64132         when invoked twice.
64133         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64134         gt_FUNC_SETENV.
64135
64136         Module memrchr.
64137         * m4/memrchr.m4: New file.
64138
64139         Module stpcpy.
64140         * m4/stpcpy.m4: New file.
64141
64142         Module strcase.
64143         * m4/strcase.m4: New file.
64144
64145         Module strdup.
64146         * m4/strdup.m4: New file.
64147
64148         Module strnlen.
64149         * m4/strnlen.m4: New file.
64150
64151         Module strndup.
64152         * m4/strndup.m4: New file.
64153
64154         Module xstrtod.
64155         * m4/xstrtod.m4: New file.
64156
64157         Module xstrtol.
64158         * m4/xstrtol.m4: New file.
64159
64160         Module getdate.
64161         * m4/getdate.m4: New file.
64162
64163         Module unlocked-io.
64164         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64165         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64166         * m4/jm-glibc-io.m4n: Remove file.
64167
64168         Module long-options.
64169         * m4/long-options.m4: New file.
64170
64171         Module md5.
64172         * m4/md5.m4: New file.
64173
64174         Module sha.
64175         * m4/sha.m4: New file.
64176
64177         Module getstr.
64178         * m4/getstr.m4: New file.
64179
64180         Module getline.
64181         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64182         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64183         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64184         simply getline. Infoke gl_PREREQ_GETLINE.
64185
64186         Module obstack.
64187         * m4/obstack.m4: New file.
64188
64189         Module hash.
64190         * m4/hash.m4: New file.
64191
64192         Module readtokens.
64193         * m4/readtokens.m4: New file.
64194
64195         Module strverscmp.
64196         * m4/strverscmp.m4: New file.
64197
64198         Module stdbool.
64199         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64200         OSF/1.
64201
64202         Module strtoll.
64203         * m4/strtoll.m4: New file.
64204
64205         Module strtoull.
64206         * m4/strtoull.m4: New file.
64207
64208         Module strtoimax.
64209         * m4/strtoimax.m4: New file.
64210
64211         Module strtoumax.
64212         * m4/strtoumax.m4: New file.
64213
64214         Module xstrtoimax.
64215         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64216         jm_AC_PREREQ_XSTRTOIMAX.
64217         Moved the strtol prerequisites to strtol.m4.
64218         Moved the strtoll prerequisites to strtoll.m4.
64219         Moved the strtoimax prerequisites to strtoimax.m4.
64220
64221         Module xstrtoumax.
64222         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64223         jm_AC_PREREQ_XSTRTOUMAX.
64224         Moved the strtoul prerequisites to strtoul.m4.
64225         Moved the strtoull prerequisites to strtoull.m4.
64226         Moved the strtoumax prerequisites to strtoumax.m4.
64227
64228         Module chown.
64229         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64230         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64231
64232         Module dup2.
64233         * m4/dup2.m4: New file.
64234
64235         Module ftruncate.
64236         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64237         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64238
64239         Module getgroups.
64240         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64241         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64242
64243         Module gettimeofday.
64244         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64245         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64246         gl_PREREQ_GETTIMEOFDAY.
64247
64248         Module mkdir.
64249         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64250         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64251
64252         Module mkstemp.
64253         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64254         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64255         jm_AC_TYPE_UINTMAX_T.
64256         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64257
64258         Module stat.
64259         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64260         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64261
64262         Module lstat.
64263         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64264         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64265
64266         Module timespec.
64267         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64268         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64269         * m4/st_mtim.m4: Indentation.
64270
64271         Module nanosleep.
64272         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64273         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64274         gl_PREREQ_NANOSLEEP.
64275
64276         Module regex.
64277         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64278         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64279         (gl_REGEX): New macro.
64280
64281         Module rename.
64282         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64283         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64284
64285         Module rmdir.
64286         * m4/rmdir.m4: New file.
64287
64288         Module utime.
64289         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64290         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64291         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64292
64293         Module dirname.
64294         * m4/dirname.m4: New file.
64295
64296         Module getopt.
64297         * m4/getopt.m4: New file.
64298
64299         Module unistd-safer.
64300         * m4/unistd-safer.m4: New file.
64301
64302         Module fnmatch.
64303         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64304         declaration.
64305         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64306         (gl_FUNC_FNMATCH_POSIX): New macro.
64307         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64308         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64309         simply fnmatch.
64310
64311         Module exclude.
64312         * m4/exclude.m4: New file.
64313
64314         Module human.
64315         * m4/human.m4: New file.
64316
64317         Module acl.
64318         * m4/acl.m4: Nop.
64319
64320         Module backupfile.
64321         * m4/backupfile.m4: New file.
64322         * m4/d-ino.m4: Indentation.
64323
64324         Module fsusage.
64325         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64326         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64327         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64328
64329         Module dirfd.
64330         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64331         requirements.
64332
64333         Module euidaccess.
64334         * m4/euidaccess.m4: New file.
64335
64336         Module file-type.
64337         * m4/file-type.m4: New file.
64338
64339         Module fileblocks.
64340         * m4/fileblocks.m4: New file.
64341
64342         Module filemode.
64343         * m4/filemode.m4: New file.
64344
64345         Module isdir.
64346         * m4/isdir.m4: New file.
64347
64348         Module lchown.
64349         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64350         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64351
64352         Module makepath.
64353         * m4/makepath.m4: New file.
64354
64355         Module modechange.
64356         * m4/modechange.m4: New file.
64357
64358         Module mountlist.
64359         * m4/mountlist.m4: New file.
64360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64361         Indentation.
64362
64363         Module path-concat.
64364         * m4/path-concat.m4: New file.
64365
64366         Module pathmax.
64367         * m4/pathmax.m4: New file.
64368
64369         Module same.
64370         * m4/same.m4: New file.
64371
64372         Module save-cwd.
64373         * m4/save-cwd.m4: New file.
64374
64375         Module savedir.
64376         * m4/savedir.m4: New file.
64377
64378         Module xgetcwd.
64379         * m4/xgetcwd.m4: New file.
64380         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
64381
64382         Module xreadlink.
64383         * m4/xreadlink.m4: New file.
64384
64385         Module safe-read.
64386         * m4/safe-read.m4: New file.
64387
64388         Module safe-write.
64389         * m4/safe-write.m4: New file.
64390
64391         Module closeout.
64392         * m4/closeout.m4: New file.
64393
64394         Module stdio-safer.
64395         * m4/stdio-safer.m4: New file.
64396
64397         Module getpass.
64398         * m4/getpass.m4: New file.
64399
64400         Module getugroups.
64401         * m4/getugroups.m4: New file.
64402
64403         Module group-member.
64404         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
64405         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
64406
64407         Module idcache.
64408         * m4/idcache.m4: New file.
64409
64410         Module userspec.
64411         * m4/userspec.m4: New file.
64412
64413         Module gettime.
64414         * m4/clock_time.m4: New file.
64415         * m4/gettime.m4: New file.
64416
64417         Module settime.
64418         * m4/settime.m4: New file.
64419
64420         Module posixtm.
64421         * m4/posixtm.m4: New file.
64422
64423         Module gethostname.
64424         * m4/gethostname.m4: New file.
64425
64426         Module canon-host.
64427         * m4/canon-host.m4: New file.
64428
64429         Module gettext.
64430         * m4/codeset.m4: New file, from gettext-0.11.5.
64431         * m4/gettext.m4: New file, from gettext-0.11.5.
64432         * m4/glibc21.m4: New file, from gettext-0.11.5.
64433         * m4/iconv.m4: New file, from gettext-0.11.5.
64434         * m4/intdiv0.m4: New file, from gettext-0.11.5.
64435         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
64436         * m4/inttypes.m4: New file, from gettext-0.11.5.
64437         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
64438         * m4/isc-posix.m4: New file, from gettext-0.11.5.
64439         * m4/lcmessage.m4: New file, from gettext-0.11.5.
64440         * m4/lib-ld.m4: New file, from gettext-0.11.5.
64441         * m4/lib-link.m4: New file, from gettext-0.11.5.
64442         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
64443         * m4/progtest.m4: New file, from gettext-0.11.5.
64444         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
64445         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
64446         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
64447
64448         Module localcharset.
64449         * m4/localcharset.m4: New file.
64450
64451         Module hard-locale.
64452         * m4/hard-locale.m4: New file.
64453
64454         Module mbswidth.
64455         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
64456         onceonly macros.
64457         * m4/mbrtowc.m4: Add comment.
64458
64459         Module memcasecmp.
64460         * m4/memcasecmp.m4: New file.
64461
64462         Module memcoll.
64463         * m4/memcoll.m4: New file.
64464
64465         Module unicodeio.
64466         * m4/unicodeio.m4: New file.
64467
64468         Module rpmatch.
64469         * m4/rpmatch.m4: New file.
64470
64471         Module yesno.
64472         * m4/yesno.m4: New file.
64473
64474         Module exitfail.
64475         * m4/exitfail.m4: New file.
64476
64477         Module c-stack.
64478         * m4/c-stack.m4 (gl_C_STACK): New macro.
64479         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
64480
64481         Module error.
64482         * m4/error.m4 (gl_ERROR): New macro.
64483         (jm_PREREQ_ERROR): Use onceonly macros.
64484
64485         Module fatal.
64486         * m4/fatal.m4: New file.
64487
64488         Module getloadavg.
64489         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
64490         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
64491
64492         Module getpagesize.
64493         * m4/getpagesize.m4: New file.
64494
64495         Module getusershell.
64496         * m4/getusershell.m4: New file.
64497
64498         Module physmem.
64499         * m4/physmem.m4: New file.
64500
64501         Module posixver.
64502         * m4/posixver.m4: New file.
64503
64504         Module quotearg.
64505         * m4/quotearg.m4: New file.
64506
64507         Module quote.
64508         * m4/quote.m4: New file.
64509
64510         Module readutmp.
64511         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
64512
64513         Module sig2str.
64514         * m4/sig2str.m4: New file.
64515
64516         Other.
64517         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
64518         ulonglong.m4.
64519         * m4/intmax_t.m4: New file.
64520         * m4/d-type.m4: Indentation.
64521         * m4/jm-macros.m4: Update.
64522         * m4/prereq.m4 (jm_PREREQ): Update.
64523         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
64524         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
64525         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
64526         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
64527         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
64528         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
64529         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
64530         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
64531         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
64532         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
64533         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
64534         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
64535         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
64536         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
64537         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
64538         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
64539         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
64540         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
64541         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
64542
64543 2002-12-24  Bruno Haible  <bruno@clisp.org>
64544
64545         * MODULES.txt: Update according to m4/ changes.
64546
64547         Module gettext.
64548         * config.rpath: New file, from gettext-0.11.5.
64549
64550         * modules/*: New module descriptions.
64551         * gnulib-tool: New file.
64552         * MODULES.html.sh: New file.
64553
64554 2002-12-21  Karl Berry  <karl@gnu.org>
64555
64556         * doc/fdl.texi: update to version 1.2.
64557
64558 2002-12-19  Karl Berry  <karl@gnu.org>
64559
64560         * config/config.guess: update from prep.
64561
64562 2002-12-18  Bruno Haible  <bruno@clisp.org>
64563
64564         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
64565         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
64566
64567 2002-12-17  Bruno Haible  <bruno@clisp.org>
64568
64569         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
64570         stdlib.h, string.h.
64571
64572 2002-12-17  Bruno Haible  <bruno@clisp.org>
64573
64574         * lib/canon-host.c (strdup): Remove unused declaration.
64575
64576         * lib/fsusage.c: Include full_read.h.
64577         (get_fs_usage): Use full_read instead of safe_read.
64578
64579         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
64580
64581 2002-12-12  Karl Berry  <karl@gnu.org>
64582
64583         * config/config.guess: update from prep.
64584
64585 2002-12-11  Bruno Haible  <bruno@clisp.org>
64586
64587         * m4/setenv.m4: New file, from gettext-0.11.5.
64588
64589 2002-12-11  Bruno Haible  <bruno@clisp.org>
64590
64591         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
64592         not unsetenv().
64593         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
64594         modifications:
64595
64596         2002-12-11  Bruno Haible  <bruno@clisp.org>
64597
64598                 * setenv.c (alloca): Fall back to malloc.
64599                 (freea): New macro.
64600                 (setenv): Use freea() to free memory allocated with alloca().
64601
64602         2002-11-13  Bruno Haible  <bruno@clisp.org>
64603
64604                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
64605                 function declarations.
64606                 * unsetenv.c (unsetenv): Likewise.
64607
64608         2002-03-04  Bruno Haible  <bruno@clisp.org>
64609
64610                 Portability to AIX 4.3.3.
64611                 * unsetenv.c: New file, extracted from setenv.c.
64612                 * setenv.c: Move the unsetenv() function to unsetenv.c.
64613
64614         2001-12-20  Bruno Haible  <bruno@clisp.org>
64615
64616                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
64617                 use malloc instead. For SunOS 4.
64618
64619         2001-12-11  Bruno Haible  <bruno@clisp.org>
64620
64621                 * setenv.c: Declare alloca.
64622                 (compar_fn_t): New typedef.
64623                 (KNOWN_VALUE, STORE_VALUE): Use it.
64624
64625         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
64626         setenv.h.
64627
64628 2002-12-10  Paul Eggert  <eggert@twinsun.com>
64629
64630         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
64631         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
64632         Choose values that are less likely to collide with system fnmatch
64633         options.
64634         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
64635         defined (e.g., a pure POSIX system).
64636         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
64637         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
64638
64639 2002-12-06  Paul Eggert  <eggert@twinsun.com>
64640
64641         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
64642         a pain in practice to deal with generated m4 files.  This change
64643         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
64644
64645         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
64646         and jm-glibc-io.m4, as they are no longer a special case.
64647         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
64648         kludge and the auto-generation stuff.  Check only whether the
64649         functions are declared, not whether they exist, since older hosts
64650         that don't declare the functions can't use the optimization anyway.
64651
64652 2002-12-06  Jim Meyering  <jim@meyering.net>
64653
64654         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
64655
64656         Merge in changes from libc's misc/error.c, in preparation
64657         for the merge of gnulib's changes back into libc.
64658
64659         * lib/error.c (_): Define only if not already defined.
64660         Move definition to follow all #include directives.
64661         Include unlocked-io.h only if !_LIBC.
64662         [_LIBC]: Include <libio/libioP.h>.
64663         [USE_IN_LIBIO]: Include <libio/iolibio.h>
64664         (fflush): Tweak definition to use INTUSE.
64665         (putc): Define.
64666
64667 2002-12-05  Paul Eggert  <eggert@twinsun.com>
64668
64669         * lib/alloca.c [defined emacs]: Include "lisp.h".
64670         (xalloc_die) [defined emacs]: New macro.
64671         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
64672         [! defined emacs]: Include <xalloc.h>.
64673         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
64674         (pointer): Typedef to POINTER_TYPE *.
64675         (malloc): Remove decl; we now always use xmalloc.
64676         (alloca): Use old-style definition, since Emacs needs this.
64677         Check for arithmetic overflow when computing combined size.
64678
64679 2002-12-04  Paul Eggert  <eggert@twinsun.com>
64680
64681         Do not generate unlocked-io.h automatically, since it's easier to
64682         maintain it by hand.
64683
64684         * lib/unlocked-io.h: New file, from GNU diffutils,
64685         but with proper copyright notice and attribution.
64686         * lib/gen-uio: Remove.
64687         * lib/Makefile.am: Add copyright notice.
64688         (libfetish_a_SOURCES): Add unlocked-io.h.
64689         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
64690         (DISTCLEANFILES, io_functions): Remove macros.
64691         (EXTRA_DIST): Remove gen_uio.
64692         (unlocked-io.h): Remove rule.
64693
64694 2002-12-04  Jim Meyering  <jim@meyering.net>
64695
64696         Reflect the fact that stat.c and lstat.c are no longer generated.
64697         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
64698         (DISTCLEANFILES): Likewise.
64699         (EXTRA_DIST): Likewise.
64700         (all_local): Don't depend on stat.c or lstat.c.
64701         (stat.c, lstat.c): Remove rules.
64702         (EXTRA_DIST): Remove xstat.in.
64703
64704         * lib/xstat.in: Remove file.  Contents moved into stat.c.
64705         * lib/stat.c: New file.  Contents mostly from xstat.in.
64706         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
64707         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
64708
64709         * lib/safe-read.c: Rework so that it may serve to define safe_write,
64710         too.
64711         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
64712
64713 2002-12-03  Jim Meyering  <jim@meyering.net>
64714
64715         * lib/safe-read.c, safe-write.c: Change variable names and comments,
64716         but not semantics, to minimize the differences between these two files.
64717         (safe_read): Change comment to mention SAFE_READ_ERROR.
64718
64719         * lib/safe-read.c (IS_EINTR): Define.
64720         (safe_read): Use IS_EINTR in place of in-function cpp directives.
64721
64722 2002-12-02  Jim Meyering  <jim@meyering.net>
64723
64724         * lib/safe-read.c (EINTR): Define.
64725         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64726         (INT_MAX): Provide fallback.
64727         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
64728
64729         * lib/safe-read.h (SAFE_READ_ERROR): Define.
64730
64731 2002-12-02  Bruno Haible  <bruno@clisp.org>
64732
64733         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
64734         Define, taken from safe-read.c.
64735         (INT_MAX): Provide fallback.
64736         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
64737         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
64738
64739         * lib/safe-read.c (EINTR): Remove definition.
64740         (safe_read): Don't use EINTR if it is absent.
64741
64742 2002-12-01  Jim Meyering  <jim@meyering.net>
64743
64744         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
64745         zero.
64746         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
64747
64748 2002-11-27  Paul Eggert  <eggert@twinsun.com>
64749
64750         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
64751         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
64752         with `if (! (value < limit)) abort ();', for readability.
64753
64754 2002-11-26  Karl Berry  <karl@gnu.org>
64755
64756         * lib/strdup.c: copy from libc again, with jim's ok.
64757         * lib/.cppi-disable: re-add strdup.c
64758
64759 2002-11-25  Karl Berry  <karl@gnu.org>
64760
64761         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
64762         instead of "strtol.c".
64763
64764 2002-11-25  Karl Berry  <karl@gnu.org>
64765
64766         * config/install-sh: update from automake for variable quoting, $0 in
64767         error msgs, etc.
64768
64769         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
64770         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
64771         entry.
64772
64773 2002-11-25  Jim Meyering  <jim@meyering.net>
64774
64775         * lib/mktime.c: Sync from libc, now that it has the latest fix.
64776
64777 2002-11-24  Karl Berry  <karl@gnu.org>
64778
64779         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
64780         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
64781
64782 2002-11-24  Jim Meyering  <jim@meyering.net>
64783
64784         Update from coreutils:
64785
64786         * lib/mktime.c: Merge in changes from libc.
64787
64788         Avoid a link-time failure on some Linux systems.
64789         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
64790         (otherwise).
64791         (__mon_yday): Declare with the STATIC attribute.
64792         (__mktime_internal): Likewise.
64793         Based on a report from Greg Schafer.
64794
64795 2002-11-23  Jim Meyering  <jim@meyering.net>
64796
64797         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
64798         Use `unsigned', not `int', as type of index.
64799
64800         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
64801
64802         * lib/fsusage.c: Remove unneeded parentheses around operands of
64803         `defined'.
64804
64805 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64806
64807         * lib/quotearg.h: Allow multiple inclusion by surrounding with
64808         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
64809         so that we can be included first.
64810         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
64811         * lib/quotearg.c: Include quotearg.h immediately after config.h.
64812         No need to include stddef.h or sys/types.h any more.
64813         Surround local include files with "", not "<>".
64814         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
64815         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
64816         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
64817         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
64818         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
64819         (ISPRINT): Remove; no longer needed now that we assume C89.
64820
64821         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
64822         Preserve errno.
64823
64824         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
64825         quotearg_char): Use SIZE_MAX rather than
64826         (size_t) -1 when we are talking about "infinity".
64827
64828         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
64829
64830 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64831
64832         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
64833         hint that one should use `if (! x) abort ();' rather than `assert
64834         (x);', and anyway it's one less thing to worry about configuring.
64835         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
64836         hash_rehash, hash_insert): Use abort rather than assert.
64837
64838 2002-11-22  Bruno Haible  <bruno@clisp.org>
64839
64840         * lib/safe-read.h: Assume C89. Add comments.
64841         (safe_read): Change return type to size_t.
64842         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
64843         byte counts > SSIZE_MAX correctly.
64844         * lib/safe-write.h: New file.
64845         * lib/safe-write.c: New file.
64846         * lib/full-read.h: New file.
64847         * lib/full-read.c: New file.
64848         * lib/full-write.h: Assume C89. Add comments.
64849         * lib/full-write.c: Include safe-write.h.
64850         (full_write): Rewritten to use safe_write.
64851         Suggested by Jim Meyering and Paul Eggert.
64852
64853 2002-11-21  Jim Meyering  <jim@meyering.net>
64854
64855         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
64856
64857         Merge in changes from the coreutils.
64858
64859         2002-09-25  Paul Eggert  <eggert@twinsun.com>
64860         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
64861         <stdint.h>.
64862         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
64863         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
64864         int.  Work more efficiently if X is the same width as uintmax_t.
64865         Do not compare X to -1, to avoid bogus compiler warning.
64866         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
64867         Don't assume that f_frsize and f_bsize are the same type.
64868
64869         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
64870         warning on FreeBSD.
64871
64872         * lib/makepath.c (make_path): Restore umask *before* creating the final
64873         component.
64874         (make_path): Minor reformatting.
64875
64876         * lib/xmalloc.c: Adjust to work with new autoconf macros,
64877         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
64878         HAVE_MALLOC/HAVE_REALLOC.
64879
64880         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
64881         dummy ones.  At least on GNU/Linux systems, `auto' means something
64882         else.
64883         From Michael Stone.
64884
64885 2002-11-21  Bruno Haible  <bruno@clisp.org>
64886
64887         Remove case insensitive option matching.
64888         * lib/argmatch.h (argcasematch): Remove declaration.
64889         (ARGCASEMATCH): Remove macro.
64890         (__xargmatch_internal): Remove case_sensitive argument.
64891         (XARGMATCH): Update.
64892         (XARGCASEMATCH): Remove macro.
64893         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
64894         case_sensitive argument.
64895         (argcasematch): Remove function.
64896         (__xargmatch_internal): Remove case_sensitive argument.
64897         (main): Use XARGMATCH instead of XARGCASEMATCH.
64898
64899         * lib/xmalloc.c: Change compile-time error message. Add comment about
64900         required autoconf version.
64901
64902 2002-11-20  Paul Eggert  <eggert@twinsun.com>
64903
64904         Merge argmatch cleanups from Bison.  Assume C89.
64905
64906         * lib/argmatch.c: Include config.h here, not in argmatch.h.
64907         Include stdlib.h, for EXIT_FAILURE.
64908         Always include <string.h>, since we assume C89.
64909         (EXIT_FAILURE): Remove pre-C89 bug workaround.
64910         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
64911         Include <stddef.h> instead, since it's all we need for size_t.
64912         (PARAMS): Remove.  All uses removed.
64913         (ARRAY_CARDINALITY): Do not bother to #undef.
64914         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
64915         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64916         Remove unnecessary parentheses.
64917         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64918         Insert necessary parentheses.
64919         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64920         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64921
64922 2002-11-19  Bruno Haible  <bruno@clisp.org>
64923
64924         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64925         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64926
64927         * lib/mbswidth.h (PARAMS): Remove macro.
64928         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64929         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64930
64931         * lib/gcd.h (PARAMS): Remove macro.
64932         (gcd): Use ANSI C function declarations.
64933         * lib/gcd.c (gcd): Likewise.
64934
64935 2002-11-15  Bruno Haible  <bruno@clisp.org>
64936
64937         * lib/strcspn.c: Include <stddef.h>.
64938         (strcspn): Use ANSI C function declaration. Change return type to
64939         size_t. Use NULL.
64940         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64941         (strpbrk): Use NULL.
64942         * lib/strpbrk.h (PARAMS): Remove macro.
64943         (strpbrk): Use ANSI C function declaration.
64944         * lib/strstr.c: Don't include <sys/types.h>.
64945         * lib/strstr.h (PARAMS): Remove macro.
64946         (strstr): Use ANSI C function declarations.
64947
64948 2002-11-14  Karl Berry  <karl@gnu.org>
64949
64950         * config/mkinstalldirs: `do' on separate line, instead of
64951         `for var; do'.
64952
64953 2002-11-06  Bruno Haible  <bruno@clisp.org>
64954
64955         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
64956         * lib/gcd.c (gcd): Likewise.
64957
64958 2002-11-05  Bruno Haible  <bruno@clisp.org>
64959
64960         * lib/gcd.h: New file, from gettext-0.11.5.
64961         * lib/gcd.c: New file, from gettext-0.11.5.
64962
64963 2002-11-05  Bruno Haible  <bruno@clisp.org>
64964
64965         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64966         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64967         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64968         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64969
64970         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
64971         <libintl.h>.
64972         * lib/makepath.c: Include gettext.h instead of <locale.h> and
64973         <libintl.h>.
64974
64975         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
64976         * lib/human.c: Include gettext.h instead of <libintl.h>.
64977         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
64978         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
64979         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
64980         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
64981         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
64982         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
64983         (textdomain): Remove definition.
64984         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
64985
64986         * lib/long-options.c: Remove include of <libintl.h> and definition of
64987         _.
64988         * lib/same.c: Remove include of <libintl.h> and definition of _.
64989
64990 2002-11-04  Owen Taylor  <otaylor@redhat.com>
64991
64992         * lib/config.charset: A few additions for Solaris.
64993
64994 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64995
64996         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
64997         * lib/localcharset.c (locale_charset): Declare as extern "C".
64998
64999 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65000
65001         * lib/config.charset: msdos in uk_UA uses CP1125.
65002
65003 2002-11-04  Bruno Haible  <bruno@clisp.org>
65004
65005         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65006         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65007         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65008         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65009         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65010
65011 2002-11-04  Bruno Haible  <bruno@clisp.org>
65012
65013         * lib/localcharset.c (locale_charset): Don't return an empty string.
65014
65015 2002-11-04  Bruno Haible  <bruno@clisp.org>
65016
65017         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65018         aliases.
65019
65020 2002-11-04  Bruno Haible  <bruno@clisp.org>
65021
65022         * lib/config.charset: Update for newest glibc. Add canonical names
65023         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65024
65025 2002-11-04  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/config.charset: Add support for NetBSD.
65028
65029 2002-11-04  Bruno Haible  <bruno@clisp.org>
65030
65031         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65032
65033 2002-11-01  Bruno Haible  <bruno@clisp.org>
65034
65035         * configure.in: Add AC_CONFIG_AUX_DIR call.
65036         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65037         test/Makefile.
65038         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65039
65040 2002-09-28  Karl Berry  <karl@gnu.org>
65041
65042         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65043         installed automake until the next release, since changes have been
65044         made.
65045
65046 2002-09-25  Karl Berry  <karl@gnu.org>
65047
65048         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65049         * lib/getopt*: copy from libc/posix.
65050         * lib/gettext.h: copy from gettext.
65051         * lib/.cppi-disable: add strdup.c, gettext.h.
65052
65053 2002-09-25  Karl Berry  <karl@gnu.org>
65054
65055         * config/srclist.txt: enable gettext.h check.
65056         * config/config.{guess,sub}: update from prep.
65057         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65058                 from automake 1.6.3.
65059         See srclist*.
65060
65061 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65062
65063         * regex.c (PATFETCH): Remove the translating fetch.
65064         (PATFETCH_RAW): Rename to PATFETCH.
65065         (set_image_of_range): New fun.
65066         (SET_RANGE_TABLE_WORK_AREA): Use it.
65067         (regex_compile): Don't translate the pattern chars so eagerly.
65068         Only do it when inserting an `exactn' bytecode or when handling
65069         a char-range.
65070         (mutually_exclusive_p): Avoid empty statement.
65071
65072 2002-07-06  Jim Meyering  <meyering@lucent.com>
65073
65074         * m4/README: Don't mention Makefile.am.in.
65075         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65076
65077 2002-07-01  Jim Meyering  <meyering@lucent.com>
65078
65079         * lib/c-stack.c: Include sys/time.h.
65080         From Volker Borchert.
65081
65082 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65083
65084         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65085
65086 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65087
65088         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65089         New macro.  Use it uniformly instead of
65090         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65091         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65092         reported by Vin Shelton.
65093
65094 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65095
65096         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65097         Do not assume SA_SIGINFO behavior.
65098         Bug reported by Jim Meyering on NetBSD 1.5.2.
65099
65100 2002-06-22  Jim Meyering  <meyering@lucent.com>
65101
65102         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65103         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65104
65105         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65106         now that configure.ac uses AC_GNU_SOURCE.
65107         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65108         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65109
65110         Update to latest tools.  Suggestions from Paul Eggert.
65111         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65112         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65113         * m4/fnmatch.m4: Likewise.
65114         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65115         to AC_HEADER_STDBOOL
65116
65117 2002-06-22  Jim Meyering  <meyering@lucent.com>
65118
65119         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65120         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65121
65122 2002-06-22  Jim Meyering  <meyering@lucent.com>
65123
65124         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65125
65126         * lib/exitfail.c, exitfail.h: Likewise.
65127         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65128
65129         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65130         of fnmatch.h.
65131         (EXTRA_DIST): Add fnmatch_loop.c.
65132         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65133
65134         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65135         * lib/fnmatch.c: Update from diffutils-2.8.2.
65136         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65137         * lib/fnmatch.h: Remove file.
65138
65139 2002-06-21  Jim Meyering  <meyering@lucent.com>
65140
65141         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65142         * m4/mbrtowc.m4: Likewise.
65143
65144         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65145         * m4/mbswidth.m4: Reflect name change:
65146         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65147         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65148
65149         * m4/lib-link.m4: Update from gettext-0.11.2.
65150         * m4/gettext.m4: Likewise.
65151
65152         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65153         From Alfred M. Szmidt.
65154
65155 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65156
65157         * lib/file-type.h: Report an error if neither S_ISREG nor
65158         S_IFREG is defined, instead of using a test specific to glibc
65159         2.2.  This should be safe, since POSIX requires S_ISREG and
65160         Unix Version 7 had S_IFREG.  We don't need to check for
65161         <sys/types.h> since we don't use any symbols that it defines.
65162
65163 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65164
65165         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65166         $@-t, so that each temporary file name is unique and valid in the first
65167         8 characters, for operation under DOS.
65168
65169 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65170
65171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65172
65173 2002-06-15  Jim Meyering  <meyering@lucent.com>
65174
65175         Work even with DJGPP 2.03, which lacks support for symlinks.
65176         From Richard Dawe.
65177         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65178         is defined.
65179         * lib/lchown.c (S_ISLNK): Likewise.
65180
65181 2002-06-15  Jim Meyering  <meyering@lucent.com>
65182
65183         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65184         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65185         have been included before this file.
65186
65187 2002-06-14  Jim Meyering  <meyering@lucent.com>
65188
65189         * lib/file-type.h: Use the version from diffutils-2.8.2.
65190         * lib/file-type.c: Likewise.
65191
65192 2002-06-07  Jim Meyering  <meyering@lucent.com>
65193
65194         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65195         They're needed at least for NetBSD 1.5.2.
65196         ($statxfs_includes): Include those same headers.
65197         ($statxfs_includes): Include sys/vfs.h if available.
65198         ($statxfs_includes): Likewise for sys/statvfs.h.
65199         Check for the following members in both structs statfs and statvfs:
65200         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65201
65202 2002-06-01  Jim Meyering  <meyering@lucent.com>
65203
65204         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65205         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65206
65207 2002-05-28  Jim Meyering  <meyering@lucent.com>
65208
65209         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65210         Reported by Volker Borchert.
65211
65212 2002-05-27  Jim Meyering  <meyering@lucent.com>
65213
65214         Fix a problem seen only on nonconforming systems whereby ls.c's
65215         use of localtime, and then of gettimeofday would cause trouble:
65216         the localtime call used to initialize rpl_gettimeofday's save
65217         mechanism would clobber ls's current local time information so
65218         that in any long listing the first file would always be listed
65219         with date 1970-01-01.  Analysis by Volker Borchert.
65220
65221         * lib/gettimeofday.c (localtime): Undefine.
65222         (rpl_localtime): New function.
65223
65224 2002-05-27  Jim Meyering  <meyering@lucent.com>
65225
65226         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65227         localtime.
65228
65229         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65230         use the replacement function; it wouldn't resolve at link time.
65231         Reported by Volker Borchert.
65232
65233 2002-05-22  Jim Meyering  <meyering@lucent.com>
65234
65235         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65236         file-type.h.
65237         * lib/file-type.h: New file.
65238         * lib/file-type.c (file_type): New file/function.  Extracted from
65239         diffutils.
65240
65241 2002-04-30  Jim Meyering  <meyering@lucent.com>
65242
65243         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65244
65245 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65246
65247         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65248
65249 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65250
65251         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65252         Do not check for alloca.h (no longer used) or stdbool.h (was never
65253         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65254
65255 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65256
65257         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65258
65259 2002-04-29  Jim Meyering  <meyering@lucent.com>
65260
65261         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65262         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65263         Use AC_FUNC_STRNLEN here instead.
65264
65265         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65266         With autoconf-2.53a, it's part of AC_PROG_CC.
65267
65268 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65269
65270         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65271         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65272
65273 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65274
65275         * lib/sig2str.h, lib/sig2str.c: New files.
65276         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65277
65278 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65279
65280         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65281         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65282         of 127, since 64 is the largest conceivable number for ancient
65283         nonstandard hosts.
65284         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65285
65286 2002-04-28  Jim Meyering  <meyering@lucent.com>
65287
65288         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65289
65290 2002-04-24  Jim Meyering  <meyering@lucent.com>
65291
65292         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65293         (jm_PREREQ): Use it.
65294
65295         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65296         mach/mach.h fcntl.h.
65297         Check for this function: setlocale.
65298
65299 2002-04-24  Jim Meyering  <meyering@lucent.com>
65300
65301         * lib/gettext.h: New file, from Gettext.
65302         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65303         (libfetish_a_SOURCES): Add gettext.h.
65304
65305 2002-04-16  Jim Meyering  <meyering@lucent.com>
65306
65307         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65308         ut_pid, ut_id, ut_exit.
65309
65310 2002-04-16  Jim Meyering  <meyering@lucent.com>
65311
65312         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65313         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65314         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65315
65316 2002-04-12  Jim Meyering  <meyering@lucent.com>
65317
65318         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65319         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65320         existence of the getmntinfo function.  Needed for Darwin 5.3.
65321
65322         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65323         This is necessary at least on Darwin 5.3.
65324
65325         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65326         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65327         strnlen.o in the library, and that makes some versions of ranlib
65328         object.
65329
65330 2002-04-12  Jim Meyering  <meyering@lucent.com>
65331
65332         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65333
65334 2002-04-09  Jim Meyering  <meyering@lucent.com>
65335
65336         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65337         to be more precise.  Rather than saying we're checking whether the
65338         function `works', say what we're testing.
65339         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65340         Reported by Bruno Haible.
65341
65342 2002-03-10  Jim Meyering  <meyering@lucent.com>
65343
65344         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65345         Suggestion from Santiago Vila.
65346
65347 2002-03-08  Jim Meyering  <meyering@lucent.com>
65348
65349         * lib/rename.c: Mention that this wrapper is needed also on
65350         mips-dec-ultrix4.4 systems.
65351
65352 2002-03-02  Jim Meyering  <meyering@lucent.com>
65353
65354         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65355         not HAVE_CLOCK_SETTIME.
65356
65357 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65358
65359         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65360         Check for clock_settime.
65361
65362 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65363
65364         * lib/nanosleep.h: Rename to....
65365         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
65366
65367         * lib/gettime.c: New file.
65368         * lib/settime.c: New file.
65369         * lib/stime.c: Remove.
65370
65371         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
65372         timespec.h.  Remove nanosleep.h.
65373
65374 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65375
65376         * m4/acl.m4: New file.
65377         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
65378         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
65379
65380 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65381
65382         * lib/acl.c, lib/acl.h: New files.
65383         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
65384
65385 2002-02-24  Jim Meyering  <meyering@lucent.com>
65386
65387         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
65388         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
65389         cause trouble.  Reported by Nelson Beebe.
65390
65391 2002-02-23  Paul Eggert  <eggert@twinsun.com>
65392
65393         * lib/path-concat.c (xpath_concat): Reorder code to pacify
65394         compilers that don't know that xalloc_die never returns.
65395
65396 2002-02-20  Jim Meyering  <meyering@lucent.com>
65397
65398         * lib/getdate.c: Regenerate using bison-1.33.
65399
65400 2002-02-17  Jim Meyering  <meyering@lucent.com>
65401
65402         * config/config.guess (main): Don't use `head -1'; it's no longer
65403         portable. Use `sed 1q' instead.
65404
65405 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
65406
65407         * m4/codeset.m4: Upgrade to gettext-0.11.
65408         * m4/gettext.m4: Upgrade to gettext-0.11.
65409         * m4/glibc21.m4: Upgrade to gettext-0.11.
65410         * m4/iconv.m4: Upgrade to gettext-0.11.
65411         * m4/isc-posix.m4: Upgrade to gettext-0.11.
65412         * m4/lcmessage.m4: Upgrade to gettext-0.11.
65413         * m4/lib-ld.m4: New file, from gettext-0.11.
65414         * m4/lib-link.m4: New file, from gettext-0.11.
65415         * m4/lib-prefix.m4: New file, from gettext-0.11.
65416         * m4/progtest.m4: Upgrade to gettext-0.11.
65417
65418 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65419
65420         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
65421         (jm_PREREQ): Use it.
65422
65423 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65424
65425         * lib/posixver.c, lib/posixver.h: New files.
65426         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65427
65428 2002-02-02  Paul Eggert  <eggert@twinsun.com>
65429             Bruno Haible  <bruno@clisp.org>
65430
65431         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
65432         (fwrite_success_callback): New declaration.
65433         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
65434         print_unicode_char. Call failure callback instead of error.
65435         (fwrite_success_callback): New function.
65436         (exit_failure_callback): New function.
65437         (fallback_failure_callback): New function.
65438         (print_unicode_char): Call unicode_to_mb.
65439
65440 2002-01-26  Jim Meyering  <meyering@lucent.com>
65441
65442         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
65443         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
65444
65445 2002-01-26  Jim Meyering  <meyering@lucent.com>
65446
65447         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
65448
65449 2002-01-22  Paul Eggert  <eggert@twinsun.com>
65450
65451         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
65452
65453 2002-01-22  Jim Meyering  <meyering@lucent.com>
65454
65455         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
65456         Otherwise, some versions of automake would omit the rule that makes
65457         Makefile from Makefile.in.
65458
65459 2002-01-21  Paul Eggert  <eggert@twinsun.com>
65460
65461         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
65462         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65463         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
65464         (memcoll): Set errno to zero if there is no error.
65465
65466         * lib/quotearg.c (quotearg_buffer_restyled):
65467         Fix bug with quoting buffers containing NUL when backslashing escapes.
65468         This bug was exposed by the other changes in this patch.
65469         (quotearg_n_options): New arg ARGSIZE.
65470         All callers changed.
65471         (quoting_options_from_style): New function.
65472         (quotearg_n_style): Use it.
65473         (quotearg_n_style_mem): New function.
65474
65475         * lib/quotearg.h (quotearg_n_style_mem): New function.
65476
65477 2002-01-19  Jim Meyering  <meyering@lucent.com>
65478
65479         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
65480         Remove useless quotes: DF_PROG="df".
65481         * m4/strnlen.m4: New file.
65482
65483 2002-01-16  Paul Eggert  <eggert@twinsun.com>
65484
65485         * lib/backupfile.c (ISDIGIT): Comment fix.
65486         * lib/getdate.y (ISDIGIT): Likewise.
65487         * lib/posixtm.c (ISDIGIT, year): Likewise.
65488         * lib/strverscmp.c (ISDIGIT): Likewise.
65489         * lib/userspec.c (ISDIGIT): Likewise.
65490
65491 2002-01-16  Jim Meyering  <meyering@lucent.com>
65492
65493         * lib/getdate.y: Add three semicolons, each just before a closing
65494         brace. Bison (as of version 1.31) no longer papers over that mistake.
65495
65496 2002-01-05  Jim Meyering  <meyering@lucent.com>
65497
65498         * lib/version-etc.c (version_etc_copyright): Update copyright year.
65499
65500 2001-12-19  Paul Eggert  <eggert@twinsun.com>
65501
65502         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
65503         not silently exit merely because the output buffer happens to
65504         have nothing pending.
65505
65506 2001-12-18  Paul Eggert  <eggert@twinsun.com>
65507
65508         See the big note in ../ChangeLog.
65509         * lib/human.c (suffixes): Prefer K to k for 1024.
65510         (generate_suffix_backwards): New function.
65511         (human_readable_inexact): Use it.
65512         * lib/xstrtol.c (__xstrtol): If there is no number but there
65513         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
65514         Accept 'K' as well as 'k'.
65515
65516 2001-12-15  Jim Meyering  <meyering@lucent.com>
65517
65518         * lib/regex.h (__restrict_arr): Update from libc.
65519
65520         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
65521         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
65522         (STREQ): Define.
65523
65524 2001-12-14  Jim Meyering  <meyering@lucent.com>
65525
65526         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
65527         Suggestion from Bruno Haible.
65528
65529 2001-12-10  Jim Meyering  <meyering@lucent.com>
65530
65531         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
65532         xrealloc, Instead, include "xalloc.h".
65533         (initbuffer): Don't cast xmalloc return value to char*.
65534         (readline): Reword comment.
65535         Don't cast xrealloc return value to char*
65536         Return NULL, not 0.
65537
65538 2001-12-09  Jim Meyering  <meyering@lucent.com>
65539
65540         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
65541         about `signed and unsigned type in conditional expression'.
65542         * lib/posixtm.c (posix_time_parse): Likewise.
65543
65544         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
65545
65546         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
65547         to avoid a pedantic warning.
65548
65549         * lib/getstr.c: Don't include assert.h.
65550         (getstr): Remove warning-evoking assertions.
65551         Return -1 if offset parameter is out of bounds.
65552         Change the type of a local from int to size_t.
65553
65554         * lib/strftime.c (my_strftime_localtime_r): Include this function
65555         definition in the `#if ! HAVE_TM_GMTOFF' block.
65556
65557         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
65558         Include xalloc.h instead.
65559
65560 2001-12-02  Jim Meyering  <meyering@lucent.com>
65561
65562         * lib/tempname.c: Don't declare getenv, thus reverting the change of
65563         2001-11-18.  It's no longer necessary, now that stdlib.h is always
65564         included.
65565
65566         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
65567         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
65568
65569 2001-11-30  Akim Demaille  <akim@epita.fr>
65570
65571         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
65572         before being defined.
65573
65574 2001-11-27  Paul Eggert  <eggert@twinsun.com>
65575
65576         * lib/quotearg.h (quotearg_n, quotearg_n_style):
65577         First arg is int, not unsigned.
65578         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
65579         (SIZE_MAX, UINT_MAX): New macros.
65580         (quotearg_n_options): Abort if N is negative.
65581         Avoid overflow check on hosts where size_t is 64 bits and int
65582         is 32 bits, as overflow is impossible there.
65583         Fix off-by-one typo that caused unnecessary reallocation.
65584
65585 2001-11-27  Jim Meyering  <meyering@lucent.com>
65586
65587         * lib/tempname.c: Merge with version from libc.
65588         * lib/regex.c: Likewise.
65589
65590         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
65591         systems for which STDC_HEADERS is 0, it was not included, resulting in
65592         a warning about an integer-to-pointer conversion problem with getenv.
65593         Reported by Volker Borchert.
65594
65595 2001-11-26  Jim Meyering  <meyering@lucent.com>
65596
65597         * lib/gtod.h: Remove file.
65598         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
65599         * lib/gettimeofday.c: Don't include gtod.h.
65600         (GTOD_init): Remove function.
65601         (rpl_gettimeofday): Do its job here instead, rather than aborting.
65602         Suggestion from Volker Borchert.
65603
65604 2001-11-23  Jim Meyering  <meyering@lucent.com>
65605
65606         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
65607         it.
65608         * lib/hash.c (struct hash_table): Define it here instead.
65609
65610 2001-11-22  Jim Meyering  <meyering@lucent.com>
65611
65612         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
65613
65614 2001-11-20  Jim Meyering  <meyering@lucent.com>
65615
65616         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
65617         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
65618
65619 2001-11-19  Jim Meyering  <meyering@lucent.com>
65620
65621         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
65622         directory.  Use "conftestXXXXXX" as the template.
65623         Suggestion from Paul Eggert.
65624
65625         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
65626         immediately, so the test doesn't mistakenly hit the max-open-files
65627         limit.
65628
65629 2001-11-18  Paul Eggert  <eggert@twinsun.com>
65630
65631         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
65632         (TEMPORARIES): New macro.
65633         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
65634         removes an artificial limitation (e.g. HP-UX 10.20, where
65635         TMP_MAX is 17576).
65636
65637 2001-11-18  Jim Meyering  <meyering@lucent.com>
65638
65639         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
65640
65641 2001-11-18  Jim Meyering  <meyering@lucent.com>
65642
65643         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
65644         on SunOS 4.
65645
65646         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
65647         files will be created before anything else.
65648
65649 2001-11-17  Paul Eggert  <eggert@twinsun.com>
65650
65651         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
65652         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
65653
65654 2001-11-17  Jim Meyering  <meyering@lucent.com>
65655
65656         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
65657         Prompted by a report from Bob Proulx.
65658
65659         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
65660         Instead, require UTILS_FUNC_MKSTEMP.
65661
65662 2001-11-17  Jim Meyering  <meyering@lucent.com>
65663
65664         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
65665         Now, that's done as part of AC_FUNC_STRTOD.
65666
65667 2001-11-17  Jim Meyering  <meyering@lucent.com>
65668
65669         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
65670         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
65671         rather than group writable.  Patch by Juan F. Codagnone.
65672
65673         * lib/readtokens.c: Remove explicit declarations of xmalloc and
65674         xrealloc, Instead, include "xalloc.h".
65675
65676         * lib/mountlist.c: Include unlocked-io.h after all system headers.
65677         Remove explicit declarations of xmalloc, xrealloc,
65678         and xstrdup.  Instead, include "xalloc.h".
65679
65680         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
65681         unlocked-io.h.
65682         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
65683         Likewise.
65684         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
65685
65686         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
65687         Reported by Padraig Brady.
65688
65689         * lib/mkstemp.c: #undef mkstemp.
65690         Include config.h.
65691         (rpl_mkstemp): Rename from mkstemp.
65692         Protoize.
65693
65694 2001-11-16  Jim Meyering  <meyering@lucent.com>
65695
65696         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
65697         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
65698         determine the amount of total physical memory, use pstat_getstatic.
65699         HPUX-11 doesn't define _SC_PHYS_PAGES.
65700         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
65701         If sysconf couldn't be used to determine the amount of available
65702         physical memory, use both pstat_getstatic and pstat_getdynamic.
65703         Based on a patch from Bob Proulx.
65704
65705 2001-11-10  Jim Meyering  <meyering@lucent.com>
65706
65707         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
65708         (jm_PREREQ): Use it.
65709
65710 2001-11-09  Jim Meyering  <meyering@lucent.com>
65711
65712         * m4/jm-macros.m4: Require autoconf-2.52f.
65713         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
65714         Use these AC_-prefixed names, not the AM_-prefixed ones.
65715
65716         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
65717
65718 2001-11-05  Jim Meyering  <meyering@lucent.com>
65719
65720         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
65721
65722 2001-11-04  Jim Meyering  <meyering@lucent.com>
65723
65724         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
65725         $DEFS.
65726
65727 2001-11-03  Jim Meyering  <meyering@lucent.com>
65728
65729         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
65730         of AC_DEFUN.
65731
65732         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
65733         know the name of the variable in the macro definition.
65734
65735 2001-11-03  Jim Meyering  <meyering@lucent.com>
65736
65737         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
65738         in argmatch_to_argument call.
65739
65740         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
65741         argument.
65742
65743         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
65744         e.g., a fault due to an attempt to free a NULL pointer.
65745
65746 2001-11-01  Jim Meyering  <meyering@lucent.com>
65747
65748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
65749         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
65750
65751 2001-11-01  Jim Meyering  <meyering@lucent.com>
65752
65753         * lib/dirfd.c, lib/dirfd.h: New files.
65754         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
65755
65756         * lib/hash.c (hash_print) [TESTING]: Clean up.
65757
65758 2001-10-22  Paul Eggert  <eggert@twinsun.com>
65759
65760         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
65761         to avoid a warning if -Wall.
65762
65763 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
65764
65765         * README: New file
65766         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
65767         (per RMS's instructions, this is now the canonical source)
65768         * lgpl/, gpl/: New directories.
65769
65770 2001-10-21  Paul Eggert  <eggert@twinsun.com>
65771
65772         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
65773
65774 2001-10-21  Jim Meyering  <meyering@lucent.com>
65775
65776         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
65777         this code would end up calling gettext even in packages built
65778         with --disable-nls.
65779         * lib/getopt.c (_): Likewise.
65780         * lib/regex.c (_): Likewise.
65781
65782 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65783
65784         * m4/error.m4 (jm_PREREQ_ERROR):
65785         Do not invoke AC_CHECK_FUNCS with strerror_r, as
65786         AC_FUNC_STRERROR_R does that.
65787         Check for strerror declaration.
65788
65789         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
65790         are supposed to have them these days.
65791         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
65792         Merge changes from latest Autoconf CVS.
65793         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
65794         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
65795         POSIX decided to standardize on the int flavor of strerror_r.
65796
65797 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65798
65799         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
65800         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
65801         Use strerror_r that is only a macro, even if it is not a function.
65802         (strerror): Check for HAVE_DECL_STRERROR before declaring.
65803         (private_strerror): Use prototypes, not old-style function definition.
65804         (print_errno_message): New function.
65805         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
65806         char*-flavored one.
65807         (error_tail, error, error_at_line): Use it.
65808
65809 2001-10-11  Jim Meyering  <meyering@lucent.com>
65810
65811         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
65812         and quote_n (1, ... to avoid clobbering a buffer.
65813
65814 2001-10-05  Jim Meyering  <meyering@lucent.com>
65815
65816         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
65817         hash-pjw.h.
65818         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
65819         * lib/hash-pjw.h: New file.
65820
65821 2001-09-30  Jim Meyering  <meyering@lucent.com>
65822
65823         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
65824         `struct fsstat' has the `f_fstypename' member.
65825         Use that to define FS_TYPE, which is now used to make
65826         the getfsstat link test tighter.
65827
65828 2001-09-30  Jim Meyering  <meyering@lucent.com>
65829
65830         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
65831         Include <sys/ucred.h>, for Apple Darwin.
65832         Include sys/mount.h and sys/fs_types.h only if available.
65833         (FS_TYPE): Define.
65834         (read_filesystem_list): Use FS_TYPE.
65835
65836 2001-09-29  Paul Eggert  <eggert@twinsun.com>
65837
65838         * lib/exclude.c (excluded_filename): 0 -> false, since it's
65839         a boolean context.
65840
65841 2001-09-29  Jim Meyering  <meyering@lucent.com>
65842
65843         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65844         [one-argument getmntent function]): Include stdio.h before mntent.h.
65845         SunOS 4.1.x needs it for the declaration of `FILE'.
65846         Patch by Volker Borchert.
65847
65848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65849         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
65850         sys/fs_types.h, and make the link-test for getfsstat guard #include
65851         directives with appropriate #if HAVE_*_H tests so that we can
65852         detect getfsstat on Apple Darwin1.3.7 systems.
65853         Reported by Nelson Beebe.
65854         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
65855
65856 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65857
65858         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65859         #defines strtoimax.  Also treat the other strto* functions
65860         like strtoimax.
65861
65862         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65863         Check for strtoul and strtoumax,
65864         as those declarations are made even in the signed case.
65865         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
65866         Likewise, for strtol and strtoimax.
65867
65868 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65869
65870         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65871         #defines strtoimax.  Also treat the other strto* functions
65872         like strtoimax.
65873
65874         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
65875         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
65876         (strtoimax, strtoumax): Do not declare if already defined as a macro.
65877
65878 2001-09-26  Jim Meyering  <meyering@lucent.com>
65879
65880         Most macros in unlocked-io.h had the wrong number of arguments.
65881         * lib/gen-uio: New script.
65882         (USE_UNLOCKED_IO): Define to 1 if not already defined.
65883         * lib/unlocked-io.hin: Remove file.
65884         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
65885         rather than trying to embed it here.
65886         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
65887         Reported by Padraig Brady.
65888
65889 2001-09-25  Volker Borchert  <bt@teknon.de>
65890
65891         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
65892         `result'.
65893
65894 2001-09-24  Jim Meyering  <meyering@lucent.com>
65895
65896         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
65897
65898 2001-09-23  Jim Meyering  <meyering@lucent.com>
65899
65900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
65901         instead of the mere test for existence of mntent.h.  The latter
65902         would get a false-positive on AIX 3.4 systems.
65903         In the outer getmntent if-block, don't die if neither of the getmntent
65904         tests succeeds.  Instead, just fall through and continue with the
65905         remaining tests.
65906
65907 2001-09-23  Jim Meyering  <meyering@lucent.com>
65908
65909         * lib/mountlist.c: Remove useless parentheses in #if directives.
65910         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
65911         the deprecated MOUNTED symbol is no longer defined in mntent.h.
65912
65913 2001-09-22  Jim Meyering  <meyering@lucent.com>
65914
65915         * m4/gettext.m4: New file.  From gettext.
65916         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
65917         * m4/progtest.m4: Likewise
65918         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65919         * m4/glibc21.m4: Likewise.
65920
65921         * m4/libintl.m4: Remove.  No longer used.
65922
65923 2001-09-22  Jim Meyering  <meyering@lucent.com>
65924
65925         * lib/localcharset.c: Update from latest gettext.
65926         * lib/config.charset: Likewise.
65927
65928 2001-09-20  Jim Meyering  <meyering@lucent.com>
65929
65930         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65931         strtoimax.
65932         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65933         strtoumax.
65934
65935 2001-09-20  Jim Meyering  <meyering@lucent.com>
65936
65937         * lib/xstrtol.c (strtoimax): Guard declaration with
65938         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65939         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65940         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65941         (strtoumax): Likewise, for completeness (it wasn't necessary).
65942
65943 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65944
65945         * lib/strtoimax.c (HAVE_LONG_LONG):
65946         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65947         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65948         to work around bug in IBM C compiler.
65949
65950 2001-09-17  Jim Meyering  <meyering@lucent.com>
65951
65952         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65953         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
65954         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
65955         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
65956         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
65957         whenever the right hand side need not be expanded by the shell.
65958
65959 2001-09-16  Paul Eggert  <eggert@twinsun.com>
65960
65961         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
65962         library.  It's not correct, as some older glibcs are buggy.
65963         fnmatch wasn't fixed until glibc 2.2.
65964
65965         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
65966         special shell magic here.
65967
65968 2001-09-16  Jim Meyering  <meyering@lucent.com>
65969
65970         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
65971         * m4/jm-macros.m4: Require it.
65972
65973 2001-09-16  Jim Meyering  <meyering@lucent.com>
65974
65975         * lib/mkdir.c: New file.
65976
65977 2001-09-15  Jim Meyering  <meyering@lucent.com>
65978
65979         * m4/jm-macros.m4: Check for help2man.
65980
65981 2001-09-11  Jim Meyering  <meyering@lucent.com>
65982
65983         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
65984         The body, by Paul Eggert, was moved here from configure.in.
65985         * m4/jm-macros.m4: Require UTILS_HOST_OS.
65986
65987 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65988
65989         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
65990         (jm_PREREQ): Use it.
65991
65992 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65993
65994         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
65995         Use ssize_t, not int, to store result of readlink.
65996         Check for ssize_t overflow as well as size_t overflow,
65997         as POSIX says the result of readlink is implementation-defined
65998         when ssize_t overflows.
65999         Remove unnecessary cast to char*.
66000         Use free+malloc instead of realloc, as the storage doesn't need
66001         to be preserved and it's clearer and can be more efficient that way.
66002         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66003         * lib/xreadlink.h (xreadlink): Update prototype.
66004
66005 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66006
66007         * lib/xgetcwd.c: Revert some of the previous change; intead,
66008         fix the HAVE_GETCWD_NULL code to behave more like the
66009         !HAVE_GETCWD_NULL code used to.
66010
66011         Include "xalloc.h".
66012         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66013         invoke xalloc_die.
66014
66015 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66016
66017         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66018         sys/param.h, as pathmax.h includes them.
66019
66020 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66021
66022         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66023         (jm_PREREQ_XGETCWD): New macro.
66024
66025         * m4/getcwd.m4: New file.
66026
66027 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66028
66029         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66030         like the HAVE_GETCWD_NULL code.
66031         Include pathmax.h if not HAVE_GETCWD.
66032         Do not include xalloc.h.
66033         (INITIAL_BUFFER_SIZE): New symbol.
66034         Do not use xmalloc / xrealloc, since the caller is responsible for
66035         handling errors.  Preserve errno around `free' during failure.
66036         Do not overrun buffer when using getwd.
66037
66038 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66039
66040         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66041         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66042         getcwd (NULL, 0).
66043
66044 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66045
66046         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66047         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66048         spotted by Jim Meyering.
66049
66050 2001-09-03  Jim Meyering  <meyering@lucent.com>
66051
66052         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66053         failure.
66054
66055 2001-09-02  Jim Meyering  <meyering@lucent.com>
66056
66057         * lib/error.c: Update from GNU libc.
66058
66059 2001-09-01  Jim Meyering  <meyering@lucent.com>
66060
66061         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66062         Used by df.
66063
66064 2001-09-01  Jim Meyering  <meyering@lucent.com>
66065
66066         * lib/xreadlink.c: New file.
66067         * lib/xreadlink.h: New file.
66068         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66069         xreadlink.h.
66070
66071         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66072         doesn't conflict with sparc Solaris 7's definition in
66073         /usr/include/sys/int_types.h.
66074
66075         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66076         files.
66077         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66078         and strncasecmp as r-values.  Unixware didn't have declarations.
66079
66080 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66081
66082         * lib/xstrtol.h: Add copyright notice.
66083         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66084         LONGINT_INVALID_SUFFIX_CHAR.
66085
66086 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66087
66088         * lib/xstrtol.c (strtoimax): New decl.
66089
66090 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66091
66092         * lib/xgetcwd.c: Don't include pathmax.h.
66093         Include stdlib.h and unistd.h if available.
66094         Include xalloc.h.
66095         (xmalloc, xstrdup, free): Remove decls.
66096         (xgetcwd): Don't assume sizes fit in unsigned.
66097         Check for overflow when computing sizes.
66098         Simplify reallocation code.
66099
66100 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66101
66102         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66103         a directory's st_size can have an arbitrary value, so the old
66104         usage could waste an arbitrary amount of memory.  All uses
66105         changed.
66106         * lib/savedir.h: Update prototype.
66107
66108 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66109
66110         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66111
66112         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66113         old strtoimax.c.
66114
66115         Also, make the following further changes to make this file's
66116         configuration more similar to that of strtol.c:
66117         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66118         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66119         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66120         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66121         changed to signed values.
66122
66123         And make the following changes as well:
66124         Fix copyright notice, as 1999 was missing.
66125         (verify): New macro.
66126         (strtoimax): Check sizes at compile-time, not run-time.
66127         Prefer strtol to strtoll if both work.
66128         (main): Remove; it was not that useful and was a pain to maintain.
66129
66130         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66131
66132 2001-08-31  Jim Meyering  <meyering@lucent.com>
66133
66134         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66135         Use an initial, malloc'd, buffer of length 128 rather than
66136         a statically allocated one of length 1024.
66137
66138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66139
66140         Simplify code, partly by assuming autoconf 2.52 semantics.
66141
66142         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66143
66144         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66145         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66146         All uses removed.
66147         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66148         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66149         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66150         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66151         jm_AC_HEADER_INTTYPES_H.
66152         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66153
66154         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66155
66156         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66157         Quote first arg of AC_DEFUN.
66158         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66159         since they are needed to parse the include file even if we need
66160         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66161         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66162         but with opposite signedness.
66163
66164 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66165
66166         Merge 'exclude' changes from tar 1.13.22.
66167         This fixes one or two unlikely storage allocation overflow bugs,
66168         but doesn't change user-visible behavior otherwise.
66169
66170 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66171
66172         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66173         (jm_PREREQ_EXCLUDE): New macro.
66174
66175 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66176
66177         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66178         tm to be declared.
66179
66180 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66181
66182         * lib/hash.c: Remove '2001' from copyright notice.
66183
66184 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66185
66186         * lib/full-write.h: New file.
66187         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66188         * lib/full-write.c: Correct credits, as cccp.c no longer
66189         exists and anyway it was so heavily changed from the old cccp
66190         code as to be unrecognizable.  Include full-write.h.
66191         (full_write) Return size_t, with short writes meaning failure.
66192         All callers changed.  This fixes a bug with large buffers
66193         on 64-bit hosts.
66194         * lib/utime.c: Include full-write.h.
66195
66196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66197
66198         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66199         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66200         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66201         Include if available.
66202         (<xalloc.h>): Include
66203         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66204         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66205         collide with FNM macros.
66206         (struct patopts): New struct.
66207         (struct exclude): Use it, as exclude patterns now come with options.
66208         (new_exclude): Support above changes.
66209         (new_exclude, add_exclude_file):
66210         Initial size must now be a power of two to simplify overflow checking.
66211         (free_exclude, fnmatch_no_wildcards): New function.
66212         (excluded_filename): No longer requires options arg, as the options
66213         are determined by add_exclude.  Now returns bool, not int.
66214         (excluded_filename, add_exclude):
66215         Add support for the fancy new exclusion options.
66216         (add_exclude, add_exclude_file): Now takes int options arg.
66217         Check for arithmetic overflow when computing sizes.
66218         (add_exclude_file): xrealloc might modify errno, so don't
66219         realloc until after errno might be used.
66220
66221         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66222         New macros.
66223         (free_exclude): New decl.
66224         (add_exclude, add_exclude_file): Now takes int options arg.
66225         (excluded_filename): No longer requires options arg, as the options
66226         are determined by add_exclude.  Now returns bool, not int.
66227
66228 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66229
66230         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66231
66232 2001-08-27  Jim Meyering  <meyering@lucent.com>
66233
66234         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66235
66236         * lib/version-etc.c (N_): Remove definition.
66237         Revert most of last change.
66238         Instead, simply don't mark the `Copyright...' string for translation.
66239         Based on advice from Paul Eggert.
66240
66241         * lib/strtoxmax.c: Tweak comment.
66242
66243 2001-08-26  Jim Meyering  <meyering@lucent.com>
66244
66245         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66246
66247         * m4/xstrtoimax.m4: New file.
66248         * m4/xstrtoumax.m4: Add comments explaining why we
66249         AC_REPLACE_FUNCS(strtol).
66250
66251 2001-08-26  Jim Meyering  <meyering@lucent.com>
66252
66253         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66254         of copyright with `%s' so translators don't get an untranslated
66255         message in 2002.
66256         (COPYRIGHT_YEAR): Define.
66257         (version_etc): Use fprintf rather than fputs.
66258         Suggestion from Ulrich Drepper.
66259
66260         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66261
66262         * lib/strtoll.c: New file, from GNU libc.
66263         * lib/xstrtoimax.c: New file.
66264
66265         * lib/xstrtol.h: Add xstrtoimax.
66266         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66267         * lib/strtoimax.c: New file.  Likewise, but first define
66268         STRTOUXMAX_SIGNED.
66269
66270         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66271         ...
66272         * lib/strtoxmax.c: ... then renamed to this.
66273
66274 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66275
66276         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66277         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66278         (jm_AC_TYPE_INTMAX_T): New macro.
66279         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66280
66281         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66282
66283         * m4/longlong.m4: Renamed from ulonglong.m4.
66284         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66285         * m4/uintmax_t.m4: Removed.
66286
66287 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66288
66289         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66290         Port to Solaris 8, where 'sed' requires a space after the 'r'
66291         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66292         Redirect output to $tmp just once.
66293
66294 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66295
66296         * lib/addext.c (<errno.h>): Include.
66297         (errno): Declare if not defined.
66298         (addext): Work correctly when pathconf returns -1 and leaves
66299         errno alone because there is no limit.  Also, work even if
66300         pathconf returns a value greater than SIZE_MAX.
66301
66302 2001-08-12  Jim Meyering  <meyering@lucent.com>
66303
66304         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66305         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66306         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66307         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66308         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66309         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66310         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66311         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66312         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66313         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66314         utime.m4, utimes.m4, xstrtoumax.m4:
66315         Quote the first argument in each use of AC_DEFUN.
66316
66317 2001-08-12  Jim Meyering  <meyering@lucent.com>
66318
66319         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66320         Simply `return getcwd (NULL, 0);'.
66321         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66322         Use 1300 as initial value for length, not PATH_MAX.
66323
66324         * lib/pathmax.h: Clean up cpp syntax.
66325
66326 2001-08-12  Jim Meyering  <meyering@lucent.com>
66327
66328         * lib/gettimeofday.c: New file.
66329         * lib/gtod.h: New file.
66330         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66331
66332 2001-08-05  Jim Meyering  <meyering@lucent.com>
66333
66334         * m4/jm-macros.m4: Require autoconf-2.52.
66335
66336 2001-08-04  Jim Meyering  <meyering@lucent.com>
66337
66338         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66339         stmt, to get in sync with glibc.
66340
66341 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66342
66343         The following changes are from gettext 0.10.39 as maintained by
66344         Bruno Haible.
66345
66346         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66347         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66348         with inverted sense.  All uses changed.
66349
66350         * lib/mbswidth.c: Don't include <limits.h>.
66351         Include <stdlib.h> and <string.h> unconditionally.
66352         (iswcntrl, mbsinit, ISCNTRL): New macros.
66353         (mbsnwidth): Use K&R style function declarations.
66354         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66355         can optimize it when MB_CUR_MAX == 1.
66356         The width of control characters is zero, not 1.
66357
66358 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66359
66360         The following changes are from gettext 0.10.39 as maintained by
66361         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66362
66363         * m4/codeset.m4: Upgrade to serial AM1.
66364         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
66365         all uses changed.  Quote first arg of AC_DEFUN.
66366         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
66367
66368         * m4/iconv.m4: Upgrade to serial AM2.
66369         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
66370         Add --with-libconv-prefix.
66371         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
66372         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
66373         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
66374         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
66375         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
66376
66377         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
66378         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
66379         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
66380         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
66381         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
66382         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
66383         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66384         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
66385         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66386
66387         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
66388         string.h any more.
66389
66390         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
66391         not the default value.
66392
66393         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
66394         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
66395         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
66396         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
66397         Also check for iswcntrl, used for wcwidth fallback.
66398         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
66399         to Autoconf 2.13.
66400
66401 2001-08-03  Jim Meyering  <meyering@lucent.com>
66402
66403         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
66404         as it was in the original.  Reported by Paul Eggert.
66405
66406 2001-07-16  Jim Meyering  <meyering@lucent.com>
66407
66408         * m4/gettimeofday.m4: New file.
66409         Prompted by a report from Bernhard Baehr.
66410
66411 2001-07-15  Jim Meyering  <meyering@lucent.com>
66412
66413         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
66414         stuff. Now it's in ../Makefile.cfg.
66415
66416 2001-07-15  Jim Meyering  <meyering@lucent.com>
66417
66418         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
66419         (BUILT_SOURCES): Add unlocked-io.h.
66420         (io_functions): Define.
66421         (unlocked-io.h): New rule.
66422         (DISTCLEANFILES): Add unlocked-io.h.
66423         (all-local): Depend on unlocked-io.h, to ensure it is created.
66424
66425         * lib/unlocked-io.hin: New file
66426
66427         * lib/regex.c: Update from glibc.
66428
66429 2001-07-05  Jim Meyering  <meyering@lucent.com>
66430
66431         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
66432         recommendation.
66433         (libfetish_a_SOURCES): Put all .h files here instead.
66434         Remove a thus-exposed (better checks in automake) duplicate and
66435         two unnecessary .h files.
66436
66437 2001-07-04  Jim Meyering  <meyering@lucent.com>
66438
66439         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
66440         that generates jm-glibc-io.m4 so that it doesn't trigger any make
66441         distcheck failure.
66442
66443 2001-07-02  Jim Meyering  <meyering@lucent.com>
66444
66445         The following changes were prompted by suggestions from Bruno Haible.
66446
66447         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
66448         is now generated.
66449         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
66450         definition of EXTRA_DIST.
66451         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
66452         ensure that the generated file is created/updated whenever the list
66453         of $(unlocked_functions) is changed.
66454         (jm-glibc-io.m4): New rule.
66455         (unlocked-io.h): New rule -- currently unused.
66456
66457 2001-06-24  Jim Meyering  <meyering@lucent.com>
66458
66459         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
66460         unmatched right bracket, rather than kludging it with an extra,
66461         falsely-matching quote in a comment.  Patch by Akim Demaille.
66462
66463 2001-06-11  Jim Meyering  <meyering@lucent.com>
66464
66465         * lib/regex.c: Update from GNU libc.
66466
66467 2001-05-27  Jim Meyering  <meyering@lucent.com>
66468
66469         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
66470         Check for ut_type in struct utmp.
66471
66472 2001-05-27  Jim Meyering  <meyering@lucent.com>
66473
66474         * lib/readutmp.h (UT_TYPE): Define.
66475
66476 2001-05-24  Jim Meyering  <meyering@lucent.com>
66477
66478         * lib/argmatch.c: Include "quote.h".
66479         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
66480         quote function.  Reported by Göran Uddeborg.
66481
66482 2001-05-22  Jim Meyering  <meyering@lucent.com>
66483
66484         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
66485         now that we use the package-supplied version unconditionally.
66486         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
66487
66488 2001-05-21  Jim Meyering  <meyering@lucent.com>
66489
66490         * m4/regex.m4: Change a couple backticks to single quotes to avoid
66491         shell syntax errors.
66492
66493 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66494
66495         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
66496
66497 2001-05-20  Paul Eggert  <eggert@twinsun.com>
66498
66499         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
66500         Don't bother to check library strftime, since
66501         we'll be using our own my_strftime function anyway.
66502         Define my_strftime instead of strftime.
66503
66504 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
66505
66506         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
66507         which is not yet declared.
66508
66509 2001-05-15  Jim Meyering  <meyering@lucent.com>
66510
66511         * m4/regex.m4: Use proper quoting so brackets appear in the test
66512         program.
66513         Reported by, and with help from, Bruno Haible.
66514
66515 2001-05-13  Jim Meyering  <meyering@lucent.com>
66516
66517         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
66518         undefined.
66519
66520 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66521
66522         dirname code cleanup.  base_name now behaves more compatibly
66523         with POSIX basename when given file names that have trailing
66524         slashes, and similarly for dir_name.  Add new primitives
66525         base_len and dir_len.  Put the directory-name-related decls
66526         into dirname.h.
66527
66528         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
66529         * lib/backupfile.c (base_name): Likewise.
66530         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
66531         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
66532         * lib/makepath.c (strip_trailing_slashes): Likewise.
66533         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
66534         ISSLASH): Likewise.
66535         * lib/rename.c (strip_trailing_slashes): Likewise.
66536         * lib/same.c (base_name): Likewise.
66537         * lib/stripslash.c (ISSLASH): Likewise.
66538
66539         * lib/addext.c: Include <dirname.h> after size_t is defined.
66540         * lib/backupfile.c: Likewise.
66541
66542         * lib/addext.c (addext): Use base_len to trim redundant
66543         trailing slashes instead of doing it ourselves.
66544         But do not trim the last slash if it is not redundant.
66545
66546         * lib/backupfile.c (find_backup_file_name,
66547         max_backup_version): Use base_len instead of rolling it ourselves.
66548         Handle the case of "" and (on DOS) "C:" correctly.
66549
66550         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
66551         needed. Include <string.h>, <dirname.h>.
66552         (base_name): Allow file names ending in slashes, other than names
66553         that are all slashes.  In this case, return the basename followed
66554         by the slashes.  This is more general, and can be used in places
66555         where the original base_name purposely had an assertion failure.
66556         (base_len): New function.
66557
66558         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
66559         Do not include <assert.h>; no longer needed.
66560         Include xalloc.h.
66561         (memrchr): Remove decl.
66562         (dir_name_r): Remove.
66563         (dir_len): Renamed from dirlen.  All callers changed.
66564         Rewrite in terms of base_name, for simplicity and consistency.
66565         (dir_name): Never return NULL.  All callers changed.
66566         Do not include <stdlib.h> in test program; no longer needed.
66567         return 0; is fine for test program.
66568
66569         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
66570         New macros.
66571         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
66572
66573         * lib/path-concat.c (path_concat): Use base_len to compute
66574         base length, not strlen; this means we cannot rely on memcpy
66575         to null-terminate.
66576
66577         * lib/same.c (STREQ): Remove.
66578         (same_name): Handle the case where the basename ends in trailing '/'.
66579
66580         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
66581         a slash was stripped.  Do not strip the last slash after a
66582         file system prefix.
66583
66584 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66585
66586         * lib/Makefile.am (libfetish_a_SOURCES):
66587         Add strftime.c, since we now compile it on all hosts.
66588
66589         * lib/strftime.c (my_strftime):
66590         Define to nstrftime if emacs, but only if my_strftime is not defined.
66591         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
66592         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
66593         Add one more extra argument: a nanoseconds value.
66594         All uses changed.
66595         (ns): New macro.
66596         (my_strftime function): Add %N format.
66597         (emacs_strftimeu): Renamed from emacs_strftime,
66598         with extra ut argument.
66599
66600 2001-05-09  Paul Eggert  <eggert@twinsun.com>
66601
66602         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
66603
66604 2001-04-21  Jim Meyering  <meyering@lucent.com>
66605
66606         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
66607         doesn't interfere.
66608
66609 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66610
66611         * m4/ftruncate.m4: Check for chsize.
66612         Link with ftruncate.o unconditionally if ftruncate is missing.
66613         This was required when cross-compiling to i586-mingw32msvc.
66614
66615 2001-04-08  Jim Meyering  <meyering@lucent.com>
66616
66617         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
66618         recomputed; that's necessary when the offset spans a DST transition.
66619         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
66620
66621 2001-04-02  Jim Meyering  <meyering@lucent.com>
66622
66623         * lib/regex.h, regex.c: Update from GNU libc.
66624
66625 2001-03-24  Jim Meyering  <meyering@lucent.com>
66626
66627         * m4/jm-macros.m4: Require autoconf-2.49d.
66628
66629 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
66630
66631         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
66632
66633 2001-03-19  Paul Eggert  <eggert@twinsun.com>
66634
66635         * lib/version-etc.c (version_etc_copyright): Update to 2001.
66636
66637 2001-03-17  Jim Meyering  <meyering@lucent.com>
66638
66639         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
66640         now that the version in autoconf is equivalent.
66641         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
66642
66643         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
66644         Suggestion from Akim Demaille.
66645
66646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
66647         (jm_PREREQ_TEMPNAME): New function.
66648
66649 2001-03-16  Paul Eggert  <eggert@twinsun.com>
66650
66651         * lib/tempname.c (uint64_t): Define to uintmax_t if
66652         not defined, and if UINT64_MAX is not defined.
66653         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
66654         Reported by John David Anglin.
66655
66656 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
66657
66658         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
66659         resolve alias if codeset is empty.
66660         * lib/config.charset (BeOS): Use wildcard syntax.
66661
66662 2001-03-13  Jim Meyering  <meyering@lucent.com>
66663
66664         * lib/path-concat.c (path_concat)
66665         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
66666         concatenating e.g., `C:' and `foo'.
66667         From Bruno Haible.
66668
66669 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66670
66671         * lib/localcharset.c (locale_charset): Don't use
66672         setlocale(LC_CTYPE,NULL). Don't return NULL.
66673         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
66674
66675 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66676
66677         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
66678         support for DOS/DJGPP.
66679
66680 2001-03-01  Paul Eggert  <eggert@twinsun.com>
66681
66682         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
66683         lacks mkstemp.  Compile our own tempname.c if we compile our own
66684         mkstemp.c, as mkstemp relies on tempname.
66685
66686 2001-03-01  Jim Meyering  <meyering@lucent.com>
66687
66688         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
66689         AH_VERBATIM really does output its argument verbatim.
66690
66691 2001-02-28  Paul Eggert  <eggert@twinsun.com>
66692
66693         * lib/Makefile.am (libfetish_a_SOURCES):
66694         Add dup-safer.c, fopen-safer.c.
66695         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
66696
66697         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
66698         * lib/unistd-safer.h: New files.
66699
66700 2001-02-25  Paul Eggert  <eggert@twinsun.com>
66701
66702         The mkstemp replacement is taken from glibc 2.2.2, with some
66703         portability fixes for use outside glibc, as follows:
66704
66705         * lib/tempname.c (struct_stat64): New macro.
66706         (direxists, __gen_tempname): Use it.
66707         This avoids a portability problem with Solaris 8.
66708
66709         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
66710         (<stddef.h>, <stdint.h>, <string.h>):
66711         Include only if STDC_HEADERS || _LIBC.
66712         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
66713         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
66714         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
66715         (__set_errno): Define this macro if <errno.h> doesn't.
66716         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
66717         Define these macros if <stdio.h> doesn't.
66718         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
66719         Define these macros if <sys/stat.h>
66720         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
66721         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
66722         __xstat64): Define if not _LIBC.
66723         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
66724         (__gen_tempname): Invoke gettimeofday only if
66725         HAVE_GETTIMEOFDAY || _LIBC;
66726         otherwise, fall back on plain "time".
66727         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
66728
66729         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
66730
66731         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
66732
66733 2001-02-18  Paul Eggert  <eggert@twinsun.com>
66734
66735         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
66736
66737 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66738
66739         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
66740         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
66741         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
66742         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66743
66744 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66745
66746         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
66747         Remove workaround macros for hosts that have mbrtowc but not
66748         mbstate_t, as we now insist on proper declarations for both
66749         before using mbrtowc.
66750
66751 2001-02-17  Jim Meyering  <meyering@lucent.com>
66752
66753         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
66754         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
66755         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
66756         UnixWare 7.1.1.
66757
66758         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
66759         rather than AC_CACHE_VAL.
66760
66761 2001-02-17  Jim Meyering  <meyering@lucent.com>
66762
66763         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
66764         around included file name.
66765
66766         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
66767
66768         * lib/strftime.c: Update from GNU libc (the only changes were to
66769         comments).
66770
66771 2001-02-17  Jim Meyering  <meyering@lucent.com>
66772
66773         * lib/regex.c: Update from libc.
66774
66775 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
66776
66777         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
66778         clash.
66779
66780 2001-02-16  Paul Eggert  <eggert@twinsun.com>
66781
66782         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
66783         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
66784         Reported by Mark Hounschell via Paul Eggert.
66785
66786 2001-02-07  Jim Meyering  <meyering@lucent.com>
66787
66788         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
66789
66790 2001-02-05  Jim Meyering  <meyering@lucent.com>
66791
66792         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
66793         it includes the patch required for `large file' support with at least
66794         HP-UX's 10.20 /bin/cc.
66795
66796 2001-02-03  Jim Meyering  <meyering@lucent.com>
66797
66798         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
66799         AS_IF, now that it works once again (mysteriously).
66800         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66801
66802 2001-01-30  Jim Meyering  <meyering@lucent.com>
66803
66804         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
66805         * m4/chown.m4: Rename conftestchown to conftest.chown.
66806         * m4/rename.m4: s/conftestdir/conftest.d1/ and
66807         s/conftestdir2/conftest.d2/.
66808         * m4/utimes.m4: s/conftestdata/conftest.data/
66809         Inspired by Pavel Roskin's change in autoconf.
66810
66811 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
66812
66813         * lib/config.charset: Update for FreeBSD 4.2.
66814
66815 2001-01-27  Jim Meyering  <meyering@lucent.com>
66816
66817         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
66818         a use of AS_IF.
66819         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66820
66821 2001-01-26  Jim Meyering  <meyering@lucent.com>
66822
66823         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
66824         quotearg.c includes it.
66825
66826 2001-01-26  Jim Meyering  <meyering@lucent.com>
66827
66828         * lib/quotearg.c: Include stddef.h.
66829         * lib/quote.c: Include stddef.h.
66830         Reported by Axel Kittenberger.
66831
66832         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
66833         line in double quotes so that it evokes a better diagnostic.
66834         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
66835         Reported by Axel Kittenberger.
66836
66837 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
66838
66839         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
66840         as if it was a `charset'.
66841
66842 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66843
66844         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
66845         has const.
66846
66847 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66848
66849         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
66850         to avoid a warning.  Add back 'const' to inptr.
66851
66852 2001-01-20  Jim Meyering  <meyering@lucent.com>
66853
66854         Be sure that headers are checked before used in code compiled
66855         for the type checks.
66856         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
66857         In place of that, invoke jm_CHECK_ALL_TYPES.
66858         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
66859         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
66860         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
66861         The check for ssize_t was mistakenly run before the test for unistd.h.
66862
66863         The configure-time check for stdbool.h was missing.
66864         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
66865         (jm_PREREQ_HASH): New function.
66866
66867 2001-01-17  Jim Meyering  <meyering@lucent.com>
66868
66869         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
66870         for autoconf-2.49c.
66871         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
66872
66873 2001-01-16  Jim Meyering  <meyering@lucent.com>
66874
66875         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
66876         From Bruno Haible.
66877
66878 2001-01-14  Jim Meyering  <meyering@lucent.com>
66879
66880         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
66881         foo and bar.  Create conftestdir/ in the script, not in the C code.
66882         Remove directories in the script, not in the C code.
66883         Remove conftestdir{,2} before trying to create the directory.
66884         Make the entire configure script fail if the mkdir fails.
66885
66886 2001-01-14  Jim Meyering  <meyering@lucent.com>
66887
66888         * lib/rename.c: New file.  From Volker Borchert.
66889         Include stdlib.h, string.h or strings.h, and xalloc.h.
66890         Use strip_trailing_slashes rather than open-coding it.
66891
66892 2001-01-03  Paul Eggert  <eggert@twinsun.com>
66893
66894         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
66895
66896 2001-01-03  Jim Meyering  <meyering@lucent.com>
66897
66898         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
66899         of local `inptr' to avoid warning with some system declarations of
66900         iconv.
66901
66902 2001-01-02  Volker Borchert  <bt@teknon.de>
66903
66904         * m4/rename.m4: New file.
66905         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
66906
66907 2001-01-01  Jim Meyering  <meyering@lucent.com>
66908
66909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
66910         even on systems with utmpx.h.  It's necessary for the declaration of
66911         utmp's ut_user member.  Reported by Andreas Jaeger.
66912
66913         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
66914         available. They are required for the declarations of getgrgid and
66915         getpwuid resp.
66916         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
66917         Reported by Andreas Jaeger.
66918
66919 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66920
66921         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66922         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66923         so `make install' also works in VPATH builds.
66924
66925 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66926
66927         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66928         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66929         can be used in subdirectories.
66930
66931 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66932
66933         * lib/modechange.c: Do not assume that mode_t uses the
66934         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66935         the other-execute bit of FOO even if S_IXOTH != 1.
66936
66937         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66938         WOTH, XOTH, ALLM): New macros.
66939         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66940          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66941         Use them.
66942         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66943         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66944         (mode_compile):
66945         No need to use uintmax_t; unsigned long is long enough.
66946         Don't bother to get suffix since we don't use it.
66947
66948 2000-12-26  Jim Meyering  <meyering@lucent.com>
66949
66950         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66951         better with autoheader.
66952
66953 2000-12-24  Jim Meyering  <meyering@lucent.com>
66954
66955         * lib/hash.c (is_prime): Return explicit boolean values.
66956         (hash_get_first): Return NULL to appease Irix5.6's 89.
66957         Reported by Nelson Beebe.
66958
66959 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
66960
66961         * lib/localcharset.c (locale_charset): Add support for Win32.
66962
66963 2000-12-18  Paul Eggert  <eggert@twinsun.com>
66964
66965         * lib/physmem.h, lib/physmem.c: New files.
66966
66967         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
66968         (noinst_HEADERS): Add physmem.h.
66969
66970         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
66971         't' for compatibility with Solaris 8 sort.
66972
66973 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
66974
66975         * lib/config.charset: Add support for BeOS.
66976
66977 2000-12-17  Jim Meyering  <meyering@lucent.com>
66978
66979         * m4/dos.m4 (jm_AC_DOS): New file and macro.
66980         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
66981
66982 2000-12-16  Jim Meyering  <meyering@lucent.com>
66983
66984         This bug had a serious impact on chown: `chown N:M FILE' (for integer
66985         N and M) would have treated it like `chown N:N FILE'.
66986
66987         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
66988
66989 2000-12-16  Jim Meyering  <meyering@lucent.com>
66990
66991         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
66992         SHELLS_FILE to a file name that's useful on djgpp systems.
66993         Include stdlib.h.
66994         (ADDITIONAL_DEFAULT_SHELLS): Define.
66995         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
66996         Based mostly on a patch from Prashant TR.
66997
66998 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
66999
67000         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67001         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67002         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67003
67004 2000-12-08  Andreas Schwab  <schwab@suse.de>
67005
67006         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67007         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67008
67009 2000-12-07  Jim Meyering  <meyering@lucent.com>
67010
67011         * lib/stripslash.c (ISSLASH): Define.
67012         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67013         `/'.
67014         From Prashant TR.
67015
67016         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67017         (dir_name_r): Declare this function as static.
67018         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67019         manifest itself on a name containing a mix of slashes and
67020         backslashes.
67021         Make this function work with names starting with a DOS-style
67022         drive letter and colon prefix.
67023         (dir_name): Append `.' if necessary.
67024         Based mostly on patches from Prashant TR and Eli Zaretskii.
67025
67026         * lib/dirname.h (dir_name_r): Remove prototype.
67027
67028 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67029
67030         * m4/off_t-format.m4: Remove this file.
67031         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67032
67033 2000-12-06  Jim Meyering  <meyering@lucent.com>
67034
67035         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67036         replacement strtoull, we may well need the replacement strtoul, too.
67037         Check for declarations of strtoul and strtoull.
67038         Check for strtol.  Mainly as a cue to cause automake to include
67039         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67040         Check for limits.h -- strtol.c needs it.
67041
67042 2000-12-05  Jim Meyering  <meyering@lucent.com>
67043
67044         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67045
67046 2000-12-04  Jim Meyering  <meyering@lucent.com>
67047
67048         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67049         Also include memory.h, stdlib.h, unistd.h if appropriate.
67050         Reported by Andreas Jaeger (conflicting declaration of malloc).
67051
67052 2000-12-02  Jim Meyering  <meyering@lucent.com>
67053
67054         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67055         * m4/jm-macros.m4 (jm_MACROS): require it.
67056
67057 2000-12-02  Jim Meyering  <meyering@lucent.com>
67058
67059         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67060
67061 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67062
67063         * lib/memrchr.c: Include <config.h> before any system include file.
67064
67065 2000-11-30  Jim Meyering  <meyering@lucent.com>
67066
67067         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67068
67069 2000-11-30  Jim Meyering  <meyering@lucent.com>
67070
67071         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67072
67073 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67074
67075         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67076
67077 2000-11-26  Jim Meyering  <meyering@lucent.com>
67078
67079         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67080
67081 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67082
67083         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67084         size of (size_t) -1; it's not portable.
67085
67086 2000-11-17  Jim Meyering  <meyering@lucent.com>
67087
67088         * lib/strstr.c: Update from GNU libc.
67089
67090 2000-11-17  Akim Demaille  <akim@epita.fr>
67091
67092         * lib/obstack.h: Formatting changes.
67093         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67094         prevent type checking.
67095         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67096         cast the value to (void *): assigning a `foo *' to a `void *'
67097         variable is valid.
67098         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67099
67100 2000-11-16  Jim Meyering  <meyering@lucent.com>
67101
67102         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67103
67104 2000-11-11  Jim Meyering  <meyering@lucent.com>
67105
67106         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67107
67108 2000-11-10  Jim Meyering  <meyering@lucent.com>
67109
67110         * lib/obstack.h: Update from GNU libc.
67111         * lib/obstack.c: Likewise.
67112
67113 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67114
67115         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67116
67117 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67118
67119         * lib/getusershell.c (setusershell): Use rewind rather than
67120         fseek/fseeko, to avoid configuration hassles with fseeko.
67121         Don't bother opening SHELLS_FILE if shellstream is NULL;
67122         it's not necessary.
67123
67124 2000-11-05  Jim Meyering  <meyering@lucent.com>
67125
67126         * lib/makepath.h (make_dir): Declare.
67127         * lib/makepath.c (make_dir): Remove `static' attribute.
67128         Tweak a comment.
67129
67130 2000-11-04  Jim Meyering  <meyering@lucent.com>
67131
67132         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67133
67134 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67135
67136         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67137         last one in a bucket, advance to the next bucket.
67138
67139 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67140
67141         * lib/fnmatch.c: Do not comment out all the code if we are using
67142         the GNU C library, because in some cases we are replacing buggy
67143         code in the GNU C library itself.
67144
67145 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67146
67147         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67148         (regex_compile): Catch bogus \(\1\).
67149
67150 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67151
67152         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67153         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67154         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67155
67156 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67157
67158         * lib/error.h, getline.h, modechange.h:
67159         Remove "2000" from Copyright line, as the file hasn't been
67160         changed this year other than in the copyright notice.
67161
67162         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67163         was changed this year.
67164
67165 2000-10-29  Jim Meyering  <meyering@lucent.com>
67166
67167         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67168         renaming.
67169         * m4/ls-mntd-fs.m4: Likewise
67170
67171 2000-10-29  Jim Meyering  <meyering@lucent.com>
67172
67173         * lib/xstat.in: Fix grammar in comment.
67174
67175 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67176
67177         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67178         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67179         doesn't define __restrict_arr.
67180
67181 2000-10-28  Jim Meyering  <meyering@lucent.com>
67182
67183         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67184         (jm_PREREQ_MEMCHR): New function.
67185
67186 2000-10-28  Jim Meyering  <meyering@lucent.com>
67187
67188         * lib/memchr.c: Update from libc.
67189         Adjust for portability:
67190         [HAVE_STDLIB_H]: Include stdlib.h.
67191         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67192         Undef __memchr, too.
67193         [!weak_alias]: Define __memchr to memchr.
67194
67195         * lib/regex.c: Update from libc.
67196         * lib/regex.h: Likewise.
67197         * lib/getopt1.c: Likewise.
67198         * lib/memcmp.c: Likewise.
67199
67200         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67201         Avoid using fseek, when possible -- it's broken by design.
67202         Patch by Ulrich Drepper.
67203
67204 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67205
67206         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67207         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67208         Giving in to popular pressure to shut up the compiler with casts.
67209
67210 2000-10-26  Jim Meyering  <meyering@lucent.com>
67211
67212         * lib/strftime.c: Update from libc.
67213
67214 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67215
67216         * regex.c: More `unsigned char' -> `re_char' changes.
67217         Also change several `int' into `re_wchar_t'.
67218         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67219         (PUSH_FAILURE_POINTER): Don't cast any more.
67220         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67221         We want GCC to complain, since this piece of code makes
67222         re_match non-reentrant, which *should* be fixed.
67223         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67224         (EXTEND_BUFFER): Use RETALLOC.
67225         (SET_LIST_BIT): Don't cast.
67226         (re_wchar_t): New type.
67227         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67228         that those two functions will always properly return.
67229         (IMMEDIATE_QUIT_CHECK): Cast to void.
67230         (analyse_first): Use recursion rather than an explicit stack.
67231         (re_compile_fastmap): Can't fail anymore.
67232         (re_search_2): Don't check re_compile_fastmap for failure.
67233         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67234         Now also sets the new value (passed in a new argument).
67235         (re_match_2_internal): Use it.
67236         Also, use a new var `reg' of type size_t when looping through regs
67237         rather than reuse the inappropriate `mcnt'.
67238
67239 2000-10-25  Jim Meyering  <meyering@lucent.com>
67240
67241         * lib/obstack.c: Update from libc.
67242
67243 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67244
67245         * regex.c (regex_compile): Change the way of handling a range from
67246         a char less than 256 to a char not less than 256.
67247
67248 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67249
67250         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67251         NT-Emacs only.
67252         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67253         so that re_search functions only quit when callers expect them to.
67254
67255 2000-10-23  Jim Meyering  <meyering@lucent.com>
67256
67257         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67258         wrong.  That set_locale call must not have any side effects.
67259         From Paul Eggert.
67260
67261 2000-10-22  Jim Meyering  <meyering@lucent.com>
67262
67263         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67264         [CYCLIC]: Remove now-unused definition.
67265
67266         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67267         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67268         Suggestion from Ulrich Drepper.
67269
67270 2000-10-21  Jim Meyering  <meyering@lucent.com>
67271
67272         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67273         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67275
67276 2000-10-21  Jim Meyering  <meyering@lucent.com>
67277
67278         * lib/dirname.c (memrchr): Declare if necessary.
67279         (dir_name): Remove the restriction that there be no
67280         trailing slashes.  Now, this code skips past them, effectively
67281         ignoring them.
67282         [TEST_DIRNAME] (main): New unit tests.
67283
67284         * lib/memrchr.c: New file from GNU libc.
67285         Undef __memrchr, too.
67286         [!weak_alias]: Define __memrchr to memrchr.
67287         Guard weak_alias use with `#ifdef weak_alias'.
67288
67289 2000-10-21  Jim Meyering  <meyering@lucent.com>
67290
67291         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67292         (dir_name): Use dir_name_r.
67293         * lib/dirname.h (dir_name_r): Declare it.
67294
67295 2000-10-17  Jim Meyering  <meyering@lucent.com>
67296
67297         * lib/quote.h (PARAMS): Define and use.
67298         Reported by Akim Demaille.
67299
67300         * lib/getopt.c: Update from libc.
67301
67302 2000-10-16  Jim Meyering  <meyering@lucent.com>
67303
67304         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67305         setlocale.
67306         From Jan Fedak.
67307
67308 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67309
67310         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67311
67312 2000-09-25  Jim Meyering  <meyering@lucent.com>
67313
67314         * lib/md5.h (rol): Define (from GnuPG).
67315
67316         * lib/sha.c: Give credit (GnuPG) where due.
67317         (M): Use rol rather than open-coding it.
67318         Add a FIXME comment.
67319
67320 2000-09-21  Jim Meyering  <meyering@lucent.com>
67321
67322         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67323         Reported by Michael Stone.
67324
67325 2000-09-20  Jim Meyering  <meyering@lucent.com>
67326
67327         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67328         (noinst_HEADERS): Add sha.h.
67329         Based on code from Scott G. Miller and from GnuPG.
67330
67331 2000-09-18  Jim Meyering  <meyering@lucent.com>
67332
67333         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67334         LIBS. Otherwise, everyone ends up linking with -lelf for some
67335         configurations.
67336         Reported by Mike Stone.
67337
67338 2000-09-15  Jim Meyering  <meyering@lucent.com>
67339
67340         * lib/regex.c: Update from libc.
67341
67342 2000-09-10  Jim Meyering  <meyering@lucent.com>
67343
67344         * lib/getopt.c (_getopt_internal): Update from glibc.
67345
67346 2000-09-09  Jim Meyering  <meyering@lucent.com>
67347
67348         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67349         think it should be used as a general replacement for isascii.
67350         * lib/fnmatch.c: Likewise.
67351         * lib/mbswidth.c: Likewise
67352         * lib/regex.c: Likewise.
67353
67354         Don't use atoi.
67355         * lib/userspec.c: Include sys/param.h and limits.h.
67356         Include xstrtol.h.
67357         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67358         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67359         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67360         UID, GID.  Check range.
67361
67362 2000-09-06  Jim Meyering  <meyering@lucent.com>
67363
67364         * lib/getopt.c (_getopt_internal): Update from glibc.
67365
67366 2000-08-30  Jim Meyering  <meyering@lucent.com>
67367
67368         * lib/strftime.c: Merge in changes from GNU libc.
67369
67370 2000-08-26  Jim Meyering  <meyering@lucent.com>
67371
67372         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
67373         * m4/fpending.m4: New file.
67374
67375 2000-08-26  Jim Meyering  <meyering@lucent.com>
67376
67377         * lib/closeout.c: Include "__fpending.h".
67378         (close_stdout_status): Return right away if there's nothing to flush.
67379
67380         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
67381         * lib/__fpending.c: New file.
67382         * lib/__fpending.h: New file.
67383
67384 2000-08-20  Jim Meyering  <meyering@lucent.com>
67385
67386         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
67387         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
67388         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
67389
67390 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
67391
67392         Improve fileutils installation on systems where running
67393         programs (like install) can't be unlinked.
67394         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
67395         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
67396
67397 2000-08-07  Paul Eggert  <eggert@twinsun.com>
67398
67399         Standardize on "memory exhausted" instead of "Memory exhausted"
67400         or "virtual memory exhausted".
67401         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
67402         "virtual memory exhausted".
67403         * lib/same.c (same_name): Invoke xalloc_die instead of printing
67404         our own message.
67405         * lib/userspec.c (parse_user_spec): Likewise.
67406         * lib/bumpalloc.h: comment fix
67407         * lib/same.c, userspec.c: Include xalloc.h.
67408
67409         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
67410         not char *const and pointing to a constant array.
67411         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
67412         (xrealloc): Comment fix.
67413
67414         * lib/userspec.c (parse_user_spec):
67415         Don't translate a message until just before returning,
67416         to avoid unnecessary translation.
67417
67418 2000-08-07  Jim Meyering  <meyering@lucent.com>
67419
67420         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
67421         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
67422         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
67423         getgroups.c, gethostname.c, getopt.h, group-member.c,
67424         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
67425         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
67426         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
67427         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
67428         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
67429         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
67430         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
67431         yesno.c: Back out Copyright date changes for each file with no change
67432         this year.  This eases coordination with other programs using the same
67433         source code modules.  From Paul Eggert.
67434
67435 2000-08-06  Paul Eggert  <eggert@twinsun.com>
67436
67437         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
67438         not char, for compatibility with glibc 2.1.3 strftime.c.
67439
67440 2000-08-03  Greg McGary  <greg@mcgary.org>
67441
67442         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
67443         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
67444         (EXTEND_BUFFER): Use them.
67445
67446 2000-08-01  Jim Meyering  <meyering@lucent.com>
67447
67448         * lib/dirname.c (ISSLASH): Define.
67449         (BACKSLASH_IS_PATH_SEPARATOR): Define.
67450         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
67451         both `\' and `/' may be use as path separators.
67452         Based on a patch from Prashant TR.
67453
67454 2000-07-31  Paul Eggert  <eggert@twinsun.com>
67455
67456         * lib/quotearg.c (quotearg_n_options): Don't make the initial
67457         slot vector a constant, since it might get modified.
67458
67459 2000-07-31  Jim Meyering  <meyering@lucent.com>
67460
67461         * lib/xmalloc.c: Use `virtual memory exhausted', not
67462         `Memory exhausted'.
67463         * lib/obstack.c (print_and_abort): Likewise.
67464
67465 2000-07-30  Paul Eggert  <eggert@twinsun.com>
67466
67467         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
67468         buffer, so that the caller can always quote one small
67469         component of a "memory exhausted" message in slot 0.
67470         From a suggestion by Jim Meyering.
67471
67472 2000-07-30  Jim Meyering  <meyering@lucent.com>
67473
67474         * lib/makepath.c (make_path): Quote the other instance, too.
67475
67476         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
67477         (STATIC_BUF_SIZE): Define.
67478         (quotearg_n_options): Use only statically allocated storage when
67479         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
67480         than STATIC_BUF_SIZE.
67481
67482 2000-07-29  Jim Meyering  <meyering@lucent.com>
67483
67484         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
67485         * lib/dirname.c (dir_name): Likewise.
67486
67487         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
67488         `/'.
67489
67490         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
67491         (dir_name): Assert that there are no trailing slashes.
67492
67493 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
67494
67495         * lib/mbswidth.h (mbswidth): Add a flags argument.
67496         (mbswidth): New declaration.
67497         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
67498         * lib/mbswidth.c (mbswidth): Add a flags argument.
67499         (mbsnwidth): New function.
67500
67501 2000-07-24  Jim Meyering  <meyering@lucent.com>
67502
67503         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
67504
67505 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67506
67507         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
67508
67509 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67510
67511         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
67512         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
67513         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
67514         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
67515         invoke multibyte primitives.
67516
67517 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67518
67519         * lib/quotearg.c:
67520         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
67521         so that mbstate_t is always defined.
67522
67523         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
67524         be 1 in at least one GCC installation, and this configuration
67525         error is likely to be common.  Ignoring MB_LEN_MAX hurts
67526         performance on hosts that have mbrtowc but have only unibyte
67527         locales, but I assume these hosts are rare.
67528
67529 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67530
67531         * lib/mbswidth.c (_XOPEN_SOURCE):
67532         Don't define; this causes problems on Solaris 7.
67533         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
67534
67535 2000-07-23  Jim Meyering  <meyering@lucent.com>
67536
67537         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
67538         too: getgrgid, getpwuid, getuid.
67539
67540 2000-07-23  Jim Meyering  <meyering@lucent.com>
67541
67542         * lib/basename.c (base_name): Add an assertion.
67543
67544 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
67545
67546         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
67547         shadow its mbsinit function.
67548
67549 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67550
67551         * lib/mbswidth.h: New file.
67552         * lib/mbswidth.c: New file.
67553         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
67554         (noinst_HEADERS): Add mbswidth.h.
67555
67556 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67557
67558         * lib/config.charset: Add support for FreeBSD. Improve support for
67559         HP-UX and IRIX 6.
67560
67561 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
67562
67563         * m4/mbswidth.m4: New file.
67564         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
67565
67566 2000-07-15  Jim Meyering  <meyering@lucent.com>
67567
67568         * lib/makepath.c: Include quote.h.
67569         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
67570         corresponding argument in a `quote (...)' call.
67571         Give better diagnostics.
67572
67573         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
67574         (noinst_HEADERS): Add quote.h.
67575
67576         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
67577         from tar's src/misc.c.
67578         * lib/quote.h: New file.  Prototypes for same.
67579
67580 2000-07-14  Paul Eggert  <eggert@twinsun.com>
67581
67582         From a suggestion by Bruno Haible.
67583         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
67584         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
67585         to decide whether to define the BeOS workaround macro;
67586         this adjusts to the change to AC_MBSTATE_T.
67587
67588 2000-07-14  Jim Meyering  <meyering@lucent.com>
67589
67590         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
67591         jm_AC_TYPE_UINTMAX_T.
67592
67593 2000-07-13  Paul Eggert  <eggert@twinsun.com>
67594
67595         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
67596
67597         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
67598         quotearg_buffer_restyled): Add support for
67599         clocale_quoting_style.  Undo previous change to
67600         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
67601         and "{RIGHT QUOTATION MARK}" msgids.
67602
67603 2000-07-10  Paul Eggert  <eggert@twinsun.com>
67604
67605         From a suggestion by Bruno Haible.
67606         * m4/mbstate_t.m4 (AC_MBSTATE_T):
67607         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
67608         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
67609         and mbstate_t, to a single-part test that simply defines mbstate_t.
67610         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
67611         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
67612
67613 2000-07-10  Jim Meyering  <meyering@lucent.com>
67614
67615         * m4/strerror_r.m4: Mirror the correction made in autoconf.
67616
67617         * m4/gnu-source.m4: Output to confdefs.h directly.
67618         Suggestion from Akim Demaille.
67619
67620 2000-07-09  Paul Eggert  <eggert@twinsun.com>
67621
67622         The old behavior of quoting `like this' doesn't look good with
67623         newer, ISO-style fonts.  See:
67624         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
67625
67626         Instead, quote "like this" by default.  Let the translator
67627         tailor the locale-specific quoting behavior by providing
67628         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
67629
67630         * lib/quotearg.c (N_): New macro.
67631         (gettext_default): New function.
67632         (quotearg_buffer_restyled): Use
67633         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
67634         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
67635
67636 2000-07-09  Jim Meyering  <meyering@lucent.com>
67637
67638         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
67639         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
67640
67641         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
67642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
67643
67644 2000-07-09  Jim Meyering  <meyering@lucent.com>
67645
67646         * lib/Most files: Update copyright dates to include 2000.
67647
67648 2000-07-08  Jim Meyering  <meyering@lucent.com>
67649
67650         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
67651         if not defined.
67652         (xgethostname): Remove now-unnecessary #ifdef.
67653         Move declaration of `err' into loop where it's used.
67654
67655 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67656         and Bruno Haible  <haible@clisp.cons.org>
67657
67658         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
67659         only if the test for an object-type mbstate_t fails.  This
67660         prevents us from mistakenly reporting that mbstate_t is a
67661         system object type after we "#define mbstate_t int" to work
67662         around its lack.
67663
67664 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67665         and Bruno Haible  <haible@clisp.cons.org>
67666
67667         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
67668
67669 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67670
67671         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
67672         to strerror_r.
67673         Include <ctype.h> for use of isalpha.
67674
67675 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67676
67677         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
67678         by allocating a larger buffer. Test the gethostname return value for
67679         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
67680         returns an error and ENAMETOOLONG isn't defined.
67681
67682 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67683
67684         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
67685         dimension.
67686
67687 2000-07-04  Jim Meyering  <meyering@lucent.com>
67688
67689         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
67690         of the deprecated AC_CHECKING.
67691
67692 2000-07-04  Jim Meyering  <meyering@lucent.com>
67693
67694         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
67695         Reported by Bruno Haible.
67696
67697 2000-07-04  Jim Meyering  <meyering@lucent.com>
67698
67699         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
67700         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
67701         lacks mbrtowc.
67702
67703 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67704
67705         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
67706         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
67707
67708 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67709         and Bruno Haible  <haible@clisp.cons.org>
67710
67711         * lib/quotearg.c (mbrtowc):
67712         Assign to *pwc, and return 1 only if result is nonzero.
67713         (iswprint): Use ISPRINT when substituting our own mbrtowc.
67714
67715 2000-07-03  Jim Meyering  <meyering@lucent.com>
67716
67717         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
67718
67719 2000-07-03  Jim Meyering  <meyering@lucent.com>
67720
67721         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
67722         This is necessary to get a definition of e.g., UTMP_FILE on
67723         HP-UX 10.20.
67724         From Bob Proulx.
67725
67726 2000-07-02  Jim Meyering  <meyering@lucent.com>
67727
67728         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
67729
67730         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
67731         AC_LIBOBJ(function_name).
67732         * m4/chown.m4: Likewise.
67733         * m4/fnmatch.m4: Likewise.
67734         * m4/ftruncate.m4: Likewise.
67735         * m4/getgroups.m4: Likewise.
67736         * m4/getline.m4: Likewise.
67737         * m4/group-member.m4: Likewise.
67738         * m4/jm-macros.m4: Likewise.
67739         * m4/lstat.m4: Likewise.
67740         * m4/malloc.m4: Likewise.
67741         * m4/memcmp.m4: Likewise.
67742         * m4/nanosleep.m4: Likewise.
67743         * m4/putenv.m4: Likewise.
67744         * m4/realloc.m4: Likewise.
67745         * m4/regex.m4: Likewise.
67746         * m4/stat.m4: Likewise.
67747         * m4/strftime.m4: Likewise.
67748
67749 2000-07-02  Jim Meyering  <meyering@lucent.com>
67750
67751         * lib/quotearg.c (mbstate_t): Don't define here.
67752
67753 2000-07-02  Jim Meyering  <meyering@lucent.com>
67754
67755         * lib/nanosleep.c (SIGCONT): Define if not already defined.
67756
67757 2000-07-01  Jim Meyering  <meyering@lucent.com>
67758
67759         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
67760
67761 2000-07-01  Jim Meyering  <meyering@lucent.com>
67762
67763         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
67764         problem.
67765
67766 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67767
67768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
67769         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
67770
67771 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67772
67773         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
67774         per change in ../m4/ls-mntd-fs.m4.
67775         (read_filesystem_list): Ignore symbolic links.
67776
67777 2000-06-29  Jim Meyering  <meyering@lucent.com>
67778
67779         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
67780         for declaration of strcmp.
67781
67782         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
67783
67784         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
67785         Avoid warning by casting result to `char *' to remove `const'.
67786
67787 2000-06-28  Jim Meyering  <meyering@lucent.com>
67788
67789         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
67790         included by quotearg.c, for which we perform this test.  From
67791         Bruno Haible.
67792
67793 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67794
67795         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
67796         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
67797         <utmpx.h> exists, put readutmp.o into LIBOBJS.
67798
67799 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67800
67801         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
67802
67803 2000-06-26  Paul Eggert  <eggert@twinsun.com>
67804
67805         savedir now sets errno on failure and invokes xmalloc to get memory.
67806         Fix a couple of other minor bugs while we're at it.
67807
67808         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
67809         (NAMLEN): Remove macro.
67810         (malloc, realloc): Remove decls.
67811         (stpcpy): Likewise.
67812         ("xalloc.h"): Include.
67813         (NAME_SIZE_DEFAULT): New macro.
67814         (savedir): Use xmalloc / xrealloc to allocate memory.
67815         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
67816         Skip "" directory entries.
67817         Use strlen to calculate directory entry length, since the old method
67818         is rarely used these days and isn't worth supporting.
67819         Don't use a pointer after freeing it.
67820         Check for integer overflow when calculating allocation size.
67821         Use memcpy to copy entries, instead of stpcpy.
67822         Set errno properly when returning NULL.
67823         Check for readdir error.
67824
67825 2000-06-26  Jim Meyering  <meyering@lucent.com>
67826
67827         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
67828
67829 2000-06-25  Jim Meyering  <meyering@lucent.com>
67830
67831         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
67832         Linux header bug when _XOPEN_SOURCE is defined to 500.
67833
67834 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67835
67836         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
67837         deficiency.
67838
67839 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67840
67841         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
67842         Include xalloc.h.
67843         Don't include <stdlib.h>.  Don't declare malloc, realloc.
67844
67845 2000-06-24  Jim Meyering  <meyering@lucent.com>
67846
67847         * m4/strerror_r.m4: Revive this file -- to try out an experimental
67848         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
67849         for which strerror does return char*, but which lacks a conveniently
67850         accessible declaration of the function.  If the compile-test says
67851         strerror_r doesn't work, then resort to a `run'-test that works on
67852         BeOS and segfaults on DEC Unix.
67853
67854 2000-06-24  Jim Meyering  <meyering@lucent.com>
67855
67856         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
67857
67858 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67859
67860         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
67861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
67862
67863 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67864
67865         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
67866         (mbrtowc, mbstate_t): Define substitutes if
67867         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
67868         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
67869         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
67870
67871 2000-06-23  Jim Meyering  <meyering@lucent.com>
67872
67873         * m4/afs.m4: Add missing AC_MSG_RESULT.
67874         Reported by Bruno Haible.
67875
67876         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
67877         Suggestion from Bruno Haible.
67878
67879 2000-06-23  Jim Meyering  <meyering@lucent.com>
67880
67881         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
67882
67883 2000-06-21  Jim Meyering  <meyering@lucent.com>
67884
67885         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
67886
67887 2000-06-21  Jim Meyering  <meyering@lucent.com>
67888
67889         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
67890         (noinst_HEADERS): Add getstr.h.
67891
67892         * lib/getline.c (getstr): Move into a separate file.
67893         * lib/getstr.c (getstr): New file, extracted from getline.c, with
67894         the following changes: new parameter, delim2; both delim[12]
67895         parameters have type `int', not `char'.  The latter would lose
67896         with 8-bit delimiters.
67897         * lib/getstr.h: New file.
67898
67899 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67900
67901         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
67902         than 1024, return a memory chunk of least possible size, instead
67903         of size PATH_MAX + 2. In the loop, increment the size proportionally.
67904         Use free/xmalloc instead of xrealloc to avoid copying for very long
67905         paths.
67906
67907 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67908
67909         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
67910         the empty string.
67911
67912 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67913
67914         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
67915         address, not strdup.  Include <stdlib.h> and don't declare free().
67916
67917 2000-06-19  Jim Meyering  <meyering@lucent.com>
67918
67919         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67920
67921 2000-06-18  Jim Meyering  <meyering@lucent.com>
67922
67923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67924
67925         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67926         `checking whether...' message to be consistent with that of the
67927         lstat test.
67928
67929 2000-06-18  Jim Meyering  <meyering@lucent.com>
67930
67931         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67932         Besides, these days every porting target provides a mkdir function.
67933
67934         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67935         needed. (this snippet comes from src/system.h).
67936
67937 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67938
67939         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67940
67941 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67942
67943         * lib/human.c (adjust_value): New function.
67944         (human_readable_inexact): Apply rounding style even when
67945         printing approximate values.
67946
67947 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67948
67949         * lib/human.c (human_readable_inexact): Allow an input block
67950         size that is not a multiple of the output block size, and vice versa.
67951         Reported by Piergiorgio Sartor.
67952
67953 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67954
67955         * lib/getdate.y (get_date): Apply relative times after time
67956         zone indicator, not before.  Reported by Todd A. Jacobs.
67957
67958 2000-06-13  Jim Meyering  <meyering@lucent.com>
67959
67960         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
67961
67962         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
67963
67964 2000-06-12  Paul Eggert  <eggert@twinsun.com>
67965
67966         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
67967
67968 2000-06-12  Jim Meyering  <meyering@lucent.com>
67969
67970         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
67971         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
67972         optional argument.
67973         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
67974         the optional argument, `lib'.
67975
67976 2000-06-08  Jim Meyering  <meyering@lucent.com>
67977
67978         * m4/largefile.m4: Remove file (now that it's part of autoconf).
67979
67980 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67981
67982         Rewrite largefile configuration so that we don't need to run
67983         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
67984         AC_CANONICAL_HOST in configure.in -- jmm]
67985
67986         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
67987         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
67988         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
67989         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
67990         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
67991         All uses changed.
67992         Instead of inspecting the output of getconf, try to compile the
67993         test program without and with the macro definition.
67994         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
67995         for getconf.  Instead, check for the needed flags by compiling
67996         test programs.
67997
67998 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67999
68000         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68001
68002 2000-06-04  Jim Meyering  <meyering@lucent.com>
68003
68004         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68005         SunOS 4.1.4 for which gid_t is an unsigned type.
68006
68007 2000-06-03  Jim Meyering  <meyering@lucent.com>
68008
68009         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68010         now that autoconf requires that.
68011
68012         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68013         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68014         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68015
68016 2000-06-03  Jim Meyering  <meyering@lucent.com>
68017
68018         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68019
68020 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68021
68022         * m4/glibc21.m4: New file.
68023         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68024
68025 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68026
68027         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68028         newer, don't install charset.alias.
68029         * lib/config.charset: Change the Linux/glibc rules so they become empty
68030         on glibc-2.1 or newer.
68031
68032 2000-06-02  Jim Meyering  <meyering@lucent.com>
68033
68034         * lib/mountlist.c: Back out last change.  Instead, do this...
68035         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68036         me_dummy member using the same `ignore'-testing code.
68037         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68038         fs_type strings.
68039         From Mark D. Roth.
68040
68041 2000-05-29  Jim Meyering  <meyering@lucent.com>
68042
68043         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68044         mounts with the `ignore' attribute.  Based on a patch from
68045         Mark D. Roth.
68046
68047 2000-05-28  Jim Meyering  <meyering@lucent.com>
68048
68049         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68050         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68051         * m4/stat.m4: Likewise.
68052         * m4/lstat.m4: Likewise.
68053         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68054
68055         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68056         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68057
68058 2000-05-26  Jim Meyering  <meyering@lucent.com>
68059
68060         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68061
68062 2000-05-24  Jim Meyering  <meyering@lucent.com>
68063
68064         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68065         autoconf requires that.
68066         * m4/lib-check.m4: Likewise.
68067         * m4/jm-macros.m4: Likewise.
68068         * m4/strftime.m4: Likewise.
68069
68070         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68071         AC_CHECK_DECLS, now that autoconf requires that.
68072
68073 2000-05-22  Jim Meyering  <meyering@lucent.com>
68074
68075         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68076         * m4/lstat.m4: Likewise.
68077
68078 2000-05-22  Jim Meyering  <meyering@lucent.com>
68079
68080         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68081
68082 2000-05-20  Jim Meyering  <meyering@lucent.com>
68083
68084         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68085         (jm_PREREQ): Use it.
68086
68087 2000-05-18  Jim Meyering  <meyering@lucent.com>
68088
68089         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68090         back, too, since it may have been modified by allocate_entry.
68091         (hash_delete): Rewrite to use neither the assignment operator
68092         nor the comma operator in an if-expression.
68093
68094 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68095
68096         * lib/closeout.c:
68097         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68098         Remove; no longer needed.
68099         "quotearg.h": Add include.
68100         (file_name): Do not bother to explicitly initialize to NULL; it's less
68101         efficient on some hosts.
68102         (close_stdout_status): Remove test as to whether stdout was already
68103         closed; it breaks for the case "echo x | sort >&-".
68104         Quote file name colons.
68105         Do not assume that _("write error") lacks format strings.
68106
68107 2000-05-15  Jim Meyering  <meyering@lucent.com>
68108
68109         * lib/version-etc.c (version_etc_copyright): Update the copyright
68110         string used in all --version output.
68111
68112 2000-05-14  Jim Meyering  <meyering@lucent.com>
68113
68114         * lib/closeout.c (close_stdout_set_file_name): New function.
68115         (close_stdout_status): Use new file-scoped global.
68116         Return right away if fstat says the stdout file descriptor is invalid.
68117         * lib/closeout.h (close_stdout_set_file_name): Declare.
68118
68119 2000-05-10  Jim Meyering  <meyering@lucent.com>
68120
68121         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68122         (close_stdout_set_status): New function.
68123         * lib/closeout.h (close_stdout_set_status): Declare.
68124
68125 2000-05-09  Jim Meyering  <meyering@lucent.com>
68126
68127         * m4/gettext.m4: Rename this...
68128         * m4/libintl.m4: ...to this.
68129
68130 2000-05-08  Jim Meyering  <meyering@lucent.com>
68131
68132         * lib/long-options.c: Don't include closeout.h.
68133         (parse_long_options): Don't call close_stdout for --version.
68134
68135 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68136
68137         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68138         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68139         2.1.3 bug.  This avoids a clash when files like regex.c define
68140         _GNU_SOURCE.
68141
68142 2000-05-06  Jim Meyering  <meyering@lucent.com>
68143
68144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68145         (AC_REPLACE_FUNCS): Add strnlen.
68146
68147         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68148         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68149
68150         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68151         AC_SEARCH_LIBS call for nanosleep.
68152         (LIB_NANOSLEEP): Set and AC_SUBST.
68153
68154 2000-05-06  Jim Meyering  <meyering@lucent.com>
68155
68156         * lib/strnlen.c: Undefine __strnlen and strnlen.
68157         [!weak_alias]: Define __strnlen to strnlen.
68158
68159         * lib/atexit.c: New file, from libiberty.
68160
68161 2000-05-06  Jim Meyering  <meyering@lucent.com>
68162
68163         * lib/closeout.c (close_stdout_status): Also check for errors on the
68164         stderr stream.
68165
68166 2000-05-05  Jim Meyering  <meyering@lucent.com>
68167
68168         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68169         AC_SEARCH_LIBS call for clock_gettime.
68170         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68171
68172         * m4/search-libs.m4: Update from autoconf.
68173
68174         su doesn't work on Solaris 2.6.
68175         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68176         <shadow.h>.  Reported by Dragos Harabor.
68177
68178 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68179
68180         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68181         memcpy instead of xmalloc, xrealloc, path_concat.
68182         (locale_charset): Treat empty environment variables as absent.
68183         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68184
68185 2000-05-04  Jim Meyering  <meyering@lucent.com>
68186
68187         * lib/getopt.c: Update from glibc.
68188         * lib/obstack.c: Likewise.
68189         * lib/obstack.h: Likewise.
68190         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68191         file
68192
68193         * lib/regex.h: Likewise.
68194         * lib/strndup.c: Likewise.
68195         * lib/strnlen.c: New file, from glibc.
68196
68197 2000-05-03  Jim Meyering  <meyering@lucent.com>
68198
68199         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68200
68201 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68202
68203         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68204         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68205         compile-time test, rather than inspecting host and OS, to
68206         decide whether to define _LARGEFILE_SOURCE.
68207
68208 2000-05-01  Jim Meyering  <meyering@lucent.com>
68209
68210         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68211
68212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68213         Based on a patch from Bruno Haible.
68214
68215 2000-05-01  Jim Meyering  <meyering@lucent.com>
68216
68217         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68218
68219 2000-04-29  Jim Meyering  <meyering@lucent.com>
68220
68221         * lib/path-concat.c: Declare strdup only if it's not defined.
68222         * lib/canon-host.c: Likewise.
68223
68224 2000-04-28  Jim Meyering  <meyering@lucent.com>
68225
68226         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68227         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68228         is included first, then limits.h is included by locale.h by libintl.h.
68229         From John David Anglin.
68230
68231 2000-04-25  Jim Meyering  <meyering@lucent.com>
68232
68233         * lib/makepath.c (S_IRWXUGO): Define.
68234         (make_path): Always perform explicit chmod if MODE specifies any
68235         of the `special' permission bits.  Prompted by a bug report against
68236         install from Mate Wierdl and Joost van Baal.
68237
68238 2000-04-18  Jim Meyering  <meyering@lucent.com>
68239
68240         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68241         (jm_PREREQ): Use it.
68242
68243 2000-04-18  Jim Meyering  <meyering@lucent.com>
68244
68245         * lib/README: New file.
68246
68247         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68248         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68249
68250 2000-04-17  Jim Meyering  <meyering@lucent.com>
68251
68252         Get it right :-)
68253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68254         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68255         Suggestion from Akim Demaille.
68256
68257 2000-04-17  Jim Meyering  <meyering@lucent.com>
68258
68259         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68260         the definition of it to rpl_strftime also defined-away the system's
68261         declaration.
68262
68263 2000-04-15  Jim Meyering  <meyering@lucent.com>
68264
68265         Use `C' to denote so-called `contiguous' files, the same way
68266         that tar does.
68267         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68268         (ftypelet): Use S_ISCTG.
68269         From Michael Deutschmann.
68270
68271 2000-04-14  Jim Meyering  <meyering@lucent.com>
68272
68273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68274         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68275         clobbered.
68276
68277 2000-04-14  Jim Meyering  <meyering@lucent.com>
68278
68279         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68280
68281 2000-04-13  Jim Meyering  <meyering@lucent.com>
68282
68283         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68284         AH_VERBATIM to insert required #ifndef into config.h.in.
68285         Suggestion from Akim Demaille.
68286
68287 2000-04-12  Jim Meyering  <meyering@lucent.com>
68288
68289         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68290         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68291         Christian Krackowizer.
68292
68293         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68294         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68295         (AC_SYS_LARGEFILE): Require.
68296         (AM_C_PROTOTYPES): Require.
68297
68298 2000-04-08  Jim Meyering  <meyering@lucent.com>
68299
68300         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68301         names don't conflict.  Reported by Eli Zaretskii.
68302
68303 2000-04-07  Jim Meyering  <meyering@lucent.com>
68304
68305         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68306         sys/types.h, to work around system header problems on AIX 3.2.5.
68307         From Bruno Haible.
68308
68309 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68310
68311         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68312         bug.  Deal with the different error behavior of Irix iconv.
68313
68314 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68315
68316         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68317         IRIX if the installer said otherwise.
68318
68319 2000-04-05  Jim Meyering  <meyering@lucent.com>
68320
68321         Portability tweaks required for ultrix4.3.
68322         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68323         (jm_CHECK_DECLS): Add getutent to the list of functions.
68324         (_jm_DECL_HEADERS): Add utmpx.h.
68325         From John David Anglin.
68326
68327         * m4/strftime.m4: Back out the 2000-04-02 change.
68328         Instead of that change, simply undefine putenv in the test program.
68329
68330 2000-04-05  Jim Meyering  <meyering@lucent.com>
68331
68332         Portability tweaks required for ultrix4.3.
68333         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68334         getutent.
68335         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68336         * lib/canon-host.c: Declare strdup.
68337         * lib/path-concat.c: Likewise.
68338         From John David Anglin.
68339
68340 2000-04-04  Jim Meyering  <meyering@lucent.com>
68341
68342         Be more DOS 8.3-friendly.
68343         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68344         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68345         * lib/Makefile.am: Reflect renaming.
68346         Reported by Eli Zaretskii.
68347
68348         Use a temporary file name that won't clash with `charset.alias'
68349         in the DOS 8.3 name space.
68350         * lib/Makefile.am (charset_tmp): Define.
68351         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68352         (uninstall-local): Likewise.
68353         Reported by Eli Zaretskii.
68354
68355 2000-04-03  Jim Meyering  <meyering@lucent.com>
68356
68357         * m4/gettext.m4: Fix typo in comment.
68358
68359         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68360         textutils/configure.in).  Suggestion from Paul Eggert.
68361         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68362
68363 2000-04-02  Paul Eggert  <eggert@twinsun.com>
68364
68365         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
68366         variable in the shell rather than using putenv, which isn't
68367         portable.  This avoids the configure-time inter-test dependency
68368         on the potentially-renamed putenv function.
68369
68370 2000-03-30  Paul Eggert  <eggert@twinsun.com>
68371
68372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
68373         before checking struct stat.st_blksize, so that
68374         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
68375
68376 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68377
68378         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
68379         since strftime.c uses HAVE_STRFTIME to decide whether to use
68380         the underlying strftime.
68381
68382 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68383
68384         * lib/time/strftime.c (my_strftime): Make sure we call the system
68385         strftime, not ourselves, when invoking the underlying strftime.
68386
68387 2000-03-24  Jim Meyering  <meyering@lucent.com>
68388
68389         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
68390         (charset_alias): Define.
68391         (install-exec-local): Factor out common code.
68392         (uninstall-local): Split lines longer than 80.
68393         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
68394         (SUFFIXES): Define.
68395         (.sed.in.sed): New rule.  Don't redirect directly to $@.
68396         (CLEANFILES): Add ref-add.sed and ref-del.sed.
68397
68398 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
68399
68400         * lib/config.charset: Output a line containing "Packages using this
68401         file".
68402         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
68403         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
68404         ref-del.sed): New rules.
68405
68406 2000-03-17  Jim Meyering  <meyering@lucent.com>
68407
68408         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
68409         Otherwise, include <strings.h>
68410
68411 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
68412
68413         * lib/unicodeio.c (utf8_wctomb): New function.
68414         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
68415         format instead of in UCS-4 with platform dependent endianness.
68416
68417 2000-03-10  Jim Meyering  <meyering@lucent.com>
68418
68419         * m4/lib-check.m4: Look for getspnam in -lgen, too.
68420         From Marco Franzen.
68421
68422 2000-03-07  Paul Eggert  <eggert@twinsun.com>
68423
68424         * lib/savedir.c (savedir): Work even if directory size is
68425         negative; this can happen with some screwy NFS configurations.
68426
68427 2000-03-06  Jim Meyering  <meyering@lucent.com>
68428
68429         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
68430         if it's NULL (because we ran out of memory).  From Bruno Haible.
68431
68432 2000-03-05  Jim Meyering  <meyering@lucent.com>
68433
68434         * lib/localcharset.c ("path-concat.h"): Include.
68435         (get_charset_aliases): Use path_concat instead of ANSI string
68436         concatenation.
68437
68438         * lib/unicodeio.h (PARAMS): Define.
68439         Use it to guard prototype.
68440
68441 2000-03-04  Jim Meyering  <meyering@lucent.com>
68442
68443         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
68444         for lib/localcharset.c.
68445
68446 2000-03-04  Jim Meyering  <meyering@lucent.com>
68447
68448         * lib/Makefile.am (install-exec-local): Create $(libdir) before
68449         installing into it.
68450         (uninstall-local): Uncomment this rule so `make distcheck' works
68451         once again.
68452
68453         * lib/unicodeio.c (<errno.h>): Include it.
68454         (errno): Declare if not defined.
68455
68456         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
68457
68458         * lib/config.charset: New version, incorporating remarks from a linux
68459         i18n mailing list.  From Bruno Haible.
68460
68461 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
68462
68463         * m4/codeset.m4: New file.
68464         * m4/iconv.m4: New file.
68465         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
68466
68467 2000-03-03  Jim Meyering  <meyering@lucent.com>
68468
68469         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
68470
68471 2000-03-02  Jim Meyering  <meyering@lucent.com>
68472
68473         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
68474         the messages come out on separate lines.
68475
68476         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
68477         rather than jm_CHECK_DECLARATIONS.
68478         * m4/decl.m4: Remove now-unused file.
68479
68480         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
68481         geteuid.
68482
68483 2000-03-02  Jim Meyering  <meyering@lucent.com>
68484
68485         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
68486
68487 2000-03-01  Jim Meyering  <meyering@lucent.com>
68488
68489         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
68490         * lib/unicodeio.c: Likewise.
68491
68492 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
68493
68494         * lib/config.charset: New file.
68495         * lib/localcharset.c: New file.
68496         * lib/unicodeio.h, lib/unicodeio.c: New files.
68497         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
68498         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
68499         (noinst_HEADERS): Add unicodeio.h.
68500         (all-local, install-exec-local, charset.alias): New targets.
68501
68502 2000-02-28  Paul Eggert  <eggert@twinsun.com>
68503
68504         * lib/quotearg.c (ALERT_CHAR): New macro.
68505         (quotearg_buffer_restyled): Use it.
68506
68507 2000-02-27  Jim Meyering  <meyering@lucent.com>
68508
68509         * m4/check-decl.m4: Add getenv to the list.
68510
68511 2000-02-27  Jim Meyering  <meyering@lucent.com>
68512
68513         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
68514         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
68515
68516         * lib/backupfile.c: Guard inclusion of stdlib.h with
68517         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
68518         Declare malloc if needed.
68519
68520         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
68521         `#ifndef HAVE_DECL..'
68522         now that autoconf always defines the HAVE_DECL_ symbols.
68523         * lib/human.c: Likewise.
68524         * lib/same.c: Likewise.
68525         * lib/strtoumax.c: Likewise.
68526
68527         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
68528         declaration check was not run.
68529         * lib/hash.c: Likewise.
68530         * lib/human.c: Likewise.
68531         * lib/same.c: Likewise.
68532         * lib/strtoumax.c: Likewise.
68533
68534         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
68535         `.', then first look up the entire `.'-containing string as a login
68536         name.
68537
68538 2000-02-23  Jim Meyering  <meyering@lucent.com>
68539
68540         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
68541         in place of my hack.
68542
68543 2000-02-18  Paul Eggert  <eggert@twinsun.com>
68544
68545         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
68546         (textint): New typedef.
68547         (parser_control): Member year changed from int to textint.
68548         All uses changed.
68549         (YYSTYPE): Removed; replaced by %union with int and textint members.
68550         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
68551         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
68552         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
68553         (tSNUMBER, tUNUMBER): Now of type <textintval>.
68554         (date, number, to_year): Use width of number in digits, not its value,
68555         to determine whether it's a 2-digit year, or a 2-digit time.
68556         (yylex): Store number of digits of numeric tokens.
68557         Reported by John Kendall.
68558
68559         (parser_control): Changed from struct parser_control to typedef (for
68560         consistency).  All uses changed.
68561
68562         (tID): Removed; not used.
68563         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
68564
68565 2000-02-14  Paul Eggert  <eggert@twinsun.com>
68566
68567         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
68568         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
68569
68570 2000-02-12  Jim Meyering  <meyering@lucent.com>
68571
68572         * lib/userspec.c (ISDIGIT): Define it.
68573         (isdigit): Remove definition.
68574         (is_number): Use ISDIGIT, not isdigit.
68575         <libintl.h>: Include.
68576         (_ and N_): Define.
68577         (parse_user_spec): Mark translatable strings.
68578
68579 2000-02-10  Jim Meyering  <meyering@lucent.com>
68580
68581         With these changes, nanosleep.[ch] are finally enough like the other
68582         lib/* replacement files to compile on a few more losing systems.
68583
68584         * lib/nanosleep.h: Don't include config.h.
68585         Remove prototype from declaration of nanosleep.
68586         (PARAMS): Remove now-unneeded definition.
68587         * lib/nanosleep.c: #undef nanosleep.
68588         (rpl_nanosleep): Rename from nanosleep.
68589
68590 2000-02-10  Jim Meyering  <meyering@lucent.com>
68591
68592         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
68593         gnu_nanosleep to rpl_nanosleep.
68594
68595 2000-02-09  Jim Meyering  <meyering@lucent.com>
68596
68597         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
68598         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
68599
68600 2000-02-08  Akim Demaille  <akim@epita.fr>
68601
68602         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
68603         `[' and `]' and remove uses of `changequote'.
68604         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
68605         (AC_SYS_LARGEFILE): Likewise.
68606         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68607         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
68608         of changequote.
68609         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
68610         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
68611         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
68612         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
68613
68614 2000-02-05  Jim Meyering  <meyering@lucent.com>
68615
68616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
68617         Remove explicit use of AC_HEADER_TIME.  It is required by
68618         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
68619         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
68620         in autoconf whereby the expansion of the latter ended up preceding
68621         the expansion of its prerequisite, AC_HEADER_TIME.
68622         Reported by Volker Borchert.
68623
68624 2000-02-03  Jim Meyering  <meyering@lucent.com>
68625
68626         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
68627
68628 2000-02-03  Jim Meyering  <meyering@lucent.com>
68629
68630         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
68631         rather than with `#if HAVE_UTMPNAME'.
68632
68633 2000-02-02  Jim Meyering  <meyering@lucent.com>
68634
68635         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
68636         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
68637         Reported by Eli Zaretskii.
68638
68639 2000-02-01  Jim Meyering  <meyering@lucent.com>
68640
68641         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
68642
68643 2000-01-31  Jim Meyering  <meyering@lucent.com>
68644
68645         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
68646         functions.  Add the time.h and sys/time.h headers along with the
68647         AC_REQUIRE'ment of AC_HEADER_TIME.
68648
68649 2000-01-31  Jim Meyering  <meyering@lucent.com>
68650
68651         * lib/nanosleep.h (nanosleep): Guard declaration with
68652         `#if ! HAVE_DECL_NANOSLEEP'.
68653         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
68654         the declaration in that vendor's sys/timers.h.
68655         Reported by Christian Krackowizer.
68656
68657         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
68658         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
68659         (ISPRINT): Likewise.
68660         Reported by Tom Tromey.
68661
68662 2000-01-30  Jim Meyering  <meyering@lucent.com>
68663
68664         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
68665
68666         * m4/prereq.m4 (utmp_includes): Define.
68667         Check for ut_user and ut_name members in both struct utmpx
68668         and struct utmp.
68669
68670 2000-01-30  Jim Meyering  <meyering@lucent.com>
68671
68672         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
68673         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
68674         header files where only utmpx.ut_user is declared.
68675
68676         * lib/readutmp.h (UT_USER): Define.
68677
68678 2000-01-29  Jim Meyering  <meyering@lucent.com>
68679
68680         * m4/lib-check.m4: New file containing library-related checks from
68681         fileutils and sh-utils (textutils had none).
68682
68683 2000-01-28  Jim Meyering  <meyering@lucent.com>
68684
68685         * m4/perl.m4: Change format of warning message to look more like that
68686         from the missing script.  Suggestion from François Pinard.
68687
68688 2000-01-25  Jim Meyering  <meyering@lucent.com>
68689
68690         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
68691         well as time.h in the compile check.
68692         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
68693         Fix typo in cross-compiling case: s/yes/no/.
68694
68695 2000-01-23  Jim Meyering  <meyering@lucent.com>
68696
68697         * m4/jm-macros.m4: Move df-related tests here from
68698         fileutils/configure.in
68699
68700         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
68701         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
68702
68703         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
68704         s/space/ac_fsusage_space/.
68705         (jm_FILE_SYSTEM_USAGE): Take two parameters.
68706
68707         * m4/ftruncate.m4: New file (derived from part of
68708         fileutils/configure.in).
68709         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
68710         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
68711
68712         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
68713         AC_SUBST these here, rather than just in sh-util/configure.in, so
68714         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
68715         all the same.
68716         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
68717         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
68718         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
68719         (AC_SUBST(POW_LIBM)): Likewise.
68720         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
68721
68722 2000-01-23  Jim Meyering  <meyering@lucent.com>
68723
68724         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
68725         obstack.c.
68726
68727 2000-01-22  Jim Meyering  <meyering@lucent.com>
68728
68729         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
68730
68731         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
68732
68733         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
68734         configure.in
68735         (AC_CHECK_HEADERS): Likewise for sh-utils.
68736         (AC_CHECK_HEADERS): Likewise for textutils.
68737         Merge the three lists of headers.
68738
68739         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
68740         from fileutils' configure.in.
68741
68742         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
68743         code. Moved tests into their own function (_jm_DECL_HEADERS) in
68744         check-decl.m4.
68745
68746         * m4/check-decl.m4: Use #if rather than #ifdef.
68747         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
68748         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
68749         (_jm_DECL_HEADERS): Define new function.
68750         (jm_CHECK_DECLARATIONS): Require it.
68751
68752 2000-01-22  Jim Meyering  <meyering@lucent.com>
68753
68754         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
68755         [! HAVE_DECL_STRTOULL]: Declare strtoull.
68756         Required for some AIX systems.  Reported by Christian Krackowizer.
68757         [TESTING] (main): New function.
68758
68759         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
68760         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
68761         letters.
68762
68763         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
68764         iswprint.
68765
68766         * lib/strverscmp.c (ISDIGIT): Define.
68767         (strverscmp): Use ISDIGIT, not isdigit.
68768
68769 2000-01-19  Jim Meyering  <meyering@lucent.com>
68770
68771         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
68772         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
68773         defines `struct timespec' in <sys/time.h>
68774
68775         * m4/c-bs-a.m4: Remove uses of changequote altogether.
68776         Thanks to Akim for explaining.
68777
68778 2000-01-17  Paul Eggert  <eggert@twinsun.com>
68779
68780         * lib/nanosleep.c (nanosleep):
68781         Don't use SA_INTERRUPT to decide whether to call sigaction, as
68782         POSIX.1 doesn't require SA_INTERRUPT and some systems
68783         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
68784         it's been part of POSIX.1 since day 1 (in 1988).
68785
68786 2000-01-17  Jim Meyering  <meyering@lucent.com>
68787
68788         * lib/interlock: Remove unused file.  Reported by François Pinard.
68789
68790 2000-01-16  Paul Eggert  <eggert@twinsun.com>
68791
68792         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
68793         alert, backslash, formfeed, and vertical tab unnecessarily in
68794         shell quoting style.
68795
68796 2000-01-16  Jim Meyering  <meyering@lucent.com>
68797
68798         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
68799         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
68800         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
68801         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
68802
68803 2000-01-16  Jim Meyering  <meyering@lucent.com>
68804
68805         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
68806         because the latter didn't work.
68807
68808 2000-01-15  Jim Meyering  <meyering@lucent.com>
68809
68810         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
68811         (AC_REPLACE_FUNCS): Add memcpy and memset.
68812         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
68813         Add strpbrk.
68814         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
68815
68816 2000-01-12  Jim Meyering  <meyering@lucent.com>
68817
68818         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
68819         (jm_PREREQ): Use it.
68820         (jm_PREREQ_READUTMP): New macro.
68821         (jm_PREREQ): Use it.
68822
68823 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68824
68825         Quote multibyte characters correctly.
68826         * m4/c-bs-a.m4: New file.
68827         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
68828         (jm_PREREQ): Use it.
68829
68830 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68831
68832         * m4/uintmax_t.m4: Port to autoconf 2.13.
68833
68834 2000-01-08  Jim Meyering  <meyering@ascend.com>
68835
68836         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
68837         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
68838
68839 2000-01-04  Jim Meyering  <meyering@ascend.com>
68840
68841         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
68842         jm_STRUCT_DIRENT_D_TYPE.
68843         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
68844         jm_STRUCT_DIRENT_D_INO.
68845         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
68846         jm_STRUCT_UTIMBUF.
68847         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
68848         renamings.
68849         * m4/utime.m4: Likewise.
68850
68851         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
68852         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
68853
68854 2000-01-03  Paul Eggert  <eggert@twinsun.com>
68855
68856         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
68857         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
68858
68859 2000-01-02  Jim Meyering  <meyering@ascend.com>
68860
68861         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
68862         remember if this is necessary.
68863
68864 1999-12-26  Jim Meyering  <meyering@ascend.com>
68865
68866         * m4/jm-macros.m4: Use it here.
68867         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
68868
68869 1999-12-23  Jim Meyering  <meyering@ascend.com>
68870
68871         * m4/jm-macros.m4: Check for clock_gettime (moved from
68872         fileutils/configure.in)
68873         Check for gettimeofday.
68874
68875 1999-12-20  Jim Meyering  <meyering@ascend.com>
68876
68877         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
68878         autoconf-2.14a-1999-12-20.
68879
68880 1999-12-19  Jim Meyering  <meyering@ascend.com>
68881
68882         * m4/lstat-slash.m4: New file.
68883         * m4/jm-macros.m4: Use the new macro:
68884         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68885
68886 1999-12-07  Jim Meyering  <meyering@ascend.com>
68887
68888         * m4/perl.m4: Require that File::Compare be available, too.
68889         Too many systems seem to lack it.
68890
68891         * m4/strftime.m4: Add checks for most of the cpp macros tested in
68892         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
68893
68894 1999-11-18  Paul Eggert  <eggert@twinsun.com>
68895
68896         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
68897         problem with the QNX 4.25 shell, which doesn't propagate exit
68898         status of failed commands inside shell assignments.
68899
68900 1999-11-17  Jim Meyering  <meyering@ascend.com>
68901
68902         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
68903
68904 1999-11-07  Jim Meyering  <meyering@ascend.com>
68905
68906         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
68907
68908 1999-11-06  Jim Meyering  <meyering@ascend.com>
68909
68910         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
68911         * m4/jm-macros.m4 (jm_MACROS): Use it here.
68912
68913 1999-11-05  Jim Meyering  <meyering@ascend.com>
68914
68915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
68916         configure.in of textutils, fileutils, and sh-utils into this one
68917         (shared between those packages) file.
68918         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68919         AC_STRUCT_ST_BLKSIZE.
68920
68921 1999-11-03  Jim Meyering  <meyering@ascend.com>
68922
68923         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68924         of AC_CHECK_TYPE checks includes unistd.h.
68925         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68926         Suggestion from Akim Demaille.
68927
68928 1999-10-30  Jim Meyering  <meyering@ascend.com>
68929
68930         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68931         m4-quoted string.
68932         * m4/ls-mntd-fs.m4: Likewise.
68933         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68934         * m4/jm-winsz1.m4: Likewise.
68935
68936         * m4/const.m4: Remove file, since the fix made it into the experimental
68937         version of autoconf.
68938         * m4/mktime.m4: Likewise.
68939
68940         * m4/check-type.m4: Remove file, now that the latest version of
68941         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68942
68943         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68944         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68945         AC_CHECK_TYPE.
68946
68947 1999-10-04  Jim Meyering  <meyering@ascend.com>
68948
68949         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68950
68951 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68952
68953         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
68954         2.95.1 bug with HP-UX 10.20.
68955
68956 1999-09-17  Jim Meyering  <meyering@ascend.com>
68957
68958         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
68959         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
68960         due to missing strdup (against sh-utils-2.0).
68961
68962 1999-08-29  Jim Meyering  <meyering@ascend.com>
68963
68964         * m4/jm-macros.m4: Require jm_BISON.
68965         * m4/bison.m4: New file.
68966
68967 1999-08-17  Paul Eggert  <eggert@twinsun.com>
68968
68969         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
68970         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
68971
68972 1999-08-05  Jim Meyering  <meyering@ascend.com>
68973
68974         * m4/getline.m4: Rename test file from conftestdata to conftest.data
68975         to avoid conflicts with `conftest' on 8+3 filesystems.
68976         Suggestion from Eli Zaretskii.
68977
68978 1999-08-04  Jim Meyering  <meyering@ascend.com>
68979
68980         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
68981         fileutils and sh-utils (textutils's getline test was inadequate).
68982         (AM_FUNC_GETLINE): Run this test.
68983         (AC_CHECK_FUNCS): Check for getdelim.
68984         Reported by Bob Proulx.
68985
68986 1999-08-02  Jim Meyering  <meyering@ascend.com>
68987
68988         * m4/jm-macros.m4: Add a comment.
68989
68990 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68991
68992         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
68993         <inttypes.h> defines strtoumax as a macro (and not as a
68994         function).
68995
68996 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68997
68998         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
68999         that we can shift, multiply and divide unsigned long long
69000         values; Ultrix cc can't do it.
69001
69002 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69003
69004         * m4/mktime.m4: New file, which is a preview of what should appear
69005         in the next public autoconf release.
69006
69007 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69008
69009         * m4/lfs.m4: Remove this file.
69010         * m4/largefile.m4: New file.  It contains the old contents of
69011         lfs.m4, except that all names with prefix AC_LFS have been
69012         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69013         compatible with future autoconf versions.  Also, some minor m4
69014         quoting problems have been fixed.
69015
69016 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69017
69018         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69019         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69020         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69021         and simplify the shell code.
69022
69023 1999-08-01  Jim Meyering  <meyering@ascend.com>
69024
69025         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69026         m4.
69027
69028 1999-07-20  Jim Meyering  <meyering@ascend.com>
69029
69030         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69031
69032 1999-07-15  Jim Meyering  <meyering@ascend.com>
69033
69034         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69035
69036 1999-05-22  Jim Meyering  <meyering@ascend.com>
69037
69038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69039
69040 1999-05-20  Jim Meyering  <meyering@ascend.com>
69041
69042         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69043         Add a colon after each `then' in case $4 is empty.
69044
69045 1999-05-16  Jim Meyering  <meyering@ascend.com>
69046
69047         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69048
69049 1999-05-10  Jim Meyering  <meyering@ascend.com>
69050
69051         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69052
69053         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69054         AC_FUNC_MKTIME.
69055
69056 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69057
69058         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69059
69060 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69061
69062         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69063         not CPPFLAGS, so that linking works correctly in IRIX.
69064
69065 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69066
69067         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69068
69069 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69070
69071         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69072         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69074         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69075         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69076
69077         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69078
69079 1999-04-20  Jim Meyering  <meyering@ascend.com>
69080
69081         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69082         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69083         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69084
69085 1999-04-18  Jim Meyering  <meyering@ascend.com>
69086
69087         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69088         * m4/jm-macros.m4: Use it.
69089
69090 1999-04-06  Jim Meyering  <meyering@ascend.com>
69091
69092         * m4/strftime.m4: Remove test for %f.
69093
69094 1999-03-29  Jim Meyering  <meyering@ascend.com>
69095
69096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69097         superset of the AC_TYPE_* checks in the textutils, fileutils,
69098         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69099         AC_TYPE_PID_T.
69100
69101 1999-03-28  Jim Meyering  <meyering@ascend.com>
69102
69103         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69104         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69105         replaced e.g., in the *.sh files of the sh-utils.
69106
69107 1999-03-20  Jim Meyering  <meyering@ascend.com>
69108
69109         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69110         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69111         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69112
69113 1999-03-19  Jim Meyering  <meyering@ascend.com>
69114
69115         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69116
69117 1999-03-12  Jim Meyering  <meyering@ascend.com>
69118
69119         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69120
69121 1999-03-07  Jim Meyering  <meyering@ascend.com>
69122
69123         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69124         declared.
69125
69126 1999-02-17  Jim Meyering  <meyering@ascend.com>
69127
69128         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69129         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69130
69131 1999-02-07  Jim Meyering  <meyering@ascend.com>
69132
69133         * m4/group-member.m4: New file -- extracted from sh-utils'
69134         configure.in.
69135
69136         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69137         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69138
69139 1999-02-06  Jim Meyering  <meyering@ascend.com>
69140
69141         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69142         * m4/fnmatch.m4: Likewise.
69143         * m4/getgroups.m4: Likewise.
69144         * m4/lstat.m4: Likewise.
69145         * m4/malloc.m4: Likewise.
69146         * m4/putenv.m4: Likewise.
69147         * m4/realloc.m4: Likewise.
69148         * m4/regex.m4: Likewise.
69149         * m4/stat.m4: Likewise.
69150         * m4/strftime.m4: Likewise.
69151         Suggestion from Alain Magloire.
69152
69153         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69154         * m4/fnmatch.m4: Likewise.
69155         * m4/getgroups.m4: Likewise.
69156         * m4/getline.m4: Likewise.
69157         * m4/lstat.m4: Likewise.
69158         * m4/malloc.m4: Likewise.
69159         * m4/memcmp.m4: Likewise.
69160         * m4/putenv.m4: Likewise.
69161         * m4/realloc.m4: Likewise.
69162         * m4/regex.m4: Likewise.
69163         * m4/stat.m4: Likewise.
69164         * m4/strftime.m4: Likewise.
69165         Suggestion from Alain Magloire.
69166
69167         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69168         an argument.
69169
69170         * m4/regex.m4: Add a run-time Test for proper operation of
69171         re_compile_pattern.
69172
69173 1999-01-31  Jim Meyering  <meyering@ascend.com>
69174
69175         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69176
69177 1999-01-30  Jim Meyering  <meyering@ascend.com>
69178
69179         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69180
69181         * m4/jm-mktime.m4: Make this a wrapper around the official
69182         AM_FUNC_MKTIME rather than my private copy, now that the official one
69183         is up to date.
69184         * m4/mktime.m4: Remove file.
69185
69186         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69187         * m4/uptime.m4: Likewise.
69188         * m4/uintmax_t.m4: Likewise.
69189
69190 1999-01-28  Jim Meyering  <meyering@ascend.com>
69191
69192         * m4/jm-macros.m4: Use jm_AFS.
69193         * m4/afs.m4: New file (from fileutils' configure.in).
69194
69195         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69196         * m4/chown.m4: Likewise.
69197         * m4/d-ino.m4: Likewise.
69198         * m4/d-type.m4: Likewise.
69199         * m4/fnmatch.m4: Likewise.
69200         * m4/getgroups.m4: Likewise.
69201         * m4/gettext.m4: Likewise.
69202         * m4/jm-mktime.m4: Likewise.
69203         * m4/jm-winsz2.m4: Likewise.
69204         * m4/lcmessage.m4: Likewise.
69205         * m4/ls-mntd-fs.m4: Likewise.
69206         * m4/malloc.m4: Likewise.
69207         * m4/memcmp.m4: Likewise.
69208         * m4/putenv.m4: Likewise.
69209         * m4/realloc.m4: Likewise.
69210         * m4/st_mtim.m4: Likewise.
69211         * m4/strftime.m4: Likewise.
69212
69213 1999-01-16  Jim Meyering  <meyering@ascend.com>
69214
69215         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69216         (ARGMATCH_DIE_DECL): Define.
69217
69218 1999-01-12  Jim Meyering  <meyering@ascend.com>
69219
69220         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69221         Reported by Lars Hecking.
69222
69223 1999-01-10  Jim Meyering  <meyering@ascend.com>
69224
69225         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69226         gross kludge.
69227         * m4/inttypes_h.m4: Likewise.
69228         * m4/lstat.m4: Likewise.
69229         * m4/malloc.m4: Likewise.
69230         * m4/readdir.m4: Likewise.
69231         * m4/realloc.m4: Likewise.
69232         * m4/st_dm_mode.m4: Likewise.
69233         * m4/stat.m4: Likewise.
69234         * m4/utimbuf.m4: Likewise.
69235         * m4/utimes.m4: Likewise.
69236
69237         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69238         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69239         comments in config.h.in are meaningful.
69240
69241         * m4/jm-macros.m4: Require autoconf-2.13 here.
69242
69243         * m4/regex.m4: By default, don't use the included regex.c on systems
69244         with glibc 2.  Suggestion from Uli Drepper.
69245
69246 1999-01-02  Jim Meyering  <meyering@ascend.com>
69247
69248         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69249
69250 1998-12-18  Jim Meyering  <meyering@ascend.com>
69251
69252         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69253         Based on a suggestion from Lars Hecking.
69254
69255 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69256
69257         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69258
69259 1998-11-16  Jim Meyering  <meyering@ascend.com>
69260
69261         * m4/lfs.m4: Double-quote the `uname...` expression.
69262
69263 1998-11-14  Jim Meyering  <meyering@ascend.com>
69264
69265         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69266         * m4/stat.m4: Likewise.
69267
69268 1998-11-03  Jim Meyering  <meyering@ascend.com>
69269
69270         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69271         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69272
69273 1998-10-18  Jim Meyering  <meyering@ascend.com>
69274
69275         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69276
69277 1998-10-17  Jim Meyering  <meyering@ascend.com>
69278
69279         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69280         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69281         calls for those previously hard-coded headers.  Instead, take a new
69282         parameter.
69283         (jm_CHECK_DECLARATIONS): Reflect interface change.
69284         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69285         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69286
69287         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69288
69289 1998-10-14  Jim Meyering  <meyering@ascend.com>
69290
69291         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69292         instead of "TZ=America/Vancouver".  From Paul Eggert.
69293
69294 1998-10-11  Jim Meyering  <meyering@ascend.com>
69295
69296         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69297         This adds a test for a recently added compatibility fix for mktime.c.
69298         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69299
69300 1998-09-27  Jim Meyering  <meyering@ascend.com>
69301
69302         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69303
69304         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69305         ../configure.in, including a change from Gordon Matzigkeit to allow
69306         cross-compiling for the Hurd.
69307
69308         * m4/glibc.m4: New file/macro to test for the GNU C Library
69309         versions 1 and 2.  From Gordon Matzigkeit.
69310         Indent.
69311
69312 1998-09-21  Jim Meyering  <meyering@ascend.com>
69313
69314         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69315
69316 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69317
69318         Port nanosecond-resolution times to UnixWare 2.1.2 and
69319         pedantic Solaris 2.6.
69320
69321         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69322         AC_STRUCT_ST_MTIM.
69323         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69324         Generate name of ns member, instead of just 1 or undef.
69325         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69326
69327 1998-08-15  Jim Meyering  <meyering@ascend.com>
69328
69329         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69330         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69331         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69332         instead of jm_TYPE_SSIZE_T.
69333
69334 1998-08-12  Jim Meyering  <meyering@ascend.com>
69335
69336         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69337
69338 1998-08-02  Jim Meyering  <meyering@ascend.com>
69339
69340         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69341         in acconfig.h manually.
69342
69343 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69344
69345         * m4/st_mtim.m4: New file.
69346
69347 1998-07-28  Jim Meyering  <meyering@ascend.com>
69348
69349         * m4/utimes.m4: Undef stat.
69350
69351 1998-07-25  Jim Meyering  <meyering@ascend.com>
69352
69353         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69354         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69355
69356 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69357
69358         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69359         uid and gid actually remain unchanged.
69360
69361 1998-07-07  Jim Meyering  <meyering@ascend.com>
69362
69363         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
69364
69365 1998-07-04  Jim Meyering  <meyering@ascend.com>
69366
69367         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
69368         to prove that this macro can be used in packages without regex.c.
69369
69370 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
69371
69372         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
69373         is to be used.
69374
69375 1998-07-03  Jim Meyering  <meyering@ascend.com>
69376
69377         * m4/gettext.m4: Add -lintl if it's found to be necessary.
69378
69379         * m4/gettext.m4: New file -- from gettext-0.10.35.
69380         * m4/lcmessage.m4: Likewise.
69381         * m4/progtest.m4: Likewise.
69382
69383         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
69384         * m4/jm-macros.m4: Require the new macro.
69385
69386 1998-06-29  Jim Meyering  <meyering@ascend.com>
69387
69388         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
69389         for the definition of NGROUPS (used in a system header included
69390         by sys/mount.h).
69391
69392 1998-06-28  Jim Meyering  <meyering@ascend.com>
69393
69394         * m4/ls-mntd-fs.m4: New file.
69395         * m4/fstypename.m4: New file.
69396
69397         * m4/jm-macros.m4: Require the new macro.
69398         * m4/jm-glibc-io.m4: New file.
69399
69400 1998-05-19  Jim Meyering  <meyering@ascend.com>
69401
69402         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
69403         * m4/lchown.m4: New file.
69404
69405         * m4/Makefile.am.in: New file.
69406         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
69407
69408 1998-05-14  Jim Meyering  <meyering@ascend.com>
69409
69410         * m4/Makefile.am (EXTRA_DIST): Add them.
69411         * m4/jm-macros.m4: New file.
69412         * m4/utimbuf.m4: New file.
69413
69414 1998-05-12  Jim Meyering  <meyering@ascend.com>
69415
69416         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
69417
69418 1998-05-11  Jim Meyering  <meyering@ascend.com>
69419
69420         * m4/isc-posix.m4: New file.
69421
69422 1998-05-10  Jim Meyering  <meyering@ascend.com>
69423
69424         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
69425
69426 1998-05-09  Jim Meyering  <meyering@ascend.com>
69427
69428         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
69429         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
69430         with automake.
69431
69432         * m4/ssize_t.m4: New file.
69433         * m4/mktime.m4: Remove file -- the new automake has this now.
69434
69435 1998-04-26  Jim Meyering  <meyering@ascend.com>
69436
69437         * m4/assert.m4: New file.
69438         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
69439
69440 1998-04-05  Jim Meyering  <meyering@ascend.com>
69441
69442         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
69443         (jm_PREREQ): Use it here.
69444
69445 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
69446
69447         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
69448         in acconfig.h.
69449
69450 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
69451
69452         * m4/prereq.m4: New file.
69453         * m4/error.m4: New file.
69454         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
69455
69456 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
69457
69458         * m4/getline.m4: Don't set am_cv_func_working_getline before the
69459         cache-check for the same variable -- that defeated the purpose of
69460         the test; the test program was never run.  This was a problem only
69461         on systems with losing getline functions -- HP-UX 10.20 is one.
69462         Reported by Bjorn Helgaas.
69463
69464 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
69465
69466         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
69467
69468 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
69469
69470         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
69471
69472         * m4/const.m4: New file.  Use an initializer in this declaration
69473         typedef int charset[2]; const charset x;
69474         Reported by Bob Glickstein.
69475
69476 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
69477
69478         * m4/chown.m4: Fix reversed types on -1 args to chown.
69479         From Kaveh Ghazi.
69480
69481 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
69482
69483         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
69484         Add lseek and memchr.
69485
69486         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
69487         T.E.Dickey <dickey@clark.net> said that some older preprocessors
69488         have a 20-character limit on names.
69489
69490 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
69491
69492         * m4/inttypes_h.m4: New file.
69493         * m4/uintmax_t.m4: New file.
69494         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
69495
69496
69497         -----
69498
69499         Local Variables:
69500         coding: utf-8
69501         End:
69502
69503         Copyright (C) 1997-2010 Free Software Foundation, Inc.
69504
69505         Copying and distribution of this file, with or without
69506         modification, are permitted provided the copyright notice
69507         and this notice are preserved.