72642d1759747bdc406ae0602d8623e28712dd2e
[gnulib.git] / ChangeLog
1 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2
3         hash: fix safe_hasher const typo
4         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5         const; otherwise, there is a type error later.
6
7 2010-09-02  Jim Meyering  <meyering@redhat.com>
8
9         test-update-copyright.sh: require perl 5.8.0
10         * tests/test-update-copyright.sh: Require 5.8.0,
11         which Tom G. Christensen has confirmed is adequate,
12         while 5.6.1 is not.
13
14 2010-09-02  Eric Blake  <eblake@redhat.com>
15
16         wctype: fix typo in previous commit
17         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18         Reported by Ludovic Courtès.
19
20 2010-09-02  Jim Meyering  <meyering@redhat.com>
21
22         test-update-copyright.sh: skip test if Perl is too old
23         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
24         Reported by Tom G. Christensen.
25
26 2010-09-02  Bruno Haible  <bruno@clisp.org>
27
28         wctype: Avoid compilation error on IRIX 6.5.30.
29         * lib/wctype.in.h (iswblank): Declare with a replacement if
30         REPLACE_ISWBLANK is set.
31         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
32         declared. Set REPLACE_ISWBLANK.
33         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
34         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
35         * doc/posix-headers/wctype.texi: Likewise.
36         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37
38 2010-09-01  Bruno Haible  <bruno@clisp.org>
39
40         New module 'socketlib'.
41         * modules/socketlib: New file.
42         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
43         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
44         * modules/sockets (Depends-on): Add socketlib.
45         Suggested by Sam Steingold <sds@gnu.org>.
46
47 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48
49         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
50
51         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
52         when one needs search access to a directory but not read access.
53         On systems where it is available, it works in some cases where
54         O_RDONLY does not, namely on directories that are searchable but
55         not readable, and which need only to be searchable.  If O_SEARCH
56         is not available, fall back to the traditional method of using
57         O_RDONLY.
58
59         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
60         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61         when opening a directory that needs only to be searchable.
62         * lib/chdir-safer.c (chdir_no_follow): Likewise.
63         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64         * lib/openat-proc.c (openat_proc_name): Likewise.
65         * lib/openat.c (openat_needs_fchdir): Likewise.
66         * lib/save-cwd.c (save_cwd): Likewise.
67         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
68
69 2010-08-28  Bruno Haible  <bruno@clisp.org>
70
71         New module 'host-cpu-c-abi'.
72         * modules/host-cpu-c-abi: New file.
73         * m4/host-cpu-c-abi.m4: New file, based on part of
74         clisp/src/m4/general.m4.
75         Requested by Sam Steingold <sds@gnu.org>.
76
77 2010-08-31  Eric Blake  <eblake@redhat.com>
78         and Jim Meyering  <meyering@redhat.com>
79
80         hash: factor, and guard against misbehaving hasher function
81         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
82         of table->hasher's return value.  Also protect against a hash value
83         so large that adding it to table->bucket results in a NULL pointer.
84         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
85         Use it in place of open-coded check-and-abort.
86
87 2010-08-30  Bruno Haible  <bruno@clisp.org>
88
89         hash: silence spurious clang warning
90         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
91         Reported by Eric Blake.
92
93 2010-08-30  Eric Blake  <eblake@redhat.com>
94
95         strstr, memmem, strcasestr: avoid leaked shell message
96         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
97         FreeBSD.
98         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
99         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
100
101         tests: silence clang warning
102         * tests/test-malloca.c (do_allocation): Avoid dead store.
103
104 2010-08-29  Bruno Haible  <bruno@clisp.org>
105
106         gettext: Fix recent mistake.
107         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
108
109 2010-08-29  Bruno Haible  <bruno@clisp.org>
110
111         selinux-h: Offer a --without-selinux option.
112         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
113         --without-selinux was specified, skip all tests and define
114         HAVE_SELINUX_SELINUX_H to 0.
115         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
116         set LIB_SELINUX to empty.
117         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
118         gl_LIBSELINUX. If --without-selinux was specified, replace
119         selinux/context.h.
120         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
121
122 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
123             Bruno Haible  <bruno@clisp.org>
124
125         Make the module 'realloc-gnu' work again on AIX and OSF/1.
126         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
127         of HAVE_REALLOC.
128         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
129         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
130         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
131         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
132
133 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
134             Bruno Haible  <bruno@clisp.org>
135
136         Make the module 'calloc-gnu' work again on AIX and OSF/1.
137         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
138         HAVE_CALLOC.
139         * lib/xmalloc.c: Update accordingly.
140         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
141         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
142         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
143
144 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
145             Bruno Haible  <bruno@clisp.org>
146
147         Make the module 'malloc-gnu' work again on AIX and OSF/1.
148         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
149         HAVE_MALLOC.
150         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
151         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
152         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
153
154 2010-08-29  Bruno Haible  <bruno@clisp.org>
155
156         Update modules list.
157         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
158         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
159         (String handling <string.h>): Add astrxfrm.
160         (File system functions): Add readlinkat.
161
162 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
163
164         Tests for module 'realloc-gnu'.
165         * modules/realloc-gnu-tests: New file.
166         * tests/test-realloc-gnu.c: New file.
167
168         Tests for module 'calloc-gnu'.
169         * modules/calloc-gnu-tests: New file.
170         * tests/test-calloc-gnu.c: New file.
171
172         Tests for module 'malloc-gnu'.
173         * modules/malloc-gnu-tests: New file.
174         * tests/test-malloc-gnu.c: New file.
175
176 2010-08-28  Bruno Haible  <bruno@clisp.org>
177
178         Rename module 'realloc' -> 'realloc-gnu'.
179         * modules/realloc-gnu: New file, copied from modules/realloc.
180         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
181         obsolete.
182         * modules/mgetgroups (Depends-on): Update.
183         * doc/posix-functions/realloc.texi: Update.
184         * NEWS: Mention the change.
185
186         Rename module 'calloc' -> 'calloc-gnu'.
187         * modules/calloc-gnu: New file, copied from modules/calloc.
188         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
189         obsolete.
190         * doc/posix-functions/calloc.texi: Update.
191         * NEWS: Mention the change.
192
193         Rename module 'malloc' -> 'malloc-gnu'.
194         * modules/malloc-gnu: New file, copied from modules/malloc.
195         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
196         obsolete.
197         * modules/argp (Depends-on): Update.
198         * modules/regex (Depends-on): Update.
199         * doc/posix-functions/malloc.texi: Update.
200         * NEWS: Mention the change.
201
202 2010-08-28  Eric Blake  <eblake@redhat.com>
203
204         pread, pwrite: add missing dependency
205         * modules/pread (Depends-on): Add extensions.
206         * modules/pwrite (Depends-on): Likewise.
207
208 2010-08-28  Bruno Haible  <bruno@clisp.org>
209
210         unistr/u*-strchr: Fix tests dependencies.
211         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
212         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
213         Reported by Ian Beckwith <ianb@erislabs.net>.
214
215 2010-08-28  Bruno Haible  <bruno@clisp.org>
216
217         read-file: Don't occupy too much unused memory.
218         * lib/read-file.c (fread_file): Shrink the buffer at the end.
219
220 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
221             Eric Blake  <eblake@redhat.com>
222             Bruno Haible  <bruno@clisp.org>
223
224         read-file: Avoid memory reallocations with regular files.
225         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
226         (fread_file): With regular files, use the remaining length as the
227         initial buffer size.  Check against overflow.
228         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
229         sys_stat.
230
231 2010-08-28  Bruno Haible  <bruno@clisp.org>
232
233         ftello: Relax license.
234         * modules/ftello (License): Relax to LGPLv2+.
235         Reported by Eric Blake.
236
237 2010-08-28  Bruno Haible  <bruno@clisp.org>
238
239         Avoid relocwrapper link errors due to gnulib replacement functions.
240         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
241         function.
242         Reported by Ben Pfaff <blp@cs.stanford.edu>.
243
244 2010-08-28  Bruno Haible  <bruno@clisp.org>
245
246         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
247         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
248         defined.
249         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
250         Suggested by Eric Blake.
251
252 2010-08-28  Bruno Haible  <bruno@clisp.org>
253
254         sys_socket, netdb: Ensure socklen_t gets defined.
255         * modules/sys_socket (Depends-on): Add socklen.
256         * modules/netdb (Depends-on): Likewise.
257         * modules/getaddrinfo (Depends-on): Remove socklen.
258         * modules/getsockopt (Depends-on): Likewise.
259         * modules/setsockopt (Depends-on): Likewise.
260         * tests/test-sys_socket.c: Check that socklen_t is defined.
261         * tests/test-netdb.c: Likewise.
262         * m4/socklen.m4: Update comments.
263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
264
265 2010-08-27  Eric Blake  <eblake@redhat.com>
266
267         login_tty: add missing dependency
268         * modules/login_tty (Depends-on): Add pty.
269
270 2010-08-26  Eric Blake  <eblake@redhat.com>
271
272         lib-symbol-versions: fix m4 quoting
273         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
274         format for AC_LINK_IFELSE.
275
276         glob: fix compile test
277         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
278
279         btowc: fix missing file
280         * modules/btowc (Files): Also ship locale-fr.m4.
281
282         lseek: fix link test
283         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
284         AC_LINK_IFELSE.
285
286         include_next: silence autoconf 2.68 warning
287         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
288         AC_COMPILE_IFELSE as special.
289         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
290         autoconf < 2.68.
291
292         acl: fix compilation test
293         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
294         AC_COMPILE_IFELSE.
295
296 2010-08-26  Bruno Haible  <bruno@clisp.org>
297
298         Modernize AC_TRY_RUN invocations.
299         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
300         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
301         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
302         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
303         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
304         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
307         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
308         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
309         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
310         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
311         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
312         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
314         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
315         gl_MBRLEN_NUL_RETVAL): Likewise.
316         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
317         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
318         Likewise.
319         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
320         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
321         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
322         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
323         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
324         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
325         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
326         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
327         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
328         Likewise.
329         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
330         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
332         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
333         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
334         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
335         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
336         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
337         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
339
340 2010-08-26  Bruno Haible  <bruno@clisp.org>
341
342         Modernize AC_TRY_LINK invocations.
343         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
344         AC_TRY_LINK.
345         * m4/argp.m4 (gl_ARGP): Likewise.
346         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
347         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
348         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
349         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
350         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
351         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
352         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
353         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
354         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
355         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
356         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
357         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
358         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
359         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
360         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
361         * m4/hostent.m4 (gl_HOSTENT): Likewise.
362         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
363         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
364         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
365         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
366         Likewise.
367         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
368         Likewise.
369         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
370         Likewise.
371         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
373         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
374         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
375         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
376         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
377         * m4/servent.m4 (gl_SERVENT): Likewise.
378         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
379         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
380         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
381         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
382         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
383         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
384         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
386         * modules/tsearch-tests (configure.ac): Likewise.
387
388 2010-08-26  Bruno Haible  <bruno@clisp.org>
389
390         Modernize AC_TRY_COMPILE invocations.
391         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
392         AC_TRY_COMPILE.
393         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
394         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
395         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
396         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
397         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
398         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
399         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
400         * m4/lock.m4 (gl_LOCK): Likewise.
401         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
402         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
403         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
404         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
405         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
406         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
407         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
408         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
409         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
410         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
411         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
412         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
413         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
414         extraneous semicolon.
415
416 2010-08-26  Jim Meyering  <meyering@redhat.com>
417
418         stat-time: relax license LGPL
419         * modules/stat-time (License): Change from GPL to LGPL,
420         with consent from all contributors, for use in libguile.
421         Requested by Ludovic Courtès.
422
423 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
424
425         poll: return immediately on POLLHUP.
426         * lib/poll.c (poll): Always set timeout before wait_timeout is
427         computed.
428
429 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
430
431         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
432         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
433         rmdir ("dir/.//"), unlinkat.
434
435 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
436
437         stdbool: avoid spurious failure with modern xlc
438         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
439
440 2010-08-24  Bruno Haible  <bruno@clisp.org>
441
442         getloadavg: simplify code
443         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
444         gl_have_func. Update comments.
445
446 2010-08-24  Eric Blake  <eblake@redhat.com>
447
448         getloadavg: don't define SVR4 on cygwin
449         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
450         only define SVR4 when -lkvm is required.
451         Reported by Yaakov Selkowitz.
452
453 2010-08-24  Bruno Haible  <bruno@clisp.org>
454
455         priv-set: fix comment
456         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
457
458 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
459
460         priv-set: fix comments
461         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
462         to match code, as suggested by David Bartley in:
463         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
464
465 2010-08-23  Eric Blake  <eblake@redhat.com>
466
467         stdbool: avoid rejecting clang
468         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
469         * tests/test-stdbool.c: Enable more tests if using the system
470         <stdbool.h> instead of the gnulib replacement.
471         (main): Move xlc bug test to a runtime test for all compilers.
472         Reported by Anders Kaseorg.
473
474         argz: fix shell quoting issue
475         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
476         Reported by Charles Wilson.
477
478 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
479             Erik Faye-Lund <kusmabite@gmail.com>
480
481         poll, select: handle ERROR_BROKEN_PIPE.
482         * lib/poll.c (win32_compute_revents): Return POLLHUP when
483         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
484         * lib/select.c (win32_compute_revents): Do not mark a pipe
485         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
486
487 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
488
489         fts: allow compilation with C++
490         * lib/fts_.h: Specify extern "C" linkage with C++.
491
492 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
493
494         Fix gnulib-tool sed script de-commentation for AIX sed.
495         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
496         sed.
497
498 2010-08-17  Eric Blake  <eblake@redhat.com>
499
500         test-stddef: test for (some) offsetof bugs
501         * tests/test-stddef.c: Enhance test to ensure correct type of
502         offsetof.
503         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
504         that we are not fixing at this time.
505
506 2010-08-15  Bruno Haible  <bruno@clisp.org>
507
508         stpncpy: Allow stpncpy to be defined as a macro.
509         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
510         if it's already correctly declared.
511         * lib/string.in.h (stpncpy): Undefine before redefining.
512         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
513
514 2010-08-14  Bruno Haible  <bruno@clisp.org>
515
516         Rename module 'memxfrm' to 'amemxfrm'.
517         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
518         (amemxfrm): Renamed from memxfrm.
519         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
520         (amemxfrm): Renamed from memxfrm.
521         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
522         * NEWS: Mention the change.
523         * MODULES.html.sh (String handling <string.h>): Update.
524         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
525         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
526         * lib/unicase/u16-casexfrm.c: Likewise.
527         * lib/unicase/u32-casexfrm.c: Likewise.
528         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
529         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
530         * lib/uninorm/u16-normxfrm.c: Likewise.
531         * lib/uninorm/u32-normxfrm.c: Likewise.
532         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
533         memxfrm.
534         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
535         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
536         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
537         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
538         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
539         Suggested by Paul Eggert.
540
541 2010-08-14  Bruno Haible  <bruno@clisp.org>
542
543         Tests for module 'astrxfrm'.
544         * modules/astrxfrm-tests: New file.
545         * tests/test-astrxfrm.c: New file.
546
547         New module 'astrxfrm'.
548         * lib/astrxfrm.h: New file.
549         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
550         * modules/astrxfrm: New file.
551
552 2010-08-14  Reuben Thomas <rrt@sc3d.org>
553
554         regex: Tweak doc.
555         * doc/regex.texi (Overview): Don't mention regex.c.
556         (GNU Regular Expression Compiling): Likewise.
557         (Match-end-of-line Operator): Mention 'not_eol'.
558
559 2010-08-14  Brian Gough  <bjg@gnu.org>
560             Bruno Haible  <bruno@clisp.org>
561
562         git-merge-changelog: add doc relating to use with bzr and hg.
563         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
564
565 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
566
567         pthread: fix pthread.h creation for srcdir != builddir
568         * modules/pthread (Makefile.am): Fix the rule to work also in a
569         non-srcdir build.
570
571 2010-08-13  Karl Berry  <karl@gnu.org>
572
573         * doc/regex.texi (Predefined Syntaxes): @smallexample.
574         * doc/posix-*/*: force line break before @url of POSIX
575         specifications.
576         Suggested by Werner Lemberg.
577
578 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
579
580         strtod: fix const diagnostic
581         * lib/strtod.c (strtod): Don't assign const char * to char *,
582         as this elicits a warning from GCC when warnings are enabled.
583
584 2010-08-10  Pádraig Brady <P@draigbrady.com>
585         and Eric Blake  <eblake@redhat.com>
586
587         copy-acl: ignore ENOTSUP on HP-UX
588         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
589         so that it is available for HP-UX.
590         * lib/copy-acl.c (qcopy_acl): Use it.
591         Reported by Patrick M. Callahan.
592
593 2010-08-10  Eric Blake  <eblake@redhat.com>
594
595         open, chown: relax license
596         * modules/open (License): Change to LGPLv2+, with consent by all
597         authors, for use in augeas.
598         * modules/chown (License): Likewise.
599         * modules/lchown (Likewise): Likewise.
600         Requested by Adam Stokes.
601
602 2010-08-09  Karl Berry  <karl@gnu.org>
603
604         * build-aux/ar-lib: new file, import from Automake.
605         * config/srclist.txt: autocheck for updates.
606
607 2010-08-09  Eric Blake  <eblake@redhat.com>
608
609         readlinkat: adjust client modules
610         * modules/areadlinkat (Depends-on): Use readlinkat, not
611         symlinkat.
612         * modules/areadlinkat-with-size (Depends-on): Likewise.
613
614         mknod: be more vocal about danger of running tests as root
615         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
616         root, since that is just asking for problems.
617         Suggested by Bruno Haible, based on a report by Rainer Tammer.
618
619         readlinkat: split into its own module
620         * modules/symlinkat: Split readlinkat...
621         * modules/readlinkat: ...into separate module.
622         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
623         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
624         * lib/symlinkat.c (readlinkat): Move...
625         * lib/readlinkat.c: ...into new file.
626         * modules/symlinkat-tests: Split readlinkat test...
627         * modules/readlinkat-tests: ...into separate module.
628         * tests/test-symlinkat.c: Split...
629         * tests/test-readlinkat.c: ...into new file.
630         * NEWS: Document the split.
631         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
632         * lib/unistd.in.h (readlinkat): Likewise.
633         Suggested by Bruno Haible.
634
635 2010-08-08  Bruno Haible  <bruno@clisp.org>
636
637         memxfrm: Speed up.
638         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
639         that usually only one call to strxfrm is necessary for each string
640         part.
641         Reported by Paul Eggert <eggert@cs.ucla.edu>.
642
643 2010-08-07  Karl Berry  <karl@gnu.org>
644
645         * doc/posix-headers/limits.texi,
646         * doc/posix-functions/malloc.texi,
647         * doc/posix-functions/strsignal.texi: missing @item.
648         * doc/ld-version-script.texi: spurious leading i.
649         * doc/regex.texi (Interval Operators): no commas inside @var.
650
651 2010-08-01  Bruno Haible  <bruno@clisp.org>
652
653         Integrate the regex documentation.
654         * doc/gnulib.texi: Define 'cn' index.
655         (Regular expressions): New a chapter that includes regex.texi and
656         regexprops-generic.texi.
657         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
658         syntax.
659
660         Whitespace cleanup.
661         * doc/regex.texi: Remove trailing spaces.
662
663         Add regex documentation.
664         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
665         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
666         Written by Kathy A. Hargreaves and Karl Berry.
667
668 2010-08-01  Bruno Haible  <bruno@clisp.org>
669
670         link: Update documentation.
671         * doc/posix-functions/link.texi: Update regarding Solaris.
672
673 2010-07-31  Bruno Haible  <bruno@clisp.org>
674
675         Update modules list.
676         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
677         (String handling <string.h>): Add memcmp2, memxfrm.
678         (Container data structures): Add xlist, xsublist, xoset.
679         (Core language properties): Add alignof, unused-parameter.
680         (Process control, Numeric conversion functions <stdlib.h>): Renamed
681         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
682         (Unibyte characters <ctype.h>): New section.
683         (String handling <string.h>): New section.
684         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
685         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
686         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
687         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
688         tan, tanh, tanl, y0, y1, yn.
689         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
690         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
691         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
692         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
693         unlockpt, vdprintf, vdprintf-posix.
694         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
695         (File system functions): Add concat-filename, sys_file, sys_ioctl,
696         xconcat-filename.
697         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
698         getdtablesize, pipe2, pipe2-safer.
699         (Security): New section.
700         (Networking functions): Add accept4.
701         (Signal handling): Add sigpipe.
702         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
703         mbmemcasecoll.
704         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
705         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
706         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
707         pipe-filter-ii.
708         (Misc): Add argp-version-etc, login_tty, parse-duration.
709
710 2010-07-31  Bruno Haible  <bruno@clisp.org>
711
712         Improve doc in MODULES.html.
713         * modules/linkat (Description): Add the word "function".
714         * modules/mkfifo (Description): Likewise.
715         * modules/mknod (Description): Likewise.
716         * modules/remove (Description): Likewise.
717         * modules/renameat (Description): Likewise.
718         * modules/stat (Description): Likewise.
719         * modules/symlink (Description): Likewise.
720         * modules/unlink (Description): Likewise.
721
722 2010-07-31  Bruno Haible  <bruno@clisp.org>
723
724         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
725         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
726         option --enable/disable-c++ instead of --enable/disable-cxx.
727         * NEWS: Mention the change.
728
729 2010-07-31  Bruno Haible  <bruno@clisp.org>
730
731         readlink, areadlink: Relax test a bit.
732         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
733         alternative to ENOTDIR.
734         * tests/test-areadlink.h (test_areadlink): Likewise.
735         Reported by Rainer Tammer.
736
737 2010-07-31  Bruno Haible  <bruno@clisp.org>
738
739         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
740         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
741         character, perform the search using U_STRCHR.
742         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
743         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
744         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
745         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
746         Suggested by Paolo Bonzini.
747
748 2010-07-31  Bruno Haible  <bruno@clisp.org>
749
750         unistr/u*-strstr: Fix dependencies.
751         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
752         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
753         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
754
755 2010-07-31  Bruno Haible  <bruno@clisp.org>
756
757         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
758         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
759         the beginning of the loop.
760         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
761         cases in 'switch' statement.
762
763         unistr/u8-strchr: Fix several bugs.
764         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
765         the string. When not found, return NULL, not a pointer near the end.
766
767         More tests for unistr/u8-strchr.
768         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
769         that the function does not read past the first occurrence of the byte
770         being searched.
771         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
772         * tests/unistr/test-u16-strchr.c (main): New function.
773         * tests/unistr/test-u32-strchr.c (main): New function.
774
775 2010-07-31  Bruno Haible  <bruno@clisp.org>
776
777         posix-modules: Ignore backup files of documentation files.
778         * posix-modules: grep only through files named *.texi.
779
780 2010-07-31  Bruno Haible  <bruno@clisp.org>
781
782         symlinkat: Fix documentation.
783         * doc/posix-functions/readlinkat.texi: Fix module name.
784
785 2010-07-31  Bruno Haible  <bruno@clisp.org>
786
787         fchownat: Replace also when chown has the trailing slash bug.
788         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
789         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
790         introduced on 2010-04-10.
791         Reported by Rainer Tammer.
792
793 2010-07-31  Bruno Haible  <bruno@clisp.org>
794
795         linkat: Work around AIX 7.1 bug.
796         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
797         whether linkat handles trailing slash correctly. If not, replace linkat
798         and define LINKAT_TRAILING_SLASH_BUG.
799         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
800         check whether (fd1,file1) points to a directory if file1 or file2 ends
801         in a slash. Code taken from lib/link.c.
802         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
803         Reported by Rainer Tammer.
804
805 2010-07-31  Bruno Haible  <bruno@clisp.org>
806
807         Correctly determine whether pow is available in libc on AIX 7 with xlc.
808         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
809         This disables an xlc optimization that was causing wrong test results.
810         Reported by Rainer Tammer.
811
812 2010-07-31  Bruno Haible  <bruno@clisp.org>
813
814         iconv: Work around AIX 6.1..7.1 bug.
815         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
816         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
817         cross-compiling, guess no on all versions of AIX.
818         Reported by Rainer Tammer.
819
820 2010-07-31  Bruno Haible  <bruno@clisp.org>
821
822         readlink: Relax test a bit.
823         * tests/test-readlink.h (test_readlink): Allow different errno value
824         when readlink is called with a file name that ends in / and refers to
825         a file.
826         Suggested by Eric Blake.
827         Reported by Rainer Tammer.
828
829 2010-07-31  Bruno Haible  <bruno@clisp.org>
830
831         copysign: Does not require -lm on glibc systems.
832         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
833         gl_COMMON_DOUBLE_MATHFUNC.
834         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
835
836 2010-07-31  Bruno Haible  <bruno@clisp.org>
837
838         duplocale: Work around AIX 7.1 bug.
839         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
840         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
841         * lib/duplocale.c (rpl_duplocale): Update comment.
842         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
843         Reported by Rainer Tammer.
844
845 2010-07-30  Bruno Haible  <bruno@clisp.org>
846
847         dirfd: Avoid link error on AIX 7.1.
848         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
849         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
850         exist, set REPLACE_DIRFD.
851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
852         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
853         * doc/posix-functions/dirfd.texi: Update.
854         Reported by Rainer Tammer.
855
856 2010-07-30  Eric Blake  <eblake@redhat.com>
857
858         strtod: next round of AIX fixes
859         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
860         exponent.
861         * tests/test-strtod.c (main): Enhance tests.
862         * doc/posix-functions/strtod.texi (strtod): Document next bug.
863         Reported by Rainer Tammer.
864
865         futimens: fix configure check
866         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
867         Reported by Bruno Haible.
868
869 2010-07-30  Bruno Haible  <bruno@clisp.org>
870
871         getline: Update regarding AIX.
872         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
873         Reported by Rainer Tammer.
874
875 2010-07-30  Bruno Haible  <bruno@clisp.org>
876
877         wcwidth: Drop replacement on AIX 7.
878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
879         AIX 7.
880         Reported by Rainer Tammer.
881
882 2010-07-30  Bruno Haible  <bruno@clisp.org>
883
884         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
885         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
886         a 'char *'.
887         Reported by Rainer Tammer.
888
889 2010-07-30  Bruno Haible  <bruno@clisp.org>
890
891         unlink: Update regarding AIX.
892         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
893         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
894         Reported by Rainer Tammer.
895
896 2010-07-30  Bruno Haible  <bruno@clisp.org>
897
898         symlink: Update regarding AIX.
899         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
900         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
901         Reported by Rainer Tammer.
902
903 2010-07-30  Bruno Haible  <bruno@clisp.org>
904
905         strndup: Update regarding AIX.
906         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
907         AIX 7.
908         Reported by Rainer Tammer.
909
910 2010-07-30  Bruno Haible  <bruno@clisp.org>
911
912         stat: Update regarding AIX.
913         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
914         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
915         Reported by Rainer Tammer.
916
917 2010-07-30  Bruno Haible  <bruno@clisp.org>
918
919         truncl: Fix autoconf test.
920         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
921         whether truncl works.
922         Reported by Rainer Tammer.
923
924 2010-07-30  Bruno Haible  <bruno@clisp.org>
925
926         round: Update regarding AIX.
927         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
928         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
929         Reported by Rainer Tammer.
930
931 2010-07-30  Bruno Haible  <bruno@clisp.org>
932
933         rename: Update regarding AIX.
934         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
935         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
936         Reported by Rainer Tammer.
937
938 2010-07-30  Bruno Haible  <bruno@clisp.org>
939
940         printf.m4: Update regarding AIX.
941         * m4/printf.m4: Update comments regarding AIX.
942         Reported by Rainer Tammer.
943
944 2010-07-30  Bruno Haible  <bruno@clisp.org>
945
946         iconv: Update regarding AIX.
947         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
948         AIX 7.
949         Reported by Rainer Tammer.
950
951 2010-07-30  Bruno Haible  <bruno@clisp.org>
952
953         getopt: Update regarding AIX.
954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
955         no on AIX.
956         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
957         Reported by Rainer Tammer.
958
959 2010-07-30  Bruno Haible  <bruno@clisp.org>
960
961         ldexpl; Update regarding AIX.
962         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
963         on AIX 7.
964         Reported by Rainer Tammer.
965
966 2010-07-30  Bruno Haible  <bruno@clisp.org>
967
968         frexpl: Update regarding AIX.
969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
970         on AIX 7.
971         Reported by Rainer Tammer.
972
973 2010-07-30  Bruno Haible  <bruno@clisp.org>
974
975         open, fopen: Update regarding AIX.
976         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
977         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
978         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
979         * doc/posix-functions/fopen.texi: Likewise.
980         Reported by Rainer Tammer.
981
982 2010-07-30  Bruno Haible  <bruno@clisp.org>
983
984         chown: Update doc regarding AIX.
985         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
986         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
987         Reported by Rainer Tammer.
988
989 2010-07-30  Eric Blake  <eblake@redhat.com>
990
991         strtod: fix bug in replacement function on AIX
992         * lib/strtod.c (strtod): Special case broken "0x" parse in
993         underlying strtod.
994         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
995         * doc/posix-functions/strtod.texi (strtod): Likewise.
996         Reported by Rainer Tammer.
997
998 2010-07-30  Bruno Haible  <bruno@clisp.org>
999
1000         mbrlen: Fix cross-compilation guess for AIX.
1001         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1002         guess. Leftover from 2008-12-22.
1003
1004 2010-07-30  Bruno Haible  <bruno@clisp.org>
1005
1006         mbrtowc: Fix cross-compilation guess for AIX.
1007         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1008         guess. Leftover from 2008-12-21.
1009
1010 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1011
1012         init.sh: work around trap limitation of some shells
1013         * tests/init.sh (setup_): Move exit trap outside of shell function.
1014
1015 2010-07-29  Eric Blake  <eblake@redhat.com>
1016
1017         strtod: aid debugging
1018         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1019         understanding why strtod is rejected.
1020
1021 2010-07-28  Bruno Haible  <bruno@clisp.org>
1022
1023         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1024         * lib/unistr/u8-chr.c: Include <string.h>.
1025         * tests/unistr/test-u8-chr.c: Likewise.
1026         * tests/unistr/test-u16-chr.c: Likewise.
1027         * tests/unistr/test-u32-chr.c: Likewise.
1028         * tests/unistr/test-u8-strchr.c: Likewise.
1029         * tests/unistr/test-u16-strchr.c: Likewise.
1030         * tests/unistr/test-u32-strchr.c: Likewise.
1031         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1032         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1033         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1034         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1035
1036 2010-07-28  Bruno Haible  <bruno@clisp.org>
1037
1038         Use spaces for indentation, not tabs.
1039         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1040
1041 2010-07-27  Bruno Haible  <bruno@clisp.org>
1042
1043         mbspcasecmp: Fix function specification.
1044         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1045         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1046         Reported by Eric Blake <eblake@redhat.com>.
1047
1048 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1049
1050         timespec: use cast and not conditional, as truncation isn't possible
1051         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1052         instead of a conditional.  Comment about the situation in more detail.
1053         This undoes most of the 2009-10-29 patch.
1054
1055 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1056
1057         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1058         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1059         * lib/unistr/u8-strchr.c: Likewise.
1060         * modules/unistr/u8-chr: Depend on memchr.
1061
1062         unistr/u*-strchr: add tests
1063         * modules/unistr/u8-strchr-tests: New file.
1064         * modules/unistr/u16-strchr-tests: New file.
1065         * modules/unistr/u32-strchr-tests: New file.
1066         * tests/unistr/test-strchr.h: New file.
1067         * tests/unistr/test-u8-strchr.c: New file.
1068         * tests/unistr/test-u16-strchr.c: New file.
1069         * tests/unistr/test-u32-strchr.c: New file.
1070
1071         unistr/u*-chr: test multibyte sequences more
1072         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1073         test vector.
1074         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1075         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1076         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1077
1078         unistr/u*-chr: test multibyte sequences
1079         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1080
1081         unistr/u*-chr: prepare for multibyte tests
1082         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1083         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1084         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1085         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1086         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1087         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1088
1089 2010-07-18  Bruno Haible  <bruno@clisp.org>
1090
1091         unistr/u8-strchr: Optimize non-ASCII argument case.
1092         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1093         because the first byte often matches anyway.
1094         Reported by Pádraig Brady <P@draigbrady.com>.
1095
1096 2010-07-15  Karl Berry  <karl@gnu.org>
1097
1098         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1099
1100 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1101
1102         getcwd: on Solaris, work better if ancestors are inaccessible
1103         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1104         buffer and size, try again with a large buffer.  This works better
1105         on Solaris, since its getcwd succeeds even if the path to the root
1106         is inaccessible, and this is helpful in common cases such as .zfs
1107         hidden directories.  Problem reported by J Chapman Flack in
1108         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1109         Use system getcwd if it's declared, not merely if it's partly
1110         working; use the partly-working test only to avoid needless effort
1111         if the system getcwd fails.
1112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1113         comment that was already obsolete and is now even more obsolete.
1114         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1115         now might call strdup.
1116
1117 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1118
1119         pthread: Add enough so that coreutils/src/sort.c compiles.
1120         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1121         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1122         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1123         Include <sys/types.h>, in case it defines pthread_t.
1124         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1125         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1126         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1127         (pthread_rwlockattr_t, pthread_spinlock_t):
1128         New typedefs, if HAVE_PTHREAD_T is not defined.
1129         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1130         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1131         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1132         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1133         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1134         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1135         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1136         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1137         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1138         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1139         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1140         New macros.
1141         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1142         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1143         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1144         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1145         (pthread_spin_unlock): New dummy functions.
1146         (pthread_create): Return EAGAIN; don't set errno.
1147         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1148         require AC_C_INLINE.
1149         * modules/pthread (Depends-on): Add sched, time.
1150         (pthread.h): Use AM_V_GEN.
1151
1152 2010-07-13  Bruno Haible  <bruno@clisp.org>
1153
1154         striconveh: Don't malloc memory if the result buffer is sufficient.
1155         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1156         buffer if its size is sufficient.
1157         Reported by Ludovic Courtès <ludo@gnu.org>.
1158
1159 2010-07-13  Bruno Haible  <bruno@clisp.org>
1160
1161         strtod: Add safety check.
1162         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1163
1164 2010-07-12  Bruno Haible  <bruno@clisp.org>
1165
1166         Unify tests that set gl_cv_func_ldexpl_no_libm.
1167         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1168         gl_FUNC_LDEXPL.
1169         (gl_FUNC_LDEXPL): Invoke it.
1170         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1171
1172 2010-07-12  Bruno Haible  <bruno@clisp.org>
1173
1174         Unify tests that set gl_cv_func_ldexp_no_libm.
1175         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1176         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1177         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1178         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1179         * modules/strtod (Files): Add m4/ldexp.m4.
1180
1181 2010-07-12  Bruno Haible  <bruno@clisp.org>
1182
1183         Unify tests that set gl_cv_func_frexpl_no_libm.
1184         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1185         gl_FUNC_FREXPL_NO_LIBM.
1186         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1188
1189 2010-07-12  Bruno Haible  <bruno@clisp.org>
1190
1191         Unify tests that set gl_cv_func_frexp_no_libm.
1192         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1193         gl_FUNC_FREXP_NO_LIBM.
1194         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1195         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1196
1197 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1198
1199         memcoll: clarify sizes versus lengths, document better, and tweak perf
1200         * lib/memcoll.c (strcoll_loop, memcoll0):
1201         Improve quality of descriptive comments.  Name variables
1202         consistently as to whether they are lengths (which do not include
1203         terminating null) versus sizes (which do).
1204         * lib/xmemcoll.c (xmemcoll0): Likewise.
1205         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1206         returned when s1size == 0; this is easier to compile and saves
1207         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1208
1209 2010-07-12  Bruno Haible  <bruno@clisp.org>
1210
1211         Tests for module '_Exit'.
1212         * modules/_Exit-tests: New file.
1213         * tests/test-_Exit.sh: New file.
1214         * tests/test-_Exit.c: New file.
1215
1216         New module '_Exit'.
1217         * lib/stdlib.in.h (__attribute__): New macro.
1218         (_Exit): New declaration.
1219         * lib/_Exit.c: New file.
1220         * m4/_Exit.m4: New file.
1221         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1222         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1223         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1224         * modules/_Exit: New file.
1225         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1226         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1227
1228 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1229
1230         strtod: make it more-accurate typically, and don't require libm
1231         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1232         Include limits.h.  Don't include string.h.
1233         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1234         (locale_isspace): New function, so that no casts are needed to
1235         check whether *s is a space.
1236         (ldexp): Provide an unused dummy if not available.
1237         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1238         (strtod): Use them.  This implementation prefers to use the
1239         underlying strtod if available, falling back on our own code
1240         only to fix known bugs.  This is more likely to produce an
1241         accurate result.  Also, it avoids the use of libm functions.
1242         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1243         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1244         was absent, but it caused a test failure with coreutils.
1245         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1246         with libm.
1247         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1248         * modules/strtod-tests (Makefile.am): Likewise.
1249
1250 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1251             Bruno Haible  <bruno@clisp.org>
1252
1253         unistr/u8-strchr: Optimize ASCII argument case.
1254         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1255
1256 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1257
1258         (x)memcoll: minor tweaks
1259         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1260         is after the type that it qualifies.
1261         (memcoll0): Likewise.
1262         * lib/memcoll.h (memcoll0): Likewise.
1263         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1264         * lib/xmemcoll.h (xmemcoll0): Likewise.
1265         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1266         differs from memcoll in that the NUL byte is part of the argument.
1267         Omit the abort-checks, as performance is a real issue here.  Plus,
1268         the checks were wrong anyway (an off-by-one error).  Omit local
1269         variable 'diff', as it's a bit clearer that way.
1270         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1271         no longer needed.
1272
1273 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1274
1275         (x)memcoll: speedup when input is known to be NUL delimited
1276         * lib/memcoll.c: Include stdlib.
1277         (memcoll0) New function.
1278         (strcoll_loop) New function, refactored for use in both memcoll
1279         and memcoll0.
1280         * lib/memcoll.h: Add prototype for memcoll0.
1281         * lib/xmemcoll.c: (xmemcoll0) New function.
1282         (collate_error) New function, refactored for use in both xmemcoll
1283         and xmemcoll0.
1284         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1285         * m4/memcoll.m4: add inline invocation.
1286
1287 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1288
1289         * build-aux/bootstrap: Remove any local translations
1290         from the translation project synchronization directory,
1291         so that local only translations are not distributed.
1292
1293 2010-07-04  Bruno Haible  <bruno@clisp.org>
1294
1295         fsusage: Clarify which code applies to which platforms.
1296         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1297         platform.
1298         * lib/fsusage.c (get_fs_usage): Likewise.
1299
1300 2010-07-04  Bruno Haible  <bruno@clisp.org>
1301
1302         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1303         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1304         Reported by Martin Lambers <marlam@marlam.de>.
1305
1306 2010-07-04  Jim Meyering  <meyering@redhat.com>
1307
1308         hash: once again explicitly disallow insertion of NULL
1309         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1310         inserting a NULL pointer cannot work with these functions.
1311         Add a comment with details.
1312         This reverts part of the 2010-07-01 commit, 5bef1a35
1313         "hash: extend module to deal with non-pointer keys".
1314
1315 2010-07-01  Bruno Haible  <bruno@clisp.org>
1316
1317         stdbool: Update doc.
1318         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1319         Info from Christian Weisgerber <naddy@mips.inka.de>.
1320
1321 2010-07-01  Jim Meyering  <meyering@redhat.com>
1322
1323         hash: extend module to deal with non-pointer keys
1324         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1325         but that allows insertion of non-pointer entries.
1326         Do not disallow an ENTRY value of NULL.
1327         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1328         * lib/hash.h (hash_insert0): Declare.
1329
1330 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1331
1332         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1333         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1334         not present (i.e. with autoconf 2.59 and when using gettextize, not
1335         gnulib), require AC_GNU_SOURCE instead.
1336
1337 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1338
1339         idpriv-drop: Fix tests.
1340         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1341         not to the test-idpriv-droptemp program.
1342
1343 2010-06-29  Bruno Haible  <bruno@clisp.org>
1344
1345         string: Fix syntax error with g++ 2.96.
1346         * lib/string.in.h (__pure__): Remove definition.
1347         (_GL_ATTRIBUTE_PURE): New macro.
1348         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1349         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1350         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1351
1352 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1353
1354         unitypes: Fix bug introduced on 2010-05-18.
1355         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1356
1357 2010-06-22  Eric Blake  <eblake@redhat.com>
1358
1359         memmem: slight optimization
1360         * lib/str-two-way.h (critical_factorization): Update comments.
1361         Reduce work during factorization phase.
1362         Reported by Carlos Bueno <carlos@bueno.org>.
1363
1364 2010-06-21  Bruno Haible  <bruno@clisp.org>
1365
1366         Fix HAVE_CALLOC_POSIX misnomer.
1367         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1368         !HAVE_CALLOC_POSIX.
1369         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1370         HAVE_CALLOC_POSIX.
1371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1372         instead of HAVE_CALLOC_POSIX.
1373         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1374         HAVE_CALLOC_POSIX.
1375
1376         Use modern idiom for calloc() replacement.
1377         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1378         AC_FUNC_CALLOC.
1379         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1380         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1381         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1382         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1383         (gl_REPLACE_CALLOC): New macro.
1384
1385 2010-06-21  Bruno Haible  <bruno@clisp.org>
1386
1387         Fix HAVE_REALLOC_POSIX misnomer.
1388         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1389         !HAVE_REALLOC_POSIX.
1390         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1391         HAVE_REALLOC_POSIX.
1392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1393         instead of HAVE_REALLOC_POSIX.
1394         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1395         HAVE_REALLOC_POSIX.
1396
1397         Use modern idiom for realloc() replacement.
1398         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1399         AC_FUNC_REALLOC.
1400         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1401         Autoconf's AC_FUNC_REALLOC.
1402         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1403         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
1404         (gl_REPLACE_REALLOC): New macro.
1405         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1406
1407 2010-06-21  Bruno Haible  <bruno@clisp.org>
1408
1409         Fix HAVE_MALLOC_POSIX misnomer.
1410         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
1411         !HAVE_MALLOC_POSIX.
1412         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
1413         HAVE_MALLOC_POSIX.
1414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
1415         instead of HAVE_MALLOC_POSIX.
1416         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
1417         HAVE_MALLOC_POSIX.
1418
1419         Use modern idiom for malloc() replacement.
1420         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
1421         AC_FUNC_MALLOC.
1422         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
1423         Autoconf's AC_FUNC_MALLOC.
1424         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1425         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
1426         (gl_REPLACE_MALLOC): New macro.
1427         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
1428
1429 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
1430
1431         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
1432         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
1433         This macro takes 3 arguments, not 4.
1434
1435 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
1436
1437         ipv6: fix detection under mingw
1438         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
1439         in6_addr.
1440
1441 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
1442
1443         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
1444         that strtod() works when cross-compiling to a glibc version known
1445         to work.
1446
1447 2010-06-15  Bruno Haible  <bruno@clisp.org>
1448
1449         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
1450
1451 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
1452
1453         select: Correct timeout.
1454         * lib/select.c (rpl_select): Compute wait_timeout correctly.
1455
1456 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1457
1458         git-version-gen: init shell var to avoid env var influence
1459         * build-aux/git-version-gen (v): Init shell var to empty.
1460
1461 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
1462
1463         priv-set: Don't assume that priv.h exists merely because getppriv does.
1464         See Jan Andersen's bug report about AIX 5L in
1465         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
1466         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
1467         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
1468         * lib/priv-set.h: Likewise.
1469         * tests/test-priv-set.c: Likewise.
1470
1471 2010-06-13  Bruno Haible  <bruno@clisp.org>
1472
1473         relocatable: Make it easier to test whether to install wrappers.
1474         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
1475         RELOCATABLE_VIA_WRAPPER.
1476
1477 2010-06-13  Bruno Haible  <bruno@clisp.org>
1478
1479         gnulib-tool: Display specified modules and dependencies differently.
1480         * gnulib-tool (func_show_module_list): New function.
1481         (func_import, func_create_testdir): Invoke it.
1482         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1483
1484 2010-06-13  Bruno Haible  <bruno@clisp.org>
1485
1486         gnulib-tool: Align code of func_import and func_create_testdir.
1487         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
1488         specified_modules.
1489
1490 2010-06-12  Jim Meyering  <meyering@redhat.com>
1491
1492         test-inttostr: avoid spurious failure on Solaris 9
1493         * tests/test-inttostr.c (main): Skip the test when snprintf fails
1494         to accept "%ju".  Reported by Bruno Haible.
1495
1496 2010-06-11  Jim Meyering  <meyering@redhat.com>
1497
1498         test-sys_socket: mark variables as used more readably
1499         * tests/test-sys_socket.c (main): Mark otherwise unused variables
1500         as "used" explicitly via (void) statement casts.  This is more
1501         readable than using them in an artificial return expression.
1502         Suggestion from Bruno Haible.
1503
1504 2010-06-11  Bruno Haible  <bruno@clisp.org>
1505
1506         Avoid some more warnings from "gcc -Wwrite-strings".
1507         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
1508         to 'const char *'.
1509         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
1510         * tests/test-c-strcasestr.c (main): Likewise.
1511         * tests/test-mbscasestr1.c (main): Likewise.
1512         * tests/test-mbscasestr2.c (main): Likewise.
1513         * tests/test-memmem.c (main): Likewise.
1514         * tests/test-strstr.c (main): Likewise.
1515         * tests/test-strcasestr.c (main): Likewise.
1516
1517 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1518
1519         init.sh: change framework_failure_ to fail with status 99, not 1
1520         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
1521         automake's parallel-tests rule that this is an unexpected failure,
1522         even if the test is listed in XFAIL_TESTS.
1523
1524 2010-06-11  Jim Meyering  <meyering@redhat.com>
1525
1526         test-inttostr: avoid warnings about 4-6KB literal strings
1527         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
1528         Include "macros.h", for its definition of ASSERT.
1529         (CK): s/assert/ASSERT/
1530         * modules/inttostr-tests (Files): Add macros.h.
1531
1532         init.sh: don't use $ME_ or skip_ before they are defined
1533         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
1534         their first uses.  Also hoist their companions: warn_, fail_,
1535         framework_failure_, $stderr_fileno.  Prompted by a patch from
1536         Stefano Lattarini.
1537
1538         test-sys_socket: avoid set-but-not-used warnings from gcc
1539         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
1540         avoid warning about set-but-not-used variables.
1541
1542         test-xvasprintf: avoid 'const' discard warnings
1543         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
1544         "const" when assigning from literal strings.
1545         (test_xasprintf): Add "void" in function argument list to placate
1546         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
1547
1548         tests: avoid compilation warnings in argmatch and exclude tests...
1549         in packages that define ARGMATCH_DIE_DECL, like coreutils.
1550         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
1551         Since it always exits, declare with the "noreturn" attribute.
1552         * tests/test-argmatch.c: Likewise.
1553
1554         tests: avoid 'const' discard warnings in mbsstr tests
1555         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
1556         * tests/test-mbsstr2.c (main): Likewise.
1557
1558         test-verify: avoid warning from gcc's -Wmissing-declarations
1559         * tests/test-verify.c (function): Declare to be static.
1560
1561         test-inttostr.c: include <string.h> for use of strcmp
1562         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
1563
1564         test-linkat: avoid failed assertion on "other" architectures
1565         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
1566         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
1567         sparc: https://bugs.launchpad.net/bugs/591968
1568
1569 2010-06-11  Jim Meyering  <meyering@redhat.com>
1570
1571         printf.m4: avoid autoconf's "Expanded Before Required" warning
1572         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
1573         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
1574         autoconf warning.
1575
1576 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
1577
1578         Replacement header templates are now named with ".in", not "_".
1579         * doc/gnulib-intro.texi: Correct.
1580
1581 2010-06-10  Jim Meyering  <meyering@redhat.com>
1582
1583         inttostr-tests: depend on snprintf, not snprintf-posix
1584         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
1585         snprintf-posix, to avoid this aclocal failure:
1586           missing file gnulib-tests/vasnprintf.c
1587           configure.ac:45: error: expected source file, required through \
1588           AC_LIBSOURCES, not found
1589
1590 2010-06-10  Jim Meyering  <meyering@redhat.com>
1591
1592         inttostr: add a new function, inttostr, and tests
1593         The namesake function was not available.  The existence of the
1594         template file, inttostr.c makes its addition nontrivial.
1595         * lib/anytostr.c: Rename from inttostr.c.
1596         (anytostr): Rename from inttostr.
1597         * lib/inttostr.c: New file.
1598         * modules/inttostr (Files): Add anytostr.c.
1599         (Makefile.am): Set lib_SOURCES instead of ...
1600         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
1601         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
1602         * lib/offtostr.c: Likewise.
1603         * lib/uinttostr.c: Likewise.
1604         * lib/umaxtostr.c: Likewise.
1605         * modules/inttostr-tests: New file.
1606         * tests/test-inttostr.c: New file.  Test these functions.
1607
1608 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
1609             Bruno Haible  <bruno@clisp.org>
1610
1611         Add "Extending Gnulib" chapter to manual.
1612         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
1613         chapter.
1614         (Extending Gnulib): New chapter.
1615         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
1616         chapter.
1617
1618 2010-06-09  Bruno Haible  <bruno@clisp.org>
1619
1620         Avoid relocwrapper link errors due to gnulib replacement functions.
1621         * lib/areadlink.c: Use the system's malloc, realloc functions.
1622         (areadlink): Set errno to ENOMEM explicitly.
1623         * modules/areadlink (Depends-on): Remove malloc-posix.
1624         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1625
1626 2010-06-09  Bruno Haible  <bruno@clisp.org>
1627
1628         Avoid relocwrapper link errors due to gnulib replacement functions.
1629         * lib/canonicalize-lgpl.c: Use the system's malloc function.
1630         * lib/malloca.c: Likewise.
1631         * lib/relocatable.c: Likewise.
1632         * lib/progreloc.c: Use the system's malloc, sprintf functions.
1633         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
1634         * lib/setenv.c: Use the system's malloc, realloc functions.
1635         * lib/strerror.c: Use the system's sprintf function.
1636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1637
1638 2010-06-04  Bruno Haible  <bruno@clisp.org>
1639
1640         Prefer documented low-level autoconf macro names.
1641         * m4/lib-link.m4: Use m4_translit instead of translit.
1642         * m4/environ.m4: Likewise.
1643         * m4/mathfunc.m4: Likewise.
1644         * m4/onceonly.m4: Likewise.
1645         * m4/stdint.m4: Likewise.
1646         Suggested by Eric Blake.
1647
1648 2010-06-04  Martin Lambers  <marlam@marlam.de>
1649             Bruno Haible  <bruno@clisp.org>
1650
1651         havelib: Allow library names with '+' characters.
1652         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1653         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
1654
1655 2010-06-09  Bruno Haible  <bruno@clisp.org>
1656
1657         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
1658         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
1659         realloc failed.
1660
1661 2010-06-08  Peter Simons  <simons@cryp.to>
1662
1663         maint.mk: make the news-check rule more configurable
1664         * top/maint.mk (news-check-lines-spec) New variable.
1665         (news-check): Use "sed -n 1,10p" in place of "head".
1666
1667 2010-06-07  Jim Meyering  <meyering@redhat.com>
1668
1669         do-release-commit-and-tag: fix typo in --help
1670         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
1671
1672         regex: avoid new dead-code warning with gcc-4.6.0
1673         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
1674         if-block containing a while-loop.  It's been unused for at least
1675         5 years.
1676
1677 2010-06-05  Bruno Haible  <bruno@clisp.org>
1678
1679         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
1680         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
1681
1682 2010-06-04  Bruno Haible  <bruno@clisp.org>
1683
1684         Update to GNU gettext 0.18.1.
1685         * modules/gettext (configure.ac): Require gettext infrastructure from
1686         version 0.18.1.
1687
1688 2010-06-03  Bruno Haible  <bruno@clisp.org>
1689
1690         Don't use AC_LIBOBJ with file names in subdirectories.
1691         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
1692         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
1693         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
1694         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
1695         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
1696         gl_LIBUNISTRING_LIBSOURCE.
1697         (Makefile.am): Augment lib_SOURCES here, conditionally.
1698         * NEWS: Drop requirement for Automake option 'subdir-objects'.
1699
1700 2010-06-03  Bruno Haible  <bruno@clisp.org>
1701
1702         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
1703         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
1704         expansion does not end with a newline.
1705         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
1706         unnecessary newline.
1707
1708 2010-06-03  Bruno Haible  <bruno@clisp.org>
1709
1710         Reduce dependencies.
1711         * tests/test-quotearg.h: New file, extracted from
1712         tests/test-quotearg.c.
1713         * tests/test-quotearg-simple.c: New file, extracted from
1714         tests/test-quotearg.c.
1715         * tests/test-quotearg.c: Don't include <ctype.h>.
1716         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
1717         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
1718         use_quote_double_quotes, use_quotearg_colon): Moved to
1719         tests/test-quotearg.h.
1720         (results_g, flag_results, custom_quotes, custom_results): Moved
1721         to tests/test-quotearg-simple.c.
1722         (main): Moved the part that does not depend on gettext to
1723         tests/test-quotearg-simple.c. Return 77 if the test cannot be
1724         performed.
1725         * modules/quotearg-simple: New file.
1726         * modules/quotearg-simple-tests: New file.
1727         * modules/quotearg (Depends-on): Add quotearg-simple.
1728         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
1729         (Files): Add tests/test-quotearg.h.
1730         Reported by Paolo Bonzini.
1731
1732 2010-06-03  Bruno Haible  <bruno@clisp.org>
1733
1734         Reduce dependencies.
1735         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
1736
1737 2010-06-03  Bruno Haible  <bruno@clisp.org>
1738
1739         time: Undefine more broken macros.
1740         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
1741         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
1742         Reported by Eric Blake.
1743
1744 2010-06-03  Bruno Haible  <bruno@clisp.org>
1745
1746         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
1747         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
1748         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
1749         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
1750         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
1751         Reported by Ludovic Courtès <ludo@gnu.org>.
1752
1753 2010-06-02  Eric Blake  <eblake@redhat.com>
1754
1755         time: work with mingw + pthreads-win32 library
1756         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
1757         if timespec is defined only in pthread.h.
1758         * modules/time (Makefile.am): Substitute it.
1759         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
1760         <pthread.h>, when needed.
1761         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
1762         from the library.
1763
1764 2010-05-31  Bruno Haible  <bruno@clisp.org>
1765
1766         Avoid expanding two macros in the wrong order.
1767         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
1768         gl_LIBUNISTRING if it is defined.
1769         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
1770         autoconf >= 2.64.
1771         Reported by Ludovic Courtès <ludo@gnu.org>.
1772
1773 2010-05-27  Jim Meyering  <meyering@redhat.com>
1774
1775         maint.mk: also prohibit "#undef" of always-defined symbols
1776         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
1777         Allow more than one space before the symbol name.
1778         (sc_prohibit_always-defined_macros): Use grep's -E, now that
1779         the regexp uses alternation.
1780
1781 2010-05-26  Eric Blake  <eblake@redhat.com>
1782
1783         maint.mk: avoid echo -e
1784         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
1785         Convert all uses of echo -* to printf.
1786         Reported by Matthias Bolte.
1787
1788 2010-05-25  Bruno Haible  <bruno@clisp.org>
1789
1790         Update to GNU gettext 0.18, part 2.
1791         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
1792         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
1793
1794 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1795
1796         Add missing include in test-pwrite.c.
1797         * tests/test-pwrite.c: Include string.h, for strcmp.
1798
1799 2010-05-24  Bruno Haible  <bruno@clisp.org>
1800
1801         * NEWS: Mention requirement for Automake option 'subdir-objects'.
1802
1803 2010-05-24  Bruno Haible  <bruno@clisp.org>
1804
1805         Don't use conversion with transliteration in u{8,16,32}_strcoll.
1806         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
1807         iconveh_error argument.
1808         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
1809         U_STRCONV_TO_LOCALE.
1810         * lib/unistr/u16-strcoll.c: Likewise.
1811         * lib/unistr/u32-strcoll.c: Likewise.
1812         * modules/unistr/u8-strcoll (Depends-on): Add
1813         uniconv/u8-strconv-to-enc, localcharset. Remove
1814         uniconv/u8-strconv-to-locale.
1815         (configure.ac): Bump version number.
1816         * modules/unistr/u16-strcoll (Depends-on): Add
1817         uniconv/u16-strconv-to-enc, localcharset. Remove
1818         uniconv/u16-strconv-to-locale.
1819         (configure.ac): Bump version number.
1820         * modules/unistr/u32-strcoll (Depends-on): Add
1821         uniconv/u32-strconv-to-enc, localcharset. Remove
1822         uniconv/u32-strconv-to-locale.
1823         (configure.ac): Bump version number.
1824
1825 2010-05-24  Bruno Haible  <bruno@clisp.org>
1826
1827         Avoid a test failure on NetBSD 5.0.
1828         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
1829         an iconv() bug.
1830
1831 2010-05-24  Bruno Haible  <bruno@clisp.org>
1832
1833         Adjust #include directive style.
1834         * modules/regex (Includes): Recommend to write <regex.h>.
1835
1836 2010-05-24  Bruno Haible  <bruno@clisp.org>
1837
1838         regex: Don't require alloca.
1839         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
1840         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
1841         only inside if (0).
1842
1843 2010-05-23  Jim Meyering  <meyering@redhat.com>
1844
1845         test-renameat.c: include <sys/stat.h>
1846         * tests/test-renameat.c: Include <sys/stat.h>; required for
1847         definition of S_IS* macros.
1848
1849 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
1850
1851         Update maintainer documentation for 'relocatable-prog' module.
1852         * doc/relocatable-maint.texi: Update.
1853         Comments by Bruno Haible.
1854
1855 2010-05-23  Bruno Haible  <bruno@clisp.org>
1856
1857         git-merge-changelog: Enable --split-merged-entry by default.
1858         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
1859         (usage): Don't mention this option any more.
1860         Reported by Ralf Wildenhues.
1861
1862 2010-05-23  Jim Meyering  <meyering@redhat.com>
1863
1864         test-pwrite: do not leave behind a test file named "out"
1865         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
1866         The trivial-looking use of init.sh is really necessary.
1867         It ensures that the temporary file, "out", is created in
1868         a temporary directory, and removed upon termination.
1869         * tests/test-pwrite.sh: Re-add file.
1870         * modules/pwrite-tests: Reference it.
1871
1872 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1873
1874         Fix output redirection buglet in init.sh.
1875         * tests/init.sh: Fix redirection of stderr.
1876
1877 2010-05-20  Simon Josefsson  <simon@josefsson.org>
1878
1879         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
1880
1881 2010-05-17  Simon Josefsson  <simon@josefsson.org>
1882
1883         * modules/valgrind-tests: New file.
1884         * m4/valgrind-tests.m4: New file.
1885         * doc/valgrind-tests.texi: New file.
1886         * doc/gnulib.texi (Running self-tests under valgrind): New
1887         section.
1888
1889 2010-05-19  Bruno Haible  <bruno@clisp.org>
1890
1891         Clean up dead code in recent commit.
1892         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
1893         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
1894         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
1895         Suggested by Paolo Bonzini.
1896
1897 2010-05-19  Bruno Haible  <bruno@clisp.org>
1898
1899         Avoid valgrind error reports from libunistring.
1900         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
1901         * modules/libunistring (Files): Add it.
1902         * modules/libunistring-optional (Files): Likewise.
1903
1904 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
1905             Bruno Haible  <bruno@clisp.org>
1906
1907         New module 'libunistring-optional'.
1908         * modules/libunistring-optional: New file.
1909         * m4/libunistring-base.m4: New file.
1910         * m4/libunistring-optional.m4: New file.
1911         * lib/unicase.in.h: Renamed from lib/unicase.h.
1912         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
1913         * lib/unictype.in.h: Renamed from lib/unictype.h.
1914         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
1915         * lib/uniname.in.h: Renamed from lib/uniname.h.
1916         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
1917         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
1918         * lib/unistr.in.h: Renamed from lib/unistr.h.
1919         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
1920         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
1921         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
1922         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
1923         gl_LIBUNISTRING. If the library was found, determine the installed
1924         version and set LIBUNISTRING_VERSION.
1925         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
1926         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
1927         handle a configuration option --with-included-libunistring.
1928         * modules/libunistring (Files): Add m4/absolute-header.m4.
1929         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
1930         Add m4/libunistring-base.m4.
1931         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1932         (Makefile.am): Build unicase.h from unicase.in.h.
1933         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
1934         Add m4/libunistring-base.m4.
1935         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1936         (Makefile.am): Build uniconv.h from uniconv.in.h.
1937         * modules/unictype/base (Files): Use unictype.in.h instead of
1938         unictype.h. Add m4/libunistring-base.m4.
1939         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1940         (Makefile.am): Build unictype.h from unictype.in.h.
1941         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
1942         Add m4/libunistring-base.m4.
1943         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1944         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
1945         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
1946         Add m4/libunistring-base.m4.
1947         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1948         (Makefile.am): Build uniname.h from uniname.in.h.
1949         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
1950         Add m4/libunistring-base.m4.
1951         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1952         (Makefile.am): Build uninorm.h from uninorm.in.h.
1953         * modules/unistdio/base (Files): Use unistdio.in.h instead of
1954         unistdio.h. Add m4/libunistring-base.m4.
1955         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1956         (Makefile.am): Build unistdio.h from unistdio.in.h.
1957         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
1958         Add m4/libunistring-base.m4.
1959         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1960         (Makefile.am): Build unistr.h from unistr.in.h.
1961         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
1962         Add m4/libunistring-base.m4.
1963         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1964         (Makefile.am): Build unitypes.h from unitypes.in.h.
1965         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1966         Add m4/libunistring-base.m4.
1967         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1968         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1969         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1970         uniwidth.h. Add m4/libunistring-base.m4.
1971         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1972         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1973         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1974         instead of augmenting lib_SOURCES.
1975         * modules/unicase/empty-suffix-context: Likewise.
1976         * modules/unicase/locale-language: Likewise.
1977         * modules/unicase/tolower: Likewise.
1978         * modules/unicase/totitle: Likewise.
1979         * modules/unicase/toupper: Likewise.
1980         * modules/unicase/u8-casecmp: Likewise.
1981         * modules/unicase/u8-casecoll: Likewise.
1982         * modules/unicase/u8-casefold: Likewise.
1983         * modules/unicase/u8-casexfrm: Likewise.
1984         * modules/unicase/u8-ct-casefold: Likewise.
1985         * modules/unicase/u8-ct-tolower: Likewise.
1986         * modules/unicase/u8-ct-totitle: Likewise.
1987         * modules/unicase/u8-ct-toupper: Likewise.
1988         * modules/unicase/u8-is-cased: Likewise.
1989         * modules/unicase/u8-is-casefolded: Likewise.
1990         * modules/unicase/u8-is-lowercase: Likewise.
1991         * modules/unicase/u8-is-titlecase: Likewise.
1992         * modules/unicase/u8-is-uppercase: Likewise.
1993         * modules/unicase/u8-prefix-context: Likewise.
1994         * modules/unicase/u8-suffix-context: Likewise.
1995         * modules/unicase/u8-tolower: Likewise.
1996         * modules/unicase/u8-totitle: Likewise.
1997         * modules/unicase/u8-toupper: Likewise.
1998         * modules/unicase/u16-casecmp: Likewise.
1999         * modules/unicase/u16-casecoll: Likewise.
2000         * modules/unicase/u16-casefold: Likewise.
2001         * modules/unicase/u16-casexfrm: Likewise.
2002         * modules/unicase/u16-ct-casefold: Likewise.
2003         * modules/unicase/u16-ct-tolower: Likewise.
2004         * modules/unicase/u16-ct-totitle: Likewise.
2005         * modules/unicase/u16-ct-toupper: Likewise.
2006         * modules/unicase/u16-is-cased: Likewise.
2007         * modules/unicase/u16-is-casefolded: Likewise.
2008         * modules/unicase/u16-is-lowercase: Likewise.
2009         * modules/unicase/u16-is-titlecase: Likewise.
2010         * modules/unicase/u16-is-uppercase: Likewise.
2011         * modules/unicase/u16-prefix-context: Likewise.
2012         * modules/unicase/u16-suffix-context: Likewise.
2013         * modules/unicase/u16-tolower: Likewise.
2014         * modules/unicase/u16-totitle: Likewise.
2015         * modules/unicase/u16-toupper: Likewise.
2016         * modules/unicase/u32-casecmp: Likewise.
2017         * modules/unicase/u32-casecoll: Likewise.
2018         * modules/unicase/u32-casefold: Likewise.
2019         * modules/unicase/u32-casexfrm: Likewise.
2020         * modules/unicase/u32-ct-casefold: Likewise.
2021         * modules/unicase/u32-ct-tolower: Likewise.
2022         * modules/unicase/u32-ct-totitle: Likewise.
2023         * modules/unicase/u32-ct-toupper: Likewise.
2024         * modules/unicase/u32-is-cased: Likewise.
2025         * modules/unicase/u32-is-casefolded: Likewise.
2026         * modules/unicase/u32-is-lowercase: Likewise.
2027         * modules/unicase/u32-is-titlecase: Likewise.
2028         * modules/unicase/u32-is-uppercase: Likewise.
2029         * modules/unicase/u32-prefix-context: Likewise.
2030         * modules/unicase/u32-suffix-context: Likewise.
2031         * modules/unicase/u32-tolower: Likewise.
2032         * modules/unicase/u32-totitle: Likewise.
2033         * modules/unicase/u32-toupper: Likewise.
2034         * modules/unicase/ulc-casecmp: Likewise.
2035         * modules/unicase/ulc-casecoll: Likewise.
2036         * modules/unicase/ulc-casexfrm: Likewise.
2037         * modules/uniconv/u8-conv-from-enc: Likewise.
2038         * modules/uniconv/u8-conv-to-enc: Likewise.
2039         * modules/uniconv/u8-strconv-from-enc: Likewise.
2040         * modules/uniconv/u8-strconv-from-locale: Likewise.
2041         * modules/uniconv/u8-strconv-to-enc: Likewise.
2042         * modules/uniconv/u8-strconv-to-locale: Likewise.
2043         * modules/uniconv/u16-conv-from-enc: Likewise.
2044         * modules/uniconv/u16-conv-to-enc: Likewise.
2045         * modules/uniconv/u16-strconv-from-enc: Likewise.
2046         * modules/uniconv/u16-strconv-from-locale: Likewise.
2047         * modules/uniconv/u16-strconv-to-enc: Likewise.
2048         * modules/uniconv/u16-strconv-to-locale: Likewise.
2049         * modules/uniconv/u32-conv-from-enc: Likewise.
2050         * modules/uniconv/u32-conv-to-enc: Likewise.
2051         * modules/uniconv/u32-strconv-from-enc: Likewise.
2052         * modules/uniconv/u32-strconv-from-locale: Likewise.
2053         * modules/uniconv/u32-strconv-to-enc: Likewise.
2054         * modules/uniconv/u32-strconv-to-locale: Likewise.
2055         * modules/unictype/bidicategory-byname: Likewise.
2056         * modules/unictype/bidicategory-name: Likewise.
2057         * modules/unictype/bidicategory-of: Likewise.
2058         * modules/unictype/bidicategory-test: Likewise.
2059         * modules/unictype/block-list: Likewise.
2060         * modules/unictype/block-test: Likewise.
2061         * modules/unictype/category-C: Likewise.
2062         * modules/unictype/category-Cc: Likewise.
2063         * modules/unictype/category-Cf: Likewise.
2064         * modules/unictype/category-Cn: Likewise.
2065         * modules/unictype/category-Co: Likewise.
2066         * modules/unictype/category-Cs: Likewise.
2067         * modules/unictype/category-L: Likewise.
2068         * modules/unictype/category-Ll: Likewise.
2069         * modules/unictype/category-Lm: Likewise.
2070         * modules/unictype/category-Lo: Likewise.
2071         * modules/unictype/category-Lt: Likewise.
2072         * modules/unictype/category-Lu: Likewise.
2073         * modules/unictype/category-M: Likewise.
2074         * modules/unictype/category-Mc: Likewise.
2075         * modules/unictype/category-Me: Likewise.
2076         * modules/unictype/category-Mn: Likewise.
2077         * modules/unictype/category-N: Likewise.
2078         * modules/unictype/category-Nd: Likewise.
2079         * modules/unictype/category-Nl: Likewise.
2080         * modules/unictype/category-No: Likewise.
2081         * modules/unictype/category-P: Likewise.
2082         * modules/unictype/category-Pc: Likewise.
2083         * modules/unictype/category-Pd: Likewise.
2084         * modules/unictype/category-Pe: Likewise.
2085         * modules/unictype/category-Pf: Likewise.
2086         * modules/unictype/category-Pi: Likewise.
2087         * modules/unictype/category-Po: Likewise.
2088         * modules/unictype/category-Ps: Likewise.
2089         * modules/unictype/category-S: Likewise.
2090         * modules/unictype/category-Sc: Likewise.
2091         * modules/unictype/category-Sk: Likewise.
2092         * modules/unictype/category-Sm: Likewise.
2093         * modules/unictype/category-So: Likewise.
2094         * modules/unictype/category-Z: Likewise.
2095         * modules/unictype/category-Zl: Likewise.
2096         * modules/unictype/category-Zp: Likewise.
2097         * modules/unictype/category-Zs: Likewise.
2098         * modules/unictype/category-and: Likewise.
2099         * modules/unictype/category-and-not: Likewise.
2100         * modules/unictype/category-byname: Likewise.
2101         * modules/unictype/category-name: Likewise.
2102         * modules/unictype/category-none: Likewise.
2103         * modules/unictype/category-of: Likewise.
2104         * modules/unictype/category-or: Likewise.
2105         * modules/unictype/category-test: Likewise.
2106         * modules/unictype/combining-class: Likewise.
2107         * modules/unictype/ctype-alnum: Likewise.
2108         * modules/unictype/ctype-alpha: Likewise.
2109         * modules/unictype/ctype-blank: Likewise.
2110         * modules/unictype/ctype-cntrl: Likewise.
2111         * modules/unictype/ctype-digit: Likewise.
2112         * modules/unictype/ctype-graph: Likewise.
2113         * modules/unictype/ctype-lower: Likewise.
2114         * modules/unictype/ctype-print: Likewise.
2115         * modules/unictype/ctype-punct: Likewise.
2116         * modules/unictype/ctype-space: Likewise.
2117         * modules/unictype/ctype-upper: Likewise.
2118         * modules/unictype/ctype-xdigit: Likewise.
2119         * modules/unictype/decimal-digit: Likewise.
2120         * modules/unictype/digit: Likewise.
2121         * modules/unictype/mirror: Likewise.
2122         * modules/unictype/numeric: Likewise.
2123         * modules/unictype/property-alphabetic: Likewise.
2124         * modules/unictype/property-ascii-hex-digit: Likewise.
2125         * modules/unictype/property-bidi-arabic-digit: Likewise.
2126         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2127         * modules/unictype/property-bidi-block-separator: Likewise.
2128         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2129         * modules/unictype/property-bidi-common-separator: Likewise.
2130         * modules/unictype/property-bidi-control: Likewise.
2131         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2132         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2133         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2134         * modules/unictype/property-bidi-european-digit: Likewise.
2135         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2136         * modules/unictype/property-bidi-left-to-right: Likewise.
2137         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2138         * modules/unictype/property-bidi-other-neutral: Likewise.
2139         * modules/unictype/property-bidi-pdf: Likewise.
2140         * modules/unictype/property-bidi-segment-separator: Likewise.
2141         * modules/unictype/property-bidi-whitespace: Likewise.
2142         * modules/unictype/property-byname: Likewise.
2143         * modules/unictype/property-combining: Likewise.
2144         * modules/unictype/property-composite: Likewise.
2145         * modules/unictype/property-currency-symbol: Likewise.
2146         * modules/unictype/property-dash: Likewise.
2147         * modules/unictype/property-decimal-digit: Likewise.
2148         * modules/unictype/property-default-ignorable-code-point: Likewise.
2149         * modules/unictype/property-deprecated: Likewise.
2150         * modules/unictype/property-diacritic: Likewise.
2151         * modules/unictype/property-extender: Likewise.
2152         * modules/unictype/property-format-control: Likewise.
2153         * modules/unictype/property-grapheme-base: Likewise.
2154         * modules/unictype/property-grapheme-extend: Likewise.
2155         * modules/unictype/property-grapheme-link: Likewise.
2156         * modules/unictype/property-hex-digit: Likewise.
2157         * modules/unictype/property-hyphen: Likewise.
2158         * modules/unictype/property-id-continue: Likewise.
2159         * modules/unictype/property-id-start: Likewise.
2160         * modules/unictype/property-ideographic: Likewise.
2161         * modules/unictype/property-ids-binary-operator: Likewise.
2162         * modules/unictype/property-ids-trinary-operator: Likewise.
2163         * modules/unictype/property-ignorable-control: Likewise.
2164         * modules/unictype/property-iso-control: Likewise.
2165         * modules/unictype/property-join-control: Likewise.
2166         * modules/unictype/property-left-of-pair: Likewise.
2167         * modules/unictype/property-line-separator: Likewise.
2168         * modules/unictype/property-logical-order-exception: Likewise.
2169         * modules/unictype/property-lowercase: Likewise.
2170         * modules/unictype/property-math: Likewise.
2171         * modules/unictype/property-non-break: Likewise.
2172         * modules/unictype/property-not-a-character: Likewise.
2173         * modules/unictype/property-numeric: Likewise.
2174         * modules/unictype/property-other-alphabetic: Likewise.
2175         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2176         * modules/unictype/property-other-grapheme-extend: Likewise.
2177         * modules/unictype/property-other-id-continue: Likewise.
2178         * modules/unictype/property-other-id-start: Likewise.
2179         * modules/unictype/property-other-lowercase: Likewise.
2180         * modules/unictype/property-other-math: Likewise.
2181         * modules/unictype/property-other-uppercase: Likewise.
2182         * modules/unictype/property-paired-punctuation: Likewise.
2183         * modules/unictype/property-paragraph-separator: Likewise.
2184         * modules/unictype/property-pattern-syntax: Likewise.
2185         * modules/unictype/property-pattern-white-space: Likewise.
2186         * modules/unictype/property-private-use: Likewise.
2187         * modules/unictype/property-punctuation: Likewise.
2188         * modules/unictype/property-quotation-mark: Likewise.
2189         * modules/unictype/property-radical: Likewise.
2190         * modules/unictype/property-sentence-terminal: Likewise.
2191         * modules/unictype/property-soft-dotted: Likewise.
2192         * modules/unictype/property-space: Likewise.
2193         * modules/unictype/property-terminal-punctuation: Likewise.
2194         * modules/unictype/property-test: Likewise.
2195         * modules/unictype/property-titlecase: Likewise.
2196         * modules/unictype/property-unassigned-code-value: Likewise.
2197         * modules/unictype/property-unified-ideograph: Likewise.
2198         * modules/unictype/property-uppercase: Likewise.
2199         * modules/unictype/property-variation-selector: Likewise.
2200         * modules/unictype/property-white-space: Likewise.
2201         * modules/unictype/property-xid-continue: Likewise.
2202         * modules/unictype/property-xid-start: Likewise.
2203         * modules/unictype/property-zero-width: Likewise.
2204         * modules/unictype/scripts: Likewise.
2205         * modules/unictype/syntax-c-ident: Likewise.
2206         * modules/unictype/syntax-c-whitespace: Likewise.
2207         * modules/unictype/syntax-java-ident: Likewise.
2208         * modules/unictype/syntax-java-whitespace: Likewise.
2209         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2210         * modules/unilbrk/u8-width-linebreaks: Likewise.
2211         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2212         * modules/unilbrk/u16-width-linebreaks: Likewise.
2213         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2214         * modules/unilbrk/u32-width-linebreaks: Likewise.
2215         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2216         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2217         * modules/uniname/uniname: Likewise.
2218         * modules/uninorm/canonical-decomposition: Likewise.
2219         * modules/uninorm/composition: Likewise.
2220         * modules/uninorm/decomposing-form: Likewise.
2221         * modules/uninorm/decomposition: Likewise.
2222         * modules/uninorm/filter: Likewise.
2223         * modules/uninorm/nfc: Likewise.
2224         * modules/uninorm/nfd: Likewise.
2225         * modules/uninorm/nfkc: Likewise.
2226         * modules/uninorm/nfkd: Likewise.
2227         * modules/uninorm/u8-normalize: Likewise.
2228         * modules/uninorm/u8-normcmp: Likewise.
2229         * modules/uninorm/u8-normcoll: Likewise.
2230         * modules/uninorm/u8-normxfrm: Likewise.
2231         * modules/uninorm/u16-normalize: Likewise.
2232         * modules/uninorm/u16-normcmp: Likewise.
2233         * modules/uninorm/u16-normcoll: Likewise.
2234         * modules/uninorm/u16-normxfrm: Likewise.
2235         * modules/uninorm/u32-normalize: Likewise.
2236         * modules/uninorm/u32-normcmp: Likewise.
2237         * modules/uninorm/u32-normcoll: Likewise.
2238         * modules/uninorm/u32-normxfrm: Likewise.
2239         * modules/unistdio/u8-asnprintf: Likewise.
2240         * modules/unistdio/u8-asprintf: Likewise.
2241         * modules/unistdio/u8-snprintf: Likewise.
2242         * modules/unistdio/u8-sprintf: Likewise.
2243         * modules/unistdio/u8-u8-asnprintf: Likewise.
2244         * modules/unistdio/u8-u8-asprintf: Likewise.
2245         * modules/unistdio/u8-u8-snprintf: Likewise.
2246         * modules/unistdio/u8-u8-sprintf: Likewise.
2247         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2248         * modules/unistdio/u8-u8-vasprintf: Likewise.
2249         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2250         * modules/unistdio/u8-u8-vsprintf: Likewise.
2251         * modules/unistdio/u8-vasnprintf: Likewise.
2252         * modules/unistdio/u8-vasprintf: Likewise.
2253         * modules/unistdio/u8-vsnprintf: Likewise.
2254         * modules/unistdio/u8-vsprintf: Likewise.
2255         * modules/unistdio/u16-asnprintf: Likewise.
2256         * modules/unistdio/u16-asprintf: Likewise.
2257         * modules/unistdio/u16-snprintf: Likewise.
2258         * modules/unistdio/u16-sprintf: Likewise.
2259         * modules/unistdio/u16-u16-asnprintf: Likewise.
2260         * modules/unistdio/u16-u16-asprintf: Likewise.
2261         * modules/unistdio/u16-u16-snprintf: Likewise.
2262         * modules/unistdio/u16-u16-sprintf: Likewise.
2263         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2264         * modules/unistdio/u16-u16-vasprintf: Likewise.
2265         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2266         * modules/unistdio/u16-u16-vsprintf: Likewise.
2267         * modules/unistdio/u16-vasnprintf: Likewise.
2268         * modules/unistdio/u16-vasprintf: Likewise.
2269         * modules/unistdio/u16-vsnprintf: Likewise.
2270         * modules/unistdio/u16-vsprintf: Likewise.
2271         * modules/unistdio/u32-asnprintf: Likewise.
2272         * modules/unistdio/u32-asprintf: Likewise.
2273         * modules/unistdio/u32-snprintf: Likewise.
2274         * modules/unistdio/u32-sprintf: Likewise.
2275         * modules/unistdio/u32-u32-asnprintf: Likewise.
2276         * modules/unistdio/u32-u32-asprintf: Likewise.
2277         * modules/unistdio/u32-u32-snprintf: Likewise.
2278         * modules/unistdio/u32-u32-sprintf: Likewise.
2279         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2280         * modules/unistdio/u32-u32-vasprintf: Likewise.
2281         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2282         * modules/unistdio/u32-u32-vsprintf: Likewise.
2283         * modules/unistdio/u32-vasnprintf: Likewise.
2284         * modules/unistdio/u32-vasprintf: Likewise.
2285         * modules/unistdio/u32-vsnprintf: Likewise.
2286         * modules/unistdio/u32-vsprintf: Likewise.
2287         * modules/unistdio/ulc-asnprintf: Likewise.
2288         * modules/unistdio/ulc-asprintf: Likewise.
2289         * modules/unistdio/ulc-fprintf: Likewise.
2290         * modules/unistdio/ulc-snprintf: Likewise.
2291         * modules/unistdio/ulc-sprintf: Likewise.
2292         * modules/unistdio/ulc-vasnprintf: Likewise.
2293         * modules/unistdio/ulc-vasprintf: Likewise.
2294         * modules/unistdio/ulc-vfprintf: Likewise.
2295         * modules/unistdio/ulc-vsnprintf: Likewise.
2296         * modules/unistdio/ulc-vsprintf: Likewise.
2297         * modules/unistr/u8-check: Likewise.
2298         * modules/unistr/u8-chr: Likewise.
2299         * modules/unistr/u8-cmp: Likewise.
2300         * modules/unistr/u8-cmp2: Likewise.
2301         * modules/unistr/u8-cpy: Likewise.
2302         * modules/unistr/u8-cpy-alloc: Likewise.
2303         * modules/unistr/u8-endswith: Likewise.
2304         * modules/unistr/u8-mblen: Likewise.
2305         * modules/unistr/u8-mbsnlen: Likewise.
2306         * modules/unistr/u8-mbtouc: Likewise.
2307         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2308         * modules/unistr/u8-mbtoucr: Likewise.
2309         * modules/unistr/u8-move: Likewise.
2310         * modules/unistr/u8-next: Likewise.
2311         * modules/unistr/u8-prev: Likewise.
2312         * modules/unistr/u8-set: Likewise.
2313         * modules/unistr/u8-startswith: Likewise.
2314         * modules/unistr/u8-stpcpy: Likewise.
2315         * modules/unistr/u8-stpncpy: Likewise.
2316         * modules/unistr/u8-strcat: Likewise.
2317         * modules/unistr/u8-strchr: Likewise.
2318         * modules/unistr/u8-strcmp: Likewise.
2319         * modules/unistr/u8-strcoll: Likewise.
2320         * modules/unistr/u8-strcpy: Likewise.
2321         * modules/unistr/u8-strcspn: Likewise.
2322         * modules/unistr/u8-strdup: Likewise.
2323         * modules/unistr/u8-strlen: Likewise.
2324         * modules/unistr/u8-strmblen: Likewise.
2325         * modules/unistr/u8-strmbtouc: Likewise.
2326         * modules/unistr/u8-strncat: Likewise.
2327         * modules/unistr/u8-strncmp: Likewise.
2328         * modules/unistr/u8-strncpy: Likewise.
2329         * modules/unistr/u8-strnlen: Likewise.
2330         * modules/unistr/u8-strpbrk: Likewise.
2331         * modules/unistr/u8-strrchr: Likewise.
2332         * modules/unistr/u8-strspn: Likewise.
2333         * modules/unistr/u8-strstr: Likewise.
2334         * modules/unistr/u8-strtok: Likewise.
2335         * modules/unistr/u8-to-u16: Likewise.
2336         * modules/unistr/u8-to-u32: Likewise.
2337         * modules/unistr/u8-uctomb: Likewise.
2338         * modules/unistr/u16-check: Likewise.
2339         * modules/unistr/u16-chr: Likewise.
2340         * modules/unistr/u16-cmp: Likewise.
2341         * modules/unistr/u16-cmp2: Likewise.
2342         * modules/unistr/u16-cpy: Likewise.
2343         * modules/unistr/u16-cpy-alloc: Likewise.
2344         * modules/unistr/u16-endswith: Likewise.
2345         * modules/unistr/u16-mblen: Likewise.
2346         * modules/unistr/u16-mbsnlen: Likewise.
2347         * modules/unistr/u16-mbtouc: Likewise.
2348         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2349         * modules/unistr/u16-mbtoucr: Likewise.
2350         * modules/unistr/u16-move: Likewise.
2351         * modules/unistr/u16-next: Likewise.
2352         * modules/unistr/u16-prev: Likewise.
2353         * modules/unistr/u16-set: Likewise.
2354         * modules/unistr/u16-startswith: Likewise.
2355         * modules/unistr/u16-stpcpy: Likewise.
2356         * modules/unistr/u16-stpncpy: Likewise.
2357         * modules/unistr/u16-strcat: Likewise.
2358         * modules/unistr/u16-strchr: Likewise.
2359         * modules/unistr/u16-strcmp: Likewise.
2360         * modules/unistr/u16-strcoll: Likewise.
2361         * modules/unistr/u16-strcpy: Likewise.
2362         * modules/unistr/u16-strcspn: Likewise.
2363         * modules/unistr/u16-strdup: Likewise.
2364         * modules/unistr/u16-strlen: Likewise.
2365         * modules/unistr/u16-strmblen: Likewise.
2366         * modules/unistr/u16-strmbtouc: Likewise.
2367         * modules/unistr/u16-strncat: Likewise.
2368         * modules/unistr/u16-strncmp: Likewise.
2369         * modules/unistr/u16-strncpy: Likewise.
2370         * modules/unistr/u16-strnlen: Likewise.
2371         * modules/unistr/u16-strpbrk: Likewise.
2372         * modules/unistr/u16-strrchr: Likewise.
2373         * modules/unistr/u16-strspn: Likewise.
2374         * modules/unistr/u16-strstr: Likewise.
2375         * modules/unistr/u16-strtok: Likewise.
2376         * modules/unistr/u16-to-u32: Likewise.
2377         * modules/unistr/u16-to-u8: Likewise.
2378         * modules/unistr/u16-uctomb: Likewise.
2379         * modules/unistr/u32-check: Likewise.
2380         * modules/unistr/u32-chr: Likewise.
2381         * modules/unistr/u32-cmp: Likewise.
2382         * modules/unistr/u32-cmp2: Likewise.
2383         * modules/unistr/u32-cpy: Likewise.
2384         * modules/unistr/u32-cpy-alloc: Likewise.
2385         * modules/unistr/u32-endswith: Likewise.
2386         * modules/unistr/u32-mblen: Likewise.
2387         * modules/unistr/u32-mbsnlen: Likewise.
2388         * modules/unistr/u32-mbtouc: Likewise.
2389         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2390         * modules/unistr/u32-mbtoucr: Likewise.
2391         * modules/unistr/u32-move: Likewise.
2392         * modules/unistr/u32-next: Likewise.
2393         * modules/unistr/u32-prev: Likewise.
2394         * modules/unistr/u32-set: Likewise.
2395         * modules/unistr/u32-startswith: Likewise.
2396         * modules/unistr/u32-stpcpy: Likewise.
2397         * modules/unistr/u32-stpncpy: Likewise.
2398         * modules/unistr/u32-strcat: Likewise.
2399         * modules/unistr/u32-strchr: Likewise.
2400         * modules/unistr/u32-strcmp: Likewise.
2401         * modules/unistr/u32-strcoll: Likewise.
2402         * modules/unistr/u32-strcpy: Likewise.
2403         * modules/unistr/u32-strcspn: Likewise.
2404         * modules/unistr/u32-strdup: Likewise.
2405         * modules/unistr/u32-strlen: Likewise.
2406         * modules/unistr/u32-strmblen: Likewise.
2407         * modules/unistr/u32-strmbtouc: Likewise.
2408         * modules/unistr/u32-strncat: Likewise.
2409         * modules/unistr/u32-strncmp: Likewise.
2410         * modules/unistr/u32-strncpy: Likewise.
2411         * modules/unistr/u32-strnlen: Likewise.
2412         * modules/unistr/u32-strpbrk: Likewise.
2413         * modules/unistr/u32-strrchr: Likewise.
2414         * modules/unistr/u32-strspn: Likewise.
2415         * modules/unistr/u32-strstr: Likewise.
2416         * modules/unistr/u32-strtok: Likewise.
2417         * modules/unistr/u32-to-u16: Likewise.
2418         * modules/unistr/u32-to-u8: Likewise.
2419         * modules/unistr/u32-uctomb: Likewise.
2420         * modules/uniwbrk/u8-wordbreaks: Likewise.
2421         * modules/uniwbrk/u16-wordbreaks: Likewise.
2422         * modules/uniwbrk/u32-wordbreaks: Likewise.
2423         * modules/uniwbrk/ulc-wordbreaks: Likewise.
2424         * modules/uniwbrk/wordbreak-property: Likewise.
2425         * modules/uniwidth/u8-strwidth: Likewise.
2426         * modules/uniwidth/u8-width: Likewise.
2427         * modules/uniwidth/u16-strwidth: Likewise.
2428         * modules/uniwidth/u16-width: Likewise.
2429         * modules/uniwidth/u32-strwidth: Likewise.
2430         * modules/uniwidth/u32-width: Likewise.
2431         * modules/uniwidth/width: Likewise.
2432         * modules/unicase/cased-tests (Makefile.am): Link all test programs
2433         with $(LIBUNISTRING).
2434         * modules/unicase/ignorable-tests: Likewise.
2435         * modules/unicase/locale-language-tests: Likewise.
2436         * modules/unicase/tolower-tests: Likewise.
2437         * modules/unicase/totitle-tests: Likewise.
2438         * modules/unicase/toupper-tests: Likewise.
2439         * modules/unicase/u8-casecmp-tests: Likewise.
2440         * modules/unicase/u8-casecoll-tests: Likewise.
2441         * modules/unicase/u8-casefold-tests: Likewise.
2442         * modules/unicase/u8-is-cased-tests: Likewise.
2443         * modules/unicase/u8-is-casefolded-tests: Likewise.
2444         * modules/unicase/u8-is-lowercase-tests: Likewise.
2445         * modules/unicase/u8-is-titlecase-tests: Likewise.
2446         * modules/unicase/u8-is-uppercase-tests: Likewise.
2447         * modules/unicase/u8-tolower-tests: Likewise.
2448         * modules/unicase/u8-totitle-tests: Likewise.
2449         * modules/unicase/u8-toupper-tests: Likewise.
2450         * modules/unicase/u16-casecmp-tests: Likewise.
2451         * modules/unicase/u16-casecoll-tests: Likewise.
2452         * modules/unicase/u16-casefold-tests: Likewise.
2453         * modules/unicase/u16-is-cased-tests: Likewise.
2454         * modules/unicase/u16-is-casefolded-tests: Likewise.
2455         * modules/unicase/u16-is-lowercase-tests: Likewise.
2456         * modules/unicase/u16-is-titlecase-tests: Likewise.
2457         * modules/unicase/u16-is-uppercase-tests: Likewise.
2458         * modules/unicase/u16-tolower-tests: Likewise.
2459         * modules/unicase/u16-totitle-tests: Likewise.
2460         * modules/unicase/u16-toupper-tests: Likewise.
2461         * modules/unicase/u32-casecmp-tests: Likewise.
2462         * modules/unicase/u32-casecoll-tests: Likewise.
2463         * modules/unicase/u32-casefold-tests: Likewise.
2464         * modules/unicase/u32-is-cased-tests: Likewise.
2465         * modules/unicase/u32-is-casefolded-tests: Likewise.
2466         * modules/unicase/u32-is-lowercase-tests: Likewise.
2467         * modules/unicase/u32-is-titlecase-tests: Likewise.
2468         * modules/unicase/u32-is-uppercase-tests: Likewise.
2469         * modules/unicase/u32-tolower-tests: Likewise.
2470         * modules/unicase/u32-totitle-tests: Likewise.
2471         * modules/unicase/u32-toupper-tests: Likewise.
2472         * modules/unicase/ulc-casecmp-tests: Likewise.
2473         * modules/unicase/ulc-casecoll-tests: Likewise.
2474         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
2475         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
2476         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
2477         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
2478         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
2479         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
2480         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
2481         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
2482         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
2483         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
2484         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
2485         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
2486         * modules/unictype/bidicategory-byname-tests: Likewise.
2487         * modules/unictype/bidicategory-name-tests: Likewise.
2488         * modules/unictype/bidicategory-of-tests: Likewise.
2489         * modules/unictype/bidicategory-test-tests: Likewise.
2490         * modules/unictype/block-list-tests: Likewise.
2491         * modules/unictype/block-of-tests: Likewise.
2492         * modules/unictype/block-test-tests: Likewise.
2493         * modules/unictype/category-C-tests: Likewise.
2494         * modules/unictype/category-Cc-tests: Likewise.
2495         * modules/unictype/category-Cf-tests: Likewise.
2496         * modules/unictype/category-Cn-tests: Likewise.
2497         * modules/unictype/category-Co-tests: Likewise.
2498         * modules/unictype/category-Cs-tests: Likewise.
2499         * modules/unictype/category-L-tests: Likewise.
2500         * modules/unictype/category-Ll-tests: Likewise.
2501         * modules/unictype/category-Lm-tests: Likewise.
2502         * modules/unictype/category-Lo-tests: Likewise.
2503         * modules/unictype/category-Lt-tests: Likewise.
2504         * modules/unictype/category-Lu-tests: Likewise.
2505         * modules/unictype/category-M-tests: Likewise.
2506         * modules/unictype/category-Mc-tests: Likewise.
2507         * modules/unictype/category-Me-tests: Likewise.
2508         * modules/unictype/category-Mn-tests: Likewise.
2509         * modules/unictype/category-N-tests: Likewise.
2510         * modules/unictype/category-Nd-tests: Likewise.
2511         * modules/unictype/category-Nl-tests: Likewise.
2512         * modules/unictype/category-No-tests: Likewise.
2513         * modules/unictype/category-P-tests: Likewise.
2514         * modules/unictype/category-Pc-tests: Likewise.
2515         * modules/unictype/category-Pd-tests: Likewise.
2516         * modules/unictype/category-Pe-tests: Likewise.
2517         * modules/unictype/category-Pf-tests: Likewise.
2518         * modules/unictype/category-Pi-tests: Likewise.
2519         * modules/unictype/category-Po-tests: Likewise.
2520         * modules/unictype/category-Ps-tests: Likewise.
2521         * modules/unictype/category-S-tests: Likewise.
2522         * modules/unictype/category-Sc-tests: Likewise.
2523         * modules/unictype/category-Sk-tests: Likewise.
2524         * modules/unictype/category-Sm-tests: Likewise.
2525         * modules/unictype/category-So-tests: Likewise.
2526         * modules/unictype/category-Z-tests: Likewise.
2527         * modules/unictype/category-Zl-tests: Likewise.
2528         * modules/unictype/category-Zp-tests: Likewise.
2529         * modules/unictype/category-Zs-tests: Likewise.
2530         * modules/unictype/category-and-not-tests: Likewise.
2531         * modules/unictype/category-and-tests: Likewise.
2532         * modules/unictype/category-byname-tests: Likewise.
2533         * modules/unictype/category-name-tests: Likewise.
2534         * modules/unictype/category-none-tests: Likewise.
2535         * modules/unictype/category-of-tests: Likewise.
2536         * modules/unictype/category-or-tests: Likewise.
2537         * modules/unictype/category-test-withtable-tests: Likewise.
2538         * modules/unictype/combining-class-tests: Likewise.
2539         * modules/unictype/ctype-alnum-tests: Likewise.
2540         * modules/unictype/ctype-alpha-tests: Likewise.
2541         * modules/unictype/ctype-blank-tests: Likewise.
2542         * modules/unictype/ctype-cntrl-tests: Likewise.
2543         * modules/unictype/ctype-digit-tests: Likewise.
2544         * modules/unictype/ctype-graph-tests: Likewise.
2545         * modules/unictype/ctype-lower-tests: Likewise.
2546         * modules/unictype/ctype-print-tests: Likewise.
2547         * modules/unictype/ctype-punct-tests: Likewise.
2548         * modules/unictype/ctype-space-tests: Likewise.
2549         * modules/unictype/ctype-upper-tests: Likewise.
2550         * modules/unictype/ctype-xdigit-tests: Likewise.
2551         * modules/unictype/decimal-digit-tests: Likewise.
2552         * modules/unictype/digit-tests: Likewise.
2553         * modules/unictype/mirror-tests: Likewise.
2554         * modules/unictype/numeric-tests: Likewise.
2555         * modules/unictype/property-alphabetic-tests: Likewise.
2556         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
2557         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
2558         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
2559         * modules/unictype/property-bidi-block-separator-tests: Likewise.
2560         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
2561         * modules/unictype/property-bidi-common-separator-tests: Likewise.
2562         * modules/unictype/property-bidi-control-tests: Likewise.
2563         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
2564         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
2565         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
2566         * modules/unictype/property-bidi-european-digit-tests: Likewise.
2567         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
2568         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
2569         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
2570         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
2571         * modules/unictype/property-bidi-pdf-tests: Likewise.
2572         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
2573         * modules/unictype/property-bidi-whitespace-tests: Likewise.
2574         * modules/unictype/property-byname-tests: Likewise.
2575         * modules/unictype/property-combining-tests: Likewise.
2576         * modules/unictype/property-composite-tests: Likewise.
2577         * modules/unictype/property-currency-symbol-tests: Likewise.
2578         * modules/unictype/property-dash-tests: Likewise.
2579         * modules/unictype/property-decimal-digit-tests: Likewise.
2580         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
2581         * modules/unictype/property-deprecated-tests: Likewise.
2582         * modules/unictype/property-diacritic-tests: Likewise.
2583         * modules/unictype/property-extender-tests: Likewise.
2584         * modules/unictype/property-format-control-tests: Likewise.
2585         * modules/unictype/property-grapheme-base-tests: Likewise.
2586         * modules/unictype/property-grapheme-extend-tests: Likewise.
2587         * modules/unictype/property-grapheme-link-tests: Likewise.
2588         * modules/unictype/property-hex-digit-tests: Likewise.
2589         * modules/unictype/property-hyphen-tests: Likewise.
2590         * modules/unictype/property-id-continue-tests: Likewise.
2591         * modules/unictype/property-id-start-tests: Likewise.
2592         * modules/unictype/property-ideographic-tests: Likewise.
2593         * modules/unictype/property-ids-binary-operator-tests: Likewise.
2594         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
2595         * modules/unictype/property-ignorable-control-tests: Likewise.
2596         * modules/unictype/property-iso-control-tests: Likewise.
2597         * modules/unictype/property-join-control-tests: Likewise.
2598         * modules/unictype/property-left-of-pair-tests: Likewise.
2599         * modules/unictype/property-line-separator-tests: Likewise.
2600         * modules/unictype/property-logical-order-exception-tests: Likewise.
2601         * modules/unictype/property-lowercase-tests: Likewise.
2602         * modules/unictype/property-math-tests: Likewise.
2603         * modules/unictype/property-non-break-tests: Likewise.
2604         * modules/unictype/property-not-a-character-tests: Likewise.
2605         * modules/unictype/property-numeric-tests: Likewise.
2606         * modules/unictype/property-other-alphabetic-tests: Likewise.
2607         * modules/unictype/property-other-default-ignorable-code-point-tests:
2608         Likewise.
2609         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
2610         * modules/unictype/property-other-id-continue-tests: Likewise.
2611         * modules/unictype/property-other-id-start-tests: Likewise.
2612         * modules/unictype/property-other-lowercase-tests: Likewise.
2613         * modules/unictype/property-other-math-tests: Likewise.
2614         * modules/unictype/property-other-uppercase-tests: Likewise.
2615         * modules/unictype/property-paired-punctuation-tests: Likewise.
2616         * modules/unictype/property-paragraph-separator-tests: Likewise.
2617         * modules/unictype/property-pattern-syntax-tests: Likewise.
2618         * modules/unictype/property-pattern-white-space-tests: Likewise.
2619         * modules/unictype/property-private-use-tests: Likewise.
2620         * modules/unictype/property-punctuation-tests: Likewise.
2621         * modules/unictype/property-quotation-mark-tests: Likewise.
2622         * modules/unictype/property-radical-tests: Likewise.
2623         * modules/unictype/property-sentence-terminal-tests: Likewise.
2624         * modules/unictype/property-soft-dotted-tests: Likewise.
2625         * modules/unictype/property-space-tests: Likewise.
2626         * modules/unictype/property-terminal-punctuation-tests: Likewise.
2627         * modules/unictype/property-test-tests: Likewise.
2628         * modules/unictype/property-titlecase-tests: Likewise.
2629         * modules/unictype/property-unassigned-code-value-tests: Likewise.
2630         * modules/unictype/property-unified-ideograph-tests: Likewise.
2631         * modules/unictype/property-uppercase-tests: Likewise.
2632         * modules/unictype/property-variation-selector-tests: Likewise.
2633         * modules/unictype/property-white-space-tests: Likewise.
2634         * modules/unictype/property-xid-continue-tests: Likewise.
2635         * modules/unictype/property-xid-start-tests: Likewise.
2636         * modules/unictype/property-zero-width-tests: Likewise.
2637         * modules/unictype/scripts-tests: Likewise.
2638         * modules/unictype/syntax-c-ident-tests: Likewise.
2639         * modules/unictype/syntax-c-whitespace-tests: Likewise.
2640         * modules/unictype/syntax-java-ident-tests: Likewise.
2641         * modules/unictype/syntax-java-whitespace-tests: Likewise.
2642         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
2643         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
2644         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
2645         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
2646         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
2647         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
2648         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
2649         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
2650         * modules/uniname/uniname-tests: Likewise.
2651         * modules/uninorm/canonical-decomposition-tests: Likewise.
2652         * modules/uninorm/compat-decomposition-tests: Likewise.
2653         * modules/uninorm/composition-tests: Likewise.
2654         * modules/uninorm/decomposing-form-tests: Likewise.
2655         * modules/uninorm/decomposition-tests: Likewise.
2656         * modules/uninorm/filter-tests: Likewise.
2657         * modules/uninorm/nfc-tests: Likewise.
2658         * modules/uninorm/nfd-tests: Likewise.
2659         * modules/uninorm/nfkc-tests: Likewise.
2660         * modules/uninorm/nfkd-tests: Likewise.
2661         * modules/uninorm/u8-normcmp-tests: Likewise.
2662         * modules/uninorm/u8-normcoll-tests: Likewise.
2663         * modules/uninorm/u16-normcmp-tests: Likewise.
2664         * modules/uninorm/u16-normcoll-tests: Likewise.
2665         * modules/uninorm/u32-normcmp-tests: Likewise.
2666         * modules/uninorm/u32-normcoll-tests: Likewise.
2667         * modules/unistdio/u8-asnprintf-tests: Likewise.
2668         * modules/unistdio/u8-vasnprintf-tests: Likewise.
2669         * modules/unistdio/u8-vasprintf-tests: Likewise.
2670         * modules/unistdio/u8-vsnprintf-tests: Likewise.
2671         * modules/unistdio/u8-vsprintf-tests: Likewise.
2672         * modules/unistdio/u16-asnprintf-tests: Likewise.
2673         * modules/unistdio/u16-vasnprintf-tests: Likewise.
2674         * modules/unistdio/u16-vasprintf-tests: Likewise.
2675         * modules/unistdio/u16-vsnprintf-tests: Likewise.
2676         * modules/unistdio/u16-vsprintf-tests: Likewise.
2677         * modules/unistdio/u32-asnprintf-tests: Likewise.
2678         * modules/unistdio/u32-vasnprintf-tests: Likewise.
2679         * modules/unistdio/u32-vasprintf-tests: Likewise.
2680         * modules/unistdio/u32-vsnprintf-tests: Likewise.
2681         * modules/unistdio/u32-vsprintf-tests: Likewise.
2682         * modules/unistdio/ulc-asnprintf-tests: Likewise.
2683         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
2684         * modules/unistdio/ulc-vasprintf-tests: Likewise.
2685         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
2686         * modules/unistdio/ulc-vsprintf-tests: Likewise.
2687         * modules/unistr/u8-check-tests: Likewise.
2688         * modules/unistr/u8-chr-tests: Likewise.
2689         * modules/unistr/u8-cmp-tests: Likewise.
2690         * modules/unistr/u8-cmp2-tests: Likewise.
2691         * modules/unistr/u8-cpy-alloc-tests: Likewise.
2692         * modules/unistr/u8-cpy-tests: Likewise.
2693         * modules/unistr/u8-mblen-tests: Likewise.
2694         * modules/unistr/u8-mbsnlen-tests: Likewise.
2695         * modules/unistr/u8-mbtouc-tests: Likewise.
2696         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
2697         * modules/unistr/u8-mbtoucr-tests: Likewise.
2698         * modules/unistr/u8-move-tests: Likewise.
2699         * modules/unistr/u8-next-tests: Likewise.
2700         * modules/unistr/u8-prev-tests: Likewise.
2701         * modules/unistr/u8-set-tests: Likewise.
2702         * modules/unistr/u8-stpcpy-tests: Likewise.
2703         * modules/unistr/u8-stpncpy-tests: Likewise.
2704         * modules/unistr/u8-strcat-tests: Likewise.
2705         * modules/unistr/u8-strcmp-tests: Likewise.
2706         * modules/unistr/u8-strcoll-tests: Likewise.
2707         * modules/unistr/u8-strcpy-tests: Likewise.
2708         * modules/unistr/u8-strdup-tests: Likewise.
2709         * modules/unistr/u8-strlen-tests: Likewise.
2710         * modules/unistr/u8-strmblen-tests: Likewise.
2711         * modules/unistr/u8-strmbtouc-tests: Likewise.
2712         * modules/unistr/u8-strncat-tests: Likewise.
2713         * modules/unistr/u8-strncmp-tests: Likewise.
2714         * modules/unistr/u8-strncpy-tests: Likewise.
2715         * modules/unistr/u8-strnlen-tests: Likewise.
2716         * modules/unistr/u8-to-u16-tests: Likewise.
2717         * modules/unistr/u8-to-u32-tests: Likewise.
2718         * modules/unistr/u8-uctomb-tests: Likewise.
2719         * modules/unistr/u16-check-tests: Likewise.
2720         * modules/unistr/u16-chr-tests: Likewise.
2721         * modules/unistr/u16-cmp-tests: Likewise.
2722         * modules/unistr/u16-cmp2-tests: Likewise.
2723         * modules/unistr/u16-cpy-alloc-tests: Likewise.
2724         * modules/unistr/u16-cpy-tests: Likewise.
2725         * modules/unistr/u16-mblen-tests: Likewise.
2726         * modules/unistr/u16-mbsnlen-tests: Likewise.
2727         * modules/unistr/u16-mbtouc-tests: Likewise.
2728         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
2729         * modules/unistr/u16-mbtoucr-tests: Likewise.
2730         * modules/unistr/u16-move-tests: Likewise.
2731         * modules/unistr/u16-next-tests: Likewise.
2732         * modules/unistr/u16-prev-tests: Likewise.
2733         * modules/unistr/u16-set-tests: Likewise.
2734         * modules/unistr/u16-stpcpy-tests: Likewise.
2735         * modules/unistr/u16-stpncpy-tests: Likewise.
2736         * modules/unistr/u16-strcat-tests: Likewise.
2737         * modules/unistr/u16-strcmp-tests: Likewise.
2738         * modules/unistr/u16-strcoll-tests: Likewise.
2739         * modules/unistr/u16-strcpy-tests: Likewise.
2740         * modules/unistr/u16-strdup-tests: Likewise.
2741         * modules/unistr/u16-strlen-tests: Likewise.
2742         * modules/unistr/u16-strmblen-tests: Likewise.
2743         * modules/unistr/u16-strmbtouc-tests: Likewise.
2744         * modules/unistr/u16-strncat-tests: Likewise.
2745         * modules/unistr/u16-strncmp-tests: Likewise.
2746         * modules/unistr/u16-strncpy-tests: Likewise.
2747         * modules/unistr/u16-strnlen-tests: Likewise.
2748         * modules/unistr/u16-to-u32-tests: Likewise.
2749         * modules/unistr/u16-to-u8-tests: Likewise.
2750         * modules/unistr/u16-uctomb-tests: Likewise.
2751         * modules/unistr/u32-check-tests: Likewise.
2752         * modules/unistr/u32-chr-tests: Likewise.
2753         * modules/unistr/u32-cmp-tests: Likewise.
2754         * modules/unistr/u32-cmp2-tests: Likewise.
2755         * modules/unistr/u32-cpy-alloc-tests: Likewise.
2756         * modules/unistr/u32-cpy-tests: Likewise.
2757         * modules/unistr/u32-mblen-tests: Likewise.
2758         * modules/unistr/u32-mbsnlen-tests: Likewise.
2759         * modules/unistr/u32-mbtouc-tests: Likewise.
2760         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
2761         * modules/unistr/u32-mbtoucr-tests: Likewise.
2762         * modules/unistr/u32-move-tests: Likewise.
2763         * modules/unistr/u32-next-tests: Likewise.
2764         * modules/unistr/u32-prev-tests: Likewise.
2765         * modules/unistr/u32-set-tests: Likewise.
2766         * modules/unistr/u32-stpcpy-tests: Likewise.
2767         * modules/unistr/u32-stpncpy-tests: Likewise.
2768         * modules/unistr/u32-strcat-tests: Likewise.
2769         * modules/unistr/u32-strcmp-tests: Likewise.
2770         * modules/unistr/u32-strcoll-tests: Likewise.
2771         * modules/unistr/u32-strcpy-tests: Likewise.
2772         * modules/unistr/u32-strdup-tests: Likewise.
2773         * modules/unistr/u32-strlen-tests: Likewise.
2774         * modules/unistr/u32-strmblen-tests: Likewise.
2775         * modules/unistr/u32-strmbtouc-tests: Likewise.
2776         * modules/unistr/u32-strncat-tests: Likewise.
2777         * modules/unistr/u32-strncmp-tests: Likewise.
2778         * modules/unistr/u32-strncpy-tests: Likewise.
2779         * modules/unistr/u32-strnlen-tests: Likewise.
2780         * modules/unistr/u32-to-u16-tests: Likewise.
2781         * modules/unistr/u32-to-u8-tests: Likewise.
2782         * modules/unistr/u32-uctomb-tests: Likewise.
2783         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
2784         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
2785         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
2786         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
2787         * modules/uniwidth/u8-strwidth-tests: Likewise.
2788         * modules/uniwidth/u8-width-tests: Likewise.
2789         * modules/uniwidth/u16-strwidth-tests: Likewise.
2790         * modules/uniwidth/u16-width-tests: Likewise.
2791         * modules/uniwidth/u32-strwidth-tests: Likewise.
2792         * modules/uniwidth/u32-width-tests: Likewise.
2793         * modules/uniwidth/width-tests: Likewise.
2794
2795 2010-05-18  Richard Jones  <rjones@redhat.com>
2796
2797         doc: users.txt: list hivex
2798         * users.txt: Add hivex.
2799
2800 2010-05-18  Richard Jones  <rjones@redhat.com>
2801
2802         doc: users.txt: list febootstrap
2803         * users.txt: Add febootstrap.
2804
2805 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
2806
2807         bootstrap: fix an error when gnulib is not used as a git submodule
2808         * build-aux/bootstrap (gnulib_path): If its length is zero then
2809         assign "gnulib" to it.
2810         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
2811
2812 2010-05-16  Bruno Haible  <bruno@clisp.org>
2813
2814         Avoid autoconf warnings about AM_ICONV.
2815         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
2816         2.64.
2817
2818 2010-05-16  Bruno Haible  <bruno@clisp.org>
2819
2820         absolute-header: Make the macro usable in more situations.
2821         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
2822         from gl_ABSOLUTE_HEADER.
2823         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
2824
2825 2010-05-16  James Youngman  <jay@gnu.org>
2826
2827         doc: update users.txt
2828         * users.txt: Add CSSC.
2829
2830 2010-05-16  Jim Meyering  <meyering@redhat.com>
2831
2832         init.sh: fix an error in the previous change; add more comments
2833         * tests/init.sh: Compare exit code in loop against 9, not 2.
2834         Patch by Bruno Haible.
2835         Make the two tests more similar by adding an empty "then" clause.
2836         Add comments.
2837
2838         init.sh: avoid unnecessary shell re-exec
2839         * tests/init.sh: Improve the re-exec-required check to first test the
2840         current shell.  If it passes the test, do not search for a shell that
2841         does pass, and do not re-exec.  This test is particularly contorted to
2842         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
2843         of $(...) evokes a syntax error and causes immediate shell exit with
2844         status 2.  Bruno Haible reported that the re-exec made it impossible
2845         to single-step through any init.sh-using script.
2846
2847 2010-05-16  Bruno Haible  <bruno@clisp.org>
2848
2849         Fix collision between gnulib's and libintl's printf replacements.
2850         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
2851         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
2852         (printf): When using GNU C, map the __printf__ function to rpl_printf
2853         via __asm__. When not using GNU C, define rpl_printf instead of
2854         __printf__.
2855         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
2856         commit.
2857         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
2858         commit.
2859         * m4/asm-underscore.m4: New file.
2860         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
2861         * modules/stdio (Files): Add m4/asm-underscore.m4.
2862         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
2863         Reported by Ben Pfaff.
2864
2865 2010-05-16  Bruno Haible  <bruno@clisp.org>
2866
2867         verify: Avoid skipping the test on openSUSE 11.0.
2868         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
2869
2870 2010-05-13  Bruno Haible  <bruno@clisp.org>
2871
2872         Avoid useless warnings from G++.
2873         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
2874         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
2875         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2876
2877 2010-05-11  Jim Meyering  <meyering@redhat.com>
2878
2879         maint.mk: tweak preceding change
2880         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
2881         regexps tighter by anchoring at EOL, and make the new group "shy"
2882         for slightly decreased overhead.
2883
2884 2010-05-11  Eric Blake  <eblake@redhat.com>
2885
2886         maint.mk: gnulib doesn't guarantee NSIG
2887         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
2888
2889 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2890
2891         test-pwrite.c: Remove unused variable declaration.
2892         * tests/test-pwrite.c (main): Remove read_buf declaration.
2893
2894         Remove useless test-pwrite.sh file.
2895         * tests/test-pwrite.sh: Delete file.
2896         * modules/pwrite-tests: Remove references.
2897         Reported by Bruno Haible.
2898
2899 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2900
2901         init.sh: fix a typo
2902         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
2903
2904 2010-05-10  Jim Meyering  <meyering@redhat.com>
2905
2906         maint.mk: avoid using a temporary file in the always-defined-macros check
2907         * top/maint.mk (.re-defmac): Remove rule.
2908         (gl_trap_): Remove definition.
2909         (sc_prohibit_always-defined_macros): Rewrite not to create and
2910         depend on a temporary file.  Instead, depend on GNU grep's ability
2911         to read a list of regular expressions from stdin when given "-f -".
2912
2913 2010-05-09  Bruno Haible  <bruno@clisp.org>
2914
2915         Update to GNU gettext 0.18, part 1.
2916         * m4/gettext.m4: Update to GNU gettext 0.18.
2917         * m4/intl.m4: Likewise.
2918         * m4/po.m4: Likewise.
2919         * modules/gettext (Files): Add m4/fcntl-o.m4.
2920         (configure.ac): Require gettext infrastructure from version 0.18.
2921
2922 2010-05-09  Jim Meyering  <meyering@redhat.com>
2923
2924         init.sh: enable MALLOC_PERTURB_
2925         * tests/init.sh: Enable glibc's malloc-perturbing option.
2926
2927         maint.mk: improve sc_cross_check_PATH_usage_in_tests
2928         With my recent change in init.sh from the two-line form:
2929             -#   : ${srcdir=.}
2930             -#   . "$srcdir/init.sh"; path_prepend_ .
2931             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
2932         I noticed that using the one-line form would cause this test
2933         to fail with a false-positive, or to stop working altogether,
2934         depending on whether help-version changed or all the tests did.
2935         * top/maint.mk (_hv_regex): Remove this definition.
2936         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
2937         (_hv_regex_strong): Use a stronger regex to check for conformance.
2938         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
2939         Give a separate diagnostic for lack of conforming use.
2940
2941         maint.mk: prohibit definition of symbols defined by gnulib
2942         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
2943         definition of symbols defined by gnulib.
2944
2945 2010-05-09  Bruno Haible  <bruno@clisp.org>
2946
2947         acl: Avoid test failure on Cygwin-hosted mingw.
2948         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
2949
2950 2010-05-09  Bruno Haible  <bruno@clisp.org>
2951
2952         error: Use system's fcntl function.
2953         * lib/error.c (fcntl): Undefine.
2954
2955 2010-05-09  Jim Meyering  <meyering@redhat.com>
2956
2957         verify: adjust formatting to be more consistent
2958         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
2959         argument-list '('s, and after one comma.
2960
2961 2010-05-09  Bruno Haible  <bruno@clisp.org>
2962
2963         error: More reliable output on mingw.
2964         * lib/error.c: Include <windows.h>.
2965         (is_open): New function.
2966         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2967         defined.
2968
2969 2010-05-09  Bruno Haible  <bruno@clisp.org>
2970
2971         vasnprintf: Fix syntax errors in libintl build on mingw.
2972         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2973         pad_ourselves and prec_ourselves after use.
2974
2975 2010-05-08  Bruno Haible  <bruno@clisp.org>
2976
2977         * lib/config.charset: Update comments for Cygwin 1.7.
2978         * lib/localcharset.c: Likewise.
2979
2980 2010-05-07  Jim Meyering  <meyering@redhat.com>
2981
2982         init.sh: improve comments
2983         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2984         . "${srcdir=.}/init.sh"; path_prepend_ .
2985         Add a note about path_prepend_ and the alternative of using
2986         TESTS_ENVIRONMENT.
2987
2988 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2989
2990         exclude: Unescape hashed patterns in wildcard mode.
2991         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2992         to the hash list.
2993         * tests/test-exclude8.sh: New test case.
2994         * modules/exclude-tests: Add new test.
2995
2996 2010-05-05  Eric Blake  <eblake@redhat.com>
2997
2998         verify: automate tests
2999         * modules/verify-tests: New module.
3000         * tests/test-verify.sh: New file.
3001         * tests/test-verify.c: Guard each negative test with a unique id.
3002         Also avoid warning about unused left hand of comma expressions.
3003
3004 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3005
3006         Further improvements to verify.h, suggested by Eric Blake.
3007         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3008         the GL_* versions, to avoid collision with OpenGL.
3009         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3010         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3011         than testing merely whether it's defined.
3012
3013         Modify verify.h to pacify gcc -Wredundant_decls.
3014         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3015         These use the prefix "GL_" since they're likely to be useful elsewhere.
3016         We may need to break them out into a different .h file.
3017         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3018         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3019         of verify_function__.
3020
3021 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3022
3023         Tests for module pwrite.
3024         * modules/pwrite-tests: New file.
3025         * tests/test-pwrite.sh: New file.
3026         * tests/test-pwrite.c: New file.
3027
3028         New module pwrite.
3029         * lib/unistd.in.h (pwrite): New declaration.
3030         * lib/pwrite.c: New file, from glibc with modifications.
3031         * m4/pwrite.m4: New file.
3032         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3033         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3034         REPLACE_PWRITE.
3035         * modules/pwrite: New file.
3036         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3037         REPLACE_PWRITE.
3038         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3039         * doc/posix-functions/pwrite.texi: Mention the new module.
3040
3041 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3042
3043         pread: Update documentation.
3044         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3045
3046 2010-05-04  Eric Blake  <eblake@redhat.com>
3047
3048         docs: update cygwin progress
3049         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3050         this bug.
3051         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3052         Added in cygwin 1.7.2.
3053         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3054         Likewise.
3055         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3056         Likewise.
3057         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3058         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3059         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3060         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3061         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3062         Mention nproc module.
3063         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3064         bug in cygwin 1.7.5 addition.
3065         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3066         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3067         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3068         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3069         1.7.5.
3070         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3071         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3072         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3073         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3074         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3075         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3076         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3077         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3078         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3079         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3080         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3081         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3082         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3083         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3084         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3085         Likewise.
3086         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3087         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3088         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3089         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3090         Likewise.
3091         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3092         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3093         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3094         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3095         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3096         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3097         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3098         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3099         Likewise.
3100         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3101         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3102         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3103         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3104         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3105         Likewise.
3106         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3107         Likewise.
3108         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3109         Likewise.
3110         * doc/glibc-functions/xdrrec_endofrecord.texi
3111         (xdrrec_endofrecord): Likewise.
3112         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3113         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3114         Likewise.
3115         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3116         Likewise.
3117
3118 2010-05-04  Jim Meyering  <meyering@redhat.com>
3119
3120         gendocs.sh: make its "-s FILE" option more useful
3121         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3122         $PACKAGE to reflect the probably-different basename of "FILE".
3123
3124 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3125
3126         bootstrap: don't ignore download_po_files failure
3127         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3128         failure.
3129
3130 2010-05-03  Jim Meyering  <meyering@redhat.com>
3131
3132         maint.mk: allow to pass options to gendocs.sh
3133         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3134         (gendocs_options_): New overridable variable.
3135
3136         gnu-web-doc-update: don't ignore configure or build failure
3137         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3138
3139         announce-gen: backslash-escape '@'s in --help output
3140         * build-aux/announce-gen: Fix syntax errors.
3141
3142         maint.mk, announce-gen: allow project-specific announcement mail headers
3143         * top/maint.mk (translation_project_): Define default.
3144         (announcement_Cc_, announcement_mail_headers_): Likewise.
3145         (announcement): Invoke announce-gen with new --mail-headers option.
3146         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3147
3148         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3149         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3150         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3151         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3152         line in the "err2" output file when running "make check" in verbose
3153         mode (i.e., with set -x enabled).
3154
3155 2010-05-03  Bruno Haible  <bruno@clisp.org>
3156
3157         wctob: Fix for weird platforms.
3158         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3159         argument value.
3160
3161 2010-05-03  Jim Meyering  <meyering@redhat.com>
3162
3163         maint.mk: prohibit unwarranted use of <strings.h>
3164         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3165         strings.h in a file that does not also use strcasecmp, strncasecmp,
3166         ffs or ffsll.
3167
3168         maint.mk: remove obsolete comments
3169         * top/maint.mk: Remove stale, commented-out rules.
3170
3171 2010-05-02  Bruno Haible  <bruno@clisp.org>
3172
3173         wcwidth: Declare also when it's aliased.
3174         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3175         macro.
3176
3177 2010-05-02  Bruno Haible  <bruno@clisp.org>
3178
3179         Fix regression from 2010-04-25.
3180         * gnulib-tool (func_modules_transitive_closure): Check the status of
3181         all modules, not only of the tests that are of the form foo-tests where
3182         foo is a module.
3183
3184 2010-05-02  Bruno Haible  <bruno@clisp.org>
3185
3186         wctob: Work around nasty Cygwin 1.7.2 bug.
3187         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3188         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3189
3190 2010-05-01  Bruno Haible  <bruno@clisp.org>
3191
3192         fpurge: Sharper test.
3193         * tests/test-fpurge.c (main): Add one more ftell check.
3194         * modules/fpurge-tests (Depends-on): Add ftell.
3195         Suggested by Eric Blake.
3196
3197 2010-05-01  Bruno Haible  <bruno@clisp.org>
3198
3199         ftello: Another test.
3200         * tests/test-ftello3.c: New file.
3201         * modules/ftello-tests (Files): Add it.
3202         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3203         MOSTLYCLEANFILES.
3204
3205         ftell: Another test.
3206         * tests/test-ftell3.c: New file.
3207         * modules/ftell-tests (Files): Add it.
3208         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3209         MOSTLYCLEANFILES.
3210
3211 2010-05-01  Bruno Haible  <bruno@clisp.org>
3212
3213         ftell, ftello: Work around Solaris bug.
3214         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3215         * lib/ftello.c: Include stdio-impl.h.
3216         (ftello): On Solaris, when _IOWRT is set, compute the result without
3217         looking at _IOREAD.
3218         * modules/ftello (Files): Add lib/stdio-impl.h.
3219         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3220         * doc/posix-functions/ftello.texi: Likewise.
3221         Reported by Eric Blake.
3222
3223 2010-05-01  Bruno Haible  <bruno@clisp.org>
3224
3225         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3226         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3227         the _IOWRT flag is also set.
3228
3229 2010-05-01  Bruno Haible  <bruno@clisp.org>
3230
3231         Fix doc about a HP-UX stdio bug.
3232         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3233         * doc/posix-functions/ftello.texi: Likewise.
3234
3235 2010-05-01  Bruno Haible  <bruno@clisp.org>
3236
3237         lseek test: Fix failure on Solaris.
3238         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3239         output.
3240
3241 2010-04-30  Jim Meyering  <meyering@redhat.com>
3242
3243         bootstrap: don't ignore failure to generate po*/Makevars
3244         * build-aux/bootstrap (with_gettext): Don't ignore failure
3245         to create po/Makevars or runtime-po/Makevars.
3246
3247 2010-04-29  Eric Blake  <eblake@redhat.com>
3248
3249         headers: relax license to LGPLv2+
3250         * modules/fcntl-h (License): Relax license.
3251         * modules/getopt-posix (License): Likewise.
3252         * modules/locale (License): Likewise.
3253         * modules/math (License): Likewise.
3254         * modules/pty (License): Likewise.
3255         * modules/sched (License): Likewise.
3256         * modules/search (License): Likewise.
3257         * modules/spawn (License): Likewise.
3258         * modules/stdarg (License): Likewise.
3259         * modules/sysexits (License): Likewise.
3260
3261 2010-04-29  Jim Meyering  <meyering@redhat.com>
3262
3263         inttypes: relax license to LGPLv2+
3264         * modules/inttypes (License): Relax license.
3265
3266 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3267
3268         * top/maint.mk (indent): Run twice to produce idempotent results.
3269
3270 2010-04-28  Bruno Haible  <bruno@clisp.org>
3271
3272         getdate: Generate getdate.c in the source directory.
3273         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3274         MOSTLYCLEANFILES.
3275         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3276
3277 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3278
3279         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3280         is not declared as a const *; avoid warnings in that case.
3281
3282 2010-04-28  Eric Blake  <eblake@redhat.com>
3283
3284         canonicalize-lgpl: avoid compiler warning
3285         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3286         declaration' / 'extraneous semicolon' warning with some compilers.
3287         Reported by Andreas Gruenbacher.
3288
3289 2010-04-28  Jim Meyering  <meyering@redhat.com>
3290
3291         init.sh: ensure a more reliable exit status when exiting via trap
3292         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3293         Inspired by patches from Dmitry V. Levin.
3294         Also trap on signal 3 (SIGQUIT).
3295
3296 2010-04-27  Bruno Haible  <bruno@clisp.org>
3297
3298         Update doc about utimes().
3299         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3300         'utimens' module.
3301         Reported by Andreas Gruenbacher <agruen@suse.de>.
3302
3303 2010-04-27  Eric Blake  <eblake@redhat.com>
3304
3305         full-read, full-write: relax license
3306         * modules/full-read (License): Drop to LGPLv2+.
3307         * modules/full-write (License): Likewise.
3308         * modules/safe-read (License): Likewise.
3309         * modules/safe-write (License): Likewise.
3310
3311         pthread: mention library for linking
3312         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3313
3314 2010-04-27  Jim Meyering  <meyering@redhat.com>
3315
3316         maint.mk: fix a bug introduced in last change
3317         * top/maint.mk (gl_assured_headers_): Now that all names are on
3318         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3319         is not anchored to end of word, it should be adequate.
3320
3321         maint.mk: avoid side-effect in latest syntax-check
3322         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3323         to run commands via $(shell...), and hence to incur cost only when
3324         the new rule is actually run.
3325
3326         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3327         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3328         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3329         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3330         (gl_assured_headers_, az_, AZ_): Define.
3331         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3332
3333 2010-04-26  Jim Meyering  <jim@meyering.net>
3334             Bruno Haible  <bruno@clisp.org>
3335
3336         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3337         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3338         Prompted by an exchange with Gilles Espinasse.
3339
3340 2010-04-26  Jim Meyering  <meyering@redhat.com>
3341
3342         git-version-gen: aesthetic tweak
3343         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3344         so that the command remains on a single line.
3345
3346 2010-04-26  Eric Blake  <eblake@redhat.com>
3347
3348         git-version-gen: allow use on EBCDIC hosts
3349         * build-aux/git-version-gen (dirty): Use literal rather than tying
3350         ourselves to ascii.
3351         Reported by Steve Goetze.
3352
3353 2010-04-25  Bruno Haible  <bruno@clisp.org>
3354
3355         netdb: Add support for GNULIB_POSIXCHECK.
3356         * lib/netdb.in.h: Include warn-on-use.h.
3357         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3358         functions are used when GNULIB_POSIXCHECK is defined and the
3359         getaddrinfo module is not in use.
3360         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3361         freeaddrinfo, gai_strerror, getnameinfo are declared.
3362         * modules/netdb (Depends-on): Add warn-on-use.
3363         (Makefile.am): Include warn-on-use.h in netdb.h.
3364
3365 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3366
3367         build: avoid "make check" failure without .git/ directory
3368         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3369         there is no .git/ directory.
3370
3371 2010-04-25  Bruno Haible  <bruno@clisp.org>
3372
3373         ptsname: Fix misuse of ttyname_r.
3374         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3375         of errno.
3376
3377 2010-04-25  Bruno Haible  <bruno@clisp.org>
3378
3379         ttyname_r: Make it work on Solaris 10.
3380         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3381         if the system function has the POSIX declaration. Test whether the
3382         function fails if the buffer is less than 128 bytes large.
3383         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3384         system's ttyname_r function. Provide a reasonably large buffer.
3385         * modules/ttyname_r (Depends-on): Add extensions.
3386         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3387
3388 2010-04-25  Bruno Haible  <bruno@clisp.org>
3389
3390         Use the 'extensions' module for some more functions on Solaris.
3391         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3392         module.
3393         * doc/posix-functions/ctime_r.texi: Likewise.
3394         * doc/posix-functions/getgrgid_r.texi: Likewise.
3395         * doc/posix-functions/getgrnam_r.texi: Likewise.
3396         * doc/posix-functions/getpwnam_r.texi: Likewise.
3397         * doc/posix-functions/getpwuid_r.texi: Likewise.
3398         * doc/posix-functions/readdir_r.texi: Likewise.
3399         * doc/posix-functions/sigwait.texi: Likewise.
3400         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3401         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3402
3403 2010-04-25  Bruno Haible  <bruno@clisp.org>
3404
3405         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
3406         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
3407         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
3408         * lib/ttyname_r.c: Include <limits.h>.
3409         (ttyname_r): Define using the system's ttyname_r function, if it exists
3410         and not on Solaris.
3411         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
3412         set.
3413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
3414         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
3415         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
3416         Reported by Simon Josefsson.
3417
3418 2010-04-25  Bruno Haible  <bruno@clisp.org>
3419
3420         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
3421         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
3422         * doc/posix-functions/ctime_r.texi: Likewise.
3423         * doc/posix-functions/getgrgid_r.texi: Likewise.
3424         * doc/posix-functions/getgrnam_r.texi: Likewise.
3425         * doc/posix-functions/getlogin_r.texi: Likewise.
3426         * doc/posix-functions/getpwnam_r.texi: Likewise.
3427         * doc/posix-functions/getpwuid_r.texi: Likewise.
3428         * doc/posix-functions/readdir_r.texi: Likewise.
3429         * doc/posix-functions/sigwait.texi: Likewise.
3430         * doc/posix-functions/ttyname_r.texi: Likewise.
3431         Reported by Simon Josefsson.
3432
3433 2010-04-25  Bruno Haible  <bruno@clisp.org>
3434
3435         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
3436         * gnulib-tool (func_usage): Document that --with-*-tests options apply
3437         also to --create-testdir.
3438         (func_acceptable): Don't consider the status of *-tests modules here.
3439         (func_modules_transitive_closure): Consider it here, before including a
3440         test module.
3441         (func_import, func_create_testdir): Set inc_all_direct_tests,
3442         inc_all_indirect_tests.
3443         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
3444         --create-testdir and --create-megatestdir.
3445
3446 2010-04-25  Bruno Haible  <bruno@clisp.org>
3447
3448         gnulib-tool: Add --without-*-tests options.
3449         * gnulib-tool (func_usage): Document the --without-*-tests options.
3450         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
3451         excl_unportable_tests): New variables.
3452         Fail if they are specified with --import or --update.
3453         (func_acceptable): Respect the excl_*_tests variables.
3454         (func_import): Set the excl_*_tests variables to empty.
3455
3456 2010-04-25  Simon Josefsson  <simon@josefsson.org>
3457             Bruno Haible  <bruno@clisp.org>
3458
3459         Work around a MacOS X 10.4 bug with openpty.
3460         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
3461         * tests/test-openpty.c (main): Close the master side explicitly.
3462
3463 2010-04-25  Bruno Haible  <bruno@clisp.org>
3464
3465         strnlen: Fix a C++ test error on MacOS X and Solaris.
3466         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
3467         the function is not declared.
3468         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
3469         Simon Josefsson.
3470
3471 2010-04-24  Bruno Haible  <bruno@clisp.org>
3472
3473         Avoid a gcc warning.
3474         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
3475         of correct type for %08lx directive.
3476         Reported by Eric Blake.
3477
3478 2010-04-24  Bruno Haible  <bruno@clisp.org>
3479
3480         vasnprintf: Correct errno value in case of out-of-memory.
3481         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
3482         or sprintf. Use the errno value from SNPRINTF or sprintf.
3483         Reported by Ian Beckwith <ianb@erislabs.net>.
3484
3485 2010-04-24  Bruno Haible  <bruno@clisp.org>
3486
3487         ansi-c++-opt: Find correct compiler when cross-compiling.
3488         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
3489         AC_CHECK_PROGS.
3490         Reported by Simon Josefsson.
3491
3492 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
3493
3494         vc-list-files: Add support for subversion
3495         * build-aux/vc-list-files: Use "svn list" to generate the list of
3496         files controlled by subversion.
3497
3498 2010-04-23  Jim Meyering  <meyering@redhat.com>
3499
3500         vc-list-files tests: convert to use init.sh
3501         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
3502         path_prepend_.
3503         Use Exit, not exit.
3504         Use skip_ rather than open coding it.
3505         Remove trap set-up and compare definitions.
3506         * tests/test-vc-list-files-git.sh: Likewise.
3507         * modules/vc-list-files-tests (Files): Add tests/init.sh.
3508
3509 2010-04-22  Simon Josefsson  <simon@josefsson.org>
3510
3511         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
3512         backup files.
3513
3514 2010-04-21  Simon Josefsson  <simon@josefsson.org>
3515
3516         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
3517
3518 2010-04-20  Eric Blake  <eblake@redhat.com>
3519
3520         tests: be robust to ignored SIGPIPE
3521         * tests/test-select-in.sh: Consume all output.
3522         * tests/test-lseek.sh: Check correct exit status, while avoiding
3523         EPIPE.
3524
3525 2010-04-20  Simon Josefsson  <simon@josefsson.org>
3526             Bruno Haible  <bruno@clisp.org>
3527
3528         visibility: Don't use -fvisibility if it leads to a warning.
3529         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
3530         yes, don't pretend that visibility works if it leads to a warning.
3531         Reported by Mike Gran <spk121@yahoo.com>.
3532
3533 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
3534
3535         * build-aux/bootstrap: Use "git -h" for testing for supported options
3536         instead of "git --help".  The short-form option only shows a summary,
3537         and doesn't layout the full man page.  Grep for the full option name
3538         in the summary, too.
3539
3540 2010-04-19  Bruno Haible  <bruno@clisp.org>
3541
3542         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
3543         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
3544         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
3545         mention of RELOCATABLE_STRIP.
3546         Reported by Sylvain Beucler <beuc@beuc.net>.
3547
3548 2010-04-19  Bruno Haible  <bruno@clisp.org>
3549
3550         * lib/diffseq.h: Fix typo in comment.
3551         Reported by Eric Blake.
3552
3553 2010-04-19  Bruno Haible  <bruno@clisp.org>
3554
3555         ioctl: Move autoconf macro to a .m4 file.
3556         * m4/ioctl.m4: New file, extracted from modules/ioctl.
3557         * modules/ioctl (Files): Add it.
3558         (configure.ac): Simply invoke gl_FUNC_IOCTL.
3559         Reported by Ian Beckwith <ianb@erislabs.net>.
3560
3561 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
3562             Bruno Haible  <bruno@clisp.org>
3563
3564         diffseq: Accommodate use-case with abstract arrays.
3565         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
3566         is not defined.
3567         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
3568         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
3569
3570 2010-04-18  Bruno Haible  <bruno@clisp.org>
3571
3572         * doc/posix-headers/stdbool.texi: More precise wording.
3573
3574 2010-04-17  Jim Meyering  <meyering@redhat.com>
3575
3576         maint.mk: use gnu-style indentation in an embedded perl script
3577         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
3578         Rename variable: s/two/last_two_bytes/
3579
3580 2010-04-16  Eric Blake  <eblake@redhat.com>
3581
3582         test-stdbool: skip test that fails with Solaris CC
3583         * tests/test-stdbool.c (f): Skip test that causes compilation
3584         error under buggy C++ compiler.
3585         * lib/stdbool.in.h: Document the limitation.
3586         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
3587
3588         setenv: allow compilation with C++
3589         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
3590         register keyword.
3591
3592         stdint: allow test to pass with C++
3593         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
3594
3595         getopt: allow compilation with C++
3596         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
3597         struct.
3598         * lib/getopt.c (_getopt_internal_r): Use correct type.
3599         Reported by Dagobert Michelson, via Joel E. Denny.
3600
3601 2010-04-16  Bruno Haible  <bruno@clisp.org>
3602
3603         Override netdb.h always.
3604         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
3605         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
3606         Reported by Ludovic Courtès <ludo@gnu.org>.
3607
3608 2010-04-15  Bruno Haible  <bruno@clisp.org>
3609
3610         openpty: Fix mistake from 2010-03-21.
3611         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
3612         Reported by Simon Josefsson.
3613
3614 2010-04-15  Eric Blake  <eblake@redhat.com>
3615
3616         test-forkpty: fix expected signature
3617         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
3618         Reported by Simon Josefsson.
3619
3620 2010-04-15  Jim Meyering  <meyering@redhat.com>
3621
3622         maint.mk: texinfo_suffix_re_: correct the default regexp
3623         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
3624
3625         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
3626         make it configurable via texinfo_suffix_re_.
3627
3628 2010-04-14  Eric Blake  <eblake@redhat.com>
3629
3630         strtok_r: relax license to LGPLv2+
3631         * modules/strtok_r (License): Relax license.
3632         Reported by Matthias Bolte.
3633
3634 2010-04-14  Simon Josefsson  <simon@josefsson.org>
3635
3636         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
3637         version 1.4.4 by default instead of requiring the libgcrypt
3638         version used during build.  This makes it possible to use the
3639         application with older but still binary compatible libgcrypt
3640         versions.
3641
3642 2010-04-13  Eric Blake  <eblake@redhat.com>
3643
3644         getopt-gnu: match recent glibc fixes and posix ruling
3645         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
3646         '+' handling, when requesting extensions.
3647         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
3648         'W;' handling.
3649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
3650         * doc/posix-functions/getopt.texi (getopt): Document this.
3651         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3652         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3653         Likewise.
3654
3655         getopt: merge bug fixes from glibc
3656         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
3657         diagnostics.  Honor '+:' correctly.  Reject ';'.
3658
3659         getopt-posix: detect MacOS bug
3660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
3661         optind when missing a required argument.
3662         * doc/posix-functions/getopt.texi (getopt): Document the bug.
3663         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3664         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3665         Likewise.
3666
3667         getopt-posix: avoid spurious failure on Solaris
3668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
3669         an indicator that setting optind=1 is sufficient for reset.
3670
3671         getopt-posix: avoid spurious failure on FreeBSD
3672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
3673         in POSIX mode, since the m4 test uses it.
3674
3675         gnulib-tool: silence warning on BSD sh
3676         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
3677
3678 2010-04-13  Jim Meyering  <meyering@redhat.com>
3679
3680         doc: users.txt: GNU patch now uses gnulib
3681         * users.txt: Add patch.
3682
3683 2010-04-12  Jim Meyering  <meyering@redhat.com>
3684
3685         maint.mk: generate more concise timing data for syntax-check rules
3686         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
3687         " done" from each line that reports a syntax-check test duration.
3688
3689 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
3690
3691         git-version-gen: use "git update-index..." rather than "git status"
3692         * build-aux/git-version-gen: Use git update-index --refresh, not
3693         "git status".  With some versions of git, "git status" would fail
3694         to update the index and result in an unwarranted "-dirty" suffix.
3695
3696 2010-04-11  Jim Meyering  <meyering@redhat.com>
3697
3698         openat: correct formatting (no semantic change)
3699         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
3700         Suggested by Bruno Haible.
3701
3702 2010-04-11  Bruno Haible  <bruno@clisp.org>
3703
3704         Stricter declaration checking in testdirs.
3705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3706         If for_tests is true, augment AM_CPPFLAGS to define
3707         GNULIB_STRICT_CHECKING.
3708         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
3709         GNULIB_STRICT_CHECKING is defined, verify that the function is
3710         declared.
3711
3712 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
3713             Bruno Haible  <bruno@clisp.org>
3714
3715         libunistring: Improve configure output.
3716         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
3717         Don't say "consider installing GNU libunistring" when checking again
3718         with libiconv.
3719
3720 2010-04-11  Bruno Haible  <bruno@clisp.org>
3721
3722         libunistring: Correct value of $LTLIBUNISTRING.
3723         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
3724         correct the value of $LTLIBUNISTRING.
3725
3726 2010-04-11  Bruno Haible  <bruno@clisp.org>
3727
3728         havelib: Add static libraries to LIBS in the right order.
3729         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
3730         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
3731
3732 2010-04-11  Bruno Haible  <bruno@clisp.org>
3733
3734         libunistring: Detect libunistring also when it depends on libiconv.
3735         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
3736         the second AC_LIB_HAVE_LINKFLAGS invocation.
3737
3738 2010-04-11  James Youngman  <jay@gnu.org>
3739
3740         close-stream: declare local scalars to be "const"
3741         * lib/close-stream.c (close_stream): Make boolean variables const
3742         to document the fact that we set but do not change them.
3743
3744 2010-04-11  Bruno Haible  <bruno@clisp.org>
3745
3746         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
3747
3748 2010-04-11  Jim Meyering  <meyering@redhat.com>
3749
3750         maint.mk: don't include dist-check.mk
3751         * top/maint.mk: Remove bogus include directive.
3752
3753         maint.mk: improve empty-line-at-EOF check
3754         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
3755         solution, rather than tail+Perl-based one.  The latter would read
3756         a few kilobytes from the end of each file, and did not handle empty
3757         files properly.
3758
3759         maint.mk: print the elapsed time for each syntax-check rule
3760         * top/maint.mk (sc_m_rules_): Save start time in a file.
3761         (sc_z_rules_): New rules: remove temp file and print elapsed time.
3762         (local-check): Interpose the .z rules
3763
3764 2010-04-11  Jim Meyering  <meyering@redhat.com>
3765
3766         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
3767         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
3768         empty file with one that ends in an empty line.
3769
3770 2010-04-10  Bruno Haible  <bruno@clisp.org>
3771
3772         mkdir: Make it work on mingw64.
3773         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
3774         * lib/mkdir.c: Update comment.
3775         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
3776
3777 2010-04-10  Bruno Haible  <bruno@clisp.org>
3778
3779         Don't override improved macro from newer autoconf.
3780         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
3781         autoconf >= 2.62.
3782         Reported by Joel E. Denny <jdenny@clemson.edu>.
3783
3784 2010-04-10  Jim Meyering  <meyering@redhat.com>
3785
3786         maint.mk: new syntax-check rule: prohibit empty lines at end of file
3787         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
3788
3789         maint.mk: correct a diagnostic
3790         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
3791         in diagnostic; now use $prohibit.
3792
3793 2010-04-10  Bruno Haible  <address@hidden>
3794
3795         fchownat: Fix a C++ test error on Solaris 8.
3796         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
3797         the function does not exist.
3798
3799 2010-04-10  Bruno Haible  <bruno@clisp.org>
3800
3801         vasnprintf: Add more tests.
3802         * tests/test-vasnprintf-posix.c: Include <errno.h>.
3803         (test_function): Test converting an invalid wide string.
3804
3805         vasnprintf: Correct handling of unconvertible wide string arguments.
3806         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
3807         VASNPRINTF.
3808         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
3809         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
3810         smaller than the expected maximum need for the directive. Set errno to
3811         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
3812         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
3813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
3814         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
3815         * modules/vasnprintf (Files): Add m4/printf.m4.
3816         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3817
3818 2010-04-10  Bruno Haible  <bruno@clisp.org>
3819
3820         vasnprintf: Fix crash in %ls directive.
3821         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
3822         string is passed as argument to %ls, with no precision and no width.
3823         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3824
3825 2010-04-10  Bruno Haible  <bruno@clisp.org>
3826
3827         vasnprintf: Fix multiple test failures on mingw.
3828         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
3829         _snprintf, or snwprintf, not _snwprintf.
3830
3831 2010-04-10  Bruno Haible  <bruno@clisp.org>
3832
3833         write: Fix a C++ test error on mingw.
3834         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
3835
3836 2010-04-10  Bruno Haible  <bruno@clisp.org>
3837
3838         vasnprintf test: Reduce code duplication.
3839         * tests/test-vasnprintf.c (test_function): New function, extracted from
3840         test_vasnprintf.
3841         (test_vasnprintf, test_asnprintf): Invoke it.
3842
3843 2010-04-10  Bruno Haible  <bruno@clisp.org>
3844
3845         strnlen: Fix warning in C++ mode on MacOS X.
3846         * lib/string.in.h (strnlen): Use the modern idiom.
3847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
3848         defining strnlen as a macro already in <config.h>.
3849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3850         REPLACE_STRNLEN.
3851         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
3852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3853
3854 2010-04-08  James Youngman  <jay@gnu.org>
3855
3856         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
3857         the example.
3858
3859 2010-04-09  Jim Meyering  <meyering@redhat.com>
3860
3861         maint.mk: print better diagnostic when there is no $(_hv_file)
3862         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
3863         announce that when $(_hv_file) (aka help-version) does not exist.
3864
3865         init.sh: run tr in the "C" locale to avoid multibyte interpretation
3866         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
3867         not try to interpret its random input bytes.  Jarno Rajahalme reported
3868         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
3869         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
3870         (mktempd_): Likewise, just in case.
3871
3872         ftruncate: add two years to projected module removal date: 2012
3873         * m4/ftruncate.m4: Adjust comments.
3874
3875         ftruncate: mark module as obsolete; even MinGW provides it, now
3876         * modules/ftruncate (Status): Obsolete.
3877         (Notice): Say that.
3878         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
3879         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
3880
3881 2010-04-08  Bruno Haible  <bruno@clisp.org>
3882
3883         Fix side effects from tests-related modules.
3884         * modules/dprintf-posix (Comment): New section.
3885         * modules/fprintf-posix (Comment): Likewise.
3886         * modules/obstack-printf-posix (Comment): Likewise.
3887         * modules/printf-posix (Comment): Likewise.
3888         * modules/snprintf-posix (Comment): Likewise.
3889         * modules/sprintf-posix (Comment): Likewise.
3890         * modules/vasnprintf-posix (Comment): Likewise.
3891         * modules/vasprintf-posix (Comment): Likewise.
3892         * modules/vdprintf-posix (Comment): Likewise.
3893         * modules/vfprintf-posix (Comment): Likewise.
3894         * modules/vprintf-posix (Comment): Likewise.
3895         * modules/vsnprintf-posix (Comment): Likewise.
3896         * modules/vsprintf-posix (Comment): Likewise.
3897         * modules/xprintf-posix (Comment): Likewise.
3898         * modules/xvasprintf-posix (Comment): Likewise.
3899         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
3900         * modules/floorf-tests (Depends-on): Likewise.
3901         * modules/round-tests (Depends-on): Likewise.
3902         * modules/roundf-tests (Depends-on): Likewise.
3903         * modules/trunc-tests (Depends-on): Likewise.
3904         * modules/truncf-tests (Depends-on): Likewise.
3905         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
3906         'fprintf-posix' module is not present.
3907         * tests/test-floorf2.c (check): Likewise.
3908         * tests/test-trunc2.c (check): Likewise.
3909         * tests/test-truncf2.c (check): Likewise.
3910         * tests/test-round2.c (equal): Likewise.
3911         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3912
3913 2010-04-07  Karl Berry  <karl@gnu.org>
3914
3915         * config/srclist.txt,
3916         * config/srclistvars.sh,
3917         * config/srclist-update: doc fixes.
3918
3919 2010-04-07  Jim Meyering  <meyering@redhat.com>
3920
3921         maint.mk: add a PATH crosschecking syntax-check rule
3922         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
3923         Useful if you use a test like the one in help-version (coreutils,
3924         diffutils, grep, gzip) that ensures $(VERSION) matches what is
3925         printed by prog --version.
3926
3927 2010-04-06  Bruno Haible  <bruno@clisp.org>
3928
3929         Fix link error on mingw.
3930         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
3931         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
3932
3933 2010-04-06  Bruno Haible  <bruno@clisp.org>
3934
3935         Assume rmdir exists.
3936         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
3937
3938 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
3939
3940         doc: update users.txt
3941         * users.txt: Add gcal.
3942
3943 2010-04-06  Jim Meyering  <meyering@redhat.com>
3944
3945         init.sh: simply unset TMPDIR rather than risking env -i
3946         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
3947         although it probably works fine on all Unix-based systems, some
3948         systems (Cygwin?) cannot tolerate a totally cleared environment.
3949         Suggestion from Eric Blake.
3950
3951 2010-04-06  Jim Meyering  <meyering@redhat.com>
3952
3953         init.sh: portability fix: use env's POSIX-specified -i option not -u
3954         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
3955         than unportable env -u.  Solaris 5.11's env lacks support for -u.
3956
3957 2010-04-05  Bruno Haible  <bruno@clisp.org>
3958
3959         btowc: Work around Cygwin 1.7.2 bug.
3960         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
3961         does not map NUL to 0.
3962         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
3963
3964 2010-04-05  Bruno Haible  <bruno@clisp.org>
3965
3966         Make the multithread modules work on Cygwin 1.7.2.
3967         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3968         imported symbols can be declared weak, so that it returns "no" on
3969         Cygwin 1.7.2.
3970
3971 2010-04-05  Bruno Haible  <bruno@clisp.org>
3972
3973         Use the module 'strncat'.
3974         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3975
3976         Tests for module 'strncat'.
3977         * modules/strncat-tests: New file.
3978         * tests/test-strncat.c: New file.
3979
3980         New module 'strncat'.
3981         * lib/string.in.h (strncat): New declaration.
3982         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3983         * m4/strncat.m4: New file, based on m4/memchr.m4.
3984         * modules/strncat: New file.
3985         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3986         is declared.
3987         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3988         REPLACE_STRNCAT.
3989         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3990         REPLACE_STRNCAT.
3991         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3992         module.
3993         * tests/test-string-c++.cc: Check signature of strncat.
3994
3995 2010-04-05  Jim Meyering  <meyering@redhat.com>
3996
3997         xstrtoumax-tests: convert to use init.sh
3998         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3999         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4000         Use Exit, not exit.
4001         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4002
4003         xstrtoimax-tests: convert to use init.sh
4004         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4005         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4006         Use Exit, not exit.
4007         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4008
4009 2010-04-05  Bruno Haible  <bruno@clisp.org>
4010
4011         sys_socket: Avoid #define replacements in C++ mode.
4012         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4013         warning to the function if possible, rather than #defining the symbol
4014         to a dysfunctional alias.
4015
4016 2010-04-05  Bruno Haible  <bruno@clisp.org>
4017
4018         fseeko: Fix C++ test error on mingw.
4019         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4020         gl_FUNC_FSEEKO.
4021         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4022         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4023         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4024         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4025
4026 2010-04-05  Bruno Haible  <bruno@clisp.org>
4027
4028         duplocale: Improve test output.
4029         * tests/test-duplocale.c (main): Print reason for skipped test.
4030
4031 2010-04-05  Bruno Haible  <bruno@clisp.org>
4032
4033         Assume rmdir exists.
4034         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4035         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4036
4037 2010-04-05  Bruno Haible  <bruno@clisp.org>
4038
4039         Fix link error on Solaris 8 with cc.
4040         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4041
4042 2010-04-05  Bruno Haible  <bruno@clisp.org>
4043
4044         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4045         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4046
4047 2010-04-05  Bruno Haible  <bruno@clisp.org>
4048
4049         vasprintf: Update documentation.
4050         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4051
4052 2010-04-05  Bruno Haible  <bruno@clisp.org>
4053
4054         ptsname: Improve test.
4055         * tests/test-ptsname.c (main): Also try the various master names of BSD
4056         systems.
4057
4058 2010-04-05  Bruno Haible  <bruno@clisp.org>
4059
4060         memchr: Avoid a possible C++ test error.
4061         * lib/string.in.h (memchr): Provide declaration if function is missing.
4062         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4063         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4065         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4066
4067 2010-04-05  Bruno Haible  <bruno@clisp.org>
4068
4069         strtok_r: Improve idiom.
4070         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4071         AC_LIBOBJ is used.
4072
4073 2010-04-05  Bruno Haible  <bruno@clisp.org>
4074
4075         strdup: Improve idiom.
4076         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4077         AC_LIBOBJ is used.
4078         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4079         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4080         when AC_LIBOBJ is used.
4081
4082 2010-04-05  Bruno Haible  <bruno@clisp.org>
4083
4084         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4085         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4086         don't set REPLACE_MBSINIT to 1.
4087         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4088         don't set REPLACE_MBRTOWC to 1.
4089         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4090         exist, don't set REPLACE_MBSRTOWCS to 1.
4091         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4092         exist, don't set REPLACE_MBSNRTOWCS to 1.
4093         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4094         don't set REPLACE_WCRTOMB to 1.
4095         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4096         exist, don't set REPLACE_WCSRTOMBS to 1.
4097         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4098         exist, don't set REPLACE_WCSNRTOMBS to 1.
4099
4100 2010-04-05  Bruno Haible  <bruno@clisp.org>
4101
4102         ldexpl: Improve idiom.
4103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4104         make sure to set HAVE_DECL_LDEXPL to 0.
4105
4106 2010-04-05  Jim Meyering  <meyering@redhat.com>
4107
4108         xstrtol-tests: convert to use init.sh
4109         * modules/xstrtol-tests (Files): Add tests/init.sh.
4110         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4111         Use Exit, not exit.
4112         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4113
4114         atexit-tests: convert to use init.sh
4115         * modules/atexit-tests (Files): Add tests/init.sh.
4116         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4117         Use Exit, not exit.
4118         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4119
4120         init.sh: fix typo
4121         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4122
4123         init.sh: make it easier for a test script to write to the tty, ...
4124         when using automake's parallel-tests mode.
4125         * tests/init.sh (stderr_fileno_): Define overridable variable.
4126         (warn_): New function, to use it.
4127         (fail_, skip_, framework_failure_): Use warn_.
4128
4129 2010-04-04  Bruno Haible  <bruno@clisp.org>
4130
4131         btowc: Avoid warning.
4132         * lib/btowc.c: Include <stdlib.h>.
4133         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4134
4135 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4136             Bruno Haible  <bruno@clisp.org>
4137
4138         wchar: Port to NetBSD 1.5.
4139         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4140         * lib/wctype.in.h (WEOF): Likewise.
4141
4142 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4143             Bruno Haible  <bruno@clisp.org>
4144
4145         Port extended stdio to NetBSD 1.5.
4146         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4147         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4148         older.
4149
4150 2010-04-04  Bruno Haible  <bruno@clisp.org>
4151
4152         string: Remove unused substitution.
4153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4154         HAVE_DECL_STRERROR.
4155         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4156
4157 2010-04-04  Bruno Haible  <bruno@clisp.org>
4158
4159         strtod: Avoid a possible C++ test error.
4160         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4161         set REPLACE_STRTOD.
4162
4163 2010-04-04  Bruno Haible  <bruno@clisp.org>
4164
4165         strerror: Update documentation.
4166         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4167
4168 2010-04-04  Bruno Haible  <bruno@clisp.org>
4169
4170         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4171         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4172         _GL_CXXALIAS_SYS_CAST.
4173
4174 2010-04-04  Bruno Haible  <bruno@clisp.org>
4175
4176         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4177         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4178         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4179         REPLACE_FREXPL to 1.
4180         * doc/posix-functions/frexpl.texi: Update documentation.
4181
4182 2010-04-04  Bruno Haible  <bruno@clisp.org>
4183
4184         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4185         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4186
4187 2010-04-04  Bruno Haible  <bruno@clisp.org>
4188
4189         Implement nanosleep for native Windows.
4190         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4191
4192 2010-04-04  Bruno Haible  <bruno@clisp.org>
4193
4194         math: Fix some C++ test errors on Solaris 8.
4195         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4196
4197 2010-04-04  Bruno Haible  <bruno@clisp.org>
4198
4199         math: Fix some C++ test errors on Cygwin.
4200         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4201         truncl): Provide declaration if the system does not have it.
4202         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4203         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4204         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4205         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4206         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4207         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4208         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4209         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4210         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4211         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4212         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4213         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4214         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4215         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4216         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4217         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4219         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4220         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4221         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4222         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4223         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4224
4225 2010-04-04  Bruno Haible  <bruno@clisp.org>
4226
4227         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4228         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4229         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4230         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4231         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4232         * m4/isinf.m4 (gl_ISINF): Likewise.
4233         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4234
4235 2010-04-04  Bruno Haible  <bruno@clisp.org>
4236
4237         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4238         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4239
4240 2010-04-04  Bruno Haible  <bruno@clisp.org>
4241
4242         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4243         * modules/tmpfile (configure.ac): Update.
4244
4245         tmpfile: Fix C++ test error on mingw.
4246         * lib/stdio.in.h (tmpfile): New declaration.
4247         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4248         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4249         * modules/tmpfile (Depends-on): Add stdio.
4250         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4251         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4252         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4253         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4254         REPLACE_TMPFILE.
4255         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4256
4257 2010-04-04  Bruno Haible  <bruno@clisp.org>
4258
4259         ioctl: Fix C++ test error on mingw.
4260         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4261         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4262         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4263
4264 2010-04-03  Bruno Haible  <bruno@clisp.org>
4265
4266         wcwidth: Fix C++ test error on mingw.
4267         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4269         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4270
4271 2010-04-03  Bruno Haible  <bruno@clisp.org>
4272
4273         nanosleep: Fix C++ test error on mingw.
4274         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4275         * lib/time.in.h (nanosleep): Use modern idiom.
4276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4277         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4278         REPLACE_NANOSLEEP to 1.
4279         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4280         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4281
4282 2010-04-03  Bruno Haible  <bruno@clisp.org>
4283
4284         strptime: Fix C++ test error on mingw.
4285         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4286         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4287         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4288         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4289         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4290         not REPLACE_STRPTIME.
4291         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4292         REPLACE_STRPTIME.
4293
4294 2010-04-03  Bruno Haible  <bruno@clisp.org>
4295
4296         timegm: Fix C++ test error on mingw.
4297         * lib/time.in.h (timegm): Use modern idiom.
4298         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4299         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4300         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4301         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4302
4303 2010-04-03  Bruno Haible  <bruno@clisp.org>
4304
4305         timegm: Assume declaration if function exists.
4306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4307         if it exists. Don't clobber ac_cv_func_timegm.
4308
4309 2010-04-03  Bruno Haible  <bruno@clisp.org>
4310
4311         time_r: Fix C++ test error on mingw.
4312         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4313         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4314         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4315         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4316         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4317
4318 2010-04-03  Bruno Haible  <bruno@clisp.org>
4319
4320         time_r: Minor updates.
4321         * modules/time_r (Description): Mention the provided functions.
4322         * lib/time_r.c: Don't include <string.h>.
4323         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4324         * doc/posix-functions/localtime_r.texi: Likewise.
4325
4326 2010-04-03  Bruno Haible  <bruno@clisp.org>
4327
4328         time: Fix regression introduced on 2010-03-08.
4329         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4330         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4331
4332 2010-04-03  Jim Meyering  <meyering@redhat.com>
4333
4334         maint.mk: don't silently disable project-specific syntax-check rules
4335         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4336         that they need to convert their project-specific syntax-check rules
4337         to use the new _sc_search_regexp.
4338
4339 2010-04-03  Bruno Haible  <bruno@clisp.org>
4340
4341         fchdir: Fix regression introduced on 2010-03-08.
4342         * lib/unistd.in.h (fchdir): Fix declaration.
4343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4345         REPLACE_FCHDIR.
4346         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4347         REPLACE_FCHDIR.
4348
4349 2010-04-03  Bruno Haible  <bruno@clisp.org>
4350
4351         getpagesize: Fix C++ test error on mingw.
4352         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4353         system does not declare the function.
4354         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4355         declared.
4356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4357         HAVE_DECL_GETPAGESIZE.
4358         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4359
4360 2010-04-03  Bruno Haible  <bruno@clisp.org>
4361
4362         stdio: Make C++ tests work on mingw.
4363         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4364         does not declare the function.
4365
4366 2010-04-03  Bruno Haible  <bruno@clisp.org>
4367
4368         ftello: Fix C++ test error on mingw.
4369         * lib/stdio.in.h (ftello): Use modern idiom.
4370         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4371         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4372         is missing and that it needs to be replaced.
4373         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4375         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4376
4377 2010-04-03  Bruno Haible  <bruno@clisp.org>
4378
4379         fseeko: Fix C++ test error on mingw.
4380         * lib/stdio.in.h (fseeko): Use modern idiom.
4381         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4383         is missing and that it needs to be replaced.
4384         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4386         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4387
4388 2010-04-03  Bruno Haible  <bruno@clisp.org>
4389
4390         mkstemp: Fix C++ test error on mingw.
4391         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4393         function is missing and that it needs to be replaced.
4394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4395         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4396
4397 2010-04-03  Bruno Haible  <bruno@clisp.org>
4398
4399         stpncpy: Fix C++ test error on mingw.
4400         * lib/string.in.h (stpncpy): Use modern idiom.
4401         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4402         function is missing and that it needs to be replaced.
4403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4404         REPLACE_STPNCPY.
4405         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
4406
4407 2010-04-03  Bruno Haible  <bruno@clisp.org>
4408
4409         sys_stat: Fix C++ test error on mingw.
4410         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
4411         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
4412
4413 2010-04-03  Bruno Haible  <bruno@clisp.org>
4414
4415         pty: Update doc.
4416         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
4417
4418 2010-04-03  Bruno Haible  <bruno@clisp.org>
4419
4420         unistd: Fix C++ test error on mingw.
4421         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
4422
4423 2010-04-03  Bruno Haible  <bruno@clisp.org>
4424
4425         Update doc regarding mingw.
4426         * doc/glibc-functions/openpty.texi: Update regarding mingw.
4427         * doc/glibc-functions/login_tty.texi: Likewise.
4428         * doc/glibc-functions/forkpty.texi: Likewise.
4429
4430 2010-04-03  Bruno Haible  <bruno@clisp.org>
4431
4432         stdlib: Avoid compilation failure of c-strtold on mingw.
4433         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
4434
4435 2010-04-03  Bruno Haible  <bruno@clisp.org>
4436
4437         locale: Make C++ tests work on Cygwin and mingw.
4438         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
4439         cannot provide the function.
4440         Reported by Simon Josefsson.
4441
4442 2010-04-03  Bruno Haible  <bruno@clisp.org>
4443
4444         localename: Port to MacOS X 10.6.
4445         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
4446         memory layout of the locales in MacOS X 10.6 as well.
4447         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
4448
4449 2010-04-02  Bruno Haible  <bruno@clisp.org>
4450
4451         gnulib-tool: Ensure that long-running tests are executed last.
4452         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
4453         running tests after the one for the other tests.
4454
4455 2010-04-02  Bruno Haible  <bruno@clisp.org>
4456
4457         gnulib-tool: Ensure the tests in the main directory are executed first.
4458         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
4459         start with the current directory.
4460
4461 2010-04-02  Bruno Haible  <bruno@clisp.org>
4462
4463         Tests for module 'havelib', moved here from GNU gettext.
4464         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
4465         modifications.
4466         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
4467         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
4468         with modifications.
4469         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
4470         modifications.
4471         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
4472         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
4473         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
4474         with modifications.
4475         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
4476         with modifications.
4477         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
4478         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
4479         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
4480         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
4481         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
4482         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
4483         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
4484         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
4485         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
4486         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
4487         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
4488         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
4489         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
4490         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
4491         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
4492         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
4493         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
4494         with modifications.
4495         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
4496         with modifications.
4497         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
4498         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
4499         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
4500         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
4501         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
4502         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
4503         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
4504         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
4505         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
4506         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
4507         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
4508         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
4509         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
4510         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
4511         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
4512         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
4513         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
4514         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
4515         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
4516         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
4517         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
4518         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
4519         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
4520         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
4521         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
4522         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
4523         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
4524         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
4525         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
4526         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
4527         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
4528         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
4529         * tests/havelib/rpathx/rpathx.c: New file, from
4530         gettext/autoconf-lib-link.
4531         * tests/havelib/rpathx/Makefile.am: New file, from
4532         gettext/autoconf-lib-link.
4533         * tests/havelib/rpathx/configure.ac: New file, from
4534         gettext/autoconf-lib-link with modifications.
4535         * tests/havelib/rpathy/rpathy.c: New file, from
4536         gettext/autoconf-lib-link.
4537         * tests/havelib/rpathy/Makefile.am: New file, from
4538         gettext/autoconf-lib-link.
4539         * tests/havelib/rpathy/configure.ac: New file, from
4540         gettext/autoconf-lib-link with modifications.
4541         * tests/havelib/rpathz/rpathz.c: New file, from
4542         gettext/autoconf-lib-link.
4543         * tests/havelib/rpathz/Makefile.am: New file, from
4544         gettext/autoconf-lib-link.
4545         * tests/havelib/rpathz/configure.ac: New file, from
4546         gettext/autoconf-lib-link with modifications.
4547         * tests/havelib/rpathlx/usex.c: New file, from
4548         gettext/autoconf-lib-link.
4549         * tests/havelib/rpathlx/Makefile.am: New file, from
4550         gettext/autoconf-lib-link.
4551         * tests/havelib/rpathlx/configure.ac: New file, from
4552         gettext/autoconf-lib-link with modifications.
4553         * tests/havelib/rpathly/usey.c: New file, from
4554         gettext/autoconf-lib-link.
4555         * tests/havelib/rpathly/Makefile.am: New file, from
4556         gettext/autoconf-lib-link.
4557         * tests/havelib/rpathly/configure.ac: New file, from
4558         gettext/autoconf-lib-link with modifications.
4559         * tests/havelib/rpathlz/usez.c: New file, from
4560         gettext/autoconf-lib-link.
4561         * tests/havelib/rpathlz/Makefile.am: New file, from
4562         gettext/autoconf-lib-link.
4563         * tests/havelib/rpathlz/configure.ac: New file, from
4564         gettext/autoconf-lib-link with modifications.
4565         * tests/havelib/rpathlyx/usey.c: New file, from
4566         gettext/autoconf-lib-link.
4567         * tests/havelib/rpathlyx/Makefile.am: New file, from
4568         gettext/autoconf-lib-link.
4569         * tests/havelib/rpathlyx/configure.ac: New file, from
4570         gettext/autoconf-lib-link with modifications.
4571         * tests/havelib/rpathlzyx/usez.c: New file, from
4572         gettext/autoconf-lib-link.
4573         * tests/havelib/rpathlzyx/Makefile.am: New file, from
4574         gettext/autoconf-lib-link.
4575         * tests/havelib/rpathlzyx/configure.ac: New file, from
4576         gettext/autoconf-lib-link with modifications.
4577         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
4578         with modifications.
4579
4580 2010-04-02  Bruno Haible  <bruno@clisp.org>
4581
4582         gnulib-tool: Create distributed built sources also for the tests.
4583         * gnulib-tool (func_create_testdir): Also generate distributed built
4584         sources in the tests directory.
4585
4586 2010-04-02  Bruno Haible  <bruno@clisp.org>
4587
4588         gnulib-tool: Obey user's environment variables.
4589         * gnulib-tool (func_create_testdir): When creating built sources,
4590         respect the environment variables for autoconf, automake, etc. given by
4591         the user.
4592
4593 2010-04-02  Bruno Haible  <bruno@clisp.org>
4594
4595         gnulib-tool: Provide the value of --m4-base to modules.
4596         * gnulib-tool (func_import, func_create_testdir): Emit a definition
4597         of gl_m4_base.
4598
4599 2010-04-02  Eric Blake  <eblake@redhat.com>
4600
4601         maint.mk: fix some fallout
4602         * NEWS: Document the incompatible change, and its effect on cfg.mk.
4603         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
4604
4605 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4606
4607         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
4608         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
4609         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
4610         (sc_cast_of_x_alloc_return_value): Likewise.
4611         (sc_cast_of_alloca_return_value): Likewise.
4612         (sc_space_tab): Likewise.
4613         (sc_prohibit_atoi_atof): Likewise.
4614         (sc_prohibit_magic_number_exit): Likewise.
4615         (sc_error_exit_success): Likewise.
4616         (sc_file_system): Likewise.
4617         (sc_prohibit_have_config_h): Likewise.
4618         (sc_require_config_h): Likewise.
4619         (sc_prohibit_HAVE_MBRTOWC): Likewise.
4620         (sc_obsolete_symbols): Likewise.
4621         (sc_changelog): Likewise.
4622         (sc_program_name): Likewise.
4623         (sc_the_the): Likewise.
4624         (sc_trailing_blank): Likewise.
4625         (sc_two_space_separator_in_usage): Likewise.
4626         (sc_useless_cpp_parens): Likewise.
4627         (sc_GPL_version): Likewise.
4628         (sc_GFDL_version): Likewise.
4629         (sc_texinfo_acronym): Likewise.
4630         (sc_prohibit_cvs_keyword): Likewise.
4631         (sc_prohibit_stat_st_blocks): Likewise.
4632         (sc_prohibit_S_IS_definition): Likewise.
4633         (sc_redundant_const): Likewise.
4634         (sc_makefile_TAB_only_indentation): Likewise.
4635         (sc_m4_quote_check): Likewise.
4636         (sc_makefile_path_separator_check): Likewise.
4637         (sc_copyright_check): Likewise.
4638         (sc_Wundef_boolean): Likewise.
4639         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4640
4641         maint.mk: match 0 or more whitespace-before-function-call '('
4642         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
4643         that have zero or two-and-more spaces between the function name
4644         and the open parenthesis.
4645         (sc_error_message_warn_fatal): Likewise.
4646         (sc_error_message_uppercase): Likewise.
4647         (sc_error_message_period): Likewise.
4648
4649 2010-03-31  Eric Blake  <eblake@redhat.com>
4650
4651         maint.mk: check for [ as well as test
4652         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
4653         Based on a libvirt report by Matthias Bolte.
4654
4655         gnumakefile: don't squelch _version output
4656         * top/GNUmakefile (_version): Create one-shot dependency rather
4657         than using $(shell) when version must be regenerated.
4658         (_autoreconf): Run verbosely, by default.
4659
4660         sys_time: avoid compiler warnings
4661         * lib/sys_time.in.h (includes): Ensure gcc pragma is
4662         unconditional, fixing regression from 2010-03-29.
4663         Reported by Simon Josefsson.
4664
4665 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4666
4667         maint.mk: s/_header_without_use/_sc_header_without_use/
4668         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
4669         (sc_prohibit_assert_without_use): Use the new name.
4670         (sc_prohibit_close_stream_without_use): Likewise.
4671         (sc_prohibit_getopt_without_use): Likewise.
4672         (sc_prohibit_quotearg_without_use): Likewise.
4673         (sc_prohibit_quote_without_use): Likewise.
4674         (sc_prohibit_long_options_without_use): Likewise.
4675         (sc_prohibit_inttostr_without_use): Likewise.
4676         (sc_prohibit_ignore_value_without_use): Likewise.
4677         (sc_prohibit_error_without_use): Likewise.
4678         (sc_prohibit_xalloc_without_use): Likewise.
4679         (sc_prohibit_hash_without_use): Likewise.
4680         (sc_prohibit_hash_pjw_without_use): Likewise.
4681         (sc_prohibit_safe_read_without_use): Likewise.
4682         (sc_prohibit_argmatch_without_use): Likewise.
4683         (sc_prohibit_canonicalize_without_use): Likewise.
4684         (sc_prohibit_root_dev_ino_without_use): Likewise.
4685         (sc_prohibit_openat_without_use): Likewise.
4686         (sc_prohibit_c_ctype_without_use): Likewise.
4687         (sc_prohibit_signal_without_use): Likewise.
4688         (sc_prohibit_intprops_without_use): Likewise.
4689
4690 2010-03-30  Eric Blake  <eblake@redhat.com>
4691
4692         maint: improve module indicators
4693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
4694         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
4695         columns, and avoid extra macro expansion.
4696
4697         fdopendir: work around FreeBSD bug
4698         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
4699         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
4700         * modules/dirent (Makefile.am): Substitute it.
4701         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
4702         declaration.
4703         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
4704         fix.
4705         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4706
4707 2010-03-29  Bruno Haible  <bruno@clisp.org>
4708
4709         Emit #pragma system_header after the inclusion guard, not before.
4710         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
4711         guard that spans the entire file, not before. This enables an
4712         optimization in GCC's preprocessor.
4713         * lib/ctype.in.h: Likewise.
4714         * lib/dirent.in.h: Likewise.
4715         * lib/errno.in.h: Likewise.
4716         * lib/float.in.h: Likewise.
4717         * lib/getopt.in.h: Likewise.
4718         * lib/iconv.in.h: Likewise.
4719         * lib/langinfo.in.h: Likewise.
4720         * lib/locale.in.h: Likewise.
4721         * lib/math.in.h: Likewise.
4722         * lib/netdb.in.h: Likewise.
4723         * lib/netinet_in.in.h: Likewise.
4724         * lib/pty.in.h: Likewise.
4725         * lib/sched.in.h: Likewise.
4726         * lib/se-selinux.in.h: Likewise.
4727         * lib/search.in.h: Likewise.
4728         * lib/spawn.in.h: Likewise.
4729         * lib/stdarg.in.h: Likewise.
4730         * lib/stdint.in.h: Likewise.
4731         * lib/string.in.h: Likewise.
4732         * lib/strings.in.h: Likewise.
4733         * lib/sys_file.in.h: Likewise.
4734         * lib/sys_ioctl.in.h: Likewise.
4735         * lib/sys_time.in.h: Likewise.
4736         * lib/sys_times.in.h: Likewise.
4737         * lib/sys_utsname.in.h: Likewise.
4738         * lib/sys_wait.in.h: Likewise.
4739         * lib/sysexits.in.h: Likewise.
4740         * lib/wctype.in.h: Likewise.
4741
4742 2010-03-28  James Youngman  <jay@gnu.org>
4743
4744         save-cwd: don't leak a file descriptor when the caller execs.
4745         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
4746         saved file descriptor.
4747         * modules/save-cwd (Depends-on): Depend on cloexec.
4748
4749 2010-03-29  Bruno Haible  <bruno@clisp.org>
4750
4751         Remove vestiges of fts-lgpl module.
4752         * lib/fts_.h: Assume GNULIB_FTS is 1.
4753         * lib/fts.c: Likewise.
4754         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4755
4756 2010-03-28  Bruno Haible  <bruno@clisp.org>
4757
4758         Fix definition of tests witness macro.
4759         * gnulib-tool (func_import): Fix definition of witness macro.
4760
4761 2010-03-28  Bruno Haible  <bruno@clisp.org>
4762
4763         Fix ioctl's protoype on glibc systems.
4764         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
4765         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
4766         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
4767         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
4768         signature. If not, arrange to replace the ioctl function.
4769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
4770         REPLACE_IOCTL.
4771         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
4772         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
4773         Reported by Ludovic Courtès <ludo@gnu.org>.
4774
4775 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
4776
4777         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
4778         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
4779         made it so grep -r --include=GLOB* ... did not work.
4780
4781 2010-03-26  Jim Meyering  <meyering@redhat.com>
4782             Eric Blake  <eblake@redhat.com>
4783
4784         maint.mk: prohibit use of test's -o and -a operators
4785         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
4786
4787 2010-03-28  Bruno Haible  <bruno@clisp.org>
4788
4789         Remove unused GNULIB_XYZ macro definitions.
4790         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
4791         invocation.
4792
4793 2010-03-28  Bruno Haible  <bruno@clisp.org>
4794
4795         Mark privileged tests modules.
4796         * modules/idpriv-drop-tests (Status): New section.
4797         * modules/idpriv-droptemp-tests (Status): New section.
4798
4799 2010-03-28  Bruno Haible  <bruno@clisp.org>
4800
4801         Split C++ tests into separate tests modules.
4802         * modules/dirent-c++-tests: New file, extracted from
4803         modules/dirent-tests.
4804         * modules/dirent-tests: Depend on it.
4805         * modules/fcntl-h-c++-tests: New file, extracted from
4806         modules/fcntl-h-tests.
4807         * modules/fcntl-h-tests: Depend on it.
4808         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
4809         * modules/glob-tests: Depend on it.
4810         * modules/iconv-h-c++-tests: New file, extracted from
4811         modules/iconv-h-tests.
4812         * modules/iconv-h-tests: Depend on it.
4813         * modules/langinfo-c++-tests: New file, extracted from
4814         modules/langinfo-tests.
4815         * modules/langinfo-tests: Depend on it.
4816         * modules/locale-c++-tests: New file, extracted from
4817         modules/locale-tests.
4818         * modules/locale-tests: Depend on it.
4819         * modules/math-c++-tests: New file, extracted from modules/math-tests.
4820         * modules/math-tests: Depend on it.
4821         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
4822         * modules/pty-tests: Depend on it.
4823         * modules/search-c++-tests: New file, extracted from
4824         modules/search-tests.
4825         * modules/search-tests: Depend on it.
4826         * modules/signal-c++-tests: New file, extracted from
4827         modules/signal-tests.
4828         * modules/signal-tests: Depend on it.
4829         * modules/spawn-c++-tests: New file, extracted from
4830         modules/spawn-tests.
4831         * modules/spawn-tests: Depend on it.
4832         * modules/stdio-c++-tests: New file, extracted from
4833         modules/stdio-tests.
4834         * modules/stdio-tests: Depend on it.
4835         * modules/stdlib-c++-tests: New file, extracted from
4836         modules/stdlib-tests.
4837         * modules/stdlib-tests: Depend on it.
4838         * modules/string-c++-tests: New file, extracted from
4839         modules/string-tests.
4840         * modules/string-tests: Depend on it.
4841         * modules/sys_ioctl-c++-tests: New file, extracted from
4842         modules/sys_ioctl-tests.
4843         * modules/sys_ioctl-tests: Depend on it.
4844         * modules/sys_select-c++-tests: New file, extracted from
4845         modules/sys_select-tests.
4846         * modules/sys_select-tests: Depend on it.
4847         * modules/sys_socket-c++-tests: New file, extracted from
4848         modules/sys_socket-tests.
4849         * modules/sys_socket-tests: Depend on it.
4850         * modules/sys_stat-c++-tests: New file, extracted from
4851         modules/sys_stat-tests.
4852         * modules/sys_stat-tests: Depend on it.
4853         * modules/sys_time-c++-tests: New file, extracted from
4854         modules/sys_time-tests.
4855         * modules/sys_time-tests: Depend on it.
4856         * modules/time-c++-tests: New file, extracted from modules/time-tests.
4857         * modules/time-tests: Depend on it.
4858         * modules/unistd-c++-tests: New file, extracted from
4859         modules/unistd-tests.
4860         * modules/unistd-tests: Depend on it.
4861         * modules/wchar-c++-tests: New file, extracted from
4862         modules/wchar-tests.
4863         * modules/wchar-tests: Depend on it.
4864         * modules/wctype-c++-tests: New file, extracted from
4865         modules/wctype-tests.
4866         * modules/wctype-tests: Depend on it.
4867         Reported by Simon Josefsson.
4868
4869 2010-03-28  Bruno Haible  <bruno@clisp.org>
4870
4871         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
4872         * gnulib-tool (func_exists_module): New function, extracted from
4873         func_verify_module.
4874         (func_verify_module): Use it.
4875         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
4876         'foo' only if 'foo' exists.
4877         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
4878         module.
4879
4880 2010-03-28  Bruno Haible  <bruno@clisp.org>
4881
4882         gnulib-tool: Add support for special categories of tests.
4883         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
4884         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
4885         (func_usage): Document them.
4886         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
4887         inc_unportable_tests, inc_all_tests): New variables.
4888         (func_acceptable): Consider these variables.
4889         (func_modules_transitive_closure): Make it work when the 'Status' field
4890         consists of multiple words.
4891         (func_import): Store and restore the values of inc_cxx_tests,
4892         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
4893         inc_all_tests in gnulib-comp.m4.
4894         (func_create_testdir): Set inc_all_tests to true.
4895         * doc/gnulib.texi (Extra tests modules): New section.
4896         Suggested by Jim Meyering.
4897
4898 2010-03-28  Bruno Haible  <bruno@clisp.org>
4899
4900         ansi-c++-opt: Allow turning off the C++ build by default.
4901         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
4902         gl_CXX_CHOICE_DEFAULT_NO is defined.
4903         Requested by Eric Blake.
4904
4905 2010-03-28  Bruno Haible  <bruno@clisp.org>
4906
4907         unistd: Avoid #define replacements in C++ mode.
4908         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4909         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4910         setsockopt, shutdown, select): In C++, attach a warning to the function
4911         if possible, rather than #defining the symbol to a dysfunctional alias.
4912         Reported by John W. Eaton <jwe@gnu.org>.
4913
4914 2010-03-28  Bruno Haible  <bruno@clisp.org>
4915
4916         Fix link errors on mingw.
4917         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
4918         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
4919         $(LIBSOCKET).
4920         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
4921         $(LIBSOCKET).
4922
4923 2010-03-28  Bruno Haible  <bruno@clisp.org>
4924             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4925
4926         lib-ignore: Determine different options for different compilers.
4927         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
4928         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
4929         Add comments.
4930         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
4931         * NEWS: Mention the change.
4932
4933 2010-03-27  Bruno Haible  <bruno@clisp.org>
4934
4935         Remove unused GNULIB_XYZ macro definitions.
4936         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4937         * modules/fseek (configure.ac): Likewise.
4938         * modules/ioctl (configure.ac): Likewise.
4939         * modules/open (configure.ac): Likewise.
4940         * modules/stdlib-safer (configure.ac): Likewise.
4941
4942 2010-03-27  Bruno Haible  <bruno@clisp.org>
4943
4944         Add a remark about certain modules.
4945         * modules/malloc (Comment): New section.
4946         * modules/realloc (Comment): Likewise.
4947         * modules/sigpipe (Comment): Likewise.
4948
4949 2010-03-27  Bruno Haible  <bruno@clisp.org>
4950
4951         Resolve conflict between the two kinds of module indicators.
4952         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
4953         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
4954         * modules/canonicalize (configure.ac): Invoke
4955         gl_MODULE_INDICATOR_FOR_TESTS.
4956         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
4957         GNULIB_XYZ.
4958         * tests/test-dirent-c++.cc: Likewise.
4959         * tests/test-dirent-safer.c: Likewise.
4960         * tests/test-dup2.c: Likewise.
4961         * tests/test-fchdir.c: Likewise.
4962         * tests/test-fcntl-h-c++.cc: Likewise.
4963         * tests/test-getopt.c: Likewise.
4964         * tests/test-getopt.h: Likewise.
4965         * tests/test-langinfo-c++.cc: Likewise.
4966         * tests/test-locale-c++.cc: Likewise.
4967         * tests/test-math-c++.cc: Likewise.
4968         * tests/test-pty-c++.cc: Likewise.
4969         * tests/test-search-c++.cc: Likewise.
4970         * tests/test-signal-c++.cc: Likewise.
4971         * tests/test-spawn-c++.cc: Likewise.
4972         * tests/test-stdio-c++.cc: Likewise.
4973         * tests/test-stdlib-c++.cc: Likewise.
4974         * tests/test-string-c++.cc: Likewise.
4975         * tests/test-sys_ioctl-c++.cc: Likewise.
4976         * tests/test-sys_select-c++.cc: Likewise.
4977         * tests/test-sys_socket-c++.cc: Likewise.
4978         * tests/test-sys_stat-c++.cc: Likewise.
4979         * tests/test-sys_time-c++.cc: Likewise.
4980         * tests/test-time-c++.cc: Likewise.
4981         * tests/test-unistd-c++.cc: Likewise.
4982         * tests/test-wchar-c++.cc: Likewise.
4983         * tests/uninorm/test-u8-nfc.c: Likewise.
4984         * tests/uninorm/test-u8-nfd.c: Likewise.
4985         * tests/uninorm/test-u8-nfkc.c: Likewise.
4986         * tests/uninorm/test-u8-nfkd.c: Likewise.
4987         * tests/uninorm/test-u16-nfc.c: Likewise.
4988         * tests/uninorm/test-u16-nfd.c: Likewise.
4989         * tests/uninorm/test-u16-nfkc.c: Likewise.
4990         * tests/uninorm/test-u16-nfkd.c: Likewise.
4991         * tests/uninorm/test-u32-nfc.c: Likewise.
4992         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4993         * tests/uninorm/test-u32-nfd.c: Likewise.
4994         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4995         * tests/uninorm/test-u32-nfkc.c: Likewise.
4996         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4997         * tests/uninorm/test-u32-nfkd.c: Likewise.
4998         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4999         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5000
5001 2010-03-27  Bruno Haible  <bruno@clisp.org>
5002
5003         Distinguish two kinds of module indicators.
5004         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5005         gl_MODULE_INDICATOR.
5006         (gl_MODULE_INDICATOR): New macro.
5007         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5008         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5009         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5010         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5011         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5012         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5013         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5014         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5015         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5016         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5017         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5018         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5020         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5021         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5022         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5023         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5024         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5025         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5026         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5027         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5028         * modules/cloexec (configure.ac): Likewise.
5029         * modules/getopt-gnu (configure.ac): Likewise.
5030         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5031         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5032         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5033         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5034
5035 2010-03-27  Bruno Haible  <bruno@clisp.org>
5036
5037         New module description field 'Comment'.
5038         * gnulib-tool: New option --extract-comment.
5039         (func_usage): Document it.
5040         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5041         (func_get_comment): New function.
5042         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5043
5044 2010-03-27  Bruno Haible  <bruno@clisp.org>
5045
5046         Addendum to 2010-02-07 commit.
5047         * gnulib-tool (func_usage): Document --extract-applicability option.
5048
5049 2010-03-27  Bruno Haible  <bruno@clisp.org>
5050
5051         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5052         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5053         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5054         rather than link errors.
5055
5056 2010-03-27  Bruno Haible  <bruno@clisp.org>
5057
5058         Avoid side effects from tests-related modules on the compilation of lib.
5059         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5060         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5061         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5062         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5063         macro.
5064         (func_import): Define a witness macro. Assign it a value that depends
5065         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5066         tests-related modules.
5067         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5068         Reported by Jim Meyering.
5069
5070 2010-03-27  Bruno Haible  <bruno@clisp.org>
5071
5072         Factorize common .m4 code.
5073         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5074         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5075         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5076         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5077         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5078         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5079         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5080         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5081         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5082         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5083         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5084         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5085         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5086         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5087         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5088         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5089         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5090         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5092         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5093         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5094         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5095         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5096         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5097         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5098         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5099         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5100         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5101         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5102         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5103         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5104         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5105
5106 2010-03-27  Bruno Haible  <bruno@clisp.org>
5107
5108         Fix a compilation error on Cygwin with g++ >= 4.3.
5109         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5110         if it is undefined or if we alias it to chmod.
5111         (lstat): Don't warn about the use of this function if it is undefined
5112         or if we alias it to stat.
5113         Reported by Simon Josefsson.
5114
5115 2010-03-27  Bruno Haible  <bruno@clisp.org>
5116
5117         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5118         * modules/getlogin (configure.ac): Update.
5119
5120         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5121         * modules/getlogin_r (configure.ac): Update.
5122
5123         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5124         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5125         * modules/inet_ntop (configure.ac): Update.
5126
5127         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5128         * modules/inet_pton (configure.ac): Update.
5129
5130         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5131         * modules/mbslen (configure.ac): Update.
5132
5133         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5134         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5135         * modules/forkpty (configure.ac): Update.
5136         * modules/openpty (configure.ac): Update.
5137
5138 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5139
5140         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5141         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5142
5143 2010-03-25  Eric Blake  <eblake@redhat.com>
5144
5145         maint: use pragma consistently across replacement headers
5146         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5147         * lib/dirent.in.h (system_header): Likewise.
5148         * lib/errno.in.h (system_header): Likewise.
5149         * lib/float.in.h (system_header): Likewise.
5150         * lib/getopt.in.h (system_header): Likewise.
5151         * lib/iconv.in.h (system_header): Likewise.
5152         * lib/inttypes.in.h (system_header): Likewise.
5153         * lib/langinfo.in.h (system_header): Likewise.
5154         * lib/locale.in.h (system_header): Likewise.
5155         * lib/math.in.h (system_header): Likewise.
5156         * lib/netdb.in.h (system_header): Likewise.
5157         * lib/netinet_in.in.h (system_header): Likewise.
5158         * lib/pty.in.h (system_header): Likewise.
5159         * lib/sched.in.h (system_header): Likewise.
5160         * lib/se-selinux.in.h (system_header): Likewise.
5161         * lib/search.in.h (system_header): Likewise.
5162         * lib/spawn.in.h (system_header): Likewise.
5163         * lib/stdarg.in.h (system_header): Likewise.
5164         * lib/stdint.in.h (system_header): Likewise.
5165         * lib/string.in.h (system_header): Likewise.
5166         * lib/strings.in.h (system_header): Likewise.
5167         * lib/sys_file.in.h (system_header): Likewise.
5168         * lib/sys_ioctl.in.h (system_header): Likewise.
5169         * lib/sys_socket.in.h (system_header): Likewise.
5170         * lib/sys_times.in.h (system_header): Likewise.
5171         * lib/sys_utsname.in.h (system_header): Likewise.
5172         * lib/sys_wait.in.h (system_header): Likewise.
5173         * lib/sysexits.in.h (system_header): Likewise.
5174         * lib/unistd.in.h (system_header): Likewise.
5175         * lib/wctype.in.h (system_header): Likewise.
5176
5177         arpa/inet: fix mingw compilation warning
5178         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5179         Reported by Matthew Bolte.
5180
5181 2010-03-25  Bruno Haible  <bruno@clisp.org>
5182
5183         Avoid collision between gnulib wrapper and libintl wrapper.
5184         * lib/printf.c (printf): Don't define if a printf wrapper is already
5185         defined in intl/printf.c.
5186         Reported by Michel Boaventura <michel@michelboaventura.com>.
5187
5188 2010-03-25  Bruno Haible  <bruno@clisp.org>
5189
5190         Use ANSI C.
5191         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5192
5193 2010-03-25  Bruno Haible  <bruno@clisp.org>
5194
5195         Minor formatting changes.
5196         * lib/acosl.c: Insert space before function argument list.
5197         * lib/argz.c: Likewise.
5198         * lib/asinl.c: Likewise.
5199         * lib/expl.c: Likewise.
5200         * lib/gen-uni-tables.c: Likewise.
5201         * lib/gettext.h: Likewise.
5202         * lib/glthread/lock.h: Likewise.
5203         * lib/tanl.c: Likewise.
5204         * lib/uniname/uniname.c: Likewise.
5205         * tests/test-idpriv-drop.c: Likewise.
5206         * tests/test-idpriv-droptemp.c: Likewise.
5207         * tests/test-lock.c: Likewise.
5208         * tests/test-tls.c: Likewise.
5209         * lib/argp-help.c: Insert space before function-like macro argument
5210         list.
5211         * lib/memcmp.c: Likewise.
5212         * tests/test-base64.c: Likewise.
5213         * lib/localename.c: Insert space before sizeof's argument list.
5214         * lib/safe-alloc.h: Likewise.
5215         * lib/file-set.h: Insert space before macro argument list.
5216         * tests/test-argp.c: Likewise.
5217         * lib/argp-namefrob.h: Insert space before function parameter list.
5218         * lib/getaddrinfo.c: Likewise.
5219         * lib/netdb.in.h: Likewise.
5220         * lib/parse-duration.h: Likewise.
5221         * lib/parse-duration.c: Likewise.
5222         * lib/poll.c: Likewise.
5223         * lib/select.c: Likewise.
5224         * lib/trim.h: Likewise.
5225         * tests/test-usleep.c: Likewise.
5226         * lib/ldexpl.c: Insert space before function parameter list and before
5227         function argument list.
5228         * lib/logl.c: Likewise.
5229         * lib/sqrtl.c: Likewise.
5230         * lib/trim.c: Likewise.
5231         * lib/cosl.c: Use GNU style indentation. Insert space before function
5232         argument list.
5233         * lib/sinl.c: Likewise.
5234         * lib/tsearch.c: Insert space after 'for'.
5235         Reported by Jim Meyering.
5236
5237 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5238
5239         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5240         config header before grepping, as it's not present before
5241         autoreconf/configure are run.  Reported by Simon Josefsson.
5242
5243 2010-03-23  Bruno Haible  <bruno@clisp.org>
5244
5245         pt_chown: Make it work with automake < 1.11.
5246         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5247         Reported by Simon Josefsson.
5248
5249 2010-03-23  Bruno Haible  <bruno@clisp.org>
5250
5251         pt_chown: Don't depend on GPLed modules.
5252         * lib/pt_chown.c: Don't include idpriv.h.
5253         (main): Don't drop privileges.
5254         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5255         Reported by Simon Josefsson.
5256
5257 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5258
5259         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5260         suggestions from karl@freefriends.org (Karl Berry).
5261
5262 2010-03-22  Eric Blake  <eblake@redhat.com>
5263
5264         gethostname: further tweaks
5265         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5266         are overriding gethostname.
5267         Suggested by Bruno Haible.
5268
5269 2010-03-21  Bruno Haible  <bruno@clisp.org>
5270
5271         Fix comments.
5272         * lib/forkpty.c (rpl_forkpty): Fix comment.
5273         * lib/openpty.c (rpl_openpty): Likewise.
5274         Reported by Eric Blake.
5275
5276 2010-03-22  Eric Blake  <eblake@redhat.com>
5277
5278         gethostname: fix build on mingw
5279         * lib/unistd.in.h (includes): Work around fact that mingw
5280         <winsock2.h> re-includes <unistd.h>, by avoiding any
5281         redeclarations if we are being included by <winsock2.h>.
5282         Reported by Matthias Bolte.
5283
5284 2010-03-21  Bruno Haible  <bruno@clisp.org>
5285
5286         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5287         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5288         modifications.
5289         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5290         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5291         provide the replacement.
5292         * modules/forkpty (Depends-on): Add openpty, login_tty.
5293         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5294         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5295         * doc/glibc-functions/forkpty.texi: More supported platforms.
5296         * config/srclist.txt: Add forkpty.c (commented).
5297
5298 2010-03-21  Bruno Haible  <bruno@clisp.org>
5299
5300         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5301         (Makefile.am): Verify that PTY_LIB is defined.
5302
5303         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5304
5305 2010-03-21  Bruno Haible  <bruno@clisp.org>
5306
5307         Tests for module 'login_tty'.
5308         * modules/login_tty-tests: New file.
5309         * tests/test-login_tty.c: New file.
5310
5311         New module 'login_tty'.
5312         * lib/login_tty.c: New file.
5313         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5314         * modules/login_tty: New file.
5315         * doc/glibc-functions/login_tty.texi: Mention the new module.
5316
5317 2010-03-21  Bruno Haible  <bruno@clisp.org>
5318
5319         login_tty: Documentation.
5320         * doc/glibc-functions/login_tty.texi: New file.
5321         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5322
5323 2010-03-21  Bruno Haible  <bruno@clisp.org>
5324
5325         pty: Consistent macro naming.
5326         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5327         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5328         * modules/pty (configure.ac): Update.
5329
5330 2010-03-21  Bruno Haible  <bruno@clisp.org>
5331
5332         Tests for openpty: Make stricter.
5333         * tests/test-openpty.c (main): Add test of canonical processing and
5334         erase.
5335         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5336
5337         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5338         * lib/openpty.c (openpty): New replacement function.
5339         * lib/pty.in.h: Include <termios.h>.
5340         (openpty): Update declaration. Add comments.
5341         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5342         is not declared, arrange to provide the replacement. Check for _getpty
5343         and posix_openpt.
5344         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5345         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5346         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5347         * modules/pty-tests (test_pty_c___LDADD): New variable.
5348         * doc/glibc-functions/openpty.texi: More supported platforms.
5349
5350 2010-03-21  Bruno Haible  <bruno@clisp.org>
5351
5352         setenv: Tweaks.
5353         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5354         the test program.
5355         * doc/posix-functions/setenv.texi: Update platforms list.
5356
5357 2010-03-21  Bruno Haible  <bruno@clisp.org>
5358
5359         New module 'unlockpt'.
5360         * lib/unlockpt.c: New file, from glibc with modifications.
5361         * m4/unlockpt.m4: New file.
5362         * modules/unlockpt: New file.
5363         * lib/stdlib.in.h (unlockpt): New declaration.
5364         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5365         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5366         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5367         HAVE_UNLOCKPT.
5368         * doc/posix-functions/unlockpt.texi: Mention the new module.
5369         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5370         * config/srclist.txt: Add unlockpt.c (commented).
5371
5372 2010-03-21  Jim Meyering  <meyering@redhat.com>
5373
5374         maint.mk: prohibit inclusion of "intprops.h" without use
5375         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5376
5377 2010-03-21  Bruno Haible  <bruno@clisp.org>
5378
5379         New module 'grantpt'.
5380         * lib/grantpt.c: New file, from glibc with modifications.
5381         * m4/grantpt.m4: New file.
5382         * modules/grantpt: New file.
5383         * lib/stdlib.in.h (grantpt): New declaration.
5384         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5385         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5386         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5387         HAVE_GRANTPT.
5388         * doc/posix-functions/grantpt.texi: Mention the new module.
5389         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5390         * config/srclist.txt: Add grantpt.c (commented).
5391
5392 2010-03-21  Bruno Haible  <bruno@clisp.org>
5393
5394         New module 'pt_chown'.
5395         * lib/pt_chown.c: New file, from glibc with modifications.
5396         * lib/pty-private.h: New file, from glibc with modifications.
5397         * modules/pt_chown: New file.
5398         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5399
5400 2010-03-21  Bruno Haible  <bruno@clisp.org>
5401
5402         Tests for module 'ptsname'.
5403         * modules/ptsname-tests: New file.
5404         * tests/test-ptsname.c: New file.
5405
5406         New module 'ptsname'.
5407         * lib/ptsname.c: New file, from glibc with modifications.
5408         * m4/ptsname.m4: New file.
5409         * modules/ptsname: New file.
5410         * lib/stdlib.in.h (ptsname): New declaration.
5411         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
5412         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
5413         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
5414         HAVE_PTSNAME.
5415         * doc/posix-functions/ptsname.texi: Mention the new module.
5416         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
5417         * config/srclist.txt: Add ptsname.c (commented).
5418
5419 2010-03-21  Bruno Haible  <bruno@clisp.org>
5420
5421         Tests for module 'ttyname_r'.
5422         * modules/ttyname_r-tests: New file.
5423         * tests/test-ttyname_r.c: New file.
5424
5425         New module 'ttyname_r'.
5426         * lib/ttyname_r.c: New file.
5427         * m4/ttyname_r.m4: New file.
5428         * modules/ttyname_r: New file.
5429         * lib/unistd.in.h (ttyname_r): New declaration.
5430         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
5431         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
5432         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
5433         HAVE_TTYNAME_R.
5434         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
5435         * doc/posix-functions/ttyname_r.texi: Mention the new module.
5436
5437 2010-03-20  Bruno Haible  <bruno@clisp.org>
5438
5439         signal: Undefine macro definitions in C++ mode.
5440         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
5441         sigfillset): Undefine macro definitions from the system header in C++
5442         mode.
5443         Reported by John W. Eaton <jwe@gnu.org>.
5444
5445 2010-03-20  Bruno Haible  <bruno@clisp.org>
5446
5447         Ensure no #include statements inside extern "C" { ... }.
5448         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
5449         contain #include statements.
5450         * lib/time.in.h: Likewise.
5451
5452 2010-03-20  Bruno Haible  <bruno@clisp.org>
5453
5454         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
5455         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
5456         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
5457         Reported by John W. Eaton <jwe@gnu.org>.
5458
5459 2010-03-20  Bruno Haible  <bruno@clisp.org>
5460
5461         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
5462         Reported by Jim Meyering.
5463
5464 2010-03-20  Bruno Haible  <bruno@clisp.org>
5465
5466         pipe: Set errno upon failure.
5467         * lib/pipe.h: Specify that when -1 is returned, errno is set.
5468         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
5469         errno value in error message.
5470
5471 2010-03-20  Bruno Haible  <bruno@clisp.org>
5472             Jim Meyering  <meyering@redhat.com>
5473
5474         lchown: Avoid "unused variable" warning.
5475         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
5476
5477 2010-03-20  Bruno Haible  <bruno@clisp.org>
5478
5479         Work around unlink() bug on MacOS X 10.5.6.
5480         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
5481         attempting to unlink a parent directory.
5482         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
5483         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
5484         activate for the replacement function.
5485         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
5486
5487 2010-03-20  Bruno Haible  <bruno@clisp.org>
5488
5489         Fix link errors on Solaris 8.
5490         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
5491         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
5492
5493 2010-03-19  Jim Meyering  <meyering@redhat.com>
5494
5495         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
5496         The _LIBC implementation of build_range_exp correctly honors the
5497         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
5498         However, the non-_LIBC implementation would ignore that syntax-bit
5499         flag and return REG_ERANGE unconditionally.
5500         This change makes it honor that flag.
5501         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
5502         Make two pointer parameters "const".
5503         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
5504         (parse_bracket_exp): Update caller.
5505
5506         regex.m4: correct the reversed range endpoint ([b-a]) test
5507         * m4/regex.m4: When requiring that [b-a] evoke failure,
5508         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
5509         test pass once again for x86-based systems.
5510
5511 2010-03-19  Bruno Haible  <bruno@clisp.org>
5512
5513         scandir: Fix link error on Solaris 8.
5514         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
5515         macros.
5516
5517 2010-03-19  Bruno Haible  <bruno@clisp.org>
5518
5519         getusershell: Fix documentation.
5520         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
5521         module.
5522         * doc/glibc-functions/setusershell.texi: Likewise.
5523
5524         getusershell: Provide declaration, missing on Solaris 9.
5525         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
5526         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
5527         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
5528         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
5529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5530         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
5531         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
5532         HAVE_GETUSERSHELL.
5533         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
5534
5535 2010-03-19  Bruno Haible  <bruno@clisp.org>
5536
5537         wctype: Provide iswblank function.
5538         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
5539         exists and is fine.
5540         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
5541         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
5542         * tests/test-wctype.c (main): Re-enable the iswblank tests.
5543         * doc/posix-functions/iswblank.texi: Update.
5544
5545 2010-03-19  Bruno Haible  <bruno@clisp.org>
5546
5547         Tests of module 'pty' in C++ mode.
5548         * modules/pty-tests: New file.
5549         * tests/test-pty-c++.cc: New file.
5550         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5551
5552 2010-03-19  Eric Blake  <eblake@redhat.com>
5553
5554         logb: fix documentation
5555         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
5556         1.5 declaration bug.
5557
5558         forkpty, openpty: prefer glibc's const-safe prototype
5559         * lib/forkpty.c (rpl_forkpty): New file.
5560         * lib/openpty.c (rpl_openpty): Likewise.
5561         * modules/forkpty (Files): Distribute it.
5562         * modules/openpty (Files): Likewise.
5563         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
5564         check...
5565         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
5566         replacement for for non-const BSD signature.
5567         * modules/pty (Makefile.am): Substitute witnesses.
5568         * lib/pty.in.h (forkpty, openpty): Declare replacements.
5569         * tests/test-forkpty.c: Update signature check.
5570         * tests/test-openpty.c: Likewise.
5571         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
5572         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5573
5574         forkpty, openpty: split functions into new modules
5575         * modules/pty (Makefile.am): Substitute new witnesses.
5576         (Libraries): Move library detection...
5577         * modules/forkpty: ...into new module.
5578         * modules/openpty: Another new module.
5579         * modules/pty-tests: Rename and split...
5580         * modules/forkpty-tests: ...to this...
5581         * modules/openpty-tests: ...and this.
5582         * tests/test-pty.c: Rename and split...
5583         * tests/test-forkpty.c: ...to this...
5584         * tests/test-openpty.c: ...and this.
5585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
5586         (gl_PTY): Split library searching...
5587         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
5588         (gl_FORKPTY, gl_OPENPTY): New macros.
5589         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
5590         * NEWS: Mention the split.
5591         * MODULES.html.sh (Misc): Document the modules.
5592         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
5593         * doc/glibc-functions/openpty.texi (openpty): Likewise.
5594
5595         pty: improve replacement header
5596         * lib/pty.in.h: New file.
5597         * modules/pty (Files): Ship it.
5598         (Makefile.am): Always build replacement.
5599         * m4/pty.m4: Rename...
5600         * m4/pty_h.m4: ...to this.
5601         (gl_PTY): Modernize setting of witness macros; update check of
5602         forkpty to take proper advantage of cache.
5603         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
5604
5605         getopt: avoid compiler warning
5606         * lib/getopt.c (attribute_hidden): Remove unused macro.
5607
5608 2010-03-18  Bruno Haible  <bruno@clisp.org>
5609
5610         Fix link errors on Solaris 8.
5611         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
5612         * modules/search-tests (test_search_c___LDADD): Likewise.
5613         * modules/signal-tests (test_signal_c___LDADD): Likewise.
5614         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
5615         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
5616         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
5617         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
5618         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
5619         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
5620
5621 2010-03-18  Bruno Haible  <bruno@clisp.org>
5622
5623         Fix bug introduced on 2010-03-14.
5624         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
5625         (gl_SPAWN_H): Require it.
5626         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
5627         Reported by Simon Josefsson.
5628
5629 2010-03-18  Bruno Haible  <bruno@clisp.org>
5630
5631         Fix typo introduced on 2009-12-31.
5632         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
5633         posix_spawn_file_actions_adddup2.
5634
5635 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
5636         and Eric Blake  <eblake@redhat.com>
5637
5638         test-vc-list-files-git: make more robust
5639         * tests/test-vc-list-files-git.sh: Unset problematic environment
5640         variables.  Chain commands together.
5641
5642 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
5643
5644         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
5645         `AC_CHECK_DECL' invocation.
5646
5647 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
5648
5649         * lib/inttostr.c (inttostr): Make sure the invocation of verify
5650         appears before executable statements. Suggested by Petr Sumbera
5651         <Petr.Sumbera@Sun.COM>.
5652
5653 2010-03-14  Bruno Haible  <bruno@clisp.org>
5654
5655         * tests/test-flock.c (test_exclusive): Comment out a test that causes
5656         portability problems. Instead use a simpler test.
5657         (main): Check that invalid arguments are rejected only on Linux.
5658
5659 2010-03-14  Bruno Haible  <bruno@clisp.org>
5660
5661         Fix bug introduced on 2009-12-31.
5662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5663         gl_PREREQ_SYS_H_WINSOCK2 always.
5664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
5665         SYS_SOCKET_H variable.
5666         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
5667         Update comments.
5668         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
5669         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5670         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5673
5674 2010-03-14  Bruno Haible  <bruno@clisp.org>
5675
5676         Fix values returned by sinl, cosl.
5677         * lib/trigl.h: Add specification comments.
5678         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
5679         that combines the values from the precomputed table with the values of
5680         the Chebyshev polynomials.
5681
5682 2010-03-14  Bruno Haible  <bruno@clisp.org>
5683
5684         Fix compilation error when modules 'posix_spawn[p]' are not used.
5685         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
5686         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
5687
5688 2010-03-14  Bruno Haible  <bruno@clisp.org>
5689
5690         Fix compilation error on mingw when module 'time_r' is not used.
5691         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
5692         is 1.
5693         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
5694         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5695         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
5696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
5697
5698 2010-03-14  Bruno Haible  <bruno@clisp.org>
5699
5700         Fix compilation error with Sun C.
5701         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
5702         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
5703         instead of GCC specific ULONG_LONG_MAX.
5704         * lib/xstrtoll.c: Likewise.
5705         * lib/xstrtoull.c: Likewise.
5706
5707 2010-03-13  Bruno Haible  <bruno@clisp.org>
5708
5709         Allow the user to disable C++ code and tests.
5710         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
5711         (gl_PROG_ANSI_CXX): Require it.
5712
5713 2010-03-13  Bruno Haible  <bruno@clisp.org>
5714
5715         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
5716         cases.
5717
5718 2010-03-13  Bruno Haible  <bruno@clisp.org>
5719
5720         Test that gnulib does not break the standard C++ headers.
5721         * tests/test-locale-c++2.cc: New file.
5722         * modules/locale-tests (Files): Add it.
5723         (Makefile.am): Compile it for test-locale-c++.
5724         * tests/test-math-c++2.cc: New file.
5725         * modules/math-tests (Files): Add it.
5726         (Makefile.am): Compile it for test-math-c++.
5727         * tests/test-signal-c++2.cc: New file.
5728         * modules/signal-tests (Files): Add it.
5729         (Makefile.am): Compile it for test-signal-c++.
5730         * tests/test-stdio-c++2.cc: New file.
5731         * modules/stdio-tests (Files): Add it.
5732         (Makefile.am): Compile it for test-stdio-c++.
5733         * tests/test-stdlib-c++2.cc: New file.
5734         * modules/stdlib-tests (Files): Add it.
5735         (Makefile.am): Compile it for test-stdlib-c++.
5736         * tests/test-string-c++2.cc: New file.
5737         * modules/string-tests (Files): Add it.
5738         (Makefile.am): Compile it for test-string-c++.
5739         * tests/test-time-c++2.cc: New file.
5740         * modules/time-tests (Files): Add it.
5741         (Makefile.am): Compile it for test-time-c++.
5742         Reported by John W. Eaton <jwe@gnu.org>.
5743
5744 2010-03-13  Bruno Haible  <bruno@clisp.org>
5745
5746         * gnulib-tool (func_usage): Clarify which options are available for
5747         --create-testdir and --create-megatestdir.
5748
5749 2010-03-13  Bruno Haible  <bruno@clisp.org>
5750
5751         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
5752         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
5753         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
5754         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5755         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
5756         when appropriate.
5757         Reported by Jim Meyering.
5758
5759 2010-03-12  Simon Josefsson  <simon@josefsson.org>
5760
5761         * gnulib-tool (func_import): Explain origin of code.
5762
5763 2010-03-12  Bruno Haible  <bruno@clisp.org>
5764
5765         Fix problem with automake's definition of CXXLINK.
5766         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
5767         Reported by Simon Josefsson and Ludovic Courtès.
5768
5769 2010-03-12  Bruno Haible  <bruno@clisp.org>
5770
5771         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
5772         stable releases.
5773
5774 2010-03-11  Bruno Haible  <bruno@clisp.org>
5775
5776         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
5777         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
5778         whether the system provides one variant or multiple variants of the
5779         function.
5780         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
5781         C++ compilers.
5782         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
5783         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
5784         Reported by Jim Meyering.
5785
5786 2010-03-09  Simon Josefsson  <simon@josefsson.org>
5787
5788         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
5789
5790 2010-03-08  Bruno Haible  <bruno@clisp.org>
5791
5792         gnulib-tool: Add support for --libtool in --create-testdir.
5793         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
5794         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
5795
5796 2010-03-08  Eric Blake  <eblake@redhat.com>
5797
5798         gnulib-tool.texi: mention possibility of git submodule
5799         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
5800         submodules.
5801         * doc/.gitignore: Ignore another generated file.
5802
5803 2010-03-08  Karl Berry  <karl@gnu.org>
5804
5805         * doc/gnulib-tool.texi (VCS Issues): Mention third option
5806         of committing gnulib files while skipping others.
5807
5808 2010-03-07  Bruno Haible  <bruno@clisp.org>
5809
5810         Tests of module 'wctype' in C++ mode.
5811         * tests/test-wctype-c++.cc: New file.
5812         * modules/wctype-tests (Files): Add it and tests/signature.h.
5813         (Depends-on): Add ansi-c++-opt.
5814         (Makefile.am): Arrange to compile and run test-wctype-c++.
5815
5816         Tests of module 'wchar' in C++ mode.
5817         * tests/test-wchar-c++.cc: New file.
5818         * modules/wchar-tests (Files): Add it and tests/signature.h.
5819         (Depends-on): Add ansi-c++-opt.
5820         (Makefile.am): Arrange to compile and run test-wchar-c++.
5821         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
5822         gl_MODULE_INDICATOR.
5823
5824         Tests of module 'unistd' in C++ mode.
5825         * tests/test-unistd-c++.cc: New file.
5826         * modules/unistd-tests (Files): Add it and tests/signature.h.
5827         (Depends-on): Add ansi-c++-opt.
5828         (Makefile.am): Arrange to compile and run test-unistd-c++.
5829         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
5830         gl_MODULE_INDICATOR.
5831
5832         Tests of module 'time' in C++ mode.
5833         * tests/test-time-c++.cc: New file.
5834         * modules/time-tests (Files): Add it and tests/signature.h.
5835         (Depends-on): Add ansi-c++-opt.
5836         (Makefile.am): Arrange to compile and run test-time-c++.
5837         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5838
5839         Tests of module 'sys_time' in C++ mode.
5840         * tests/test-sys_time-c++.cc: New file.
5841         * modules/sys_time-tests (Files): Add it and tests/signature.h.
5842         (Depends-on): Add ansi-c++-opt.
5843         (Makefile.am): Arrange to compile and run test-sys_time-c++.
5844         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
5845         gl_MODULE_INDICATOR.
5846
5847         Tests of module 'sys_stat' in C++ mode.
5848         * tests/test-sys_stat-c++.cc: New file.
5849         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
5850         (Depends-on): Add ansi-c++-opt.
5851         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
5852         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
5853         gl_MODULE_INDICATOR.
5854
5855         Tests of module 'sys_socket' in C++ mode.
5856         * tests/test-sys_socket-c++.cc: New file.
5857         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
5858         (Depends-on): Add ansi-c++-opt.
5859         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
5860         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
5861         gl_MODULE_INDICATOR.
5862
5863         Tests of module 'sys_select' in C++ mode.
5864         * tests/test-sys_select-c++.cc: New file.
5865         * modules/sys_select-tests (Files): Add it and tests/signature.h.
5866         (Depends-on): Add ansi-c++-opt.
5867         (Makefile.am): Arrange to compile and run test-sys_select-c++.
5868         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
5869         gl_MODULE_INDICATOR.
5870
5871         Tests of module 'sys_ioctl' in C++ mode.
5872         * tests/test-sys_ioctl-c++.cc: New file.
5873         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
5874         (Depends-on): Add ansi-c++-opt.
5875         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
5876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
5877         gl_MODULE_INDICATOR.
5878
5879         Tests of module 'string' in C++ mode.
5880         * tests/test-string-c++.cc: New file.
5881         * modules/string-tests (Files): Add it and tests/signature.h.
5882         (Depends-on): Add ansi-c++-opt.
5883         (Makefile.am): Arrange to compile and run test-string-c++.
5884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
5885         gl_MODULE_INDICATOR.
5886
5887         Tests of module 'stdlib' in C++ mode.
5888         * tests/test-stdlib-c++.cc: New file.
5889         * modules/stdlib-tests (Files): Add it and tests/signature.h.
5890         (Depends-on): Add ansi-c++-opt.
5891         (Makefile.am): Arrange to compile and run test-stdlib-c++.
5892         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
5893         gl_MODULE_INDICATOR.
5894
5895         Tests of module 'stdio' in C++ mode.
5896         * tests/test-stdio-c++.cc: New file.
5897         * modules/stdio-tests (Files): Add it and tests/signature.h.
5898         (Depends-on): Add ansi-c++-opt.
5899         (Makefile.am): Arrange to compile and run test-stdio-c++.
5900         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
5901         gl_MODULE_INDICATOR.
5902
5903         Tests of module 'spawn' in C++ mode.
5904         * tests/test-spawn-c++.cc: New file.
5905         * modules/spawn-tests (Files): Add it and tests/signature.h.
5906         (Depends-on): Add ansi-c++-opt.
5907         (Makefile.am): Arrange to compile and run test-spawn-c++.
5908         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
5909         gl_MODULE_INDICATOR.
5910
5911         Tests of module 'signal' in C++ mode.
5912         * tests/test-signal-c++.cc: New file.
5913         * modules/signal-tests (Files): Add it and tests/signature.h.
5914         (Depends-on): Add ansi-c++-opt.
5915         (Makefile.am): Arrange to compile and run test-signal-c++.
5916         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
5917         gl_MODULE_INDICATOR.
5918
5919         Tests of module 'search' in C++ mode.
5920         * tests/test-search-c++.cc: New file.
5921         * modules/search-tests (Files): Add it and tests/signature.h.
5922         (Depends-on): Add ansi-c++-opt.
5923         (Makefile.am): Arrange to compile and run test-search-c++.
5924         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
5925         gl_MODULE_INDICATOR.
5926
5927         Tests of module 'math' in C++ mode.
5928         * tests/test-math-c++.cc: New file.
5929         * modules/math-tests (Files): Add it and tests/signature.h.
5930         (Depends-on): Add ansi-c++-opt.
5931         (Makefile.am): Arrange to compile and run test-math-c++.
5932         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5933
5934         Tests of module 'locale' in C++ mode.
5935         * tests/test-locale-c++.cc: New file.
5936         * modules/locale-tests (Files): Add it and tests/signature.h.
5937         (Depends-on): Add ansi-c++-opt.
5938         (Makefile.am): Arrange to compile and run test-locale-c++.
5939         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
5940         gl_MODULE_INDICATOR.
5941
5942         Tests of module 'langinfo' in C++ mode.
5943         * tests/test-langinfo-c++.cc: New file.
5944         * modules/langinfo-tests (Files): Add it and tests/signature.h.
5945         (Depends-on): Add ansi-c++-opt.
5946         (Makefile.am): Arrange to compile and run test-langinfo-c++.
5947         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
5948         gl_MODULE_INDICATOR.
5949
5950         Tests of module 'iconv-h' in C++ mode.
5951         * tests/test-iconv-h-c++.cc: New file.
5952         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
5953         (Depends-on): Add ansi-c++-opt.
5954         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
5955
5956         Tests of module 'glob' in C++ mode.
5957         * tests/test-glob-c++.cc: New file.
5958         * modules/glob-tests (Files): Add it.
5959         (Depends-on): Add ansi-c++-opt.
5960         (Makefile.am): Arrange to compile and run test-glob-c++.
5961
5962         Tests of module 'fcntl-h' in C++ mode.
5963         * tests/test-fcntl-h-c++.cc: New file.
5964         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5965         (Depends-on): Add ansi-c++-opt.
5966         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5967         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5968         gl_MODULE_INDICATOR.
5969
5970         Tests of module 'dirent' in C++ mode.
5971         * tests/test-dirent-c++.cc: New file.
5972         * modules/dirent-tests (Files): Add it and tests/signature.h.
5973         (Depends-on): Add ansi-c++-opt.
5974         (Makefile.am): Arrange to compile and run test-dirent-c++.
5975         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5976         gl_MODULE_INDICATOR.
5977
5978         New module 'ansi-c++-opt'.
5979         * modules/ansi-c++-opt: New file.
5980         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5981
5982         Document C++ namespace mode.
5983         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5984
5985         wctype: Avoid #define replacements in C++ mode.
5986         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5987         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5988         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5989         In C++, define a namespaced alias symbol.
5990         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5991         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5992         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5993         rule.
5994
5995         wchar: Avoid #define replacements in C++ mode.
5996         * lib/wchar.in.h: Include c++defs.h.
5997         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5998         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5999         symbol.
6000         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6001         * modules/wchar (Depends-on): Add c++defs.
6002         (Makefile.am): Update wchar.h rule.
6003
6004         unistd: Avoid #define replacements in C++ mode.
6005         * lib/unistd.in.h: Include c++defs.h.
6006         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6007         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6008         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6009         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6010         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6011         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6012         symbol.
6013         (environ): Update.
6014         * modules/unistd (Depends-on): Add c++defs.
6015         (Makefile.am): Update unistd.h rule.
6016
6017         time: Avoid #define replacements in C++ mode.
6018         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6019         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6020         define a namespaced alias symbol.
6021         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6022         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6023         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6024         * modules/time (Depends-on): Add c++defs, warn-on-use.
6025         (Makefile.am): Update time.h rule.
6026         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6027         * modules/nanosleep (configure.ac): Likewise.
6028         * modules/strptime (configure.ac): Likewise.
6029         * modules/timegm (configure.ac): Likewise.
6030
6031         sys_time: Avoid #define replacements in C++ mode.
6032         * lib/sys_time.in.h: Include c++defs.h.
6033         (gettimeofday): In C++, define a namespaced alias symbol.
6034         * modules/sys_time (Depends-on): Add c++defs.
6035         (Makefile.am): Update sys/time.h rule.
6036
6037         sys_stat: Avoid #define replacements in C++ mode.
6038         * lib/sys_stat.in.h: Include c++defs.h.
6039         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6040         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6041         namespaced alias symbol.
6042         In C++, define a namespaced alias symbol.
6043         * modules/sys_stat (Depends-on): Add c++defs.
6044         (Makefile.am): Update sys/stat.h rule.
6045
6046         sys_socket: Avoid #define replacements in C++ mode.
6047         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6048         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6049         definitions also when the system has a <sys/socket.h>.
6050         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6051         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6052         In C++, define a namespaced alias symbol.
6053         * modules/sys_socket (Depends-on): Add c++defs.
6054         (Makefile.am): Update sys/socket.h rule.
6055
6056         sys_select: Avoid #define replacements in C++ mode.
6057         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6058         definitions also when the system has a <sys/select.h>.
6059         (select): In C++, define a namespaced alias symbol.
6060         * modules/sys_select (Depends-on): Add c++defs.
6061         (Makefile.am): Update sys/select.h rule.
6062
6063         sys_ioctl: Avoid #define replacements in C++ mode.
6064         * lib/sys_ioctl.in.h: Include c++defs.h.
6065         (ioctl): In C++, define a namespaced alias symbol.
6066         * modules/sys_ioctl (Depends-on): Add c++defs.
6067         (Makefile.am): Update sys/ioctl.h rule.
6068
6069         string: Avoid #define replacements in C++ mode.
6070         * lib/string.in.h: Include c++defs.h.
6071         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6072         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6073         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6074         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6075         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6076         * modules/string (Depends-on): Add c++defs.
6077         (Makefile.am): Update string.h rule.
6078
6079         stdlib: Avoid #define replacements in C++ mode.
6080         * lib/stdlib.in.h: Include c++defs.h.
6081         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6082         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6083         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6084         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6085         symbol.
6086         * modules/stdlib (Depends-on): Add c++defs.
6087         (Makefile.am): Update stdlib.h rule.
6088
6089         stdio: Avoid #define replacements in C++ mode.
6090         * lib/stdio.in.h: Include c++defs.h.
6091         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6092         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6093         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6094         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6095         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6096         namespaced alias symbol.
6097         * modules/stdio (Depends-on): Add c++defs.
6098         (Makefile.am): Update stdio.h rule.
6099
6100         spawn: Avoid #define replacements in C++ mode.
6101         * lib/spawn.in.h: Include c++defs.h.
6102         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6103         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6104         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6105         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6106         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6107         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6108         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6109         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6110         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6111         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6112         In C++, define a namespaced alias symbol.
6113         * modules/spawn (Depends-on): Add c++defs.
6114         (Makefile.am): Update spawn.h rule.
6115
6116         signal: Avoid #define replacements in C++ mode.
6117         * lib/signal.in.h: Include c++defs.h.
6118         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6119         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6120         namespaced alias symbol.
6121         * modules/signal (Depends-on): Add c++defs.
6122         (Makefile.am): Update signal.h rule.
6123
6124         search: Avoid #define replacements in C++ mode.
6125         * lib/search.in.h: Include c++defs.h.
6126         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6127         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6128         symbol.
6129         * modules/search (Depends-on): Add c++defs.
6130         (Makefile.am): Update search.h rule.
6131
6132         math: Avoid #define replacements in C++ mode.
6133         * lib/math.in.h: Include c++defs.h.
6134         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6135         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6136         trunc, truncl): In C++, define a namespaced alias symbol.
6137         * modules/math (Depends-on): Add c++defs.
6138         (Makefile.am): Update math.h rule.
6139
6140         locale: Avoid #define replacements in C++ mode.
6141         * lib/locale.in.h: Include c++defs.h.
6142         (duplocale): In C++, define a namespaced alias symbol.
6143         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6144         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6145         * modules/locale (Depends-on): Add c++defs.
6146         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6147
6148         langinfo: Avoid #define replacements in C++ mode.
6149         * lib/langinfo.in.h: Include c++defs.h.
6150         (nl_langinfo): In C++, define a namespaced alias symbol.
6151         * modules/langinfo (Depends-on): Add c++defs.
6152         (Makefile.am): Update langinfo.h rule.
6153
6154         iconv-h: Avoid #define replacements in C++ mode.
6155         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6156         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6157         symbol.
6158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6159         whenever iconv is present.
6160         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6161         (Makefile.am): Update iconv.h rule.
6162
6163         glob: Avoid #define replacements in C++ mode.
6164         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6165         (_gl_glob_errfunc_fn): New type.
6166         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6167         symbol.
6168         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6169         (Makefile.am): Update glob.h rule.
6170
6171         fcntl-h: Avoid #define replacements in C++ mode.
6172         * lib/fcntl.in.h: Include c++defs.h.
6173         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6174         * modules/fcntl-h (Depends-on): Add c++defs.
6175         (Makefile.am): Update fcntl.h rule.
6176
6177         dirent: Avoid #define replacements in C++ mode.
6178         * lib/dirent.in.h: Include c++defs.h.
6179         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6180         namespaced alias symbol.
6181         (dirfd): Update declaration.
6182         * modules/dirent (Depends-on): Add c++defs.
6183         (Makefile.am): Update dirent.h rule.
6184
6185         ctype: Make it usable in C++ code.
6186         * lib/ctype.in.h: Include c++defs.h.
6187         (isblank): Declare as extern "C".
6188         * modules/ctype (Depends-on): Add c++defs.
6189         (Makefile.am): Update ctype.h rule.
6190
6191         New module 'c++defs'.
6192         * modules/c++defs: New file.
6193         * build-aux/c++defs.h: New file.
6194         Reported by John W. Eaton <jwe@gnu.org>.
6195
6196 2010-03-07  Bruno Haible  <bruno@clisp.org>
6197
6198         logb: Provide missing declaration for Cygwin.
6199         * lib/math.in.h (logb): New declaration.
6200         * m4/logb.m4: New file.
6201         * modules/logb (Files): Add m4/logb.m4.
6202         (Depends-on): Add math.
6203         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6204         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6206         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6207         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6208
6209 2010-03-07  Bruno Haible  <bruno@clisp.org>
6210
6211         Fix test-cond link error.
6212         * tests/test-cond.c: Include <stdio.h>.
6213
6214 2010-03-07  Bruno Haible  <bruno@clisp.org>
6215
6216         Fix test-dirent-safer link error.
6217         * modules/dirent-safer-tests (Makefile.am): Define
6218         test_dirent_safer_LDADD.
6219
6220 2010-03-07  Bruno Haible  <bruno@clisp.org>
6221
6222         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6223         among default module list.
6224
6225 2010-03-07  Bruno Haible  <bruno@clisp.org>
6226
6227         Fix link error on platforms with GNU libiconv.
6228         * modules/unistr/u8-strcoll-tests (Makefile): Define
6229         test_u8_strcoll_LDADD.
6230         * modules/unistr/u16-strcoll-tests (Makefile): Define
6231         test_u16_strcoll_LDADD.
6232         * modules/unistr/u32-strcoll-tests (Makefile): Define
6233         test_u32_strcoll_LDADD.
6234
6235 2010-03-07  Bruno Haible  <bruno@clisp.org>
6236
6237         Use POSIX declarations for socket functions.
6238         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6239         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6240         rpl_sendto): Change declaration to match POSIX.
6241         * lib/connect.c (rpl_connect): Likewise.
6242         * lib/accept.c (rpl_accept): Likewise.
6243         * lib/bind.c (rpl_bind): Likewise.
6244         * lib/getpeername.c (rpl_getpeername): Likewise.
6245         * lib/getsockname.c (rpl_getsockname): Likewise.
6246         * lib/recv.c (rpl_recv): Likewise.
6247         * lib/send.c (rpl_send): Likewise.
6248         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6249         * lib/sendto.c (rpl_sendto): Likewise.
6250
6251 2010-03-06  Bruno Haible  <bruno@clisp.org>
6252
6253         Clarify access, euidaccess, faccessat.
6254         * doc/posix-functions/faccessat.texi: Mention security problem under
6255         "Other problems", not "Portability problems".
6256         * doc/posix-functions/access.texi: Likewise. Mention a related security
6257         problem.
6258         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6259         * lib/euidaccess.c: Add comments about platforms.
6260         * lib/unistd.in.h (access, euidaccess): Add warnings.
6261
6262 2010-03-07  Bruno Haible  <bruno@clisp.org>
6263
6264         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6265         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6266         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6267         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6268         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6269         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6270         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6271         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6272         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6273         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6274         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6275         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6276         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6277         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6278         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6279         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6280         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6281         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6282         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6283         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6284         Likewise.
6285         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6286         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6287         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6288         Likewise.
6289         * tests/test-spawn.c (main): Make it work when
6290         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6291
6292 2010-03-07  Bruno Haible  <bruno@clisp.org>
6293
6294         Fix incorrect Makefile.am generation in German locale.
6295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6296         Execute sed command with character range in C locale.
6297
6298 2010-03-06  Bruno Haible  <bruno@clisp.org>
6299
6300         Tests for module 'iconv-h'.
6301         * modules/iconv-h-tests: New file.
6302         * tests/test-iconv-h.c: New file.
6303
6304         New module 'iconv-h'.
6305         * modules/iconv-h: New file.
6306         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6307         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6308         (configure.ac): Remove gl_ICONV_H.
6309         (Makefile.am): Remove rule for iconv.h.
6310
6311 2010-03-06  Bruno Haible  <bruno@clisp.org>
6312
6313         More consistent naming of *.m4 files.
6314         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6315         * modules/wctype (Files): Update.
6316
6317         More consistent naming of *.m4 files.
6318         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6319         * modules/wchar (Files): Update.
6320
6321 2010-03-06  Jim Meyering  <meyering@redhat.com>
6322
6323         euidaccess: relax license to LGPLv2+
6324         * modules/euidaccess (License): Relax to LGPLv2+.
6325
6326 2010-03-06  Bruno Haible  <bruno@clisp.org>
6327
6328         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6329         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6330         (Makefile.am): Augment lib_SOURCES instead.
6331
6332 2010-03-04  Jim Meyering  <meyering@redhat.com>
6333
6334         utime: remove obsolete module
6335         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6336         unnecessary for years, and has been marked as obsolete for 10 months.
6337         * modules/utime: Remove file.
6338         * lib/utime.c: Remove file.
6339         * m4/utime.m4: Remove file.
6340         * m4/utimes-null.m4: Remove file.
6341         * doc/posix-functions/utime.texi (utime): Remove reference to
6342         the module.  Move the sole "fixed by gnulib" item into the
6343         "problems not fixed by Gnulib" list.
6344         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6345
6346 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6347
6348         * modules/exit (License): Relax license to LGPLv2+.
6349         (Status): Mark as obsolete.
6350         * NEWS: Mention deprecated 'exit' module.
6351         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6352         of now obsolete 'exit'.
6353
6354 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6355
6356         fts-lgpl: remove unused module
6357         * modules/fts-lgpl: Remove.
6358         * MODULES.html.sh (func_all_modules): Adjust.
6359         * check-module (find_included_lib_files): Adjust.
6360         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6361
6362 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6363
6364         copy-acl: enhance Solaris ACL error handling
6365         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6366         * lib/set-mode-acl.c (qset_acl): Likewise.
6367
6368 2010-03-02  Bruno Haible  <bruno@clisp.org>
6369
6370         spawn: Don't override the system defined values on FreeBSD 8.
6371         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6372         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6373         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6374         if HAVE_POSIX_SPAWN is 1.
6375         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6376
6377 2010-03-01  Bruno Haible  <bruno@clisp.org>
6378
6379         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6380         regarding Automake.
6381
6382 2010-02-25  Bruno Haible  <bruno@clisp.org>
6383
6384         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6385         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6386         setting, not afterwards.
6387         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6388
6389 2010-02-24  Eric Blake  <eblake@redhat.com>
6390
6391         bootstrap, git-version-gen: use timestamp
6392         * build-aux/git-version-gen (scriptversion): Force UTC.
6393         * build-aux/bootstrap (scriptversion): New variable.
6394
6395         bootstrap: allow older git
6396         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6397         older than 1.6.4.  Requested by the libvirt project.
6398
6399 2010-02-23  Eric Blake  <eblake@redhat.com>
6400
6401         warn-on-use: work with old autoconf
6402         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
6403         AS_VAR semantics of autoconf 2.60.
6404         Reported by Bruno Haible.
6405
6406         bootstrap: improve some comments
6407         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
6408         clarification comments.
6409
6410         gettimeofday: provide correct function
6411         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
6412         when replacement is declared, otherwise provide gettimeofday.
6413         Reported by Michael Goffioul.
6414
6415 2010-02-23  Jim Meyering  <meyering@redhat.com>
6416
6417         lib-ignore: relax license to "unlimited", not LGPLv2+
6418         * modules/lib-ignore (License): Relax to "unlimited".
6419
6420 2010-02-23  Jim Meyering  <meyering@redhat.com>
6421
6422         lib-ignore: relax license to LGPLv2+
6423         * modules/lib-ignore (License): Relax to LGPLv2+.
6424
6425 2010-02-22  Eric Blake  <eblake@redhat.com>
6426
6427         lseek: avoid bash 3.2 broken pipe bug
6428         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
6429         warning from bash 3.2.
6430         Reported by Ben Pfaff, with analysis from Bruno Haible.
6431
6432         bootstrap: support non-FSF copyright holder
6433         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
6434         bootstrap.conf override of COPYRIGHT_HOLDER.
6435         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
6436
6437         bootstrap: interoperate with gettext 0.14.1
6438         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
6439
6440         bootstrap: allow for alternate submodule location
6441         * build-aux/bootstrap (gnulib_path): New variable; use instead of
6442         hardcoding submodule location.
6443         (gnulib_mk): Allow direct use of Makefile.am.
6444
6445         bootstrap: use GNULIB_SRCDIR to reduce disk usage
6446         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
6447         rather than reconfiguring where the submodule points.
6448
6449         gettimeofday: restore support for platforms that lack function
6450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
6451         replacement if function is missing.
6452         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
6453         * modules/sys_time (Makefile.am): Substitute it.
6454         * lib/sys_time.in.h (gettimeofday): Check it.
6455         Reported by Michael Goffioul.
6456
6457 2010-02-21  Bruno Haible  <bruno@clisp.org>
6458
6459         * lib/stdio.in.h (obstack_printf): Fix typo.
6460
6461 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
6462
6463         vc-list-files: use bzr ls's -R option
6464         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
6465         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
6466
6467 2010-02-21  Jim Meyering  <meyering@redhat.com>
6468
6469         init.sh: fix EXEEXT shims to work also for names like test-prog
6470         * tests/init.sh: Re-exec a better shell, when needed.
6471         If the current shell lacks support for posix $(...), an init.sh-using
6472         test will now try to find a shell that supports that.  If EXEEXT is
6473         nonempty, we also require support for hyphen-in-alias-name and shell
6474         substitutions like ${var#glob}.  Failure to find such a shell results
6475         in a skipped test.
6476
6477 2010-02-21  Bruno Haible  <bruno@clisp.org>
6478
6479         Really work around around "broken pipe" error message from bash 3.2.
6480         * gnulib-tool (func_reset_sigpipe): Remove function.
6481         (echo): In bash 3.2, define to a function that uses printf.
6482         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
6483
6484 2010-02-20  Bruno Haible  <bruno@clisp.org>
6485
6486         Restore support for automake 1.9.6 with autoconf 2.61.
6487         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
6488         Reported by James Youngman <jay@gnu.org>.
6489
6490 2010-02-20  Bruno Haible  <bruno@clisp.org>
6491
6492         Improve *printf warning condition.
6493         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
6494         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
6495         and the function is overridden due to SIGPIPE emulation.
6496
6497 2010-02-20  Bruno Haible  <bruno@clisp.org>
6498
6499         * lib/stdio.in.h: Tweak comments.
6500
6501 2010-02-19  Bruno Haible  <bruno@clisp.org>
6502
6503         Make it easier to find modules. New gnulib-tool option '--find'.
6504         * gnulib-tool: New option --find.
6505         (func_usage): Document it.
6506         (func_sanitize_modulelist): New function, extracted from
6507         func_all_modules.
6508         (func_all_modules): Invoke it.
6509         * doc/gnulib-tool.texi (Which modules?): New node.
6510
6511 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
6512
6513         * lib/sys_select.in.h: Provide select replacement even if
6514         sys/select.h exists on a system, for Interix.
6515
6516 2010-02-18  Jim Meyering  <meyering@redhat.com>
6517
6518         init.sh: don't use $(...) just yet
6519         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
6520         to accommodate e.g., Solaris' /bin/sh.
6521
6522 2010-02-17  Bruno Haible  <bruno@clisp.org>
6523
6524         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
6525         Reported by Ludovic Courtès <ludo@gnu.org>.
6526
6527 2010-02-16  Simon Josefsson  <simon@josefsson.org>
6528
6529         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
6530         linking with -lintl.
6531
6532 2010-02-17  Simon Josefsson  <simon@josefsson.org>
6533
6534         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
6535         if not provided by the system's netdb.h.  Reported by
6536         ludo@gnu.org (Ludovic Courtès).
6537
6538 2010-02-15  Jim Meyering  <meyering@redhat.com>
6539
6540         init.sh: improve portability and efficiency
6541         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
6542         "dummy" in a for loop.
6543         Use '!', not '^' to select the complement of a character set used
6544         in a "case" statement.
6545         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
6546         Suggestions from Eric Blake.
6547
6548         init.sh: automatically accommodate programs with the .exe suffix
6549         Automatically arrange for an invocation of "prog" to execute the
6550         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
6551         may use the simpler "prog", yet still work when built on a system
6552         that requires specifying the added suffix.
6553         Do this by constructing a function named "prog" that invokes
6554         "prog.exe" for each .exe file in selected directories.
6555         * tests/init.sh (find_exe_basenames_): New function.
6556         (create_exe_shim_functions_): New function.
6557         (path_prepend_): Use it.
6558
6559         maint.mk: mark syntax-check sc_*.m rules as .PHONY
6560         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
6561         "make -t syntax-check" doesn't create a ton of sc_*.m files.
6562
6563 2010-02-14  Jim Meyering  <meyering@redhat.com>
6564
6565         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
6566         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
6567         (sc_prohibit_hash_pjw_without_use): New rule.
6568
6569         maint.mk: allow the default upload destination dir to be overridden
6570         * top/maint.mk (upload_dest_dir_): Define with a default that
6571         preserves the status quo.
6572         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
6573         Reported by Peter Simons.
6574
6575         maint.mk: prohibit inclusion of "hash.h" without_use
6576         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
6577
6578 2010-02-10  Jim Meyering  <meyering@redhat.com>
6579
6580         maint.mk: prohibit inclusion of "ignore-value.h" without_use
6581         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
6582
6583 2010-02-09  Eric Blake  <ebb9@byu.net>
6584         and Bruno Haible  <bruno@clisp.org>
6585
6586         obstack-printf-posix: ensure declaration
6587         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
6588         extracted from gl_FUNC_OBSTACK_PRINTF.
6589         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
6590         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
6591         Likewise.
6592         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
6593         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
6594         0.
6595
6596 2010-02-08  Bruno Haible  <bruno@clisp.org>
6597
6598         gnulib-tool: Fix typo in 2010-02-07 commit.
6599         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
6600         Reported by Eric Blake.
6601
6602 2010-02-07  Bruno Haible  <bruno@clisp.org>
6603
6604         gnulib-tool: Fix up caching patches.
6605         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
6606         option --no-cache. Use associative arrays when supported by the shell.
6607         (sed_comments): New variable.
6608         (modcache): Renamed from do_cache.
6609         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
6610         abbreviate unnecessarily.
6611         (have_associative): New variable.
6612         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
6613         way also for ksh and zsh.
6614         (func_init_sed_convert_to_cache_statements): New function, extracted
6615         from func_cache_lookup_module. Add support for associative arrays.
6616         Don't set the c_MODULE_cached variable here. Ignore all lines before
6617         the first field header. Remove only the final newline, not all trailing
6618         newlines. Support empty fields correctly. Limit the use of 'eval' to
6619         assignments.
6620         (func_get_description, func_get_status, func_get_notice,
6621         func_get_applicability, func_get_filelist, func_get_dependencies,
6622         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
6623         func_get_automake_snippet, func_get_include_directive,
6624         func_get_link_directive, func_get_license, func_get_maintainer):
6625         Update documentation. List the unoptimized code first. Add support for
6626         associative arrays. Limit the use of 'eval' to assignments.
6627         (func_get_applicability): Undo stylistic pessimisations.
6628         (func_get_automake_snippet, func_get_include_directive): Reduce code
6629         duplication.
6630         (func_modules_transitive_closure, func_modules_add_dummy,
6631         func_modules_notice, func_modules_to_filelist, func_add_file,
6632         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
6633         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
6634         func_create_testdir, func_create_megatestdir): Update documentation.
6635
6636 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6637
6638         * gnulib-tool (func_cache_lookup_module): Store the module name
6639         belonging to the cache variable; error out if two different
6640         module names map to the same cache variable name.
6641
6642 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6643
6644         gnulib-tool: Make caching optional.
6645         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
6646         Update matching short versions of --no-changelog.
6647         (func_usage): Update.
6648         (sed_extract_cache_prog): Renamed from ...
6649         (sed_extract_prog): ... this; revert to old extraction script.
6650         (func_get_description, func_get_status)
6651         (func_get_notice, func_get_applicability, func_get_filelist)
6652         (func_get_dependencies, func_get_autoconf_early_snippet)
6653         (func_get_autoconf_snippet, func_get_automake_snippet)
6654         (func_get_include_directive, func_get_link_directive)
6655         (func_get_license, func_get_maintainer): If $do_cache is false,
6656         use old, non-caching extraction scripts.
6657         Suggestion by Bruno Haible.
6658
6659 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6660
6661         gnulib-tool: cache module metainformation.
6662         * gnulib-tool (sed_extract_prog): Match newline before each
6663         header, and rewrite header to a shell variable suffix.
6664         (func_cache_var, func_cache_lookup_module): New functions,
6665         to turn a module name into a cache variable prefix, and to
6666         look up and cache module metainformation.
6667         (func_get_description, func_get_status)
6668         (func_get_notice, func_get_applicability, func_get_filelist)
6669         (func_get_dependencies, func_get_autoconf_early_snippet)
6670         (func_get_autoconf_snippet, func_get_automake_snippet)
6671         (func_get_include_directive, func_get_link_directive)
6672         (func_get_license, func_get_maintainer): Use
6673         func_cache_lookup_module.
6674
6675 2010-02-07  Bruno Haible  <bruno@clisp.org>
6676
6677         fnctl: Fix missing dependency.
6678         * modules/fcntl (Depends-on): Add getdtablesize.
6679         Reported by John W. Eaton <jwe@gnu.org>.
6680
6681 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6682
6683         Argp: fix recognition of short alias options.
6684
6685         * lib/argp-parse.c (convert_options): Fix improper use of
6686         `|' between character values.
6687         * tests/test-argp.c (group1_option): New alias option
6688         --read (-r).
6689         (group1_parser): Special handling for 'r'.
6690         (test15): New test case.
6691         (test_fun): Add test15.
6692         * tests/test-argp-2.sh: Update expected --help and --usage
6693         outputs.
6694
6695 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6696
6697         * tests/test-argp.c: Fix indentation.
6698
6699 2010-02-04  Eric Blake  <ebb9@byu.net>
6700
6701         gettimeofday: expose type of second argument
6702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
6703         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
6704         * tests/test-gettimeofday.c: Use it to silence warning.
6705         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
6706         the issue.
6707
6708 2010-02-03  Jim Meyering  <meyering@redhat.com>
6709
6710         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
6711         * lib/regcomp.c (TYPE_SIGNED): Define.
6712         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
6713
6714         regcomp.c: avoid a new -Wshadow warning
6715         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
6716
6717 2010-02-01  Jim Meyering  <meyering@redhat.com>
6718
6719         removing useless parentheses in cpp #define directives
6720         For motivation, see commit c0221df4, "define STREQ(a,b)
6721         consistently, removing useless parentheses"
6722         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
6723         * lib/mountlist.c (MNT_IGNORE): Likewise.
6724         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
6725
6726 2010-02-01  Eric Blake  <ebb9@byu.net>
6727
6728         sys_time: use link-warning
6729         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
6730         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
6731         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
6732         * modules/sys_time (Depends-on): Add warn-on-use.
6733         (Makefile.am): Always build replacement.
6734         (configure.ac): Update substitutions.
6735         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
6736         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
6737         bother with SYS_TIME_H.
6738         * modules/gettimeofday (configure.ac): Declare indicator.
6739         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
6740         in use.
6741
6742         closein-tests: silence compiler warning
6743         * tests/test-closein.c (main): Ignore fread result.
6744         * modules/closein-tests (Depends-on): Add ignore-value.
6745
6746         tests: silence warning about system return
6747         * tests/test-areadlink-with-size.c (main): Ignore system result.
6748         * tests/test-areadlink.c (main): Likewise.
6749         * tests/test-areadlinkat-with-size.c (main): Likewise.
6750         * tests/test-areadlinkat.c (main): Likewise.
6751         * tests/test-canonicalize-lgpl.c (main): Likewise.
6752         * tests/test-canonicalize.c (main): Likewise.
6753         * tests/test-chown.c (main): Likewise.
6754         * tests/test-fchownat.c (main): Likewise.
6755         * tests/test-fdutimensat.c (main): Likewise.
6756         * tests/test-fstatat.c (main): Likewise.
6757         * tests/test-futimens.c (main): Likewise.
6758         * tests/test-lchown.c (main): Likewise.
6759         * tests/test-link.c (main): Likewise.
6760         * tests/test-linkat.c (main): Likewise.
6761         * tests/test-lstat.c (main): Likewise.
6762         * tests/test-mkdir.c (main): Likewise.
6763         * tests/test-mkdirat.c (main): Likewise.
6764         * tests/test-mkfifo.c (main): Likewise.
6765         * tests/test-mkfifoat.c (main): Likewise.
6766         * tests/test-mknod.c (main): Likewise.
6767         * tests/test-readlink.c (main): Likewise.
6768         * tests/test-remove.c (main): Likewise.
6769         * tests/test-rename.c (main): Likewise.
6770         * tests/test-renameat.c (main): Likewise.
6771         * tests/test-rmdir.c (main): Likewise.
6772         * tests/test-symlink.c (main): Likewise.
6773         * tests/test-symlinkat.c (main): Likewise.
6774         * tests/test-unlink.c (main): Likewise.
6775         * tests/test-unlinkat.c (main): Likewise.
6776         * tests/test-utimens.c (main): Likewise.
6777         * tests/test-utimensat.c (main): Likewise.
6778         * modules/areadlink-tests (Depends-on): Add ignore-value.
6779         * modules/areadlink-with-size-tests (Depends-on): Likewise.
6780         * modules/areadlinkat-tests (Depends-on): Likewise.
6781         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
6782         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6783         * modules/canonicalize-tests (Depends-on): Likewise.
6784         * modules/chown-tests (Depends-on): Likewise.
6785         * modules/fdutimensat-tests (Depends-on): Likewise.
6786         * modules/futimens-tests (Depends-on): Likewise.
6787         * modules/lchown-tests (Depends-on): Likewise.
6788         * modules/link-tests (Depends-on): Likewise.
6789         * modules/linkat-tests (Depends-on): Likewise.
6790         * modules/lstat-tests (Depends-on): Likewise.
6791         * modules/mkdir-tests (Depends-on): Likewise.
6792         * modules/mkfifo-tests (Depends-on): Likewise.
6793         * modules/mkfifoat-tests (Depends-on): Likewise.
6794         * modules/mknod-tests (Depends-on): Likewise.
6795         * modules/openat-tests (Depends-on): Likewise.
6796         * modules/readlink-tests (Depends-on): Likewise.
6797         * modules/remove-tests (Depends-on): Likewise.
6798         * modules/rename-tests (Depends-on): Likewise.
6799         * modules/renameat-tests (Depends-on): Likewise.
6800         * modules/rmdir-tests (Depends-on): Likewise.
6801         * modules/symlink-tests (Depends-on): Likewise.
6802         * modules/symlinkat-tests (Depends-on): Likewise.
6803         * modules/unlink-tests (Depends-on): Likewise.
6804         * modules/utimens-tests (Depends-on): Likewise.
6805         * modules/utimensat-tests (Depends-on): Likewise.
6806
6807 2010-01-31  Bruno Haible  <bruno@clisp.org>
6808
6809         Perform the same test for many <math.h> functions.
6810         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
6811         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
6812         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
6813         of gl_MATHFUNC.
6814         * modules/acos (configure.ac): Likewise.
6815         * modules/asin (configure.ac): Likewise.
6816         * modules/atan (configure.ac): Likewise.
6817         * modules/atan2 (configure.ac): Likewise.
6818         * modules/cbrt (configure.ac): Likewise.
6819         * modules/copysign (configure.ac): Likewise.
6820         * modules/cos (configure.ac): Likewise.
6821         * modules/cosh (configure.ac): Likewise.
6822         * modules/erf (configure.ac): Likewise.
6823         * modules/erfc (configure.ac): Likewise.
6824         * modules/exp (configure.ac): Likewise.
6825         * modules/fmod (configure.ac): Likewise.
6826         * modules/hypot (configure.ac): Likewise.
6827         * modules/j0 (configure.ac): Likewise.
6828         * modules/j1 (configure.ac): Likewise.
6829         * modules/jn (configure.ac): Likewise.
6830         * modules/lgamma (configure.ac): Likewise.
6831         * modules/log (configure.ac): Likewise.
6832         * modules/log10 (configure.ac): Likewise.
6833         * modules/log1p (configure.ac): Likewise.
6834         * modules/pow (configure.ac): Likewise.
6835         * modules/remainder (configure.ac): Likewise.
6836         * modules/sin (configure.ac): Likewise.
6837         * modules/sinh (configure.ac): Likewise.
6838         * modules/tan (configure.ac): Likewise.
6839         * modules/tanh (configure.ac): Likewise.
6840         * modules/y0 (configure.ac): Likewise.
6841         * modules/y1 (configure.ac): Likewise.
6842         * modules/yn (configure.ac): Likewise.
6843         Suggested by Paolo Bonzini.
6844
6845 2010-01-31  Bruno Haible  <bruno@clisp.org>
6846
6847         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
6848
6849 2010-01-31  Bruno Haible  <bruno@clisp.org>
6850
6851         Work around getdelim() bug on FreeBSD 8.0.
6852         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
6853         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
6854         not work.
6855         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
6856         is 1.
6857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
6858         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
6859         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
6860         a non-zero size.
6861         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
6862
6863 2010-01-31  Bruno Haible  <bruno@clisp.org>
6864
6865         Work around getline() bug on FreeBSD 8.0.
6866         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
6867         and a non-zero size.
6868         * tests/test-getline.c (main): Likewise.
6869         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
6870         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
6871
6872 2010-01-28  Eric Blake  <ebb9@byu.net>
6873
6874         regex: fix build failure
6875         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
6876         platforms.
6877
6878 2010-01-28  Jim Meyering  <meyering@redhat.com>
6879
6880         regex: do not ignore memory allocation failure
6881         * lib/regex_internal.c (create_cd_newstate): Detect
6882         re_node_set_init_copy failure.   Extracted from glibc commit
6883         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6884
6885         regex: sync more white-space changes from libc
6886         * lib/regex_internal.c: White-space only changes.
6887         * lib/regexec.c: Likewise.
6888
6889         regex: add many uses of __attribute_warn_unused_result__
6890         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
6891         * lib/regexec.c: Likewise.
6892         Extracted from a messy glibc commit.
6893
6894         regcomp.c: spelling and merge-artifact from glibc
6895         * lib/regcomp.c: Merge remainder of glibc's
6896         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6897
6898         regcomp.c: sync white-space changes from glibc
6899         * lib/regcomp.c: Merge to accommodate white space
6900         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6901
6902         regcomp.c: do not ignore internal return values
6903         * lib/regcomp.c: Do not ignore internal return values.
6904         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
6905         but without its white-space changes and spelling fixes.
6906
6907         regex_internal.h: define __attribute_warn_unused_result__
6908         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
6909
6910         maint: add a syntax-check rule to check for vulnerable Makefile.in
6911         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
6912
6913 2010-01-27  Jim Meyering  <meyering@redhat.com>
6914
6915         ncftpput-ftp: clean up spaces
6916         * build-aux/ncftpput-ftp: Make Copyright line consistent.
6917         Remove trailing blanks.
6918
6919 2010-01-27  Simon Josefsson  <simon@josefsson.org>
6920
6921         * build-aux/git-version-gen: Fix copyright statement.
6922         * build-aux/gnupload: Likewise.
6923         * tests/test-arcfour.c: Likewise.
6924         * tests/test-arctwo.c: Likewise.
6925         * tests/test-count-one-bits.c: Likewise.
6926         * tests/test-crc.c: Likewise.
6927         * tests/test-des.c: Likewise.
6928         * tests/test-gc-arcfour.c: Likewise.
6929         * tests/test-gc-arctwo.c: Likewise.
6930         * tests/test-gc-des.c: Likewise.
6931         * tests/test-gc-hmac-md5.c: Likewise.
6932         * tests/test-gc-hmac-sha1.c: Likewise.
6933         * tests/test-gc-md2.c: Likewise.
6934         * tests/test-gc-md4.c: Likewise.
6935         * tests/test-gc-md5.c: Likewise.
6936         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6937         * tests/test-gc-rijndael.c: Likewise.
6938         * tests/test-gc-sha1.c: Likewise.
6939         * tests/test-gc.c: Likewise.
6940         * tests/test-gethostname.c: Likewise.
6941         * tests/test-gettimeofday.c: Likewise.
6942         * tests/test-hash.c: Likewise.
6943         * tests/test-hmac-md5.c: Likewise.
6944         * tests/test-hmac-sha1.c: Likewise.
6945         * tests/test-md2.c: Likewise.
6946         * tests/test-md4.c: Likewise.
6947         * tests/test-md5.c: Likewise.
6948         * tests/test-memchr.c: Likewise.
6949         * tests/test-memchr2.c: Likewise.
6950         * tests/test-memcmp.c: Likewise.
6951         * tests/test-memmem.c: Likewise.
6952         * tests/test-memrchr.c: Likewise.
6953         * tests/test-rawmemchr.c: Likewise.
6954         * tests/test-read-file.c: Likewise.
6955         * tests/test-rijndael.c: Likewise.
6956         * tests/test-sockets.c: Likewise.
6957         * tests/test-strchrnul.c: Likewise.
6958         * tests/test-strstr.c: Likewise.
6959         * tests/test-strtod.c: Likewise.
6960         * build-aux/ncftpput-ftp: Likewise.
6961
6962 2010-01-26  Eric Blake  <ebb9@byu.net>
6963
6964         ignore-value: update recommended header name
6965         * modules/ignore-value (Include): Only use <> for headers that
6966         exist in glibc.
6967
6968 2010-01-26  Jim Meyering  <meyering@redhat.com>
6969
6970         test-userspec.c: avoid compiler warnings
6971         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6972         and "initialization discards qualifiers..." warnings.
6973         Put the first "uid" in its own scope, and make char* members "const".
6974
6975 2010-01-25  Bruno Haible  <bruno@clisp.org>
6976
6977         gnulib-tool: Make warning diagnostics consistent.
6978         * gnulib-tool (func_warning): New function.
6979         Use it everywhere where gnulib-tool produces output to stderr and it is
6980         not a fatal error.
6981
6982 2010-01-25  Bruno Haible  <bruno@clisp.org>
6983
6984         Fix test dependencies.
6985         * modules/xstrtol-tests (Depends-on): Add inttypes.
6986         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6987
6988 2010-01-25 Pádraig Brady <P@draigBrady.com>
6989
6990         syntax-check: detect incorrect boolean macro values in config.h
6991         * modules/maintainer-makefile (configure.ac): Parameterize the location
6992         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6993         The logic is from Eric Blake and the location indicated by Jim Meyering.
6994         Note the more natural CONFIG_HEADER name is prohibited by automake
6995         for backwards compatibility reasons.
6996         * top/maint.mk (sc_Wundef_boolean): New rule.
6997
6998 2010-01-25  Jim Meyering  <meyering@redhat.com>
6999
7000         bootstrap: detect MacOS 10.6's shasum, too
7001         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7002         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7003
7004 2010-01-23  Jim Meyering  <meyering@redhat.com>
7005
7006         xstrtoll: new module
7007         * modules/xstrtoll: New file.
7008         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7009         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7010         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7011         ./configure fails if you use this module and lack "long long".
7012         * modules/xstrtoll-tests: New module.
7013         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7014         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7015         new init.sh-based test framework.
7016
7017 2010-01-24  Bruno Haible  <bruno@clisp.org>
7018
7019         Tests for module 'yn'.
7020         * modules/yn-tests: New file.
7021         * tests/test-yn.c: New file.
7022
7023         Tests for module 'y1'.
7024         * modules/y1-tests: New file.
7025         * tests/test-y1.c: New file.
7026
7027         Tests for module 'y0'.
7028         * modules/y0-tests: New file.
7029         * tests/test-y0.c: New file.
7030
7031         Tests for module 'tanh'.
7032         * modules/tanh-tests: New file.
7033         * tests/test-tanh.c: New file.
7034
7035         Tests for module 'tan'.
7036         * modules/tan-tests: New file.
7037         * tests/test-tan.c: New file.
7038
7039         Tests for module 'sqrt'.
7040         * modules/sqrt-tests: New file.
7041         * tests/test-sqrt.c: New file.
7042
7043         Tests for module 'sinh'.
7044         * modules/sinh-tests: New file.
7045         * tests/test-sinh.c: New file.
7046
7047         Tests for module 'sin'.
7048         * modules/sin-tests: New file.
7049         * tests/test-sin.c: New file.
7050
7051         Tests for module 'rint'.
7052         * modules/rint-tests: New file.
7053         * tests/test-rint.c: New file.
7054
7055         Tests for module 'remainder'.
7056         * modules/remainder-tests: New file.
7057         * tests/test-remainder.c: New file.
7058
7059         Tests for module 'pow'.
7060         * modules/pow-tests: New file.
7061         * tests/test-pow.c: New file.
7062
7063         Tests for module 'nextafter'.
7064         * modules/nextafter-tests: New file.
7065         * tests/test-nextafter.c: New file.
7066
7067         Tests for module 'modf'.
7068         * modules/modf-tests: New file.
7069         * tests/test-modf.c: New file.
7070
7071         Tests for module 'logb'.
7072         * modules/logb-tests: New file.
7073         * tests/test-logb.c: New file.
7074
7075         Tests for module 'log1p'.
7076         * modules/log1p-tests: New file.
7077         * tests/test-log1p.c: New file.
7078
7079         Tests for module 'log10'.
7080         * modules/log10-tests: New file.
7081         * tests/test-log10.c: New file.
7082
7083         Tests for module 'log'.
7084         * modules/log-tests: New file.
7085         * tests/test-log.c: New file.
7086
7087         Tests for module 'lgamma'.
7088         * modules/lgamma-tests: New file.
7089         * tests/test-lgamma.c: New file.
7090
7091         Tests for module 'ldexp'.
7092         * modules/ldexp-tests: New file.
7093         * tests/test-ldexp.c: New file.
7094
7095         Tests for module 'jn'.
7096         * modules/jn-tests: New file.
7097         * tests/test-jn.c: New file.
7098
7099         Tests for module 'j1'.
7100         * modules/j1-tests: New file.
7101         * tests/test-j1.c: New file.
7102
7103         Tests for module 'j0'.
7104         * modules/j0-tests: New file.
7105         * tests/test-j0.c: New file.
7106
7107         Tests for module 'hypot'.
7108         * modules/hypot-tests: New file.
7109         * tests/test-hypot.c: New file.
7110
7111         Tests for module 'fmod'.
7112         * modules/fmod-tests: New file.
7113         * tests/test-fmod.c: New file.
7114
7115         Tests for module 'fabs'.
7116         * modules/fabs-tests: New file.
7117         * tests/test-fabs.c: New file.
7118
7119         Tests for module 'exp'.
7120         * modules/exp-tests: New file.
7121         * tests/test-exp.c: New file.
7122
7123         Tests for module 'erfc'.
7124         * modules/erfc-tests: New file.
7125         * tests/test-erfc.c: New file.
7126
7127         Tests for module 'erf'.
7128         * modules/erf-tests: New file.
7129         * tests/test-erf.c: New file.
7130
7131         Tests for module 'cosh'.
7132         * modules/cosh-tests: New file.
7133         * tests/test-cosh.c: New file.
7134
7135         Tests for module 'cos'.
7136         * modules/cos-tests: New file.
7137         * tests/test-cos.c: New file.
7138
7139         Tests for module 'copysign'.
7140         * modules/copysign-tests: New file.
7141         * tests/test-copysign.c: New file.
7142
7143         Tests for module 'cbrt'.
7144         * modules/cbrt-tests: New file.
7145         * tests/test-cbrt.c: New file.
7146
7147         Tests for module 'atan2'.
7148         * modules/atan2-tests: New file.
7149         * tests/test-atan2.c: New file.
7150
7151         Tests for module 'atan'.
7152         * modules/atan-tests: New file.
7153         * tests/test-atan.c: New file.
7154
7155         Tests for module 'asin'.
7156         * modules/asin-tests: New file.
7157         * tests/test-asin.c: New file.
7158
7159         Tests for module 'acos'.
7160         * modules/acos-tests: New file.
7161         * tests/test-acos.c: New file.
7162
7163 2010-01-24  Bruno Haible  <bruno@clisp.org>
7164
7165         Fix tests for common <math.h> functions.
7166         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7167         code snippet that references the function pointer, rather than merely
7168         calling the function. Substitute the FUNC_LIBM variable.
7169         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7170         * modules/acos (configure.ac): Likewise.
7171         * modules/asin (configure.ac): Likewise.
7172         * modules/atan (configure.ac): Likewise.
7173         * modules/atan2 (configure.ac): Likewise.
7174         * modules/cbrt (configure.ac): Likewise.
7175         * modules/copysign (configure.ac): Likewise.
7176         * modules/cos (configure.ac): Likewise.
7177         * modules/cosh (configure.ac): Likewise.
7178         * modules/erf (configure.ac): Likewise.
7179         * modules/erfc (configure.ac): Likewise.
7180         * modules/exp (configure.ac): Likewise.
7181         * modules/fabs (configure.ac): Likewise.
7182         * modules/fmod (configure.ac): Likewise.
7183         * modules/hypot (configure.ac): Likewise.
7184         * modules/j0 (configure.ac): Likewise.
7185         * modules/j1 (configure.ac): Likewise.
7186         * modules/jn (configure.ac): Likewise.
7187         * modules/ldexp (configure.ac): Likewise.
7188         * modules/lgamma (configure.ac): Likewise.
7189         * modules/log (configure.ac): Likewise.
7190         * modules/log10 (configure.ac): Likewise.
7191         * modules/log1p (configure.ac): Likewise.
7192         * modules/logb (configure.ac): Likewise.
7193         * modules/modf (configure.ac): Likewise.
7194         * modules/nextafter (configure.ac): Likewise.
7195         * modules/pow (configure.ac): Likewise.
7196         * modules/remainder (configure.ac): Likewise.
7197         * modules/rint (configure.ac): Likewise.
7198         * modules/sin (configure.ac): Likewise.
7199         * modules/sinh (configure.ac): Likewise.
7200         * modules/tan (configure.ac): Likewise.
7201         * modules/tanh (configure.ac): Likewise.
7202         * modules/y0 (configure.ac): Likewise.
7203         * modules/y1 (configure.ac): Likewise.
7204         * modules/yn (configure.ac): Likewise.
7205
7206 2010-01-24  Bruno Haible  <bruno@clisp.org>
7207
7208         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7209         * tests/test-acosl.c (x): New variable.
7210         (main): Store argument in x and fetch it from x.
7211         * tests/test-asinl.c (x): New variable.
7212         (main): Store argument in x and fetch it from x.
7213         * tests/test-atanl.c (x): New variable.
7214         (main): Store argument in x and fetch it from x.
7215         * tests/test-cosl.c (x): New variable.
7216         (main): Store argument in x and fetch it from x.
7217         * tests/test-expl.c (x): New variable.
7218         (main): Store argument in x and fetch it from x.
7219         * tests/test-logl.c (x): New variable.
7220         (main): Store argument in x and fetch it from x.
7221         * tests/test-sinl.c (x): New variable.
7222         (main): Store argument in x and fetch it from x.
7223         * tests/test-sqrtl.c (x): New variable.
7224         (main): Store argument in x and fetch it from x.
7225         * tests/test-tanl.c (x): New variable.
7226         (main): Store argument in x and fetch it from x.
7227
7228 2010-01-24  Bruno Haible  <bruno@clisp.org>
7229
7230         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7231         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7232         assignments to the initial TESTS_ENVIRONMENT.
7233         * doc/gnulib.texi (Unit test modules): Document it.
7234         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7235         TESTS_ENVIRONMENT.
7236         * modules/btowc-tests (Makefile.am): Likewise.
7237         * modules/c-stack-tests (Makefile.am): Likewise.
7238         * modules/c-strcase-tests (Makefile.am): Likewise.
7239         * modules/copy-file-tests (Makefile.am): Likewise.
7240         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7241         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7242         * modules/mbrtowc-tests (Makefile.am): Likewise.
7243         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7244         * modules/mbscasestr-tests (Makefile.am): Likewise.
7245         * modules/mbschr-tests (Makefile.am): Likewise.
7246         * modules/mbscspn-tests (Makefile.am): Likewise.
7247         * modules/mbsinit-tests (Makefile.am): Likewise.
7248         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7249         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7250         * modules/mbspbrk-tests (Makefile.am): Likewise.
7251         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7252         * modules/mbsrchr-tests (Makefile.am): Likewise.
7253         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7254         * modules/mbsspn-tests (Makefile.am): Likewise.
7255         * modules/mbsstr-tests (Makefile.am): Likewise.
7256         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7257         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7258         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7259         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7260         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7261         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7262         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7263         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7264         * modules/wcrtomb-tests (Makefile.am): Likewise.
7265         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7266         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7267         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7268         assignments from TESTS_ENVIRONMENT.
7269         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7270         augmentation.
7271         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7272         * modules/atexit-tests (Makefile.am): Likewise.
7273         * modules/binary-io-tests (Makefile.am): Likewise.
7274         * modules/closein-tests (Makefile.am): Likewise.
7275         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7276         * modules/exclude-tests (Makefile.am): Likewise.
7277         * modules/fflush-tests (Makefile.am): Likewise.
7278         * modules/fpending-tests (Makefile.am): Likewise.
7279         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7280         * modules/freadahead-tests (Makefile.am): Likewise.
7281         * modules/freadptr-tests (Makefile.am): Likewise.
7282         * modules/freadseek-tests (Makefile.am): Likewise.
7283         * modules/fseek-tests (Makefile.am): Likewise.
7284         * modules/fseeko-tests (Makefile.am): Likewise.
7285         * modules/ftell-tests (Makefile.am): Likewise.
7286         * modules/ftello-tests (Makefile.am): Likewise.
7287         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7288         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7289         * modules/lseek-tests (Makefile.am): Likewise.
7290         * modules/parse-duration-tests (Makefile.am): Likewise.
7291         * modules/perror-tests (Makefile.am): Likewise.
7292         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7293         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7294         * modules/pipe-tests (Makefile.am): Likewise.
7295         * modules/pread-tests (Makefile.am): Likewise.
7296         * modules/printf-posix-tests (Makefile.am): Likewise.
7297         * modules/select-tests (Makefile.am): Likewise.
7298         * modules/sigpipe-tests (Makefile.am): Likewise.
7299         * modules/tsearch-tests (Makefile.am): Likewise.
7300         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7301         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7302         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7303         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7304         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7305         * modules/version-etc-tests (Makefile.am): Likewise.
7306         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7307         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7308         * modules/xalloc-die-tests (Makefile.am): Likewise.
7309         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7310         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7311         * modules/xstrtol-tests (Makefile.am): Likewise.
7312         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7313         * modules/yesno-tests (Makefile.am): Likewise.
7314         Suggested by Jim Meyering.
7315
7316 2010-01-24  Bruno Haible  <bruno@clisp.org>
7317
7318         More documentation.
7319         * doc/gnulib.texi (Writing modules): New chapter.
7320         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7321         the new chapter.
7322
7323 2010-01-24  Jim Meyering  <meyering@redhat.com>
7324
7325         maint.mk: do not prepend "./" after filtering
7326         * top/maint.mk (_prepend_srcdir_prefix): New variable
7327         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7328         "./" when $(srcdir) is ".".
7329
7330         define STREQ(a,b) consistently, removing useless parentheses
7331         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7332         since the only risk is that "a" or "b" contains an unparenthesized
7333         comma, but if either did that, STREQ would have 3 or more arguments.
7334         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7335         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7336         * lib/hash-triple.c (STREQ): Likewise.
7337         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7338         * lib/getugroups.c (STREQ): Likewise.
7339
7340 2010-01-23  Jim Meyering  <meyering@redhat.com>
7341
7342         maint.mk: fix syntax-check in a non-srcdir build directory
7343         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7344         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7345
7346 2010-01-22  Jim Meyering  <meyering@redhat.com>
7347
7348         userspec: add unit tests
7349         * tests/test-userspec.c: New file.
7350         * modules/userspec-tests: Likewise.
7351
7352 2010-01-21  Jim Meyering  <meyering@redhat.com>
7353
7354         maint.mk: handle source file names containing "." robustly
7355         * top/maint.mk (_dot_escaped_srcdir): Define.
7356         (VC_LIST): Use it in LHS of sed substitution.
7357
7358 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7359
7360         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7361         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7362         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7363         from a non-srcdir build.
7364
7365 2010-01-20  Eric Blake  <ebb9@byu.net>
7366
7367         warn-on-use: use instead of link-warning
7368         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7369         * modules/unistd (Depends-on, Makefile.am): Likewise.
7370         * modules/arpa_inet (Depends-on): Replace link-warning with
7371         warn-on-use.
7372         (Makefile.am): Update rules accordingly.
7373         * modules/ctype (Depends-on, Makefile.am): Likewise.
7374         * modules/dirent (Depends-on, Makefile.am): Likewise.
7375         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7376         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7377         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7378         * modules/locale (Depends-on, Makefile.am): Likewise.
7379         * modules/math (Depends-on, Makefile.am): Likewise.
7380         * modules/search (Depends-on, Makefile.am): Likewise.
7381         * modules/signal (Depends-on, Makefile.am): Likewise.
7382         * modules/spawn (Depends-on, Makefile.am): Likewise.
7383         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7384         * modules/string (Depends-on, Makefile.am): Likewise.
7385         * modules/strings (Depends-on, Makefile.am): Likewise.
7386         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7387         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7388         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7389         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7390         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7391         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7392         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7393         * modules/wchar (Depends-on, Makefile.am): Likewise.
7394         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7395         should be poisoned.
7396         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7397         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7398         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7399         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7400         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7401         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7402         * m4/math_h.m4 (gl_MATH_H): Likewise.
7403         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7404         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7405         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7406         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7407         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7408         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7409         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7410         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
7411         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7413         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7415         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7416         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7417         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7418         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7419         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
7420         GL_LINK_WARNING.
7421         * lib/ctype.in.h: Likewise.
7422         * lib/dirent.in.h: Likewise.
7423         * lib/fcntl.in.h: Likewise.
7424         * lib/inttypes.in.h: Likewise.
7425         * lib/langinfo.in.h: Likewise.
7426         * lib/locale.in.h: Likewise.
7427         * lib/math.in.h: Likewise.
7428         * lib/search.in.h: Likewise.
7429         * lib/signal.in.h: Likewise.
7430         * lib/spawn.in.h: Likewise.
7431         * lib/stdio.in.h: Likewise.
7432         * lib/stdlib.in.h: Likewise.
7433         * lib/string.in.h: Likewise.
7434         * lib/strings.in.h: Likewise.
7435         * lib/sys_file.in.h: Likewise.
7436         * lib/sys_ioctl.in.h: Likewise.
7437         * lib/sys_select.in.h: Likewise.
7438         * lib/sys_socket.in.h: Likewise.
7439         * lib/sys_stat.in.h: Likewise.
7440         * lib/sys_times.in.h: Likewise.
7441         * lib/sys_utsname.in.h: Likewise.
7442         * lib/unistd.in.h: Likewise.
7443         * lib/wchar.in.h: Likewise.
7444
7445 2010-01-20  Bruno Haible  <bruno@clisp.org>
7446
7447         Avoid duplicate -lm.
7448         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
7449         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
7450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
7451         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
7452         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
7453         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
7454         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
7455         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
7456         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
7457         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
7458         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
7459         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7460         Reported by Paolo Bonzini.
7461
7462 2010-01-19  Bruno Haible  <bruno@clisp.org>
7463
7464         langinfo, nl_langinfo: Relicense under LGPLv2+.
7465         * modules/langinfo (License): Change to LGPLv2+.
7466         * modules/nl_langinfo (License): Likewise.
7467         Patch by David Lutterkort <lutter@redhat.com>.
7468
7469 2010-01-19  Bruno Haible  <bruno@clisp.org>
7470
7471         Avoid compilation error with cc on OSF/1 5.1.
7472         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
7473         statement, not before.
7474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7475
7476 2010-01-18  Bruno Haible  <bruno@clisp.org>
7477
7478         Avoid a link error due to the __printf__ symbol.
7479         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
7480         and 2.6.x.
7481         (__format__, __printf__): Remove definitions.
7482         * lib/argp-fmtstream.h: Likewise.
7483         * lib/argp.h: Likewise.
7484         * lib/error.h: Likewise.
7485         * lib/vasnprintf.h: Likewise.
7486         * lib/xprintf.h: Likewise.
7487         * lib/xvasprintf.h: Likewise.
7488         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7489
7490 2010-01-18  Bruno Haible  <bruno@clisp.org>
7491
7492         Tests for module 'tanl'.
7493         * modules/tanl-tests: New file.
7494         * tests/test-tanl.c: New file.
7495
7496         Tests for module 'sqrtl'.
7497         * modules/sqrtl-tests: New file.
7498         * tests/test-sqrtl.c: New file.
7499
7500         Tests for module 'sinl'.
7501         * modules/sinl-tests: New file.
7502         * tests/test-sinl.c: New file.
7503
7504         Tests for module 'logl'.
7505         * modules/logl-tests: New file.
7506         * tests/test-logl.c: New file.
7507
7508         Tests for module 'expl'.
7509         * modules/expl-tests: New file.
7510         * tests/test-expl.c: New file.
7511
7512         Tests for module 'cosl'.
7513         * modules/cosl-tests: New file.
7514         * tests/test-cosl.c: New file.
7515
7516         Tests for module 'atanl'.
7517         * modules/atanl-tests: New file.
7518         * tests/test-atanl.c: New file.
7519
7520         Tests for module 'asinl'.
7521         * modules/asinl-tests: New file.
7522         * tests/test-asinl.c: New file.
7523
7524         Tests for module 'acosl'.
7525         * modules/acosl-tests: New file.
7526         * tests/test-acosl.c: New file.
7527
7528         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7529         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7530         tanl): Use the standard gnulib idiom.
7531         * lib/cosl.c: Don't include trigl.c and sincosl.c.
7532         * lib/sinl.c: Likewise.
7533         * lib/tanl.c: Don't include trigl.c.
7534         (kernel_tanl): Make static.
7535         * lib/sincosl.c: Include trigl.h first.
7536         * lib/trigl.c: Likewise.
7537         * m4/acosl.m4: New file.
7538         * m4/asinl.m4: New file.
7539         * m4/atanl.m4: New file.
7540         * m4/cosl.m4: New file.
7541         * m4/expl.m4: New file.
7542         * m4/logl.m4: New file.
7543         * m4/sinl.m4: New file.
7544         * m4/sqrtl.m4: New file.
7545         * m4/tanl.m4: New file.
7546         * m4/mathl.m4: Remove file.
7547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
7548         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
7549         Don't initialize GNULIB_MATHL.
7550         * modules/acosl: New file.
7551         * modules/asinl: New file.
7552         * modules/atanl: New file.
7553         * modules/cosl: New file.
7554         * modules/expl: New file.
7555         * modules/logl: New file.
7556         * modules/sinl: New file.
7557         * modules/sqrtl: New file.
7558         * modules/tanl: New file.
7559         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
7560         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
7561         substitute GNULIB_MATHL.
7562         * modules/mathl: Rewritten.
7563         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
7564         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
7565         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
7566         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
7567         * doc/posix-functions/expl.texi: Mention the 'expl' module.
7568         * doc/posix-functions/logl.texi: Mention the 'logl' module.
7569         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
7570         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
7571         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
7572
7573 2010-01-18  Bruno Haible  <bruno@clisp.org>
7574
7575         sqrt: Make gl_FUNC_SQRT requirable.
7576         * m4/sqrt.m4: New file.
7577         * modules/sqrt (Files): Add it.
7578         (configure.ac): Invoke gl_FUNC_SQRT.
7579
7580 2010-01-18  Bruno Haible  <bruno@clisp.org>
7581
7582         New modules for common <math.h> functions.
7583         * m4/mathfunc.m4: New file.
7584         * modules/acos: New file.
7585         * modules/asin: New file.
7586         * modules/atan: New file.
7587         * modules/atan2: New file.
7588         * modules/cbrt: New file.
7589         * modules/copysign: New file.
7590         * modules/cos: New file.
7591         * modules/cosh: New file.
7592         * modules/erf: New file.
7593         * modules/erfc: New file.
7594         * modules/exp: New file.
7595         * modules/fabs: New file.
7596         * modules/fmod: New file.
7597         * modules/hypot: New file.
7598         * modules/j0: New file.
7599         * modules/j1: New file.
7600         * modules/jn: New file.
7601         * modules/ldexp: New file.
7602         * modules/lgamma: New file.
7603         * modules/log: New file.
7604         * modules/log10: New file.
7605         * modules/log1p: New file.
7606         * modules/logb: New file.
7607         * modules/modf: New file.
7608         * modules/nextafter: New file.
7609         * modules/pow: New file.
7610         * modules/remainder: New file.
7611         * modules/rint: New file.
7612         * modules/sin: New file.
7613         * modules/sinh: New file.
7614         * modules/sqrt: New file.
7615         * modules/tan: New file.
7616         * modules/tanh: New file.
7617         * modules/y0: New file.
7618         * modules/y1: New file.
7619         * modules/yn: New file.
7620         * doc/posix-functions/acos.texi: Mention the 'acos' module.
7621         * doc/posix-functions/asin.texi: Mention the 'asin' module.
7622         * doc/posix-functions/atan.texi: Mention the 'atan' module.
7623         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
7624         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
7625         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
7626         * doc/posix-functions/cos.texi: Mention the 'cos' module.
7627         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
7628         * doc/posix-functions/erf.texi: Mention the 'erf' module.
7629         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
7630         * doc/posix-functions/exp.texi: Mention the 'exp' module.
7631         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
7632         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
7633         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
7634         * doc/posix-functions/j0.texi: Mention the 'j0' module.
7635         * doc/posix-functions/j1.texi: Mention the 'j1' module.
7636         * doc/posix-functions/jn.texi: Mention the 'jn' module.
7637         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
7638         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
7639         * doc/posix-functions/log.texi: Mention the 'log' module.
7640         * doc/posix-functions/log10.texi: Mention the 'log10' module.
7641         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
7642         * doc/posix-functions/logb.texi: Mention the 'logb' module.
7643         * doc/posix-functions/modf.texi: Mention the 'modf' module.
7644         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
7645         * doc/posix-functions/pow.texi: Mention the 'pow' module.
7646         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
7647         * doc/posix-functions/rint.texi: Mention the 'rint' module.
7648         * doc/posix-functions/sin.texi: Mention the 'sin' module.
7649         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
7650         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
7651         * doc/posix-functions/tan.texi: Mention the 'tan' module.
7652         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
7653         * doc/posix-functions/y0.texi: Mention the 'y0' module.
7654         * doc/posix-functions/y1.texi: Mention the 'y1' module.
7655         * doc/posix-functions/yn.texi: Mention the 'yn' module.
7656
7657 2010-01-18  Jim Meyering  <meyering@redhat.com>
7658
7659         ignore-value: relax license to LGPLv2+
7660         * modules/ignore-value (License): Relax to LGPLv2+.
7661
7662         getdate: don't leak when TZ contains two or more '"'s
7663         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
7664         double quote in TZ after the first one.
7665
7666         readtokens: do not leak internal token_lengths buffer
7667         * lib/readtokens.c (readtokens): Free the local, lengths,
7668         when the supplied "token_lengths" parameter is NULL.
7669
7670 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7671
7672         Fix a couple of missing LIBTHREAD link failures on AIX.
7673         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
7674         $(LIBTHREAD).
7675         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
7676
7677         Link test-poll against INET_PTON_LIB.
7678         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
7679         for inet_pton on Solaris 10.
7680
7681 2010-01-17  Bruno Haible  <bruno@clisp.org>
7682
7683         unistdio/*-sprintf: Fix typo in module description.
7684         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
7685         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
7686         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
7687         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
7688         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
7689         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
7690         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
7691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7692
7693 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7694
7695         gnulib-tool: fix filelist for AIX, HP-UX ksh.
7696         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
7697         variables in shell case patterns, for AIX and HP-UX ksh.
7698
7699         Split large sed scripts, for HP-UX sed.
7700         * modules/stdio: Split sed scripts around 50 sed commands,
7701         to avoid HP-UX limit of 99 commands, in the near future.
7702         * modules/string: Likewise.
7703         * modules/unistd: Likewise.
7704
7705         gnulib-tool: avoid writing in the current directory.
7706         * gnulib-tool (func_emit_lib_Makefile_am)
7707         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
7708         not in the current directory, so concurrent gnulib-tool
7709         instances do not interfere.
7710
7711 2010-01-16  Jim Meyering  <meyering@redhat.com>
7712
7713         doc: update users.txt
7714         * users.txt: Add grep.
7715         (diffutils, gzip): Update URLs.
7716
7717 2010-01-12  Bruno Haible  <bruno@clisp.org>
7718
7719         posix_spawn: Avoid test failure on Cygwin.
7720         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
7721         characters.
7722         Reported by Simon Josefsson.
7723
7724 2010-01-12  Bruno Haible  <bruno@clisp.org>
7725
7726         * tests/test-cond.c (main): When skipping the test, show the reason.
7727
7728 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7729
7730         * lib/striconv.c (str_cd_iconv): Avoid if before free.
7731
7732 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7733
7734         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
7735         VC_LIST_ALWAYS_EXCLUDE_REGEX.
7736
7737 2010-01-12  Eric Blake  <ebb9@byu.net>
7738
7739         build: guarantee AS_VAR_IF
7740         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
7741         (gl_AS_VAR_IF): Move...
7742         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
7743         Reported by Simon Josefsson.
7744
7745 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7746
7747         * lib/stdio.in.h: Fix typo.
7748
7749 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7750
7751         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
7752         libgpg-error.
7753
7754 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7755
7756         * tests/test-xalloc-die.sh: Use $EXEEXT.
7757
7758 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7759             Bruno Haible  <bruno@clisp.org>
7760
7761         getlogin, getlogin_r: Avoid test failure.
7762         * tests/test-getlogin.c: Include <stdio.h>.
7763         (main): Skip the test when the function fails because stdin is not a
7764         tty.
7765         * tests/test-getlogin_r.c: Include <stdio.h>.
7766         (main): Skip the test when the function fails because stdin is not a
7767         tty.
7768
7769 2010-01-11  Eric Blake  <ebb9@byu.net>
7770
7771         tests: avoid more large file warnings
7772         * tests/test-fflush.c: Avoid warning about ftell use.
7773         * tests/test-fseek.c: Avoid warning about fseek use.
7774
7775 2010-01-10  Bruno Haible  <bruno@clisp.org>
7776
7777         nproc: Work better on Linux when /proc and /sys are not mounted.
7778         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
7779         as lower bound when, on glibc/Linux systems,
7780         sysconf (_SC_NPROCESSORS_CONF) returns 1.
7781         Suggested by Pádraig Brady <P@draigbrady.com>.
7782         Reported by Dmitry V. Levin <ldv@altlinux.org>.
7783
7784         nproc: Refactor.
7785         * lib/nproc.c (num_processors_via_affinity_mask): New function,
7786         extracted from num_processors.
7787         (num_processors): Call it.
7788
7789 2010-01-11  Jim Meyering  <meyering@redhat.com>
7790
7791         utimecmp: avoid new warning from upcoming gcc-4.5.0
7792         * lib/utimecmp.c (BILLION): Define using #define rather than an
7793         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
7794
7795 2010-01-11  Eric Blake  <ebb9@byu.net>
7796
7797         math: add portability warnings for classification macros
7798         * modules/math (Depends-on): Add warn-on-use.
7799         (Makefile.am): Provide new substitutions.
7800         * m4/math_h.m4 (gl_MATH_H): Require inline.
7801         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
7802         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
7803         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
7804         implement warnings.
7805
7806         unistd: warn on use of environ without module
7807         * modules/unistd (Depends-on): Add warn-on-use.
7808         (Makefile.am): Provide new substitutions.
7809         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
7810         * lib/unistd.in.h (environ): Wrap with a warning helper function.
7811
7812         stdio: warn on suspicious uses
7813         * modules/stdio (Depends-on): Add warn-on-use.
7814         (Makefile.am): Provide new substitutions.
7815         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
7816         fseeko.
7817         * lib/stdio.in.h (gets): Always warn on use.
7818         (fseek, ftell): Adjust when warnings are issued, and honor
7819         _GL_NO_LARGE_FILES as a way to silence the warning.
7820         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
7821         any warning about large file offsets.
7822         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
7823         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
7824         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
7825         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
7826         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
7827         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
7828         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
7829         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
7830
7831         warn-on-use: new module
7832         * modules/warn-on-use: New file.
7833         * build-aux/warn-on-use.h: Likewise.
7834         * m4/warn-on-use.m4: Likewise.
7835         * MODULES.html.sh (Support for building): Mention it.
7836
7837 2010-01-10  Bruno Haible  <bruno@clisp.org>
7838
7839         Tests for module 'unistr/u32-strdup'.
7840         * modules/unistr/u32-strdup-tests: New file.
7841         * tests/unistr/test-u32-strdup.c: New file.
7842
7843         Tests for module 'unistr/u16-strdup'.
7844         * modules/unistr/u16-strdup-tests: New file.
7845         * tests/unistr/test-u16-strdup.c: New file.
7846
7847         Tests for module 'unistr/u8-strdup'.
7848         * modules/unistr/u8-strdup-tests: New file.
7849         * tests/unistr/test-u8-strdup.c: New file.
7850         * tests/unistr/test-strdup.h: New file.
7851
7852         Tests for module 'unistr/u32-strncmp'.
7853         * modules/unistr/u32-strncmp-tests: New file.
7854         * tests/unistr/test-u32-strncmp.c: New file.
7855
7856         Tests for module 'unistr/u16-strncmp'.
7857         * modules/unistr/u16-strncmp-tests: New file.
7858         * tests/unistr/test-u16-strncmp.c: New file.
7859
7860         Tests for module 'unistr/u8-strncmp'.
7861         * modules/unistr/u8-strncmp-tests: New file.
7862         * tests/unistr/test-u8-strncmp.c: New file.
7863         * tests/unistr/test-strncmp.h: New file.
7864
7865         Tests for module 'unistr/u32-strcoll'.
7866         * modules/unistr/u32-strcoll-tests: New file.
7867         * tests/unistr/test-u32-strcoll.c: New file.
7868
7869         Tests for module 'unistr/u16-strcoll'.
7870         * modules/unistr/u16-strcoll-tests: New file.
7871         * tests/unistr/test-u16-strcoll.c: New file.
7872
7873         Tests for module 'unistr/u8-strcoll'.
7874         * modules/unistr/u8-strcoll-tests: New file.
7875         * tests/unistr/test-u8-strcoll.c: New file.
7876
7877         Tests for module 'unistr/u32-strcmp'.
7878         * modules/unistr/u32-strcmp-tests: New file.
7879         * tests/unistr/test-u32-strcmp.c: New file.
7880         * tests/unistr/test-u32-strcmp.h: New file.
7881
7882         Tests for module 'unistr/u16-strcmp'.
7883         * modules/unistr/u16-strcmp-tests: New file.
7884         * tests/unistr/test-u16-strcmp.c: New file.
7885         * tests/unistr/test-u16-strcmp.h: New file.
7886
7887         Tests for module 'unistr/u8-strcmp'.
7888         * modules/unistr/u8-strcmp-tests: New file.
7889         * tests/unistr/test-u8-strcmp.c: New file.
7890         * tests/unistr/test-u8-strcmp.h: New file.
7891         * tests/unistr/test-strcmp.h: New file.
7892
7893         Tests for module 'unistr/u32-strncat'.
7894         * modules/unistr/u32-strncat-tests: New file.
7895         * tests/unistr/test-u32-strncat.c: New file.
7896
7897         Tests for module 'unistr/u16-strncat'.
7898         * modules/unistr/u16-strncat-tests: New file.
7899         * tests/unistr/test-u16-strncat.c: New file.
7900
7901         Tests for module 'unistr/u8-strncat'.
7902         * modules/unistr/u8-strncat-tests: New file.
7903         * tests/unistr/test-u8-strncat.c: New file.
7904         * tests/unistr/test-strncat.h: New file.
7905
7906         Tests for module 'unistr/u32-strcat'.
7907         * modules/unistr/u32-strcat-tests: New file.
7908         * tests/unistr/test-u32-strcat.c: New file.
7909
7910         Tests for module 'unistr/u16-strcat'.
7911         * modules/unistr/u16-strcat-tests: New file.
7912         * tests/unistr/test-u16-strcat.c: New file.
7913
7914         Tests for module 'unistr/u8-strcat'.
7915         * modules/unistr/u8-strcat-tests: New file.
7916         * tests/unistr/test-u8-strcat.c: New file.
7917         * tests/unistr/test-strcat.h: New file.
7918
7919         Tests for module 'unistr/u32-stpncpy'.
7920         * modules/unistr/u32-stpncpy-tests: New file.
7921         * tests/unistr/test-u32-stpncpy.c: New file.
7922
7923         Tests for module 'unistr/u16-stpncpy'.
7924         * modules/unistr/u16-stpncpy-tests: New file.
7925         * tests/unistr/test-u16-stpncpy.c: New file.
7926
7927         Tests for module 'unistr/u8-stpncpy'.
7928         * modules/unistr/u8-stpncpy-tests: New file.
7929         * tests/unistr/test-u8-stpncpy.c: New file.
7930         * tests/unistr/test-stpncpy.h: New file.
7931
7932         Tests for module 'unistr/u32-strncpy'.
7933         * modules/unistr/u32-strncpy-tests: New file.
7934         * tests/unistr/test-u32-strncpy.c: New file.
7935
7936         Tests for module 'unistr/u16-strncpy'.
7937         * modules/unistr/u16-strncpy-tests: New file.
7938         * tests/unistr/test-u16-strncpy.c: New file.
7939
7940         Tests for module 'unistr/u8-strncpy'.
7941         * modules/unistr/u8-strncpy-tests: New file.
7942         * tests/unistr/test-u8-strncpy.c: New file.
7943         * tests/unistr/test-strncpy.h: New file.
7944
7945         Tests for module 'unistr/u32-stpcpy'.
7946         * modules/unistr/u32-stpcpy-tests: New file.
7947         * tests/unistr/test-u32-stpcpy.c: New file.
7948
7949         Tests for module 'unistr/u16-stpcpy'.
7950         * modules/unistr/u16-stpcpy-tests: New file.
7951         * tests/unistr/test-u16-stpcpy.c: New file.
7952
7953         Tests for module 'unistr/u8-stpcpy'.
7954         * modules/unistr/u8-stpcpy-tests: New file.
7955         * tests/unistr/test-u8-stpcpy.c: New file.
7956         * tests/unistr/test-stpcpy.h: New file.
7957
7958         Tests for module 'unistr/u32-strcpy'.
7959         * modules/unistr/u32-strcpy-tests: New file.
7960         * tests/unistr/test-u32-strcpy.c: New file.
7961
7962         Tests for module 'unistr/u16-strcpy'.
7963         * modules/unistr/u16-strcpy-tests: New file.
7964         * tests/unistr/test-u16-strcpy.c: New file.
7965
7966         Tests for module 'unistr/u8-strcpy'.
7967         * modules/unistr/u8-strcpy-tests: New file.
7968         * tests/unistr/test-u8-strcpy.c: New file.
7969         * tests/unistr/test-strcpy.h: New file.
7970
7971         Tests for module 'unistr/u32-strnlen'.
7972         * modules/unistr/u32-strnlen-tests: New file.
7973         * tests/unistr/test-u32-strnlen.c: New file.
7974
7975         Tests for module 'unistr/u16-strnlen'.
7976         * modules/unistr/u16-strnlen-tests: New file.
7977         * tests/unistr/test-u16-strnlen.c: New file.
7978
7979         Tests for module 'unistr/u8-strnlen'.
7980         * modules/unistr/u8-strnlen-tests: New file.
7981         * tests/unistr/test-u8-strnlen.c: New file.
7982         * tests/unistr/test-strnlen.h: New file.
7983
7984         Tests for module 'unistr/u32-strlen'.
7985         * modules/unistr/u32-strlen-tests: New file.
7986         * tests/unistr/test-u32-strlen.c: New file.
7987
7988         Tests for module 'unistr/u16-strlen'.
7989         * modules/unistr/u16-strlen-tests: New file.
7990         * tests/unistr/test-u16-strlen.c: New file.
7991
7992         Tests for module 'unistr/u8-strlen'.
7993         * modules/unistr/u8-strlen-tests: New file.
7994         * tests/unistr/test-u8-strlen.c: New file.
7995
7996         Tests for module 'unistr/u32-prev'.
7997         * modules/unistr/u32-prev-tests: New file.
7998         * tests/unistr/test-u32-prev.c: New file.
7999
8000         Tests for module 'unistr/u16-prev'.
8001         * modules/unistr/u16-prev-tests: New file.
8002         * tests/unistr/test-u16-prev.c: New file.
8003
8004         Tests for module 'unistr/u8-prev'.
8005         * modules/unistr/u8-prev-tests: New file.
8006         * tests/unistr/test-u8-prev.c: New file.
8007
8008         Tests for module 'unistr/u32-next'.
8009         * modules/unistr/u32-next-tests: New file.
8010         * tests/unistr/test-u32-next.c: New file.
8011
8012         Tests for module 'unistr/u16-next'.
8013         * modules/unistr/u16-next-tests: New file.
8014         * tests/unistr/test-u16-next.c: New file.
8015
8016         Tests for module 'unistr/u8-next'.
8017         * modules/unistr/u8-next-tests: New file.
8018         * tests/unistr/test-u8-next.c: New file.
8019
8020         Tests for module 'unistr/u32-strmbtouc'.
8021         * modules/unistr/u32-strmbtouc-tests: New file.
8022         * tests/unistr/test-u32-strmbtouc.c: New file.
8023
8024         Tests for module 'unistr/u16-strmbtouc'.
8025         * modules/unistr/u16-strmbtouc-tests: New file.
8026         * tests/unistr/test-u16-strmbtouc.c: New file.
8027
8028         Tests for module 'unistr/u8-strmbtouc'.
8029         * modules/unistr/u8-strmbtouc-tests: New file.
8030         * tests/unistr/test-u8-strmbtouc.c: New file.
8031
8032         Tests for module 'unistr/u32-strmblen'.
8033         * modules/unistr/u32-strmblen-tests: New file.
8034         * tests/unistr/test-u32-strmblen.c: New file.
8035
8036         Tests for module 'unistr/u16-strmblen'.
8037         * modules/unistr/u16-strmblen-tests: New file.
8038         * tests/unistr/test-u16-strmblen.c: New file.
8039
8040         Tests for module 'unistr/u8-strmblen'.
8041         * modules/unistr/u8-strmblen-tests: New file.
8042         * tests/unistr/test-u8-strmblen.c: New file.
8043
8044         Tests for module 'unistr/u32-cpy-alloc'.
8045         * modules/unistr/u32-cpy-alloc-tests: New file.
8046         * tests/unistr/test-u32-cpy-alloc.c: New file.
8047
8048         Tests for module 'unistr/u16-cpy-alloc'.
8049         * modules/unistr/u16-cpy-alloc-tests: New file.
8050         * tests/unistr/test-u16-cpy-alloc.c: New file.
8051
8052         Tests for module 'unistr/u8-cpy-alloc'.
8053         * modules/unistr/u8-cpy-alloc-tests: New file.
8054         * tests/unistr/test-u8-cpy-alloc.c: New file.
8055         * tests/unistr/test-cpy-alloc.h: New file.
8056
8057         Tests for module 'unistr/u32-mbsnlen'.
8058         * modules/unistr/u32-mbsnlen-tests: New file.
8059         * tests/unistr/test-u32-mbsnlen.c: New file.
8060
8061         Tests for module 'unistr/u16-mbsnlen'.
8062         * modules/unistr/u16-mbsnlen-tests: New file.
8063         * tests/unistr/test-u16-mbsnlen.c: New file.
8064
8065         Tests for module 'unistr/u8-mbsnlen'.
8066         * modules/unistr/u8-mbsnlen-tests: New file.
8067         * tests/unistr/test-u8-mbsnlen.c: New file.
8068
8069         Tests for module 'unistr/u32-chr'.
8070         * modules/unistr/u32-chr-tests: New file.
8071         * tests/unistr/test-u32-chr.c: New file.
8072
8073         Tests for module 'unistr/u16-chr'.
8074         * modules/unistr/u16-chr-tests: New file.
8075         * tests/unistr/test-u16-chr.c: New file.
8076
8077         Tests for module 'unistr/u8-chr'.
8078         * modules/unistr/u8-chr-tests: New file.
8079         * tests/unistr/test-u8-chr.c: New file.
8080         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8081
8082         Tests for module 'unistr/u32-cmp2'.
8083         * modules/unistr/u32-cmp2-tests: New file.
8084         * tests/unistr/test-u32-cmp2.c: New file.
8085
8086         Tests for module 'unistr/u16-cmp2'.
8087         * modules/unistr/u16-cmp2-tests: New file.
8088         * tests/unistr/test-u16-cmp2.c: New file.
8089
8090         Tests for module 'unistr/u8-cmp2'.
8091         * modules/unistr/u8-cmp2-tests: New file.
8092         * tests/unistr/test-u8-cmp2.c: New file.
8093         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8094
8095         Tests for module 'unistr/u32-cmp'.
8096         * modules/unistr/u32-cmp-tests: New file.
8097         * tests/unistr/test-u32-cmp.c: New file.
8098
8099         Tests for module 'unistr/u16-cmp'.
8100         * modules/unistr/u16-cmp-tests: New file.
8101         * tests/unistr/test-u16-cmp.c: New file.
8102
8103         Tests for module 'unistr/u8-cmp'.
8104         * modules/unistr/u8-cmp-tests: New file.
8105         * tests/unistr/test-u8-cmp.c: New file.
8106         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8107
8108         Tests for module 'unistr/u32-set'.
8109         * modules/unistr/u32-set-tests: New file.
8110         * tests/unistr/test-u32-set.c: New file.
8111
8112         Tests for module 'unistr/u16-set'.
8113         * modules/unistr/u16-set-tests: New file.
8114         * tests/unistr/test-u16-set.c: New file.
8115
8116         Tests for module 'unistr/u8-set'.
8117         * modules/unistr/u8-set-tests: New file.
8118         * tests/unistr/test-u8-set.c: New file.
8119         * tests/unistr/test-set.h: New file.
8120
8121         Tests for module 'unistr/u32-move'.
8122         * modules/unistr/u32-move-tests: New file.
8123         * tests/unistr/test-u32-move.c: New file.
8124
8125         Tests for module 'unistr/u16-move'.
8126         * modules/unistr/u16-move-tests: New file.
8127         * tests/unistr/test-u16-move.c: New file.
8128
8129         Tests for module 'unistr/u8-move'.
8130         * modules/unistr/u8-move-tests: New file.
8131         * tests/unistr/test-u8-move.c: New file.
8132         * tests/unistr/test-move.h: New file.
8133
8134         Tests for module 'unistr/u32-cpy'.
8135         * modules/unistr/u32-cpy-tests: New file.
8136         * tests/unistr/test-u32-cpy.c: New file.
8137
8138         Tests for module 'unistr/u16-cpy'.
8139         * modules/unistr/u16-cpy-tests: New file.
8140         * tests/unistr/test-u16-cpy.c: New file.
8141
8142         Tests for module 'unistr/u8-cpy'.
8143         * modules/unistr/u8-cpy-tests: New file.
8144         * tests/unistr/test-u8-cpy.c: New file.
8145         * tests/unistr/test-cpy.h: New file.
8146
8147 2010-01-09  Bruno Haible  <bruno@clisp.org>
8148
8149         Tests for module 'unistr/u32-uctomb'.
8150         * modules/unistr/u32-uctomb-tests: New file.
8151         * tests/unistr/test-u32-uctomb.c: New file.
8152
8153         Tests for module 'unistr/u16-uctomb'.
8154         * modules/unistr/u16-uctomb-tests: New file.
8155         * tests/unistr/test-u16-uctomb.c: New file.
8156
8157         Tests for module 'unistr/u8-uctomb'.
8158         * modules/unistr/u8-uctomb-tests: New file.
8159         * tests/unistr/test-u8-uctomb.c: New file.
8160
8161         Tests for module 'unistr/u32-mbtoucr'.
8162         * modules/unistr/u32-mbtoucr-tests: New file.
8163         * tests/unistr/test-u32-mbtoucr.c: New file.
8164
8165         Tests for module 'unistr/u16-mbtoucr'.
8166         * modules/unistr/u16-mbtoucr-tests: New file.
8167         * tests/unistr/test-u16-mbtoucr.c: New file.
8168
8169         Tests for module 'unistr/u8-mbtoucr'.
8170         * modules/unistr/u8-mbtoucr-tests: New file.
8171         * tests/unistr/test-u8-mbtoucr.c: New file.
8172
8173         Tests for module 'unistr/u32-mbtouc'.
8174         * modules/unistr/u32-mbtouc-tests: New file.
8175         * tests/unistr/test-u32-mbtouc.c: New file.
8176
8177         Tests for module 'unistr/u16-mbtouc'.
8178         * modules/unistr/u16-mbtouc-tests: New file.
8179         * tests/unistr/test-u16-mbtouc.c: New file.
8180
8181         Tests for module 'unistr/u8-mbtouc'.
8182         * modules/unistr/u8-mbtouc-tests: New file.
8183         * tests/unistr/test-u8-mbtouc.c: New file.
8184
8185         Tests for module 'unistr/u32-mbtouc-unsafe'.
8186         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8187         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8188         * tests/unistr/test-u32-mbtouc.h: New file.
8189
8190         Tests for module 'unistr/u16-mbtouc-unsafe'.
8191         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8192         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8193         * tests/unistr/test-u16-mbtouc.h: New file.
8194
8195         Tests for module 'unistr/u8-mbtouc-unsafe'.
8196         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8197         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8198         * tests/unistr/test-u8-mbtouc.h: New file.
8199
8200         Tests for module 'unistr/u32-mblen'.
8201         * modules/unistr/u32-mblen-tests: New file.
8202         * tests/unistr/test-u32-mblen.c: New file.
8203
8204         Tests for module 'unistr/u16-mblen'.
8205         * modules/unistr/u16-mblen-tests: New file.
8206         * tests/unistr/test-u16-mblen.c: New file.
8207
8208         Tests for module 'unistr/u8-mblen'.
8209         * modules/unistr/u8-mblen-tests: New file.
8210         * tests/unistr/test-u8-mblen.c: New file.
8211
8212         Tests for module 'unistr/u32-to-u16'.
8213         * modules/unistr/u32-to-u16-tests: New file.
8214         * tests/unistr/test-u32-to-u16.c: New file.
8215
8216         Tests for module 'unistr/u32-to-u8'.
8217         * modules/unistr/u32-to-u8-tests: New file.
8218         * tests/unistr/test-u32-to-u8.c: New file.
8219
8220         Tests for module 'unistr/u16-to-u32'.
8221         * modules/unistr/u16-to-u32-tests: New file.
8222         * tests/unistr/test-u16-to-u32.c: New file.
8223
8224         Tests for module 'unistr/u16-to-u8'.
8225         * modules/unistr/u16-to-u8-tests: New file.
8226         * tests/unistr/test-u16-to-u8.c: New file.
8227
8228         Tests for module 'unistr/u8-to-u32'.
8229         * modules/unistr/u8-to-u32-tests: New file.
8230         * tests/unistr/test-u8-to-u32.c: New file.
8231
8232         Tests for module 'unistr/u8-to-u16'.
8233         * modules/unistr/u8-to-u16-tests: New file.
8234         * tests/unistr/test-u8-to-u16.c: New file.
8235
8236         Tests for module 'unistr/u32-check'.
8237         * modules/unistr/u32-check-tests: New file.
8238         * tests/unistr/test-u32-check.c: New file.
8239
8240         Tests for module 'unistr/u16-check'.
8241         * modules/unistr/u16-check-tests: New file.
8242         * tests/unistr/test-u16-check.c: New file.
8243
8244         Tests for module 'unistr/u8-check'.
8245         * modules/unistr/u8-check-tests: New file.
8246         * tests/unistr/test-u8-check.c: New file.
8247
8248         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8249         (category_equals): New function.
8250         (main): Add more tests.
8251         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8252
8253         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8254
8255 2010-01-10  Bruno Haible  <bruno@clisp.org>
8256
8257         unistr/u*-strcoll: Try harder to distinguish different strings.
8258         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8259         compare s1 and s2 to see if they are different.
8260
8261 2010-01-10  Bruno Haible  <bruno@clisp.org>
8262
8263         unistr/u*-stpncpy: Fix the return value.
8264         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8265         description of the return value consistent with stpncpy in glibc.
8266         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8267         written non-NUL unit.
8268
8269 2010-01-10  Bruno Haible  <bruno@clisp.org>
8270
8271         unistr/u*-next: Add missing dependencies.
8272         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8273         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8274         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8275
8276 2010-01-10  Bruno Haible  <bruno@clisp.org>
8277
8278         unistr/u8-mbsnlen: Fix return value for incomplete character.
8279         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8280         u8_mblen.
8281         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8282         Remove unistr/u8-mblen.
8283         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8284         u16_mblen.
8285         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8286         Remove unistr/u16-mblen.
8287
8288 2010-01-10  Bruno Haible  <bruno@clisp.org>
8289
8290         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8291         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8292         Reported by Brian Gough <bjg@gnu.org> and
8293         Chris Clayton <chris2553@googlemail.com> via
8294         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8295
8296 2010-01-09  Bruno Haible  <bruno@clisp.org>
8297
8298         unistr/u16-to-u32: Reject invalid input.
8299         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8300         u16_mbtouc.
8301         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8302         Remove unistr/u16-mbtouc.
8303
8304         unistr/u16-to-u8: Reject invalid input.
8305         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8306         u16_mbtouc.
8307         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8308         Remove unistr/u16-mbtouc.
8309
8310         unistr/u8-to-u32: Reject invalid input.
8311         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8312         u8_mbtouc.
8313         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8314         Remove unistr/u8-mbtouc.
8315
8316         unistr/u8-to-u16: Reject invalid input.
8317         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8318         u8_mbtouc.
8319         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8320         Remove unistr/u8-mbtouc.
8321
8322 2010-01-09  Bruno Haible  <bruno@clisp.org>
8323
8324         Tests for module 'getlogin'.
8325         * modules/getlogin-tests: New file.
8326         * tests/test-getlogin.c: New file.
8327
8328         New module 'getlogin'.
8329         * lib/unistd.in.h (getlogin): New declaration.
8330         * lib/getlogin.c: New file.
8331         * m4/getlogin.m4: New file.
8332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8333         HAVE_GETLOGIN.
8334         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8335         HAVE_GETLOGIN.
8336         * modules/getlogin: New file.
8337         * doc/posix-functions/getlogin.texi: Mention the new module.
8338         Reported by John W. Eaton <jwe@gnu.org>.
8339
8340 2010-01-09  Bruno Haible  <bruno@clisp.org>
8341
8342         getlogin_r: Support for native Windows.
8343         * lib/getlogin_r.c: Include <windows.h>
8344         (getlogin_r): Implement for native Windows.
8345         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8346         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8347         via John W. Eaton <jwe@gnu.org>.
8348
8349 2010-01-09  Bruno Haible  <bruno@clisp.org>
8350
8351         getlogin_r: Small fixes.
8352         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8353         succeeds.
8354         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8355         before testing whether getlogin_r is declared. No need to set
8356         HAVE_DECL_GETLOGIN_R to 1.
8357         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8358
8359 2010-01-09  Bruno Haible  <bruno@clisp.org>
8360
8361         * lib/unistd.in.h (getlogin_r): Add comment.
8362
8363 2010-01-09  Bruno Haible  <bruno@clisp.org>
8364
8365         Tests for module 'getlogin_r'.
8366         * modules/getlogin_r-tests: New file.
8367         * tests/test-getlogin_r.c: New file.
8368
8369 2010-01-09  Jim Meyering  <meyering@redhat.com>
8370
8371         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8372         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8373         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8374
8375 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8376
8377         * lib/dup2.c (rpl_dup2): Improve comment.
8378
8379 2010-01-08  Eric Blake  <ebb9@byu.net>
8380
8381         maint.mk: allow packages to add makefile @@ exceptions
8382         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8383         (sc_makefile_check): Rename...
8384         (sc_makefile_at_at_check): ...to this, and use hook.
8385
8386         dup2: work around mingw bug
8387         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8388         Reported by Simon Josefsson.
8389
8390 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8391
8392         glob: Fix C++ compilation.
8393         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8394         C++.
8395
8396 2010-01-07  Bruno Haible  <bruno@clisp.org>
8397
8398         Fix indentation of wctype.in.h, broken since 2007-01-06.
8399         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8400
8401 2010-01-07  Bruno Haible  <bruno@clisp.org>
8402
8403         mbslen: Avoid collision with system function.
8404         * lib/string.in.h [MirBSD]: Include <wchar.h>.
8405         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
8406         * m4/mbslen.m4: New file.
8407         * modules/mbslen (Files): Add it.
8408         (configure.ac): Invoke gl_MBSLEN.
8409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
8410         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
8411         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
8412         via Ian Beckwith <ianb@erislabs.net>.
8413
8414 2010-01-07  Bruno Haible  <bruno@clisp.org>
8415
8416         dirent: Document the last fix.
8417         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
8418
8419 2010-01-07  Bruno Haible  <bruno@clisp.org>
8420
8421         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
8422         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
8423         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
8424         va_list are defined.
8425         * doc/posix-headers/stdio.texi: Document the bug of missing types.
8426         Reported by Eric Blake.
8427
8428 2010-01-07  Bruno Haible  <bruno@clisp.org>
8429
8430         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
8431         * modules/xlist (Depends-on): Add 'list',
8432         * modules/xoset (Depends-on): Add 'oset'.
8433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8434
8435 2010-01-07  Bruno Haible  <bruno@clisp.org>
8436
8437         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
8438         * doc/posix-functions/strncasecmp.texi: Likewise.
8439
8440 2010-01-07  Bruno Haible  <bruno@clisp.org>
8441
8442         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
8443
8444 2010-01-07  John W. Eaton  <jwe@octave.org>
8445
8446         wctype: allow C++ use
8447         * lib/wctype.in.h: Add extern "C" block for C++.
8448
8449 2010-01-06  Eric Blake  <ebb9@byu.net>
8450
8451         maint.mk: detect incorrect GFDL usage
8452         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
8453
8454 2010-01-06  Jim Meyering  <meyering@redhat.com>
8455         and Eric Blake  <ebb9@byu.net>
8456
8457         maint.mk: ignore multi-line copyright in NEWS
8458         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
8459
8460 2010-01-06  Eric Blake  <ebb9@byu.net>
8461
8462         select: add missing dependency
8463         * modules/select-tests (Depends-on): Move sockets dependency...
8464         * modules/select (Depends-on): ...here.
8465         Reported by Ian Beckwith.
8466
8467         doc: regenerate INSTALL
8468         * doc/INSTALL: Reflect recent autoconf update.
8469         * doc/INSTALL.ISO: Likewise.
8470         * doc/INSTALL.UTF-8: Likewise.
8471
8472         pread: fix compilation on glibc
8473         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
8474         Reported by Ralf Wildenhues.
8475
8476         dirent: fix test failure
8477         * lib/dirent.in.h (includes): Guarantee ino_t.
8478         Reported by Ralf Wildenhues.
8479
8480 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
8481
8482         linkat, renameat: avoid bad free
8483         * lib/at-func2.c (at_func2): Fix typo.
8484         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
8485
8486 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8487
8488         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
8489         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
8490         to avoid failure of symlink test later.
8491
8492 2010-01-06  Eric Blake  <ebb9@byu.net>
8493
8494         stdio, unistd: guarantee ssize_t
8495         * lib/unistd.in.h (includes): Ensure that types required by POSIX
8496         2008 are exposed when needed.
8497         * lib/stdio.in.h (includes): Likewise.
8498         Reported by Ralf Wildenhues.
8499
8500 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
8501
8502         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
8503         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
8504         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
8505
8506 2010-01-06  Jim Meyering  <meyering@redhat.com>
8507
8508         readtokens: this module *does* require xalloc.h
8509         It uses only functions that were omitted by the old syntax-check rule.
8510         * lib/readtokens.c: Include "xalloc.h" once again.
8511         * modules/readtokens (Depends-on): Add xalloc.
8512         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
8513
8514 2010-01-05  Eric Blake  <ebb9@byu.net>
8515
8516         maint: support 'make announcement' from a VPATH build
8517         * top/maint.mk (announcement): Look for correct NEWS file.
8518
8519 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
8520
8521         utimens (fdutimens): ignore a negative FD, per contract
8522         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
8523         when we have a valid file descriptor.  Otherwise, using a brand
8524         new glibc (with just-patched futimens that now fails with EBADF)
8525         would cause this function to fail with ENOSYS.
8526         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
8527         See also http://bugzilla.redhat.com/552320.
8528
8529 2010-01-05  Eric Blake  <ebb9@byu.net>
8530
8531         strcase: document what it provides
8532         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
8533         gnulib module.
8534         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
8535         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
8536
8537 2010-01-05  Jim Meyering  <meyering@redhat.com>
8538
8539         maint: remove useless inclusions of "xalloc.h"
8540         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
8541         * lib/readtokens.c: Likewise.
8542         * lib/same.c: Likewise.
8543         * modules/getloadavg (Depends-on): Remove xalloc.
8544         * modules/readtokens: Likewise.
8545         * modules/same: Likewise.
8546
8547         maint.mk: include 4 more function names in alloca.h-checking regexp
8548         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
8549         regexp.  Before, we would give a false-positive (saying alloca.h
8550         is included unnecessarily) when the only uses involved omitted symbols.
8551
8552         xalloc.h: use consistent formatting
8553         * lib/xalloc.h: Move declarations to start in the first column.
8554
8555 2010-01-05  Eric Blake  <ebb9@byu.net>
8556
8557         mkdir: avoid xalloc
8558         * lib/mkdir.c (includes): Drop unused header.
8559         Reported by John W. Eaton.
8560
8561 2010-01-04  Jim Meyering  <meyering@redhat.com>
8562
8563         nl_langinfo: avoid configure-time syntax error
8564         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
8565         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
8566         the empty string.  Don't let that provoke a shell syntax error.
8567
8568         regcomp, regexec, fnmatch: avoid array bounds read error
8569         * lib/regcomp.c (build_equiv_class): From glibc:
8570         Use only the low 24 bits of a findidx return value as an index
8571         into the weights array.  Patch by Ulrich Drepper:
8572         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
8573         * lib/regexec.c (check_node_accept_bytes): Likewise.
8574         * lib/fnmatch_loop.c (FCT): Likewise.
8575
8576         regcomp: skip collseq lookup when there are no rules
8577         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
8578         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
8579
8580         regcomp: recognize ill-formed { } expressions
8581         * lib/regcomp.c (parse_dup_op): From glibc:
8582         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
8583
8584         regcomp: fix typo in comment
8585         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
8586         s/satisfy/satisfies/.
8587
8588         regcomp: sync from glibc: remove dead store
8589         * lib/regcomp.c (duplicate_node_closure): Remove useless
8590         search_duplicated_node call and dead store.
8591
8592         regcomp: sync from glibc; always use nl_langinfo
8593         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
8594         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
8595         * modules/regex (Depends-on): Add nl_langinfo.
8596
8597 2010-01-04  Eric Blake  <ebb9@byu.net>
8598
8599         fdopendir: fix configure test
8600         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
8601
8602 2010-01-01  Bruno Haible  <bruno@clisp.org>
8603
8604         wchar: Remove unused configure check.
8605         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
8606
8607 2010-01-01  Eric Blake  <ebb9@byu.net>
8608
8609         headers: make check of system header explicit
8610         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
8611         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
8612         ourselves.
8613         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8614         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8615         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
8616         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
8617         internals.
8618         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
8619         missing.
8620         Suggested by Bruno Haible.
8621
8622 2010-01-01  Jim Meyering  <meyering@redhat.com>
8623
8624         ChangeLog: tweak to eliminate unnecessary copyright line
8625         * ChangeLog: Remove a copyright line that was mistakenly updated
8626         by today's update-copyright run.  Reported by Eric Blake.
8627
8628         test-update-copyright: don't let envvar setting cause test failure
8629         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8630
8631 2010-01-01  Bruno Haible  <bruno@clisp.org>
8632
8633         localename: Avoid gcc warning.
8634         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
8635         function if it is not used.
8636
8637 2010-01-01  Jim Meyering  <meyering@redhat.com>
8638
8639         update nearly all FSF copyright year lists to include 2010
8640         Use the same procedure as for 2009, outlined in
8641         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
8642
8643         version-etc: set COPYRIGHT_YEAR to 2010
8644         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
8645
8646 2009-12-31  Eric Blake  <ebb9@byu.net>
8647
8648         doc: correct availability of cygwin 1.5.x getopt
8649         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
8650         variables.
8651         * doc/posix-functions/opterr.texi (opterr): Likewise.
8652         * doc/posix-functions/optind.texi (optind): Likewise.
8653         * doc/posix-functions/optopt.texi (optopt): Likewise.
8654         * doc/posix-functions/tzname.texi (tzname): Likewise.
8655
8656         openat: update maintainer
8657         * modules/openat (Maintainer): Add myself.
8658
8659         utimens: avoid shadowing warning
8660         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
8661         buffers into one, to avoid shadowing, as well as avoiding a
8662         redundant stat.
8663         Reported by Jim Meyering.
8664
8665         test-dup2: avoid compiler warning
8666         * tests/test-dup2.c (is_inheritable): Only define if used.
8667
8668 2010-01-01  Bruno Haible  <bruno@clisp.org>
8669
8670         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
8671         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
8672         defined, use wctomb instead of wcrtomb.
8673
8674 2010-01-01  Bruno Haible  <bruno@clisp.org>
8675
8676         iconv: Reject native Solaris iconv.
8677         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
8678         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
8679
8680 2009-12-31  Bruno Haible  <bruno@clisp.org>
8681
8682         * tests/test-signal.c (main): Remove test of 'SIG'.
8683
8684 2009-12-31  Bruno Haible  <bruno@clisp.org>
8685
8686         spawn: Fix incomplete fix.
8687         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8688         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8689         warnings for GNULIB_POSIXCHECK again.
8690         Reported by Eric Blake.
8691
8692 2009-12-31  Bruno Haible  <bruno@clisp.org>
8693
8694         Avoid namespace pollution on glibc systems.
8695         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
8696         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
8697         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
8698         glibc systems.
8699
8700 2009-12-31  Bruno Haible  <bruno@clisp.org>
8701
8702         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
8703         (gl_REPLACE_WCHAR_H): Turn into a no-op.
8704         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
8705         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8706         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8707         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8708         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8709
8710 2009-12-31  Bruno Haible  <bruno@clisp.org>
8711
8712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8713         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
8714         afterwards.
8715
8716 2009-12-31  Bruno Haible  <bruno@clisp.org>
8717
8718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
8719         SYS_UTSNAME_H.
8720
8721 2009-12-31  Bruno Haible  <bruno@clisp.org>
8722
8723         spawn: Fix misapplied patch.
8724         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8725         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8726         warnings for GNULIB_POSIXCHECK.
8727
8728 2009-12-31  Bruno Haible  <bruno@clisp.org>
8729
8730         times: Update after sys_times changed.
8731         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
8732         * modules/times (Files): Add it.
8733         (configure.ac): Invoke gl_FUNC_TIMES.
8734
8735 2009-12-31  Bruno Haible  <bruno@clisp.org>
8736
8737         Use AC_C_INLINE where necessary.
8738         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
8739         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8741         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8742         * m4/mbfile.m4 (gl_MBFILE): Likewise.
8743         * m4/mbiter.m4 (gl_MBITER): Likewise.
8744         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8745         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8746         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
8747         * modules/u64 (configure.ac): Likewise.
8748
8749 2009-12-31  Bruno Haible  <bruno@clisp.org>
8750
8751         Use AC_C_INLINE instead of module 'inline' where possible.
8752         * modules/inline (Description): Clarify purpose.
8753         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
8754         * modules/count-one-bits (Depends-on): Remove inline.
8755         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
8756         * modules/openat (Depends-on): Remove inline.
8757         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
8758         instead of depending on module 'inline'.
8759         * modules/filevercmp (Depends-on, configure.ac): Likewise.
8760         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
8761         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
8762         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
8763         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
8764         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
8765         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
8766         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
8767         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
8768         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
8769         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
8770         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
8771         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
8772         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
8773         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
8774         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
8775         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
8776         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
8777         Likewise.
8778         * modules/unictype/property-ascii-hex-digit (Depends-on,
8779         configure.ac): Likewise.
8780         * modules/unictype/property-bidi-arabic-digit (Depends-on,
8781         configure.ac): Likewise.
8782         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
8783         configure.ac): Likewise.
8784         * modules/unictype/property-bidi-block-separator (Depends-on,
8785         configure.ac): Likewise.
8786         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
8787         configure.ac): Likewise.
8788         * modules/unictype/property-bidi-common-separator (Depends-on,
8789         configure.ac): Likewise.
8790         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
8791         Likewise.
8792         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
8793         configure.ac): Likewise.
8794         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
8795         configure.ac): Likewise.
8796         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
8797         configure.ac): Likewise.
8798         * modules/unictype/property-bidi-european-digit (Depends-on,
8799         configure.ac): Likewise.
8800         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
8801         configure.ac): Likewise.
8802         * modules/unictype/property-bidi-left-to-right (Depends-on,
8803         configure.ac): Likewise.
8804         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
8805         configure.ac): Likewise.
8806         * modules/unictype/property-bidi-other-neutral (Depends-on,
8807         configure.ac): Likewise.
8808         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
8809         Likewise.
8810         * modules/unictype/property-bidi-segment-separator (Depends-on,
8811         configure.ac): Likewise.
8812         * modules/unictype/property-bidi-whitespace (Depends-on,
8813         configure.ac): Likewise.
8814         * modules/unictype/property-combining (Depends-on, configure.ac):
8815         Likewise.
8816         * modules/unictype/property-composite (Depends-on, configure.ac):
8817         Likewise.
8818         * modules/unictype/property-currency-symbol (Depends-on,
8819         configure.ac): Likewise.
8820         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
8821         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
8822         Likewise.
8823         * modules/unictype/property-default-ignorable-code-point (Depends-on,
8824         configure.ac): Likewise.
8825         * modules/unictype/property-deprecated (Depends-on, configure.ac):
8826         Likewise.
8827         * modules/unictype/property-diacritic (Depends-on, configure.ac):
8828         Likewise.
8829         * modules/unictype/property-extender (Depends-on, configure.ac):
8830         Likewise.
8831         * modules/unictype/property-format-control (Depends-on, configure.ac):
8832         Likewise.
8833         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
8834         Likewise.
8835         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
8836         Likewise.
8837         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
8838         Likewise.
8839         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
8840         Likewise.
8841         * modules/unictype/property-hyphen (Depends-on, configure.ac):
8842         Likewise.
8843         * modules/unictype/property-id-continue (Depends-on, configure.ac):
8844         Likewise.
8845         * modules/unictype/property-id-start (Depends-on, configure.ac):
8846         Likewise.
8847         * modules/unictype/property-ideographic (Depends-on, configure.ac):
8848         Likewise.
8849         * modules/unictype/property-ids-binary-operator (Depends-on,
8850         configure.ac): Likewise.
8851         * modules/unictype/property-ids-trinary-operator (Depends-on,
8852         configure.ac): Likewise.
8853         * modules/unictype/property-ignorable-control (Depends-on,
8854         configure.ac): Likewise.
8855         * modules/unictype/property-iso-control (Depends-on, configure.ac):
8856         Likewise.
8857         * modules/unictype/property-join-control (Depends-on, configure.ac):
8858         Likewise.
8859         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
8860         Likewise.
8861         * modules/unictype/property-line-separator (Depends-on, configure.ac):
8862         Likewise.
8863         * modules/unictype/property-logical-order-exception (Depends-on,
8864         configure.ac): Likewise.
8865         * modules/unictype/property-lowercase (Depends-on, configure.ac):
8866         Likewise.
8867         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
8868         * modules/unictype/property-non-break (Depends-on, configure.ac):
8869         Likewise.
8870         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
8871         Likewise.
8872         * modules/unictype/property-numeric (Depends-on, configure.ac):
8873         Likewise.
8874         * modules/unictype/property-other-alphabetic (Depends-on,
8875         configure.ac): Likewise.
8876         * modules/unictype/property-other-default-ignorable-code-point
8877         (Depends-on, configure.ac): Likewise.
8878         * modules/unictype/property-other-grapheme-extend (Depends-on,
8879         configure.ac): Likewise.
8880         * modules/unictype/property-other-id-continue (Depends-on,
8881         configure.ac): Likewise.
8882         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
8883         Likewise.
8884         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
8885         Likewise.
8886         * modules/unictype/property-other-math (Depends-on, configure.ac):
8887         Likewise.
8888         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
8889         Likewise.
8890         * modules/unictype/property-paired-punctuation (Depends-on,
8891         configure.ac): Likewise.
8892         * modules/unictype/property-paragraph-separator (Depends-on,
8893         configure.ac): Likewise.
8894         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
8895         Likewise.
8896         * modules/unictype/property-pattern-white-space (Depends-on,
8897         configure.ac): Likewise.
8898         * modules/unictype/property-private-use (Depends-on, configure.ac):
8899         Likewise.
8900         * modules/unictype/property-punctuation (Depends-on, configure.ac):
8901         Likewise.
8902         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
8903         Likewise.
8904         * modules/unictype/property-radical (Depends-on, configure.ac):
8905         Likewise.
8906         * modules/unictype/property-sentence-terminal (Depends-on,
8907         configure.ac): Likewise.
8908         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
8909         Likewise.
8910         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
8911         * modules/unictype/property-terminal-punctuation (Depends-on,
8912         configure.ac): Likewise.
8913         * modules/unictype/property-titlecase (Depends-on, configure.ac):
8914         Likewise.
8915         * modules/unictype/property-unassigned-code-value (Depends-on,
8916         configure.ac): Likewise.
8917         * modules/unictype/property-unified-ideograph (Depends-on,
8918         configure.ac): Likewise.
8919         * modules/unictype/property-uppercase (Depends-on, configure.ac):
8920         Likewise.
8921         * modules/unictype/property-variation-selector (Depends-on,
8922         configure.ac): Likewise.
8923         * modules/unictype/property-white-space (Depends-on, configure.ac):
8924         Likewise.
8925         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
8926         Likewise.
8927         * modules/unictype/property-xid-start (Depends-on, configure.ac):
8928         Likewise.
8929         * modules/unictype/property-zero-width (Depends-on, configure.ac):
8930         Likewise.
8931         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
8932         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
8933         Likewise.
8934
8935 2009-12-31  Bruno Haible  <bruno@clisp.org>
8936
8937         Remove unnecessary AC_C_INLINE invocation.
8938         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
8939         since 2009-08-21.
8940
8941 2009-12-31  Jim Meyering  <meyering@redhat.com>
8942
8943         maint.mk: don't require explicit gpg_key_ID in cfg.mk
8944         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
8945         With this change, we can all remove the gpg_key_ID = ... definition
8946         from our respective cfg.mk files.
8947
8948         maint.mk: create announcement template in ~/, not in /tmp
8949         * top/maint.mk (emit_upload_commands): Adjust.
8950         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
8951         Remove temporary file, .ci-msg.
8952
8953 2009-12-31  Eric Blake  <ebb9@byu.net>
8954
8955         link-warning: always build headers with link warnings
8956         * modules/arpa_inet (Makefile.am): Always build replacement
8957         header.
8958         * modules/ctype (Makefile.am): Likewise.
8959         * modules/dirent (Makefile.am): Likewise.
8960         * modules/inttypes (Makefile.am): Likewise.
8961         * modules/langinfo (Makefile.am): Likewise.
8962         * modules/locale (Makefile.am): Likewise.
8963         * modules/spawn (Makefile.am): Likewise.
8964         * modules/sys_file (Makefile.am): Likewise.
8965         * modules/sys_ioctl (Makefile.am): Likewise.
8966         * modules/sys_select (Makefile.am): Likewise.
8967         * modules/sys_socket (Makefile.am): Likewise.
8968         * modules/sys_times (Makefile.am): Likewise.
8969         * modules/sys_utsname (Makefile.am): Likewise.
8970         * modules/sys_wait (Makefile.am): Likewise.
8971         * modules/wchar (Makefile.am): Likewise.
8972         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8973         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8974         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8975         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8976         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8977         Likewise.
8978         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8979         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8980         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8981         Likewise.
8982         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8983         Likewise.
8984         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8985         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8986         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8988         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8989         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8990         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8991         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8992         (gl_WCHAR_H_DEFAULTS): Likewise.
8993
8994 2009-12-31  Eric Blake  <ebb9@byu.net>
8995
8996         signal, spawn: use link warnings
8997         * lib/signal.in.h (sigset_t): Make unconditional.
8998         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8999         (sigpending, sigprocmask, sigaction): Add link warnings.
9000         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9001         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9002         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9003         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9004         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9005         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9006         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9007         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9008         (posix_spawn_file_actions_destroy)
9009         (posix_spawn_file_actions_addopen)
9010         (posix_spawn_file_actions_addclose)
9011         (posix_spawn_file_actions_adddup2): Likewise.
9012         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9013         * tests/test-signal.c (main): Enhance test.
9014
9015         spawn: improve wrapper support
9016         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9017         (gl_SPAWN_H_DEFAULTS): New defaults.
9018         * modules/spawn (Makefile.am): Substitute them.
9019         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9020         Only declare if missing or broken.
9021
9022         sys_times, sys_utsname: use include_next
9023         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9024         header.
9025         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9026         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9027         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9028         * modules/sys_times (Depends-on): Add include_next.
9029         (Makefile.am): Substitute additional values.
9030         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9031         * lib/sys_times.in.h (includes): Include native header, if
9032         available.
9033         * lib/sys_utsname.in.h (includes): Likewise.
9034         * tests/test-sys_times.c (main): Enhance test.
9035
9036         fdutimensat: revert prior patch
9037         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9038         utimens.h.
9039         Reported by Bruno Haible.
9040
9041 2009-12-30  Eric Blake  <ebb9@byu.net>
9042
9043         sys_wait: drop link-warning dependency
9044         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9045         link-warning efforts.
9046         * lib/sys_wait.in.h: Likewise.
9047
9048         fdutimensat: remove bogus dependency
9049         * modules/fdutimensat (Depends-on): Drop inline.
9050
9051         unistd: fix typo
9052         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9053
9054 2009-12-30  Bruno Haible  <bruno@clisp.org>
9055
9056         Fix compilation error with Solaris cc.
9057         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9058         * lib/unicase/u16-is-invariant.c: Likewise.
9059         * lib/unicase/u32-is-invariant.c: Likewise.
9060         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9061
9062 2009-12-30  Bruno Haible  <bruno@clisp.org>
9063
9064         Fix test crash.
9065         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9066         locales.
9067         Reported by Simon Josefsson <simon@josefsson.org>.
9068
9069 2009-12-30  Bruno Haible  <bruno@clisp.org>
9070
9071         Fix compilation error on most platforms.
9072         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9073         Reported by Simon Josefsson <simon@josefsson.org>
9074         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9075
9076 2009-12-30  Eric Blake  <ebb9@byu.net>
9077
9078         futimens, utimensat: work around ntfs-3g bug
9079         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9080         a ctime bug is present, and expand workaround to cover ntfs-3g.
9081         * lib/utimens.c (fdutimens, lutimens): Likewise.
9082         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9083         (validate_timespec): Adjust return value.
9084         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9085         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9086         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9087
9088 2009-12-29  Eric Blake  <ebb9@byu.net>
9089
9090         link-warning: make usage consistent
9091         * modules/ctype (Depends-on): Add link-warning.
9092         (Makefile.am): Update rules accordingly.
9093         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9094         * modules/locale (Depends-on, Makefile.am): Likewise.
9095         * modules/sys_file (Makefile.am): Likewise.
9096         * modules/getopt-posix (Makefile.am): Delete unused link warning
9097         efforts.
9098         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9099         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9100         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9101         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9102
9103         stdio: remove unused variables
9104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9105         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9106         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9107
9108         tests: test more substitute headers
9109         * modules/ctype-tests: New file.
9110         * modules/dirent-tests: Likewise.
9111         * modules/spawn-tests: Likewise.
9112         * modules/sys_file-tests: Likewise.
9113         * modules/sys_ioctl-tests: Likewise.
9114         * modules/sys_wait-tests: Likewise.
9115         * tests/test-ctype.c: Likewise.
9116         * tests/test-dirent.c: Likewise.
9117         * tests/test-spawn.c: Likewise.
9118         * tests/test-sys_file.c: Likewise.
9119         * tests/test-sys_ioctl.c: Likewise.
9120         * tests/test-sys_wait.c: Likewise.
9121         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9122         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9123         whether or not flock is in use.
9124
9125         tests: remove License section from module
9126         * modules/arpa_inet-tests: Remove unneeded section.
9127         * modules/byteswap-tests: Likewise.
9128         * modules/ceilf-tests: Likewise.
9129         * modules/ceill-tests: Likewise.
9130         * modules/crypto/des-tests: Likewise.
9131         * modules/crypto/gc-arcfour-tests: Likewise.
9132         * modules/crypto/gc-arctwo-tests: Likewise.
9133         * modules/crypto/gc-des-tests: Likewise.
9134         * modules/crypto/gc-hmac-md5-tests: Likewise.
9135         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9136         * modules/crypto/gc-md2-tests: Likewise.
9137         * modules/crypto/gc-md4-tests: Likewise.
9138         * modules/crypto/gc-md5-tests: Likewise.
9139         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9140         * modules/crypto/gc-rijndael-tests: Likewise.
9141         * modules/crypto/gc-sha1-tests: Likewise.
9142         * modules/crypto/gc-tests: Likewise.
9143         * modules/crypto/md2-tests: Likewise.
9144         * modules/crypto/md4-tests: Likewise.
9145         * modules/fcntl-h-tests: Likewise.
9146         * modules/floorf-tests: Likewise.
9147         * modules/floorl-tests: Likewise.
9148         * modules/frexp-nolibm-tests: Likewise.
9149         * modules/frexp-tests: Likewise.
9150         * modules/frexpl-nolibm-tests: Likewise.
9151         * modules/frexpl-tests: Likewise.
9152         * modules/getaddrinfo-tests: Likewise.
9153         * modules/inttypes-tests: Likewise.
9154         * modules/isfinite-tests: Likewise.
9155         * modules/isinf-tests: Likewise.
9156         * modules/ldexpl-tests: Likewise.
9157         * modules/locale-tests: Likewise.
9158         * modules/math-tests: Likewise.
9159         * modules/netdb-tests: Likewise.
9160         * modules/netinet_in-tests: Likewise.
9161         * modules/printf-frexp-tests: Likewise.
9162         * modules/printf-frexpl-tests: Likewise.
9163         * modules/priv-set-tests: Likewise.
9164         * modules/random_r-tests: Likewise.
9165         * modules/round-tests: Likewise.
9166         * modules/roundf-tests: Likewise.
9167         * modules/roundl-tests: Likewise.
9168         * modules/search-tests: Likewise.
9169         * modules/select-tests: Likewise.
9170         * modules/signal-tests: Likewise.
9171         * modules/stdbool-tests: Likewise.
9172         * modules/stddef-tests: Likewise.
9173         * modules/stdint-tests: Likewise.
9174         * modules/stdio-tests: Likewise.
9175         * modules/stdlib-tests: Likewise.
9176         * modules/string-tests: Likewise.
9177         * modules/strings-tests: Likewise.
9178         * modules/sys_select-tests: Likewise.
9179         * modules/sys_socket-tests: Likewise.
9180         * modules/sys_stat-tests: Likewise.
9181         * modules/sys_time-tests: Likewise.
9182         * modules/sys_utsname-tests: Likewise.
9183         * modules/sysexits-tests: Likewise.
9184         * modules/time-tests: Likewise.
9185         * modules/trunc-tests: Likewise.
9186         * modules/truncf-tests: Likewise.
9187         * modules/truncl-tests: Likewise.
9188         * modules/tsearch-tests: Likewise.
9189         * modules/unistd-tests: Likewise.
9190         * modules/wchar-tests: Likewise.
9191         * modules/wctype-tests: Likewise.
9192
9193         tests: fix license on several tests
9194         * tests/test-des.c: Update to GPLv3+.
9195         * tests/test-flock.c: Likewise.
9196         * tests/test-fsync.c: Likewise.
9197         * tests/test-futimens.h: Likewise.
9198         * tests/test-gc-arcfour.c: Likewise.
9199         * tests/test-gc-arctwo.c: Likewise.
9200         * tests/test-gc-des.c: Likewise.
9201         * tests/test-gc-hmac-md5.c: Likewise.
9202         * tests/test-gc-hmac-sha1.c: Likewise.
9203         * tests/test-gc-md2.c: Likewise.
9204         * tests/test-gc-md4.c: Likewise.
9205         * tests/test-gc-md5.c: Likewise.
9206         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9207         * tests/test-gc-rijndael.c: Likewise.
9208         * tests/test-gc-sha1.c: Likewise.
9209         * tests/test-gc.c: Likewise.
9210         * tests/test-getcwd.c: Likewise.
9211         * tests/test-link.c: Likewise.
9212         * tests/test-link.h: Likewise.
9213         * tests/test-lutimens.h: Likewise.
9214         * tests/test-md2.c: Likewise.
9215         * tests/test-md4.c: Likewise.
9216         * tests/test-mkdir.h: Likewise.
9217         * tests/test-rename.c: Likewise.
9218         * tests/test-rename.h: Likewise.
9219         * tests/test-safe-alloc.c: Likewise.
9220         * tests/test-utimens-common.h: Likewise.
9221         * tests/test-utimens.h: Likewise.
9222
9223         maint: sync license texts
9224         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9225         * doc/gpl-3.0.texi: Revert copyright year update.
9226         * doc/lgpl-3.0.texi: Likewise.
9227
9228 2009-12-29  Jim Meyering  <meyering@redhat.com>
9229
9230         update nearly all FSF copyright year lists to include 2009
9231         The files named by the following are exempted:
9232             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9233               test -f "$dst" && { echo "$dst"; continue; }
9234               test -d "$dst" || continue
9235               echo "$dst"/$(basename "$src")
9236             done > exempt
9237             git ls-files tests/unictype >> exempt
9238         In the remaining files, convert to all-interval notation if
9239         - there is already at least one year interval like 2000-2003
9240         - the file is maintained by me
9241         - the file is in lib/uni*/, where that style already prevails
9242         Otherwise, use update-copyright's default.
9243
9244 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9245         and Eric Blake  <ebb9@byu.net>
9246
9247         tests: don't require debug system() to pass
9248         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9249         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9250         * tests/test-unlink.h (test_unlink_func): Likewise.
9251         * tests/test-fstatat.c (main): ...into callers.
9252         * tests/test-lstat.c (main): Likewise.
9253         * tests/test-rmdir.c (main): Likewise.
9254         * tests/test-unlink.c (main): Likewise.
9255         * tests/test-unlinkat.c (main): Likewise.
9256         * tests/test-areadlink-with-size.c (main): Don't require a
9257         debug-only system call to pass, aiding cross-testing to mingw.
9258         * tests/test-areadlink.c (main): Likewise.
9259         * tests/test-areadlinkat-with-size.c (main): Likewise.
9260         * tests/test-areadlinkat.c (main): Likewise.
9261         * tests/test-canonicalize-lgpl.c (main): Likewise.
9262         * tests/test-canonicalize.c (main): Likewise.
9263         * tests/test-chown.c (main): Likewise.
9264         * tests/test-fchownat.c (main): Likewise.
9265         * tests/test-lchown.c (main): Likewise.
9266         * tests/test-fdutimensat.c (main): Likewise.
9267         * tests/test-futimens.c (main): Likewise.
9268         * tests/test-link.c (main): Likewise.
9269         * tests/test-linkat.c (main): Likewise.
9270         * tests/test-mkdir.c (main): Likewise.
9271         * tests/test-mkdirat.c (main): Likewise.
9272         * tests/test-mkfifo.c (main): Likewise.
9273         * tests/test-mkfifoat.c (main): Likewise.
9274         * tests/test-mknod.c (main): Likewise.
9275         * tests/test-readlink.c (main): Likewise.
9276         * tests/test-remove.c (main): Likewise.
9277         * tests/test-rename.c (main): Likewise.
9278         * tests/test-renameat.c (main): Likewise.
9279         * tests/test-symlink.c (main): Likewise.
9280         * tests/test-symlinkat.c (main): Likewise.
9281         * tests/test-utimens.c (main): Likewise.
9282         * tests/test-utimensat.c (main): Likewise.
9283
9284 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9285
9286         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9287         on $(UNUSED_PARAMETER_H) to avoid build failure.
9288
9289 2009-12-28  Jim Meyering  <meyering@redhat.com>
9290
9291         update-copyright: you may specify a max. line length other than 72
9292         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9293
9294         maint: use consistent FSF copyright line syntax
9295         * lib/posixtm.c: Add missing comma in FSF copyright line.
9296         * lib/posixtm.h: Likewise.
9297         * lib/getugroups.c: Add missing ", Inc.".
9298
9299         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9300         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9301         FSF copyright line.  Remove trailing blanks.
9302
9303 2009-12-28  Eric Blake  <ebb9@byu.net>
9304
9305         test-dup2: reduce dependencies
9306         * modules/cloexec (Configure.ac): Set witness.
9307         * modules/dup2-tests (Depends-on): Drop cloexec.
9308         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9309         not present.
9310         Suggested by Bruno Haible.
9311
9312 2009-12-26  Bruno Haible  <bruno@clisp.org>
9313
9314         Remove an unneeded dependency.
9315         * modules/fseterr (Depends-on): Remove dup2.
9316
9317 2009-12-26  Eric Blake  <ebb9@byu.net>
9318
9319         tests: use macros.h in more places
9320         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9321         (ASSERT_STREAM): Provide default of stderr.
9322         * tests/test-dirent-safer.c: Include macros.h, using alternate
9323         stream for assertions.
9324         * tests/test-dup-safer.c: Likewise.
9325         * tests/test-freopen-safer.c: Likewise.
9326         * tests/test-getopt.c: Likewise.
9327         * tests/test-openat-safer.c: Likewise.
9328         * tests/test-pipe.c: Likewise.
9329         * tests/test-popen-safer.c: Likewise.
9330         * modules/dirent-safer-tests (Files): Include macros.h.
9331         * modules/unistd-safer-tests (Files): Likewise.
9332         * modules/freopen-safer-tests (Files): Likewise.
9333         * modules/getopt-posix-tests (Files): Likewise.
9334         * modules/openat-safer-tests (Files): Likewise.
9335         * modules/pipe-tests (Files): Likewise.
9336
9337 2009-12-26  Bruno Haible  <bruno@clisp.org>
9338
9339         javacomp: Portability fix.
9340         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9341         that it also works on Solaris.
9342
9343 2009-12-26  Bruno Haible  <bruno@clisp.org>
9344
9345         localename: Fix storage allocation of gl_locale_name_thread's result.
9346         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9347         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9348         all platforms that have 'uselocale'.
9349         (gl_locale_name_thread_unsafe): New function, extracted from
9350         gl_locale_name_thread.
9351         (gl_locale_name_thread): Call struniq on all platforms that have
9352         'uselocale'.
9353         * tests/test-localename.c (test_locale_name_thread): Check that the
9354         resulting strings are permanently allocated.
9355         * modules/localename-tests (Depends-on): Add strdup.
9356
9357 2009-12-26  Bruno Haible  <bruno@clisp.org>
9358
9359         * tests/test-localename.c (categories): Fill in the strings.
9360
9361 2009-12-26  Jim Meyering  <meyering@redhat.com>
9362
9363         isdir: complete the removal of m4/isdir.m4
9364         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9365
9366         isdir: clean up, since at least grep still uses it
9367         * lib/isdir.c: Include "isdir.h".
9368         (S_ISDIR): Remove now-unneeded definition.
9369         * modules/isdir (Files): Add lib/isdir.h.
9370         * lib/isdir.h: New file, with declaration.
9371         * m4/isdir.m4: Remove file -- unneeded.
9372
9373 2009-12-25  Bruno Haible  <bruno@clisp.org>
9374
9375         selinux-h: Make generated .h files standalone.
9376         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9377         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9378         * lib/se-selinux.in.h: Likewise.
9379         * modules/selinux-h (Depends-on): Add unused-parameter.
9380         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9381         selinux/selinux.h and selinux/context.h.
9382         Suggested by Eric Blake.
9383
9384 2009-12-25  Bruno Haible  <bruno@clisp.org>
9385
9386         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9387         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9388         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9389         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9390         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9391
9392 2009-12-24  Bruno Haible  <bruno@clisp.org>
9393
9394         openat: Fix warning.
9395         * lib/openat-proc.c: Include <unistd.h>.
9396
9397 2009-12-24  Bruno Haible  <bruno@clisp.org>
9398
9399         New module 'unused-parameter'.
9400         * build-aux/unused-parameter.h: New file, extracted from earlier
9401         gnulib-common.m4.
9402         * modules/unused-parameter: New file.
9403         * lib/unistr.h: Include unused-parameter.h.
9404         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
9405         _GL_UNUSED.
9406         * modules/unistr/base (Depends-on): Add unused-parameter.
9407
9408 2009-12-24  Bruno Haible  <bruno@clisp.org>
9409
9410         Add missing dependencies to 'extensions' module.
9411         * m4/extensions.m4: Add comment.
9412         * modules/accept4 (Depends-on): Add extensions.
9413         * modules/dup3 (Depends-on): Likewise.
9414         * modules/fcntl (Depends-on): Likewise.
9415         * modules/futimens (Depends-on): Likewise.
9416         * modules/mknod (Depends-on): Likewise.
9417         * modules/pipe2 (Depends-on): Likewise.
9418         * modules/stat-time (Depends-on): Likewise.
9419         * modules/strcasestr-simple (Depends-on): Likewise.
9420         * modules/strsignal (Depends-on): Likewise.
9421         * modules/utimensat (Depends-on): Likewise.
9422         * modules/localcharset (Depends-on): Likewise. Needed because of
9423         gl_FCNTL_O_FLAGS.
9424         * modules/wcrtomb (Depends-on): Likewise. Needed because of
9425         AC_TYPE_MBSTATE_T.
9426         * modules/wcsnrtombs (Depends-on): Likewise.
9427         * modules/wcsrtombs (Depends-on): Likewise.
9428
9429 2009-12-24  Bruno Haible  <bruno@clisp.org>
9430
9431         binary-io: Avoid gcc warning due to SET_BINARY.
9432         * lib/binary-io.h (SET_BINARY): Cast the result to void.
9433         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
9434
9435 2009-12-24  Bruno Haible  <bruno@clisp.org>
9436
9437         Avoid future namespace pollution on glibc systems.
9438         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
9439         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
9440         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
9441         glibc systems.
9442
9443 2009-12-24  Bruno Haible  <bruno@clisp.org>
9444
9445         Refactor common macros used in tests.
9446         * tests/macros.h: New file.
9447         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
9448         and/or <stdlib.h>, if appropriate.
9449         (ASSERT, SIZEOF): Remove macros.
9450         * tests/test-areadlink-with-size.c: Likewise.
9451         * tests/test-areadlinkat.c: Likewise.
9452         * tests/test-areadlinkat-with-size.c: Likewise.
9453         * tests/test-argmatch.c: Likewise.
9454         * tests/test-argv-iter.c: Likewise.
9455         * tests/test-array-mergesort.c: Likewise.
9456         * tests/test-array_list.c: Likewise.
9457         * tests/test-array_oset.c: Likewise.
9458         * tests/test-avltree_list.c: Likewise.
9459         * tests/test-avltree_oset.c: Likewise.
9460         * tests/test-avltreehash_list.c: Likewise.
9461         * tests/test-base64.c: Likewise.
9462         * tests/test-binary-io.c: Likewise.
9463         * tests/test-bitrotate.c: Likewise.
9464         * tests/test-btowc.c: Likewise.
9465         * tests/test-byteswap.c: Likewise.
9466         * tests/test-c-ctype.c: Likewise.
9467         * tests/test-c-stack.c: Likewise.
9468         * tests/test-c-strcasecmp.c: Likewise.
9469         * tests/test-c-strcasestr.c: Likewise.
9470         * tests/test-c-strncasecmp.c: Likewise.
9471         * tests/test-c-strstr.c: Likewise.
9472         * tests/test-canonicalize-lgpl.c: Likewise.
9473         * tests/test-canonicalize.c: Likewise.
9474         * tests/test-carray_list.c: Likewise.
9475         * tests/test-ceilf1.c: Likewise.
9476         * tests/test-ceilf2.c: Likewise.
9477         * tests/test-ceill.c: Likewise.
9478         * tests/test-chown.c: Likewise.
9479         * tests/test-cloexec.c: Likewise.
9480         * tests/test-copy-acl.c: Likewise.
9481         * tests/test-copy-file.c: Likewise.
9482         * tests/test-count-one-bits.c: Likewise.
9483         * tests/test-dprintf-posix.c: Likewise.
9484         * tests/test-dup2.c: Likewise.
9485         * tests/test-dup3.c: Likewise.
9486         * tests/test-duplocale.c: Likewise.
9487         * tests/test-fbufmode.c: Likewise.
9488         * tests/test-fchdir.c: Likewise.
9489         * tests/test-fchownat.c: Likewise.
9490         * tests/test-fcntl-safer.c: Likewise.
9491         * tests/test-fcntl.c: Likewise.
9492         * tests/test-fdopendir.c: Likewise.
9493         * tests/test-fdutimensat.c: Likewise.
9494         * tests/test-fflush2.c: Likewise.
9495         * tests/test-file-has-acl.c: Likewise.
9496         * tests/test-filevercmp.c: Likewise.
9497         * tests/test-flock.c: Likewise.
9498         * tests/test-floorf1.c: Likewise.
9499         * tests/test-floorf2.c: Likewise.
9500         * tests/test-floorl.c: Likewise.
9501         * tests/test-fnmatch.c: Likewise.
9502         * tests/test-fopen.h: Likewise.
9503         * tests/test-fpending.c: Likewise.
9504         * tests/test-fprintf-posix.c: Likewise.
9505         * tests/test-fpurge.c: Likewise.
9506         * tests/test-freadable.c: Likewise.
9507         * tests/test-freadahead.c: Likewise.
9508         * tests/test-freading.c: Likewise.
9509         * tests/test-freadptr.c: Likewise.
9510         * tests/test-freadptr2.c: Likewise.
9511         * tests/test-freadseek.c: Likewise.
9512         * tests/test-freopen.c: Likewise.
9513         * tests/test-frexp.c: Likewise.
9514         * tests/test-frexpl.c: Likewise.
9515         * tests/test-fseek.c: Likewise.
9516         * tests/test-fseeko.c: Likewise.
9517         * tests/test-fstatat.c: Likewise.
9518         * tests/test-fstrcmp.c: Likewise.
9519         * tests/test-fsync.c: Likewise.
9520         * tests/test-ftell.c: Likewise.
9521         * tests/test-ftello.c: Likewise.
9522         * tests/test-func.c: Likewise.
9523         * tests/test-futimens.c: Likewise.
9524         * tests/test-fwritable.c: Likewise.
9525         * tests/test-fwriting.c: Likewise.
9526         * tests/test-getcwd.c: Likewise.
9527         * tests/test-getdate.c: Likewise.
9528         * tests/test-getdelim.c: Likewise.
9529         * tests/test-getdtablesize.c: Likewise.
9530         * tests/test-getgroups.c: Likewise.
9531         * tests/test-getline.c: Likewise.
9532         * tests/test-getndelim2.c: Likewise.
9533         * tests/test-glob.c: Likewise.
9534         * tests/test-hash.c: Likewise.
9535         * tests/test-i-ring.c: Likewise.
9536         * tests/test-iconv-utf.c: Likewise.
9537         * tests/test-iconv.c: Likewise.
9538         * tests/test-idpriv-drop.c: Likewise.
9539         * tests/test-idpriv-droptemp.c: Likewise.
9540         * tests/test-inet_ntop.c: Likewise.
9541         * tests/test-inet_pton.c: Likewise.
9542         * tests/test-isblank.c: Likewise.
9543         * tests/test-isfinite.c: Likewise.
9544         * tests/test-isinf.c: Likewise.
9545         * tests/test-isnan.c: Likewise.
9546         * tests/test-isnand.h: Likewise.
9547         * tests/test-isnanf.h: Likewise.
9548         * tests/test-isnanl.h: Likewise.
9549         * tests/test-lchown.c: Likewise.
9550         * tests/test-ldexpl.c: Likewise.
9551         * tests/test-link.c: Likewise.
9552         * tests/test-linkat.c: Likewise.
9553         * tests/test-linked_list.c: Likewise.
9554         * tests/test-linkedhash_list.c: Likewise.
9555         * tests/test-localename.c: Likewise.
9556         * tests/test-lseek.c: Likewise.
9557         * tests/test-lstat.c: Likewise.
9558         * tests/test-mbmemcasecmp.c: Likewise.
9559         * tests/test-mbmemcasecoll.c: Likewise.
9560         * tests/test-mbrtowc.c: Likewise.
9561         * tests/test-mbscasecmp.c: Likewise.
9562         * tests/test-mbscasestr1.c: Likewise.
9563         * tests/test-mbscasestr2.c: Likewise.
9564         * tests/test-mbscasestr3.c: Likewise.
9565         * tests/test-mbscasestr4.c: Likewise.
9566         * tests/test-mbschr.c: Likewise.
9567         * tests/test-mbscspn.c: Likewise.
9568         * tests/test-mbsinit.c: Likewise.
9569         * tests/test-mbsncasecmp.c: Likewise.
9570         * tests/test-mbsnrtowcs.c: Likewise.
9571         * tests/test-mbspbrk.c: Likewise.
9572         * tests/test-mbspcasecmp.c: Likewise.
9573         * tests/test-mbsrchr.c: Likewise.
9574         * tests/test-mbsrtowcs.c: Likewise.
9575         * tests/test-mbsspn.c: Likewise.
9576         * tests/test-mbsstr1.c: Likewise.
9577         * tests/test-mbsstr2.c: Likewise.
9578         * tests/test-mbsstr3.c: Likewise.
9579         * tests/test-memchr.c: Likewise.
9580         * tests/test-memchr2.c: Likewise.
9581         * tests/test-memcmp.c: Likewise.
9582         * tests/test-memmem.c: Likewise.
9583         * tests/test-memrchr.c: Likewise.
9584         * tests/test-mkdir.c: Likewise.
9585         * tests/test-mkdirat.c: Likewise.
9586         * tests/test-mkfifo.c: Likewise.
9587         * tests/test-mkfifoat.c: Likewise.
9588         * tests/test-mknod.c: Likewise.
9589         * tests/test-nanosleep.c: Likewise.
9590         * tests/test-nl_langinfo.c: Likewise.
9591         * tests/test-obstack-printf.c: Likewise.
9592         * tests/test-open.c: Likewise.
9593         * tests/test-openat.c: Likewise.
9594         * tests/test-pipe-filter-gi1.c: Likewise.
9595         * tests/test-pipe-filter-gi2-main.c: Likewise.
9596         * tests/test-pipe-filter-ii1.c: Likewise.
9597         * tests/test-pipe-filter-ii2-main.c: Likewise.
9598         * tests/test-pipe2.c: Likewise.
9599         * tests/test-popen.h: Likewise.
9600         * tests/test-posixtm.c: Likewise.
9601         * tests/test-pread.c: Likewise.
9602         * tests/test-printf-frexp.c: Likewise.
9603         * tests/test-printf-frexpl.c: Likewise.
9604         * tests/test-printf-posix.c: Likewise.
9605         * tests/test-priv-set.c: Likewise.
9606         * tests/test-quotearg.c: Likewise.
9607         * tests/test-random_r.c: Likewise.
9608         * tests/test-rawmemchr.c: Likewise.
9609         * tests/test-rbtree_list.c: Likewise.
9610         * tests/test-rbtree_oset.c: Likewise.
9611         * tests/test-rbtreehash_list.c: Likewise.
9612         * tests/test-readlink.c: Likewise.
9613         * tests/test-remove.c: Likewise.
9614         * tests/test-rename.c: Likewise.
9615         * tests/test-renameat.c: Likewise.
9616         * tests/test-rmdir.c: Likewise.
9617         * tests/test-round1.c: Likewise.
9618         * tests/test-roundf1.c: Likewise.
9619         * tests/test-roundl.c: Likewise.
9620         * tests/test-safe-alloc.c: Likewise.
9621         * tests/test-sameacls.c: Likewise.
9622         * tests/test-set-mode-acl.c: Likewise.
9623         * tests/test-setenv.c: Likewise.
9624         * tests/test-sigaction.c: Likewise.
9625         * tests/test-signbit.c: Likewise.
9626         * tests/test-sleep.c: Likewise.
9627         * tests/test-snprintf-posix.c: Likewise.
9628         * tests/test-snprintf.c: Likewise.
9629         * tests/test-sprintf-posix.c: Likewise.
9630         * tests/test-stat-time.c: Likewise.
9631         * tests/test-stat.c: Likewise.
9632         * tests/test-strcasestr.c: Likewise.
9633         * tests/test-strchrnul.c: Likewise.
9634         * tests/test-strerror.c: Likewise.
9635         * tests/test-striconv.c: Likewise.
9636         * tests/test-striconveh.c: Likewise.
9637         * tests/test-striconveha.c: Likewise.
9638         * tests/test-strsignal.c: Likewise.
9639         * tests/test-strstr.c: Likewise.
9640         * tests/test-strtod.c: Likewise.
9641         * tests/test-strverscmp.c: Likewise.
9642         * tests/test-symlink.c: Likewise.
9643         * tests/test-symlinkat.c: Likewise.
9644         * tests/test-trunc1.c: Likewise.
9645         * tests/test-trunc2.c: Likewise.
9646         * tests/test-truncf1.c: Likewise.
9647         * tests/test-truncf2.c: Likewise.
9648         * tests/test-truncl.c: Likewise.
9649         * tests/test-uname.c: Likewise.
9650         * tests/test-unlink.c: Likewise.
9651         * tests/test-unlinkat.c: Likewise.
9652         * tests/test-unsetenv.c: Likewise.
9653         * tests/test-usleep.c: Likewise.
9654         * tests/test-utimens.c: Likewise.
9655         * tests/test-utimensat.c: Likewise.
9656         * tests/test-vasnprintf-posix.c: Likewise.
9657         * tests/test-vasnprintf-posix2.c: Likewise.
9658         * tests/test-vasnprintf.c: Likewise.
9659         * tests/test-vasprintf-posix.c: Likewise.
9660         * tests/test-vasprintf.c: Likewise.
9661         * tests/test-vdprintf-posix.c: Likewise.
9662         * tests/test-vfprintf-posix.c: Likewise.
9663         * tests/test-vprintf-posix.c: Likewise.
9664         * tests/test-vsnprintf-posix.c: Likewise.
9665         * tests/test-vsnprintf.c: Likewise.
9666         * tests/test-vsprintf-posix.c: Likewise.
9667         * tests/test-wcrtomb.c: Likewise.
9668         * tests/test-wcsnrtombs.c: Likewise.
9669         * tests/test-wcsrtombs.c: Likewise.
9670         * tests/test-wctype.c: Likewise.
9671         * tests/test-wcwidth.c: Likewise.
9672         * tests/test-xfprintf-posix.c: Likewise.
9673         * tests/test-xmemdup0.c: Likewise.
9674         * tests/test-xprintf-posix.c: Likewise.
9675         * tests/test-xvasprintf.c: Likewise.
9676         * tests/unicase/test-locale-language.c: Likewise.
9677         * tests/unicase/test-mapping-part1.h: Likewise.
9678         * tests/unicase/test-predicate-part1.h: Likewise.
9679         * tests/unicase/test-u8-casecmp.c: Likewise.
9680         * tests/unicase/test-u8-casecoll.c: Likewise.
9681         * tests/unicase/test-u8-casefold.c: Likewise.
9682         * tests/unicase/test-u8-is-cased.c: Likewise.
9683         * tests/unicase/test-u8-is-casefolded.c: Likewise.
9684         * tests/unicase/test-u8-is-lowercase.c: Likewise.
9685         * tests/unicase/test-u8-is-titlecase.c: Likewise.
9686         * tests/unicase/test-u8-is-uppercase.c: Likewise.
9687         * tests/unicase/test-u8-tolower.c: Likewise.
9688         * tests/unicase/test-u8-totitle.c: Likewise.
9689         * tests/unicase/test-u8-toupper.c: Likewise.
9690         * tests/unicase/test-u16-casecmp.c: Likewise.
9691         * tests/unicase/test-u16-casecoll.c: Likewise.
9692         * tests/unicase/test-u16-casefold.c: Likewise.
9693         * tests/unicase/test-u16-is-cased.c: Likewise.
9694         * tests/unicase/test-u16-is-casefolded.c: Likewise.
9695         * tests/unicase/test-u16-is-lowercase.c: Likewise.
9696         * tests/unicase/test-u16-is-titlecase.c: Likewise.
9697         * tests/unicase/test-u16-is-uppercase.c: Likewise.
9698         * tests/unicase/test-u16-tolower.c: Likewise.
9699         * tests/unicase/test-u16-totitle.c: Likewise.
9700         * tests/unicase/test-u16-toupper.c: Likewise.
9701         * tests/unicase/test-u32-casecmp.c: Likewise.
9702         * tests/unicase/test-u32-casecoll.c: Likewise.
9703         * tests/unicase/test-u32-casefold.c: Likewise.
9704         * tests/unicase/test-u32-is-cased.c: Likewise.
9705         * tests/unicase/test-u32-is-casefolded.c: Likewise.
9706         * tests/unicase/test-u32-is-lowercase.c: Likewise.
9707         * tests/unicase/test-u32-is-titlecase.c: Likewise.
9708         * tests/unicase/test-u32-is-uppercase.c: Likewise.
9709         * tests/unicase/test-u32-tolower.c: Likewise.
9710         * tests/unicase/test-u32-totitle.c: Likewise.
9711         * tests/unicase/test-u32-toupper.c: Likewise.
9712         * tests/unicase/test-ulc-casecmp.c: Likewise.
9713         * tests/unicase/test-ulc-casecoll.c: Likewise.
9714         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9715         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9716         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9717         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9718         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9719         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9720         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9721         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9722         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9723         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9724         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9725         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9726         * tests/unictype/test-bidi_byname.c: Likewise.
9727         * tests/unictype/test-bidi_name.c: Likewise.
9728         * tests/unictype/test-bidi_of.c: Likewise.
9729         * tests/unictype/test-bidi_test.c: Likewise.
9730         * tests/unictype/test-block_list.c: Likewise.
9731         * tests/unictype/test-block_of.c: Likewise.
9732         * tests/unictype/test-block_test.c: Likewise.
9733         * tests/unictype/test-categ_and.c: Likewise.
9734         * tests/unictype/test-categ_and_not.c: Likewise.
9735         * tests/unictype/test-categ_byname.c: Likewise.
9736         * tests/unictype/test-categ_name.c: Likewise.
9737         * tests/unictype/test-categ_none.c: Likewise.
9738         * tests/unictype/test-categ_of.c: Likewise.
9739         * tests/unictype/test-categ_or.c: Likewise.
9740         * tests/unictype/test-categ_test_withtable.c: Likewise.
9741         * tests/unictype/test-combining.c: Likewise.
9742         * tests/unictype/test-decdigit.c: Likewise.
9743         * tests/unictype/test-digit.c: Likewise.
9744         * tests/unictype/test-mirror.c: Likewise.
9745         * tests/unictype/test-numeric.c: Likewise.
9746         * tests/unictype/test-pr_byname.c: Likewise.
9747         * tests/unictype/test-pr_test.c: Likewise.
9748         * tests/unictype/test-predicate-part1.h: Likewise.
9749         * tests/unictype/test-scripts.c: Likewise.
9750         * tests/unictype/test-sy_c_ident.c: Likewise.
9751         * tests/unictype/test-sy_java_ident.c: Likewise.
9752         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
9753         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
9754         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
9755         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
9756         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
9757         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
9758         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
9759         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
9760         * tests/uninorm/test-canonical-decomposition.c: Likewise.
9761         * tests/uninorm/test-compat-decomposition.c: Likewise.
9762         * tests/uninorm/test-composition.c: Likewise.
9763         * tests/uninorm/test-decomposing-form.c: Likewise.
9764         * tests/uninorm/test-decomposition.c: Likewise.
9765         * tests/uninorm/test-u8-nfc.c: Likewise.
9766         * tests/uninorm/test-u8-nfd.c: Likewise.
9767         * tests/uninorm/test-u8-nfkc.c: Likewise.
9768         * tests/uninorm/test-u8-nfkd.c: Likewise.
9769         * tests/uninorm/test-u8-normcmp.c: Likewise.
9770         * tests/uninorm/test-u8-normcoll.c: Likewise.
9771         * tests/uninorm/test-u16-nfc.c: Likewise.
9772         * tests/uninorm/test-u16-nfd.c: Likewise.
9773         * tests/uninorm/test-u16-nfkc.c: Likewise.
9774         * tests/uninorm/test-u16-nfkd.c: Likewise.
9775         * tests/uninorm/test-u16-normcmp.c: Likewise.
9776         * tests/uninorm/test-u16-normcoll.c: Likewise.
9777         * tests/uninorm/test-u32-nfc.c: Likewise.
9778         * tests/uninorm/test-u32-nfd.c: Likewise.
9779         * tests/uninorm/test-u32-nfkc.c: Likewise.
9780         * tests/uninorm/test-u32-nfkd.c: Likewise.
9781         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9782         * tests/uninorm/test-u32-normcmp.c: Likewise.
9783         * tests/uninorm/test-u32-normcoll.c: Likewise.
9784         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
9785         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9786         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9787         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9788         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9789         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9790         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9791         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9792         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9793         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9794         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9795         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9796         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9797         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9798         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9799         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9800         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9801         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9802         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9803         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9804         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9805         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9806         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9807         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9808         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9809         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9810         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9811         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9812         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9813         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
9814         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
9815         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
9816         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
9817         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9818         * tests/uniwidth/test-u8-width.c: Likewise.
9819         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9820         * tests/uniwidth/test-u16-width.c: Likewise.
9821         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9822         * tests/uniwidth/test-u32-width.c: Likewise.
9823         * tests/uniwidth/test-uc_width.c: Likewise.
9824         * tests/uniwidth/test-uc_width2.c: Likewise.
9825         * modules/acl-tests (Files): Add tests/macros.h.
9826         * modules/areadlink-tests (Files): Likewise.
9827         * modules/areadlink-with-size-tests (Files): Likewise.
9828         * modules/areadlinkat-tests (Files): Likewise.
9829         * modules/areadlinkat-with-size-tests (Files): Likewise.
9830         * modules/argmatch-tests (Files): Likewise.
9831         * modules/argv-iter-tests (Files): Likewise.
9832         * modules/array-list-tests (Files): Likewise.
9833         * modules/array-mergesort-tests (Files): Likewise.
9834         * modules/array-oset-tests (Files): Likewise.
9835         * modules/avltree-list-tests (Files): Likewise.
9836         * modules/avltree-oset-tests (Files): Likewise.
9837         * modules/avltreehash-list-tests (Files): Likewise.
9838         * modules/base64-tests (Files): Likewise.
9839         * modules/binary-io-tests (Files): Likewise.
9840         * modules/bitrotate-tests (Files): Likewise.
9841         * modules/btowc-tests (Files): Likewise.
9842         * modules/byteswap-tests (Files): Likewise.
9843         * modules/c-ctype-tests (Files): Likewise.
9844         * modules/c-stack-tests (Files): Likewise.
9845         * modules/c-strcase-tests (Files): Likewise.
9846         * modules/c-strcasestr-tests (Files): Likewise.
9847         * modules/c-strstr-tests (Files): Likewise.
9848         * modules/canonicalize-lgpl-tests (Files): Likewise.
9849         * modules/canonicalize-tests (Files): Likewise.
9850         * modules/carray-list-tests (Files): Likewise.
9851         * modules/ceilf-tests (Files): Likewise.
9852         * modules/ceill-tests (Files): Likewise.
9853         * modules/chown-tests (Files): Likewise.
9854         * modules/cloexec-tests (Files): Likewise.
9855         * modules/copy-file-tests (Files): Likewise.
9856         * modules/count-one-bits-tests (Files): Likewise.
9857         * modules/dprintf-posix-tests (Files): Likewise.
9858         * modules/dup2-tests (Files): Likewise.
9859         * modules/dup3-tests (Files): Likewise.
9860         * modules/duplocale-tests (Files): Likewise.
9861         * modules/fbufmode-tests (Files): Likewise.
9862         * modules/fchdir-tests (Files): Likewise.
9863         * modules/fcntl-safer-tests (Files): Likewise.
9864         * modules/fcntl-tests (Files): Likewise.
9865         * modules/fdopendir-tests (Files): Likewise.
9866         * modules/fdutimensat-tests (Files): Likewise.
9867         * modules/fflush-tests (Files): Likewise.
9868         * modules/filevercmp-tests (Files): Likewise.
9869         * modules/flock-tests (Files): Likewise.
9870         * modules/floorf-tests (Files): Likewise.
9871         * modules/floorl-tests (Files): Likewise.
9872         * modules/fnmatch-tests (Files): Likewise.
9873         * modules/fopen-safer-tests (Files): Likewise.
9874         * modules/fopen-tests (Files): Likewise.
9875         * modules/fpending-tests (Files): Likewise.
9876         * modules/fprintf-posix-tests (Files): Likewise.
9877         * modules/fpurge-tests (Files): Likewise.
9878         * modules/freadable-tests (Files): Likewise.
9879         * modules/freadahead-tests (Files): Likewise.
9880         * modules/freading-tests (Files): Likewise.
9881         * modules/freadptr-tests (Files): Likewise.
9882         * modules/freadseek-tests (Files): Likewise.
9883         * modules/freopen-tests (Files): Likewise.
9884         * modules/frexp-nolibm-tests (Files): Likewise.
9885         * modules/frexp-tests (Files): Likewise.
9886         * modules/frexpl-nolibm-tests (Files): Likewise.
9887         * modules/frexpl-tests (Files): Likewise.
9888         * modules/fseek-tests (Files): Likewise.
9889         * modules/fseeko-tests (Files): Likewise.
9890         * modules/fstrcmp-tests (Files): Likewise.
9891         * modules/fsync-tests (Files): Likewise.
9892         * modules/ftell-tests (Files): Likewise.
9893         * modules/ftello-tests (Files): Likewise.
9894         * modules/func-tests (Files): Likewise.
9895         * modules/futimens-tests (Files): Likewise.
9896         * modules/fwritable-tests (Files): Likewise.
9897         * modules/fwriting-tests (Files): Likewise.
9898         * modules/getcwd-tests (Files): Likewise.
9899         * modules/getdate-tests (Files): Likewise.
9900         * modules/getdelim-tests (Files): Likewise.
9901         * modules/getdtablesize-tests (Files): Likewise.
9902         * modules/getgroups-tests (Files): Likewise.
9903         * modules/getline-tests (Files): Likewise.
9904         * modules/getndelim2-tests (Files): Likewise.
9905         * modules/glob-tests (Files): Likewise.
9906         * modules/hash-tests (Files): Likewise.
9907         * modules/i-ring-tests (Files): Likewise.
9908         * modules/iconv-tests (Files): Likewise.
9909         * modules/iconv_open-utf-tests (Files): Likewise.
9910         * modules/idpriv-drop-tests (Files): Likewise.
9911         * modules/idpriv-droptemp-tests (Files): Likewise.
9912         * modules/inet_ntop-tests (Files): Likewise.
9913         * modules/inet_pton-tests (Files): Likewise.
9914         * modules/isblank-tests (Files): Likewise.
9915         * modules/isfinite-tests (Files): Likewise.
9916         * modules/isinf-tests (Files): Likewise.
9917         * modules/isnan-tests (Files): Likewise.
9918         * modules/isnand-nolibm-tests (Files): Likewise.
9919         * modules/isnand-tests (Files): Likewise.
9920         * modules/isnanf-nolibm-tests (Files): Likewise.
9921         * modules/isnanf-tests (Files): Likewise.
9922         * modules/isnanl-nolibm-tests (Files): Likewise.
9923         * modules/isnanl-tests (Files): Likewise.
9924         * modules/lchown-tests (Files): Likewise.
9925         * modules/ldexpl-tests (Files): Likewise.
9926         * modules/link-tests (Files): Likewise.
9927         * modules/linkat-tests (Files): Likewise.
9928         * modules/linked-list-tests (Files): Likewise.
9929         * modules/linkedhash-list-tests (Files): Likewise.
9930         * modules/localename-tests (Files): Likewise.
9931         * modules/lseek-tests (Files): Likewise.
9932         * modules/lstat-tests (Files): Likewise.
9933         * modules/mbmemcasecmp-tests (Files): Likewise.
9934         * modules/mbmemcasecoll-tests (Files): Likewise.
9935         * modules/mbrtowc-tests (Files): Likewise.
9936         * modules/mbscasecmp-tests (Files): Likewise.
9937         * modules/mbscasestr-tests (Files): Likewise.
9938         * modules/mbschr-tests (Files): Likewise.
9939         * modules/mbscspn-tests (Files): Likewise.
9940         * modules/mbsinit-tests (Files): Likewise.
9941         * modules/mbsncasecmp-tests (Files): Likewise.
9942         * modules/mbsnrtowcs-tests (Files): Likewise.
9943         * modules/mbspbrk-tests (Files): Likewise.
9944         * modules/mbspcasecmp-tests (Files): Likewise.
9945         * modules/mbsrchr-tests (Files): Likewise.
9946         * modules/mbsrtowcs-tests (Files): Likewise.
9947         * modules/mbsspn-tests (Files): Likewise.
9948         * modules/mbsstr-tests (Files): Likewise.
9949         * modules/memchr-tests (Files): Likewise.
9950         * modules/memchr2-tests (Files): Likewise.
9951         * modules/memcmp-tests (Files): Likewise.
9952         * modules/memmem-tests (Files): Likewise.
9953         * modules/memrchr-tests (Files): Likewise.
9954         * modules/mkdir-tests (Files): Likewise.
9955         * modules/mkfifo-tests (Files): Likewise.
9956         * modules/mkfifoat-tests (Files): Likewise.
9957         * modules/mknod-tests (Files): Likewise.
9958         * modules/nanosleep-tests (Files): Likewise.
9959         * modules/nl_langinfo-tests (Files): Likewise.
9960         * modules/obstack-printf-tests (Files): Likewise.
9961         * modules/open-tests (Files): Likewise.
9962         * modules/openat-tests (Files): Likewise.
9963         * modules/pipe-filter-gi-tests (Files): Likewise.
9964         * modules/pipe-filter-ii-tests (Files): Likewise.
9965         * modules/pipe2-tests (Files): Likewise.
9966         * modules/popen-safer-tests (Files): Likewise.
9967         * modules/popen-tests (Files): Likewise.
9968         * modules/posixtm-tests (Files): Likewise.
9969         * modules/pread-tests (Files): Likewise.
9970         * modules/printf-frexp-tests (Files): Likewise.
9971         * modules/printf-frexpl-tests (Files): Likewise.
9972         * modules/printf-posix-tests (Files): Likewise.
9973         * modules/priv-set-tests (Files): Likewise.
9974         * modules/quotearg-tests (Files): Likewise.
9975         * modules/random_r-tests (Files): Likewise.
9976         * modules/rawmemchr-tests (Files): Likewise.
9977         * modules/rbtree-list-tests (Files): Likewise.
9978         * modules/rbtree-oset-tests (Files): Likewise.
9979         * modules/rbtreehash-list-tests (Files): Likewise.
9980         * modules/readlink-tests (Files): Likewise.
9981         * modules/remove-tests (Files): Likewise.
9982         * modules/rename-tests (Files): Likewise.
9983         * modules/renameat-tests (Files): Likewise.
9984         * modules/rmdir-tests (Files): Likewise.
9985         * modules/round-tests (Files): Likewise.
9986         * modules/roundf-tests (Files): Likewise.
9987         * modules/roundl-tests (Files): Likewise.
9988         * modules/safe-alloc-tests (Files): Likewise.
9989         * modules/setenv-tests (Files): Likewise.
9990         * modules/sigaction-tests (Files): Likewise.
9991         * modules/signbit-tests (Files): Likewise.
9992         * modules/sleep-tests (Files): Likewise.
9993         * modules/snprintf-posix-tests (Files): Likewise.
9994         * modules/snprintf-tests (Files): Likewise.
9995         * modules/sprintf-posix-tests (Files): Likewise.
9996         * modules/stat-tests (Files): Likewise.
9997         * modules/stat-time-tests (Files): Likewise.
9998         * modules/strcasestr-tests (Files): Likewise.
9999         * modules/strchrnul-tests (Files): Likewise.
10000         * modules/strerror-tests (Files): Likewise.
10001         * modules/striconv-tests (Files): Likewise.
10002         * modules/striconveh-tests (Files): Likewise.
10003         * modules/striconveha-tests (Files): Likewise.
10004         * modules/strsignal-tests (Files): Likewise.
10005         * modules/strstr-tests (Files): Likewise.
10006         * modules/strtod-tests (Files): Likewise.
10007         * modules/strverscmp-tests (Files): Likewise.
10008         * modules/symlink-tests (Files): Likewise.
10009         * modules/symlinkat-tests (Files): Likewise.
10010         * modules/trunc-tests (Files): Likewise.
10011         * modules/truncf-tests (Files): Likewise.
10012         * modules/truncl-tests (Files): Likewise.
10013         * modules/uname-tests (Files): Likewise.
10014         * modules/unicase/cased-tests (Files): Likewise.
10015         * modules/unicase/ignorable-tests (Files): Likewise.
10016         * modules/unicase/locale-language-tests (Files): Likewise.
10017         * modules/unicase/tolower-tests (Files): Likewise.
10018         * modules/unicase/totitle-tests (Files): Likewise.
10019         * modules/unicase/toupper-tests (Files): Likewise.
10020         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10021         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10022         * modules/unicase/u8-casefold-tests (Files): Likewise.
10023         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10024         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10025         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10026         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10027         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10028         * modules/unicase/u8-tolower-tests (Files): Likewise.
10029         * modules/unicase/u8-totitle-tests (Files): Likewise.
10030         * modules/unicase/u8-toupper-tests (Files): Likewise.
10031         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10032         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10033         * modules/unicase/u16-casefold-tests (Files): Likewise.
10034         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10035         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10036         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10037         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10038         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10039         * modules/unicase/u16-tolower-tests (Files): Likewise.
10040         * modules/unicase/u16-totitle-tests (Files): Likewise.
10041         * modules/unicase/u16-toupper-tests (Files): Likewise.
10042         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10043         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10044         * modules/unicase/u32-casefold-tests (Files): Likewise.
10045         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10046         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10047         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10048         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10049         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10050         * modules/unicase/u32-tolower-tests (Files): Likewise.
10051         * modules/unicase/u32-totitle-tests (Files): Likewise.
10052         * modules/unicase/u32-toupper-tests (Files): Likewise.
10053         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10054         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10055         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10056         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10057         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10058         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10059         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10060         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10061         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10062         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10063         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10064         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10065         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10066         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10067         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10068         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10069         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10070         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10071         * modules/unictype/block-list-tests (Files): Likewise.
10072         * modules/unictype/block-of-tests (Files): Likewise.
10073         * modules/unictype/block-test-tests (Files): Likewise.
10074         * modules/unictype/category-C-tests (Files): Likewise.
10075         * modules/unictype/category-Cc-tests (Files): Likewise.
10076         * modules/unictype/category-Cf-tests (Files): Likewise.
10077         * modules/unictype/category-Cn-tests (Files): Likewise.
10078         * modules/unictype/category-Co-tests (Files): Likewise.
10079         * modules/unictype/category-Cs-tests (Files): Likewise.
10080         * modules/unictype/category-L-tests (Files): Likewise.
10081         * modules/unictype/category-Ll-tests (Files): Likewise.
10082         * modules/unictype/category-Lm-tests (Files): Likewise.
10083         * modules/unictype/category-Lo-tests (Files): Likewise.
10084         * modules/unictype/category-Lt-tests (Files): Likewise.
10085         * modules/unictype/category-Lu-tests (Files): Likewise.
10086         * modules/unictype/category-M-tests (Files): Likewise.
10087         * modules/unictype/category-Mc-tests (Files): Likewise.
10088         * modules/unictype/category-Me-tests (Files): Likewise.
10089         * modules/unictype/category-Mn-tests (Files): Likewise.
10090         * modules/unictype/category-N-tests (Files): Likewise.
10091         * modules/unictype/category-Nd-tests (Files): Likewise.
10092         * modules/unictype/category-Nl-tests (Files): Likewise.
10093         * modules/unictype/category-No-tests (Files): Likewise.
10094         * modules/unictype/category-P-tests (Files): Likewise.
10095         * modules/unictype/category-Pc-tests (Files): Likewise.
10096         * modules/unictype/category-Pd-tests (Files): Likewise.
10097         * modules/unictype/category-Pe-tests (Files): Likewise.
10098         * modules/unictype/category-Pf-tests (Files): Likewise.
10099         * modules/unictype/category-Pi-tests (Files): Likewise.
10100         * modules/unictype/category-Po-tests (Files): Likewise.
10101         * modules/unictype/category-Ps-tests (Files): Likewise.
10102         * modules/unictype/category-S-tests (Files): Likewise.
10103         * modules/unictype/category-Sc-tests (Files): Likewise.
10104         * modules/unictype/category-Sk-tests (Files): Likewise.
10105         * modules/unictype/category-Sm-tests (Files): Likewise.
10106         * modules/unictype/category-So-tests (Files): Likewise.
10107         * modules/unictype/category-Z-tests (Files): Likewise.
10108         * modules/unictype/category-Zl-tests (Files): Likewise.
10109         * modules/unictype/category-Zp-tests (Files): Likewise.
10110         * modules/unictype/category-Zs-tests (Files): Likewise.
10111         * modules/unictype/category-and-not-tests (Files): Likewise.
10112         * modules/unictype/category-and-tests (Files): Likewise.
10113         * modules/unictype/category-byname-tests (Files): Likewise.
10114         * modules/unictype/category-name-tests (Files): Likewise.
10115         * modules/unictype/category-none-tests (Files): Likewise.
10116         * modules/unictype/category-of-tests (Files): Likewise.
10117         * modules/unictype/category-or-tests (Files): Likewise.
10118         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10119         * modules/unictype/combining-class-tests (Files): Likewise.
10120         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10121         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10122         * modules/unictype/ctype-blank-tests (Files): Likewise.
10123         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10124         * modules/unictype/ctype-digit-tests (Files): Likewise.
10125         * modules/unictype/ctype-graph-tests (Files): Likewise.
10126         * modules/unictype/ctype-lower-tests (Files): Likewise.
10127         * modules/unictype/ctype-print-tests (Files): Likewise.
10128         * modules/unictype/ctype-punct-tests (Files): Likewise.
10129         * modules/unictype/ctype-space-tests (Files): Likewise.
10130         * modules/unictype/ctype-upper-tests (Files): Likewise.
10131         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10132         * modules/unictype/decimal-digit-tests (Files): Likewise.
10133         * modules/unictype/digit-tests (Files): Likewise.
10134         * modules/unictype/mirror-tests (Files): Likewise.
10135         * modules/unictype/numeric-tests (Files): Likewise.
10136         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10137         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10138         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10139         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10140         Likewise.
10141         * modules/unictype/property-bidi-block-separator-tests (Files):
10142         Likewise.
10143         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10144         Likewise.
10145         * modules/unictype/property-bidi-common-separator-tests (Files):
10146         Likewise.
10147         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10148         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10149         Likewise.
10150         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10151         Likewise.
10152         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10153         Likewise.
10154         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10155         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10156         Likewise.
10157         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10158         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10159         Likewise.
10160         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10161         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10162         * modules/unictype/property-bidi-segment-separator-tests (Files):
10163         Likewise.
10164         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10165         * modules/unictype/property-byname-tests (Files): Likewise.
10166         * modules/unictype/property-combining-tests (Files): Likewise.
10167         * modules/unictype/property-composite-tests (Files): Likewise.
10168         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10169         * modules/unictype/property-dash-tests (Files): Likewise.
10170         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10171         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10172         Likewise.
10173         * modules/unictype/property-deprecated-tests (Files): Likewise.
10174         * modules/unictype/property-diacritic-tests (Files): Likewise.
10175         * modules/unictype/property-extender-tests (Files): Likewise.
10176         * modules/unictype/property-format-control-tests (Files): Likewise.
10177         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10178         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10179         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10180         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10181         * modules/unictype/property-hyphen-tests (Files): Likewise.
10182         * modules/unictype/property-id-continue-tests (Files): Likewise.
10183         * modules/unictype/property-id-start-tests (Files): Likewise.
10184         * modules/unictype/property-ideographic-tests (Files): Likewise.
10185         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10186         * modules/unictype/property-ids-trinary-operator-tests (Files):
10187         Likewise.
10188         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10189         * modules/unictype/property-iso-control-tests (Files): Likewise.
10190         * modules/unictype/property-join-control-tests (Files): Likewise.
10191         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10192         * modules/unictype/property-line-separator-tests (Files): Likewise.
10193         * modules/unictype/property-logical-order-exception-tests (Files):
10194         Likewise.
10195         * modules/unictype/property-lowercase-tests (Files): Likewise.
10196         * modules/unictype/property-math-tests (Files): Likewise.
10197         * modules/unictype/property-non-break-tests (Files): Likewise.
10198         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10199         * modules/unictype/property-numeric-tests (Files): Likewise.
10200         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10201         * modules/unictype/property-other-default-ignorable-code-point-tests
10202         (Files): Likewise.
10203         * modules/unictype/property-other-grapheme-extend-tests (Files):
10204         Likewise.
10205         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10206         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10207         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10208         * modules/unictype/property-other-math-tests (Files): Likewise.
10209         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10210         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10211         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10212         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10213         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10214         * modules/unictype/property-private-use-tests (Files): Likewise.
10215         * modules/unictype/property-punctuation-tests (Files): Likewise.
10216         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10217         * modules/unictype/property-radical-tests (Files): Likewise.
10218         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10219         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10220         * modules/unictype/property-space-tests (Files): Likewise.
10221         * modules/unictype/property-terminal-punctuation-tests (Files):
10222         Likewise.
10223         * modules/unictype/property-test-tests (Files): Likewise.
10224         * modules/unictype/property-titlecase-tests (Files): Likewise.
10225         * modules/unictype/property-unassigned-code-value-tests (Files):
10226         Likewise.
10227         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10228         * modules/unictype/property-uppercase-tests (Files): Likewise.
10229         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10230         * modules/unictype/property-white-space-tests (Files): Likewise.
10231         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10232         * modules/unictype/property-xid-start-tests (Files): Likewise.
10233         * modules/unictype/property-zero-width-tests (Files): Likewise.
10234         * modules/unictype/scripts-tests (Files): Likewise.
10235         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10236         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10237         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10238         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10239         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10240         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10241         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10242         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10243         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10244         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10245         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10246         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10247         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10248         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10249         * modules/uninorm/composition-tests (Files): Likewise.
10250         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10251         * modules/uninorm/decomposition-tests (Files): Likewise.
10252         * modules/uninorm/filter-tests (Files): Likewise.
10253         * modules/uninorm/nfc-tests (Files): Likewise.
10254         * modules/uninorm/nfd-tests (Files): Likewise.
10255         * modules/uninorm/nfkc-tests (Files): Likewise.
10256         * modules/uninorm/nfkd-tests (Files): Likewise.
10257         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10258         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10259         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10260         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10261         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10262         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10263         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10264         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10265         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10266         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10267         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10268         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10269         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10270         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10271         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10272         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10273         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10274         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10275         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10276         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10277         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10278         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10279         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10280         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10281         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10282         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10283         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10284         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10285         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10286         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10287         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10288         * modules/uniwidth/u8-width-tests (Files): Likewise.
10289         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10290         * modules/uniwidth/u16-width-tests (Files): Likewise.
10291         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10292         * modules/uniwidth/u32-width-tests (Files): Likewise.
10293         * modules/uniwidth/width-tests (Files): Likewise.
10294         * modules/unlink-tests (Files): Likewise.
10295         * modules/unsetenv-tests (Files): Likewise.
10296         * modules/usleep-tests (Files): Likewise.
10297         * modules/utimens-tests (Files): Likewise.
10298         * modules/utimensat-tests (Files): Likewise.
10299         * modules/vasnprintf-posix-tests (Files): Likewise.
10300         * modules/vasnprintf-tests (Files): Likewise.
10301         * modules/vasprintf-posix-tests (Files): Likewise.
10302         * modules/vasprintf-tests (Files): Likewise.
10303         * modules/vdprintf-posix-tests (Files): Likewise.
10304         * modules/vfprintf-posix-tests (Files): Likewise.
10305         * modules/vprintf-posix-tests (Files): Likewise.
10306         * modules/vsnprintf-posix-tests (Files): Likewise.
10307         * modules/vsnprintf-tests (Files): Likewise.
10308         * modules/vsprintf-posix-tests (Files): Likewise.
10309         * modules/wcrtomb-tests (Files): Likewise.
10310         * modules/wcsnrtombs-tests (Files): Likewise.
10311         * modules/wcsrtombs-tests (Files): Likewise.
10312         * modules/wctype-tests (Files): Likewise.
10313         * modules/wcwidth-tests (Files): Likewise.
10314         * modules/xmemdup0-tests (Files): Likewise.
10315         * modules/xprintf-posix-tests (Files): Likewise.
10316         * modules/xvasprintf-tests (Files): Likewise.
10317
10318 2009-12-24  Eric Blake  <ebb9@byu.net>
10319
10320         test-nanosleep: fix typo
10321         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10322         patch.
10323         Reported by Bruno Haible.
10324
10325 2009-12-24  Bruno Haible  <bruno@clisp.org>
10326
10327         Reduce namespace pollution on glibc systems.
10328         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10329         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10330         systems.
10331         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10332         <getopt.h> on glibc systems.
10333         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10334         systems.
10335         * lib/fcntl.c: Include <unistd.h> here instead.
10336
10337 2009-12-24  Bruno Haible  <bruno@clisp.org>
10338
10339         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10340
10341 2009-12-24  Eric Blake  <ebb9@byu.net>
10342
10343         tests: add signature checks
10344         * tests/signature.h (SIGNATURE_CHECK): New file.
10345         * modules/atexit-tests (Files): Use it.
10346         * modules/btowc-tests (Files): Likewise.
10347         * modules/canonicalize-lgpl-tests (Files): Likewise.
10348         * modules/ceilf-tests (Files): Likewise.
10349         * modules/ceill-tests (Files): Likewise.
10350         * modules/chown-tests (Files): Likewise.
10351         * modules/dprintf-posix-tests (Files): Likewise.
10352         * modules/dup2-tests (Files): Likewise.
10353         * modules/dup3-tests (Files): Likewise.
10354         * modules/duplocale-tests (Files): Likewise.
10355         * modules/fchdir-tests (Files): Likewise.
10356         * modules/fcntl-tests (Files): Likewise.
10357         * modules/fdopendir-tests (Files): Likewise.
10358         * modules/fflush-tests (Files): Likewise.
10359         * modules/flock-tests (Files): Likewise.
10360         * modules/floorf-tests (Files): Likewise.
10361         * modules/floorl-tests (Files): Likewise.
10362         * modules/fnmatch-tests (Files): Likewise.
10363         * modules/fopen-tests (Files): Likewise.
10364         * modules/fprintf-posix-tests (Files): Likewise.
10365         * modules/freopen-tests (Files): Likewise.
10366         * modules/frexp-nolibm-tests (Files): Likewise.
10367         * modules/frexp-tests (Files): Likewise.
10368         * modules/frexpl-nolibm-tests (Files): Likewise.
10369         * modules/frexpl-tests (Files): Likewise.
10370         * modules/fseek-tests (Files): Likewise.
10371         * modules/fseeko-tests (Files): Likewise.
10372         * modules/fsync-tests (Files): Likewise.
10373         * modules/ftell-tests (Files): Likewise.
10374         * modules/ftello-tests (Files): Likewise.
10375         * modules/futimens-tests (Files): Likewise.
10376         * modules/getaddrinfo-tests (Files): Likewise.
10377         * modules/getcwd-tests (Files): Likewise.
10378         * modules/getdelim-tests (Files): Likewise.
10379         * modules/getdtablesize-tests (Files): Likewise.
10380         * modules/getgroups-tests (Files): Likewise.
10381         * modules/gethostname-tests (Files): Likewise.
10382         * modules/getline-tests (Files): Likewise.
10383         * modules/getopt-posix-tests (Files): Likewise.
10384         * modules/gettimeofday-tests (Files): Likewise.
10385         * modules/glob-tests (Files): Likewise.
10386         * modules/iconv-tests (Files): Likewise.
10387         * modules/inet_ntop-tests (Files): Likewise.
10388         * modules/inet_pton-tests (Files): Likewise.
10389         * modules/isblank-tests (Files): Likewise.
10390         * modules/lchown-tests (Files): Likewise.
10391         * modules/ldexpl-tests (Files): Likewise.
10392         * modules/link-tests (Files): Likewise.
10393         * modules/linkat-tests (Files): Likewise.
10394         * modules/lseek-tests (Files): Likewise.
10395         * modules/lstat-tests (Files): Likewise.
10396         * modules/mbrtowc-tests (Files): Likewise.
10397         * modules/mbsinit-tests (Files): Likewise.
10398         * modules/mbsnrtowcs-tests (Files): Likewise.
10399         * modules/mbsrtowcs-tests (Files): Likewise.
10400         * modules/memchr-tests (Files): Likewise.
10401         * modules/memcmp-tests (Files): Likewise.
10402         * modules/memmem-tests (Files): Likewise.
10403         * modules/memrchr-tests (Files): Likewise.
10404         * modules/mkdir-tests (Files): Likewise.
10405         * modules/mkfifo-tests (Files): Likewise.
10406         * modules/mkfifoat-tests (Files): Likewise.
10407         * modules/mknod-tests (Files): Likewise.
10408         * modules/nanosleep-tests (Files): Likewise.
10409         * modules/nl_langinfo-tests (Files): Likewise.
10410         * modules/obstack-printf-tests (Files): Likewise.
10411         * modules/open-tests (Files): Likewise.
10412         * modules/openat-tests (Files): Likewise.
10413         * modules/perror-tests (Files): Likewise.
10414         * modules/pipe2-tests (Files): Likewise.
10415         * modules/poll-tests (Files): Likewise.
10416         * modules/popen-tests (Files): Likewise.
10417         * modules/posix_spawn-tests (Files): Likewise.
10418         * modules/posix_spawnp-tests (Files): Likewise.
10419         * modules/pread-tests (Files): Likewise.
10420         * modules/printf-posix-tests (Files): Likewise.
10421         * modules/pty-tests (Files): Likewise.
10422         * modules/random_r-tests (Files): Likewise.
10423         * modules/rawmemchr-tests (Files): Likewise.
10424         * modules/readlink-tests (Files): Likewise.
10425         * modules/remove-tests (Files): Likewise.
10426         * modules/rename-tests (Files): Likewise.
10427         * modules/renameat-tests (Files): Likewise.
10428         * modules/rmdir-tests (Files): Likewise.
10429         * modules/round-tests (Files): Likewise.
10430         * modules/roundf-tests (Files): Likewise.
10431         * modules/roundl-tests (Files): Likewise.
10432         * modules/select-tests (Files): Likewise.
10433         * modules/setenv-tests (Files): Likewise.
10434         * modules/sigaction-tests (Files): Likewise.
10435         * modules/sleep-tests (Files): Likewise.
10436         * modules/snprintf-posix-tests (Files): Likewise.
10437         * modules/snprintf-tests (Files): Likewise.
10438         * modules/sprintf-posix-tests (Files): Likewise.
10439         * modules/stat-tests (Files): Likewise.
10440         * modules/strcasestr-tests (Files): Likewise.
10441         * modules/strchrnul-tests (Files): Likewise.
10442         * modules/strerror-tests (Files): Likewise.
10443         * modules/strsignal-tests (Files): Likewise.
10444         * modules/strstr-tests (Files): Likewise.
10445         * modules/strtod-tests (Files): Likewise.
10446         * modules/strverscmp-tests (Files): Likewise.
10447         * modules/symlink-tests (Files): Likewise.
10448         * modules/symlinkat-tests (Files): Likewise.
10449         * modules/times-tests (Files): Likewise.
10450         * modules/trunc-tests (Files): Likewise.
10451         * modules/truncf-tests (Files): Likewise.
10452         * modules/truncl-tests (Files): Likewise.
10453         * modules/tsearch-tests (Files): Likewise.
10454         * modules/uname-tests (Files): Likewise.
10455         * modules/unlink-tests (Files): Likewise.
10456         * modules/unsetenv-tests (Files): Likewise.
10457         * modules/usleep-tests (Files): Likewise.
10458         * modules/utimensat-tests (Files): Likewise.
10459         * modules/vasprintf-tests (Files): Likewise.
10460         * modules/vdprintf-posix-tests (Files): Likewise.
10461         * modules/vfprintf-posix-tests (Files): Likewise.
10462         * modules/vprintf-posix-tests (Files): Likewise.
10463         * modules/vsnprintf-posix-tests (Files): Likewise.
10464         * modules/vsnprintf-tests (Files): Likewise.
10465         * modules/vsprintf-posix-tests (Files): Likewise.
10466         * modules/wcrtomb-tests (Files): Likewise.
10467         * modules/wcsnrtombs-tests (Files): Likewise.
10468         * modules/wcsrtombs-tests (Files): Likewise.
10469         * modules/wcwidth-tests (Files): Likewise.
10470         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
10471         * tests/test-isinf.c (isinf): Likewise.
10472         * tests/test-isnan.c (isnan): Likewise.
10473         * tests/test-signbit.c (signbit): Likewise.
10474         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
10475         declaration, either as macro or with correct signature.
10476         (select): Ensure function under test is declared with correct
10477         signature in correct header.
10478         * tests/test-atexit.c (atexit): Likewise.
10479         * tests/test-btowc.c (btowc): Likewise.
10480         * tests/test-canonicalize-lgpl.c (realpath)
10481         (canonicalize_file_name): Likewise.
10482         * tests/test-ceilf1.c (ceilf): Likewise.
10483         * tests/test-ceill.c (ceill): Likewise.
10484         * tests/test-chown.c (chown): Likewise.
10485         * tests/test-dprintf-posix.c (dprintf): Likewise.
10486         * tests/test-dup2.c (dup2): Likewise.
10487         * tests/test-dup3.c (dup3): Likewise.
10488         * tests/test-duplocale.c (duplocale): Likewise.
10489         * tests/test-fchdir.c (fchdir): Likewise.
10490         * tests/test-fchownat.c (fchownat): Likewise.
10491         * tests/test-fcntl.c (fcntl): Likewise.
10492         * tests/test-fdopendir.c (fdopendir): Likewise.
10493         * tests/test-fflush.c (fflush): Likewise.
10494         * tests/test-flock.c (flock): Likewise.
10495         * tests/test-floorf1.c (floorf): Likewise.
10496         * tests/test-floorl.c (floorl): Likewise.
10497         * tests/test-fnmatch.c (fnmatch): Likewise.
10498         * tests/test-fopen.c (fopen): Likewise.
10499         * tests/test-fprintf-posix.c (fprintf): Likewise.
10500         * tests/test-freopen.c (freopen): Likewise.
10501         * tests/test-frexp.c (frexp): Likewise.
10502         * tests/test-frexpl.c (frexpl): Likewise.
10503         * tests/test-fseek.c (fseek): Likewise.
10504         * tests/test-fseeko.c (fseeko): Likewise.
10505         * tests/test-fstatat.c (fstatat): Likewise.
10506         * tests/test-fsync.c (fsync): Likewise.
10507         * tests/test-ftell.c (ftell): Likewise.
10508         * tests/test-ftello.c (ftello): Likewise.
10509         * tests/test-futimens.c (futimens): Likewise.
10510         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
10511         (gai_strerror): Likewise.
10512         * tests/test-getcwd.c (getcwd): Likewise.
10513         * tests/test-getdelim.c (getdelim): Likewise.
10514         * tests/test-getdtablesize.c (getdtablesize): Likewise.
10515         * tests/test-getgroups.c (getgroups): Likewise.
10516         * tests/test-gethostname.c (gethostname): Likewise.
10517         * tests/test-getline.c (getline): Likewise.
10518         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
10519         Likewise.
10520         * tests/test-gettimeofday.c (gettimeofday): Likewise.
10521         * tests/test-glob.c (glob, globfree): Likewise.
10522         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
10523         * tests/test-inet_ntop.c (inet_ntop): Likewise.
10524         * tests/test-inet_pton.c (inet_pton): Likewise.
10525         * tests/test-isblank.c (isblank): Likewise.
10526         * tests/test-lchown.c (lchown): Likewise.
10527         * tests/test-ldexpl.c (ldexpl): Likewise.
10528         * tests/test-link.c (link): Likewise.
10529         * tests/test-linkat.c (linkat): Likewise.
10530         * tests/test-lseek.c (lseek): Likewise.
10531         * tests/test-lstat.c (lstat): Likewise.
10532         * tests/test-mbrtowc.c (mbrtowc): Likewise.
10533         * tests/test-mbsinit.c (mbsinit): Likewise.
10534         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
10535         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
10536         * tests/test-memchr.c (memchr): Likewise.
10537         * tests/test-memcmp.c (memcmp): Likewise.
10538         * tests/test-memmem.c (memmem): Likewise.
10539         * tests/test-memrchr.c (memrchr): Likewise.
10540         * tests/test-mkdir.c (mkdir): Likewise.
10541         * tests/test-mkdirat.c (mkdirat): Likewise.
10542         * tests/test-mkfifo.c (mkfifo): Likewise.
10543         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
10544         * tests/test-mknod.c (mknod): Likewise.
10545         * tests/test-nanosleep.c (nanosleep): Likewise.
10546         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
10547         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
10548         Likewise.
10549         * tests/test-open.c (open): Likewise.
10550         * tests/test-openat.c (openat): Likewise.
10551         * tests/test-perror.c (perror): Likewise.
10552         * tests/test-pipe2.c (pipe2): Likewise.
10553         * tests/test-poll.c (poll): Likewise.
10554         * tests/test-popen.c (popen, pclose): Likewise.
10555         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
10556         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
10557         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
10558         (posix_spawn_file_actions_destroy)
10559         (posix_spawn_file_actions_addclose)
10560         (posix_spawn_file_actions_addopen)
10561         (posix_spawn_file_actions_adddup2): Likewise.
10562         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
10563         * tests/test-pread.c (pread): Likewise.
10564         * tests/test-printf-posix.c (printf): Likewise.
10565         * tests/test-pty.c (openpty, forkpty): Likewise.
10566         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
10567         (random_r): Likewise.
10568         * tests/test-rawmemchr.c (rawmemchr): Likewise.
10569         * tests/test-readlink.c (readlink): Likewise.
10570         * tests/test-remove.c (remove): Likewise.
10571         * tests/test-rename.c (rename): Likewise.
10572         * tests/test-renameat.c (renameat): Likewise.
10573         * tests/test-rmdir.c (rmdir): Likewise.
10574         * tests/test-round1.c (round): Likewise.
10575         * tests/test-roundf1.c (roundf): Likewise.
10576         * tests/test-roundl.c (roundl): Likewise.
10577         * tests/test-setenv.c (setenv): Likewise.
10578         * tests/test-sigaction.c (sigaction): Likewise.
10579         * tests/test-sleep.c (sleep): Likewise.
10580         * tests/test-snprintf.c (snprintf): Likewise.
10581         * tests/test-sprintf-posix.c (sprintf): Likewise.
10582         * tests/test-stat.c (stat): Likewise.
10583         * tests/test-stpncpy.c (stpncpy): Likewise.
10584         * tests/test-strcasestr.c (strcasestr): Likewise.
10585         * tests/test-strchrnul.c (strchrnul): Likewise.
10586         * tests/test-strerror.c (strerror): Likewise.
10587         * tests/test-strsignal.c (strsignal): Likewise.
10588         * tests/test-strstr.c (strstr): Likewise.
10589         * tests/test-strtod.c (strtod): Likewise.
10590         * tests/test-strverscmp.c (strverscmp): Likewise.
10591         * tests/test-symlink.c (symlink): Likewise.
10592         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
10593         * tests/test-times.c (times): Likewise.
10594         * tests/test-trunc1.c (trunc): Likewise.
10595         * tests/test-truncf1.c (truncf): Likewise.
10596         * tests/test-truncl.c (truncl): Likewise.
10597         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
10598         Likewise.
10599         * tests/test-uname.c (uname): Likewise.
10600         * tests/test-unlink.c (unlink): Likewise.
10601         * tests/test-unlinkat.c (unlinkat): Likewise.
10602         * tests/test-unsetenv.c (unsetenv): Likewise.
10603         * tests/test-usleep.c (usleep): Likewise.
10604         * tests/test-utimensat.c (utimensat): Likewise.
10605         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
10606         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
10607         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
10608         * tests/test-vprintf-posix.c (vprintf): Likewise.
10609         * tests/test-vsnprintf.c (vsnprintf): Likewise.
10610         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
10611         * tests/test-wcrtomb.c (wcrtomb): Likewise.
10612         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
10613         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
10614         * tests/test-wcwidth.c (wcwidth): Likewise.
10615
10616         build: pull in conditional headers during GNULIB_POSIXCHECK
10617         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
10618         definitions from any conditionally-included headers.
10619         * lib/stdlib.in.h (includes): Likewise.
10620         * lib/unistd.in.h (includes): Likewise.
10621
10622 2009-12-24  Bruno Haible  <bruno@clisp.org>
10623
10624         * tests/test-argv-iter.c: Include header file being tested immediately
10625         after config.h.
10626         * tests/test-base64.c: Likewise.
10627         * tests/test-flock.c: Likewise.
10628         * tests/test-fsync.c: Likewise.
10629         * tests/test-getdate.c: Likewise.
10630         * tests/test-getndelim2.c: Likewise.
10631         * tests/test-isfinite.c: Likewise.
10632         * tests/test-isinf.c: Likewise.
10633         * tests/test-strerror.c: Likewise.
10634         * tests/test-strsignal.c: Likewise.
10635
10636 2009-12-23  Eric Blake  <ebb9@byu.net>
10637
10638         unistd: work around cygwin bug
10639         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
10640         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
10641         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10642
10643 2009-12-23  Bruno Haible  <bruno@clisp.org>
10644
10645         localename: More tests.
10646         * tests/test-localename.c (SIZEOF): New macro.
10647         (categories): New variable.
10648         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
10649         test_locale_name_default): Add test w.r.t. thread locale.
10650         (test_locale_name_thread): New function.
10651         (main): Invoke it.
10652
10653         localename: Make aware of thread locale.
10654         * lib/localename.h (gl_locale_name_thread): New declaration.
10655         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
10656         behaviour with respect to thread locale.
10657         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
10658         <langinfo.h>, glthread/lock.h.
10659         (SIZE_BITS): New macro.
10660         (string_hash): New function.
10661         (struct hash_node): New type.
10662         (HASH_TABLE_SIZE): New macro.
10663         (struniq_hash_table, struniq_lock): New variables.
10664         (struniq): New function.
10665         (gl_locale_name_thread): New function.
10666         (gl_locale_name): Invoke it.
10667         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
10668         * modules/localename (Depends-on): Add lock.
10669         Reported by Mike Gran <spk121@yahoo.com>.
10670
10671 2009-12-23  Eric Blake  <ebb9@byu.net>
10672
10673         va-args: new module
10674         * modules/va-args: New file.
10675         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
10676         * MODULES.html.sh (Core language properties): Mention it.
10677
10678         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
10679         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
10680         named alias for __attribute__((__unused__)).
10681         * lib/chown.c: Update client.
10682         * lib/fchmodat.c: Likewise.
10683         * lib/fts.c: Likewise.
10684         * lib/getdate.y: Likewise.
10685         * lib/getgroups.c: Likewise.
10686         * lib/getopt.c: Likewise.
10687         * lib/getugroups.c: Likewise.
10688         * lib/mkdir.c: Likewise.
10689         * lib/mkfifo.c: Likewise.
10690         * lib/mkfifoat.c: Likewise.
10691         * lib/mknod.c: Likewise.
10692         * lib/mknodat.c: Likewise.
10693         * lib/readlink.c: Likewise.
10694         * lib/se-context.in.h: Likewise.
10695         * lib/se-selinux.in.h: Likewise.
10696         * lib/sockets.c: Likewise.
10697         * lib/symlink.c: Likewise.
10698         * lib/symlinkat.c: Likewise.
10699         * lib/unicodeio.c: Likewise.
10700         * lib/unistr.h: Likewise.
10701         * tests/test-areadlink.c: Likewise.
10702         * tests/test-areadlinkat.c: Likewise.
10703         * tests/test-filenamecat.c: Likewise.
10704         * tests/test-fseeko.c: Likewise.
10705         * tests/test-ftello.c: Likewise.
10706         * tests/test-getdate.c: Likewise.
10707         * tests/test-getgroups.c: Likewise.
10708         * tests/test-gethostname.c: Likewise.
10709         * tests/test-quotearg.c: Likewise.
10710         * tests/test-version-etc.c: Likewise.
10711         * tests/test-xalloc-die.c: Likewise.
10712         * tests/test-xfprintf-posix.c: Likewise.
10713         * tests/test-xprintf-posix.c: Likewise.
10714         * tests/test-xvasprintf.c: Likewise.
10715
10716         tests: avoid compiler warnings
10717         * tests/test-fcntl.c (main): Delete unused parameters.
10718         * tests/test-freopen-safer.c (main): Likewise.
10719         * tests/test-xalloc-die.c (main): Mark unused parameters.
10720         * tests/test-fseeko.c (main): Likewise.
10721         * tests/test-ftello.c (main): Likewise.
10722         * tests/test-nanosleep.c (main): Avoid declaration warning.
10723         * tests/test-sleep.c (main): Likewise.
10724         * tests/test-unsetenv.c (main): Silence warning about string
10725         literal.
10726         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10727
10728 2009-12-23  Bruno Haible  <bruno@clisp.org>
10729
10730         * tests/test-localename.c (test_locale_name): New function, extracted
10731         from main. Also test mixed situations.
10732         (test_locale_name_posix, test_locale_name_environ,
10733         test_locale_name_default): New functions.
10734         (main): Invoke them all.
10735         * modules/localename-tests (configure.ac): Test for newlocale.
10736
10737 2009-12-23  Bruno Haible  <bruno@clisp.org>
10738
10739         unistd: Ensure getcwd gets declared before being overridden.
10740         * lib/unistd.in.h: Conditionally include <io.h>.
10741
10742 2009-12-22  Bruno Haible  <bruno@clisp.org>
10743
10744         wchar: Diagnose broken combination of glibc and gcc versions and flags.
10745         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
10746         (gl_WCHAR_H): Invoke it.
10747         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
10748         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
10749         Reported by Karl Berry <karl@freefriends.org>.
10750
10751 2009-12-22  Eric Blake  <ebb9@byu.net>
10752
10753         math, unistd: avoid redundant includes
10754         * lib/math.in.h (isnan): No need to re-include <math.h>.
10755         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
10756
10757         getsubopt: work around cygwin bug
10758         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
10759         avoid conflicting with system getsubopt.
10760         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
10761         bug.
10762
10763         getopt: synchronize from glibc
10764         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
10765         parameter order.  Adjust all callers.
10766         (_getopt_internal_r, main): Adjust quoting in error messages.
10767         Drop considerations for outdated POSIX 1003.2 error message.
10768         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
10769         callers.
10770         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
10771
10772         test-getopt: test stderr behavior
10773         * modules/getopt-posix-tests (Depends-on): Add dup2.
10774         * tests/test-getopt.c (ASSERT): Avoid stderr.
10775         (main): Move stderr to a temporary file.
10776         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
10777         Instead, add parameter to inform caller if output occurred.
10778         (test_getopt): Adjust all existing tests to expect silence, and
10779         add new tests of leading ":".
10780         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10781         glibc shortcomings with leading "-:" or "+:" in optstring.
10782         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10783         Likewise.
10784         * doc/posix-functions/getopt.texi (getopt): Likewise.
10785
10786         test-getopt: enhance test
10787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
10788         supports optind=0.
10789         * tests/test-getopt.c (OPTIND_MIN): Move...
10790         * tests/test-getopt.h (OPTIND_MIN): ...here.
10791         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
10792         Require that optind=0 works, since modern BSD supports it in
10793         addition to optreset, and since coreutils expects it.
10794         (test_getopt_long_only): New test.
10795         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10796         glibc shortcomings with 'W;', and enforcement of optind=0.
10797         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10798         Likewise.
10799
10800 2009-12-21  Bruno Haible  <bruno@clisp.org>
10801
10802         localename: Improvements for MacOS X and Cygwin.
10803         * lib/localename.h (gl_locale_name_environ): New declaration.
10804         * lib/localename.c (gl_locale_name_environ): New function, extracted from
10805         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
10806         (gl_locale_name_posix): Invoke it.
10807         (gl_locale_name_default): Add comments. Use Windows native API also on
10808         Cygwin.
10809
10810 2009-12-21  Bruno Haible  <bruno@clisp.org>
10811
10812         Update list of Win32 locale ids.
10813         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
10814         (LANG_SAMI): Renamed from LANG_SAAMI.
10815         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
10816         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
10817         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
10818         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
10819         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
10820         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
10821         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
10822         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
10823         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
10824         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
10825         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
10826         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
10827         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
10828         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
10829         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
10830         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
10831         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
10832         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
10833         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
10834         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
10835         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
10836         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
10837         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
10838         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
10839         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
10840         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
10841         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
10842         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
10843         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
10844         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
10845         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
10846         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
10847         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
10848         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
10849         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
10850         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
10851         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
10852         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
10853         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
10854         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
10855         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
10856         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
10857         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
10858         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
10859         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
10860         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
10861         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
10862         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
10863         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
10864         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
10865         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
10866         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
10867         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
10868         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
10869         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
10870         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
10871         Add more languages and countries for Sami, Sorbian. Add more countries
10872         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
10873         for Pashto. Change country for Syriac, Tswana.
10874
10875 2009-12-21  Eric Blake  <ebb9@byu.net>
10876
10877         test-utimens: avoid spurious failure
10878         * tests/test-chown.h (nap): Factor...
10879         * tests/nap.h: ...into new file.
10880         * tests/test-lchown.h (nap): Avoid duplication.
10881         * tests/test-utimens-common.h (nap): Use shared implementation,
10882         necessary on file systems with 1-second resolution.
10883         * modules/chown-tests (Files): Include new file.
10884         * modules/fdutimensat-tests (Files): Likewise.
10885         * modules/futimens-tests (Files): Likewise.
10886         * modules/lchown-tests (Files): Likewise.
10887         * modules/openat-tests (Files): Likewise.
10888         * modules/utimens-tests (Files): Likewise.
10889         * modules/utimensat-tests (Files): Likewise.
10890
10891 2009-12-19  Eric Blake  <ebb9@byu.net>
10892
10893         futimens, utimensat: work around Linux bug
10894         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
10895         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10896         * lib/utimensat.c (rpl_utimensat): Work around it.
10897         * lib/futimens.c (rpl_futimens): Adjust comment.
10898
10899         utimens: work around Linux ctime bug
10900         * lib/utimens.c (detect_ctime_bug): New helper function.
10901         (update_timespec): Differentiate between workaround needed for
10902         this bug vs. what is needed for systems that lack utimensat.
10903         (fdutimens, lutimens): Work around bug.
10904
10905         utimens: check for ctime update
10906         * tests/test-utimens-common.h (check_ctime): Define.
10907         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
10908         * tests/test-futimens.h (test_futimens): Likewise.
10909         * tests/test-lutimens.h (test_lutimens): Likewise.
10910         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10911         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10912
10913 2009-12-19  Bruno Haible  <bruno@clisp.org>
10914
10915         dprintf-posix: Check against memory leak fixed on 2009-12-15.
10916         * tests/test-dprintf-posix2.sh: New file.
10917         * tests/test-dprintf-posix2.c: New file.
10918         * modules/dprintf-posix-tests (Files): Add them.
10919         (configure.ac): Check for getrlimit and setrlimit.
10920         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10921
10922 2009-12-19  Bruno Haible  <bruno@clisp.org>
10923
10924         fprintf-posix: Check against memory leak fixed on 2009-12-15.
10925         * tests/test-fprintf-posix3.sh: New file.
10926         * tests/test-fprintf-posix3.c: New file.
10927         * modules/fprintf-posix-tests (Files): Add them.
10928         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10929
10930 2009-12-19  Eric Blake  <ebb9@byu.net>
10931
10932         dirfd: fix prototype
10933         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
10934         * lib/dirfd.c (dirfd): Likewise.
10935
10936         canonicalize: reduce memory usage
10937         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
10938         allocation to size.
10939         Reported by Solar Designer <solar@openwall.com>.
10940
10941 2009-12-19  Bruno Haible  <bruno@clisp.org>
10942
10943         New module attribute 'Applicability'.
10944         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
10945         * gnulib-tool: New option --extract-applicability.
10946         (func_usage): Document it.
10947         (sed_extract_prog): Recognize it.
10948         (func_get_applicability): New function.
10949         (func_import): Generalize handling of 'link-warning' module.
10950         * modules/link-warning (Applicability): New section.
10951         * modules/arg-nonnull (Applicability): New section.
10952         Repoted by Simon Josefsson <simon@josefsson.org>.
10953
10954 2009-12-19  Bruno Haible  <bruno@clisp.org>
10955
10956         fflush: tweak
10957         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
10958         * lib/fseeko.c (rpl_fseeko): Likewise.
10959
10960 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
10961
10962         * lib/gl_list.h: Fix typo in comment.
10963
10964 2009-12-16  Eric Blake  <ebb9@byu.net>
10965
10966         fcntl: use to simplify other modules
10967         * modules/cloexec (Depends-on): Add fcntl.
10968         * modules/fchdir (Depends-on): Likewise.
10969         * modules/fd-safer-flag (Depends-on): Likewise.
10970         * modules/unistd-safer (Depends-on): Likewise.
10971         * modules/dup3 (configure.ac): Set module indicator.
10972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10973         missing.
10974         * lib/fchdir.c (_gl_register_dup): Fix comment.
10975         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10976         * lib/dup-safer.c (dup_safer): Likewise.
10977         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10978         * lib/dup3.c (dup3): Likewise.
10979         * tests/test-fchdir.c (main): Enhance test.
10980         Fixes a dup_cloexec bug reported by Ondřej Vašík.
10981
10982         fcntl: port portions of fcntl to mingw
10983         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10984         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10985         replacement for mingw.
10986         * modules/fcntl (Description): Update.
10987         (Depends-on): Add dup2.
10988         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10989         * modules/fcntl-h (Makefile.am): Substitute it.
10990         * lib/fcntl.in.h (fcntl): Update declaration.
10991         (F_DUPFD, F_GETFD): New macros, when needed.
10992         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10993         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10994         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10995         we now guarantee.
10996
10997         fcntl: work around cygwin bug in F_DUPFD
10998         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10999         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11000         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11001         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11002         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11003
11004         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11005         * modules/fcntl (Files): List new files.
11006         (configure.ac): Run a test.
11007         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11008         * lib/fcntl.c (rpl_fcntl): Likewise.
11009         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11010         (gl_FCNTL_H): Always replace fcntl.h.
11011         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11012         * lib/fcntl.in.h (fcntl): Declare replacement.
11013         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11014         needed, plus a witness.
11015         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11016         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11017         * tests/test-fcntl.c: New file.
11018         * modules/fcntl-tests: Likewise.
11019
11020         binary-io: avoid potential compilation warning
11021         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11022         directives.
11023
11024         fflush: avoid compilation error on NetBSD
11025         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11026         between off_t and fpos_t, since the latter is sometimes a struct.
11027         * lib/fseeko.c (rpl_fseeko): Likewise.
11028         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11029
11030 2009-12-15  Eric Blake  <ebb9@byu.net>
11031
11032         fcntl-h, stdio, sys_ioctl: fix declarations
11033         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11034         function must not take arguments.
11035         * lib/sys_ioctl.in.h (ioctl): Likewise.
11036         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11037         (open): Add a link warning.
11038
11039 2009-12-15  Jim Meyering  <meyering@redhat.com>
11040
11041         areadlink, areadlink-with-size: relax license to LGPLv2+
11042         * modules/areadlink (License): Relax to LGPLv2+.
11043         * modules/areadlink-with-size (License): Likewise.
11044
11045 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11046             Bruno Haible  <bruno@clisp.org>
11047
11048         *printf: Fix memory leak.
11049         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11050         * lib/vfprintf.c (vfprintf): Likewise.
11051         * lib/dprintf.c (dprintf): Likewise.
11052         * lib/vdprintf.c (vdprintf): Likewise.
11053
11054 2009-12-14  Eric Blake  <ebb9@byu.net>
11055
11056         accept4: adjust module dependencies
11057         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11058
11059         utimens: one more try at avoiding compiler warning
11060         * lib/utimens.c (lutimens): Lower scope of result.
11061
11062 2009-12-13  Bruno Haible  <bruno@clisp.org>
11063
11064         Move the malloc checking from module 'list' to new module 'xlist'.
11065         * modules/xlist: New file.
11066         * lib/gl_xlist.h: New file.
11067         * lib/gl_xlist.c: New file.
11068         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11069         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11070         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11071         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11072         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11073         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11074         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11075         gl_sortedlist_nx_add): New declarations.
11076         (struct gl_list_implementation): Rename and change methods accordingly.
11077         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11078         (gl_list_nx_create): Renamed from gl_list_create.
11079         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11080         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11081         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11082         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11083         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11084         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11085         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11086         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11087         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11088         gl_list_create_empty.
11089         (gl_list_nx_create): Renamed from gl_list_create.
11090         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11091         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11092         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11093         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11094         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11095         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11096         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11097         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11098         * lib/gl_array_list.c: Don't include xalloc.h.
11099         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11100         NULL upon out-of-memory.
11101         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11102         out-of-memory.
11103         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11104         Change return type to 'int'.
11105         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11106         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11107         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11108         upon out-of-memory.
11109         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11110         upon out-of-memory.
11111         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11112         upon out-of-memory.
11113         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11114         upon out-of-memory.
11115         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11116         out-of-memory.
11117         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11118         Update.
11119         (gl_array_list_implementation): Update.
11120         * lib/gl_carray_list.c: Don't include xalloc.h.
11121         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11122         Return NULL upon out-of-memory.
11123         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11124         out-of-memory.
11125         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11126         Change return type to 'int'.
11127         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11128         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11129         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11130         upon out-of-memory.
11131         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11132         upon out-of-memory.
11133         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11134         out-of-memory.
11135         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11136         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11137         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11138         Update.
11139         (gl_carray_list_implementation): Update.
11140         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11141         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11142         gl_linked_create_empty. Return NULL upon out-of-memory.
11143         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11144         out-of-memory.
11145         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11146         Change return type to 'int'. Return -1 upon out-of-memory.
11147         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11148         out-of-memory.
11149         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11150         upon out-of-memory.
11151         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11152         upon out-of-memory.
11153         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11154         NULL upon out-of-memory.
11155         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11156         upon out-of-memory.
11157         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11158         out-of-memory.
11159         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11160         Update.
11161         * lib/gl_linked_list.c: Don't include xalloc.h.
11162         (gl_linked_list_implementation): Update.
11163         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11164         (add_to_bucket): Change return type to 'int'.
11165         (gl_linkedhash_list_implementation): Update.
11166         * lib/gl_anytree_list1.h (free_subtree): New function.
11167         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11168         gl_tree_create_empty. Return NULL upon out-of-memory.
11169         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11170         Change return type to 'int'. Return -1 upon out-of-memory.
11171         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11172         out-of-memory.
11173         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11174         (gl_tree_remove_node): New function, moved here from
11175         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11176         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11177         Update.
11178         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11179         malloc, not xmalloc. Return NULL upon out-of-memory.
11180         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11181         out-of-memory.
11182         (gl_tree_remove_node_from_tree): New function, extracted from
11183         gl_tree_remove_node.
11184         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11185         upon out-of-memory.
11186         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11187         out-of-memory.
11188         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11189         upon out-of-memory.
11190         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11191         upon out-of-memory.
11192         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11193         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11194         not xmalloc. Return NULL upon out-of-memory.
11195         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11196         out-of-memory.
11197         (gl_tree_remove_node_from_tree): New function, extracted from
11198         gl_tree_remove_node.
11199         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11200         upon out-of-memory.
11201         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11202         out-of-memory.
11203         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11204         upon out-of-memory.
11205         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11206         upon out-of-memory.
11207         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11208         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11209         gl_anytree_list1.h before gl_anyavltree_list2.h.
11210         (gl_avltree_list_implementation): Update.
11211         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11212         gl_anytree_list1.h before gl_anyavltree_list2.h.
11213         (gl_rbtree_list_implementation): Update.
11214         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11215         Change return type to 'int'. Return -1 upon out-of-memory. Use
11216         __builtin_expect.
11217         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11218         (gl_avltreehash_list_implementation): Update.
11219         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11220         (gl_rbtreehash_list_implementation): Update.
11221         * modules/array-list (Depends-on): Remove xalloc.
11222         * modules/carray-list (Depends-on): Likewise.
11223         * modules/linked-list (Depends-on): Likewise.
11224         * modules/linkedhash-list (Depends-on): Likewise.
11225         * modules/avltree-list (Depends-on): Likewise.
11226         * modules/rbtree-list (Depends-on): Likewise.
11227         * modules/avltreehash-list (Depends-on): Likewise.
11228         * modules/rbtreehash-list (Depends-on): Likewise.
11229
11230         * modules/xsublist: New file.
11231         * lib/gl_xsublist.h: New file.
11232         * lib/gl_xsublist.c: New file.
11233         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11234         (gl_sublist_nx_create): New declaration.
11235         * lib/gl_sublist.c: Don't include xalloc.h.
11236         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11237         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11238         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11239         Change return type to 'int'. Return -1 upon out-of-memory.
11240         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11241         upon out-of-memory.
11242         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11243         NULL upon out-of-memory.
11244         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11245         upon out-of-memory.
11246         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11247         NULL upon out-of-memory.
11248         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11249         NULL upon out-of-memory.
11250         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11251         upon out-of-memory.
11252         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11253         (gl_sublist_list_implementation): Update.
11254         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11255         upon out-of-memory.
11256         * modules/sublist (Depends-on): Remove xalloc.
11257
11258         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11259         * tests/test-carray_list.c: Likewise.
11260         * tests/test-linked_list.c: Likewise.
11261         * tests/test-linkedhash_list.c: Likewise.
11262         * tests/test-avltree_list.c: Likewise.
11263         * tests/test-rbtree_list.c: Likewise.
11264         * tests/test-avltreehash_list.c: Likewise.
11265         * tests/test-rbtreehash_list.c: Likewise.
11266         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11267         * modules/carray-list-tests (Makefile.am): Likewise.
11268         * modules/linked-list-tests (Makefile.am): Likewise.
11269         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11270         * modules/avltree-list-tests (Makefile.am): Likewise.
11271         * modules/rbtree-list-tests (Makefile.am): Likewise.
11272         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11273         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11274
11275         * NEWS: Mention the changes.
11276
11277         * lib/clean-temp.c: Include gl_xlist.h.
11278         * modules/clean-temp (Depends-on): Add xlist.
11279
11280         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11281         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11282
11283         * tests/test-array_oset.c: Include gl_xlist.h.
11284         * modules/array-oset-tests (Depends-on): Add xlist.
11285
11286         Reported by José E. Marchesi <jemarch@gnu.org>.
11287
11288 2009-12-13  Bruno Haible  <bruno@clisp.org>
11289
11290         Move the malloc checking from module 'oset' to new module 'xoset'.
11291         * modules/xoset: New file.
11292         * lib/gl_xoset.h: New file.
11293         * lib/gl_xoset.c: New file.
11294         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11295         declarations.
11296         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11297         (struct gl_oset_implementation): Rename and change methods accordingly.
11298         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11299         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11300         'int'. Mark as __warn_unused_result__.
11301         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11302         gl_oset_create_empty.
11303         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11304         'int'.
11305         * lib/gl_array_oset.c: Don't include xalloc.h.
11306         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11307         malloc, not xmalloc.
11308         (grow): Change return type to 'int'. Don't call xalloc_die.
11309         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11310         to 'int'.
11311         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11312         'int'.
11313         (gl_array_oset_implementation): Update.
11314         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11315         gl_tree_create_empty.
11316         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11317         'int'.
11318         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11319         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11320         xmalloc.
11321         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11322         not xmalloc.
11323         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11324         xmalloc.
11325         (gl_avltree_oset_implementation): Update.
11326         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11327         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11328         xmalloc.
11329         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11330         not xmalloc.
11331         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11332         xmalloc.
11333         (gl_rbtree_oset_implementation): Update.
11334         * modules/array-oset (Depends-on): Remove xalloc.
11335         * modules/avltree-oset (Depends-on): Likewise.
11336         * modules/rbtree-oset (Depends-on): Likewise.
11337         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11338         * tests/test-avltree_oset.c: Likewise.
11339         * tests/test-rbtree_oset.c: Likewise.
11340         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11341         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11342         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11343         * NEWS: Mention the change.
11344
11345 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11346
11347         maint.mk: allow a project to override release-prep commands
11348         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11349         commands into a new rule.
11350         (release-prep): New rule.
11351         (release-prep-hook): New overridable variable.
11352
11353 2009-12-13  Bruno Haible  <bruno@clisp.org>
11354
11355         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11356
11357 2009-12-13  Jim Meyering  <meyering@redhat.com>
11358
11359         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11360         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11361
11362 2009-12-12  Bruno Haible  <bruno@clisp.org>
11363
11364         duplocale: Tweak.
11365         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11366
11367 2009-12-12  Karl Berry  <karl@gnu.org>
11368
11369         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11370
11371 2009-12-12  Bruno Haible  <bruno@clisp.org>
11372
11373         * m4/po.m4: Undo incorrect untabification.
11374
11375 2009-12-12  Bruno Haible  <bruno@clisp.org>
11376
11377         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11378         * modules/c-strtod (Depends-on): Add locale.
11379         * modules/c-strtold (Depends-on): Likewise.
11380
11381 2009-12-12  Bruno Haible  <bruno@clisp.org>
11382
11383         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11384
11385 2009-12-11  Eric Blake  <ebb9@byu.net>
11386
11387         setenv: relax requirement in light of POSIX ruling
11388         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11389         not NULL.
11390         * tests/test-setenv.c (main): Relax test.
11391         * tests/test-unsetenv.c (main): Likewise.
11392         * doc/posix-functions/setenv.texi (setenv): Document this.
11393         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11394
11395 2009-12-11  Bruno Haible  <bruno@clisp.org>
11396
11397         New module 'fd-safer-flag'.
11398         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11399         * lib/dup-safer.c (dup_safer_flag): Remove function.
11400         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11401         * lib/fd-safer.c (fd_safer_flag): Remove function.
11402         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
11403         * modules/cloexec (configure.ac): Drop indicator macro.
11404         * modules/fd-safer-flag: New file.
11405         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
11406         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
11407         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
11408
11409 2009-12-11  Bruno Haible  <bruno@clisp.org>
11410
11411         Tests for module 'nl_langinfo'.
11412         * modules/nl_langinfo-tests: New file.
11413         * tests/test-nl_langinfo.sh: New file.
11414         * tests/test-nl_langinfo.c: New file.
11415
11416         New module 'nl_langinfo'.
11417         * lib/nl_langinfo.c: New file.
11418         * m4/nl_langinfo.m4: New file.
11419         * modules/nl_langinfo: New file.
11420         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
11421
11422 2009-12-11  Bruno Haible  <bruno@clisp.org>
11423
11424         Tests for module 'langinfo'.
11425         * modules/langinfo-tests: New file.
11426         * tests/test-langinfo.c: New file.
11427
11428         New module 'langinfo'.
11429         * lib/langinfo.in.h: New file.
11430         * m4/langinfo_h.m4: New file.
11431         * modules/langinfo: New file.
11432         * doc/posix-headers/langinfo.texi: Mention the new module.
11433
11434 2009-12-11  Bruno Haible  <bruno@clisp.org>
11435
11436         * lib/config.charset: Untabify.
11437
11438 2009-12-11  Bruno Haible  <bruno@clisp.org>
11439
11440         * modules/unistd-safer (configure.ac): Drop indicator macro.
11441
11442 2009-12-11  Bruno Haible  <bruno@clisp.org>
11443
11444         Move pipe2-safer code to its own file.
11445         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
11446         * lib/pipe-safer.c (pipe2_safer): Remove function.
11447         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
11448         (Makefile.am): Add it to lib_SOURCES.
11449
11450 2009-12-10  Bruno Haible  <bruno@clisp.org>
11451
11452         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
11453
11454 2009-12-10  Bruno Haible  <bruno@clisp.org>
11455
11456         Declare which arguments expect non-NULL values, for GCC and clang.
11457         * build-aux/arg-nonnull.h: New file.
11458         * modules/arg-nonnull: New file.
11459         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
11460         (inet_ntop, inet_pton): Use it.
11461         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
11462         (closedir, dirfd, opendir, scandir, alphasort): Use it.
11463         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
11464         (open, openat): Use it.
11465         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
11466         (fnmatch): Use it.
11467         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
11468         (getopt, getopt_long, getopt_long_only): Use it.
11469         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
11470         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
11471         Use it.
11472         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
11473         (iconv_open): Use it.
11474         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
11475         (strtoimax, strtoumax): Use it.
11476         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
11477         (duplocale): Use it.
11478         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
11479         (frexp, frexpl): Use it.
11480         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
11481         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
11482         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
11483         (tsearch, tfind, tdelete, twalk): Use it.
11484         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
11485         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11486         sigpending): Use it.
11487         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
11488         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11489         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11490         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11491         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11492         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11493         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11494         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11495         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11496         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11497         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11498         Use it.
11499         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
11500         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
11501         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
11502         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
11503         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
11504         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
11505         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
11506         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
11507         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
11508         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
11509         strtoull, unsetenv): Use it.
11510         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
11511         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11512         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11513         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
11514         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
11515         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
11516         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
11517         (strcasecmp, strncasecmp): Use it.
11518         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
11519         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
11520         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
11521         rpl_setsockopt): Use it.
11522         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
11523         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
11524         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
11525         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
11526         (gettimeofday): Use it.
11527         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
11528         (times): Use it.
11529         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
11530         (uname): Use it.
11531         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
11532         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
11533         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
11534         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
11535         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
11536         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
11537         unlinkat, write): Use it.
11538         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
11539         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
11540         * lib/argv-iter.h: Include arg-nonnull.h.
11541         (_ATTRIBUTE_NONNULL_): Remove macro.
11542         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
11543         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
11544         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
11545         optimization.
11546         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
11547         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
11548         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
11549         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
11550         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
11551         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
11552         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
11553         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
11554         * modules/arpa_inet (Depends-on): Add arg-nonnull.
11555         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
11556         * modules/dirent (Depends-on): Add arg-nonnull.
11557         (Makefile.am): Insert arg-nonnull.h into dirent.h.
11558         * modules/fcntl-h (Depends-on): Add arg-nonnull.
11559         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
11560         * modules/fnmatch (Depends-on): Add arg-nonnull.
11561         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
11562         * modules/getopt-posix (Depends-on): Add arg-nonnull.
11563         (Makefile.am): Insert arg-nonnull.h into getopt.h.
11564         * modules/glob (Depends-on): Add arg-nonnull.
11565         (Makefile.am): Insert arg-nonnull.h into glob.h.
11566         * modules/iconv_open (Depends-on): Add arg-nonnull.
11567         (Makefile.am): Insert arg-nonnull.h into iconv.h.
11568         * modules/inttypes (Depends-on): Add arg-nonnull.
11569         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
11570         * modules/locale (Depends-on): Add arg-nonnull.
11571         (Makefile.am): Insert arg-nonnull.h into locale.h.
11572         * modules/math (Depends-on): Add arg-nonnull.
11573         (Makefile.am): Insert arg-nonnull.h into math.h.
11574         * modules/netdb (Depends-on): Add arg-nonnull.
11575         (Makefile.am): Insert arg-nonnull.h into netdb.h.
11576         * modules/search (Depends-on): Add arg-nonnull.
11577         (Makefile.am): Insert arg-nonnull.h into search.h.
11578         * modules/signal (Depends-on): Add arg-nonnull.
11579         (Makefile.am): Insert arg-nonnull.h into signal.h.
11580         * modules/spawn (Depends-on): Add arg-nonnull.
11581         (Makefile.am): Insert arg-nonnull.h into spawn.h.
11582         * modules/stdio (Depends-on): Add arg-nonnull.
11583         (Makefile.am): Insert arg-nonnull.h into stdio.h.
11584         * modules/stdlib (Depends-on): Add arg-nonnull.
11585         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
11586         * modules/string (Depends-on): Add arg-nonnull.
11587         (Makefile.am): Insert arg-nonnull.h into string.h.
11588         * modules/strings (Depends-on): Add arg-nonnull.
11589         (Makefile.am): Insert arg-nonnull.h into strings.h.
11590         * modules/sys_socket (Depends-on): Add arg-nonnull.
11591         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
11592         * modules/sys_stat (Depends-on): Add arg-nonnull.
11593         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
11594         * modules/sys_time (Depends-on): Add arg-nonnull.
11595         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
11596         * modules/sys_times (Depends-on): Add arg-nonnull.
11597         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
11598         * modules/sys_utsname (Depends-on): Add arg-nonnull.
11599         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
11600         * modules/time (Depends-on): Add arg-nonnull.
11601         (Makefile.am): Insert arg-nonnull.h into time.h.
11602         * modules/unistd (Depends-on): Add arg-nonnull.
11603         (Makefile.am): Insert arg-nonnull.h into unistd.h.
11604         * modules/wchar (Depends-on): Add arg-nonnull.
11605         (Makefile.am): Insert arg-nonnull.h into wchar.h.
11606         * modules/argv-iter (Depends-on): Add arg-nonnull.
11607         * tests/test-canonicalize.c (null_ptr): New function.
11608         (main): Use it.
11609         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
11610         (main): Use it.
11611         * tests/test-memmem.c (null_ptr): New function.
11612         (main): Use it.
11613         Reported by Jim Meyering.
11614
11615 2009-12-10  Bruno Haible  <bruno@clisp.org>
11616
11617         Use spaces for indentation, not tabs.
11618         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11619         * m4/*.m4: Untabify.
11620         * build-aux/*.h: Untabify.
11621         * tests/**/*.[hc]: Untabify.
11622         * README: New section "Indent with spaces, not TABs", based on
11623         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
11624         * NEWS: Mention the change.
11625
11626 2009-12-10  Bruno Haible  <bruno@clisp.org>
11627
11628         pty test: Fix link error.
11629         * modules/pty-tests (Makefile.am): Add the default LDADD value to
11630         test_pty_LDADD.
11631
11632 2009-12-07  Simon Josefsson  <simon@josefsson.org>
11633
11634         * modules/pty: New file.
11635         * modules/pty-tests: New file.
11636         * m4/pty.m4: New file.
11637         * tests/test-pty.c: New file.
11638         * doc/glibc-headers/pty.texi: Modified.
11639         * doc/glibc-functions/forkpty.texi: Modified.
11640         * doc/glibc-functions/openpty.texi: Modified.
11641
11642 2009-12-10  Bruno Haible  <bruno@clisp.org>
11643
11644         Avoid syntax error in C++ mode.
11645         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
11646
11647 2009-12-10  Bruno Haible  <bruno@clisp.org>
11648
11649         Use sed with option -e.
11650         * gnulib-tool (func_version, func_emit_copyright_notice,
11651         func_emit_initmacro_end, func_import, func_create_testdir): Pass
11652         option -e to sed.
11653         * modules/link-warning (Makefile.am): Likewise.
11654
11655 2009-12-10  Jim Meyering  <meyering@redhat.com>
11656
11657         mgetgroups: do not write bytes beyond end of malloc'd buffer
11658         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
11659         username, we call getgroups with a one-element-shorter buffer,
11660         but still told it the length was original, max_n_groups.
11661
11662 2009-12-09  Eric Blake  <ebb9@byu.net>
11663
11664         cloexec: relax license
11665         * modules/cloexec (Maintainer): Add myself.
11666         (License): Use LGPL, not GPL.
11667
11668         link-warning: optimize generation
11669         * modules/link-warning (Makefile.am): Reduce process usage.
11670
11671 2009-12-09  Bruno Haible  <bruno@clisp.org>
11672
11673         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
11674         workaround was added on 2009-11-17.
11675
11676 2009-12-09  Jim Meyering  <meyering@redhat.com>
11677             Bruno Haible  <bruno@clisp.org>
11678
11679         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
11680         * modules/link-warning (Makefile.am): Make the comment-removing sed
11681         command more robust in the face of bootstrap-prepended comment lines.
11682
11683 2009-12-09  Bruno Haible  <bruno@clisp.org>
11684
11685         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
11686         most one group.
11687
11688 2009-12-09  Simon Josefsson <simon@josefsson.org>
11689             Bruno Haible  <bruno@clisp.org>
11690
11691         * build-aux/link-warning.h: Add copyright notice.
11692         * modules/link-warning (Makefile.am): Generate link-warning.h from
11693         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
11694         * NEWS: Mention change in link-warning module.
11695         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
11696         * modules/dirent (Makefile.am): Add dependency to dirent.h.
11697         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
11698         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
11699         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
11700         * modules/math (Makefile.am): Add dependency to math.h.
11701         * modules/search (Makefile.am): Add dependency to search.h.
11702         * modules/signal (Makefile.am): Add dependency to signal.h.
11703         * modules/spawn (Makefile.am): Add dependency to spawn.h.
11704         * modules/stdio (Makefile.am): Add dependency to stdio.h.
11705         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
11706         * modules/string (Makefile.am): Add dependency to string.h.
11707         * modules/strings (Makefile.am): Add dependency to strings.h.
11708         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
11709         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
11710         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
11711         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
11712         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
11713         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
11714         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
11715         * modules/unistd (Makefile.am): Add dependency to unistd.h.
11716         * modules/wchar (Makefile.am): Add dependency to wchar.h.
11717
11718 2009-12-09  Bruno Haible  <bruno@clisp.org>
11719
11720         fchdir: Optimize away rpl_fstat when possible.
11721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
11722         REPLACE_OPEN_DIRECTORY.
11723         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
11724
11725 2009-12-09  Bruno Haible  <bruno@clisp.org>
11726
11727         * lib/fchdir.c: Update comment.
11728
11729 2009-12-09  Bruno Haible  <bruno@clisp.org>
11730
11731         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
11732
11733 2009-12-08  Eric Blake  <ebb9@byu.net>
11734
11735         fchdir: avoid memory leak on re-registration.
11736         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
11737
11738 2009-12-08  Jim Meyering  <meyering@redhat.com>
11739
11740         init.sh: avoid Solaris 10 /bin/sh portability problem
11741         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
11742         sourced script:
11743           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
11744           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
11745           bar
11746         tests/init.sh relied on that, accepting a --set-path=DIR argument,
11747         and two tests used that idiom.
11748         * tests/init.sh: Update suggested usage comments.
11749         (path_prepend_): New function, to be used in place
11750         of the --src-path=DIR option.
11751         (setup_): Move PATH-prepending code into path_prepend_.
11752         * tests/test-pread.sh: Adapt to new usage.
11753         * tests/test-xalloc-die.sh: Likewise.
11754
11755 2009-12-08  Simon Josefsson  <simon@josefsson.org>
11756
11757         * doc/gnulib.texi (Glibc pty.h): Add.
11758         * doc/glibc-functions/forkpty.texi: Add.
11759         * doc/glibc-functions/openpty.texi: Add.
11760         Suggested by Bruno Haible.
11761
11762 2009-12-08  Eric Blake  <ebb9@byu.net>
11763
11764         fchdir: fix logic bugs
11765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
11766         * tests/test-fchdir.c (main): Enhance test.
11767         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
11768         is in use.
11769
11770         dup2: fix logic bugs
11771         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
11772         REPLACE_DUP2 to decide when rpl_dup2 is needed.
11773         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
11774         exists.
11775         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
11776
11777 2009-12-07  Eric Blake  <ebb9@byu.net>
11778
11779         unlink: fix m4 detection
11780         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
11781
11782         unistd-safer: add unit test
11783         * modules/unistd-safer-tests: New file.
11784         * tests/test-dup-safer.c: Likewise.
11785         * tests/test-cloexec.c (setmode): Avoid compiler warning.
11786         * tests/test-dup2.c (setmode): Likewise.
11787         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
11788
11789         cloexec: preserve text vs. binary across dup_cloexec
11790         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
11791         mode.
11792         * modules/dup2-tests (Depends-on): Add binary-io.
11793         * modules/cloexec-tests (Depends-on): Likewise.
11794         * tests/test-dup2.c (setmode, is_mode): New helpers.
11795         (main): Add tests that translation mode is preserved.
11796         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
11797         Reported by Bruno Haible.
11798
11799         mgetgroups: reduce duplicate listings
11800         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
11801         resulting array.
11802         * tests/test-chown.h (test_chown): Simplify client.
11803         * tests/test-lchown.h (test_lchown): Likewise.
11804
11805 2009-12-06  Bruno Haible  <bruno@clisp.org>
11806
11807         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
11808         value.
11809
11810 2009-12-06  Bruno Haible  <bruno@clisp.org>
11811
11812         * lib/progname.c: Include stdio.h, stdlib.h.
11813         (set_program_name): Reject a NULL argument.
11814
11815 2009-12-05  Eric Blake  <ebb9@byu.net>
11816
11817         pipe2-safer: new module
11818         * modules/pipe2-safer: New file.
11819         * lib/unistd-safer.h (pipe2_safer): New prototype.
11820         * lib/unistd--.h (pipe2): New wrapper.
11821         * lib/pipe-safer.c (pipe2_safer): New function.
11822         * modules/pipe (Depends-on): Add pipe2-safer.
11823         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
11824
11825         stdlib-safer: preserve cloexec flag for mkostemp[s]
11826         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
11827         fd_safer_flag.
11828
11829         unistd-safer: allow preservation of cloexec status via flag
11830         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
11831         prototypes.
11832         * lib/dup-safer.c (dup_safer_flag): New function.
11833         * lib/fd-safer.c (fd_safer_flag): Likewise.
11834         * modules/cloexec (configure.ac): Set witness.
11835
11836         test-dup2: enhance test
11837         * modules/dup2-tests (Depends-on): Add cloexec.
11838         * tests/test-dup2.c (main): Enhance test.
11839
11840         cloexec: add dup_cloexec
11841         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
11842         header and comments.
11843         * lib/cloexec.c (set_cloexec_flag): Add comments.
11844         (dup_cloexec): New function, with mingw implementation borrowed
11845         from...
11846         * lib/w32spawn.h (dup_noinherit): ...here.
11847         * modules/execute (Depends-on): Add cloexec.
11848         * modules/pipe (Depends-on): Likewise.
11849         * modules/cloexec (Depends-on): Add dup2.
11850         * modules/cloexec-tests (Files): New file.
11851         * tests/test-cloexec.c: Likewise.
11852
11853         test-xalloc-die: fix test for mingw
11854         * modules/xalloc-die-tests (Files): Add tests/init.sh.
11855         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
11856         directory and .exe suffix off argv[0] output.
11857
11858         test-fseeko: fix test for mingw
11859         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
11860         than undefining fseek, so test will pass on mingw.
11861
11862 2009-12-05  Bruno Haible  <bruno@clisp.org>
11863
11864         * lib/progname.h (set_program_name): Clarify specification.
11865         * lib/progname.c (set_program_name): Likewise.
11866         Reported by Jim Meyering.
11867
11868 2009-12-05  Jim Meyering  <meyering@redhat.com>
11869
11870         maint.mk: backslash-escape parens in default regexp
11871         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
11872         backslash-escape the literal parentheses.
11873
11874         maint.mk: news-date-check: use grep -E
11875         * top/maint.mk (today): Define a Make variable, not a...
11876         (news-date-check): ...shell variable.
11877         (news-date-regexp): Use the Make variable.
11878         Use grep's -E option.  Change the failing diagnostic to mention
11879         the variable, $(news-date-regexp).
11880
11881 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
11882
11883         maintainer-makefile: allow customization of NEWS entry format
11884         * top/maint.mk (news-date-regexp): New overridable variable.
11885         (news-date-check): Use it.
11886
11887 2009-12-04  Eric Blake  <ebb9@byu.net>
11888
11889         mgetgroups: add xgetgroups, and avoid ENOSYS failures
11890         * lib/mgetgroups.h (xgetgroups): New prototype.
11891         * lib/mgetgroups.c (xgetgroups): New wrapper.
11892         (mgetgroups): Handle ENOSYS.
11893         * modules/mgetgroups (Depends-on): Add realloc.
11894         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
11895
11896         mgetgroups: avoid argument promotion issues with -1
11897         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
11898         for invalid gid_t.
11899         * tests/test-chown.h (getegid, test_chown): Likewise.
11900         * tests/test-lchown.h (getegid, test_lchown): Likewise.
11901
11902 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
11903
11904         exclude: Fix header file problems.
11905         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
11906
11907 2009-12-01  Jim Meyering  <meyering@redhat.com>
11908
11909         fts: fts_open: do not let an empty string cause immediate failure
11910         This is required in support of GNU rm, for which the command
11911         "rm A '' B" must process and remove both A and B, in spite of
11912         the empty string argument.
11913         * lib/fts.c (fts_open): Do not let the presence of an empty string
11914         cause fts_open to fail immediately.  Most fts-using tools must be
11915         able to process all arguments, in order, and can be expected to
11916         diagnose such arguments themselves.
11917
11918 2009-11-30  Eric Blake  <ebb9@byu.net>
11919
11920         utimens: fix compilation error
11921         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
11922         Declare variable at right scope.
11923
11924 2009-11-29  Jim Meyering  <meyering@redhat.com>
11925
11926         bootstrap: handle perl-5.11's changed --version output
11927         * build-aux/bootstrap (get_version): Handle perl separately,
11928         since perl-5.11's --version output is different.
11929
11930 2009-11-28  Jim Meyering  <meyering@redhat.com>
11931
11932         userspec: depend on the inttostr module, too
11933         * modules/userspec (Depends-on): Add inttostr.
11934
11935         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
11936         * lib/userspec.c (parse_with_separator): Do not accept a user ID
11937         number of MAXUID when it evaluates to (uid_t) -1.
11938         Likewise for group ID.  Reported by Matt McCutchen in
11939         <http://savannah.gnu.org/bugs/?28113>
11940
11941         userspec: reformat to use spaces, not TABs
11942         * lib/userspec.c: Expand TABs to spaces.
11943         Add Emacs' "indent-tabs-mode: nil" hint.
11944
11945 2009-11-27  Eric Blake  <ebb9@byu.net>
11946
11947         getopt-gnu: flush out another BSD bug
11948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
11949         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
11950         flush out BSD bug.
11951         * tests/test-getopt.h (test_getopt): End lists with NULL.
11952         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11953         (test_getopt_long_posix): Enhance test.
11954         * modules/getopt-posix-tests (Depends-on): Add stdbool.
11955         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
11956         getopt-gnu.
11957         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11958         Likewise.
11959
11960 2009-11-27  Simon Josefsson  <simon@josefsson.org>
11961
11962         * modules/idpriv-droptemp-tests (Notice): Fix text.
11963
11964 2009-11-27  Jim Meyering  <meyering@redhat.com>
11965
11966         test-xalloc-die: avoid spurious failure due to libtool argv difference
11967         In a libtool-enabled project, this test would fail due to a difference
11968         in the emitted program name, e.g.,
11969         -test-xalloc-die: memory exhausted
11970         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11971         Use program to avoid that.
11972         * modules/xalloc-die-tests (Depends-on): Add progname.
11973         * tests/test-xalloc-die.c: Include progname.h".
11974         (program_name): Remove decl.
11975         (main): Call set_program_name.
11976         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11977
11978 2009-11-26  Richard Jones  <rjones@redhat.com>
11979
11980         w32sock: leave win32 error in place.
11981         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11982
11983 2009-11-26  Eric Blake  <ebb9@byu.net>
11984
11985         init.sh: suggest to use skip_ and fail_ functions in comments
11986         * tests/init.sh: Add a sentence.
11987
11988 2009-11-25  Bruno Haible  <bruno@clisp.org>
11989
11990         init.sh: add documentation in comments
11991         * tests/init.sh: Add some developer and user documentation.
11992
11993 2009-11-26  Jim Meyering  <meyering@redhat.com>
11994
11995         init.sh: accommodate even those who specify bogus srcdir manually
11996         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11997         configure-time tests to be sanitized, so that there is no need to
11998         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11999         (with no double quotes) suffices.  However, since tests may be
12000         invoked manually, and since you may explicitly set srcdir to the
12001         name of a directory containing spaces, do quote its uses here.
12002         * tests/test-pread.sh: Likewise.
12003         Suggested by Bruno Haible.
12004
12005         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12006         * tests/test-pread.sh: Write no data into the pipe, because
12007         test-pread actually reads none.  This avoids a diagnostic,
12008         "bash: echo: write error: Broken pipe", that arises in the unusual
12009         event something is ignoring SIGPIPE, and might be interpreted
12010         as some sort of failure.  Reported by Bruno Haible.
12011
12012 2009-11-25  Jim Meyering  <meyering@redhat.com>
12013
12014         test-pread: cover failure with ESPIPE and EINVAL
12015         * tests/test-pread.c (main): Test for failure, too.
12016         * tests/test-pread.sh: Invoke with stdin on a pipe.
12017         Suggested by Eric Blake.
12018
12019         pread: improvement and fix
12020         * modules/pread (Depends-on): Depend on lseek, for portability to
12021         e.g., mingw.  Suggested by Eric Blake.
12022         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12023
12024         unistd.in.h: correct declaration of pread
12025         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12026         Reported by Richard W.M. Jones.
12027
12028         test-pread.sh: distribute the test script
12029         * modules/pread-tests (Files): Include test-pread.sh.
12030
12031         test-pread.sh: clean up
12032         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12033         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12034         That is unnecessary, since it's always ".".
12035         Suggestion from Eric Blake.
12036
12037         test-pread.sh: make executable
12038         * tests/test-pread.sh: Set executable bit.
12039         Reported by Eric Blake.
12040
12041         correct typo in test-pread.sh
12042         * tests/test-pread.sh: Add #! line.
12043
12044         test pread
12045         * tests/test-pread.c: New file.
12046         * tests/test-pread.sh: Likewise.
12047         * modules/pread-tests: Likewise.
12048
12049         pread: new module
12050         * modules/pread: New file.
12051         * lib/unistd.in.h (pread): Define/declare.
12052         * lib/pread.c (pread): New file.
12053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12054         * modules/unistd (Makefile.am): Substitute witnesses.
12055         * doc/posix-functions/pread.texi (pread): Update.
12056         * MODULES.html.sh: Add pread.
12057
12058 2009-11-25  Jim Meyering  <meyering@redhat.com>
12059
12060         tests/init.sh: new file to be used via most *.sh tests
12061         * tests/init.sh: New file.
12062
12063 2009-11-25  Eric Blake  <ebb9@byu.net>
12064
12065         utimens: work around older Linux failure with symlinks
12066         * lib/utimens.c (lutimensat_works_really): New variable.
12067         (fdutimens, lutimens): Use it to manage kernels that support
12068         nanosecond times on files, but not on symlinks.
12069         Reported by Ondřej Vašík.
12070
12071         utimes: fix configure grammar
12072         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12073
12074 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12075
12076         regex: Fix fastmap for multibyte character ranges.
12077         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12078         characters when a multibyte character range is included.
12079
12080 2009-11-22  Andy Wingo  <wingo@pobox.com>
12081
12082         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12083         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12084
12085 2009-11-24  Bruno Haible  <bruno@clisp.org>
12086
12087         doc: Most *_l functions exist in MacOS X 10.5.
12088         * doc/posix-functions/duplocale.texi: Update platforms list.
12089         * doc/posix-functions/freelocale.texi: Likewise.
12090         * doc/posix-functions/newlocale.texi: Likewise.
12091         * doc/posix-functions/uselocale.texi: Likewise.
12092         * doc/posix-functions/isalnum_l.texi: Likewise.
12093         * doc/posix-functions/isalpha_l.texi: Likewise.
12094         * doc/posix-functions/isblank_l.texi: Likewise.
12095         * doc/posix-functions/iscntrl_l.texi: Likewise.
12096         * doc/posix-functions/isdigit_l.texi: Likewise.
12097         * doc/posix-functions/isgraph_l.texi: Likewise.
12098         * doc/posix-functions/islower_l.texi: Likewise.
12099         * doc/posix-functions/isprint_l.texi: Likewise.
12100         * doc/posix-functions/ispunct_l.texi: Likewise.
12101         * doc/posix-functions/isspace_l.texi: Likewise.
12102         * doc/posix-functions/isupper_l.texi: Likewise.
12103         * doc/posix-functions/iswalnum_l.texi: Likewise.
12104         * doc/posix-functions/iswalpha_l.texi: Likewise.
12105         * doc/posix-functions/iswblank_l.texi: Likewise.
12106         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12107         * doc/posix-functions/iswctype_l.texi: Likewise.
12108         * doc/posix-functions/iswdigit_l.texi: Likewise.
12109         * doc/posix-functions/iswgraph_l.texi: Likewise.
12110         * doc/posix-functions/iswlower_l.texi: Likewise.
12111         * doc/posix-functions/iswprint_l.texi: Likewise.
12112         * doc/posix-functions/iswpunct_l.texi: Likewise.
12113         * doc/posix-functions/iswspace_l.texi: Likewise.
12114         * doc/posix-functions/iswupper_l.texi: Likewise.
12115         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12116         * doc/posix-functions/isxdigit_l.texi: Likewise.
12117         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12118         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12119         * doc/posix-functions/strcoll_l.texi: Likewise.
12120         * doc/posix-functions/strfmon_l.texi: Likewise.
12121         * doc/posix-functions/strftime_l.texi: Likewise.
12122         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12123         * doc/posix-functions/strxfrm_l.texi: Likewise.
12124         * doc/posix-functions/tolower_l.texi: Likewise.
12125         * doc/posix-functions/toupper_l.texi: Likewise.
12126         * doc/posix-functions/towctrans_l.texi: Likewise.
12127         * doc/posix-functions/towlower_l.texi: Likewise.
12128         * doc/posix-functions/towupper_l.texi: Likewise.
12129         * doc/posix-functions/wcscoll_l.texi: Likewise.
12130         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12131         * doc/posix-functions/wctrans_l.texi: Likewise.
12132         * doc/posix-functions/wctype_l.texi: Likewise.
12133         * doc/glibc-functions/strptime_l.texi: Likewise.
12134         * doc/glibc-functions/strtod_l.texi: Likewise.
12135         * doc/glibc-functions/strtof_l.texi: Likewise.
12136         * doc/glibc-functions/strtol_l.texi: Likewise.
12137         * doc/glibc-functions/strtold_l.texi: Likewise.
12138         * doc/glibc-functions/strtoll_l.texi: Likewise.
12139         * doc/glibc-functions/strtoul_l.texi: Likewise.
12140         * doc/glibc-functions/strtoull_l.texi: Likewise.
12141         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12142         * doc/glibc-functions/wcstod_l.texi: Likewise.
12143         * doc/glibc-functions/wcstof_l.texi: Likewise.
12144         * doc/glibc-functions/wcstol_l.texi: Likewise.
12145         * doc/glibc-functions/wcstold_l.texi: Likewise.
12146         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12147         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12148         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12149
12150 2009-11-24  Bruno Haible  <bruno@clisp.org>
12151
12152         duplocale: Fix logic bug.
12153         * lib/duplocale.c: Don't include <langinfo.h>.
12154         (_NL_LOCALE_NAME): Remove macro.
12155         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12156         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12157
12158 2009-11-23  Jim Meyering  <meyering@redhat.com>
12159
12160         test-update-copyright: don't hard-code /usr/bin/perl
12161         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12162         perl to print the current year.  Gilles Espinasse reported that
12163         the replaced use of perl was hard-coded as /usr/bin/perl.
12164
12165 2009-11-23  Bruno Haible  <bruno@clisp.org>
12166
12167         duplocale: Add support for glibc 2.3.x.
12168         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12169
12170 2009-11-22  Bruno Haible  <bruno@clisp.org>
12171
12172         vasnprintf: Tiny optimization.
12173         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12174         MacOS X.
12175
12176 2009-11-22  Bruno Haible  <bruno@clisp.org>
12177
12178         Tests for module 'duplocale'.
12179         * modules/duplocale-tests: New file.
12180         * tests/test-duplocale.c: New file.
12181
12182         New module 'duplocale'.
12183         * m4/duplocale.m4: New file.
12184         * lib/locale.in.h (duplocale): New declaration.
12185         * lib/duplocale.c: New file.
12186         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12187         gl_LOCALE_H_DEFAULTS): New macros.
12188         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12189         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12190         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12191         REPLACE_DUPLOCALE.
12192         * modules/duplocale: New file.
12193         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12194
12195 2009-11-22  Bruno Haible  <bruno@clisp.org>
12196
12197         * modules/locale-tests (configure.ac): Test for newlocale function.
12198         * tests/test-locale.c: When the system has extended locale functions,
12199         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12200
12201         locale: Make locale_t available when possible.
12202         * lib/locale.in.h: Include <xlocale.h> when it exists.
12203         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12204         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12205         * modules/locale (Depends-on): Add extensions.
12206         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12207         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12208
12209 2009-11-22  Bruno Haible  <bruno@clisp.org>
12210
12211         Add comments.
12212         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12213         invocation.
12214         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12215         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12216         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12217
12218 2009-11-22  Bruno Haible  <bruno@clisp.org>
12219
12220         error: account for the possibility of freopen (stdout).
12221         * lib/error.c: Include <unistd.h>.
12222         (flush_stdout): New function, extracted from error and error_at_line.
12223         Determine stdout's fd dynamically.
12224         (error, error_at_line): Invoke flush_stdout.
12225         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12226         * modules/error (Depends-on): Add unistd.
12227
12228 2009-11-22  Bruno Haible  <bruno@clisp.org>
12229
12230         diffseq: Add comment.
12231         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12232
12233 2009-11-22  Jim Meyering  <meyering@redhat.com>
12234
12235         c-stack: avoid defining an unused static function
12236         * lib/c-stack.c (find_stack_direction): Do not define this function
12237         when it will not be used.
12238
12239         diffseq: avoid spurious gcc warnings
12240         * lib/diffseq.h (IF_LINT2): Define.
12241         (compareseq): Use it to initialize two members of "part".
12242         This avoids two used-uninitialized warnings.
12243
12244 2009-11-21  Jim Meyering  <meyering@redhat.com>
12245
12246         c-stack: avoid "ignoring return value of `write'" warning
12247         * lib/c-stack.c: Include "ignore-value.h".
12248         (die): Explicitly ignore each write return value.
12249         * modules/c-stack (Depends-on): Add ignore-value.
12250
12251 2009-11-21  Bruno Haible  <bruno@clisp.org>
12252
12253         diffseq: reduce scope of variable 'best'.
12254         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12255         variable, earlier used for two different purposes.
12256
12257 2009-11-21  Jim Meyering  <meyering@redhat.com>
12258
12259         diffseq: remove useless assignment to "best"
12260         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12261         assignment.  At that point "best" is already guaranteed to be zero.
12262
12263 2009-11-20  Eric Blake  <ebb9@byu.net>
12264
12265         build: mention ftp redirector in release announcements
12266         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12267         values that used to come from cfg.mk; mention FTP redirect URL.
12268         * build-aux/announce-gen: Mention the mirror list.
12269         Suggested by Karl Berry.
12270
12271         nanosleep: improve port to mingw
12272         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12274         LIB_NANOSLEEP, but only when needed.
12275         * modules/select (Link): Document LIBSOCKET.
12276         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12277         enough.
12278
12279         nanosleep: work around cygwin bug
12280         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12281         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12282         bug.
12283         (getnow): Delete, not needed.
12284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12285         LIB_CLOCK_GETTIME.
12286         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12287         clock-time, gettime.
12288         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12289         bug.
12290         * modules/nanosleep-tests: New test.
12291         * tests/test-nanosleep.c: New file.
12292
12293         sleep: work around cygwin bug
12294         * lib/sleep.c (rpl_sleep): Work around the bug.
12295         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12296         (gl_PREREQ_SLEEP): Delete unused macro.
12297         * modules/sleep (Depends-on): Add verify.
12298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12299         * modules/unistd (Makefile.am): Substitute witness.
12300         * lib/unistd.in.h (sleep): Update prototype.
12301         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12302         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12303         * modules/sleep-tests (Depends-on): Check for alarm.
12304
12305 2009-11-20  Jim Meyering  <meyering@redhat.com>
12306
12307         maint.mk: improve sc_prohibit_magic_number_exit
12308         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12309         so it does not match uses like System.exit(1).
12310         Add comments showing how to correct all offenders.
12311
12312 2009-11-19  Eric Blake  <ebb9@byu.net>
12313
12314         xalloc-die-tests: add missing library
12315         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12316
12317         test-xvasprintf: silence compiler warnings
12318         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12319         empty string from gcc.
12320
12321 2009-11-19  Jim Meyering  <meyering@redhat.com>
12322
12323         xfreopen: new module, from coreutils
12324         * modules/xfreopen: New module.
12325         * lib/xfreopen.c: New file.
12326         * lib/xfreopen.h: New file.
12327         * MODULES.html.sh (File stream based Input/Output"): Add it.
12328
12329 2009-11-19  Eric Blake  <ebb9@byu.net>
12330
12331         manywarnings: depend on warnings
12332         * modules/manywarnings (Depends-on): Add warnings.
12333
12334         build: avoid compiler warnings
12335         * lib/select.c (rpl_select): Delete unused variable.
12336         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12337
12338 2009-11-18  Eric Blake  <ebb9@byu.net>
12339
12340         tests: avoid false negative with --with-packager
12341         * tests/test-version-etc.sh: Discard packager information.
12342         * tests/test-argp-version-etc-1.sh: Likewise.
12343         Reported by Mike Frysinger.
12344
12345         utimens: fix regression on Solaris
12346         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12347         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12348         can only change fd timestamps via futimesat.  Instead, use an
12349         additional witness macro to avoid BSD bug.
12350         Reported by Jim Meyering.
12351
12352 2009-11-17  Eric Blake  <ebb9@byu.net>
12353
12354         usleep: use it to simplify tests
12355         * modules/stat-time-tests (Depends-on): Add usleep.
12356         (configure.ac): Drop usleep check.
12357         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12358         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12359         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12360         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12361         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12362         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12363         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12364         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12365         Likewise.
12366         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12367         * tests/test-lchown.h (nap): Likewise.
12368         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12369         * tests/test-stat-time.c (nap): Likewise.
12370         * tests/test-utimens-common.h (nap): Update comments.
12371
12372         usleep: new module
12373         * modules/usleep: New file.
12374         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12375         * lib/usleep.c (usleep): Likewise.
12376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12377         * modules/unistd (Makefile.am): Substitute witnesses.
12378         * lib/unistd.in.h (usleep): Add declaration.
12379         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12380         * MODULES.html.sh (Date and time): Likewise.
12381         * modules/usleep-tests (Depends-on): New test.
12382         * tests/test-usleep.c: New file.
12383
12384         chown: work around OpenBSD bug
12385         * lib/chown.c (rpl_chown): Work around the bug.
12386         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12387         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12388         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12389         * modules/chown (Depends-on): Add stdbool.
12390         * modules/lchown (Depends-on): Likewise.
12391         * doc/posix-functions/chown.texi (chown): Document the bug.
12392         * doc/posix-functions/lchown.texi (lchown): Likewise.
12393         * tests/test-lchown.h (test_chown): Relax test.
12394
12395         mkstemp: avoid conflict with C++ keyword template
12396         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12397         * lib/mkostemp.c (mkostemp): Likewise.
12398         * lib/mkostemps.c (mkostemps): Likewise.
12399         * lib/mkstemp.c (mkstemp): Likewise.
12400         * lib/mkstemps.c (mkstemps): Likewise.
12401
12402         xalloc-die-tests: optimize
12403         * tests/test-xalloc-die.sh: Reduce number of processes.
12404
12405 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12406
12407         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
12408         patch from ludo@gnu.org (Ludovic Courtès).
12409
12410 2009-11-17  Jim Meyering  <meyering@redhat.com>
12411
12412         version-etc: use proper license string
12413         * modules/version-etc (License): Use LGPL, not LGPLv3+.
12414         * modules/version-etc-fsf: Likewise.
12415
12416 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12417
12418         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
12419         printed to stdout.  Deal with EOL differences.
12420
12421 2009-11-17  Eric Blake  <ebb9@byu.net>
12422
12423         unsetenv: work around Solaris bug
12424         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
12425         * lib/unsetenv.c (rpl_unsetenv): Work around it.
12426         Reported by Jim Meyering.
12427
12428         vasnprintf: avoid compiler warnings
12429         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
12430         variables.
12431         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
12432
12433 2009-11-17  Simon Josefsson  <simon@josefsson.org>
12434
12435         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
12436         settings since xalloc-die is no longer the self test,
12437         xalloc-die.sh is.
12438
12439 2009-11-17  Jim Meyering  <meyering@redhat.com>
12440
12441         test-xalloc-die.sh: make the code agree with the commit log
12442         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
12443         at the end, just in case you happen to have a test-xalloc-die
12444         program in some other PATH directory.
12445
12446         test-xalloc-die.sh: fix a portability bug
12447         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
12448         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
12449         Otherwise, argv[0] (as often seen in diagnostics) would be too
12450         system-dependent, sometimes with, and sometimes without the leading "./".
12451
12452         version-etc-fsf: relax license to LGPLv3+
12453         * modules/version-etc-fsf (License): Relax license.
12454
12455 2009-11-16  Eric Blake  <ebb9@byu.net>
12456
12457         xalloc-die-tests: avoid printing null pointer
12458         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
12459         shell script.
12460         * tests/test-xalloc-die.c (program_name): Declare.
12461         * tests/test-xalloc-die.sh (tmpfiles): New file.
12462
12463         setenv, unsetenv: work around various bugs
12464         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
12465         (setenv) [HAVE_SETENV]: Work around bugs.
12466         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
12467         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
12468         for bugs.
12469         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
12470         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
12471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
12472         * modules/stdlib (Makefile.am): Update substitutions.
12473         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
12474         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
12475         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12476         * modules/setenv-tests: New test.
12477         * modules/unsetenv-tests: Likewise.
12478         * tests/test-setenv.c: New file.
12479         * tests/test-unsetenv.c: Likewise.
12480
12481 2009-11-16  Jim Meyering  <meyering@redhat.com>
12482
12483         version-etc: relax license to LGPLv3+
12484         * modules/version-etc (License): Relax license.
12485
12486         better AC_REQUIRE expanded-before-required-warning avoidance
12487         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
12488         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
12489         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
12490         which is no longer needed.
12491
12492 2009-11-16  Eric Blake  <ebb9@byu.net>
12493
12494         test-freading: clean up temporary file
12495         * tests/test-freading.c (main): Remove file on success, and use
12496         ASSERT more liberally.
12497         Reported by Jim Meyering.
12498
12499 2009-11-16  Jim Meyering  <meyering@redhat.com>
12500
12501         avoid new AC_REQUIRE expanded-before-required warnings
12502         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
12503         merely using it.
12504         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
12505         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
12506
12507 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12508
12509         * tests/test-xalloc-die.c: New file.
12510         * modules/xalloc-die-tests: New file.
12511         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
12512         XFAIL_TESTS so it can be appended by modules.
12513
12514 2009-11-15  Simon Josefsson  <simon@josefsson.org>
12515
12516         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
12517         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
12518
12519 2009-11-14  Eric Blake  <ebb9@byu.net>
12520
12521         fnmatch: avoid compiler warning
12522         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
12523         to silence compiler warning about mismatch signedness in ?:.
12524         Reported by Robert Millan.
12525
12526         intprops: add double-inclusion guard
12527         * lib/intprops.h: Allow idempotent includes.
12528         Suggested by Bruce Korb.
12529
12530         openat: detect Solaris fchownat bug
12531         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
12532         penalizing glibc chownat when only lchownat is broken.
12533         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
12534         trailing slash bugs.
12535         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
12536         * modules/openat-tests (Files): Include more files.
12537         (Depends-on): Add mgetgroups, sleep, stat-time.
12538         (configure.ac): Add additional checks.
12539         (Makefile.am): Build new test.
12540         * tests/test-fchownat.c: New file.
12541
12542         lchown: detect Solaris and FreeBSD bug
12543         * lib/lchown.c (rpl_lchown): Work around bug.
12544         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
12545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12546         * modules/unistd (Makefile.am): Populate it.
12547         * lib/unistd.in.h (lchown): Update declaration.
12548         * doc/posix-functions/lchown.texi (lchown): Document the bug.
12549         * modules/lchown-tests: New file.
12550         * tests/test-lchown.h (test_lchown): Likewise.
12551         * tests/test-lchown.c (main): Likewise.
12552
12553         chown: detect Solaris and FreeBSD bug
12554         * lib/chown.c (rpl_chown): Work around bug.
12555         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
12556         (gl_PREREQ_CHOWN): Delete.
12557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12558         * modules/unistd (Makefile.am): Populate it.
12559         * lib/unistd.in.h (chown): Update declaration.
12560         * lib/lchown.c (chown): Update client.
12561         * modules/lchown (Depends-on): Add lstat.
12562         * doc/posix-functions/chown.texi (chown): Document the bug.
12563         * doc/posix-functions/getgroups.texi (getgroups): Document
12564         getgroups pitfall.
12565         * modules/chown-tests: New file.
12566         * tests/test-chown.h (test_chown): Likewise.
12567         * tests/test-chown.c (main): Likewise.
12568
12569 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
12570
12571         gnulib-tool: correctly detect absence of m4 directories
12572         * gnulib-tool: Avoid extra newline on data passed to wc -l.
12573
12574 2009-11-14  Jim Meyering  <meyering@redhat.com>
12575
12576         maint.mk: Prohibit inclusion of "xalloc.h" without use.
12577         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12578
12579 2009-11-14  John W. Eaton  <jwe@gnu.org>
12580
12581         strftime.h: wrap funtion declaration in extern "C" block
12582         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
12583
12584 2009-11-13  Eric Blake  <ebb9@byu.net>
12585
12586         getgroups: avoid compiler warning
12587         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
12588
12589         getgroups: work around FreeBSD bug
12590         * lib/getgroups.c (rpl_getgroups): Work around the bug.
12591         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
12592         * doc/posix-functions/getgroups.texi (getgroups): Document it.
12593         * tests/test-getgroups.c (main): Fix buffer overrun.
12594
12595         getgroups: avoid compilation failure
12596         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
12597         * modules/getgroups (Depends-on): Add stdint.
12598
12599 2009-11-13  Jim Meyering  <meyering@redhat.com>
12600
12601         test-getgroups: avoid compilation failure
12602         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
12603
12604 2009-11-13  Eric Blake  <ebb9@byu.net>
12605
12606         mgetgroups: new module, taken from coreutils
12607         * modules/mgetgroups: New file.
12608         * lib/mgetgroups.h: Likewise.
12609         * lib/mgetgroups.c (mgetgroups): Likewise.
12610         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
12611         * MODULES.html.sh (Users and groups): Mention it.
12612
12613         getgroups: don't expose GETGROUPS_T to user
12614         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
12615         an element at a time if GETGROUPS_T is wrong size.
12616         * lib/getugroups.h (getugroups): Change signature.
12617         * lib/unistd.in.h (getgroups): Likewise.
12618         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
12619         signature needs fixing.
12620         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
12621         AC_TYPE_GETGROUPS.
12622         * modules/group-member (Depends-on): Add getgroups.
12623         * lib/group-member.c (group_info, get_group_info): Use gid_t.
12624         (group_member): Rely on getgroups replacement.
12625         * lib/getugroups.c (getugroups): Use gid_t.
12626         * tests/test-getgroups.c (main): Likewise.
12627         * NEWS: Mention the signature change.
12628         * doc/posix-functions/getgroups.texi (getgroups): Mention the
12629         problem with signature.
12630         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
12631         GETGROUPS_T is still useful for setgroups.
12632
12633         getgroups, getugroups: provide stubs for mingw
12634         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
12635         * lib/getugroups.c (getugroups): Likewise.
12636         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
12637         function.  Modernize replacement scheme.
12638         (gl_PREREQ_GETGROUPS): Delete.
12639         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
12640         * modules/getgroups (configure.ac): Declare witness.
12641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12642         * modules/unistd (Depends-on): Substitute witness.
12643         * lib/unistd.in.h (getgroups): Declare replacement.
12644
12645         getgroups: avoid calling exit
12646         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
12647         drop xalloc.
12648         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
12649         dependencies.
12650         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
12651         exiting, in the rare case of malloc failure.
12652
12653         getgroups: fix logic error
12654         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
12655         has more than 20 groups.
12656         * modules/getgroups-tests: New test.
12657         * tests/test-getgroups.c: New file.
12658
12659 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12660
12661         * tests/test-base64.c: Improve.
12662
12663 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12664
12665         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
12666         Blake <ebb9@byu.net>.
12667
12668 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12669
12670         * tests/test-xvasprintf.c: Add %s%s related checks.
12671
12672 2009-11-12  Eric Blake  <ebb9@byu.net>
12673
12674         version-etc: match standards.texi style
12675         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
12676         and use <> only for URLs.
12677
12678 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
12679
12680         fts: do not fail on a submount during traversal
12681         * lib/fts.c (fts_build): Read the stat info again after opening
12682         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
12683         Original report at http://bugzilla.redhat.com/501848.
12684
12685 2009-11-12  Jim Meyering  <meyering@redhat.com>
12686
12687         bootstrap: sync from coreutils
12688         * build-aux/bootstrap (bootstrap_epilogue): New function.
12689         Use git_modules_config in one more place.  This make bootstrap's
12690         --gnulib-srcdir option more useful for testing.
12691
12692         bootstrap: generalize autoheader check
12693         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
12694         AC_CONFIG_HEADERS.
12695
12696 2009-11-11  Eric Blake  <ebb9@byu.net>
12697
12698         mkfifoat: use new modules for Solaris and BSD bugs
12699         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
12700         * lib/mkfifoat.c (mknodat): Split...
12701         * lib/mknodat.c (mknodat): ...into new file.
12702         * modules/mkfifoat (Files): Ship new file.
12703         (Depends-on): Add mkfifo, mknod.
12704         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
12705         (Depends-on): Add symlink.
12706         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
12707         redundant with test_mkfifo.h.
12708         (do_mkfifoat, do_mknodat): New helpers.
12709
12710         mknod: new module
12711         * modules/mknod: New file.
12712         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
12713         * lib/mknod.c (mknod): Likewise.
12714         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12715         defaults.
12716         * modules/sys_stat (Makefile.am): Substitute them.
12717         * lib/sys_stat.in.h (mknod): Declare replacement.
12718         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12719         Document it.
12720         * doc/posix-functions/mknod.texi (mknod): Likewise.
12721         * modules/mknod-tests: New test.
12722         * tests/test-mknod.c: Likewise.
12723
12724         mkfifo: new module
12725         * modules/mkfifo: New file.
12726         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12727         * lib/mkfifo.c (mkfifo): Likewise.
12728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12729         defaults.
12730         * modules/sys_stat (Makefile.am): Substitute them.
12731         * lib/sys_stat.in.h (mkfifo): Declare replacement.
12732         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12733         Document it.
12734         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
12735         * modules/mkfifo-tests: New test.
12736         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
12737         from test-mkfifoat.c.
12738         * tests/test-mkfifo.c: New file.
12739
12740         readlink: detect FreeBSD bug
12741         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
12742         slash on symlink.
12743         * doc/posix-functions/readlink.texi (readlink): Document the bug.
12744         * tests/test-readlink.h (test_readlink): Enhance test.
12745
12746         symlink: detect FreeBSD bug
12747         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
12748         slash on symlink.
12749         * doc/posix-functions/symlink.texi (symlink): Document the bug.
12750         * tests/test-symlink.h (test_symlink): Enhance test.
12751
12752 2009-11-10  Eric Blake  <ebb9@byu.net>
12753
12754         link: detect FreeBSD bug
12755         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
12756         symlink.
12757         * doc/posix-functions/link.texi (link): Document the bug.
12758         * tests/test-link.h (test_link): Enhance test.
12759         * tests/test-linkat.c (main): Update caller.
12760
12761         unlink, remove: detect FreeBSD bug
12762         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
12763         slash on symlink.
12764         * doc/posix-functions/unlink.texi (unlink): Document the bug.
12765         * doc/posix-functions/remove.texi (remove): Likewise.
12766         * tests/test-unlink.h (test_unlink): Enhance test.
12767         * tests/test-remove.c (main): Likewise.
12768
12769 2009-11-09  Eric Blake  <ebb9@byu.net>
12770
12771         rename: detect FreeBSD bug
12772         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
12773         slash on symlink.
12774         * modules/renameat-tests (Depends-on): Add filenamecat.
12775         * tests/test-rename.h (test_rename): Allow one more errno.
12776         * tests/test-renameat.c (main): Likewise.
12777         * doc/posix-functions/rename.texi (rename): Document the bug.
12778
12779         open: detect FreeBSD bug
12780         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
12781         symlink.
12782         * doc/posix-functions/open.texi (open): Document the bug.
12783         * doc/posix-functions/utimes.texi (utimes): Likewise.
12784         * tests/test-open.h (test_open): Add parameters, and test symlink
12785         handling.
12786         * tests/test-open.c (main): Adjust caller.
12787         * tests/test-fcntl-safer.c (main): Likewise.
12788         * modules/open-tests (Depends-on): Add stdbool, symlink.
12789         * modules/fcntl-safer-tests (Depends-on): Likewise.
12790         * tests/test-openat.c (main): Add test-open tests.
12791
12792         stat: detect FreeBSD bug
12793         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
12794         symlink.
12795         * doc/posix-functions/stat.texi (stat): Document the bug.
12796         * tests/test-stat.h (test_stat_func): Add argument.
12797         * tests/test-stat.c (main): Adjust caller.
12798         * tests/test-fstatat.c (main): Likewise.
12799         * modules/stat-tests (Depends-on): Add stdbool, symlink.
12800         Reported by Jim Meyering.
12801
12802 2009-11-09  James Youngman  <jay@gnu.org>
12803
12804         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
12805         * lib/strftime.c: Correct placement of #include "ignore-value.h".
12806
12807 2009-11-08  Jim Meyering  <meyering@redhat.com>
12808
12809         utimens: remove invalid futimesat call
12810         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
12811         It used the file descriptor of the target file as the DIR_FD
12812         parameter and NULL as the file name.  That caused failure with
12813         errno == EFAULT on FreeBSD-8.0-rc2
12814
12815 2009-11-07  Eric Blake  <ebb9@byu.net>
12816
12817         fflush, freadseek: use fseeko, not fseek
12818         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12819         (clear_ungetc_buffer): Avoid potential problems on large files.
12820         * lib/freadseek.c (freadseek): Likewise.
12821         * modules/freadseek (Depends-on): Add fseeko.
12822         * modules/fseek (configure.ac): Set a witness.
12823         * tests/test-fflush.c (main): Use fseeko.
12824         * tests/test-fpurge.c (fseek): Disable link warning.
12825         * tests/test-freadable.c (fseek): Likewise.
12826         * tests/test-freading.c (fseek): Likewise.
12827         * tests/test-fseeko.c (fseek): Likewise.
12828         * tests/test-ftell.c (fseek): Likewise.
12829         * tests/test-ftello.c (fseek): Likewise.
12830         * tests/test-fwritable.c (fseek): Likewise.
12831         * tests/test-fwriting.c (fseek): Likewise.
12832
12833 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12834
12835         * modules/memchr (Depends-on): Drop getpagesize dependency.
12836
12837 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12838
12839         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
12840         Reported by Ludovic Courtès.
12841         * build-aux/pmccabe2html: Improve example usage.
12842         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
12843
12844 2009-11-06  Jim Meyering  <meyering@redhat.com>
12845
12846         do-release-commit-and-tag: New module.
12847         Automate the release-commit and tag process.
12848         * build-aux/do-release-commit-and-tag: New script, from coreutils.
12849         * modules/do-release-commit-and-tag: New file.
12850         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12851
12852 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12853
12854         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
12855         because test-select.c uses inet_pton.
12856
12857 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12858
12859         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
12860         GETADDRINFO_LIB.  Bump serial number.
12861         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
12862         Suggested by Eric Blake <ebb9@byu.net>.
12863
12864 2009-11-05  Eric Blake  <ebb9@byu.net>
12865
12866         strtod: detect darwin bug
12867         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
12868         Reported by Leo Davis.
12869
12870         freopen-safer: new module
12871         * modules/freopen-safer: New module.
12872         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
12873         * lib/freopen-safer.c (freopen_safer): New file.
12874         * lib/stdio-safer.h (freopen_safer): New declaration.
12875         * lib/stdio--.h (freopen): New override.
12876         * MODULES.html.sh (File stream based Input/Output): Mention it.
12877         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
12878         freopen-safer module.
12879         * doc/posix-functions/stderr.texi (stderr): Likewise.
12880         * doc/posix-functions/stdin.texi (stdin): Likewise.
12881         * doc/posix-functions/stdout.texi (stdout): Likewise.
12882         * modules/freopen-safer-tests: New test.
12883         * tests/test-reopen-safer.c: New file.
12884
12885 2009-11-05  Jim Meyering  <meyering@redhat.com>
12886
12887         maint.mk: Prohibit inclusion of "close-stream.h" without use.
12888         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12889
12890 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12891
12892         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
12893
12894 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12895
12896         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
12897
12898 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12899
12900         Fix link error.
12901         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12902         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12903
12904 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12905
12906         * tests/test-func.c: Also test value of __func__.
12907
12908 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12909
12910         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
12911         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
12912
12913 2009-11-05  Bruno Haible  <bruno@clisp.org>
12914
12915         Fix link error.
12916         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12917         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12918         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
12919
12920 2009-11-05  Bruno Haible  <bruno@clisp.org>
12921
12922         Tests for module 'inet_pton'.
12923         * modules/inet_pton-tests: New file.
12924         * tests/test-inet_pton.c: New file.
12925
12926 2009-11-05  Bruno Haible  <bruno@clisp.org>
12927
12928         Tests for module 'inet_ntop'.
12929         * modules/inet_ntop-tests: New file.
12930         * tests/test-inet_ntop.c: New file.
12931
12932 2009-11-04  Eric Blake  <ebb9@byu.net>
12933
12934         stdlib-safer: wrap all mkstemp variants
12935         * modules/mkostemp (configure.ac): Set witness.
12936         * modules/mkostemps (configure.ac): Likewise.
12937         * modules/mkstemps (configure.ac): Likewise.
12938         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
12939         (mkstemps_safer): Wrap more functions.
12940         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
12941         wrapping.
12942         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
12943         (mkstemps_safer): Implement the wrappers.
12944
12945         mkstemps, mkostemps: new modules
12946         * modules/mkostemps: New module.
12947         * modules/mkstemps: Likewise.
12948         * lib/mkostemps.c (mkostemps): New file.
12949         * lib/mkstemps.c (mkstemps): Likewise.
12950         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
12951         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
12952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
12953         * modules/stdlib (Makefile.am): Substitute them.
12954         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
12955         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
12956         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12957         * doc/gnulib.texi (Glibc stdlib.h): Include them.
12958         * MODULES.html.sh (File system functions): Mention them.
12959
12960         tempname: resync from glibc
12961         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
12962         same values for __GT_FILE as glibc.  Abort even when assertions
12963         are disabled.
12964         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12965         match its value otherwise.  Allow idempotent inclusion.
12966         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12967         * lib/mkostemp.c (mkostemp): Likewise.
12968         * lib/mkstemp.c (mkstemp): Likewise.
12969         * lib/tmpfile.c (tmpfile): Likewise.
12970         * NEWS: Document this.
12971
12972         utimens: fix use of futimens on older Linux
12973         * lib/utimens.c (fdutimens): Use updated, rather than original,
12974         timespec to avoid bug in older Linux kernel.
12975         Reported by Simon Josefsson.
12976
12977 2009-11-04  Bruno Haible  <bruno@clisp.org>
12978
12979         Make num_processors more flexible and consistent.
12980         * lib/nproc.h (enum nproc_query): New type.
12981         (num_processors): Add a 'query' argument.
12982         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12983         (num_processors): Add a 'query' argument. Test the value of the
12984         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12985         mingw, count the number of CPUs available for the current process.
12986         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12987         Check for sched_getaffinity and sched_getaffinity_np.
12988         * modules/nproc (Depends-on): Add c-ctype, extensions.
12989         * NEWS: Mention the change.
12990
12991 2009-11-03  Bruno Haible  <bruno@clisp.org>
12992
12993         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12994
12995 2009-11-03  Jim Meyering  <meyering@redhat.com>
12996
12997         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12998         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12999         if it is defined.
13000
13001 2009-11-02  Eric Blake  <ebb9@byu.net>
13002
13003         mktime, timegm: share common declaration
13004         * lib/mktime-internal.h: New file.
13005         * lib/mktime.c: Use it rather than open-coding a declaration.
13006         * lib/timegm.c: Likewise.
13007         * modules/mktime (Files): Ship it.
13008         * modules/timegm (Files): Likewise.
13009         Suggested by Bruno Haible.
13010
13011         test-update-copyright: update test to match script changes
13012         * tests/test-update-copyright.sh: Avoid hard-coding perl
13013         location.  Don't update *.bak created by earlier runs.
13014
13015 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13016             Simon Josefsson  <simon@josefsson.org>
13017             Bruno Haible  <bruno@clisp.org>
13018
13019         Fix link error on Solaris 8.
13020         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13021         also in libnsl. Define also INET_PTON_LIB.
13022         * modules/inet_pton (Link): New section.
13023
13024 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13025             Bruno Haible  <bruno@clisp.org>
13026
13027         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13028         * modules/inet_ntop (Link): New section.
13029         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13030
13031 2009-11-02  Eric Blake  <ebb9@byu.net>
13032
13033         maint: avoid compiler warnings in m4 macros
13034         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13035         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13036
13037 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13038
13039         * m4/pmccabe2html.m4: Remove file.
13040         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13041         function.  Change maintainer.
13042         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13043         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13044         Courtès).
13045
13046 2009-10-31  Eric Blake  <ebb9@byu.net>
13047
13048         fseeko: fix m4 regression
13049         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13050         regression from 2009-10-27.
13051         Reported by Ralf Wildenhues.
13052
13053 2009-10-31  Jim Meyering  <meyering@redhat.com>
13054
13055         inttostr: aesthetics and improved (compile-time) safety
13056         Define inttype_is_signed rather than inttype_is_unsigned,
13057         since the sole use is via "#if inttype_is_signed".
13058         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13059         inttype_is_unsigned.
13060         * lib/offtostr.c (inttype_is_signed): Likewise.
13061         * lib/uinttostr.c (inttype_is_signed): Likewise.
13062         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13063         * lib/inttostr.c (inttostr): Use verify to cross-check the
13064         inttype_is_signed value and the signedness of the actual type.
13065         * modules/inttostr (Depends-on): Add verify.
13066
13067 2009-10-30  Eric Blake  <ebb9@byu.net>
13068
13069         build: avoid compiler warnings
13070         * lib/fchmodat.c (lchmod): Mark unused variables.
13071         * lib/getopt.c (_getopt_initialize): Likewise.
13072         * lib/mktime.c (__mktime_internal): Provide prototype.
13073         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13074         older gcc that do not understand #pragma GCC diagnostic.
13075         * lib/uinttostr.c (inttype_is_unsigned): Define.
13076         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13077
13078 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13079
13080         stat: fix compilation on AIX
13081         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13082         only see struct stat64.
13083
13084 2009-10-30  Eric Blake  <ebb9@byu.net>
13085
13086         exclude: make more robust
13087         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13088         rather than masking a coding bug.
13089         Suggested by Bruno Haible.
13090
13091 2009-10-30  Jim Meyering  <meyering@redhat.com>
13092
13093         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13094         Rather than putting #!/usr/bin/perl on the first line,
13095         start with a variant of what's recommended by "man perlrun" that
13096         invokes the first "perl" program from your shell's search path.
13097         * build-aux/gitlog-to-changelog: Replace #!... as above.
13098         Add a "Local Variables" perl mode setting.
13099         Prompted by a patch from Ludovic Courtès.
13100         Improved by Eric Blake.
13101         * build-aux/useless-if-before-free: Likewise.
13102         * build-aux/announce-gen: Likewise.
13103         * build-aux/update-copyright: Likewise.
13104
13105 2009-10-29  Eric Blake  <ebb9@byu.net>
13106
13107         filenamecat-lgpl: adjust clients
13108         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13109         filenamecat.
13110         * modules/renameat (Depends-on): Likewise.
13111
13112         filenamecat: split into filenamecat-lgpl
13113         * modules/filenamecat-lgpl: New module.
13114         * modules/filenamecat (Files): Move library-safe files into
13115         filenamecat-lgpl.
13116         (Depends-on): Add filenamecat-lgpl.
13117         (configure.ac): Declare witness.
13118         * lib/filenamecat.h (file_name_concat): Only declare when using
13119         GPL module.
13120         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13121         Move...
13122         * lib/filenamecat-lgpl.c: ...into new file.
13123         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13124         (gl_FILE_NAME_CONCAT): Use it.
13125         * MODULES.html.sh (File system functions): Mention new module.
13126
13127         argp: avoid memory leak
13128         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13129         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13130         base_name, since the latter malloc()s and can call exit().
13131         Leak introduced 2006-07-03.
13132
13133         dirname-lgpl: adjust clients that don't need full dirname
13134         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13135         * modules/filenamecat (Depends-on): Likewise.
13136         * modules/linkat (Depends-on): Likewise.
13137         * modules/mkancesdirs (Depends-on): Likewise.
13138         * modules/mkdir (Depends-on): Likewise.
13139         * modules/openat (Depends-on): Likewise.
13140         * modules/savewd (Depends-on): Likewise.
13141         * modules/rename (Depends-on): Likewise.
13142         (License): Relax license.
13143         * modules/mkdir-tests (Depends-on): Drop progname.
13144         (Makefile.am): Delete unneeded LDADD.
13145         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13146
13147         dirname: split into dirname-lgpl
13148         * modules/dirname-lgpl: New module.
13149         * modules/dirname (Files): Move library-safe files into
13150         dirname-lgpl.
13151         (Depends-on): Add dirname-lgpl.
13152         (configure.ac): Declare witness.
13153         * modules/double-slash-root (License): Relax license.
13154         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13155         module.
13156         * lib/dirname.c (dir_len, mdir_name): Move...
13157         * lib/dirname-lgpl.c: ...into new file.
13158         * lib/basename.c (last_component, base_len): Move...
13159         * lib/basename-lgpl.c: ...into new file.
13160         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13161         (gl_DIRNAME): Use it.
13162         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13163         Mention new module.
13164         * modules/dirname-tests (Depends-on): Add progname.
13165         * tests/test-dirname.c (program_name): Delete.
13166
13167         mkdir: make safe for libraries
13168         * modules/mkdir (Depends-on): Drop xalloc.
13169         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13170         exit.
13171
13172         tests: avoid some compiler warnings
13173         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13174         literals.
13175         * tests/test-memchr.c (main): Avoid type mismatch.
13176         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13177         * tests/test-base64.c (main): Likewise.
13178         * tests/test-getdelim.c (main): Likewise.
13179         * tests/test-gethostname.c (main): Likewise.
13180         * tests/test-getline.c (main): Likewise.
13181         * tests/test-netinet_in.c (main): Likewise.
13182         * tests/test-select.c (open_server_socket, main): Likewise.
13183         * tests/test-select-stdin.c (main): Likewise.
13184         * tests/test-sockets.c (main): Likewise.
13185         * tests/test-strsignal.c (main): Likewise.
13186         * tests/test-sys_select.c (main): Likewise.
13187         * tests/test-sys_socket.c (main): Likewise.
13188         * tests/test-u64.c (main): Likewise.
13189         * tests/test-xfprintf-posix.c (main): Likewise.
13190         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13191
13192         sockets: avoid compiler warning
13193         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13194
13195         maint: detect usage(1) and other suspicious exits
13196         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13197
13198 2009-10-29  Jim Meyering  <meyering@redhat.com>
13199
13200         timespec: long-to-int truncation could make timespec_cmp malfunction
13201         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13202         a multiple of 2^32 nanoseconds as no difference.
13203
13204 2009-10-28  Jim Meyering  <meyering@redhat.com>
13205
13206         fprintftime: wrap macro code argument in "do {...} while(0)"
13207         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13208         cpy macro must be a statement that can be followed by a semicolon.
13209         Now that the else clause contains a comment and is hence longer
13210         than one line, I require curly braces.  That in turn requires
13211         that we wrap this code block in the standard do...while(0).
13212
13213         fprintftime: remove stray semicolon from previous change
13214         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13215
13216         fprintftime: avoid a warning about ignored fwrite return value
13217         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13218         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13219         that is unsafe.
13220         * modules/fprintftime (Depends-on): Add ignore-value.
13221
13222         exclude: avoid an unwarranted warning
13223         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13224
13225 2009-10-27  Eric Blake  <ebb9@byu.net>
13226
13227         fseek: avoid compilation failure when fflush is replaced
13228         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13229         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13230         module is in use.
13231         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13232         module is not in use; since REPLACE_FSEEK worked otherwise.
13233         (GNULIB_FTELLO): Likewise for ftell.
13234         Reported by Ian Beckwith and others.
13235
13236 2009-10-27  Bruno Haible  <bruno@clisp.org>
13237
13238         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13239         Reported by Jim Meyering.
13240
13241 2009-10-27  Jim Meyering  <jim@meyering.net>
13242             Bruno Haible  <bruno@clisp.org>
13243
13244         Avoid warning despite dropping the return value of fwrite.
13245         * lib/unicodeio.c: Include ignore-value.h.
13246         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13247         * modules/unicodeio (Depends-on): Add ignore-value.
13248
13249 2009-10-26  Eric Blake  <ebb9@byu.net>
13250
13251         areadlinkat: fix fallback path
13252         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13253         pointer and zero.
13254
13255 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13256
13257         Use a better IO block size for modern systems
13258         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13259         * lib/md2.c: Likewise.
13260         * lib/md4.c: Likewise.
13261         * lib/md5.c: Likewise.
13262         * lib/sha1.c: Likewise.
13263         * lib/sha256.c: Likewise.
13264         * lib/sha512.c: Likewise.
13265
13266 2009-10-22  Eric Blake  <ebb9@byu.net>
13267
13268         tests: avoid several compiler warnings
13269         * tests/test-getcwd.c (main): Avoid buffer underflow.
13270         * tests/test-getdate.c (main): String literals are not safe with
13271         putenv, so use setenv.  Declare unused argument.
13272         * modules/getdate-tests (Depends-on): Add setenv.
13273         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13274         problems with string literals in char *.
13275         * tests/test-hash.c (main): Avoid shadowing declaration.
13276         (insert_new): Treat string literals as char const *.
13277         * tests/test-getopt.h (test_getopt): Likewise.
13278         (getopt_loop): Alter types to minimize casting elsewhere.
13279         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13280         (test_getopt_long_posix): Likewise.
13281         (do_getopt_long): Add wrapper to minimize casting.
13282         * tests/test-atexit.c (clear_temp_file): Use void.
13283         * tests/test-areadlink-with-size.c (main): Declare unused
13284         arguments.
13285         * tests/test-areadlink.c (main): Likewise.
13286         * tests/test-areadlinkat-with-size.c (main): Likewise.
13287         * tests/test-areadlinkat.c (main): Likewise.
13288         * tests/test-canonicalize-lgpl.c (main): Likewise.
13289         * tests/test-canonicalize.c (main): Likewise.
13290         * tests/test-dirent-safer.c (main): Likewise.
13291         * tests/test-dirname.c (main): Likewise.
13292         * tests/test-dup2.c (main): Likewise.
13293         * tests/test-fchdir.c (main): Likewise.
13294         * tests/test-fcntl-h.c (main): Likewise.
13295         * tests/test-fcntl-safer.c (main): Likewise.
13296         * tests/test-fdopendir.c (main): Likewise.
13297         * tests/test-fdutimensat.c (main): Likewise.
13298         * tests/test-fflush.c (main): Likewise.
13299         * tests/test-filenamecat.c (main): Likewise.
13300         * tests/test-filevercmp.c (main): Likewise.
13301         * tests/test-fopen-safer.c (main): Likewise.
13302         * tests/test-fopen.c (main): Likewise.
13303         * tests/test-fpending.c (main): Likewise.
13304         * tests/test-fpurge.c (main): Likewise.
13305         * tests/test-freading.c (main): Likewise.
13306         * tests/test-fstatat.c (main): Likewise.
13307         * tests/test-fsync.c (main): Likewise.
13308         * tests/test-futimens.c (main): Likewise.
13309         * tests/test-getndelim2.c (main): Likewise.
13310         * tests/test-gettimeofday.c (main): Likewise.
13311         * tests/test-getopt.c (main): Likewise.
13312         * tests/test-i-ring.c (main): Likewise.
13313         * tests/test-inttypes.c (main): Likewise.
13314         * tests/test-link.c (main): Likewise.
13315         * tests/test-lstat.c (main): Likewise.
13316         * tests/test-math.c (main): Likewise.
13317         * tests/test-md5.c (main): Likewise.
13318         * tests/test-memchr2.c (main): Likewise.
13319         * tests/test-memrchr.c (main): Likewise.
13320         * tests/test-mkdir.c (main): Likewise.
13321         * tests/test-mkdirat.c (main): Likewise.
13322         * tests/test-mkfifoat.c (main): Likewise.
13323         * tests/test-open.c (main): Likewise.
13324         * tests/test-openat-safer.c (main): Likewise.
13325         * tests/test-openat.c (main): Likewise.
13326         * tests/test-quotearg.c (main): Likewise.
13327         * tests/test-rawmemchr.c (main): Likewise.
13328         * tests/test-readlink.c (main): Likewise.
13329         * tests/test-remove.c (main): Likewise.
13330         * tests/test-rename.c (main): Likewise.
13331         * tests/test-renameat.c (main): Likewise.
13332         * tests/test-rmdir.c (main): Likewise.
13333         * tests/test-sha1.c (main): Likewise.
13334         * tests/test-signal.c (main): Likewise.
13335         * tests/test-sigaction.c (main): Likewise.
13336         * tests/test-stat.c (main): Likewise.
13337         * tests/test-stat-time.c (main): Likewise.
13338         * tests/test-stddef.c (main): Likewise.
13339         * tests/test-stdint.c (main): Likewise.
13340         * tests/test-stdio.c (main): Likewise.
13341         * tests/test-stdlib.c (main): Likewise.
13342         * tests/test-strchrnul.c (main): Likewise.
13343         * tests/test-strerror.c (main): Likewise.
13344         * tests/test-string.c (main): Likewise.
13345         * tests/test-strtod.c (main): Likewise.
13346         * tests/test-strverscmp.c (main): Likewise.
13347         * tests/test-symlink.c (main): Likewise.
13348         * tests/test-symlinkat.c (main): Likewise.
13349         * tests/test-sys_stat.c (main): Likewise.
13350         * tests/test-sys_time.c (main): Likewise.
13351         * tests/test-time.c (main): Likewise.
13352         * tests/test-unistd.c (main): Likewise.
13353         * tests/test-unlink.c (main): Likewise.
13354         * tests/test-unlinkat.c (main): Likewise.
13355         * tests/test-utimens.c (main): Likewise.
13356         * tests/test-utimensat.c (main): Likewise.
13357         * tests/test-version-etc.c (main): Likewise.
13358         * tests/test-wchar.c (main): Likewise.
13359         * tests/test-wctype.c (main): Likewise.
13360         * tests/test-xprintf-posix.c (main): Likewise.
13361         * tests/test-posixtm.c (main): Likewise.
13362         (STREQ): Delete unused macro.
13363         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13364         shadowed variables.
13365         * tests/test-memchr.c (main): Likewise.
13366
13367 2009-10-21  Eric Blake  <ebb9@byu.net>
13368
13369         areadlinkat: avoid failure on older glibc
13370         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13371         rather than mis-comparing 0 against FUNC_RESULT of char*.
13372
13373 2009-10-21  Bruno Haible  <bruno@clisp.org>
13374
13375         * modules/stpncpy (License): Relicense under LGPLv2+.
13376         Reported by David Lutterkort <lutter@redhat.com>.
13377
13378 2009-10-20  Eric Blake  <ebb9@byu.net>
13379
13380         utimensat: work around Solaris 9 bug
13381         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13382         has trailing slash bugs.
13383         * tests/test-lutimens.h (test_lutimens): Enhance test.
13384         * tests/test-utimens.h (test_utimens): Likewise.
13385         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13386         * doc/posix-functions/utimes.texi (utimes): Likewise.
13387         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13388         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13389         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13390         * doc/posix-functions/futimens.texi (futimens): Likewise.
13391
13392         fdutimensat: new module
13393         * modules/fdutimensat: New file.
13394         * lib/fdutimensat.c (fdutimensat): Likewise.
13395         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13396         * MODULES.html.sh (File system functions): Mention module.
13397         * modules/fdutimensat-tests: New test.
13398         * tests/test-fdutimensat.c: Likewise.
13399
13400         doc: regenerate INSTALL
13401         * doc/INSTALL: Reflect recent autoconf update.
13402         * doc/INSTALL.ISO: Likewise.
13403         * doc/INSTALL.UTF-8: Likewise.
13404
13405 2009-10-20  Pádraig Brady  <P@draigBrady.com>
13406
13407         acl: warn if ACL support is not detected
13408         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
13409
13410 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
13411
13412         * lib/nproc.h: Add extern "C" block for C++.
13413
13414 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
13415             Bruno Haible  <bruno@clisp.org>
13416
13417         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
13418         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
13419         * doc/posix-functions/isalpha.texi: Likewise.
13420         * doc/posix-functions/isblank.texi: Likewise.
13421         * doc/posix-functions/iscntrl.texi: Likewise.
13422         * doc/posix-functions/isdigit.texi: Likewise.
13423         * doc/posix-functions/isgraph.texi: Likewise.
13424         * doc/posix-functions/islower.texi: Likewise.
13425         * doc/posix-functions/isprint.texi: Likewise.
13426         * doc/posix-functions/ispunct.texi: Likewise.
13427         * doc/posix-functions/isspace.texi: Likewise.
13428         * doc/posix-functions/isupper.texi: Likewise.
13429         * doc/posix-functions/isxdigit.texi: Likewise.
13430
13431 2009-10-18  Bruno Haible  <bruno@clisp.org>
13432
13433         Tests for module 'isblank'.
13434         * modules/isblank-tests: New file.
13435         * tests/test-isblank.c: New file.
13436
13437         New module 'isblank'.
13438         * lib/isblank.c: New file.
13439         * m4/isblank.m4: New file.
13440         * modules/isblank: New file.
13441         * doc/posix-functions/isblank.texi: Mention the new module.
13442
13443 2009-10-18  Bruno Haible  <bruno@clisp.org>
13444
13445         New module 'ctype'.
13446         * lib/ctype.in.h: New file.
13447         * m4/ctype.m4: New file.
13448         * modules/ctype: New file.
13449         * doc/posix-headers/ctype.texi: Mention the new module.
13450
13451 2009-10-18  Jim Meyering  <meyering@redhat.com>
13452
13453         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
13454         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
13455         right after its initialization, rather than farther down.
13456         Keeping these in close proximity makes it easier to ensure
13457         that each such variable is initialized.  E.g.,
13458
13459             LIB_CLOCK_GETTIME=
13460             AC_SUBST([LIB_CLOCK_GETTIME])
13461
13462         This change also increments these serial numbers.
13463         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
13464         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13466
13467 2009-10-18  Bruno Haible  <bruno@clisp.org>
13468
13469         Don't let environment variables perturb build.
13470         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
13471         (gl_PREREQ_GETHRXTIME): ... not here.
13472
13473 2009-10-18  Bruno Haible  <bruno@clisp.org>
13474
13475         Avoid symlink attack in localcharset module.
13476         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
13477         (O_NOFOLLOW): Define fallback.
13478         (get_charset_aliases): Don't open the file if it is a symbolic link.
13479         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
13480         gl_FCNTL_H.
13481         (gl_FCNTL_H): Require it.
13482         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
13483         * modules/localcharset (Files): Add m4/fcntl_h.m4.
13484         Reported by Fergal Glynn <fglynn@veracode.com>.
13485
13486 2009-10-18  Bruno Haible  <bruno@clisp.org>
13487
13488         Implement nproc for mingw.
13489         * lib/nproc.c: Include <windows.h>
13490         (num_processors): On native Windows platforms, try GetSystemInfo.
13491
13492 2009-10-18  Bruno Haible  <bruno@clisp.org>
13493
13494         Implement nproc for IRIX.
13495         * lib/nproc.c: Include <sys/sysmp.h>.
13496         (num_processors): On IRIX systems, try sysmp.
13497         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
13498
13499 2009-10-18  Bruno Haible  <bruno@clisp.org>
13500
13501         Implement nproc for HP-UX.
13502         * lib/nproc.c: Include <sys/pstat.h>
13503         (num_processors): On HP-UX systems, try pstat_getdynamic.
13504         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
13505         pstat_getdynamic.
13506
13507 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
13508             Bruno Haible  <bruno@clisp.org>
13509
13510         Implement nproc for NetBSD, OpenBSD.
13511         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
13512         (ARRAY_SIZE): New macro.
13513         (num_processors): On BSD systems, try sysctl of HW_NCPU.
13514         * m4/nproc.m4: New file.
13515         * modules/nproc (Files): Add m4/nproc.m4.
13516         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
13517         (Makefile.am): Instead, augment lib_SOURCES.
13518
13519 2009-10-18  Bruno Haible  <bruno@clisp.org>
13520
13521         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
13522         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
13523         sys/param.h.
13524
13525 2009-10-16  Eric Blake  <ebb9@byu.net>
13526
13527         utimensat: new module
13528         * modules/utimensat: New file.
13529         * lib/utimensat.c (utimensat): Likewise.
13530         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13531         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
13532         so we can work around Linux bugs.
13533         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13534         * modules/sys_stat (Makefile.am): Substitute them.
13535         * lib/sys_stat.in.h (utimensat): Declare it.
13536         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13537         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13538         * modules/utimensat-tests: New test.
13539         * tests/test-utimensat.c: Likewise.
13540
13541         utimens: let lutimens work on non-symlinks
13542         * lib/utimens.c (lutimens): Fall back to utimens rather than
13543         failing with ENOSYS, when file is not a symlink.
13544         (utimens): Reduce redirection.
13545         * tests/test-lutimens.h (test_lutimens): Update test to cover
13546         non-symlinks.
13547         * tests/test-utimens.h (test_utimens): Update test to cover
13548         symlinks.
13549         * tests/test-utimens.c (main): Update caller.
13550
13551         utimens: cache whether utimensat syscall works
13552         * lib/utimens.c (utimensat_works_really): New cache variable.
13553         (fdutimens, lutimens): Use it to avoid failing syscall.
13554
13555         test-stat-time, test-utimens: improve portability
13556         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
13557         ext4 on alpha, and for cygwin.
13558         * tests/test-utimens-common.h: New file.
13559         (nap): Factor delays into single function.
13560         * tests/test-lutimens.h (test_lutimens): Use new header.
13561         * tests/test-futimens.h (test_futimens): Likewise.
13562         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
13563         timestamps to occur from same machine, as was done previously for
13564         test_utimens.
13565         * modules/utimens-tests (Files): Ship new file.
13566         * modules/futimens-tests (Files): Likewise.
13567         Reported in part by Jim Meyering.
13568
13569         sys_stat: sort replacement declarations
13570         * lib/sys_stat.in.h: Sort declarations.
13571         * lib/futimens.c (futimens): Fix typo.
13572
13573 2009-10-15  Jim Meyering  <meyering@redhat.com>
13574
13575         don't let environment settings perturb build
13576         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
13577         could cause a configure-time and/or build-time malfunction.
13578         Typically, a configure-time function-in-library test is performed
13579         via code like this:
13580
13581           LIB_VAR=
13582           AC_SUBST([LIB_VAR])
13583           prefix_saved_LIBS=$LIBS
13584             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
13585                        [test "$ac_cv_search_FUNC" = "none required" ||
13586                         LIB_VAR=$ac_cv_search_FUNC])
13587           LIBS=$prefix_saved_LIBS
13588
13589         However, in each of the files affected by this change, the LIB_VAR=
13590         initialization was omitted.  Thus, when set in the environment, its
13591         value would propagate into generated Makefiles when FUNC is not found
13592         in LIB_NAME.
13593         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
13594         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13596
13597 2009-10-14  Eric Blake  <ebb9@byu.net>
13598
13599         fchdir: avoid infinite recursion in mingw
13600         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
13601         recursing.
13602
13603         test-stat-time: port to mingw
13604         * tests/test-stat-time.c (force_unlink): Return a value.
13605         (test_ctime) [W32]: Fix compilation error.
13606         (nap): Don't call usleep with too large an argument.  Use
13607         force_unlink.
13608         * doc/pastposix-functions/usleep.texi (usleep): Document the
13609         portability issue.
13610
13611 2009-10-13  Jim Meyering  <meyering@redhat.com>
13612
13613         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
13614         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
13615         * modules/pipe-filter-ii: Likewise.
13616         * modules/sys_socket-tests: Likewise.
13617         * modules/tsearch-tests: Likewise.
13618         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
13619         (check): Depend on it.
13620
13621 2009-10-12  Eric Blake  <ebb9@byu.net>
13622
13623         utimens-tests: port to NFS file systems
13624         * tests/test-utimens.h (test_utimens): Refactor utimecmp
13625         comparisons to avoid spurious failures from timestamp drift
13626         between NFS machines.
13627
13628 2009-10-12  Eric Blake  <ebb9@byu.net>
13629
13630         stat-time-tests: minor cleanups
13631         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
13632         * tests/test-stat-time.c (nap): Separate assignment from call.
13633         Suggested by Paolo Bonzini and Bruno Haible.
13634
13635         sys_stat: guarantee struct timespec
13636         * lib/sys_stat.in.h (includes): Always include <time.h>
13637         * modules/sys_stat (Depends-on): Add time.
13638         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
13639         mode_t permission values.
13640         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
13641         get at subsecond timestamps.
13642
13643 2009-10-10  Eric Blake  <ebb9@byu.net>
13644
13645         futimens: new module
13646         * modules/futimens: New file.
13647         * lib/futimens.c (futimens): Likewise.
13648         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
13649         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
13650         we can work around Linux bugs.
13651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13652         * modules/sys_stat (Makefile.am): Substitute them.
13653         * lib/sys_stat.in.h (futimens): Declare it.
13654         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13655         * doc/posix-functions/futimens.texi (futimens): Likewise.
13656         * modules/futimens-tests: New test.
13657         * tests/test-futimens.c: Likewise.
13658
13659         utimens: introduce fdutimens
13660         * lib/utimens.h (fdutimens): New prototype.
13661         * lib/utimens.c (gl_futimens): Move guts...
13662         (fdutimens): ...to new interface.
13663         * tests/test-utimens.c (do_fdutimens): Use it.
13664
13665         utimens: add UTIME_NOW and UTIME_OMIT support
13666         * lib/utimens.c (validate_timespec, update_timespec): New helper
13667         functions.
13668         (gl_futimens, lutimens): Use them.
13669         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
13670         stdbool, sys_stat.
13671         (Link): Mention resulting library dependency.
13672         * modules/utimecmp (Link): Likewise.
13673         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
13674         (Makefile.am): Pick up library dependency.
13675         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
13676         definition.
13677         * tests/test-sys_stat.c: Test the definitions.
13678         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
13679         * NEWS: Document library dependency.
13680
13681         utimecmp: support symlink timestamps
13682         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
13683         hashing when possible.  Use pathconf when available.
13684         (SYSCALL_RESOLUTION): Recognize tighter resolution.
13685         * modules/utimecmp (Depends-on): Add lstat.
13686
13687         utimens: add lutimens interface
13688         * lib/utimens.c (lutimens): New function.
13689         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
13690         * lib/utimens.h (lutimens): Declare new interface.
13691         * tests/test-utimens.c (main): Enhance test.
13692         * tests/test-lutimens.h (test_lutimens): New file.
13693         * modules/utimens-tests (Files): Distribute it.
13694         (Depends-on): Add symlink.
13695         (configure.ac): Check for usleep.
13696
13697         utimens: validate futimens usage
13698         * lib/utimens.c (gl_futimens): Require valid fd up front, using
13699         fewer syscalls on failure later on.  Avoid compiler warning on
13700         mingw.
13701         * modules/utimens (Depends-on): Add dup2.
13702
13703         utimens: add test
13704         * modules/utimens-tests: New test.
13705         * tests/test-utimens.h: New file.
13706         * tests/test-futimens.h: Likewise.
13707         * tests/test-utimens.c: Likewise.
13708
13709         doc: mention timestamp portability issues
13710         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
13711         instead.
13712         * doc/posix-functions/utime.texi (utime): Likewise.
13713         * doc/posix-functions/utimes.texi (utimes): Likewise.
13714         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
13715         instead.
13716         * doc/posix-functions/futimens.texi (futimens): Mention utimens
13717         module.
13718         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13719         Mention weakness with symlink timestamps.
13720         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
13721         to utimensat/futimens instead.
13722         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
13723
13724         test-dup2: enhance test
13725         * tests/test-dup2.c (main): Also check AT_FDCWD.
13726
13727         test-stat-time: avoid more spurious failures
13728         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
13729         xfs; and avoid race if the two timestamps cross quantization edge.
13730
13731         relocatable: prefer 'file system' over 'filesystem'
13732         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
13733         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
13734         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
13735         * doc/relocatable.texi (Enabling Relocatability): Likewise.
13736         * lib/relocatable.c (compute_curr_prefix): Likewise.
13737
13738 2009-10-10  Jim Meyering  <meyering@redhat.com>
13739
13740         stat-time-tests: check for the usleep function
13741         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
13742
13743 2009-10-10  Bruno Haible  <bruno@clisp.org>
13744
13745         * modules/xnanosleep: Put the Link section after the Include section.
13746
13747 2009-10-09  Eric Blake  <ebb9@byu.net>
13748
13749         dup2: work around FreeBSD 6.1 bug
13750         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
13751         * doc/posix-functions/dup2.texi (dup2): Document it.
13752         Reported by Nelson H. F. Beebe and Jim Meyering.
13753
13754         test-stat-time: port to buggy NFS clients
13755         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
13756         (test_ctime): Also skip test if mtime and ctime are skewed.
13757
13758         maint: prefer 'file system' over 'filesystem'
13759         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13760         * doc/posix-functions/lstat.texi (lstat): Likewise.
13761         * lib/file-has-acl.c (file_has_acl): Likewise.
13762         * lib/fwriteerror.c [TEST]: Likewise.
13763         * tests/test-areadlink.h (test_areadlink): Likewise.
13764         * tests/test-areadlinkat-with-size.c (main): Likewise.
13765         * tests/test-areadlinkat.c (main): Likewise.
13766         * tests/test-canonicalize-lgpl.c (main): Likewise.
13767         * tests/test-canonicalize.c (main): Likewise.
13768         * tests/test-fstatat.c (main): Likewise.
13769         * tests/test-linkat.c (main): Likewise.
13770         * tests/test-lstat.h (test_lstat_func): Likewise.
13771         * tests/test-mkdir.h (test_mkdir): Likewise.
13772         * tests/test-readlink.h (test_readlink): Likewise.
13773         * tests/test-remove.c (main): Likewise.
13774         * tests/test-rename.h (test_rename): Likewise.
13775         * tests/test-renameat.c (main): Likewise.
13776         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13777         * tests/test-symlink.h (test_symlink): Likewise.
13778         * tests/test-symlinkat.c (main): Likewise.
13779         * tests/test-unlink.h (test_unlink_func): Likewise.
13780         * tests/test-unlinkat.c (main): Likewise.
13781
13782         maint: make realtime library usage explicit
13783         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
13784         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
13785         * modules/settime (Link): Likewise.
13786         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
13787
13788         test-stat-time: speed up execution
13789         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
13790         warning on mingw.
13791         (nap): New helper function.
13792         (prepare_test): Use it to reduce sleep time.
13793         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
13794         execution.
13795         * modules/stat-time-tests (configure.ac): Check for usleep.
13796
13797 2009-10-09  Jim Meyering  <meyering@redhat.com>
13798
13799         selinux-h: always use getfilecon wrappers
13800         * lib/getfilecon.c: New file.
13801         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
13802         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
13803         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
13804         (fgetfilecon): Provide a stub.
13805         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
13806         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
13807         file unconditionally.
13808         When <selinux/selinux.h> is found, arrange to use wrappers.
13809         * modules/selinux-h (Files): Add getfilecon.c.
13810         (Makefile.am): Substitute include-next-related bits
13811         into the now-always-generated selinux/selinux.h file.
13812         * doc/glibc-functions/lgetfilecon.texi: New file.
13813         * doc/glibc-functions/fgetfilecon.texi: New file.
13814         * doc/glibc-functions/getfilecon.texi: New file.
13815         * doc/glibc-functions/getfilecon-desc.texi: New file.
13816         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
13817         which to pull in the new files.
13818         * MODULES.html.sh (Misc): Add selinux-h.
13819
13820 2009-10-08  Jim Meyering  <meyering@redhat.com>
13821
13822         unistd: fix comment typo
13823         * lib/unistd.in.h (euidaccess): Fix a comment typo.
13824
13825 2009-10-08  Eric Blake  <ebb9@byu.net>
13826
13827         areadlink: use SIZE_MAX consistently
13828         * modules/areadlink (Depends-on): Add stdint.
13829         * modules/areadlink-with-size (Depends-on): Likewise.
13830         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
13831         gives NULL; drop sys/types, since unistd gives size_t; and add
13832         stdint for SIZE_MAX.
13833         (SIZE_MAX): Rely on headers.
13834         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
13835         and add stdint.
13836         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
13837         (SIZE_MAX): Likewise.
13838         (INITIAL_BUF_SIZE): Turn into enum.
13839         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
13840
13841 2009-10-08  Jim Meyering  <meyering@redhat.com>
13842
13843         areadlinkat: avoid compilation failure
13844         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
13845         Fix typo in comment.
13846
13847 2009-10-07  Eric Blake  <ebb9@byu.net>
13848
13849         areadlinkat-with-size: new module
13850         * modules/areadlinkat-with-size: New module.
13851         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
13852         * lib/areadlink.h (areadlinkat): Declare it.
13853         * MODULES.html.sh (File system functions): Mention it.
13854         * modules/areadlinkat-with-size-tests: New test.
13855         * tests/test-areadlinkat-with-size.c: New file.
13856
13857         xreadlinkat: new module
13858         * modules/xreadlinkat: New module.
13859         * lib/xreadlinkat.c (xreadlinkat): New file.
13860         * lib/xreadlink.h (xreadlinkat): Declare it.
13861         * MODULES.html.sh (File system functions): Mention it.
13862
13863         areadlinkat: new module
13864         * lib/at-func.c (FUNC_FAIL): New define.
13865         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
13866         * modules/areadlinkat: New module.
13867         * lib/linkat.c (areadlinkat): Move...
13868         * lib/areadlinkat.c (areadlinkat): ...to new file.
13869         * lib/areadlink.h (areadlinkat): Declare it.
13870         * modules/linkat (Depends-on): Add areadlinkat.
13871         * MODULES.html.sh (File system functions): Mention it.
13872         * modules/areadlinkat-tests: New test.
13873         * tests/test-areadlinkat.c: New file.
13874
13875         areadlink, areadlink-with-size: add tests
13876         * modules/areadlink-tests: New test.
13877         * modules/areadlink-with-size-tests: Likewise.
13878         * tests/test-areadlink.h: New file.
13879         * tests/test-areadlink.c: Likewise.
13880         * tests/test-areadlink-with-size.c: Likewise.
13881
13882         maint: minor cleanups
13883         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
13884         _UNUSED_PARAMETER_ instead.
13885         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
13886         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
13887         * modules/linkat-tests (Files): Distribute test-link.h.
13888
13889         openat, utimens: whitespace cleanup
13890         * lib/openat.c: Prefer space throughout, rather than mix of 8
13891         spaces vs. tabs.
13892         * lib/at-func.c: Likewise.
13893         * lib/utimens.c: Likewise.
13894
13895         openat: avoid using wrong fd
13896         * lib/openat.c (openat_permissive): Reject user's fd if saving the
13897         working directory chooses same fd.
13898         * lib/at-func.c (AT_FUNC_NAME): Likewise.
13899
13900         mkdir, mkdirat: fix cygwin 1.5.x bug
13901         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
13902         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
13903         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
13904         bug.
13905         (gl_PREREQ_MKDIR): Delete unused macro.
13906         * modules/mkdir (Files): Track file rename.
13907         (configure.ac): Update macro name.
13908         * modules/openat (Depends-on): Add mkdir.
13909         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
13910
13911         mkdir, mkdirat: add tests
13912         * modules/mkdir-tests: New test.
13913         * tests/test-mkdir.h: New file.
13914         * tests/test-mkdir.c: Likewise.
13915         * tests/test-mkdirat.c: Likewise.
13916         * modules/openat-tests (Files): Add new files.
13917         (Makefile.am): Run new test.
13918
13919 2009-10-06  Eric Blake  <ebb9@byu.net>
13920
13921         doc: tweak *at function documentation
13922         * doc/posix-functions/faccessat.texi (faccessat): Mention
13923         known issue with replacement.
13924         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
13925         * doc/posix-functions/linkat.texi (linkat): Likewise.
13926         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13927         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13928         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13929         * doc/posix-functions/renameat.texi (renameat): Likewise.
13930         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13931
13932         openat: fix GNU/Hurd bug in unlinkat
13933         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
13934         broken.
13935         * doc/posix-functions/unlink.texi (unlink): Document this.
13936         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
13937
13938         fdopendir: fix GNU/Hurd bug
13939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
13940         allowing non-directory fds.
13941         * lib/fdopendir.c (rpl_fdopendir): Work around it.
13942         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13943         * modules/dirent (Makefile.am): Substitute it.
13944         * lib/dirent.in.h (fdopendir): Declare replacement.
13945         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
13946         * tests/test-fdopendir.c (main): Test something other than
13947         /dev/null, since on Hurd that behaves like a directory.
13948
13949         test-symlink: port to GNU/Hurd
13950         * tests/test-symlink.h (test_symlink): Relax expected errno.
13951
13952         doc: tweak more cygwin information
13953         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
13954         now compatible with glibc.
13955         * doc/posix-functions/getopt.texi (getopt): Likewise.
13956
13957         getopt-gnu: add another test
13958         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
13959         guarantee behavior relied on by m4.
13960         * tests/test-getopt.c (main): Use it.
13961         * modules/getopt-posix-tests (Depends-on): Add setenv.
13962         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
13963
13964         getopt: fix compilation on darwin
13965         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13966         include.
13967         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13968         Reported by Ludovic Courtès.
13969
13970 2009-10-06  Bruno Haible  <bruno@clisp.org>
13971
13972         * modules/size_max (Description): Discourage its use.
13973         Reported by Simon Josefsson.
13974
13975 2009-10-06  Jim Meyering  <meyering@redhat.com>
13976
13977         linkat: avoid compilation failure
13978         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13979
13980 2009-10-05  Eric Blake  <ebb9@byu.net>
13981
13982         linkat: support Linux 2.6.17
13983         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13984         linkat on Linux, but allow cache variable override.
13985         * lib/linkat.c (rpl_linkat): Define override.
13986         * modules/linkat (Depends-on): Add symlinkat.
13987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13988         * modules/unistd (Makefile.am): Substitute it.
13989         * lib/unistd.in.h (linkat): Declare replacement.
13990         Reported by Pádraig Brady.
13991
13992         quotearg: port test to systems with C.UTF-8 locale
13993         * tests/test-quotearg.c (struct result_strings): Add another
13994         member, differentiating between C.ASCII and C.UTF-8 handling.
13995         (compare_strings): Add parameter.
13996         (main): Adjust all callers.
13997
13998         getopt: avoid clash with FreeBSD _getopt_internal
13999         * lib/getopt.in.h (_getopt_internal): Override the name.
14000         * lib/getopt_int.h (includes): Pick up any overrides.
14001         Reported by Reuben Thomas.
14002
14003         hash: allow C89 compilation
14004         * lib/hash.c (check_tuning): Move declaration before statement.
14005         Reported by Reuben Thomas.
14006
14007 2009-10-05  Karl Berry  <karl@gnu.org>
14008
14009         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14010
14011 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14012             Bruno Haible  <bruno@clisp.org>
14013
14014         * lib/uname.c (uname): Use a table-driven algorithm to compute
14015         Windows NT versions.
14016
14017 2009-10-04  Bruno Haible  <bruno@clisp.org>
14018
14019         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14020         program_invocation_short_name.
14021         * modules/progname (configure.ac): Test for presence of
14022         program_invocation_short_name.
14023         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14024
14025 2009-10-04  Bruno Haible  <bruno@clisp.org>
14026
14027         * lib/progname.c (set_program_name): Fix comment.
14028         Reported by Jim Meyering.
14029
14030 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14031             Bruno Haible  <bruno@clisp.org>
14032
14033         * lib/uname.c: Include <string.h>.
14034         (uname): Do only one call to GetVersionEx in the common case.
14035
14036 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14037             Bruno Haible  <bruno@clisp.org>
14038
14039         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14040         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14041         (uname): Add support for Windows CE and various non-x86 CPU types.
14042
14043 2009-10-03  Bruno Haible  <bruno@clisp.org>
14044
14045         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14046         invocation to tests/configure.ac.
14047         Reported by Ian Beckwith <ianb@erislabs.net>.
14048
14049 2009-10-02  Eric Blake  <ebb9@byu.net>
14050
14051         fchdir: avoid compiler warning
14052         * lib/fchdir.c (canonicalize_file_name)
14053         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14054
14055         test-open: support mingw errno values
14056         * tests/test-open.h (test_open): Relax test.
14057         * tests/test-fopen.h (test_fopen): Likewise.
14058         * tests/test-openat-safer.c (main): Likewise.
14059
14060         open: fix opening directory on mingw
14061         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14062
14063         test-open: on GNU/Hurd, /dev/null is a directory
14064         * tests/test-fopen.h (main): Rename...
14065         (test_fopen): ...to this.  Use a guaranteed non-directory when
14066         confirming open behavior on trailing slash.
14067         * tests/test-openat-safer.c (main): Likewise.
14068         * tests/test-open.h (main): Likewise....
14069         (test_open): ...to this.
14070         * tests/test-fopen.c (main): Adjust caller.
14071         * tests/test-fopen-safer.c (main): Likewise.
14072         * tests/test-open.c (main): Likewise.
14073         * tests/test-fcntl-safer.c (main): Likewise.
14074         Reported by Samuel Thibault.
14075
14076         rename, fchdir: don't ignore chdir failure
14077         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14078         * lib/rename.c (rpl_rename) [W32]: Likewise.
14079         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14080         an empty destination directory if source cannot be renamed,
14081         although there is still possibility for failure.
14082         * doc/posix-functions/rename.texi (rename): Document the race.
14083         Reported by Jim Meyering.
14084
14085         maint: cleanup whitespace in recent commits
14086         * lib/rename.c (rpl_rename): Remove tabs.
14087         * tests/test-link.h (test_link): Likewise.
14088         * lib/fchdir.c (get_name): Likewise.
14089         Reported by Jim Meyering.
14090
14091 2009-10-02  Ben Pfaff  <blp@gnu.org>
14092
14093         relocatable-prog-wrapper: Add missing dependency on
14094         double-slash-root.
14095         * modules/relocatable-prog-wrapper: Add dependency.
14096         Reported by Ian Beckwith <ianb@erislabs.net>.
14097
14098 2009-10-02  Eric Blake  <ebb9@byu.net>
14099
14100         renameat: fix Solaris bugs
14101         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14102         needed fixing.
14103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14104         * modules/stdio (Makefile.am): Substitute it.
14105         * lib/stdio.in.h (renameat): Declare replacement.
14106         * lib/renameat.c (rpl_renameat): Implement fix.
14107
14108         renameat: new module
14109         * modules/renameat: New file.
14110         * lib/renameat.c (renameat): Likewise.
14111         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14113         * modules/stdio (Makefile.am): Substitute them.
14114         * lib/stdio.in.h (renameat): Declare it.
14115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14116         * doc/posix-functions/renameat.texi (renameat): Likewise.
14117         * modules/renameat-tests: New test.
14118         * tests/test-renameat.c: Likewise.
14119
14120         rename: fix mingw bugs
14121         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14122         directory overwrite bugs.
14123
14124         rename: fix another cygwin 1.5 bug
14125         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14126         checks.
14127         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14128         unnecessary cygwin workarounds.  Also work around bug with moving
14129         full directory onto an empty one.
14130         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14131
14132         rename-dest-slash: merge into rename module
14133         * modules/rename-dest-slash (Status): Mark obsolete.
14134         (Depends-on): Add rename.
14135         (Files): Let rename do it all.
14136         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14137         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14138         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14139         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14140         * lib/rename.c (rpl_rename): Update comments.
14141
14142         rename: fix cygwin 1.5.x bugs
14143         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14144         * lib/rename.c (rpl_rename): Work around them.
14145         * modules/rename (Depends-on): Add same-inode.
14146
14147         rename: fix Solaris 10 bug
14148         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14149         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14150         was the only bug.
14151
14152         rename: fix Solaris 9 bug
14153         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14154         on non-directory.  Avoid calling exit.
14155         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14156         strdup.
14157         * modules/rename-tests (Depends-on): Drop lstat.
14158         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14159         (gl_PREREQ_RENAME): Delete unused macro.
14160
14161         rename-dest-slash: fix NetBSD bug
14162         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14163         links.
14164         * modules/rename-dest-slash (Depends-on): Add same-inode.
14165
14166         rename-tests: new test, exposes several platform bugs
14167         * modules/rename-tests: New file.
14168         * tests/test-rename.h: Likewise.
14169         * tests/test-rename.c: Likewise.
14170         * doc/posix-functions/rename.texi (rename): Improve documentation,
14171         including bugs that will eventually be fixed in gnulib.
14172
14173 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14174
14175         * lib/uname.c: Include <stdlib.h>
14176         (uname): Assume version info is available.
14177
14178 2009-10-02  Jim Meyering  <meyering@redhat.com>
14179
14180         gnu-web-doc-update: correct --help output
14181         * build-aux/gnu-web-doc-update: Make --help output relevant.
14182
14183         gnu-web-doc-update: add standard options
14184         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14185
14186         gnu-web-doc-update: New module.
14187         Use this script to automatically update the on-line web documentation
14188         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14189         * modules/gnu-web-doc-update: New file, from coreutils.
14190         * build-aux/gnu-web-doc-update: New script.
14191
14192 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14193
14194         link: LoadLibrary is not needed.
14195         * lib/link.c: Use GetModuleHandle.
14196
14197 2009-10-01  Eric Blake  <ebb9@byu.net>
14198
14199         getopt: bump serial number
14200         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14201         change.
14202
14203         tests: tighten link, rmdir, and remove tests
14204         * tests/test-link.h (includes): No need to use <config.h> here.
14205         Clean up if directory hard link was created, otherwise test for
14206         trailing '.'.
14207         * tests/test-linkat.c (main): Simplify.
14208         * tests/test-remove.c (main): Enhance test for trailing '.'.
14209         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14210
14211 2009-10-01  Jim Meyering  <meyering@redhat.com>
14212
14213         maint.mk: requiring "make major" was annoying, for a "minor" release.
14214         What is intended is "stable", to contrast with alpha and beta,
14215         so require "make stable", not "make major".
14216         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14217         (get_tool_versions): Likewise.
14218         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14219
14220 2009-09-30  Ben Pfaff  <blp@gnu.org>
14221
14222         Fix broken build of replacement for Windows tmpfile().
14223         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14224         flags argument added along with the 'mkostemp' module.
14225
14226 2009-09-28  Bruno Haible  <bruno@clisp.org>
14227
14228         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14229         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14230         to 'remove_elt'.
14231         (gl_list_remove): Update.
14232         * lib/gl_list.c (gl_list_remove): Update.
14233         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14234         to 'remove_elt'.
14235         (gl_oset_remove): Update.
14236         * lib/gl_list.c (gl_oset_remove): Update.
14237         Reported by Eric Blake.
14238
14239 2009-09-28  Eric Blake  <ebb9@byu.net>
14240
14241         doc: mention yet more cygwin 1.7 status
14242         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14243         cygwin.
14244         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14245         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14246
14247         argp: fix test failure
14248         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14249         that are not upper-case.  Pass correct range to tolower.
14250
14251 2009-09-27  Jim Meyering  <meyering@redhat.com>
14252
14253         test-yesno: work around sparc-dash here-document infelicity
14254         Without this change, the literal \177 byte in a here document
14255         would make dash 0.5.5.1-3 access uninitialized memory.
14256         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14257         Instead, use a marker, "@", and filter through tr to create the desired
14258         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14259
14260 2009-09-27  Bruno Haible  <bruno@clisp.org>
14261
14262         Disable untested support for new flavours of ACLs on AIX.
14263         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14264         progress.
14265         * lib/set-mode-acl.c (qset_acl): Likewise.
14266
14267 2008-12-07  Bruno Haible  <bruno@clisp.org>
14268
14269         Add support for new flavours of ACLs on AIX. (Untested.)
14270         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14271         (file_has_acl): Add support for newer AIX.
14272         * lib/set-mode-acl.c (qset_acl): Likewise.
14273         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14274         Rainer Tammer <tammer@tammer.net>.
14275
14276 2009-09-26  Eric Blake  <ebb9@byu.net>
14277
14278         argp: fix compilation of getopt
14279         * lib/getopt.in.h (includes): Use different guard than glibc.
14280         Reported by Sergey Poznyakoff.
14281
14282         doc: mention more cygwin 1.7 status
14283         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14284         bug.
14285         * doc/posix-functions/execl.texi (execl): Likewise.
14286         * doc/posix-functions/execle.texi (execle): Likewise.
14287         * doc/posix-functions/execlp.texi (execlp): Likewise.
14288         * doc/posix-functions/execv.texi (execv): Likewise.
14289         * doc/posix-functions/execve.texi (execve): Likewise.
14290         * doc/posix-functions/execvp.texi (execvp): Likewise.
14291         * doc/glibc-functions/canonicalize_file_name.texi
14292         (canonicalize_file_name): Cygwin 1.7 now provides this.
14293         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14294         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14295         on AT_SYMLINK_NOFOLLOW.
14296
14297 2009-09-24  Eric Blake  <ebb9@byu.net>
14298
14299         test-linkat: make test more robust
14300         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14301
14302         getopt: fix inclusion guards for cygwin
14303         * modules/getopt-posix (Depends-on): Add include-next.
14304         (Makefile.am): Substitute more items in replacement header.
14305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14306         <getopt.h>.
14307         * lib/getopt.in.h (includes): Use split inclusion guard, and
14308         prefer <getopt.h> over include <unistd.h> when one is present.
14309         (option): Also override name of 'struct option'.
14310
14311         same-inode: revert prior change; it is not yet ready
14312         * NEWS: Undo mention of this change.
14313         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14314         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14315         * lib/cycle-check.c (cycle_check): Likewise.
14316         * lib/same.c (same_name): Likewise.
14317         * lib/at-func2.c (at_func2): Likewise.
14318
14319 2009-09-23  Eric Blake  <ebb9@byu.net>
14320
14321         linkat: new module
14322         * modules/linkat: New file.
14323         * lib/at-func2.c (at_func2): Likewise.
14324         * lib/linkat.c (linkat): Likewise.
14325         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14326         * lib/openat-priv.h (at_func2): Add declaration.
14327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14328         * modules/unistd (Makefile.am): Substitute them.
14329         * lib/unistd.in.h (linkat): Declare it.
14330         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14331         * doc/posix-functions/linkat.texi (linkat): Likewise.
14332         * doc/posix-functions/link.texi (link): Tweak wording.
14333         * tests/test-link.c (main): Move guts...
14334         * tests/test-link.h (test_link): ...into new file.
14335         * modules/linkat-tests: New test.
14336         * tests/test-linkat.c: Likewise.
14337         * modules/link-tests (Files): Ship new file.
14338         (Depends-on): Add stdbool.
14339
14340         dirname: add library-safe mdir_name
14341         * lib/dirname.h (mdir_name): New prototype.
14342         * lib/dirname.c (dir_name): Move guts...
14343         (mdir_name): ...to new function that avoids xalloc_die.
14344
14345         fchdir: another mingw fix
14346         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14347         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14348         on mingw (where it has not yet been ported), and make it optional
14349         elsewhere.
14350         (_gl_register_fd): Use it.
14351
14352         same-inode: make SAME_INODE tri-state, to port to mingw
14353         * NEWS: Mention this change.
14354         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14355         st_ino always being 0.
14356         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14357         * lib/cycle-check.c (cycle_check): Likewise.
14358         * lib/same.c (same_name): Likewise.
14359
14360         lstat: avoid mingw compilation error
14361         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14362         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14363         lstat ourselves.
14364         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14365         was adequate.
14366         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14367         the checks for lstat.
14368         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14369
14370         link: fix test failure on Solaris 9
14371         * lib/link.c (rpl_link): Don't assume link will catch bogus
14372         trailing slash on source.
14373
14374         test-symlinkat: enhance test
14375         * tests/test-readlink.c (main): Move guts...
14376         * tests/test-readlink.h (test_readlink): ...into new file.
14377         * tests/test-symlink.c (main): Move guts...
14378         * tests/test-symlink.h (test_symlink): ...into new file.
14379         * tests/test-symlinkat.c (main): Use new files for further
14380         coverage.
14381         (do_symlink, do_readlink): New helper functions.
14382         * modules/symlink-tests (Files): Ship new file.
14383         (Depends-on): Add stdbool.
14384         * modules/readlink-tests (Files): Ship new file.
14385         (Depends-on): Add stdbool.
14386         * modules/symlinkat-tests (Files): Use new files.
14387
14388 2009-09-23  Eric Blake  <ebb9@byu.net>
14389
14390         readlink: document portability issue with symlink length
14391         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14392         systems have bogus st_size on symlinks, and mention the
14393         areadlink-with-size module.
14394         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14395         * doc/posix-functions/readlink.texi (readlink): Mention the
14396         areadlink module, and ERANGE failure.
14397         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14398         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14399
14400         readlink: fix Solaris 9 bug with trailing slash
14401         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14402         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
14403         * doc/posix-functions/readlink.texi (readlink): Document this.
14404         * modules/readlink-tests: New test.
14405         * tests/test-readlink.c: Likewise.
14406
14407         readlink: fix cygwin 1.5.x bug with return type
14408         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
14409         * lib/unistd.in.h (readlink): Use ssize_t.
14410         * lib/readlink.c (readlink): Likewise.
14411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14412         * modules/unistd (Makefile.am): Substitute it.
14413         * lib/unistd.in.h (readlink): Declare replacement.
14414         * doc/posix-functions/readlink.texi (readlink): Document this.
14415
14416         symlink: use throughout gnulib
14417         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
14418         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
14419         symlink is not used.
14420         * modules/symlinkat (Depends-on): Add symlink.
14421         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14422         * modules/canonicalize-tests (Depends-on): Likewise.
14423         * modules/lstat-tests (Depends-on): Likewise.
14424         * modules/openat-tests (Depends-on): Likewise.
14425         * modules/remove-tests (Depends-on): Likewise.
14426         * modules/rmdir-tests (Depends-on): Likewise.
14427         * modules/unlink-tests (Depends-on): Likewise.
14428         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
14429         * tests/test-canonicalize.c (symlink): Likewise.
14430         * tests/test-fstatat.c (symlink): Likewise.
14431         * tests/test-lstat.c (symlink): Likewise.
14432         * tests/test-remove.c (symlink): Likewise.
14433         * tests/test-rmdir.c (symlink): Likewise.
14434         * tests/test-unlink.c (symlink): Likewise.
14435         * tests/test-unlinkat.c (symlink): Likewise.
14436
14437         symlink: new module, for Solaris 9 bug
14438         * modules/symlink: New file.
14439         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14440         * lib/symlink.c: Likewise.
14441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14442         * modules/unistd (Makefile.am): Substitute them.
14443         * lib/unistd.in.h (symlink): Declare replacement.
14444         * MODULES.html.sh (File system functions): Mention it.
14445         * doc/posix-functions/symlink.texi (symlink): Likewise.
14446         * modules/symlink-tests: New test.
14447         * tests/test-symlink.c: Likewise.
14448
14449 2009-09-23  Bruno Haible  <bruno@clisp.org>
14450
14451         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
14452         when needed.
14453         Test case: gnulib-tool --import --with-tests atexit inttypes.
14454         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
14455
14456 2009-09-23  Bruno Haible  <bruno@clisp.org>
14457
14458         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
14459         subcommand, not in a subshell.
14460
14461 2009-09-22  Eric Blake  <ebb9@byu.net>
14462
14463         unistd: sort replacement declarations
14464         * lib/unistd.in.h: Sort declarations.
14465
14466         open, openat: minor optimization
14467         * lib/open.c (open): If open succeeded, len is non-zero.
14468         * lib/openat.c (rpl_openat): Likewise.
14469
14470         link-follow: ensure correct result
14471         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
14472         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
14473         distinguish between possible failures.
14474
14475 2009-09-21  Eric Blake  <ebb9@byu.net>
14476
14477         fts: avoid compiler warning
14478         * lib/fts.c (dirent_inode_sort_may_be_useful)
14479         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
14480
14481 2009-09-19  Bruno Haible  <bruno@clisp.org>
14482
14483         * lib/progreloc.c (canonicalize_file_name): New declaration.
14484
14485 2009-09-19  Eric Blake  <ebb9@byu.net>
14486
14487         link: fix quoting
14488         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
14489
14490         openat: fix openat bugs on Solaris 9
14491         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
14492         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
14493         * modules/openat (Depends-on): Add open.
14494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
14495         * modules/fcntl-h (Makefile.am): Substitute it.
14496         * lib/fcntl.in.h (openat): Declare replacement.
14497         * doc/posix-functions/openat.texi (openat): Document this.
14498
14499         openat: move fstatat and unlinkat into correct files
14500         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
14501         compiled.
14502         * lib/openat.c (fstatat, unlinkat): Move...
14503         * lib/fstatat.c (fstatat): ...into correct files.
14504         * lib/unlinkat.c (unlinkat): Likewise.
14505
14506         openat: fix unlinkat bugs on Solaris 9
14507         * lib/unlinkat.c (unlinkat): New file.
14508         * modules/openat (Depends-on): Add unlink.
14509         (Files): Distribute it.
14510         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
14511         trailing slash behavior is broken.
14512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14513         * modules/unistd (Makefile.am): Substitute it.
14514         * lib/unistd.in.h (unlinkat): Declare replacement.
14515         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
14516
14517         openat: fix fstatat bugs on Solaris 9
14518         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
14519         stat.
14520         * doc/posix-functions/fstatat.texi (fstatat): Document this.
14521
14522         test-unlinkat: enhance test, to expose Solaris 9 bug
14523         * tests/test-unlink.c (main): Factor guts...
14524         * tests/test-unlink.h (test_rmdir_func): ...into new file.
14525         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
14526         * tests/test-rmdir.c (main): Adjust caller.
14527         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
14528         (unlinker): New helper function.
14529         (rmdirat): Enhance check.
14530         * modules/rmdir-tests (Depends-on): Add stdbool.
14531         * modules/unlink-tests (Depends-on): Likewise.
14532         (Files): Add test-unlink.h.
14533         * modules/openat-tests (Files): Likewise.
14534         (Depends-on): Add unlinkdir.
14535
14536         test-fstatat: new test, to expose Solaris 9 bugs
14537         * tests/test-stat.c (main): Factor guts...
14538         * tests/test-stat.h (test_stat_func): ...into new file.
14539         * tests/test-lstat.c (main): Factor guts...
14540         * tests/test-lstat.h (test_lstat_func): ...into new file.
14541         * tests/test-fstatat.c: New file.
14542         * modules/stat-tests (Files): Add test-stat.h.
14543         * modules/lstat-tests (Files): Add test-lstat.h.
14544         (Depends-on): Add stdbool.
14545         * modules/openat-tests (Depends-on): Add pathmax.
14546         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
14547         (Makefile.am): Run new test.
14548
14549         remove: new module, for mingw and Solaris 9 bugs
14550         * modules/remove: New file.
14551         * lib/remove.c: Likewise.
14552         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
14553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14554         * modules/stdio (Makefile.am): Use them.
14555         * lib/stdio.in.h (remove): Declare replacement.
14556         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14557         * doc/posix-functions/remove.texi (remove): Likewise.
14558         * modules/remove-tests: New test.
14559         * tests/test-remove.c: Likewise.
14560
14561         unlink: new module, for Solaris 9 bug
14562         * modules/unlink: New file.
14563         * lib/unlink.c: Likewise.
14564         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14566         * modules/unistd (Makefile.am): Use them.
14567         * lib/unistd.in.h (stat): Declare replacement.
14568         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14569         * doc/posix-functions/unlink.texi (unlink): Likewise.
14570         * modules/unlink-tests: New test.
14571         * tests/test-unlink.c: Likewise.
14572
14573         lstat: fix Solaris 9 bug
14574         * lib/lstat.c (lstat): Also check for trailing slash on
14575         non-symlink, non-directories.  Use stat module to simplify logic.
14576         * doc/posix-functions/lstat.texi (lstat): Document it.
14577         * modules/lstat-tests (Depends-on): Add errno, same-inode.
14578         (configure.ac): Check for symlink.
14579         * tests/test-lstat.c (main): Add more tests.
14580
14581         stat: add as dependency to other modules
14582         * modules/chown (Depends-on): Add stat.
14583         * modules/euidaccess (Depends-on): Likewise.
14584         * modules/fchdir (Depends-on): Likewise.
14585         * modules/isdir (Depends-on): Likewise.
14586         * modules/link (Depends-on): Likewise.
14587         * modules/lstat (Depends-on): Likewise.
14588         * modules/mkdir-p (Depends-on): Likewise.
14589         * modules/modechange (Depends-on): Likewise.
14590         * modules/open (Depends-on): Likewise.
14591         * modules/readlink (Depends-on): Likewise.
14592         * modules/same (Depends-on): Likewise.
14593
14594         stat: fix Solaris 9 bug
14595         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
14596         slash.
14597         * lib/stat.c (rpl_stat): Work around it.
14598         * doc/posix-functions/stat.texi (stat): Update documentation.
14599
14600         stat: new module, for mingw bug
14601         * modules/stat: New file.
14602         * lib/stat.c: Likewise.
14603         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14604         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14605         * modules/sys_stat (Makefile.am): Use them.
14606         * lib/sys_stat.in.h (stat): Declare replacement.
14607         * lib/openat.c (fstatat): Deal with lstat and stat being function
14608         macros.
14609         * modules/openat (Depends-on): Add inline.
14610         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14611         * doc/posix-functions/stat.texi (stat): Likewise.
14612         * modules/stat-tests: New test.
14613         * tests/test-stat.c: Likewise.
14614
14615 2009-09-19  Jim Meyering  <meyering@redhat.com>
14616
14617         syntax-check: detect unnecessary inclusion of canonicalize.h
14618         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
14619
14620 2009-09-19  Eric Blake  <ebb9@byu.net>
14621
14622         canonicalize-lgpl: adjust clients to use correct header
14623         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14624         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
14625         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
14626         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
14627         * lib/progreloc.c (includes): Likewise.
14628
14629 2009-09-19  Jim Meyering  <meyering@redhat.com>
14630
14631         test-posixtm.c: correct a comment
14632         * tests/test-posixtm.c: Correct first-line comment.
14633         Spotted by Eric Blake.
14634
14635 2009-09-16  Jim Meyering  <meyering@redhat.com>
14636
14637         posixtm-tests: make T const-correct; add a test case
14638         * tests/test-posixtm.c (T): Declare const.
14639         Add a test for -(2^31+1).
14640         Remove useless can-succeed-only-in-2002 test.
14641
14642         posixtm-tests: adjust the sole failing test
14643         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
14644         expected output matches what mktime now produces.  Cross-checked via
14645         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
14646
14647         posixtm: move #ifdef'd tests into a new module
14648         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
14649         * tests/test-posixtm.c: ... this new file.
14650         * modules/posixtm-tests: New module.
14651
14652 2009-09-19  Eric Blake  <ebb9@byu.net>
14653
14654         openat: simplify use of at-func.c
14655         * lib/at-func.c (includes): Include prerequisites here, to
14656         simplify requirements on client files.
14657         * lib/openat-priv.h: Add double-inclusion guard.
14658         * lib/faccessat.c (includes): Simplify.
14659         * lib/fchmodat.c (includes): Likewise.
14660         * lib/fchownat.c (includes): Likewise.
14661         * lib/mkdirat.c (includes): Likewise.
14662         * lib/mkfifoat.c (includes): Likewise.
14663         * lib/symlinkat.c (includes): Likewise.
14664
14665         openat: allow return of fd 0
14666         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
14667         * modules/save-cwd (Depends-on): Replace fcntl-safer with
14668         unistd-safer.
14669         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
14670         <fcntl.h>; this module does not leak fds.
14671         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
14672         must be allowed to return 0, leaving openat_safer to add the
14673         safety.
14674         (openat_permissive): Avoid writing to just-opened fd 2 if
14675         restoring the current directory fails.
14676         * lib/openat-die.c (openat_restore_fail): Add comment.
14677         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
14678         (save_cwd): Guarantee safe fd, but without use of open_safer.
14679         * tests/test-openat.c: New test.
14680         * modules/openat-tests (Files, Makefile.am): Distribute and build
14681         new file.
14682
14683         relocatable-prog-wrapper: fix build
14684         * modules/relocatable-prog-wrapper (Files): Update name of
14685         canonicalize m4 file, broken on 2009-09-17.
14686         Reported by emad hajjar <aleppos@hotmail.com>.
14687
14688 2009-09-19  Bruno Haible  <bruno@clisp.org>
14689
14690         * lib/safe-alloc.h: Use the standard header with GPL copyright.
14691         * lib/safe-alloc.c: Likewise.
14692         Reported by Ian Beckwith <ianb@erislabs.net>.
14693
14694 2009-09-18  Bruno Haible  <bruno@clisp.org>
14695
14696         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
14697         Reported by <erobles@sensacd.com.mx>.
14698
14699 2009-09-17  Eric Blake  <ebb9@byu.net>
14700
14701         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
14702         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
14703         slashes when checking if last component is missing.
14704         * tests/test-canonicalize.c (main): Test this.
14705
14706         canonicalize, canonicalize-lgpl: honor // if distinct from /
14707         * modules/canonicalize (Files): Add double-slash-root.m4.
14708         * modules/canonicalize-lgpl (Files): Likewise.
14709         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14710         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
14711         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
14712         fallback definition.
14713         (canonicalize_filename_mode): Use it to protect //.
14714         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
14715         (__realpath): Likewise.
14716         * tests/test-canonicalize.c (main): Test this.
14717         * tests/test-canonicalize-lgpl.c (main): Likewise.
14718         * modules/canonicalize-tests (Depends-on): Add same-inode.
14719         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14720
14721         canonicalize-lgpl: fix glibc bug with trailing slash
14722         * m4/canonicalize-lgpl.m4: Move contents...
14723         * m4/canonicalize.m4: ...here.
14724         (gl_CANONICALIZE_LGPL): Factor realpath check...
14725         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
14726         glibc 2.3.5 bug, fixed 2005-04-27.
14727         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
14728         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
14729         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
14730         * modules/canonicalize-lgpl (Files): Manage file rename.
14731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14732         * modules/stdlib (Makefile.am): Substitute witness.
14733         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
14734         is needed.
14735         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
14736         replacement is required.
14737         * lib/canonicalize.c (canonicalize_file_name): Likewise.
14738         * doc/glibc-functions/canonicalize_file_name.texi
14739         (canonicalize_file_name): Document this.
14740         * doc/posix-functions/realpath.texi (realpath): Likewise.
14741
14742         canonicalize-lgpl: reject non-directory with trailing slash
14743         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
14744         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
14745         catches failures in glibc 2.3.5.
14746         * tests/test-canonicalize.c (main): Likewise.
14747
14748         canonicalize-lgpl: use native realpath if it works
14749         * lib/canonicalize-lgpl.c (realpath): Guard with
14750         FUNC_REALPATH_WORKS.
14751         * lib/stdlib.in.h (realpath): Make declaration optional based on
14752         HAVE_REALPATH.
14753         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
14754         native realpath works.
14755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14756         * modules/stdlib (Makefile.am): Substitute witness.
14757
14758         canonicalize, canonicalize-lgpl: use <stdlib.h>
14759         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
14760         (Include): Mention <stdlib.h>.
14761         (configure.ac): Mention functions we provide.
14762         * modules/canonicalize (configure.ac): Likewise.
14763         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
14764         realpath if canonicalize_file_name is missing.
14765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
14766         * modules/stdlib (Makefile.am): Substitute witnesses.
14767         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
14768         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
14769         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
14770         * NEWS: Document this.
14771         * doc/glibc-functions/canonicalize_file_name.texi
14772         (canonicalize_file_name): Likewise.
14773         * doc/posix-functions/realpath.texi (realpath): Likewise.
14774         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
14775
14776         test-canonicalize: consolidate into single C program
14777         * tests/test-canonicalize.sh: Delete; move setup into...
14778         * tests/test-canonicalize.c (main): ...the program, making it
14779         easier to run in debugger.  Add some tests.
14780         * modules/canonicalize-tests (Files): Remove unused file.
14781         (Depends-on): Add progname.
14782         (configure.ac, Makefile.am): Simplify.
14783
14784         test-canonicalize-lgpl: consolidate into single C program
14785         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
14786         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
14787         easier to run in debugger.  Add some tests.
14788         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
14789         (configure.ac, Makefile.am): Simplify.
14790
14791         canonicalize: avoid resolvepath
14792         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
14793         unnecessary checks.
14794         * lib/canonicalize.c (includes): Simplify.
14795         (canonicalize_file_name): Drop resolvepath implementation.
14796         * modules/canonicalize (Depends-on): Drop filenamecat.
14797
14798         canonicalize: don't lose errno
14799         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
14800         over calls to free.
14801
14802         canonicalize: simplify errno handling
14803         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
14804         assignment.
14805
14806         canonicalize, canonicalize-lgpl: update module dependencies
14807         * modules/canonicalize (Depends-on): Add extensions, lstat,
14808         pathmax, stdlib.
14809         (Files): Drop pathmax.h.
14810         (configure.ac): Adjust macro name.
14811         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
14812         lstat, stdlib, sys_stat.
14813         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
14814         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
14815         extensions.
14816         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
14817         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
14818         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
14819         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
14820         declaration, if available.
14821         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
14822         we can rely on the readlink module.
14823         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
14824         (includes): Use <unistd.h> unconditionally.
14825
14826 2009-09-17  Eric Blake  <ebb9@byu.net>
14827
14828         maint: make Include sections of modules consistent
14829         * modules/alloca: Use only header name; no need to list #include.
14830         * modules/alloca-opt: Likewise.
14831         * modules/arpa_inet: Likewise.
14832         * modules/canon-host: Likewise.
14833         * modules/configmake: Likewise.
14834         * modules/dirent: Likewise.
14835         * modules/eealloc: Likewise.
14836         * modules/environ: Likewise.
14837         * modules/fchdir: Likewise.
14838         * modules/fcntl: Likewise.
14839         * modules/fcntl-h: Likewise.
14840         * modules/gethrxtime: Likewise.
14841         * modules/gettime: Likewise.
14842         * modules/ignore-value: Likewise.
14843         * modules/inet_ntop: Likewise.
14844         * modules/inet_pton: Likewise.
14845         * modules/inttypes: Likewise.
14846         * modules/isnand-nolibm: Likewise.
14847         * modules/isnanf-nolibm: Likewise.
14848         * modules/mbchar: Likewise.
14849         * modules/mbfile: Likewise.
14850         * modules/mbiter: Likewise.
14851         * modules/mbuiter: Likewise.
14852         * modules/netdb: Likewise.
14853         * modules/netinet_in: Likewise.
14854         * modules/nproc: Likewise.
14855         * modules/pagealign_alloc: Likewise.
14856         * modules/poll: Likewise.
14857         * modules/printf-frexp: Likewise.
14858         * modules/pthread: Likewise.
14859         * modules/putenv: Likewise.
14860         * modules/random_r: Likewise.
14861         * modules/relocatable-prog: Likewise.
14862         * modules/search: Likewise.
14863         * modules/select: Likewise.
14864         * modules/selinux-h: Likewise.
14865         * modules/settime: Likewise.
14866         * modules/signal: Likewise.
14867         * modules/size_max: Likewise.
14868         * modules/socklen: Likewise.
14869         * modules/ssize_t: Likewise.
14870         * modules/stdarg: Likewise.
14871         * modules/stdbool: Likewise.
14872         * modules/stddef: Likewise.
14873         * modules/stdint: Likewise.
14874         * modules/stdio: Likewise.
14875         * modules/stdlib: Likewise.
14876         * modules/string: Likewise.
14877         * modules/strings: Likewise.
14878         * modules/sys_file: Likewise.
14879         * modules/sys_ioctl: Likewise.
14880         * modules/sys_select: Likewise.
14881         * modules/sys_socket: Likewise.
14882         * modules/sys_stat: Likewise.
14883         * modules/sys_time: Likewise.
14884         * modules/sys_times: Likewise.
14885         * modules/sys_utsname: Likewise.
14886         * modules/sys_wait: Likewise.
14887         * modules/sysexits: Likewise.
14888         * modules/time: Likewise.
14889         * modules/times: Likewise.
14890         * modules/tmpfile: Likewise.
14891         * modules/trim: Likewise.
14892         * modules/unistd: Likewise.
14893         * modules/wchar: Likewise.
14894         * modules/wctype: Likewise.
14895
14896 2009-09-17  Bruno Haible  <bruno@clisp.org>
14897
14898         Make getdate.y compile on QNX and NetBSD 5 / i386.
14899         * m4/getdate.m4 (gl_GETDATE): Conditionally define
14900         TIME_T_FITS_IN_LONG_INT.
14901         * lib/getdate.y (long_time_t): New type.
14902         (relative_time): Change type of 'seconds' field to long_time_t.
14903         (get_date): Update types of local variables. Check against overflow
14904         during conversion from long_time_t to time_t.
14905         Reported by Matt Kraai <kraai@ftbfs.org>
14906         and Hasso Tepper <hasso@netbsd.org>.
14907
14908 2009-09-17  Bruno Haible  <bruno@clisp.org>
14909
14910         * modules/COPYING: Update copyright years.
14911         * modules/README: Likeiwse.
14912         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
14913         Reported by Ian Beckwith <ianb@erislabs.net>.
14914
14915 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14916
14917         * users.txt: Update references for gnuit package.
14918
14919 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14920
14921         * m4/getdelim.m4: Fix typo in copyright line.
14922
14923 2009-09-17  Bruno Haible  <bruno@clisp.org>
14924
14925         * lib/atoll.c: Use the standard header with GPL copyright.
14926         * lib/argz.in.h: Likewise.
14927         * lib/glob.c: Likewise.
14928         * lib/glob-libc.h: Likewise.
14929         * lib/random_r.c: Likewise.
14930         * lib/siglist.h: Likewise.
14931         * lib/strsignal.c: Likewise.
14932         Reported by Ian Beckwith <ianb@erislabs.net>.
14933
14934 2009-09-17  Eric Blake  <ebb9@byu.net>
14935
14936         rmdir: ensure correct dependency order
14937         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
14938
14939 2009-09-17  Bruno Haible  <bruno@clisp.org>
14940
14941         Disable assertion that fails on NetBSD 5 / i386.
14942         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
14943         Reported by Sam Steingold <sds@gnu.org>
14944         and Hasso Tepper <hasso@netbsd.org>.
14945
14946 2009-09-16  Eric Blake  <ebb9@byu.net>
14947
14948         unlinkdir: port to mingw
14949         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
14950         on which no one can unlink a directory.
14951
14952         stdlib: sort witness names
14953         * modules/stdlib (Makefile.am): Sort replacements.
14954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14955         * lib/stdlib.in.h: Likewise.
14956
14957         parse-duration-tests: avoid link failure
14958         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
14959         LIBINTL.
14960         Reported by Tom G. Christensen.
14961
14962         openat-tests: ensure unlinkat behaves like rmdir
14963         * tests/test-rmdir.c (main): Factor guts...
14964         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14965         * modules/rmdir-tests (Files): Ship new file.
14966         * modules/openat-tests: New test.
14967         * tests/test-unlinkat.c: Likewise.
14968
14969         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14970         * modules/rmdir-errno (Status, Notice): Now obsolete.
14971
14972         rmdir: work around cygwin 1.5.x and mingw bugs
14973         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14974         * lib/rmdir.c (rmdir): Work around it.
14975         * modules/rmdir (Status, Notice): No longer obsolete.
14976         (Files): Add dos.m4.
14977         (Depends-on): Add unistd.
14978         (configure.ac): Set witnesses.
14979         (License): Relax to LGPLv2+.
14980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14981         * modules/unistd (Makefile.am): Substitute witnesses.
14982         * lib/unistd.in.h (rmdir): Declare replacement.
14983         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14984         * modules/rmdir-tests: New tests.
14985         * tests/test-rmdir.c: Likewise.
14986
14987 2009-09-15  Eric Blake  <ebb9@byu.net>
14988
14989         fchdir: improve use of replacement functions
14990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14991         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14992         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14993         REPLACE_CLOSEDIR.
14994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14995         * modules/sys_stat (Makefile.am): Substitute correct witness.
14996         * modules/dirent (Makefile.am): Likewise.
14997         * modules/unistd (Makefile.am): Likewise.
14998         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14999         * lib/unistd.in.h (dup): Likewise.
15000         * lib/sys_stat.in.h (fstat): Likewise.
15001
15002         maint: ignore gnulib-tool temp files
15003         * .gitignore: Ignore files created during gnulib-tool --test.
15004
15005 2009-09-13  Jim Meyering  <meyering@redhat.com>
15006
15007         posixtm: don't reject a time that specify "60" as the number of seconds
15008         * lib/posixtm.c (posixtime): The code to reject invalid dates
15009         would also reject a time specified with the .60 suffix.
15010         But POSIX allows that, in order to accommodate leap seconds.
15011         So don't reject it.
15012         (main): Adjust tests accordingly.
15013         * modules/posixtm (Depends-on): Add stpcpy.
15014
15015 2009-09-11  Jim Meyering  <meyering@redhat.com>
15016
15017         announce-gen: include [$release_type] in emitted Subject:
15018         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15019         e.g., [stable] in the emitted Subject: line.
15020
15021 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15022
15023         Remove obsolete macros from several modules.
15024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15025         obsolete Autoconf macros with their modern counterparts.
15026         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15027         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15029         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15030         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15031         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15033         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15034         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15035         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15036         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15038         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15039         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15040         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15041         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15042         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15043         * m4/time_r.m4 (gl_TIME_R): Likewise.
15044         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15045         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15046         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15047
15048         Fix copyright header in build-aux scripts.
15049         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15050         recommendation.
15051         * build-aux/ncftpput-ftp: Likewise.
15052         * build-aux/update-copyright: Likewise.
15053
15054 2009-09-09  Eric Blake  <ebb9@byu.net>
15055
15056         test-link: allow Linux choice of errno
15057         * tests/test-link.c (main): Relax test for alternate error.
15058
15059         strndup: fix improper m4 caching
15060         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15061         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15062         (gl_PREREQ_STRNDUP): Delete.
15063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15064         * modules/string (Makefile.am): Substitute it.
15065         * lib/string.in.h (strndup): Modernize prototype.
15066
15067         getcwd: port to mingw
15068         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15069         different from the POSIX assumptions made throughout the getcwd
15070         module; fortunately, the mingw getcwd does not need replacement.
15071         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15072         * modules/getcwd-tests: New test.
15073         * tests/test-getcwd.c: Likewise.
15074
15075         link: fix platform bugs
15076         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15077         * lib/link.c (link): Work around them.  Fix related mingw bug.
15078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15079         * modules/unistd (Makefile.am): Substitute it.
15080         * lib/unistd.in.h (link): Declare replacement.
15081         * doc/posix-functions/link.texi (link): Document this.
15082         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15083
15084         test-link: consolidate into single C program, test more cases
15085         * tests/test-link.sh: Delete.
15086         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15087         at least Cygwin and Solaris.
15088         * modules/link-tests (Files): Remove unused file.
15089         (Depends-on): Add errno, sys_stat.
15090         (Makefile.am): Simplify.
15091
15092 2009-09-08  Bruno Haible  <bruno@clisp.org>
15093
15094         Work around towlower, towupper bug on mingw.
15095         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15096         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15097         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15098         * doc/posix-functions/towupper.texi: Likewise.
15099         Reported by Eric Blake.
15100
15101 2009-09-08  Jim Meyering  <meyering@redhat.com>
15102
15103         build: don't try to run autoheader if we don't use it
15104         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15105         is not used in configure.ac.
15106
15107 2009-09-08  Eric Blake  <ebb9@byu.net>
15108
15109         euidaccess: fix compilation error
15110         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15111
15112         rawmemchr: relax license
15113         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15114         okay.
15115         Reported by Jim Meyering.
15116
15117         mkfifoat: new module
15118         * modules/mkfifoat: New file.
15119         * lib/mkfifoat.c: Likewise.
15120         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15122         * modules/sys_stat (Makefile.am): Use them.
15123         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15124         * MODULES.html.sh (File system functions): Mention module.
15125         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15126         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15127         * modules/mkfifoat-tests: New test.
15128         * tests/test-mkfifoat.c: Likewise.
15129
15130         strchrnul: relax license
15131         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15132         okay.
15133         Reported by Jim Meyering.
15134
15135 2009-09-08  Eric Blake  <ebb9@byu.net>
15136
15137         fstatat: fix compilation on Solaris
15138         * lib/fstatat.c (includes): Add fcntl.h.
15139         Reported by Pádraig Brady.
15140
15141 2009-09-07  Eric Blake  <ebb9@byu.net>
15142
15143         rename: modernize replacement
15144         * modules/rename (Depends-on): Add stdio.
15145         (configure.ac): Declare witness.
15146         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15147         stdio take care of replacement.
15148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15149         * modules/stdio (Makefile.am): Substitute them.
15150         * lib/stdio.in.h (rename): Declare replacement.
15151         * lib/rename.c (includes): Allow cross-compilation to non-windows
15152         machines.
15153         * doc/posix-functions/rename.texi (rename): Improve
15154         documentation.
15155
15156         stdio: sort witness names
15157         * modules/stdio (Makefile.am): Sort replacements.
15158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15159         * lib/stdio.in.h: Likewise.
15160
15161         getcwd: minor cleanups
15162         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15163         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15164
15165         openat: provide more convenience names
15166         * modules/faccessat (configure.ac): Add C witness.
15167         * lib/unistd.in.h (readlinkat): Fix typo.
15168         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15169         convenience wrappers.
15170         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15171         wrappers in syntax checks.
15172
15173 2009-09-06  Eric Blake  <ebb9@byu.net>
15174
15175         doc: fix comments in recent patches
15176         * lib/faccessat.c: Mention correct function.
15177         * lib/fchmodat.c: Likewise.
15178         * lib/fchownat.c: Likewise.
15179         * lib/symlinkat.c: Likewise.
15180         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15181         constants.
15182
15183         faccessat, symlinkat: continue cleanup of previous patch
15184         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15185         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15186         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15188         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15189         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15190         set.
15191
15192 2009-09-06  Bruno Haible  <bruno@clisp.org>
15193
15194         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15195         (fstatat): Declare if GNULIB_FSTATAT is set.
15196         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15197         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15198         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15199         * modules/fcntl-h (Files): Remove m4/openat.m4.
15200         * modules/sys_stat (Files): Remove m4/openat.m4.
15201         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15202         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15203         * modules/unistd (Files): Remove m4/openat.m4.
15204         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15205         GNULIB_OPENAT.
15206         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15207         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15209         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15210         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15211         gl_OPENAT_DEFAULTS.
15212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15213         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15214         Don't require gl_OPENAT_DEFAULTS.
15215         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15216         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15217         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15218         (gl_OPENAT_DEFAULTS): Remove macro.
15219
15220 2009-09-06  Bruno Haible  <bruno@clisp.org>
15221
15222         * modules/openat (configure.ac): Remove unneeded witness.
15223
15224 2009-09-06  Bruno Haible  <bruno@clisp.org>
15225
15226         Set errno to ENOSYS when a function is entirely unsupported.
15227         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15228         EOPNOTSUPP.
15229         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15230         * modules/chown (Depends-on): Remove errno.
15231
15232 2009-09-06  Bruno Haible  <bruno@clisp.org>
15233
15234         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15235
15236 2009-09-06  Bruno Haible  <bruno@clisp.org>
15237
15238         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15239
15240 2009-09-06  Ben Pfaff  <blp@gnu.org>
15241             Bruno Haible  <bruno@clisp.org>
15242
15243         Work around a glibc bug in strtok_r.
15244         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15245         Undefine if UNDEFINE_STRTOK_R is set.
15246         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15248         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15249         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15250         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15251         UNDEFINE_STRTOK_R.
15252         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15253
15254 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15255
15256         exclude: minor fix
15257         * lib/exclude.c: Include wctype.h
15258
15259 2009-09-06  Akim Demaille  <demaille@gostai.com>
15260
15261         bootstrap: improve error message
15262         * build-aux/bootstrap (find_tool): Upon failure, report the list
15263         of candidates.
15264         Honor the initial value of the envvar.
15265
15266 2009-09-05  Eric Blake  <ebb9@byu.net>
15267
15268         symlinkat: new module
15269         * modules/symlinkat: New file.
15270         * lib/symlinkat.c: Likewise.
15271         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15273         * modules/unistd (Makefile.am): Use them.
15274         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15275         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15276         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15277         * MODULES.html.sh (File system functions): Mention module.
15278         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15279         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15280         * modules/symlinkat-tests: New test.
15281         * tests/test-symlinkat.c: Likewise.
15282
15283         test-openat-safer: add more checks
15284         * tests/test-openat-safer.c (main): Check more code paths.
15285
15286 2009-09-05  Jim Meyering  <meyering@redhat.com>
15287
15288         syntax-check: detect unnecessary inclusion of openat.h
15289         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15290
15291 2009-09-05  Bruno Haible  <bruno@clisp.org>
15292
15293         Support towlower, towupper.
15294         * doc/posix-functions/towlower.texi: Mention module wctype.
15295         * doc/posix-functions/towupper.texi: Likewise.
15296         * lib/wctype.in.h (towlower, towupper): New functions.
15297         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15298         (ASSERT): New macro.
15299         (e): New variable.
15300         (main): Test also towlower, towupper. Test WEOF argument.
15301         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15302
15303 2009-09-05  Bruno Haible  <bruno@clisp.org>
15304
15305         Fix conversion behaviour when the input is invalid.
15306         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15307         mark occurring in first pass of indirect conversion.
15308         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15309         input.
15310         Found by clang's static analyzer.
15311
15312 2009-09-05  Bruno Haible  <bruno@clisp.org>
15313
15314         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15315         where direct conversion is possible.
15316
15317 2009-09-04  Eric Blake  <ebb9@byu.net>
15318
15319         openat: fail with ENOENT on empty name
15320         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15321         buffer.
15322
15323         link-follow: fix logic bug in prior patch
15324         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15325         reversed sense of yes and no in prior patch.  Avoid confusing
15326         compilation failure with desired semantics.
15327
15328         link-follow: accomodate mingw and cross-compilation
15329         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15330         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15331         cross-compilation results to -1, to make linkat easier to
15332         implement when cross-compiling.  Trivially support mingw.
15333         * modules/link-follow (configure.ac): Call new name.
15334         * NEWS: Mention this.
15335
15336 2009-09-03  Eric Blake  <ebb9@byu.net>
15337
15338         faccessat: compile replacement
15339         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15340         needed.
15341
15342         fts: fix compilation error
15343         * lib/fts.c (includes): Re-add "openat.h", for
15344         openat_needs_fchdir.
15345
15346         faccessat: new module
15347         * modules/faccessat: New file.
15348         * lib/faccessat.c: Likewise.
15349         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15351         * modules/unistd (Makefile.am): Use it.
15352         * lib/unistd.in.h (faccessat): Declare it.
15353         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15354         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15355         * MODULES.html.sh (File system functions): Mention it.
15356         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15357         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15358
15359         euidaccess: prefer POSIX over non-standard implementation
15360         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15361         * lib/euidaccess.c (euidaccess): Use it if available.
15362
15363         openat: make template easier to use
15364         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15365         AT_FUNC_F2 to be undefined.
15366         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15367         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15368         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15369         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15370         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15371         Likewise.
15372         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15373         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15374         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15375         Likewise.
15376
15377         openat: declare in POSIX headers
15378         * NEWS: Mention this.
15379         * modules/openat (configure.ac): Declare witnesses.
15380         (Depends-on): Add fcntl-h, sys_stat, unistd.
15381         (Include): Mention correct headers.
15382         * modules/fcntl-h (Depends-on): Add link-warning.
15383         (Files): Add openat.m4.
15384         (Makefile.am): Substitute witnesses.
15385         * modules/sys_stat (Files, Makefile.am): Likewise.
15386         * modules/unistd (Files, Makefile.am): Likewise.
15387         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15388         (gl_OPENAT_DEFAULTS): New macro.
15389         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15392         (SYS_STAT_H): Remove unused variable.
15393         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15394         * lib/fcntl--.h (includes): Remove unneeded header.
15395         * lib/openat-safer.c (includes): Likewise.
15396         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15397         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15398         appropriate headers.
15399         (__OPENAT_PREFIX): Delete.
15400         * lib/fcntl.in.h (openat): Provide declaration.
15401         (AT_FDCWD): Fix Solaris bug.
15402         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
15403         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
15404         * lib/fchmodat.c (includes):  Adjust to find declaration.
15405         * lib/fchownat.c (includes): Likewise.
15406         * lib/mkdirat.c (includes): Likewise.
15407         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
15408         still visible.
15409
15410 2009-09-02  Eric Blake  <ebb9@byu.net>
15411
15412         errno: use consistently
15413         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
15414         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
15415         * lib/canonicalize.c (ELOOP): Likewise.
15416         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
15417         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
15418         * lib/lchown.c (EOPNOTSUPP): Likewise.
15419         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
15420         * lib/savewd.c (ESTALE): Likewise.
15421         * lib/settime.c (ENOSYS): Likewise.
15422         * lib/utimens.c (ENOSYS): Likewise.
15423         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
15424         * lib/chdir-safer.c (ELOOP): Likewise.
15425         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
15426         * modules/c-stack (Depends-on): Add errno.
15427         * modules/canonicalize (Depends-on): Likewise.
15428         * modules/chdir-safer (Depends-on): Likewise.
15429         * modules/fdopendir (Depends-on): Likewise.
15430         * modules/inet_ntop (Depends-on): Likewise.
15431         * modules/inet_pton (Depends-on): Likewise.
15432         * modules/lchown (Depends-on): Likewise.
15433         * modules/openat (Depends-on): Likewise.
15434         * modules/savewd (Depends-on): Likewise.
15435         * modules/settime (Depends-on): Likewise.
15436         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
15437
15438         fts: avoid leaking fds
15439         * modules/fts (Depends-on): Add cloexec.
15440         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
15441         flag.
15442
15443         fts: make directory fds more robust
15444         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
15445         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
15446
15447         backupfile, chdir-long, fts, savedir: make safer
15448         * lib/backupfile.c (includes): Use "dirent--.h", since
15449         numbered_backup can write to stderr during readdir.
15450         * lib/savedir.c (includes): Likewise.
15451         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
15452         emulation can write to stderr on failure.
15453         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
15454         * lib/getcwd.c: Document why opendir_safer is unused.
15455         * lib/glob.c: Likewise.
15456         * lib/scandir.c: Likewise.
15457         * lib/openat-proc.c: Likewise, for open_safer.
15458         * modules/backupfile (Depends-on): Add dirent-safer.
15459         * modules/savedir (Depends-on): Likewise.
15460         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
15461         * modules/chdir-long (Depends-on): Add openat-safer.
15462
15463         openat-safer: new module
15464         * modules/openat-safer: New file.
15465         * lib/openat-safer.c: Likewise.
15466         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
15467         * lib/fcntl-safer.h (openat_safer): Declare.
15468         * lib/fcntl--.h (openat): Override.
15469         * MODULES.html.sh (File descriptor based I/O): Mention it.
15470         * lib/openat.h: Add double-inclusion guards.
15471         * lib/openat.c (includes): Only include "fcntl-safer.h", not
15472         "fcntl--.h", so we can implement openat.
15473         * modules/openat-safer-tests: New test.
15474         * tests/test-openat-safer.c: New file.
15475
15476         dirent-safer: new module
15477         * modules/dirent-safer: New file.
15478         * lib/dirent--.h: Likewise.
15479         * lib/dirent-safer.h: Likewise.
15480         * lib/opendir-safer.c: Likewise.
15481         * m4/dirent-safer.m4: Likewise.
15482         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
15483         * modules/dirent-safer-tests: New test.
15484         * tests/test-dirent-safer.c: New file.
15485         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
15486
15487         fdopendir: optimize on mingw
15488         * lib/unistd.in.h (_gl_directory_name): New prototype.
15489         * lib/fchdir.c (_gl_directory_name): Implement it.
15490         (fchdir): Use it to simplify implementation.
15491         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
15492         fchdir, when available, to avoid calling [f]chdir().
15493
15494         fdopendir: split into its own module
15495         * lib/openat.c (fdopendir): Move...
15496         * lib/fdopendir.c: ...into new file.
15497         * modules/fdopendir: New module.
15498         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
15499         * modules/openat (Depends-on): Add fdopendir.
15500         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
15501         fdopendir here.
15502         * modules/savedir (Depends-on): Only need fdopendir, not full
15503         openat.
15504         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
15505         * lib/openat.h (fdopendir): Drop prototype.
15506         * lib/dirent.in.h (fdopendir): Provide prototype.
15507         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
15508         * modules/dirent (Makefile.am): Substitute them.
15509         * MODULES.html.sh (File system functions): Mention it.
15510         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
15511         * modules/fdopendir-tests: New file.
15512         * tests/test-fdopendir.c: Likewise.
15513
15514         fchdir: use more consistent macro convention
15515         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
15516         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
15517         REPLACE_FCHDIR, rather than relying on config.h macros.
15518         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
15519         inside a single make-time REPLACE_FCHDIR block, rather than using
15520         the config.h FCHDIR_REPLACEMENT.
15521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
15522         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
15523         Manage fstat replacement.
15524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
15525         REPLACE_FCHDIR.
15526         * modules/sys_stat (Files): Add m4/unistd_h.m4.
15527         (Makefile.am): Substitute REPLACE_FCHDIR.
15528         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
15529         FCHDIR_REPLACEMENT.
15530         * lib/dup-safer.c (dup_safer): Likewise.
15531         * lib/dup2.c (rpl_dup2): Likewise.
15532         * lib/dup3.c (rpl_dup3): Likewise.
15533         * lib/open.c (rpl_open): Likewise.
15534
15535         fchdir: simplify error handling, and support dup3
15536         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
15537         stdbool, malloc-posix, realloc-posix.
15538         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
15539         (ensure_dirs_slot): Return false on allocation failure.
15540         (rpl_dup2): Delete.
15541         (_gl_register_dup): New function.
15542         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
15543         (_gl_register_fd): Close fd on allocation failure.
15544         * lib/fcntl.in.h (_gl_register_fd): Update signature.
15545         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
15546         prototype.
15547         (rpl_dup2_fchdir): Delete prototype.
15548         * lib/open.c (open): Update caller.
15549         * lib/dup2.c (dup2): Track fchdir metadata.
15550         * lib/dup3.c (dup3): Likewise.
15551         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
15552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
15553
15554 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15555
15556         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
15557         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
15558         don't pass arguments to AC_OUTPUT.
15559
15560 2009-09-02  Bruno Haible  <bruno@clisp.org>
15561
15562         * modules/mkdtemp (License): Relicense under LGPLv2+.
15563         Reported by Paolo Bonzini.
15564
15565 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15566
15567         Replace uses of obsolete autoconf macros in Jim's modules.
15568         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
15569         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
15570         can evoke a warning from autoconf when run with -Wobsolete
15571         enabled.  They were declared obsolete for good reasons (see
15572         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
15573         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
15574         should not continue using the deprecated macros.
15575         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
15576         obsolete Autoconf macros with modern counterparts.
15577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15578         * m4/dos.m4 (gl_AC_DOS): Likewise.
15579         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
15580         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15581         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
15582         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
15583         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15584         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
15585         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
15586         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
15587         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
15588         Likewise.
15589         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15590         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15591         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
15592         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
15593         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15594         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15595
15596 2009-09-01  Eric Blake  <ebb9@byu.net>
15597
15598         fchdir: fix off-by-one bug in previous patch
15599         * lib/fchdir.c (rpl_fstat): Use correct bounds.
15600         (_gl_unregister_fd): Delete useless if.
15601
15602 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
15603
15604         maint.mk: sort the list of syntax-check rules
15605         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
15606         easier to get a sense of progress when the rules are run sequentially
15607         and take a long time.
15608
15609 2009-09-01  Simon Josefsson  <simon@josefsson.org>
15610
15611         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
15612         * modules/netinet_in: Likewise.
15613         * modules/sys_file: Likewise.
15614         * modules/sys_ioctl: Likewise.
15615         * modules/sys_select: Likewise.
15616         * modules/sys_socket: Likewise.
15617         * modules/sys_stat: Likewise.
15618         * modules/sys_time: Likewise.
15619         * modules/sys_times: Likewise.
15620         * modules/sys_utsname: Likewise.
15621         * modules/sys_wait: Likewise.
15622
15623 2009-09-01  Jim Meyering  <meyering@redhat.com>
15624
15625         fts: help ensure that return values are not ignored
15626         * lib/fts_.h (__GNUC_PREREQ): Define.
15627         (__attribute_warn_unused_result__): Define.
15628         (fts_children, fts_close, fts_open, fts_read): Declare with
15629         __attribute_warn_unused_result__.
15630
15631         fts: fts_close now fails also when closing a dir file descriptor fails
15632         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
15633         and propagate to caller, along with errno.
15634
15635         announce-gen: correct formatting in --help output
15636         * build-aux/announce-gen (usage): Move the one-line description in
15637         --help output "up", to where it belongs, just after Usage:.
15638
15639 2009-08-31  Eric Blake  <ebb9@byu.net>
15640
15641         fchdir: port to mingw
15642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
15643         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
15644         opened, then use a substitute.
15645         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
15646         replacement.
15647         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
15648         (_gl_register_fd): No need to check stat if open already filters
15649         all directories.
15650         (fchdir): Fix error condition to match POSIX.
15651         * modules/fchdir (Depends-on): Add sys_stat.
15652         * doc/posix-functions/open.texi (open): Document the limitation.
15653         * modules/fchdir-tests: New file.
15654         * tests/test-fchdir.c: Likewise.
15655
15656         canonicalize: allow cross-testing from cygwin to mingw
15657         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
15658         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
15659         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
15660         Likewise.
15661         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
15662         target does not support symlinks.
15663         * tests/test-canonicalize-lgpl.sh: Likewise.
15664
15665         chown: avoid compilation warning on mingw
15666         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
15667         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
15668         mingw.
15669         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15670         * modules/chown (Depends-on): Add errno.
15671
15672 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15673
15674         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
15675         command.
15676
15677 2009-08-31  Jim Meyering  <meyering@redhat.com>
15678
15679         canonicalize: remove useless initialization
15680         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
15681         initialization of local, "end".
15682
15683 2009-08-30  Bruno Haible  <bruno@clisp.org>
15684
15685         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
15686         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
15687         ENOSYS.
15688
15689 2009-08-30  Bruno Haible  <bruno@clisp.org>
15690
15691         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
15692         /usr/xpg4/bin/tr when it exists.
15693         * tests/test-pipe-filter-gi1.sh: Likewise.
15694
15695 2009-08-30  Bruno Haible  <bruno@clisp.org>
15696
15697         Work around deficient /usr/bin/id program on Solaris.
15698         * tests/test-file-has-acl.sh (ID): New variable.
15699         * tests/test-set-mode-acl.sh (ID): Likewise.
15700         * tests/test-copy-acl.sh (ID): Likewise.
15701         * tests/test-copy-file.sh (ID): Likewise.
15702
15703 2009-08-30  Bruno Haible  <bruno@clisp.org>
15704
15705         New module 'xstriconveh'.
15706         * lib/xstriconveh.h: New file.
15707         * lib/xstriconveh.c: New file.
15708         * modules/xstriconveh: New file.
15709
15710 2009-08-30  Bruno Haible  <bruno@clisp.org>
15711
15712         Make it easier to use mem_cd_iconveh.
15713         * lib/striconveh.h (iconveh_t): New type.
15714         (iconveh_open, iconveh_close): New declarations.
15715         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15716         with a single 'const iconveh_t *' argument.
15717         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
15718         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15719         with a single 'const iconveh_t *' argument.
15720         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
15721         * tests/test-striconveh.c (main): Update.
15722         * NEWS: Mention the change.
15723
15724 2009-08-30  Bruno Haible  <bruno@clisp.org>
15725
15726         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
15727         problem.
15728
15729 2009-08-30  Bruno Haible  <bruno@clisp.org>
15730
15731         Work around iconv_open problem on Solaris.
15732         * lib/iconv_open-solaris.gperf: New file.
15733         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
15734         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
15735         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
15736         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
15737         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
15738         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
15739
15740 2009-08-29  Jim Meyering  <meyering@redhat.com>
15741
15742         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
15743         * top/maint.mk (cvs-check): Remove target; it was just an alias
15744         to the better-named vc-diff-check.
15745         (maintainer-distcheck): Remove rule.  It was used only from
15746         the (alpha/beta/major) target, and all of its commands but one
15747         were coreutils-specific.
15748         (vc-dist): Remove rule.
15749         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
15750         Run vc-diff-check, not vc-dist.
15751         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
15752
15753 2009-08-27  Bruno Haible  <bruno@clisp.org>
15754
15755         * tests/test-bitrotate.c (main): Remove test that uses a shift count
15756         of 0.
15757
15758 2009-08-27  Bruno Haible  <bruno@clisp.org>
15759
15760         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
15761         compilers.
15762         * doc/func.texi: Document the SunPRO C bug.
15763
15764 2009-08-27  Bruno Haible  <bruno@clisp.org>
15765
15766         Fix link error on Solaris.
15767         * tests/test-parse-duration.c (xstrdup): Remove function.
15768
15769 2009-08-26  Pádraig Brady  <P@draigbrady.com>
15770
15771         ignore-value: handle pointer types, too
15772         * lib/ignore-value.h (__attribute__): Remove definition.
15773         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
15774         of a more concise and more-often effective "(void) i" statement.
15775         (ignore_ptr): New function to suppress warnings from functions that
15776         return pointers, and to make it explicit that one function doesn't
15777         handle all cases.
15778
15779 2009-08-25  Bruno Haible  <bruno@clisp.org>
15780
15781         dup2: work around a Linux bug.
15782         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
15783         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
15784         * doc/posix-functions/dup2.texi: Mention the Linux bug.
15785         Reported by Simon Josefsson.
15786
15787 2009-08-25  Jim Meyering  <meyering@redhat.com>
15788
15789         libguestfs uses gnulib
15790         * users.txt: Add libguestfs.
15791
15792 2009-08-24  Eric Blake  <ebb9@byu.net>
15793
15794         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
15795         * lib/pipe2.c (includes): Add binary-io.h.
15796         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
15797
15798 2009-08-24  Bruno Haible  <bruno@clisp.org>
15799
15800         Tolerate declared but missing accept4 syscall.
15801         * lib/accept4.c (accept4): Invoke original accept4 function first, if
15802         available.
15803         * lib/sys_socket.in.h (accept4): If the function is already present,
15804         override it.
15805         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
15806         * modules/accept4 (Makefile.am): Compile accept4.c always.
15807         Reported by Paolo Bonzini and Eric Blake.
15808
15809 2009-08-23  Bruno Haible  <bruno@clisp.org>
15810
15811         New module 'accept4'.
15812         * lib/sys_socket.in.h (accept4): New declaration.
15813         * lib/accept4.c: New file.
15814         * m4/accept4.m4: New file.
15815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15816         GNULIB_ACCEPT4, HAVE_ACCEPT4.
15817         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
15818         HAVE_ACCEPT4.
15819         * modules/accept4: New file.
15820         * doc/glibc-functions/accept4.texi: Mention the new module.
15821
15822 2009-08-24  Jim Meyering  <meyering@redhat.com>
15823
15824         progname: also set global program_invocation_name, when possible
15825         Before this change, a libtool-enabled program that calls glibc's
15826         error function would report the program name as
15827         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
15828         * modules/progname (configure.ac): Check for a declaration of
15829         program_invocation_name.
15830         * lib/progname.c:  Include <errno.h>.
15831         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
15832         Set program_invocation_name.
15833
15834 2009-08-23  Bruno Haible  <bruno@clisp.org>
15835
15836         * lib/dup3.c: Include <string.h>.
15837
15838 2009-08-23  Bruno Haible  <bruno@clisp.org>
15839
15840         * lib/dup3.c (dup3): Test only once whether the system actually exists.
15841         * lib/pipe2.c (pipe2): Likewise.
15842         Suggested by Eric Blake.
15843
15844 2009-08-23  Bruno Haible  <bruno@clisp.org>
15845
15846         Tolerate declared but missing dup3 syscall.
15847         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
15848         * lib/unistd.in.h (dup3): If the function is already present,
15849         override it.
15850         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
15851         * modules/dup3 (Makefile.am): Compile dup3.c always.
15852         Reported by Paolo Bonzini.
15853
15854 2009-08-23  Bruno Haible  <bruno@clisp.org>
15855
15856         Tolerate declared but missing pipe2 syscall.
15857         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
15858         available.
15859         * lib/unistd.in.h (pipe2): If the function is already present,
15860         override it.
15861         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
15862         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
15863         Reported by Paolo Bonzini.
15864
15865 2009-08-23  Bruno Haible  <bruno@clisp.org>
15866
15867         * lib/pipe2.c (pipe2): Move #ifs inside function.
15868
15869 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15870
15871         quotearg: document limitations of quote_these_too
15872         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
15873         those limitations are created.
15874         * lib/quotearg.h (set_char_quoting): Document that digits and
15875         letters that are special after backslash are not permitted.
15876         (quotearg_char): Cross-reference set_char_quoting documentation.
15877
15878 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
15879
15880         quotearg: implement custom_quoting_style
15881         * lib/quotearg.c: (struct quoting_options): Add left_quote and
15882         right_quote fields.
15883         (set_custom_quoting): New public function.
15884         (quotearg_buffer_restyled): Add left_quote and right_quote
15885         arguments, handle them very much like locale quoting, and update
15886         all uses.
15887         (quotearg_n_custom): New public function.
15888         (quotearg_n_custom_mem): New public function.
15889         (quotearg_custom): New public function.
15890         (quotearg_custom_mem): New public function.
15891         * lib/quotearg.h: Prototype and document new public functions.
15892         (enum quoting_style): For escape_quoting_style and
15893         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
15894         ignored even though they're otherwise like c_quoting_style.
15895         Add custom_quoting_style member and document with comparison to
15896         clocale_quoting_style.
15897         * tests/test-quotearg.c (custom_quotes): New array.
15898         (custom_results): New array.
15899         (main): Extend to test custom quoting.
15900
15901 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15902
15903         quotearg: fix right quote escaping when it's in quote_these_too
15904         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
15905         quote, be sure to prepend only one backslash.
15906         * tests/test-quotearg.c (use_quote_double_quotes): New function.
15907         (main): Test it.
15908
15909 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15910
15911         quotearg-tests: test escaping of embedded locale quotes
15912         * tests/test-quotearg.c (struct result_strings): Add member for
15913         new input.
15914         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
15915         (inputs): Add new input.
15916         (results_g): Add expected results.
15917         (flag_results): Likewise.
15918         (locale_results): Likewise.
15919         (compare_strings): Check those.
15920
15921 2009-08-23  Bruno Haible  <bruno@clisp.org>
15922
15923         Tests for module 'dup3'.
15924         * modules/dup3-tests: New file.
15925         * tests/test-dup3.c: New file.
15926
15927         New module 'dup3'.
15928         * lib/unistd.in.h (dup3): New declaration.
15929         * lib/dup3.c: New file.
15930         * m4/dup3.m4: New file.
15931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
15932         HAVE_DUP3.
15933         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
15934         * modules/dup3: New file.
15935         * doc/glibc-functions/dup3.texi: Mention the new module.
15936
15937 2009-08-23  Bruno Haible  <bruno@clisp.org>
15938
15939         Tweak the dup2 test.
15940         * tests/test-dup2.c (main): Create the test file empty. Verify that an
15941         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
15942         the test file is still empty. Fix argument order of lseek.
15943
15944 2009-08-23  Bruno Haible  <bruno@clisp.org>
15945
15946         Avoid test link errors when the modules getopt-gnu, gettext are used.
15947         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
15948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15949
15950 2009-08-23  Bruno Haible  <bruno@clisp.org>
15951
15952         Fix getdtablesize() on mingw.
15953         * lib/getdtablesize.c (getdtablesize): Implement differently.
15954         * lib/unistd.in.h (getdtablesize): Improve comment.
15955
15956 2009-08-23  Bruno Haible  <bruno@clisp.org>
15957
15958         New module 'mkostemp'.
15959         Based on Ulrich Drepper's 2007-08-10 change in glibc.
15960         * lib/stdlib.in.h (mksotemp): New declaration.
15961         * lib/mkostemp.c: New file, from glibc with modifications.
15962         * lib/tempname.h (GT_FILE): Remove outdated comment.
15963         (gen_tempname): Add flags argument.
15964         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15965         (__GT_FILE): Map to 1.
15966         (small_open, large_open): Remove macros.
15967         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15968         * lib/mkstemp.c (mkstemp): Update.
15969         * lib/mkdtemp.c (mkdtemp): Likewise.
15970         * m4/mkostemp.m4: New file.
15971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15972         HAVE_MKOSTEMP.
15973         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15974         HAVE_MKOSTEMP.
15975         * modules/mkostemp: New file, based on modules/mkstemp.
15976         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15977         * NEWS: Mention the change.
15978
15979 2009-08-23  Bruno Haible  <bruno@clisp.org>
15980
15981         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15982         Reported by Eric Blake.
15983
15984 2009-08-23  Bruno Haible  <bruno@clisp.org>
15985
15986         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15987         Reported by Eric Blake.
15988
15989 2009-08-23  Bruno Haible  <bruno@clisp.org>
15990
15991         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15992         * modules/pipe2 (Depends-on): Likewise.
15993
15994 2009-08-23  Eric Blake  <ebb9@byu.net>
15995
15996         fcntl-h: add O_TTY_INIT support
15997         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15998         * tests/test-fcntl-h.c (o): Test it.
15999         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16000
16001         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16002         * modules/fcntl: Move <fcntl.h> header replacement...
16003         * modules/fcntl-h: ...to new name, so as not to collide with
16004         like-named function.
16005         * tests/test-fcntl.c: Rename...
16006         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16007         * modules/fcntl-tests: Rename...
16008         * modules/fcntl-h-tests: ...to this.  Update test file name.
16009         * modules/chdir-long (Depends-on): Update clients.
16010         * modules/chdir-safer (Depends-on): Likewise.
16011         * modules/fcntl-safer (Depends-on): Likewise.
16012         * modules/fts (Depends-on): Likewise.
16013         * modules/mkancesdirs (Depends-on): Likewise.
16014         * modules/mkdir-p (Depends-on): Likewise.
16015         * modules/open (Depends-on): Likewise.
16016         * modules/savewd (Depends-on): Likewise.
16017         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16018         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16019
16020 2009-08-22  Bruno Haible  <bruno@clisp.org>
16021
16022         * modules/binary-io (License): Relicense under LGPL.
16023         * modules/pipe2 (License): Likewise.
16024
16025 2009-08-22  Bruno Haible  <bruno@clisp.org>
16026
16027         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16028         return value.
16029         * lib/pipe-filter-gi.c (filter_init): Likewise.
16030         Reported by Eric Blake.
16031
16032 2009-08-22  Bruno Haible  <bruno@clisp.org>
16033
16034         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16035         * modules/pipe (Depends-on): Add pipe2.
16036
16037 2009-08-22  Bruno Haible  <bruno@clisp.org>
16038
16039         Tests for module 'pipe2'.
16040         * modules/pipe2-tests: New file.
16041         * tests/test-pipe2.c: New file.
16042
16043         New module 'pipe2'.
16044         * lib/unistd.in.h (pipe2): New declaration.
16045         * lib/pipe2.c: New file.
16046         * m4/pipe2.m4: New file.
16047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16048         HAVE_PIPE2.
16049         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16050         * modules/pipe2: New file.
16051         * doc/glibc-functions/pipe2.texi: Mention the new module.
16052
16053 2009-08-22  Bruno Haible  <bruno@clisp.org>
16054
16055         Reference some new glibc functions.
16056         * doc/glibc-functions/accept4.texi: New file.
16057         * doc/glibc-functions/dup3.texi: New file.
16058         * doc/glibc-functions/mkostemp.texi: New file.
16059         * doc/glibc-functions/pipe2.texi: New file.
16060         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16061         (Glibc sys/socket.h): Refer to accept4.
16062         (Glibc unistd.h): Refer to dup3, pipe2.
16063         Reported by Eric Blake.
16064
16065 2009-08-22  Jim Meyering  <meyering@redhat.com>
16066             Bruno Haible  <bruno@clisp.org>
16067
16068         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16069         This makes it so packages using automake-1.11's silent-rules option
16070         can print e.g., a single "GEN    configmake.h" line, rather than
16071         the 30+ statements that perform the job.  If you want to see the
16072         actual commands, you can still run "make V=1".
16073         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16074         so that make output is abbreviated when those variables are defined
16075         appropriately.
16076         * modules/argz: Likewise.
16077         * modules/arpa_inet: Likewise.
16078         * modules/byteswap: Likewise.
16079         * modules/configmake: Likewise.
16080         * modules/dirent: Likewise.
16081         * modules/errno: Likewise.
16082         * modules/fcntl: Likewise.
16083         * modules/float: Likewise.
16084         * modules/fnmatch: Likewise.
16085         * modules/getopt-posix: Likewise.
16086         * modules/glob: Likewise.
16087         * modules/iconv_open: Likewise.
16088         * modules/inttypes: Likewise.
16089         * modules/localcharset: Likewise.
16090         * modules/locale: Likewise.
16091         * modules/math: Likewise.
16092         * modules/netdb: Likewise.
16093         * modules/netinet_in: Likewise.
16094         * modules/poll: Likewise.
16095         * modules/posix_spawnp-tests: Likewise.
16096         * modules/sched: Likewise.
16097         * modules/search: Likewise.
16098         * modules/selinux-h: Likewise.
16099         * modules/signal: Likewise.
16100         * modules/spawn: Likewise.
16101         * modules/stdarg: Likewise.
16102         * modules/stdbool: Likewise.
16103         * modules/stddef: Likewise.
16104         * modules/stdint: Likewise.
16105         * modules/stdio: Likewise.
16106         * modules/stdlib: Likewise.
16107         * modules/string: Likewise.
16108         * modules/strings: Likewise.
16109         * modules/sys_file: Likewise.
16110         * modules/sys_ioctl: Likewise.
16111         * modules/sys_select: Likewise.
16112         * modules/sys_socket: Likewise.
16113         * modules/sys_stat: Likewise.
16114         * modules/sys_time: Likewise.
16115         * modules/sys_times: Likewise.
16116         * modules/sys_utsname: Likewise.
16117         * modules/sys_wait: Likewise.
16118         * modules/sysexits: Likewise.
16119         * modules/time: Likewise.
16120         * modules/unistd: Likewise.
16121         * modules/wchar: Likewise.
16122         * modules/wctype: Likewise.
16123
16124 2009-08-22  Jim Meyering  <meyering@redhat.com>
16125
16126         announce-gen: detect write failure
16127         * build-aux/announce-gen: Add Coda at end.
16128         Remove equivalent-but-more-verbose block at top.
16129
16130 2009-08-19  Akim Demaille  <demaille@gostai.com>
16131
16132         bootstrap: --help to stdout.
16133         * bootstrap (usage): Don't send --help to stderr.
16134         Use a here doc instead of a long string.
16135
16136 2009-08-21  Eric Blake  <ebb9@byu.net>
16137
16138         test-popen-safer: split from test-popen
16139         * tests/test-popen.c (main): Move...
16140         * tests/test-popen.h: ...into new file.
16141         * tests/test-popen-safer2.c: New file.
16142         * modules/popen-tests (Files): Add test-popen.h.
16143         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16144         Suggested by Bruno Haible.
16145
16146         test-fcntl-safer: split from test-open
16147         * tests/test-open.c (main): Move...
16148         * tests/test-open.h: ...into new file.
16149         * tests/test-fcntl-safer.c: New file.
16150         * modules/open-tests (Files): Add test-open.h.
16151         * modules/fcntl-safer-tests: New file.
16152         Suggested by Bruno Haible.
16153
16154         test-fopen-safer: split from test-fopen
16155         * tests/test-fopen.c (main): Move...
16156         * tests/test-fopen.h: ...into new file.
16157         * tests/test-fopen-safer.c: New file.
16158         * modules/fopen-tests (Files): Add test-fopen.h.
16159         * modules/fopen-safer-tests: New file.
16160         Suggested by Bruno Haible.
16161
16162 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16163
16164         popen-safer: test O_CLOEXEC at run-time.
16165         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16166
16167 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16168
16169         fcntl: move more flags to the header
16170         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16171         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16172         * lib/fcntl.in.h: Do both things here.
16173
16174 2009-08-21  Jim Meyering  <meyering@redhat.com>
16175
16176         consistently remove $@-t before redirecting to it
16177         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16178         * modules/alloca-opt: Likewise.
16179         * modules/byteswap: Likewise.
16180         * modules/fnmatch: Likewise.
16181         * modules/getopt-posix: Likewise.
16182         * modules/glob: Likewise.
16183         * modules/poll: Likewise.
16184         * modules/posix_spawnp-tests: Likewise.
16185         * modules/sys_socket: Likewise.
16186         * modules/sysexits: Likewise.
16187
16188 2009-08-21  Eric Blake  <ebb9@byu.net>
16189
16190         popen: simplify access to original popen
16191         * lib/popen.c (rpl_popen): No need to worry about popen being a
16192         macro.
16193         Reported by Bruno Haible.
16194
16195 2009-08-20  Eric Blake  <ebb9@byu.net>
16196
16197         build: avoid some compiler warnings
16198         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16199         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16200         type.
16201         (new_exclude_segment, excluded_file_pattern_p)
16202         (excluded_file_name_p): Reduce scope.
16203         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16204         old-style declaration.
16205
16206 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16207
16208         * tests/test-exclude1.sh: Handle Windows EOL.
16209         * tests/test-exclude2.sh: Likewise.
16210         * tests/test-exclude3.sh: Likewise.
16211         * tests/test-exclude4.sh: Likewise.
16212         * tests/test-exclude5.sh: Likewise.
16213         * tests/test-exclude6.sh: Likewise.
16214         * tests/test-exclude7.sh: Likewise.
16215
16216 2009-08-19  Akim Demaille  <demaille@gostai.com>
16217
16218         bootstrap: find sha1sum when named gsha1sum.
16219         * bootstrap (find_tool): New.
16220         ($SHA1SUM): New.
16221         Use it.
16222
16223 2009-08-20  Jim Meyering  <meyering@redhat.com>
16224
16225         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16226         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16227         expression that converts "." in a file name to "\." in the resulting
16228         regexp.  Start with a dummy statement, so that prior shell variable
16229         definitions are expanded portably.  Reported by Simon Josefsson.
16230
16231 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16232
16233         Fix polling for writeability of a screen buffer.
16234         * lib/poll.c: Distinguish input and screen buffers for the
16235         Win32 implementation.
16236         * lib/select.c: Likewise.
16237
16238 2009-08-19  Eric Blake  <ebb9@byu.net>
16239
16240         popen-safer: prevent popen from clobbering std descriptors
16241         * modules/popen-safer: New file.
16242         * lib/popen-safer.c: Likewise.
16243         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16244         * lib/stdio--.h (popen): Provide override.
16245         * lib/stdio-safer.h (popen_safer): Provide declaration.
16246         * tests/test-popen.c (includes): Partially test this.
16247         * modules/popen-safer-tests: New file, for more tests.
16248         * tests/test-popen-safer.c: Likewise.
16249         * MODULES.html.sh (file stream based Input/Output): Mention it.
16250
16251         tests: test some of the *-safer modules
16252         * modules/fopen-safer (Depends-on): Add fopen.
16253         * modules/fcntl-safer (Depends-on): Add fcntl.
16254         * modules/stdlib-safer (Depends-on): Add stdlib.
16255         (configure.ac): Set indicator.
16256         * modules/unistd-safer (configure.ac): Likewise.
16257         * modules/tmpfile-safer (configure.ac): Likewise.
16258         (Depends-on): Add tmpfile.
16259         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16260         active.
16261         * tests/test-fopen.c (includes): Test safer versions when they are
16262         in use.
16263         * tests/test-open.c (includes): Likewise.
16264
16265         popen: fix cygwin 1.5 bug when stdin closed
16266         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16267         * modules/popen: New file.
16268         * modules/popen-tests: Likewise.
16269         * tests/test-popen.c: Likewise.
16270         * m4/popen.m4: Likewise.
16271         * lib/popen.c: Likewise.
16272         * lib/stdio.in.h (popen): New declaration.
16273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16274         * modules/stdio (Makefile.am): Likewise.
16275         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16276
16277 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16278
16279         maint.mk: give full control over update-copyright exclusions
16280         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16281         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16282         (update-copyright): Don't force inclusion of top-level
16283         ChangeLog.  Don't force exclusion of all COPYING files, but make
16284         them the default exclusion instead.
16285
16286 2009-08-16  Bruno Haible  <bruno@clisp.org>
16287
16288         Fix test failures on Solaris 10.
16289         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16290         tests when Solaris iconv() is used.
16291         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16292         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16293         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16294         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16295         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16296
16297 2009-08-16  Bruno Haible  <bruno@clisp.org>
16298
16299         Fix test failures on Solaris 10.
16300         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16301         'tr' program and pass it as first argument.
16302         * tests/test-pipe-filter-gi1.sh: Likewise.
16303         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16304         program as first argument.
16305         * tests/test-pipe-filter-gi1.c (main): Likewise.
16306
16307 2009-08-16  Eric Blake  <ebb9@byu.net>
16308
16309         fpurge: fix previous commits
16310         * modules/fpurge (Makefile.am): Make replacement conditional,
16311         partially reverting 2007-04-29 change; missed in previous
16312         attempt.
16313         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16314         is missing.
16315
16316 2009-08-16  Bruno Haible  <bruno@clisp.org>
16317
16318         Clarify fpurge's effect on the file position.
16319         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16320         * tests/test-fpurge.c (main): Make a second pass for checking the file
16321         position.
16322
16323 2009-08-16  Bruno Haible  <bruno@clisp.org>
16324
16325         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16326         declaration of fpurge is missing.
16327         * tests/test-fpurge.c (main): Check that the file has not more contents
16328         than expected. Close the file before removing it.
16329
16330 2009-08-15  Eric Blake  <ebb9@byu.net>
16331
16332         fpurge: don't wrap working cygwin implementation
16333         * lib/fpurge.c (fpurge): Fix comment typo.
16334         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16335         1.7 to avoid replacement.
16336         * tests/test-fpurge.c (main): Enhance test.
16337
16338 2009-08-15  Eric Blake  <ebb9@byu.net>
16339         and Jim Meyering  <meyering@redhat.com>
16340
16341         test-update-copyright: skip if perl is insufficient
16342         * tests/test-update-copyright.sh: Failure to run maintainer tool
16343         should not cause testsuite failure on cygwin 1.5.
16344
16345 2009-08-14  Eric Blake  <ebb9@byu.net>
16346
16347         doc: mention more functions added in cygwin 1.7.0
16348         * doc/posix-headers/limits.texi (limits.h): Update for recent
16349         cygwin additions.
16350         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16351         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16352         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16353         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16354         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16355
16356 2009-08-14  Eric Blake  <ebb9@byu.net>
16357
16358         maint.mk: simplify update-copyright rule
16359         * top/maint.mk (update-copyright-local): Delete, and document how
16360         to do it in cfg.mk instead.
16361         (update-copyright-exclude-regexp): Delete, and document how to do
16362         it in .x-update-copyright instead.
16363         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16364         exclude ChangeLog.
16365
16366 2009-08-14  Bruno Haible  <bruno@clisp.org>
16367
16368         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16369
16370 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16371
16372         maint.mk: support update-copyright-env
16373         * top/maint.mk (update-copyright-env): Define place-holder.
16374         (update-copyright): Expand $(update-copyright-env) before
16375         invoking update-copyright.
16376
16377 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16378
16379         update-copyright: implement forced reformatting
16380         * build-aux/update-copyright: Implement and document
16381         UPDATE_COPYRIGHT_FORCE.
16382         * tests/test-update-copyright.sh: Test it.
16383
16384 2009-08-14  Eric Blake  <ebb9@byu.net>
16385         and Bruno Haible  <bruno@clisp.org>
16386
16387         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16388         * tests/test-locale.c: Revert previous patch related to NULL.
16389         * tests/test-stdio.c: Likewise.
16390         * tests/test-stdlib.c: Likewise.
16391         * tests/test-string.c: Likewise.
16392         * tests/test-unistd.c: Likewise.
16393         * modules/time-tests (Depends-on): Add verify.
16394         * modules/wchar-tests (Depends-on): Likewise.
16395         * tests/test-time.c: Test for NULL compliance.
16396         * tests/test-wchar.c: Likewise.
16397         * modules/locale (Depends-on): Add stddef.
16398         * modules/stdio (Depends-on): Likewise.
16399         * modules/stdlib (Depends-on): Likewise.
16400         * modules/string (Depends-on): Likewise.
16401         * modules/time (Depends-on): Likewise.
16402         * modules/unistd (Depends-on): Likewise.
16403         * modules/wchar (Depends-on): Likewise.
16404         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
16405         * lib/stdlib.in.h (includes): Likewise.
16406         * lib/string.in.h (includes): Likewise.
16407         * lib/time.in.h (includes): Likewise.
16408         * lib/unistd.in.h (includes): Likewise.
16409         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
16410         replaced.
16411         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16412         * m4/stddef_h.m4: New file.
16413         * modules/stddef: Likewise.
16414         * lib/stddef.in.h: Likewise.
16415         * modules/stddef-tests: Likewise.
16416         * tests/test-stddef.c: Likewise.
16417         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
16418         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
16419         * doc/posix-headers/locale.texi (locale.h): Likewise.
16420         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
16421         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16422         * doc/posix-headers/string.texi (string.h): Likewise.
16423         * doc/posix-headers/time.texi (time.h): Likewise.
16424         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
16425         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
16426
16427 2009-08-14  Eric Blake  <ebb9@byu.net>
16428
16429         doc: improve git diff of texinfo files
16430         * .gitattributes: Add rule for *.texi files, with hint on how to
16431         use it.
16432         Copied from m4, and based on a report by Bruno Haible.
16433
16434 2009-08-14  Bruno Haible  <bruno@clisp.org>
16435
16436         Disable multithread support by default on Cygwin 1.5.x for real.
16437         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
16438
16439 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16440
16441         update-copyright: much ado about intervals
16442         * build-aux/update-copyright: Implement and document
16443         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
16444         of copyright year intervals.
16445         Also, document UPDATE_COPYRIGHT_YEAR.
16446         * tests/test-update-copyright.sh: Test it.
16447
16448         update-copyright: convert 2-digit to 4-digit years
16449         * build-aux/update-copyright: Implement and document.
16450         * tests/test-update-copyright.sh: Update.
16451
16452 2009-08-14  Jim Meyering  <meyering@redhat.com>
16453
16454         test-exclude: avoid coreutils "make check" failure
16455         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
16456         just as in test-argmatch.c.
16457
16458 2009-08-13  Eric Blake  <ebb9@byu.net>
16459
16460         test-dup2: fix bad assumption
16461         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
16462         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
16463
16464         test-version-etc: fix CRLF portability issue
16465         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
16466         recognize \r.
16467         * tests/test-argp-version-etc-1.sh: Likewise.
16468
16469         getopt: update client modules
16470         * modules/argp (Depends-on): Use getopt-gnu.
16471         * modules/git-merge-changelog (Depends-on): Likewise.
16472         * modules/long-options (Depends-on): Likewise.
16473         * modules/xstrtol (Depends-on): Likewise.
16474
16475 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16476
16477         * tests/test-version-etc.sh: Don't fail on different
16478         project/version.  Don't fail on CRLF differences.  Rewrite to use
16479         multiple -e instead of multiple sed forks, suggested by Eric Blake
16480         <ebb9@byu.net>.
16481         * tests/test-argp-version-etc-1.sh: Likewise.
16482
16483 2009-08-13  Simon Josefsson  <simon@josefsson.org>
16484
16485         * tests/test-version-etc.sh: Don't fail on different
16486         project/version.
16487
16488 2009-08-12  Bruno Haible  <bruno@clisp.org>
16489
16490         Tests for modules 'getopt-posix', 'getopt-gnu'.
16491         * modules/getopt-posix-tests: New file.
16492         * tests/test-getopt.c: New file.
16493         * tests/test-getopt.h: New file.
16494         * tests/test-getopt_long.h: New file.
16495
16496         New modules 'getopt-posix', 'getopt-gnu'.
16497         * modules/getopt-gnu: New file, renamed from modules/getopt.
16498         * modules/getopt-posix: New file.
16499         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
16500         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
16501         (gl_GETOPT): Remove macro.
16502         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
16503         Disable the test against BSD systems that declare optreset. Test
16504         against mingw bug. Test against lack of support of optional arguments
16505         on many platforms.
16506         * doc/glibc-headers/getopt.texi: Update module name and list of
16507         relevant platforms.
16508         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
16509         'getopt-gnu' and more portability problems.
16510         * NEWS: Mention the changes.
16511
16512 2009-08-12  Bruno Haible  <bruno@clisp.org>
16513
16514         Ensure that optarg etc. get declared by <unistd.h>.
16515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
16516         AC_USE_SYSTEM_EXTENSIONS.
16517         * modules/getopt (Depends-on): Add 'extensions'.
16518
16519 2009-08-12  Bruno Haible  <bruno@clisp.org>
16520
16521         Avoid test link errors.
16522         * modules/pipe-filter-ii-tests (Makefile.am): Define
16523         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
16524         * modules/pipe-filter-gi-tests (Makefile.am): Define
16525         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
16526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16527
16528 2009-08-12  Bruno Haible  <bruno@clisp.org>
16529
16530         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
16531         gl_GETOPT_SUBSTITUTE before.
16532         (gl_GETOPT): Use it.
16533         * m4/argp.m4 (gl_ARGP): Update.
16534         Reported by Sergey Poznyakoff.
16535
16536         * m4/getopt.m4: Reorder macros.
16537         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
16538         (gl_GETOPT_SUBSTITUTE): Remove macro.
16539
16540 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16541
16542         Minor improvement in gitlog-to-changelog
16543
16544         * build-aux/gitlog-to-changelog: New option `--format' makes
16545         output format string configurable.
16546
16547 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16548
16549         Optimize exclude: use hash tables for non-wildcard patterns.
16550
16551         * lib/exclude.c: Include hash.h and mbuiter.h
16552         (struct exclude_pattern, exclude_segment): New data types.
16553         (struct exclude): Rewrite.
16554         (fnmatch_pattern_has_wildcards): New function.
16555         (new_exclude_segment, free_exclude_segment): New functions.
16556         (excluded_file_pattern_p, excluded_file_name_p): New functions.
16557         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
16558         * lib/exclude.h (is_fnmatch_pattern): New prototype.
16559         * modules/exclude: Depend on hash and mbuiter.
16560
16561         * modules/exclude-tests: New file.
16562         * tests/test-exclude.c: New file.
16563         * tests/test-exclude1.sh: New file.
16564         * tests/test-exclude2.sh: New file.
16565         * tests/test-exclude3.sh: New file.
16566         * tests/test-exclude4.sh: New file.
16567         * tests/test-exclude5.sh: New file.
16568         * tests/test-exclude6.sh: New file.
16569         * tests/test-exclude7.sh: New file.
16570
16571 2009-08-12  Bruno Haible  <bruno@clisp.org>
16572
16573         Ensure that getopt() gets declared by <unistd.h>.
16574         * lib/unistd.in.h: Conditionally include getopt.h.
16575         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
16576         Set GNULIB_UNISTD_H_GETOPT.
16577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16578         GNULIB_UNISTD_H_GETOPT.
16579         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
16580
16581 2009-08-12  Bruno Haible  <bruno@clisp.org>
16582
16583         Clarify logic.
16584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
16585         gl_replace_getopt instead of GETOPT_H.
16586
16587 2009-08-12  Bruno Haible  <bruno@clisp.org>
16588
16589         * m4/getopt.m4: Add comments.
16590
16591 2009-08-12  Bruno Haible  <bruno@clisp.org>
16592
16593         Disable multithread support by default on Cygwin 1.5.x.
16594         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
16595         set gl_use_threads=no if not specified otherwise.
16596
16597 2009-08-11  Bruno Haible  <bruno@clisp.org>
16598
16599         Avoid compilation error on NetBSD 5.0.
16600         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
16601         * tests/test-stdio.c: Likewise.
16602         * tests/test-stdlib.c: Likewise.
16603         * tests/test-string.c: Likewise.
16604         * tests/test-unistd.c: Likewise.
16605         Reported by Greg Troxel <gdt@ir.bbn.com>
16606         at <https://savannah.gnu.org/support/?106973>.
16607
16608 2009-08-11  Bruno Haible  <bruno@clisp.org>
16609
16610         * modules/dup2-tests (Depends-on): Remove close.
16611
16612         Undo 2009-07-19 commit.
16613         * modules/acl-tests (Depends-on): Remove close.
16614         * modules/binary-io-tests (Depends-on): Likewise.
16615         * modules/closein-tests (Depends-on): Likewise.
16616         * modules/flock-tests (Depends-on): Likewise.
16617         * modules/fsync-tests (Depends-on): Likewise.
16618         * modules/lseek-tests (Depends-on): Likewise.
16619         * modules/pipe-tests (Depends-on): Likewise.
16620         * modules/posix_spawn-tests (Depends-on): Likewise.
16621         * modules/posix_spawnp-tests (Depends-on): Likewise.
16622         * modules/stat-time-tests (Depends-on): Likewise.
16623         * modules/yesno-tests (Depends-on): Likewise.
16624
16625 2009-08-10  Bruno Haible  <bruno@clisp.org>
16626
16627         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
16628
16629 2009-08-10  Bruno Haible  <bruno@clisp.org>
16630
16631         Fix a gcc warning.
16632         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
16633
16634 2009-08-10  Bruno Haible  <bruno@clisp.org>
16635
16636         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
16637         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
16638         not only the first time.
16639         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
16640         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
16641         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
16642         is 1, not only the the first time.
16643
16644 2009-08-10  Bruno Haible  <bruno@clisp.org>
16645
16646         Make it possible to use module 'gethostname' without module 'close'.
16647         * lib/unistd.in.h (close): Evoke a link error only if
16648         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16650         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16651         * modules/unistd (Makefile.am): Substitute
16652         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16653         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
16654         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16655         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16656         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16657         * modules/sys_ioctl (Makefile.am): Substitute
16658         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16659         * modules/socket (configure.ac): On native Windows, set
16660         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
16661         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16662         Reported by Sam Steingold <sds@gnu.org>.
16663
16664 2009-08-10  Bruno Haible  <bruno@clisp.org>
16665
16666         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
16667         * modules/ioctl (configure.ac): Likewise.
16668
16669 2009-08-10  Bruno Haible  <bruno@clisp.org>
16670
16671         Avoid collision between gnulib wrapper and libintl wrapper.
16672         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
16673         already defined in intl/printf.c.
16674         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
16675         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
16676
16677 2009-08-09  Bruno Haible  <bruno@clisp.org>
16678
16679         Make <sys/select.h> really self-contained, also on Solaris 10.
16680         * lib/sys_select.in.h: Include <string.h>.
16681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
16682         Solaris 10 problem.
16683         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
16684         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
16685         Reported by Jim Meyering.
16686
16687 2009-08-09  Bruno Haible  <bruno@clisp.org>
16688
16689         Avoid warnings from 'aclocal' that are due to a use of macro name
16690         AM_XGETTEXT_OPTION that is not defined in automake.
16691         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
16692         automake.
16693         * modules/error (configure.ac): Likewise.
16694         * modules/propername (configure.ac): Likewise.
16695         * modules/vasprintf (configure.ac): Likewise.
16696         * modules/verror (configure.ac): Likewise.
16697         * modules/xprintf (configure.ac): Likewise.
16698         * modules/xvasprintf (configure.ac): Likewise.
16699
16700 2009-08-08  Bruno Haible  <bruno@clisp.org>
16701
16702         Avoid compilation error in C++ mode.
16703         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
16704         Reported by Sam Steingold <sds@gnu.org>.
16705
16706 2009-08-08  Bruno Haible  <bruno@clisp.org>
16707
16708         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
16709         for the various Unix platforms.
16710         * doc/posix-headers/limits.texi: Update platforms list regarding
16711         HOST_NAME_MAX.
16712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16713
16714 2009-08-07  Jim Meyering  <meyering@redhat.com>
16715
16716         selinux-at: fix typo in a comment
16717         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
16718         Spotted by Paolo Bonzini.
16719
16720         selinux-at: remove redundant m4 code, add documentation
16721         * modules/selinux-at (configure.ac): Remove redundant code.
16722         LIB_SELINUX is already set via the dependent module, selinux-h.
16723         (Include): Add quotes around selinux-at.h.
16724         * lib/selinux-at.h: Add documentation.
16725         Reported by Bruno Haible in
16726         http://marc.info/?l=gnulib-bug&m=124958988300749
16727
16728 2009-08-07  Bruno Haible  <bruno@clisp.org>
16729
16730         Avoid link error on MacOS X 10.3 and 10.4.
16731         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
16732         on non-ELF systems.
16733         * lib/argp-pv.c (argp_program_version): Likewise.
16734         Reported by Simon Josefsson.
16735
16736 2009-08-07  Simon Josefsson  <simon@josefsson.org>
16737
16738         * tests/test-version-etc.sh: Use $EXEEXT.
16739
16740 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
16741
16742         update-copyright: update documentation to point to maint.mk
16743         * build-aux/update-copyright: Here.
16744
16745 2009-08-06  Jim Meyering  <meyering@redhat.com>
16746
16747         maint.mk: support update-copyright-local
16748         * top/maint.mk (update-copyright-local): Define place-holder.
16749         (update-copyright): Depend on $(update-copyright-local).
16750
16751 2009-08-06  Jim Meyering  <meyering@redhat.com>
16752
16753         selinux-at: new module
16754         Initially written for coreutils, this module will soon be
16755         used by findutils, too.
16756         * MODULES.html.sh [Misc]: Add selinux-at.
16757         * lib/selinux-at.h: New file, from coreutils.
16758         * lib/selinux-at.c: Likewise.
16759         * modules/selinux-at: Likewise.
16760         (License): Change from LGPL to GPL, since it depends
16761         on the GPL'd openat module.
16762
16763         doc: update README
16764         * README: Remove references to cogito.
16765         Remove cvs-repo-updating instructions from 2007.
16766         Don't imply that CVS is better if you have limited disk space.
16767
16768 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16769
16770         update-copyright: support C-style comments
16771         * build-aux/update-copyright: Implement and document.
16772         * tests/test-update-copyright.sh: Test.
16773
16774 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16775
16776         update-copyright: support omitted "(C)"
16777         * build-aux/update-copyright: Implement and document.  Also,
16778         allow variable whitespace before "(C)".
16779         * tests/test-update-copyright.sh: Test.
16780
16781 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16782
16783         update-copyright: don't trip on non-FSF copyright statements
16784         * build-aux/update-copyright: Fix so that the first correctly
16785         formatted FSF copyright statement is recognized no matter what
16786         appears before it.  Update documentation.
16787         * tests/test-update-copyright.sh: Test that.
16788
16789 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16790
16791         update-copyright: clean up code a little
16792         * build-aux/update-copyright: Append "_re" to the name of any
16793         variable holding a regular expression.
16794         Replace "old" and "new" with "stmt" in variable names.
16795         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
16796         handled correctly.
16797         Format code more consistently.
16798
16799 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16800
16801         update-copyright-tests: improve portability
16802         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
16803         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
16804
16805 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16806
16807         update-copyright: support @copyright{} and &copy;
16808         * build-aux/update-copyright: Implement and document.
16809         * tests/test-update-copyright.sh: Test.
16810
16811 2009-08-04  Jim Meyering  <meyering@redhat.com>
16812
16813         update-copyright-tests: correctly test EOL=\r\n handling
16814         * tests/test-update-copyright.sh: Put \r at the end of some lines
16815         for the dos-eol tests.  Based on a patch by Joel E. Denny.
16816
16817         maint.mk: make update-copyright exclusion list more configurable
16818         * top/maint.mk (update-copyright): Default to excluding COPYING,
16819         but allow an override, in case someone does want to update that file.
16820
16821         maint.mk: don't update copyright date in COPYING
16822         * top/maint.mk (update-copyright): Exclude COPYING.
16823
16824         maint.mk: add a copyright-updating rule
16825         * top/maint.mk (update-copyright): New rule.
16826         Derived from coreutils/Makefile.am.
16827
16828         update-copyright: rename some variables
16829         * build-aux/update-copyright: Rename a few variables for clarity.
16830         Tweak syntax.  List Joel E. Denny as coauthor.
16831
16832 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16833
16834         update-copyright: fix bug for 2-digit last year and add tests
16835         * build-aux/update-copyright: Fix bug.
16836         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
16837         specified.
16838         * modules/update-copyright-tests: New
16839         * tests/test-update-copyright.sh: New.
16840
16841 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16842
16843         update-copyright: handle leading tabs in line prefix
16844         * build-aux/update-copyright: Count leading tabs as 8 spaces
16845         when computing margin.  This helps with the formatting of
16846         ChangeLogs, for example.
16847         Fix documentation a little.
16848
16849 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16850
16851         update-copyright: support EOL=\r\n
16852         * build-aux/update-copyright: Implement that.
16853
16854 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16855
16856         update-copyright: automatically format copyright statements
16857         * build-aux/update-copyright: Implement that.
16858         Also, be a little more predictable and safer by always failing
16859         when the full copyright format is not perfectly recognized as an
16860         unbroken whole.  Discussed at
16861         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
16862         Rewrite documentation.
16863
16864 2009-08-03  Bruno Haible  <bruno@clisp.org>
16865
16866         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
16867
16868 2009-08-02  Bruno Haible  <bruno@clisp.org>
16869
16870         Tests for module 'uname'.
16871         * modules/uname-tests: New file.
16872         * tests/test-uname.c: New file.
16873
16874         New module 'uname'.
16875         * lib/uname.c: New file.
16876         * m4/uname.m4: New file.
16877         * modules/uname: New file.
16878         * doc/posix-functions/uname.texi: Mention the new module.
16879
16880 2009-08-02  Bruno Haible  <bruno@clisp.org>
16881
16882         Tests for module 'sys_utsname'.
16883         * modules/sys_utsname-tests: New file.
16884         * tests/test-sys_utsname.c: New file.
16885
16886         New module 'sys_utsname'.
16887         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
16888         * m4/sys_utsname_h.m4: New file.
16889         * modules/sys_utsname: New file.
16890         * doc/posix-headers/sys_utsname.texi: Mention the new module.
16891
16892 2009-08-02  Bruno Haible  <bruno@clisp.org>
16893
16894         Implicitly initialize the sockets library.
16895         * lib/gethostname.c: Include sockets.h.
16896         (rpl_gethostname): Invoke gl_sockets_startup.
16897         * lib/socket.c: Include sockets.h.
16898         (rpl_socket): Invoke gl_sockets_startup.
16899         * modules/gethostname (Depends-on): Add sockets.
16900         * modules/socket (Depends-on): Likewise.
16901         * tests/test-poll.c: Don't include sockets.h.
16902         (main): Don't invoke gl_sockets_startup.
16903         * tests/test-select.c: Don't include sockets.h.
16904         (main): Don't invoke gl_sockets_startup.
16905
16906 2009-08-02  Bruno Haible  <bruno@clisp.org>
16907
16908         Allow multiple calls to gl_sockets_startup.
16909         * lib/sockets.c (initialized_sockets_version): New variable.
16910         (gl_sockets_startup): Do nothing if already called for this or a higher
16911         version.
16912         (gl_sockets_cleanup): Reset initialized_sockets_version.
16913
16914 2009-08-03  Simon Josefsson  <simon@josefsson.org>
16915
16916         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
16917         different project/version.
16918
16919 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
16920             Bruno Haible  <bruno@clisp.org>
16921
16922         Tests for module 'pipe-filter-gi'.
16923         * modules/pipe-filter-gi-tests: New file.
16924         * tests/test-pipe-filter-gi1.sh: New file.
16925         * tests/test-pipe-filter-gi1.c: New file.
16926         * tests/test-pipe-filter-gi2.sh: New file.
16927         * tests/test-pipe-filter-gi2-main.c: New file.
16928         * tests/test-pipe-filter-gi2-child.c: New file.
16929
16930         New module 'pipe-filter-gi'.
16931         * lib/pipe-filter-gi.c: New file.
16932         * modules/pipe-filter-gi: New file.
16933
16934 2009-08-02  Bruno Haible  <bruno@clisp.org>
16935             Paolo Bonzini  <bonzini@gnu.org>
16936
16937         Tests for module 'pipe-filter-ii'.
16938         * modules/pipe-filter-ii-tests: New file.
16939         * tests/test-pipe-filter-ii1.sh: New file.
16940         * tests/test-pipe-filter-ii1.c: New file.
16941         * tests/test-pipe-filter-ii2.sh: New file.
16942         * tests/test-pipe-filter-ii2-main.c: New file.
16943         * tests/test-pipe-filter-ii2-child.c: New file.
16944
16945         New module 'pipe-filter-ii'.
16946         * lib/pipe-filter.h: New file.
16947         * lib/pipe-filter-ii.c: New file.
16948         * lib/pipe-filter-aux.h: New file.
16949         * modules/pipe-filter-ii: New file.
16950
16951 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16952
16953         * lib/gc-libgcrypt.c: Change copyright to FSF.
16954         * lib/gc-gnulib.c: Likewise.
16955
16956 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
16957
16958         * lib/gethostname.c: Include limits.h.
16959
16960 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16961             Bruno Haible  <bruno@clisp.org>
16962
16963         Ensure HOST_NAME_MAX as part of the gethostname module.
16964         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16965         define also HOST_NAME_MAX.
16966         * tests/test-gethostname.c: Include <limits.h>.
16967         (main): Check also HOST_NAME_MAX.
16968         * doc/posix-headers/limits.texi: Document the mingw problem.
16969
16970 2009-08-02  Bruno Haible  <bruno@clisp.org>
16971
16972         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16973         Add comments.
16974
16975 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16976
16977         * lib/gethostname.c: Add Windows wrapper.
16978         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16979         * modules/gethostname: Depend on sys_socket & errno, for also
16980         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16981         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16982
16983 2009-07-31  Jim Meyering  <meyering@redhat.com>
16984
16985         getloadavg: fix symbol name in comment
16986         * lib/getloadavg.c: Correct a typo I introduced when adding
16987         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16988         Matt Kraai spotted the problem.
16989
16990 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16991
16992         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16993         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16994         code also if ! defined N_NAME_POINTER.
16995         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16996         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16997         but the n_name member is a 12-byte array.
16998
16999 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17000
17001         update-copyright: generalize comment handling
17002         * build-aux/update-copyright: Handle copyright statements
17003         within more comment styles.
17004         Document usage.
17005         Report any file with an external copyright holder or parse failure.
17006
17007 2009-07-29  Jim Meyering  <meyering@redhat.com>
17008
17009         mktime: correct setting of REPLACE_MKTIME
17010         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17011
17012         update-copyright: new module
17013         * modules/update-copyright: New file.
17014         * build-aux/update-copyright: New file.
17015         * MODULES.html.sh (maint+release support): Add update-copyright.
17016
17017 2009-07-27  Bruno Haible  <bruno@clisp.org>
17018
17019         Fix compilation error when <ctime> is used and mktime is replaced.
17020         * lib/time.in.h (mktime): New declaration.
17021         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17022         REPLACE_MKTIME instead of defining mktime in config.h.
17023         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17024         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17025         Reported by Ross McFarland <rwmcfa1@neces.com>.
17026
17027 2009-07-27  Bruno Haible  <bruno@clisp.org>
17028
17029         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17030         Reported by Matt Kraai <mkraai@beckman.com>.
17031
17032 2009-07-25  Jim Meyering  <meyering@redhat.com>
17033
17034         maint.mk: avoid warnings about missing files
17035         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17036         diagnostic when .prev-version does not exist.
17037         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17038         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17039         nonexistent cfg.mk.
17040         Suggestions from Simon Josefsson.
17041
17042 2009-07-25  Bruno Haible  <bruno@clisp.org>
17043
17044         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17045         defined as macros. Needed on QNX 6.4.1.
17046         Reported by Matt Kraai <mkraai@beckman.com>.
17047
17048 2009-07-23  Jim Meyering  <meyering@redhat.com>
17049
17050         maint.mk: invoke "make dist" with a working value of XZ_OPT
17051         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17052
17053 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17054
17055         Make fseeko.c compile on QNX.
17056         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17057
17058 2009-07-22  Peter Simons  <simons@cryp.to>
17059
17060         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17061         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17062         * lib/md4.h: Likewise.
17063         * lib/md5.h: Likewise.
17064         * lib/sha1.h: Likewise.
17065         * lib/sha256.h: Likewise.
17066         * lib/sha512.h: Likewise.
17067
17068         tests-sha1: don't assign literal string to 'char *' variable
17069         * tests/test-sha1.c (main): Declare locals with "const" to match
17070         attributes of the right hand side.
17071
17072 2009-07-21  Eric Blake  <ebb9@byu.net>
17073
17074         dup2: fix more mingw problems
17075         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17076         fd to itself.
17077         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17078         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17079         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17080         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17081         care of mingw bugs.
17082
17083 2009-07-21  Jim Meyering  <meyering@redhat.com>
17084
17085         vc-list-files: avoid failure when /bin/sh is dash
17086         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17087         On some Debian based systems, /bin/sh is a symlink to dash, and running
17088         this command would omit the "/" following each 'tests' prefix:
17089           dash -x build-aux/vc-list-files -C . tests
17090         That is because bash and dash work differently:
17091           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17092           bash ok
17093           dash odd
17094
17095 2009-07-21  Eric Blake  <ebb9@byu.net>
17096
17097         dup2-tests: test previous patch
17098         * modules/dup2-tests: New file.
17099         * tests/test-dup2.c: Likewise.
17100         * tests/test-open.c (main): Avoid unspecified behavior.
17101         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17102         test.
17103
17104         dup2: work around mingw and cygwin 1.5 bug
17105         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17107         * modules/unistd (Makefile.am): Substitute it.
17108         * lib/unistd.in.h (dup2): Declare the replacement.
17109         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17110         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17111         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17112         * modules/execute (Depends-on): Add dup2.
17113         * modules/fseterr (Depends-on): Likewise.
17114         * modules/pipe (Depends-on): Likewise.
17115         * modules/posix_spawn-internal (Depends-on): Likewise.
17116
17117 2009-07-21  Bruno Haible  <bruno@clisp.org>
17118
17119         * modules/.gitattributes: New file.
17120
17121 2009-07-20  Bruno Haible  <bruno@clisp.org>
17122
17123         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17124         (main): Use it.
17125
17126 2009-07-20  Eric Blake  <ebb9@byu.net>
17127
17128         test-pipe: make a bit more robust.
17129         * tests/test-pipe.c (myerr): Allow error messages regardless of
17130         what we do to stderr.
17131         (test_pipe): Rearrange to avoid deadlock.
17132         (child_main): Try a larger read, to ensure we avoided deadlock.
17133         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17134         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17135         if misused.
17136
17137 2009-07-19  Jim Meyering  <meyering@redhat.com>
17138
17139         fts: avoid false-positive cycle-detection
17140         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17141         for each new command line argument.
17142
17143 2009-07-19  Bruno Haible  <bruno@clisp.org>
17144
17145         Fix build error on mingw with the modules sys_select and unistd.
17146         * modules/acl-tests (Depends-on): Add close.
17147         * modules/binary-io-tests (Depends-on): Likewise.
17148         * modules/closein-tests (Depends-on): Likewise.
17149         * modules/flock-tests (Depends-on): Likewise.
17150         * modules/fsync-tests (Depends-on): Likewise.
17151         * modules/lseek-tests (Depends-on): Likewise.
17152         * modules/pipe-tests (Depends-on): Likewise.
17153         * modules/posix_spawn-tests (Depends-on): Likewise.
17154         * modules/posix_spawnp-tests (Depends-on): Likewise.
17155         * modules/stat-time-tests (Depends-on): Likewise.
17156         * modules/yesno-tests (Depends-on): Likewise.
17157
17158 2009-07-19  Bruno Haible  <bruno@clisp.org>
17159
17160         Unify conditionals.
17161         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17162         macros, not at the compiler macros.
17163         * lib/pipe.c: Likewise.
17164         * lib/execute.c: Likewise.
17165         * lib/spawni.c: Likewise.
17166
17167 2009-07-19  Bruno Haible  <bruno@clisp.org>
17168
17169         Fix handling of closed stdin/stdout/stderr on mingw.
17170         * lib/w32spawn.h: Include unistd.h.
17171         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17172         file descriptor with O_NOINHERIT flag.
17173         (fd_safer_noinherit): New function, based on fd-safer.c.
17174         (dup_safer_noinherit): New function, based on dup-safer.c.
17175         (undup_safer_noinherit): New function.
17176         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17177         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17178         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17179         instead of fd_safer.
17180         * tests/test-pipe.c: Include <windows.h>.
17181         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17182
17183         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17184         from main.
17185         (test_pipe): Pass an extra argument for disambiguation.
17186         (main): Invoke parent_main or child_main.
17187
17188         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17189         consistently.
17190
17191 2009-07-18  Eric Blake  <ebb9@byu.net>
17192
17193         test-pipe: fix mingw build
17194         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17195
17196 2009-07-18  Bruno Haible  <bruno@clisp.org>
17197
17198         * modules/pipe-tests (Makefile.am): Fix typo.
17199
17200 2009-07-18  Eric Blake  <ebb9@byu.net>
17201
17202         error: fix mingw build
17203         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17204         Reported by Bruno Haible.
17205
17206         error: avoid undefined use of stdout
17207         * lib/error.c (error, error_at_line): Check that fd 1 is open
17208         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17209         is handling faults and the close_stdout module wants to report the
17210         detection of closed stdout as an error.
17211
17212 2009-07-17  Eric Blake  <ebb9@byu.net>
17213
17214         pipe: be robust in face of closed fds
17215         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17216         should cause child to misbehave.
17217         * modules/pipe-tests: New module.
17218         * tests/test-pipe.c: New file.
17219         * tests/test-pipe.sh: New file.
17220         Reported by Akim Demaille.
17221
17222 2009-07-14  Bruno Haible  <bruno@clisp.org>
17223
17224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17225         Reported by anonymous kc.
17226
17227 2009-07-07  Jim Meyering  <meyering@redhat.com>
17228
17229         maint.mk: don't look for translatable strings in *.m4 or *.mk
17230         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17231         when searching for translatable strings.
17232
17233 2009-07-05  Jim Meyering  <meyering@redhat.com>
17234
17235         remove superfluous parentheses in STREQ definition
17236         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17237         * lib/getugroups.c (STREQ): Likewise.
17238         * lib/fnmatch.c (STREQ): Likewise.
17239         Spotted by Bruno Haible.
17240
17241 2009-07-04  Jim Meyering  <meyering@redhat.com>
17242
17243         argv-iter: new module
17244         * MODULES.html.sh: Add argv-iter.
17245         * lib/argv-iter.c, lib/argv-iter.h: New files.
17246         * modules/argv-iter: New file.
17247         * modules/argv-iter-tests: New file.
17248         * tests/test-argv-iter.c: Test it.
17249
17250 2009-07-04  Bruno Haible  <bruno@clisp.org>
17251
17252         Fix assertion.
17253         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17254         contains more exact copies of a given entry than file2, leave the extra
17255         copies unpaired rather than aborting.
17256         Reported by Eric Blake.
17257
17258 2009-07-02  Bruno Haible  <bruno@clisp.org>
17259
17260         Speedup git-merge-changelog for git cherry-pick.
17261         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17262         (entries_mapping_get): New function, extracted from compute_mapping.
17263         (entries_mapping_reverse_get): New function.
17264         (compute_mapping): Add a 'full' argument. Return the result in a
17265         'struct entries_mapping'.
17266         (main): Update. Access the mappings through entries_mapping_get.
17267         Reported by Eric Blake.
17268
17269 2009-07-02  Bruno Haible  <bruno@clisp.org>
17270
17271         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17272         best_i.
17273
17274 2009-07-02  Bruno Haible  <bruno@clisp.org>
17275
17276         Speed up approximate search for matching ChangeLog entries.
17277         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17278         argument. Call fstrcmp_bounded instead of fstrcmp.
17279         (compute_mapping, try_split_merged_entry, main): Update callers.
17280
17281 2009-07-02  Bruno Haible  <bruno@clisp.org>
17282
17283         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17284
17285 2009-06-30  Bruno Haible  <bruno@clisp.org>
17286
17287         Reduce the number of uc_is_cased calls.
17288         * lib/unicase.h (casing_suffix_context_t): Add
17289         'first_char_except_ignorable' field.
17290         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17291         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17292         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17293         Update initializer.
17294         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17295         case-ignorable characters.
17296         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17297         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17298         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17299         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17300         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17301
17302 2009-06-30  Bruno Haible  <bruno@clisp.org>
17303
17304         Tests for module 'unicase/ignorable'.
17305         * modules/unicase/ignorable-tests: New file.
17306         * tests/unicase/test-ignorable.c: New file, generated by
17307         gen-uni-tables.
17308
17309         Tests for module 'unicase/cased'.
17310         * modules/unicase/cased-tests: New file.
17311         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17312         * tests/unicase/test-predicate-part1.h: New file, derived from
17313         tests/unictype/test-predicate-part1.h.
17314         * tests/unicase/test-predicate-part2.h: New file, same as
17315         tests/unictype/test-predicate-part2.h.
17316
17317         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17318         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17319         (output_casing_properties): New function.
17320         (main): Call it.
17321         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17322         * lib/unicase/cased.c: Include unictype/bitmap.h.
17323         (uc_is_cased): Define through a bitmap lookup.
17324         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17325         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17326         (uc_is_case_ignorable): Define through a bitmap lookup.
17327         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17328         lib/unictype/bitmap.h.
17329         (Depends-on): Add inline. Clean up.
17330         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17331         lib/unictype/bitmap.h.
17332         (Depends-on): Add inline. Clean up.
17333         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17334         recognition.
17335         * tests/unicase/test-u16-tolower.c (main): Likewise.
17336         * tests/unicase/test-u32-tolower.c (main): Likewise.
17337
17338 2009-06-30  Bruno Haible  <bruno@clisp.org>
17339
17340         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17341         * lib/unicase/u16-casemap.c: Likewise.
17342         * lib/unicase/u32-casemap.c: Likewise.
17343
17344 2009-06-29  Bruno Haible  <bruno@clisp.org>
17345
17346         Define u32_casefold as a wrapper around u32_ct_casefold.
17347         * lib/unicase/u32-casefold.c: Update.
17348         * modules/unicase/u32-casefold (Depends-on): Add
17349         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17350         unicase/empty-suffix-context. Clean up.
17351
17352         Define u16_casefold as a wrapper around u16_ct_casefold.
17353         * lib/unicase/u16-casefold.c: Update.
17354         * modules/unicase/u16-casefold (Depends-on): Add
17355         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17356         unicase/empty-suffix-context. Clean up.
17357
17358         Define u8_casefold as a wrapper around u8_ct_casefold.
17359         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17360         * lib/unicase/u8-casefold.c: Update.
17361         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17362         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17363
17364         Define u32_totitle as a wrapper around u32_ct_totitle.
17365         * lib/unicase/u32-totitle.c: Update.
17366         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17367         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17368
17369         Define u16_totitle as a wrapper around u16_ct_totitle.
17370         * lib/unicase/u16-totitle.c: Update.
17371         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17372         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17373
17374         Define u8_totitle as a wrapper around u8_ct_totitle.
17375         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17376         functions.
17377         (FUNC): Delegate to U_CT_TOTITLE.
17378         * lib/unicase/u8-totitle.c: Update.
17379         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17380         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17381
17382         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17383         invocation.
17384         * modules/unicase/u32-tolower (Depends-on): Add
17385         unicase/empty-prefix-context, unicase/empty-suffix-context.
17386
17387         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17388         invocation.
17389         * modules/unicase/u16-tolower (Depends-on): Add
17390         unicase/empty-prefix-context, unicase/empty-suffix-context.
17391
17392         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17393         * modules/unicase/u8-tolower (Depends-on): Add
17394         unicase/empty-prefix-context, unicase/empty-suffix-context.
17395
17396         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17397         invocation.
17398         * modules/unicase/u32-toupper (Depends-on): Add
17399         unicase/empty-prefix-context, unicase/empty-suffix-context.
17400
17401         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17402         invocation.
17403         * modules/unicase/u16-toupper (Depends-on): Add
17404         unicase/empty-prefix-context, unicase/empty-suffix-context.
17405
17406         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
17407         * modules/unicase/u8-toupper (Depends-on): Add
17408         unicase/empty-prefix-context, unicase/empty-suffix-context.
17409
17410         New module 'unicase/u32-ct-casefold'.
17411         * lib/unicase/u32-ct-casefold.c: New file.
17412         * modules/unicase/u32-ct-casefold: New file.
17413
17414         New module 'unicase/u16-ct-casefold'.
17415         * lib/unicase/u16-ct-casefold.c: New file.
17416         * modules/unicase/u16-ct-casefold: New file.
17417
17418         New module 'unicase/u8-ct-casefold'.
17419         * lib/unicase/u8-ct-casefold.c: New file.
17420         * lib/unicase/u-ct-casefold.h: New file, derived from
17421         lib/unicase/u-casefold.h.
17422         * modules/unicase/u8-ct-casefold: New file.
17423
17424         New module 'unicase/u32-ct-totitle'.
17425         * lib/unicase/u32-ct-totitle.c: New file.
17426         * modules/unicase/u32-ct-totitle: New file.
17427
17428         New module 'unicase/u16-ct-totitle'.
17429         * lib/unicase/u16-ct-totitle.c: New file.
17430         * modules/unicase/u16-ct-totitle: New file.
17431
17432         New module 'unicase/u8-ct-totitle'.
17433         * lib/unicase/u8-ct-totitle.c: New file.
17434         * lib/unicase/u-ct-totitle.h: New file, derived from
17435         lib/unicase/u-totitle.h.
17436         * modules/unicase/u8-ct-totitle: New file.
17437
17438         New module 'unicase/u32-ct-tolower'.
17439         * lib/unicase/u32-ct-tolower.c: New file.
17440         * modules/unicase/u32-ct-tolower: New file.
17441
17442         New module 'unicase/u16-ct-tolower'.
17443         * lib/unicase/u16-ct-tolower.c: New file.
17444         * modules/unicase/u16-ct-tolower: New file.
17445
17446         New module 'unicase/u8-ct-tolower'.
17447         * lib/unicase/u8-ct-tolower.c: New file.
17448         * modules/unicase/u8-ct-tolower: New file.
17449
17450         New module 'unicase/u32-ct-toupper'.
17451         * lib/unicase/u32-ct-toupper.c: New file.
17452         * modules/unicase/u32-ct-toupper: New file.
17453
17454         New module 'unicase/u16-ct-toupper'.
17455         * lib/unicase/u16-ct-toupper.c: New file.
17456         * modules/unicase/u16-ct-toupper: New file.
17457
17458         New module 'unicase/u8-ct-toupper'.
17459         * lib/unicase/u8-ct-toupper.c: New file.
17460         * modules/unicase/u8-ct-toupper: New file.
17461
17462         Add context arguments to u*_casemap functions.
17463         * lib/unicase/unicasemap.h: Include unicase.h.
17464         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
17465         suffix_context arguments.
17466         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
17467         functions.
17468         (FUNC): Add prefix_context and suffix_context arguments. Use
17469         uc_is_cased and uc_is_case_ignorable.
17470         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
17471         * lib/unicase/u16-casemap.c: Likewise.
17472         * lib/unicase/u32-casemap.c: Likewise.
17473         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
17474         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17475         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
17476         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17477         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
17478         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
17479
17480         New module 'unicase/u32-suffix-context'.
17481         * lib/unicase/u32-suffix-context.c: New file.
17482         * modules/unicase/u32-suffix-context: New file.
17483
17484         New module 'unicase/u16-suffix-context'.
17485         * lib/unicase/u16-suffix-context.c: New file.
17486         * modules/unicase/u16-suffix-context: New file.
17487
17488         New module 'unicase/u8-suffix-context'.
17489         * lib/unicase/u8-suffix-context.c: New file.
17490         * lib/unicase/u-suffix-context.h: New file.
17491         * modules/unicase/u8-suffix-context: New file.
17492
17493         New module 'unicase/empty-suffix-context'.
17494         * lib/unicase/empty-suffix-context.c: New file.
17495         * modules/unicase/empty-suffix-context: New file.
17496
17497         New module 'unicase/u32-prefix-context'.
17498         * lib/unicase/u32-prefix-context.c: New file.
17499         * modules/unicase/u32-prefix-context: New file.
17500
17501         New module 'unicase/u16-prefix-context'.
17502         * lib/unicase/u16-prefix-context.c: New file.
17503         * modules/unicase/u16-prefix-context: New file.
17504
17505         New module 'unicase/u8-prefix-context'.
17506         * lib/unicase/u8-prefix-context.c: New file.
17507         * lib/unicase/u-prefix-context.h: New file.
17508         * lib/unicase/context.h: New file.
17509         * modules/unicase/u8-prefix-context: New file.
17510
17511         New module 'unicase/empty-prefix-context'.
17512         * lib/unicase/empty-prefix-context.c: New file.
17513         * modules/unicase/empty-prefix-context: New file.
17514
17515         New module 'unicase/ignorable'.
17516         * lib/unicase/ignorable.c: New file.
17517         * modules/unicase/ignorable: New file.
17518
17519         New module 'unicase/cased'.
17520         * lib/unicase/caseprop.h: New file.
17521         * lib/unicase/cased.c: New file.
17522         * modules/unicase/cased: New file.
17523
17524         New functions for case mapping of substrings.
17525         * lib/unicase.h (casing_prefix_context_t): New type.
17526         (unicase_empty_prefix_context): New variable.
17527         (u8_casing_prefix_context, u16_casing_prefix_context,
17528         u32_casing_prefix_context, u8_casing_prefixes_context,
17529         u16_casing_prefixes_context, u32_casing_prefixes_context): New
17530         declarations.
17531         (casing_suffix_context_t): New type.
17532         (unicase_empty_suffix_context): New variable.
17533         (u8_casing_suffix_context, u16_casing_suffix_context,
17534         u32_casing_suffix_context, u8_casing_suffixes_context,
17535         u16_casing_suffixes_context, u32_casing_suffixes_context,
17536         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
17537         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
17538         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
17539         declarations.
17540
17541 2009-06-28  Jim Meyering  <meyering@redhat.com>
17542
17543         boostrap: indent only with spaces
17544         * build-aux/bootstrap: Indent only with spaces, never TABs.
17545
17546         bootstrap: split long lines
17547         * build-aux/bootstrap: Keep line length < 80.
17548
17549         bootstrap: sync from coreutils
17550         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
17551         just as autoreconf does.  Verify a list of prerequisite
17552         package-name,version-number pairs if defined in bootstrap.conf.
17553         Refer to README-prereq, if prerequisites are not satisfied.
17554
17555 2009-06-27  Eric Blake  <ebb9@byu.net>
17556
17557         tests: add test for bogus NULL definition
17558         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
17559         * tests/test-stdlib.c: Likewise.
17560         * tests/test-string.c: Likewise.
17561         * tests/test-locale.c: Likewise.
17562         * tests/test-unistd.c: Likewise.
17563         * modules/stdio-tests (Depends-on): Add verify.
17564         * modules/stdlib-tests (Depends-on): Likewise.
17565         * modules/string-tests (Depends-on): Likewise.
17566         * modules/locale-tests (Depends-on): Likewise.
17567         * modules/unistd-tests (Depends-on): Likewise.
17568
17569 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
17570
17571         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
17572         self-explaining comment.
17573         * m4/selinux-selinux-h: Update serial.
17574         (gl_LIBSELINUX): New macro, adding a warning for missing development
17575         packages to code extracted from...
17576         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
17577         Add warning for missing development packages here, too.
17578
17579 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
17580
17581         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
17582
17583 2009-06-25  Eric Blake  <ebb9@byu.net>
17584
17585         version-etc: fix regression
17586         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
17587         gcc.
17588         (version_etc): Use it, to catch bugs with trailing NULL.
17589         * lib/version-etc.c (version_etc_arn): Delete unused argument.
17590         (version_etc_va): Fix logic bug.
17591         * modules/version-etc-tests: Add test.
17592         * tests/test-version-etc.c: New file.
17593         * tests/test-version-etc.sh: Likewise.
17594
17595 2009-06-25  Sam Steingold  <sds@gnu.org>
17596
17597         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
17598         mbtowc declaration.
17599
17600 2009-06-25  Eric Blake  <ebb9@byu.net>
17601
17602         fpurge: migrate into <stdio.h>
17603         * lib/fpurge.h: Delete...
17604         * lib/stdio.in.h (fpurge): ...and declare here, instead.
17605         * lib/fpurge.c (fpurge): Change declaring header.
17606         * modules/fpurge (Files): Drop deleted file.
17607         (Depends-on): Add stdio.
17608         (configure.ac): Set witness.
17609         * modules/stdio (Makefile.am): Support fpurge macros.
17610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17611         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
17612         * lib/fflush.c: Update client.
17613         * tests/test-fpurge.c: Likewise.
17614         * NEWS: Mention the change.
17615
17616 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17617
17618         * lib/argp-version-etc.c (program_authors): Add const
17619         qualifier.
17620         * lib/version-etc.c: Fix typos in the comments.
17621         * modules/argp-version-etc: Depends on version-etc.
17622
17623 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17624
17625         argp-version-etc: new module.
17626
17627         * lib/argp-version-etc.c: New file.
17628         * lib/argp-version-etc.h: New file.
17629         * modules/argp-version-etc: New file.
17630         * modules/argp-version-etc-tests: New file.
17631         * tests/test-argp-version-etc.c: New test.
17632         * tests/test-argp-version-etc-1.sh: New test.
17633
17634 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17635
17636         Provide additional interfaces and documentation for version-etc
17637         module.
17638
17639         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
17640         interfaces.
17641         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
17642         prototypes.
17643
17644 2009-06-24  Bruno Haible  <bruno@clisp.org>
17645
17646         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
17647         HAVE_LIB${NAME} macro.
17648         Reported by Sam Steingold <sds@gnu.org>.
17649
17650 2009-06-23  Simon Josefsson  <simon@josefsson.org>
17651
17652         * modules/hash-tests (test_hash_LDADD): Link to libintl when
17653         needed.
17654
17655 2009-06-21  Bruno Haible  <bruno@clisp.org>
17656
17657         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
17658         work.
17659         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
17660         together with LIB${NAME}, LTLIB${NAME}.
17661         Reported by Sam Steingold <sds@gnu.org>.
17662
17663 2009-06-20  Jim Meyering  <meyering@redhat.com>
17664
17665         tests: make sc_require_test_exit_idiom more generic
17666         * top/maint.mk (Exit_witness_file): New overridable variable.
17667         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
17668         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
17669
17670 2009-06-19  Jim Meyering  <meyering@redhat.com>
17671
17672         hash: reverse order of src/dst parameters in an internal interface
17673         * lib/hash.c (transfer_entries): Reverse order of parameters to
17674         put DST before SRC.  Adjust callers.
17675
17676         tests: test-hash: avoid wholesale duplication
17677         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
17678         Instead, use a loop and add a single conditional.
17679
17680         tests: test-hash: allow seed selection via a command line argument
17681         * tests/test-hash.c (get_seed): New function.
17682         (main): Use it.
17683
17684 2009-06-19  Eric Blake  <ebb9@byu.net>
17685
17686         hash: avoid memory leak on allocation failure
17687         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
17688         failure.  Factor repeated algorithm...
17689         (transfer_entries): ...into new helper routine.
17690         (hash_delete): React to hash_rehash return value.
17691
17692         hash: reduce memory pressure in hash_rehash no-op case
17693         * lib/hash.c (next_prime): Avoid overflow.
17694         (hash_initialize): Factor bucket size computation...
17695         (compute_bucket_size): ...into new helper function.
17696         (hash_rehash): Use new function and open coding to reduce memory
17697         pressure, and avoid a memory leak in USE_OBSTACK code.
17698         Reported by Jim Meyering.
17699
17700 2009-06-18  Eric Blake  <ebb9@byu.net>
17701
17702         hash: make rotation more obvious
17703         * modules/hash (Depends-on): Add bitrotate and stdint.
17704         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
17705         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
17706         (SIZE_MAX): Rely on headers for definition.
17707         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
17708         (raw_hasher): Use rotr_sz.
17709         Suggested by Jim Meyering.
17710
17711         hash: fix memory leak in last patch
17712         * lib/hash.c (hash_rehash): Avoid memory leak.
17713
17714         hash: avoid no-op rehashing
17715         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
17716
17717         hash: provide default callback functions
17718         * lib/hash.c (raw_hasher, raw_comparator): New functions.
17719         (hash_initialize): Use them as defaults.
17720         * tests/test-hash.c (main): Test this.
17721
17722         hash: minor optimization
17723         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
17724         when possible.
17725         (hash_initialize): Document this promise.
17726         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
17727         * tests/test-hash.c (hash_compare_strings): Test this.
17728
17729 2009-06-18  Bruno Haible  <bruno@clisp.org>
17730
17731         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
17732         going to be replaced anyway.
17733
17734 2009-06-18  Bruno Haible  <bruno@clisp.org>
17735
17736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
17737         in one place.
17738         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
17739         be replaced anyway.
17740
17741 2009-06-18  Eric Blake  <ebb9@byu.net>
17742
17743         hash: check for resize before insertion
17744         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
17745         threshold before insertion, so that a pathological hash_rehash
17746         that fills every bucket can still trigger another rehash.
17747
17748 2009-06-18  Jim Meyering  <meyering@redhat.com>
17749
17750         hash-tests: add a loop around the small tests
17751         * tests/test-hash.c (main): Repeat small tests with selected
17752         small initial table sizes.
17753
17754 2009-06-17  Eric Blake  <ebb9@byu.net>
17755
17756         hash: minor cleanups
17757         * lib/hash.h (hash_entry): Make opaque, by moving...
17758         * lib/hash.c (hash_entry): ...here.
17759         (hash_insert): Clarify restrictions on what can be inserted.
17760         (hash_get_next): Clarify when it is safe to remove an element
17761         during traversal.
17762         (check_tuning): Skip verification when tuning is known safe.
17763         (hash_initialize): Clarify restrictions on tuning.
17764
17765 2009-06-17  Jim Meyering  <jim@meyering.net>
17766         and Eric Blake  <ebb9@byu.net>
17767
17768         hash-tests: new module
17769         * modules/hash-tests: New file.
17770         * tests/test-hash.c: New file.
17771
17772 2009-06-17  Eric Blake  <ebb9@byu.net>
17773
17774         strstr-simple: document new module
17775         * MODULES.html.sh: Document new module.
17776
17777         strstr, strcasestr: replace on platforms with broken memchr
17778         * modules/strstr: Split into...
17779         * modules/strstr-simple: ...new module that does not care about
17780         performance, but does care about glibc bug.
17781         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
17782         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
17783         if platform memchr is broken, per Debian bug 521737.
17784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
17785         memchr.
17786         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
17787         * doc/posix-functions/strstr.texi (strstr): Document the fix.
17788         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17789         * modules/mountlist (Depends-on): Add strstr-simple.
17790         * modules/gen-uni-tables (Depends-on): Likewise.
17791         * modules/argz (Depends-on): Add strstr.
17792
17793 2009-06-17  Bruno Haible  <bruno@clisp.org>
17794
17795         * modules/posix_spawn-internal (Depends-on): Add errno.
17796
17797 2009-06-17  Bruno Haible  <bruno@clisp.org>
17798
17799         Define missing ESTALE on Interix 3.5.
17800         * lib/errno.in.h (ESTALE): Assign a value if missing.
17801         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
17802         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
17803         missing.
17804         * doc/posix-headers/errno.texi: Mention the Interix bug.
17805         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
17806
17807 2009-06-15  Eric Blake  <ebb9@byu.net>
17808
17809         memchr, memchr2: add valgrind exception
17810         * lib/memchr.valgrind: New file.
17811         * lib/memchr2.valgrind: New file.
17812         * modules/memchr (Files): Distribute valgrind file.
17813         * modules/memchr2 (Files): Likewise.
17814
17815         docs: memchr is no longer obsolete
17816         * MODULES.html.sh: Move memchr from obsolete to string.h section.
17817         * lib/string.in.h (memchr): Simplify logic.
17818
17819 2009-06-14  Jim Meyering  <meyering@redhat.com>
17820
17821         link-follow: fix the "checking..." message to not mention trailing slash
17822         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
17823         never considered trailing slashes.
17824
17825 2009-06-14  Bruno Haible  <bruno@clisp.org>
17826
17827         * m4/memchr.m4: Mention also the bug on IA-64.
17828         * doc/posix-functions/memchr.texi: Likewise.
17829
17830 2009-06-12  Eric Blake  <ebb9@byu.net>
17831
17832         memchr: detect broken x86_64 and alpha implementations
17833         * modules/memchr-tests (Depends-on): Move mmap detection...
17834         * modules/memchr (Depends-on): ...here.
17835         (configure.ac): Set indicator.
17836         * lib/string.in.h (memchr): Declare replacement.
17837         * modules/string (Makefile.am): Trigger replacement.
17838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17839         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
17840         bugs.
17841         * doc/posix-functions/memchr.texi (memchr): Document the bug.
17842         * modules/getpagesize (License): Relax license.
17843
17844 2009-06-11  Bruno Haible  <bruno@clisp.org>
17845
17846         * lib/idpriv.h: Add more references.
17847
17848 2009-06-08  Bruno Haible  <bruno@clisp.org>
17849
17850         Tests for module 'idpriv-droptemp'.
17851         * modules/idpriv-droptemp-tests: New file.
17852         * tests/test-idpriv-droptemp.sh: New file.
17853         * tests/test-idpriv-droptemp.su.sh: New file.
17854         * tests/test-idpriv-droptemp.c: New file.
17855
17856         New module 'idpriv-droptemp'.
17857         * lib/idpriv-droptemp.c: New file.
17858         * modules/idpriv-droptemp: New file.
17859
17860 2009-06-08  Bruno Haible  <bruno@clisp.org>
17861
17862         Tests for module 'idpriv-drop'.
17863         * modules/idpriv-drop-tests: New file.
17864         * tests/test-idpriv-drop.sh: New file.
17865         * tests/test-idpriv-drop.su.sh: New file.
17866         * tests/test-idpriv-drop.c: New file.
17867
17868         New module 'idpriv-drop'.
17869         * lib/idpriv.h: New file.
17870         * lib-idpriv-drop.c: New file.
17871         * m4/idpriv.m4: New file.
17872         * modules/idpriv-drop: New file.
17873
17874 2009-06-08  Bruno Haible  <bruno@clisp.org>
17875
17876         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
17877         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17878         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17879         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17880         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17881         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17882         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17883
17884 2009-06-08  Eric Blake  <ebb9@byu.net>
17885
17886         test-strstr: use memory fence, when possible
17887         * tests/test-strstr.c (main): Use memory fence, in order to be
17888         more likely to trigger Debian bug 521737.
17889         * modules/strstr-tests (Files): Pull in additional files.
17890
17891         memchr: no longer obsolete, for wider field testing
17892         * modules/memchr (Status, Notice): Delete, this module is no
17893         longer obsolete.
17894         * modules/vasnprintf (Depends-on): Add memchr.
17895
17896 2009-06-07  Jim Meyering  <meyering@redhat.com>
17897
17898         hash: declare some functions with the warn_unused_result attribute
17899         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
17900
17901 2009-06-07  Bruno Haible  <bruno@clisp.org>
17902
17903         * tests/test-alignof.c: Don't test int64_t if it does not exist.
17904         Reported by Eric Blake.
17905
17906 2009-06-06  Eric Blake  <ebb9@byu.net>
17907
17908         test-alignof: fix typo with long double
17909         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
17910         compiler error.
17911
17912 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
17913
17914         Escape non-texinfo { and }s.
17915         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
17916         markup error.
17917
17918 2009-06-04  Jim Meyering  <meyering@redhat.com>
17919
17920         gitlog-to-changelog: don't infloop on an empty commit log
17921         * build-aux/gitlog-to-changelog: Warn about an empty log message.
17922         Reported by Boris Petersen <transacid@centerim.org>.
17923
17924 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
17925
17926         version-etc: extend for packagers
17927         Add three new configure options, intended for packagers:
17928           --with-packager="packager name"
17929           --with-packager-version="packager-specific version"
17930           --with-packager-bug-reports="packager bug reporting"
17931         An example with coreutils:
17932           $ ./configure \
17933             --with-packager=Gentoo \
17934             --with-packager-bug-report=http://bugs.gentoo.org/ \
17935             --with-packager-version="patchset 1.6"
17936           $ ./src/ls --version | head -n2
17937           ls (GNU coreutils) 7.1-dirty
17938           Packaged by Gentoo (patchset 1.6)
17939         Note that the bug reporting info via --help doesn't show up because
17940         coreutils uses its own custom emit_bug_reporting_address() implementation
17941         in src/system.h.  If it didn't, it'd look like:
17942           $ ./src/ls --help | tail -n4
17943           Report bugs to <bug-coreutils@gnu.org>.
17944           Report Gentoo bugs to <http://bugs.gentoo.org/>.
17945           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
17946           General help using GNU software: <http://www.gnu.org/gethelp/>.
17947         * lib/version-etc.c: Print new information, if provided.
17948         * m4/version-etc.m4: New file.
17949         * modules/version-etc (Files): Add m4/version-etc.m4.
17950         (configure.ac): Add gl_VERSION_ETC.
17951
17952 2009-05-31  Bruno Haible  <bruno@clisp.org>
17953
17954         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
17955         and 'int64_t'.
17956         * modules/alignof-tests (Dependencies): Add stdint.
17957         Reported by Eric Blake.
17958
17959 2009-05-31  Bruno Haible  <bruno@clisp.org>
17960
17961         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
17962         restriction due to compiler bugs.
17963         Reported by Eric Blake.
17964
17965 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17966             Bruno Haible  <bruno@clisp.org>
17967
17968         Fix test-alignof failure.
17969         * lib/alignof.h (alignof_slot): New macro.
17970         (alignof_type): New macro, with the same semantics as the previous
17971         'alignof'.
17972         (alignof): Alias to alignof_slot.
17973         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17974         check that the results are usable as constant expressions.
17975
17976 2009-05-31  Bruno Haible  <bruno@clisp.org>
17977
17978         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17979         * tests/test-memchr.c (main): Check that memchr does not read past the
17980         first occurrence of the byte.
17981         * tests/test-strstr.c (main): Update comment.
17982         Suggested by Eric Blake.
17983
17984 2009-05-30  Bruno Haible  <bruno@clisp.org>
17985
17986         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17987         detail how to use dumpbin.
17988         Reported by David Byron <dbyron@dbyron.com>.
17989
17990 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17991
17992         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17993
17994 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17995
17996         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17997
17998 2009-05-28  Bruno Haible  <bruno@clisp.org>
17999
18000         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18001         build-aux/ files.
18002
18003 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18004
18005         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18006
18007 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18008
18009         * gnulib-tool (sed_transform_main_lib_file)
18010         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18011         regexps.
18012
18013 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18014
18015         * tests/test-strstr.c: Add another self-test.
18016         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18017         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18018
18019 2009-05-23  Bruno Haible  <bruno@clisp.org>
18020
18021         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18022         change.
18023
18024 2009-05-21  Bruno Haible  <bruno@clisp.org>
18025
18026         Simplify use of mode_t varargs.
18027         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18028         uses 'mode_t' or 'int'.
18029         * lib/openat.c (openat): Likewise.
18030         * lib/open-safer.c (open_safer): Likewise.
18031         * m4/mode_t.m4: New file.
18032         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18033         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18034         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18035         * modules/open (Files): Add m4/mode_t.m4.
18036         * modules/openat (Files): Likewise.
18037         * modules/fcntl-safer (Files): Likewise.
18038         Suggested by Eric Blake.
18039
18040 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18041
18042         * doc/glibc-functions/fallocate.texi: New file.
18043         * doc/gnulib.texi: Include it.
18044
18045 2009-05-21  Eric Blake  <ebb9@byu.net>
18046             Bruno Haible  <bruno@clisp.org>
18047
18048         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18049         invocations.
18050         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18051
18052 2009-05-21  Eric Blake  <ebb9@byu.net>
18053             Bruno Haible  <bruno@clisp.org>
18054
18055         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18056         include_next. Fix of 2008-11-20 commit.
18057         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18058         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18059         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18060         NEXT_MATH_H.
18061         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18062         instead of NEXT_MATH_H.
18063
18064 2009-05-21  Bruno Haible  <bruno@clisp.org>
18065
18066         Avoid redefinition warnings for SIZE_MAX.
18067         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18068         Reported by Simon Josefsson.
18069
18070 2009-05-21  Bruno Haible  <bruno@clisp.org>
18071
18072         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18073         AC_CACHE_VAL.
18074
18075 2009-05-20  Bruno Haible  <bruno@clisp.org>
18076
18077         Make zeroptr.h work on mingw.
18078         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18079         mprotect.
18080         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18081         * modules/memchr2-tests (configure.ac): Likewise.
18082         * modules/memcmp-tests (configure.ac): Likewise.
18083         * modules/memmem-tests (configure.ac): Likewise.
18084         * modules/memrchr-tests (configure.ac): Likewise.
18085         Reported by Simon Josefsson.
18086
18087 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18088
18089         * tests/test-glob.c: Include string.h for strcmp prototype.
18090
18091 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18092
18093         * modules/getdelim (Depends-on): Add explicit stdint, although it
18094         was implicitly already pulled in via realloc-posix.
18095         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18096
18097 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18098
18099         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18100         G. Christensen" <tgc@jupiterrise.com>.
18101         * m4/sys_socket_h.m4: Check for sa_family_t.
18102         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18103         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18104         * tests/test-sys_socket.c: Check that sa_family_t works.
18105
18106 2009-05-18  Eric Blake  <ebb9@byu.net>
18107
18108         maint.mk: allow gnulib_dir in VPATH build
18109         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18110
18111 2009-05-15  Jim Meyering  <meyering@redhat.com>
18112
18113         maint.mk: Give gnulib_dir a default definition.
18114         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18115         Thus, most packages no longer need to specify this variable in cfg.mk
18116
18117 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18118
18119         rename.m4: fix typos that would make non-mingw cross-configure fail
18120         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18121
18122 2009-05-13  Eric Blake  <ebb9@byu.net>
18123
18124         mmap-anon: avoid out-of-order autoconf expansion
18125         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18126         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18127         * modules/memchr-tests (Depends-on): Add extensions.
18128         * modules/memchr2-tests (Depends-on): Add extensions.
18129         * modules/memcmp-tests (Depends-on): Add extensions.
18130         * modules/memmem-tests (Depends-on): Add extensions.
18131         * modules/memrchr-tests (Depends-on): Add extensions.
18132
18133 2009-05-13  Bruno Haible  <bruno@clisp.org>
18134
18135         Make some tests ISO C 99 compliant.
18136         * tests/zerosize-ptr.h: New file.
18137         * tests/test-memchr.c: Include zerosize-ptr.h.
18138         (main): Use a zero-size object pointer instead of NULL.
18139         * tests/test-memchr2.c: Include zerosize-ptr.h.
18140         (main): Use a zero-size object pointer instead of NULL.
18141         * tests/test-memcmp.c: Include zerosize-ptr.h.
18142         (main): Use a zero-size object pointer instead of NULL.
18143         * tests/test-memmem.c: Include zerosize-ptr.h.
18144         (main): Use a zero-size object pointer instead of NULL.
18145         * tests/test-memrchr.c: Include zerosize-ptr.h.
18146         (main): Use a zero-size object pointer instead of NULL.
18147         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18148         m4/mmap-anon.m4.
18149         (Depends-on): Add getpagesize.
18150         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18151         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18152         m4/mmap-anon.m4.
18153         (Depends-on): Add getpagesize.
18154         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18155         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18156         m4/mmap-anon.m4.
18157         (Depends-on): Add getpagesize.
18158         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18159         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18160         m4/mmap-anon.m4.
18161         (Depends-on): Add getpagesize.
18162         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18163         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18164         m4/mmap-anon.m4.
18165         (Depends-on): Add getpagesize.
18166         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18167
18168 2009-05-12  Bruno Haible  <bruno@clisp.org>
18169
18170         Tests for module 'alignof'.
18171         * modules/alignof-tests: New file.
18172         * tests/test-alignof.c: New file.
18173
18174 2009-05-12  Bruno Haible  <bruno@clisp.org>
18175
18176         Fix alignof macro.
18177         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18178         vendor compilers that are always correct.
18179
18180 2009-05-12  Bruno Haible  <bruno@clisp.org>
18181
18182         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18183         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18184         not whether its fully works.
18185
18186 2009-05-12  Bruno Haible  <bruno@clisp.org>
18187
18188         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18189
18190 2009-05-12  Jim Meyering  <meyering@redhat.com>
18191
18192         * top/maint.mk: Adjust backslash alignment.
18193
18194 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18195
18196         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18197
18198 2009-05-11  Eric Blake  <ebb9@byu.net>
18199
18200         argp: avoid undefined behavior
18201         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18202         macros.
18203
18204 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18205
18206         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18207         user.name to prevent git commit from complaining.
18208
18209 2009-05-10  Bruno Haible  <bruno@clisp.org>
18210
18211         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18212         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18213         it rewrites every file name only once.
18214         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18215
18216 2009-05-08  Bruno Haible  <bruno@clisp.org>
18217
18218         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18219         instead of 'max'.
18220
18221 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18222
18223         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18224         sockaddr_storage test.
18225
18226 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18227
18228         * modules/sys_socket (Makefile.am): Substitute
18229         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18230         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18231         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18232         * tests/test-sys_socket.c: Check sockaddr_storage.
18233
18234 2009-05-08  Bruno Haible  <bruno@clisp.org>
18235
18236         New module 'alignof'.
18237         * lib/alignof.h: New file.
18238         * modules/alignof: New file.
18239
18240 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18241             Bruno Haible  <bruno@clisp.org>
18242
18243         Fix test-file-has-acl on FreeBSD.
18244         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18245         mask is implicitly added.
18246         * tests/test-file-has-acl.c: Include <signal.h>.
18247         (main): Terminate the test after 5 seconds.
18248         * modules/acl-tests (configure.ac): Check for alarm function.
18249
18250 2009-05-04  Bruno Haible  <bruno@clisp.org>
18251
18252         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18254         * modules/errno (configure.ac): Drop AC_REQUIRE.
18255         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18256         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18257
18258 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18259
18260         * modules/glob-tests: New module.
18261         * tests/test-glob.c: Add.
18262
18263 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18264
18265         * modules/fnmatch-tests: New module.
18266         * tests/test-fnmatch.c: Add.
18267
18268 2009-05-04  Eric Blake  <ebb9@byu.net>
18269
18270         maint: make the new no-submodule-changes rule VPATH-safe
18271         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18272
18273 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18274             Bruno Haible  <bruno@clisp.org>
18275
18276         acl: Fix infinite loop on FreeBSD.
18277         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18278         of return value from acl_get_entry.
18279         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18280         Likewise.
18281
18282 2009-05-03  Bruno Haible  <bruno@clisp.org>
18283
18284         * lib/acl-internal.h (acl_entries): Clarify return value.
18285         * lib/acl_entries.c (acl_entries): Likewise.
18286
18287 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18288
18289         Bug fix in acl module.
18290         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18291
18292 2009-05-03  Bruno Haible  <bruno@clisp.org>
18293
18294         Create gperf-generated file in the source dir, not in the build dir.
18295         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18296         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18297         * modules/unicase/locale-language (unicase/locale-languages.h):
18298         Likewise.
18299         * modules/unicase/special-casing (unicase/special-casing-table.h):
18300         Likewise.
18301         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18302         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18303         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18304         Reported by Ralf Wildenhues.
18305
18306 2009-05-03  Bruno Haible  <bruno@clisp.org>
18307
18308         * modules/fnmatch (Description, configure.ac): Taken from
18309         fnmatch-posix.
18310         * modules/fnmatch-posix: Turn into a symbolic reference to the
18311         'fnmatch' module, and deprecate.
18312         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18313
18314 2009-05-03  Bruno Haible  <bruno@clisp.org>
18315
18316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18317         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18318         Reported by Ralf Wildenhues.
18319
18320 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18321
18322         * m4/fnmatch.m4: Fix fnmatch re-define.
18323
18324 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18325
18326         priv-set: new module and tests; adapt write-any-file
18327         * lib/priv-set.c: New file.
18328         * lib/priv-set.h: New file.
18329         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18330         * lib/write-any-file.c: Simplify by using priv-set module.
18331         * m4/priv-set.m4: New file.
18332         * modules/priv-set: New file.
18333         * modules/unlinkdir: Add dependency on priv-set module.
18334         * modules/write-any-file: Likewise.
18335
18336         Tests for module 'priv-set'.
18337         * modules/priv-set-tests: New file.
18338         * tests/test-priv-set.c: New file.
18339
18340 2009-05-03  Jim Meyering  <meyering@redhat.com>
18341             Bruno Haible  <bruno@clisp.org>
18342
18343         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18344         use the converted UTF-8 variant of the name instead.
18345
18346 2009-05-03  Jim Meyering  <meyering@redhat.com>
18347
18348         tests: tighten some getdate tests
18349         * tests/test-getdate.c (main): Tighten tests: require equality,
18350         not just greater than.  Set TZ envvar to UTC0.
18351
18352 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18353
18354         getdate: correctly interpret "next monday" when run on a Monday
18355         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18356         that e.g., "next tues" (when run on a tuesday) results in a date
18357         that is one week in the future, and not today's date.
18358         I.e., add a week when the wday is the same as the current one.
18359         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18360         and earlier by Martin Bernreuther and Jan Minář.
18361         * tests/test-getdate.c (main): Check that "next DAY" is always in
18362         the future and that "last DAY" is always in the past.
18363
18364 2009-05-02  Jim Meyering  <meyering@redhat.com>
18365
18366         build: ensure that a release build fails when a submodule is unclean
18367         * top/maint.mk (no-submodule-changes): New rule.
18368         (alpha beta major): Depend on it.
18369
18370 2009-05-02  Bruno Haible  <bruno@clisp.org>
18371
18372         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18373         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18374         shell variable gl_fnmatch_required to detect which variant is
18375         requested.
18376         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18377         gl_FUNC_FNMATCH_POSIX.
18378         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18379         exclude fnmatch-posix.
18380
18381 2009-05-02  Bruno Haible  <bruno@clisp.org>
18382
18383         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18384         * modules/mbsrtowcs (License): Change to LGPLv2+.
18385         * modules/strnlen1 (License): Likewise.
18386         Reported by Simon Josefsson.
18387
18388 2009-05-02  Bruno Haible  <bruno@clisp.org>
18389
18390         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18391         "cross".
18392         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18393         gnulib-tool was called with option --source-base=lib.
18394
18395 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18396
18397         Use automake *-local hooks without commands, for extensibility.
18398         * modules/localcharset (Makefile.am): Rename install-exec-local
18399         rule to install-exec-localcharset, and make it a prerequisite of
18400         install-exec-local.  Likewise, rename the uninstall-local rule to
18401         uninstall-localcharset, and make it a prerequisite of the former.
18402
18403 2009-05-01  Bruno Haible  <bruno@clisp.org>
18404
18405         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
18406         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18407         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
18408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
18409         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
18410         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18411         m4/locale-zh.m4, m4/codeset.m4.
18412
18413         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
18414         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
18415         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
18416         m4/locale-zh.m4.
18417
18418         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
18419         REPLACE_WCRTOMB if mbstate_t must be replaced.
18420         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
18421         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
18422
18423 2009-05-01  Bruno Haible  <bruno@clisp.org>
18424
18425         Avoid compiler warnings when redefining macros defined by <libintl.h>.
18426         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
18427         dngettext, dcngettext, textdomain, bindtextdomain,
18428         bind_textdomain_codeset): Undefine before redefining.
18429
18430 2009-04-30  Bruno Haible  <bruno@clisp.org>
18431
18432         Fix bug introduced on 2009-04-25.
18433         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
18434         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
18435         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
18436         is defined.
18437         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
18438         is defined.
18439         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
18440         is defined.
18441         Reported by Elbert_Pol <elbert.pol@gmail.com>.
18442
18443 2009-04-28  Bruno Haible  <bruno@clisp.org>
18444
18445         Comment tweaks.
18446         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
18447         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
18448         * lib/unicase.h (u*_casexfrm): Likewise.
18449         Reported by Paolo Bonzini.
18450
18451 2009-04-28  Bruno Haible  <bruno@clisp.org>
18452
18453         Fix a compilation error.
18454         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
18455         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
18456         Reported by Jim Meyering.
18457
18458 2009-04-27  Bruno Haible  <bruno@clisp.org>
18459
18460         New module 'libunistring'.
18461         * modules/libunistring: New file.
18462         * m4/libunistring.m4: New file.
18463         * MODULES.html.sh (Unicode string functions): Add it.
18464
18465 2009-04-27  Eric Blake  <ebb9@byu.net>
18466
18467         maint.mk: allow package-specific header to provide <config.h>
18468         * top/maint.mk (sc_require_config_h): New variable.
18469         (sc_require_config_h, sc_require_config_h_first): Use it.
18470
18471 2009-04-27  Simon Josefsson  <simon@josefsson.org>
18472
18473         * top/maint.mk (sc_avoid_if_before_free): Except
18474         useless-if-before-free script.
18475
18476 2009-04-27  Eric Blake  <ebb9@byu.net>
18477
18478         maintainer-makefile: depend on all required helper scripts
18479         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
18480         useless-if-before-free.
18481         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
18482         version, rather than assuming gnulib checkout is available.
18483         Reported by Simen Josefsson.
18484
18485 2009-04-26  Bruno Haible  <bruno@clisp.org>
18486
18487         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
18488         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
18489         "../" or "..".
18490
18491 2009-04-26  Bruno Haible  <bruno@clisp.org>
18492
18493         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
18494         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
18495         AC_LIB_HAVE_LINKFLAGS.
18496
18497 2009-04-26  Bruno Haible  <bruno@clisp.org>
18498
18499         Simplify calling convention of u*_conv_from_encoding.
18500         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
18501         u32_conv_from_encoding): Expect a resultbuf argument and return the
18502         result directly as a pointer.
18503         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
18504         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
18505         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
18506         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
18507         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
18508         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18509         Update.
18510         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
18511         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
18512         * lib/vasnprintf.c (VASNPRINTF): Update.
18513         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
18514         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
18515         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
18516         * NEWS: Mention the change.
18517
18518 2009-04-26  Bruno Haible  <bruno@clisp.org>
18519
18520         Simplify calling convention of u*_conv_to_encoding.
18521         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
18522         u32_conv_to_encoding): Expect a resultbuf argument and return the
18523         result directly as a pointer.
18524         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18525         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
18526         freeing scaled_offsets if mem_iconveha failed.
18527         * lib/unicase/u-casexfrm.h (FUNC): Update.
18528         * lib/uninorm/u-normxfrm.h (FUNC): Update.
18529         * lib/vasnprintf.c (VASNPRINTF): Update.
18530         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
18531         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
18532         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
18533         * NEWS: Mention the change.
18534
18535 2009-04-26  Bruno Haible  <bruno@clisp.org>
18536
18537         Avoid test failures on AIX and OSF/1.
18538         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
18539         malloc(0).
18540         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18541         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
18542         Likewise.
18543         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
18544         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
18545         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
18546         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
18547         * doc/posix-functions/malloc.texi: Document the portability problem
18548         related to malloc(0).
18549
18550 2009-04-26  Bruno Haible  <bruno@clisp.org>
18551
18552         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
18553         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
18554         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
18555
18556 2009-04-25  Bruno Haible  <bruno@clisp.org>
18557
18558         Avoid link error when creating a namespace clean library.
18559         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
18560         as macro with arguments if already defined as an alias.
18561         * lib/signbitf.c (gl_signbitf): Don't undefine.
18562         * lib/signbitd.c (gl_signbitd): Don't undefine.
18563         * lib/signbitl.c (gl_signbitl): Don't undefine.
18564
18565 2009-04-25  Jim Meyering  <meyering@redhat.com>
18566
18567         vc-list-files: fix another quoting bug
18568         * build-aux/vc-list-files: Avoid sed backslash expansion
18569         of pathological directory names.
18570
18571 2009-04-25  Eric Blake  <ebb9@byu.net>
18572
18573         vc-list-files: fix shell quoting error
18574         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
18575         timestamp.
18576
18577 2009-04-25  Jim Meyering  <meyering@redhat.com>
18578
18579         vc-list-files: restore lost functionality with subdir argument
18580         * build-aux/vc-list-files: When given a non-"." sub-directory
18581         argument, substitute the $dir/ prefix back onto each resulting name.
18582         Otherwise, coreutils' root_tests check would fail.
18583
18584 2009-04-24  Eric Blake  <ebb9@byu.net>
18585
18586         vc-list-files: ignore git symlinks
18587         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
18588         than ls-files, to ignore git symlinks.
18589
18590         maint.mk: import improvements from m4
18591         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
18592         (move_if_change): Delete unused macro.
18593         (news-date-check, vc-diff-check): Support VPATH builds.
18594         (announcement): Likewise.  Split --bootstrap-tools list...
18595         (boostrap-tools): ...into separate list, which can be overridden
18596         in cfg.mk.
18597         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
18598         requiring dependency on useless-if-before-free module.
18599         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
18600         Support VPATH builds.
18601
18602 2009-04-24  Jim Meyering  <meyering@redhat.com>
18603
18604         maint.mk: remove coreutils-specific rules and variables
18605         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
18606         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
18607         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
18608
18609         maint.mk: remove obsolete rule
18610         * top/maint.mk (rel-check): Remove rule.
18611         (WGET, WGETFLAGS): Remove now-unused variables.
18612
18613 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18614
18615         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
18616         consistency.
18617
18618         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
18619         '$(PATH_SEPARATOR)' instead of ':'.
18620
18621 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18622
18623         * lib/getopt1.c (main): Use 'const' for static array.
18624
18625 2009-04-24  Simon Josefsson  <simon@josefsson.org>
18626
18627         * top/maint.mk: Sync with coreutils.
18628         * NEWS: Explain incompatibilities.
18629
18630 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18631             Bruno Haible  <bruno@clisp.org>
18632
18633         Fix cross-compilation results.
18634         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
18635         statement, as third argument of AC_TRY_RUN.
18636         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18637         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18638         Likewise.
18639         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18640         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18641         Likewise.
18642         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
18644         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
18645
18646 2009-04-20  Bruno Haible  <bruno@clisp.org>
18647
18648         Avoid test failure on mingw.
18649         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
18650
18651 2009-04-20  Bruno Haible  <bruno@clisp.org>
18652
18653         Avoid compilation error on mingw.
18654         * modules/localename-tests (Depends-on): Add locale.
18655
18656 2009-04-19  Bruno Haible  <bruno@clisp.org>
18657
18658         Support for building a shared library on Windows platforms.
18659         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
18660         (main): Test the presence of UNINORM_NFC here.
18661         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
18662         (main): Test the presence of UNINORM_NFD here.
18663         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
18664         (main): Test the presence of UNINORM_NFKC here.
18665         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
18666         (main): Test the presence of UNINORM_NFKD here.
18667
18668 2009-04-19  Bruno Haible  <bruno@clisp.org>
18669
18670         Avoid a compiler warning.
18671         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
18672         Change type of variable 'sequence'.
18673
18674 2009-04-19  Bruno Haible  <bruno@clisp.org>
18675
18676         * modules/configmake (Makefile.am): When the contents of configmake.h
18677         does not change, arrange to preserve its modification time.
18678
18679 2009-04-17  Simon Josefsson  <simon@josefsson.org>
18680
18681         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
18682         gettext domain.
18683
18684 2009-04-16  Jim Meyering  <meyering@redhat.com>
18685
18686         useless-if-before-free: improve conversion code
18687         * build-aux/useless-if-before-free: Adjust code-in-comment to match
18688         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
18689
18690 2009-04-14  Bruno Haible  <bruno@clisp.org>
18691
18692         * modules/fcntl (Depends-on): Add extensions.
18693         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
18694
18695 2009-04-12  Ben Pfaff  <blp@gnu.org>
18696
18697         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
18698         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
18699
18700 2009-03-20  Ben Pfaff  <blp@gnu.org>
18701
18702         Make rename replace existing destinations on Windows.
18703         * m4/rename.m4: Add test for Mingw.
18704         * lib/rename.c: Add rename replacement that uses MoveFileEx with
18705         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
18706         * doc/posix-functions/rename.texi: Document.
18707
18708 2009-04-10  Bruno Haible  <bruno@clisp.org>
18709
18710         New include file "iconveh.h".
18711         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
18712         * lib/striconveh.h: Include it.
18713         (enum iconv_ilseq_handler): Remove definition.
18714         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
18715         striconveh.h.
18716         * lib/striconveha.c: Include striconveh.h.
18717         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
18718         * modules/striconveh (Files): Add lib/iconveh.h.
18719         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
18720         lib/striconveh.h.
18721
18722 2009-04-10  Bruno Haible  <bruno@clisp.org>
18723
18724         * lib/uniconv.h: Update comment.
18725
18726 2009-04-10  Bruno Haible  <bruno@clisp.org>
18727
18728         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
18729         always.
18730         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
18731         * lib/unistr/u16-mbtouc-aux.c: Likewise.
18732         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
18733         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
18734         "unistring-notinline.h", so that the function gets defined always.
18735         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
18736         * lib/unistr/u8-uctomb.c: Likewise.
18737         * lib/unistr/u16-mbtouc.c: Likewise.
18738         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
18739         * lib/unistr/u16-uctomb.c: Likewise.
18740         * lib/unistr/u32-mbtouc.c: Likewise.
18741         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
18742         * lib/unistr/u32-uctomb.c: Likewise.
18743
18744 2009-04-10  Bruno Haible  <bruno@clisp.org>
18745
18746         Mark 'utime' obsolete.
18747         * modules/utime (Status, Notice): New sections.
18748         Suggested by Jim Meyering.
18749
18750         Fix cross-compile guess for utime test.
18751         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
18752         autoconf.
18753         * doc/posix-functions/utime.texi: Give more precisions.
18754         Reported by Jan <ipif@ymail.com>.
18755
18756 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
18757
18758         filevercmp: correct today's change
18759         * lib/filevercmp.c: Also handle coreutils' test inputs.
18760         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
18761
18762         Fix regression in 'filevercmp' module. Thanks Sven Joachim
18763         for reporting it.
18764         * lib/filevercmp.c: Special handle for "", "." and "..".
18765         * tests/test-filevercmp.c: Enlarge the set suite.
18766
18767 2009-04-07  Jim Meyering  <meyering@redhat.com>
18768
18769         useless-if-before-free: show how to remove braced useless free, too
18770         * build-aux/useless-if-before-free: still only in a comment, though.
18771
18772 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
18773
18774         maint.mk: import changes to syntax-check macros from coreutils
18775         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
18776         Use them in the relevant macros.
18777
18778 2009-04-06  Bruno Haible  <bruno@clisp.org>
18779
18780         Fix unportable use of bit-fields.
18781         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
18782         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
18783         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
18784
18785 2009-04-06  Bruno Haible  <bruno@clisp.org>
18786
18787         Avoid test failures on AIX and OSF/1.
18788         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
18789         that malloc(0) = NULL.
18790         * tests/unicase/test-u8-tolower.c (check): Likewise.
18791         * tests/unicase/test-u8-totitle.c (check): Likewise.
18792         * tests/unicase/test-u8-toupper.c (check): Likewise.
18793         * tests/unicase/test-u16-casefold.c (check): Likewise.
18794         * tests/unicase/test-u16-tolower.c (check): Likewise.
18795         * tests/unicase/test-u16-totitle.c (check): Likewise.
18796         * tests/unicase/test-u16-toupper.c (check): Likewise.
18797         * tests/unicase/test-u32-casefold.c (check): Likewise.
18798         * tests/unicase/test-u32-tolower.c (check): Likewise.
18799         * tests/unicase/test-u32-totitle.c (check): Likewise.
18800         * tests/unicase/test-u32-toupper.c (check): Likewise.
18801         * tests/uninorm/test-u8-nfc.c (check): Likewise.
18802         * tests/uninorm/test-u8-nfd.c (check): Likewise.
18803         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
18804         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
18805         * tests/uninorm/test-u16-nfc.c (check): Likewise.
18806         * tests/uninorm/test-u16-nfd.c (check): Likewise.
18807         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
18808         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
18809         * tests/uninorm/test-u32-nfc.c (check): Likewise.
18810         * tests/uninorm/test-u32-nfd.c (check): Likewise.
18811         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
18812         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
18813
18814 2009-04-05  Bruno Haible  <bruno@clisp.org>
18815
18816         Work around an autoconf limitation.
18817         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
18818         comment line if it would be longer than 3 KB.
18819
18820 2009-04-05  Bruno Haible  <bruno@clisp.org>
18821
18822         Avoid test failure with libiconv-1.13.
18823         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
18824         of the expected test results.
18825
18826 2009-04-05  Bruno Haible  <bruno@clisp.org>
18827
18828         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
18829         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
18830         that it should be installed.
18831
18832 2009-04-05  Bruno Haible  <bruno@clisp.org>
18833
18834         * gnulib-tool: New option --copy-file.
18835         (func_usage): Document it.
18836         (func_dest_tmpfilename): Moved out of func_import.
18837         (func_add_file, func_update_file): New functions, extracted from
18838         func_import.
18839         (func_import): Update.
18840
18841 2009-04-05  Karl Berry  <karl@gnu.org>
18842
18843         * README: prominently mention gnulib-tool.
18844         Rearrange sections so getting the code is near the top.
18845
18846 2009-04-05  Bruno Haible  <bruno@clisp.org>
18847
18848         * lib/unicase.h: Mention u*_cmp2.
18849         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18850         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
18851         * lib/unicase/ulc-casecmp.c: Likewise.
18852         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
18853         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
18854         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
18855         unistr/u8-cmp.
18856         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
18857         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
18858         unistr/u16-cmp.
18859         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
18860         unistr/u32-cmp.
18861
18862         * lib/uninorm.h: Mention u*_cmp2.
18863         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18864         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
18865         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
18866         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
18867         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
18868         unistr/u8-cmp.
18869         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
18870         unistr/u16-cmp.
18871         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
18872         unistr/u32-cmp.
18873
18874         New module 'unistr/u32-cmp2'.
18875         * lib/unistr/u32-cmp2.c: New file.
18876         * modules/unistr/u32-cmp2: New file.
18877
18878         New module 'unistr/u16-cmp2'.
18879         * lib/unistr/u16-cmp2.c: New file.
18880         * modules/unistr/u16-cmp2: New file.
18881
18882         New module 'unistr/u8-cmp2'.
18883         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
18884         * lib/unistr/u8-cmp2.c: New file.
18885         * lib/unistr/u-cmp2.h: New file.
18886         * modules/unistr/u8-cmp2: New file.
18887
18888 2009-04-05  Bruno Haible  <bruno@clisp.org>
18889
18890         * lib/unictype.h (uc_property_is_valid): New macro.
18891         * tests/unictype/test-pr_byname.c (main): Use it.
18892
18893         * lib/unistr.h: Doc fixes.
18894         * lib/uniconv.h: Doc fixes.
18895         * lib/unictype.h: Doc fixes.
18896
18897 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18898
18899         Port coreutils 7.2 to Solaris 8.
18900
18901         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
18902         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
18903         for Solaris 8.  This is a bit of a hack, as it means it's the
18904         caller's responsibility to add -lnsl if needed, but most likely it
18905         won't be needed since only getaddrinfo uses this and getaddrinfo
18906         isn't needed on Solaris 8.
18907
18908         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
18909         problem to Solaris 8 encountered with coreutils 7.2, which
18910         resulted in a message "fnmatch.c:292: warning: passing argument 4
18911         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
18912         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
18913
18914 2009-04-03  Simon Josefsson  <simon@josefsson.org>
18915
18916         * m4/ld-version-script.m4: Add FIXME comment.
18917
18918 2009-04-02  Simon Josefsson  <simon@josefsson.org>
18919
18920         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
18921         SOVERSION variable.
18922
18923 2009-04-02  Bruno Haible  <bruno@clisp.org>
18924
18925         * Makefile (info, html, dvi, pdf): Combine the rules.
18926         Suggested by Jim Meyering.
18927
18928 2009-04-01  Bruno Haible  <bruno@clisp.org>
18929
18930         * Makefile (info, html, dvi, pdf): New targets.
18931         Reported by Reuben Thomas <rrt@sc3d.org>.
18932
18933 2009-04-01  Bruno Haible  <bruno@clisp.org>
18934
18935         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
18936         can be put into PATH.
18937         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
18938
18939 2009-04-01  Bruno Haible  <bruno@clisp.org>
18940
18941         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
18942
18943 2009-04-01  Bruno Haible  <bruno@clisp.org>
18944
18945         Rename module 'visibility'.
18946         * modules/lib-symbol-visibility: Renamed from modules/visibility.
18947         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
18948         * doc/gnulib.texi: Update.
18949         * MODULES.html.sh (Misc): Update.
18950         * NEWS: Mention the change.
18951
18952 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18953
18954         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
18955         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
18956         Eric Blake <ebb9@byu.net> for review.
18957         * MODULES.html.sh: Add lib-msvc-compat.
18958         * doc/gnulib.texi: Link to new section.
18959         * m4/ld-output-def.m4: New file.
18960         * doc/ld-output-def.texi: New file.
18961
18962 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18963
18964         Rename ld-version-script to lib-symbol-versions.  Suggested by
18965         Bruno Haible <bruno@clisp.org>.
18966         * modules/ld-version-script: Renamed to lib-symbol-versions.
18967         * doc/ld-version-script.texi: Fix module name.
18968         * MODULES.html.sh: Add lib-symbol-versions.
18969
18970 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18971
18972         * modules/u64-tests: New file.
18973         * tests/test-u64.c: New file.
18974
18975 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18976
18977         * MODULES.html.sh: Mention u64.
18978         * modules/u64: New module.
18979         * modules/crypto/sha512: Depend on u64 module instead of providing
18980         u64.h.
18981
18982 2009-03-27  Eric Blake  <ebb9@byu.net>
18983
18984         test-strerror: make debugging EAI_SYSTEM easier
18985         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18986         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18987         failure was EAI_SYSTEM.
18988
18989 2009-03-25  Bruno Haible  <bruno@clisp.org>
18990
18991         Fix a problem with --enable-relocatable on Solaris 7.
18992         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18993         since 2008-02-24.
18994
18995 2009-03-25  Eric Blake  <ebb9@byu.net>
18996
18997         test-sockets: avoid gcc warning
18998         * tests/test-sockets.c (main): Silence compiler warning.
18999
19000 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19001
19002         New modules nproc, pthread, contributed by Glen Lenker.
19003
19004         * MODULES.html.sh: Add pthread, nproc.
19005         * lib/nproc.c: New file.
19006         * lib/nproc.h: New file.
19007         * lib/pthread.in.h: New file.
19008         * m4/pthread.m4: New file.
19009         * modules/nproc: New file.
19010         * modules/pthread: New file.
19011
19012 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19013
19014         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19015         New variable.
19016
19017 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19018
19019         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19020         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19021         * tests/test-filevercmp.c: Add tests for backup suffixes.
19022
19023 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19024
19025         * modules/stdlib (Depends-on): Add stdint, needed when defining
19026         struct random_data on, for example, HP-UX 10.20.  Reported by
19027         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19028
19029 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19030
19031         * lib/readline.c (readline): Call fflush on stdout after printing
19032         prompt.
19033
19034 2009-03-20  Bruno Haible  <bruno@clisp.org>
19035
19036         Remove dependency from 'close' module to -lws2_32 on native Windows.
19037         * lib/close-hook.h: New file.
19038         * lib/close-hook.c: New file.
19039         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19040         w32sock.h.
19041         (_gl_close_fd_maybe_socket): Remove function.
19042         (rpl_close): Invoke execute_all_close_hooks instead of
19043         _gl_close_fd_maybe_socket.
19044         * lib/sockets.c: Include close-hook.h, w32sock.h.
19045         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19046         (close_sockets_hook): New variable.
19047         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19048         (gl_sockets_cleanup): Unregister it.
19049         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19050         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19051         * modules/close-hook: New file.
19052         * modules/close (Files): Remove lib/w32sock.h.
19053         (Depends-on): Add close-hook.
19054         (Link): Remove section.
19055         * modules/sockets (Files): Add lib/w32sock.h.
19056         (Depends-on): Add close-hook.
19057         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19058         invocation.
19059         * NEWS: Mention that LIB_CLOSE is gone.
19060
19061 2009-03-23  Eric Blake  <ebb9@byu.net>
19062
19063         signal-tests: test previous patch
19064         * tests/test-signal.c: New file.
19065         * modules/signal-tests: Likewise.
19066
19067         signal.h: always support 'volatile sig_atomic_t'
19068         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19069         (gl_SIGNAL_H_DEFAULTS): Add a default.
19070         * modules/signal (Makefile.am): Substitute if needed.
19071         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19072         users can blindly add volatile.
19073         * doc/posix-headers/signal.texi (signal.h): Document it.
19074         Reported by Matthew Woehlke.
19075
19076 2009-03-23  Jim Meyering  <meyering@redhat.com>
19077
19078         pathmax: PATH_MAX: use pathconf only when available
19079         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19080         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19081         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19082         This avoids a link failure in a PSP cross-compilation environment
19083         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19084
19085         * lib/vasnprintf.c (divide): Fix typo in comment.
19086
19087 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19088
19089         * gnulib-tool (func_filter_filelist): Fix comment.
19090
19091 2009-03-20  Bruno Haible  <bruno@clisp.org>
19092
19093         Make sockets.h self-contained.
19094         * lib/sockets.c: Include sockets.h first.
19095         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19096
19097 2009-03-19  Eric Blake  <ebb9@byu.net>
19098
19099         doc: mention more functions added in cygwin 1.7.0
19100         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19101         addition.
19102         * doc/posix-functions/log2f.texi: Likewise.
19103
19104 2009-03-19  Jim Meyering  <meyering@redhat.com>
19105
19106         fsusage: avoid syntax error due to statement-before-declaration
19107         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19108         after all declarations.  Reported by Matthew Woehlke in
19109         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19110
19111 2009-03-18  Eric Blake  <ebb9@byu.net>
19112
19113         build-aux/compile: sync from automake
19114         * build-aux/compile: New file, from automake.
19115         * config/srclist.txt: Mention build-aux/compile.
19116
19117 2009-03-17  Bruno Haible  <bruno@clisp.org>
19118
19119         * lib/git-merge-changelog.c: Fix typo in comment.
19120         Reported by Reuben Thomas <rrt@sc3d.org>.
19121
19122 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19123
19124         * m4/regex.m4: update and improve help for
19125         --without-included-regex.
19126
19127 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19128
19129         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19130         failure on missing include files.
19131
19132 2009-03-17  Eric Blake  <ebb9@byu.net>
19133
19134         doc: mention more functions added in cygwin 1.7.0
19135         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19136         addition.
19137         * doc/posix-functions/fwscanf.texi: Likewise.
19138         * doc/posix-functions/swprintf.texi: Likewise.
19139         * doc/posix-functions/swscanf.texi: Likewise.
19140         * doc/posix-functions/vfwprintf.texi: Likewise.
19141         * doc/posix-functions/vfwscanf.texi: Likewise.
19142         * doc/posix-functions/vswprintf.texi: Likewise.
19143         * doc/posix-functions/vswscanf.texi: Likewise.
19144         * doc/posix-functions/vwprintf.texi: Likewise.
19145         * doc/posix-functions/vwscanf.texi: Likewise.
19146         * doc/posix-functions/wcscasecmp.texi: Likewise.
19147         * doc/posix-functions/wcsdup.texi: Likewise.
19148         * doc/posix-functions/wcsftime.texi: Likewise.
19149         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19150         * doc/posix-functions/wprintf.texi: Likewise.
19151         * doc/posix-functions/wscanf.texi: Likewise.
19152         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19153
19154 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19155
19156         maint.mk: really add $(AM_MAKEFLAGS)
19157         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19158         was inadvertently omitted in the last commit.
19159         Spotted by Bruno Haible.
19160
19161         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19162         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19163         $(AM_MAKEFLAGS)' rather than plain `make'.
19164
19165         gnulib-tool: execute $MAKE not make
19166         * gnulib-tool: Default $MAKE to 'make'.
19167         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19168         than make.  Initialize $MAKE in the do-autobuild script.
19169
19170         gnulib-tool: use $MAKE not make in generated files
19171         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19172         make, in generated files.  Initialize $MAKE in the do-autobuild
19173         script.
19174
19175         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19176
19177         GNUmakefile: disable parallelism only for multiple, recursive targets
19178         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19179         additions in the Makefile.
19180         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19181         by Automake.
19182         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19183         are listed on the command line and at least one of them is
19184         listed in $(ALL_RECURSIVE_TARGETS).
19185
19186 2009-03-14  Bruno Haible  <bruno@clisp.org>
19187
19188         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19189         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19190         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19191         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19192         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19193         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19194         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19195         unistr/u8-uctomb.
19196         * modules/unistr/u8-strchr (Depends-on): Likewise.
19197         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19198         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19199         unistr/u16-uctomb.
19200         * modules/unistr/u16-strchr (Depends-on): Likewise.
19201         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19202
19203 2009-03-12  Bruno Haible  <bruno@clisp.org>
19204
19205         Work around select() bug on Interix 3.5.
19206         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19207         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19208         * m4/select.m4: New file.
19209         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19210         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19211         * modules/select (Files): Add m4/select.m4.
19212         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19213         * modules/nanosleep (Depends-on): Add select.
19214         * modules/poll (Depends-on): Likewise.
19215         * doc/posix-functions/select.texi: Mention the Interix bug.
19216         Reported by Markus Duft <mduft@gentoo.org>.
19217
19218         * lib/select.c: Renamed from lib/winsock-select.c.
19219         * modules/select (Files): Add lib/select.c, remove
19220         lib/winsock-select.c.
19221         (configure.ac): Update.
19222
19223 2009-03-12  Jim Meyering  <meyering@redhat.com>
19224
19225         avoid gcc warnings about unused macro definitions
19226         * lib/readtokens.c (STREQ): Remove unused definition.
19227         * lib/xmalloc.c (SIZE_MAX): Likewise.
19228         * lib/openat-die.c (N_): Likewise.
19229         * lib/mountlist.c (SIZE_MAX): Remove definition.
19230         Instead, include <stdint.h>.
19231         * lib/readutmp.c: Likewise.
19232         * modules/readutmp (Depends-on): Add stdint.
19233         * modules/mountlist (Depends-on): Add stdint.
19234         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19235
19236 2009-03-10  Bruno Haible  <bruno@clisp.org>
19237
19238         Tests for module 'mbmemcasecoll'.
19239         * modules/mbmemcasecoll-tests: New file.
19240         * tests/test-mbmemcasecoll1.sh: New file.
19241         * tests/test-mbmemcasecoll2.sh: New file.
19242         * tests/test-mbmemcasecoll3.sh: New file.
19243         * tests/test-mbmemcasecoll.c: New file.
19244
19245         New module 'mbmemcasecoll'.
19246         * lib/mbmemcasecoll.h: New file.
19247         * lib/mbmemcasecoll.c: New file.
19248         * modules/mbmemcasecoll: New file.
19249
19250         * tests/test-mbmemcasecmp.h: New file, extracted from
19251         tests/test-mbmemcasecmp.c.
19252         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19253         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19254         (main): Update.
19255         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19256
19257 2009-03-09  Bruno Haible  <bruno@clisp.org>
19258
19259         Tests for module 'mbmemcasecmp'.
19260         * modules/mbmemcasecmp-tests: New file.
19261         * tests/test-mbmemcasecmp1.sh: New file.
19262         * tests/test-mbmemcasecmp2.sh: New file.
19263         * tests/test-mbmemcasecmp3.sh: New file.
19264         * tests/test-mbmemcasecmp.c: New file.
19265
19266         New module 'mbmemcasecmp'.
19267         * lib/mbmemcasecmp.h: New file.
19268         * lib/mbmemcasecmp.c: New file.
19269         * modules/mbmemcasecmp: New file.
19270
19271 2009-03-09  Bruno Haible  <bruno@clisp.org>
19272
19273         Tests for module 'unicase/ulc-casecoll'.
19274         * modules/unicase/ulc-casecoll-tests: New file.
19275         * tests/unicase/test-ulc-casecoll1.sh: New file.
19276         * tests/unicase/test-ulc-casecoll2.sh: New file.
19277         * tests/unicase/test-ulc-casecoll.c: New file.
19278
19279         New module 'unicase/ulc-casecoll'.
19280         * lib/unicase.h (ulc_casecoll): New declaration.
19281         * lib/unicase/ulc-casecoll.c: New file.
19282         * modules/unicase/ulc-casecoll: New file.
19283
19284         New module 'unicase/ulc-casexfrm'.
19285         * lib/unicase.h (ulc_casexfrm): New declaration.
19286         * lib/unicase/ulc-casexfrm.c: New file.
19287         * modules/unicase/ulc-casexfrm: New file.
19288
19289 2009-03-09  Bruno Haible  <bruno@clisp.org>
19290
19291         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19292         invocations.
19293
19294         * m4/mbscasecmp.m4: Remove file.
19295         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19296         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19297
19298         * m4/mbscasestr.m4: Remove file.
19299         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19300         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19301
19302         * m4/mbschr.m4: Remove file.
19303         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19304         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19305
19306         * m4/mbscspn.m4: Remove file.
19307         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19308         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19309
19310         * m4/mbslen.m4: Remove file.
19311         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19312         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19313
19314         * m4/mbsncasecmp.m4: Remove file.
19315         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19316         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19317
19318         * m4/mbsnlen.m4: Remove file.
19319         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19320         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19321
19322         * m4/mbspbrk.m4: Remove file.
19323         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19324         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19325
19326         * m4/mbspcasecmp.m4: Remove file.
19327         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19328         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19329
19330         * m4/mbsrchr.m4: Remove file.
19331         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19332         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19333
19334         * m4/mbssep.m4: Remove file.
19335         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19336         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19337
19338         * m4/mbsspn.m4: Remove file.
19339         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19340         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19341
19342         * m4/mbsstr.m4: Remove file.
19343         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19344         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19345
19346         * m4/mbstok_r.m4: Remove file.
19347         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19348         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19349
19350         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19351
19352         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19353         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19354
19355         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19356
19357 2009-03-08  Bruno Haible  <bruno@clisp.org>
19358
19359         Tests for module 'unicase/ulc-casecmp'.
19360         * modules/unicase/ulc-casecmp-tests: New file.
19361         * tests/unicase/test-ulc-casecmp1.sh: New file.
19362         * tests/unicase/test-ulc-casecmp2.sh: New file.
19363         * tests/unicase/test-ulc-casecmp.c: New file.
19364
19365         New module 'unicase/ulc-casecmp'.
19366         * lib/unicase.h (ulc_casecmp): New declaration.
19367         * lib/unicase/ulc-casecmp.c: New file.
19368         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19369         'const SRC_UNIT *'.
19370         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19371         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19372         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19373         * modules/unicase/ulc-casecmp: New file.
19374
19375         Tests for module 'unicase/u32-is-cased'.
19376         * modules/unicase/u32-is-cased-tests: New file.
19377         * tests/unicase/test-u32-is-cased.c: New file.
19378
19379         Tests for module 'unicase/u16-is-cased'.
19380         * modules/unicase/u16-is-cased-tests: New file.
19381         * tests/unicase/test-u16-is-cased.c: New file.
19382
19383         Tests for module 'unicase/u8-is-cased'.
19384         * modules/unicase/u8-is-cased-tests: New file.
19385         * tests/unicase/test-u8-is-cased.c: New file.
19386         * tests/unicase/test-is-cased.h: New file.
19387
19388         New module 'unicase/u32-is-cased'.
19389         * lib/unicase/u32-is-cased.c: New file.
19390         * modules/unicase/u32-is-cased: New file.
19391
19392         New module 'unicase/u16-is-cased'.
19393         * lib/unicase/u16-is-cased.c: New file.
19394         * modules/unicase/u16-is-cased: New file.
19395
19396         New module 'unicase/u8-is-cased'.
19397         * lib/unicase/u8-is-cased.c: New file.
19398         * lib/unicase/u-is-cased.h: New file.
19399         * modules/unicase/u8-is-cased: New file.
19400
19401         Tests for module 'unicase/u32-is-casefolded'.
19402         * modules/unicase/u32-is-casefolded-tests: New file.
19403         * tests/unicase/test-u32-is-casefolded.c: New file.
19404
19405         Tests for module 'unicase/u16-is-casefolded'.
19406         * modules/unicase/u16-is-casefolded-tests: New file.
19407         * tests/unicase/test-u16-is-casefolded.c: New file.
19408
19409         Tests for module 'unicase/u8-is-casefolded'.
19410         * modules/unicase/u8-is-casefolded-tests: New file.
19411         * tests/unicase/test-u8-is-casefolded.c: New file.
19412         * tests/unicase/test-is-casefolded.h: New file.
19413
19414         New module 'unicase/u32-is-casefolded'.
19415         * lib/unicase/u32-is-casefolded.c: New file.
19416         * modules/unicase/u32-is-casefolded: New file.
19417
19418         New module 'unicase/u16-is-casefolded'.
19419         * lib/unicase/u16-is-casefolded.c: New file.
19420         * modules/unicase/u16-is-casefolded: New file.
19421
19422         New module 'unicase/u8-is-casefolded'.
19423         * lib/unicase/u8-is-casefolded.c: New file.
19424         * modules/unicase/u8-is-casefolded: New file.
19425
19426         Tests for module 'unicase/u32-is-titlecase'.
19427         * modules/unicase/u32-is-titlecase-tests: New file.
19428         * tests/unicase/test-u32-is-titlecase.c: New file.
19429
19430         Tests for module 'unicase/u16-is-titlecase'.
19431         * modules/unicase/u16-is-titlecase-tests: New file.
19432         * tests/unicase/test-u16-is-titlecase.c: New file.
19433
19434         Tests for module 'unicase/u8-is-titlecase'.
19435         * modules/unicase/u8-is-titlecase-tests: New file.
19436         * tests/unicase/test-u8-is-titlecase.c: New file.
19437         * tests/unicase/test-is-titlecase.h: New file.
19438
19439         New module 'unicase/u32-is-titlecase'.
19440         * lib/unicase/u32-is-titlecase.c: New file.
19441         * modules/unicase/u32-is-titlecase: New file.
19442
19443         New module 'unicase/u16-is-titlecase'.
19444         * lib/unicase/u16-is-titlecase.c: New file.
19445         * modules/unicase/u16-is-titlecase: New file.
19446
19447         New module 'unicase/u8-is-titlecase'.
19448         * lib/unicase/u8-is-titlecase.c: New file.
19449         * modules/unicase/u8-is-titlecase: New file.
19450
19451         Tests for module 'unicase/u32-is-lowercase'.
19452         * modules/unicase/u32-is-lowercase-tests: New file.
19453         * tests/unicase/test-u32-is-lowercase.c: New file.
19454
19455         Tests for module 'unicase/u16-is-lowercase'.
19456         * modules/unicase/u16-is-lowercase-tests: New file.
19457         * tests/unicase/test-u16-is-lowercase.c: New file.
19458
19459         Tests for module 'unicase/u8-is-lowercase'.
19460         * modules/unicase/u8-is-lowercase-tests: New file.
19461         * tests/unicase/test-u8-is-lowercase.c: New file.
19462         * tests/unicase/test-is-lowercase.h: New file.
19463
19464         New module 'unicase/u32-is-lowercase'.
19465         * lib/unicase/u32-is-lowercase.c: New file.
19466         * modules/unicase/u32-is-lowercase: New file.
19467
19468         New module 'unicase/u16-is-lowercase'.
19469         * lib/unicase/u16-is-lowercase.c: New file.
19470         * modules/unicase/u16-is-lowercase: New file.
19471
19472         New module 'unicase/u8-is-lowercase'.
19473         * lib/unicase/u8-is-lowercase.c: New file.
19474         * modules/unicase/u8-is-lowercase: New file.
19475
19476         Tests for module 'unicase/u32-is-uppercase'.
19477         * modules/unicase/u32-is-uppercase-tests: New file.
19478         * tests/unicase/test-u32-is-uppercase.c: New file.
19479
19480         Tests for module 'unicase/u16-is-uppercase'.
19481         * modules/unicase/u16-is-uppercase-tests: New file.
19482         * tests/unicase/test-u16-is-uppercase.c: New file.
19483
19484         Tests for module 'unicase/u8-is-uppercase'.
19485         * modules/unicase/u8-is-uppercase-tests: New file.
19486         * tests/unicase/test-u8-is-uppercase.c: New file.
19487         * tests/unicase/test-is-uppercase.h: New file.
19488
19489         New module 'unicase/u32-is-uppercase'.
19490         * lib/unicase/u32-is-uppercase.c: New file.
19491         * modules/unicase/u32-is-uppercase: New file.
19492
19493         New module 'unicase/u16-is-uppercase'.
19494         * lib/unicase/u16-is-uppercase.c: New file.
19495         * modules/unicase/u16-is-uppercase: New file.
19496
19497         New module 'unicase/u8-is-uppercase'.
19498         * lib/unicase/u8-is-uppercase.c: New file.
19499         * modules/unicase/u8-is-uppercase: New file.
19500
19501         New module 'unicase/u32-is-invariant'.
19502         * lib/unicase/u32-is-invariant.c: New file.
19503         * modules/unicase/u32-is-invariant: New file.
19504
19505         New module 'unicase/u16-is-invariant'.
19506         * lib/unicase/u16-is-invariant.c: New file.
19507         * modules/unicase/u16-is-invariant: New file.
19508
19509         New module 'unicase/u8-is-invariant'.
19510         * lib/unicase/u8-is-invariant.c: New file.
19511         * lib/unicase/invariant.h: New file.
19512         * lib/unicase/u-is-invariant.h: New file.
19513         * modules/unicase/u8-is-invariant: New file.
19514
19515         Tests for module 'unicase/u32-casecoll'.
19516         * modules/unicase/u32-casecoll-tests: New file.
19517         * tests/unicase/test-u32-casecoll.c: New file.
19518
19519         Tests for module 'unicase/u16-casecoll'.
19520         * modules/unicase/u16-casecoll-tests: New file.
19521         * tests/unicase/test-u16-casecoll.c: New file.
19522
19523         Tests for module 'unicase/u8-casecoll'.
19524         * modules/unicase/u8-casecoll-tests: New file.
19525         * tests/unicase/test-u8-casecoll.c: New file.
19526
19527         New module 'unicase/u32-casecoll'.
19528         * lib/unicase/u32-casecoll.c: New file.
19529         * modules/unicase/u32-casecoll: New file.
19530
19531         New module 'unicase/u16-casecoll'.
19532         * lib/unicase/u16-casecoll.c: New file.
19533         * modules/unicase/u16-casecoll: New file.
19534
19535         New module 'unicase/u8-casecoll'.
19536         * lib/unicase/u8-casecoll.c: New file.
19537         * lib/unicase/u-casecoll.h: New file.
19538         * modules/unicase/u8-casecoll: New file.
19539
19540         New module 'unicase/u32-casexfrm'.
19541         * lib/unicase/u32-casexfrm.c: New file.
19542         * modules/unicase/u32-casexfrm: New file.
19543
19544         New module 'unicase/u16-casexfrm'.
19545         * lib/unicase/u16-casexfrm.c: New file.
19546         * modules/unicase/u16-casexfrm: New file.
19547
19548         New module 'unicase/u8-casexfrm'.
19549         * lib/unicase/u8-casexfrm.c: New file.
19550         * lib/unicase/u-casexfrm.h: New file.
19551         * modules/unicase/u8-casexfrm: New file.
19552
19553         Tests for module 'unicase/u32-casecmp'.
19554         * modules/unicase/u32-casecmp-tests: New file.
19555         * tests/unicase/test-u32-casecmp.c: New file.
19556
19557         Tests for module 'unicase/u16-casecmp'.
19558         * modules/unicase/u16-casecmp-tests: New file.
19559         * tests/unicase/test-u16-casecmp.c: New file.
19560
19561         Tests for module 'unicase/u8-casecmp'.
19562         * modules/unicase/u8-casecmp-tests: New file.
19563         * tests/unicase/test-u8-casecmp.c: New file.
19564         * tests/unicase/test-casecmp.h: New file.
19565
19566         New module 'unicase/u32-casecmp'.
19567         * lib/unicase/u32-casecmp.c: New file.
19568         * modules/unicase/u32-casecmp: New file.
19569
19570         New module 'unicase/u16-casecmp'.
19571         * lib/unicase/u16-casecmp.c: New file.
19572         * modules/unicase/u16-casecmp: New file.
19573
19574         New module 'unicase/u8-casecmp'.
19575         * lib/unicase/u8-casecmp.c: New file.
19576         * lib/unicase/u-casecmp.h: New file.
19577         * modules/unicase/u8-casecmp: New file.
19578
19579         Tests for module 'unicase/u32-casefold'.
19580         * modules/unicase/u32-casefold-tests: New file.
19581         * tests/unicase/test-u32-casefold.c: New file.
19582
19583         Tests for module 'unicase/u16-casefold'.
19584         * modules/unicase/u16-casefold-tests: New file.
19585         * tests/unicase/test-u16-casefold.c: New file.
19586
19587         Tests for module 'unicase/u8-casefold'.
19588         * modules/unicase/u8-casefold-tests: New file.
19589         * tests/unicase/test-u8-casefold.c: New file.
19590
19591         New module 'unicase/u32-casefold'.
19592         * lib/unicase/u32-casefold.c: New file.
19593         * modules/unicase/u32-casefold: New file.
19594
19595         New module 'unicase/u16-casefold'.
19596         * lib/unicase/u16-casefold.c: New file.
19597         * modules/unicase/u16-casefold: New file.
19598
19599         New module 'unicase/u8-casefold'.
19600         * lib/unicase/u8-casefold.c: New file.
19601         * lib/unicase/u-casefold.h: New file.
19602         * modules/unicase/u8-casefold: New file.
19603
19604         New module 'unicase/tocasefold'.
19605         * lib/unicase/casefold.h: New file.
19606         * lib/unicase/tocasefold.c: New file.
19607         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
19608         * modules/unicase/tocasefold: New file.
19609
19610         Tests for module 'unicase/u32-totitle'.
19611         * modules/unicase/u32-totitle-tests: New file.
19612         * tests/unicase/test-u32-totitle.c: New file.
19613
19614         Tests for module 'unicase/u16-totitle'.
19615         * modules/unicase/u16-totitle-tests: New file.
19616         * tests/unicase/test-u16-totitle.c: New file.
19617
19618         Tests for module 'unicase/u8-totitle'.
19619         * modules/unicase/u8-totitle-tests: New file.
19620         * tests/unicase/test-u8-totitle.c: New file.
19621
19622         New module 'unicase/u32-totitle'.
19623         * lib/unicase/u32-totitle.c: New file.
19624         * modules/unicase/u32-totitle: New file.
19625
19626         New module 'unicase/u16-totitle'.
19627         * lib/unicase/u16-totitle.c: New file.
19628         * modules/unicase/u16-totitle: New file.
19629
19630         New module 'unicase/u8-totitle'.
19631         * lib/unicase/u8-totitle.c: New file.
19632         * lib/unicase/u-totitle.h: New file.
19633         * modules/unicase/u8-totitle: New file.
19634
19635         Tests for module 'unicase/u32-tolower'.
19636         * modules/unicase/u32-tolower-tests: New file.
19637         * tests/unicase/test-u32-tolower.c: New file.
19638
19639         Tests for module 'unicase/u16-tolower'.
19640         * modules/unicase/u16-tolower-tests: New file.
19641         * tests/unicase/test-u16-tolower.c: New file.
19642
19643         Tests for module 'unicase/u8-tolower'.
19644         * modules/unicase/u8-tolower-tests: New file.
19645         * tests/unicase/test-u8-tolower.c: New file.
19646
19647         New module 'unicase/u32-tolower'.
19648         * lib/unicase/u32-tolower.c: New file.
19649         * modules/unicase/u32-tolower: New file.
19650
19651         New module 'unicase/u16-tolower'.
19652         * lib/unicase/u16-tolower.c: New file.
19653         * modules/unicase/u16-tolower: New file.
19654
19655         New module 'unicase/u8-tolower'.
19656         * lib/unicase/u8-tolower.c: New file.
19657         * modules/unicase/u8-tolower: New file.
19658
19659         Tests for module 'unicase/u32-toupper'.
19660         * modules/unicase/u32-toupper-tests: New file.
19661         * tests/unicase/test-u32-toupper.c: New file.
19662
19663         Tests for module 'unicase/u16-toupper'.
19664         * modules/unicase/u16-toupper-tests: New file.
19665         * tests/unicase/test-u16-toupper.c: New file.
19666
19667         Tests for module 'unicase/u8-toupper'.
19668         * modules/unicase/u8-toupper-tests: New file.
19669         * tests/unicase/test-u8-toupper.c: New file.
19670
19671         New module 'unicase/u32-toupper'.
19672         * lib/unicase/u32-toupper.c: New file.
19673         * modules/unicase/u32-toupper: New file.
19674
19675         New module 'unicase/u16-toupper'.
19676         * lib/unicase/u16-toupper.c: New file.
19677         * modules/unicase/u16-toupper: New file.
19678
19679         New module 'unicase/u8-toupper'.
19680         * lib/unicase/u8-toupper.c: New file.
19681         * modules/unicase/u8-toupper: New file.
19682
19683         New module 'unicase/u32-casemap'.
19684         * lib/unicase/u32-casemap.c: New file.
19685         * modules/unicase/u32-casemap: New file.
19686
19687         New module 'unicase/u16-casemap'.
19688         * lib/unicase/u16-casemap.c: New file.
19689         * modules/unicase/u16-casemap: New file.
19690
19691         New module 'unicase/u8-casemap'.
19692         * lib/unicase/unicasemap.h: New file.
19693         * lib/unicase/u8-casemap.c: New file.
19694         * lib/unicase/u-casemap.h: New file.
19695         * modules/unicase/u8-casemap: New file.
19696
19697         New module 'unicase/special-casing'.
19698         * lib/unicase/special-casing.h: New file.
19699         * lib/unicase/special-casing.c: New file.
19700         * lib/unicase/special-casing-table.gperf: New file, generated by
19701         gen-uni-tables.c.
19702         * modules/unicase/special-casing: New file.
19703
19704         Tests for module 'unicase/locale-language'.
19705         * modules/unicase/locale-language-tests: New file.
19706         * tests/unicase/test-locale-language.sh: New file.
19707         * tests/unicase/test-locale-language.c: New file.
19708
19709         New module 'unicase/locale-language'.
19710         * lib/unicase/locale-language.c: New file.
19711         * lib/unicase/locale-languages.gperf: New file.
19712         * modules/unicase/locale-language: New file.
19713
19714         Generate more tables for case conversion and case folding.
19715         * lib/gen-uni-tables.c (SCC_*): New enum items.
19716         (struct special_casing_rule): New type.
19717         (casing_rules, num_casing_rules, allocated_casing_rules): New
19718         variables.
19719         (add_casing_rule, fill_casing_rules): New functions.
19720         (struct casefold_rule): New type.
19721         (casefolding_rules, num_casefolding_rules,
19722         allocated_casefolding_rules): New variables.
19723         (fill_casefolding_rules): New function.
19724         (unicode_casefold): New variable.
19725         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
19726         sort_casing_rules, output_casing_rules): New functions.
19727         (main): Accept to more arguments: SpecialCasing.txt and
19728         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
19729         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
19730         Output mapping for casefolding.
19731
19732         * lib/unicase.h: Include stdbool.h, uninorm.h.
19733         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
19734         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
19735         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
19736         arguments.
19737         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
19738         resultp arguments.
19739         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
19740         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
19741         resultp arguments.
19742         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
19743         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
19744         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
19745         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
19746         declarations.
19747         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
19748
19749 2009-03-08  Bruno Haible  <bruno@clisp.org>
19750
19751         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19752         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
19753         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
19754         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19755
19756 2009-03-07  Bruno Haible  <bruno@clisp.org>
19757
19758         Adjust u*_normcmp, u*_normcoll API.
19759         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19760         u16_normcoll, u32_normcoll): Change failure conventions.
19761         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
19762         errno and return -1.
19763         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19764
19765 2009-03-07  Bruno Haible  <bruno@clisp.org>
19766
19767         Tests for module 'uninorm/u32-normcoll'.
19768         * modules/uninorm/u32-normcoll-tests: New file.
19769         * tests/uninorm/test-u32-normcoll.c: New file.
19770
19771         Tests for module 'uninorm/u16-normcoll'.
19772         * modules/uninorm/u16-normcoll-tests: New file.
19773         * tests/uninorm/test-u16-normcoll.c: New file.
19774
19775         Tests for module 'uninorm/u8-normcoll'.
19776         * modules/uninorm/u8-normcoll-tests: New file.
19777         * tests/uninorm/test-u8-normcoll.c: New file.
19778
19779 2009-03-07  Bruno Haible  <bruno@clisp.org>
19780
19781         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
19782         tests/uninorm/test-u32-normcmp.c.
19783         * tests/uninorm/test-u32-normcmp.c: Include it.
19784         (test_nonascii): New function, extracted from main. Add some more
19785         tests.
19786         (main): Invoke test_ascii and test_nonascii.
19787         * modules/uninorm/u32-normcmp-tests (Files): Add
19788         tests/uninorm/test-u32-normcmp.h.
19789         (Depends-on): Remove uninorm/u32-normcmp.
19790
19791         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
19792         tests/uninorm/test-u16-normcmp.c.
19793         * tests/uninorm/test-u16-normcmp.c: Include it.
19794         (test_nonascii): New function, extracted from main. Add some more
19795         tests.
19796         (main): Invoke test_ascii and test_nonascii.
19797         * modules/uninorm/u16-normcmp-tests (Files): Add
19798         tests/uninorm/test-u16-normcmp.h.
19799         (Depends-on): Remove uninorm/u16-normcmp.
19800
19801         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
19802         tests/uninorm/test-u8-normcmp.c.
19803         * tests/uninorm/test-u8-normcmp.c: Include it.
19804         (test_nonascii): New function, extracted from main. Add some more
19805         tests.
19806         (main): Invoke test_ascii and test_nonascii.
19807         * modules/uninorm/u8-normcmp-tests (Files): Add
19808         tests/uninorm/test-u8-normcmp.h.
19809         (Depends-on): Remove uninorm/u8-normcmp.
19810
19811 2009-03-07  Bruno Haible  <bruno@clisp.org>
19812
19813         New module 'uninorm/u32-normcoll'.
19814         * lib/uninorm/u32-normcoll.c: New file.
19815         * modules/uninorm/u32-normcoll: New file.
19816
19817         New module 'uninorm/u16-normcoll'.
19818         * lib/uninorm/u16-normcoll.c: New file.
19819         * modules/uninorm/u16-normcoll: New file.
19820
19821         New module 'uninorm/u8-normcoll'.
19822         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
19823         declarations.
19824         * lib/uninorm/u8-normcoll.c: New file.
19825         * lib/uninorm/u-normcoll.h: New file.
19826         * modules/uninorm/u8-normcoll: New file.
19827
19828         New module 'uninorm/u32-normxfrm'.
19829         * lib/uninorm/u32-normxfrm.c: New file.
19830         * modules/uninorm/u32-normxfrm: New file.
19831
19832         New module 'uninorm/u16-normxfrm'.
19833         * lib/uninorm/u16-normxfrm.c: New file.
19834         * modules/uninorm/u16-normxfrm: New file.
19835
19836         New module 'uninorm/u8-normxfrm'.
19837         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
19838         declarations.
19839         * lib/uninorm/u8-normxfrm.c: New file.
19840         * lib/uninorm/u-normxfrm.h: New file.
19841         * modules/uninorm/u8-normxfrm: New file.
19842
19843 2009-03-07  Bruno Haible  <bruno@clisp.org>
19844
19845         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
19846         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
19847         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
19848
19849 2009-03-07  Bruno Haible  <bruno@clisp.org>
19850
19851         New module 'memxfrm'.
19852         * lib/memxfrm.h: New file.
19853         * lib/memxfrm.c: New file.
19854         * modules/memxfrm: New file.
19855
19856 2009-03-07  Bruno Haible  <bruno@clisp.org>
19857
19858         New module 'memcmp2'.
19859         * lib/memcmp2.h: New file.
19860         * lib/memcmp2.c: New file.
19861         * modules/memcmp2: New file.
19862
19863 2009-03-07  Bruno Haible  <bruno@clisp.org>
19864
19865         Tests for module 'uninorm/decomposing-form'.
19866         * modules/uninorm/decomposing-form-tests: New file.
19867         * tests/uninorm/test-decomposing-form.c: New file.
19868
19869         New module 'uninorm/decomposing-form'.
19870         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
19871         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
19872         Add 'decomposing_variant' field.
19873         * lib/uninorm/decomposing-form.c: New file.
19874         * lib/uninorm/nfc.c (uninorm_nfc): Update.
19875         * lib/uninorm/nfd.c (uninorm_nfd): Update.
19876         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
19877         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
19878         * modules/uninorm/decomposing-form: New file.
19879         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
19880         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
19881
19882 2009-03-07  Bruno Haible  <bruno@clisp.org>
19883
19884         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
19885         strings.
19886
19887 2009-03-06  Bruno Haible  <bruno@clisp.org>
19888
19889         Tests for module 'uninorm/u32-normcmp'.
19890         * tests/uninorm/test-u32-normcmp.c: New file.
19891         * modules/uninorm/u32-normcmp-tests: New file.
19892
19893         Tests for module 'uninorm/u16-normcmp'.
19894         * tests/uninorm/test-u16-normcmp.c: New file.
19895         * modules/uninorm/u16-normcmp-tests: New file.
19896
19897         Tests for module 'uninorm/u8-normcmp'.
19898         * tests/uninorm/test-u8-normcmp.c: New file.
19899         * modules/uninorm/u8-normcmp-tests: New file.
19900
19901         New module 'uninorm/u32-normcmp'.
19902         * lib/uninorm/u32-normcmp.c: New file.
19903         * modules/uninorm/u32-normcmp: New file.
19904
19905         New module 'uninorm/u16-normcmp'.
19906         * lib/uninorm/u16-normcmp.c: New file.
19907         * modules/uninorm/u16-normcmp: New file.
19908
19909         New module 'uninorm/u8-normcmp'.
19910         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
19911         declarations.
19912         * lib/uninorm/u8-normcmp.c: New file.
19913         * lib/uninorm/u-normcmp.h: New file.
19914         * modules/uninorm/u8-normcmp: New file.
19915
19916 2009-03-06  Bruno Haible  <bruno@clisp.org>
19917
19918         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
19919         Reported by Eric Blake.
19920
19921 2009-03-06  Eric Blake  <ebb9@byu.net>
19922             Bruno Haible  <bruno@clisp.org>
19923
19924         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
19925         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
19926         condition.
19927         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19928         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
19929         condition.
19930         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19931
19932 2009-03-06  Eric Blake  <ebb9@byu.net>
19933
19934         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
19935         to avoid compiler warnings.
19936         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
19937
19938 2009-03-05  Bruno Haible  <bruno@clisp.org>
19939
19940         * tests/test-ftell.c (main): Disable test beyond end of file on
19941         FreeMiNT.
19942         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19943
19944 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
19945
19946         * lib/filevercmp.c: Move hidden files up in ordering.
19947         * tests/test-filevercmp.c: Add tests for hidden files.
19948
19949 2009-03-04  Bruno Haible  <bruno@clisp.org>
19950
19951         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
19952         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
19953         AM_CFLAGS.
19954         Reported by Simon Josefsson.
19955
19956 2009-03-03  Bruno Haible  <bruno@clisp.org>
19957
19958         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
19959         Reported by Simon Josefsson.
19960
19961         * doc/ld-version-script.texi: Update node reference.
19962
19963 2009-03-03  Bruno Haible  <bruno@clisp.org>
19964
19965         * modules/visibility (License): Change to 'unlimited'.
19966         Suggested by Simon Josefsson.
19967
19968 2009-03-03  Jim Meyering  <meyering@redhat.com>
19969
19970         unlinkdir: cannot_unlink_dir may modify process state
19971         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19972         it's neither thread-safe nor appropriate for use in a library.
19973
19974 2009-03-03  Eric Blake  <ebb9@byu.net>
19975
19976         test-closein: silence test under Darwin
19977         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19978         care if it dies from EPIPE or EBADF.
19979
19980 2009-03-03  Bruno Haible  <bruno@clisp.org>
19981
19982         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19983         earlier.
19984         * doc/visibility.texi: Fix @node and @section.
19985
19986 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19987
19988         * doc/gnulib.texi: Link to sections for ld version script and
19989         visibility.
19990         * doc/visibility.texi: Add @node and @section.
19991         * modules/ld-version-script: New module.
19992         * m4/ld-version-script.m4: New file.
19993         * doc/ld-version-script.texi: New file.
19994
19995 2009-03-02  David Lutterkort  <lutter@redhat.com>
19996
19997         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19999
20000 2009-03-02  Bruno Haible  <bruno@clisp.org>
20001
20002         * doc/visibility.texi: Mention libtool's -export-symbols option.
20003
20004 2009-03-02  Jim Meyering  <meyering@redhat.com>
20005
20006         announce-gen: new option: --no-print-checksums
20007         * build-aux/announce-gen (usage): Describe it.
20008         (print_checksums): Print a newline here, not in the [*] footnote.
20009         (main): Honor it.
20010
20011 2009-03-01  Bruno Haible  <bruno@clisp.org>
20012
20013         Use socklen_t in the native Windows replacements prototypes.
20014         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20015         instead of 'int'.
20016         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20017         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20018         * modules/getsockopt (Depends-on): Add socklen.
20019         * modules/setsockopt (Depends-on): Add socklen.
20020
20021 2009-03-01  Bruno Haible  <bruno@clisp.org>
20022
20023         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20024         least 4.2.
20025
20026 2009-03-01  Eric Blake  <ebb9@byu.net>
20027             Bruno Haible  <bruno@clisp.org>
20028
20029         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20030         error messages.
20031         * lib/wait-process.c (wait_subprocess): Omit error message about
20032         deadly signal sent to the child of termsigp != NULL.
20033
20034 2009-03-01  Eric Blake  <ebb9@byu.net>
20035
20036         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20037
20038 2009-03-01  Bruno Haible  <bruno@clisp.org>
20039
20040         Avoid a gcc warning.
20041         * tests/test-sched.c (b): Make global.
20042         Reported by Eric Blake.
20043
20044 2009-01-19  Martin Lambers  <marlam@marlam.de>
20045
20046         Provide POSIX semantics for socket timeout options on W32.
20047         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20048         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20049         * modules/setsockopt: Depend on sys_time module for struct timeval.
20050         * modules/getsockopt: Depend on sys_time module for struct timeval.
20051
20052 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20053
20054         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20055         __USE_GNU, for consistency with netdb.in.h.
20056         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20057
20058 2009-03-01  Bruno Haible  <bruno@clisp.org>
20059
20060         More support for FreeMiNT.
20061         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20062         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20063
20064 2009-03-01  Bruno Haible  <bruno@clisp.org>
20065
20066         More support for FreeMiNT.
20067         * lib/fpurge.c (fpurge): Correct last commit.
20068         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20069
20070 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20071
20072         Fix unportable awk script in vc-list-files.
20073         * build-aux/vc-list-files: In the replacement awk script, use
20074         substr with a second argument of 1, not zero.
20075         Report by Simon Josefsson.
20076
20077 2009-02-28  Bruno Haible  <bruno@clisp.org>
20078
20079         More support for FreeMiNT.
20080         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20081         to FreeMiNT today.
20082         * lib/fwriting.c (fwriting): Likewise.
20083         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20084
20085 2009-02-28  Bruno Haible  <bruno@clisp.org>
20086
20087         * tests/test-freadseek.c (main): Disable test beyond end of file on
20088         FreeMiNT.
20089         * tests/test-ftello.c (main): Likewise.
20090         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20091
20092 2009-02-28  Bruno Haible  <bruno@clisp.org>
20093
20094         Add tentative support for FreeMiNT.
20095         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20096         * lib/fpurge.c (fpurge): Likewise.
20097         * lib/freadable.c (freadable): Likewise.
20098         * lib/freading.c (freading): Likewise.
20099         * lib/freadptr.c (freadptr): Likewise.
20100         * lib/freadseek.c (freadptrinc): Likewise.
20101         * lib/fseeko.c (rpl_fseeko): Likewise.
20102         * lib/fseterr.c (fseterr): Likewise.
20103         * lib/fwritable.c (fwritable): Likewise.
20104         * lib/fwriting.c (fwriting): Likewise.
20105         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20106         Hourihane.
20107         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20108
20109 2009-02-28  Bruno Haible  <bruno@clisp.org>
20110
20111         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20112         SIGCHLD.
20113         Reported by Jim Meyering.
20114
20115 2009-02-28  Bruno Haible  <bruno@clisp.org>
20116
20117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20118         Mention the results of these tests on various platforms.
20119         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20120         order.
20121         * doc/posix-functions/printf.texi: Likewise.
20122         * doc/posix-functions/snprintf.texi: Likewise.
20123         * doc/posix-functions/sprintf.texi: Likewise.
20124         * doc/posix-functions/vfprintf.texi: Likewise.
20125         * doc/posix-functions/vprintf.texi: Likewise.
20126         * doc/posix-functions/vsnprintf.texi: Likewise.
20127         * doc/posix-functions/vsprintf.texi: Likewise.
20128         * doc/glibc-functions/obstack_printf.texi: Likewise.
20129         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20130
20131 2009-02-28  Bruno Haible  <bruno@clisp.org>
20132
20133         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20134         Reported by Loïc Minier <lool@dooz.org>.
20135
20136 2009-02-27  Bruno Haible  <bruno@clisp.org>
20137
20138         * gnulib-tool (func_import): Make the sed expression used to create the
20139         sed script for updating the .gitignore file POSIX compliant.
20140         Reported by Eric Blake.
20141
20142 2009-02-27  Bruno Haible  <bruno@clisp.org>
20143
20144         * gnulib-tool (sed): Don't alias as "sed --posix".
20145         Reported by Eric Blake.
20146
20147 2009-02-27  Bruno Haible  <bruno@clisp.org>
20148
20149         Avoid test link errors.
20150         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20151         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20152         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20153         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20155
20156 2009-02-27  Bruno Haible  <bruno@clisp.org>
20157
20158         Avoid spurious "(cached)" in configure output.
20159         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20160         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20161         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20162         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20163         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20164         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20165         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20166         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20167         Reported by Eric Blake.
20168
20169 2009-02-27  Eric Blake  <ebb9@byu.net>
20170
20171         printf: fix regression in previous patch
20172         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20173
20174 2009-02-27  Bruno Haible  <bruno@clisp.org>
20175
20176         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20177         value.
20178         * lib/stdint.in.h: Likewise.
20179         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20180
20181 2009-02-27  Eric Blake  <ebb9@byu.net>
20182
20183         doc: mention more functions added in cygwin 1.7.0
20184         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20185         addition.
20186         * doc/posix-functions/open_wmemstream.texi: Likewise.
20187         * doc/posix-functions/wcsnlen.texi: Likewise.
20188         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20189         * doc/posix-functions/wcstod.texi: Likewise.
20190         * doc/posix-functions/wcstof.texi: Likewise.
20191         * doc/posix-functions/wcstoimax.texi: Likewise.
20192         * doc/posix-functions/wcstok.texi: Likewise.
20193         * doc/posix-functions/wcstoumax.texi: Likewise.
20194
20195         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20197         * doc/posix-functions/fprintf.texi: Update.
20198         * doc/posix-functions/printf.texi: Update.
20199         * doc/posix-functions/snprintf.texi: Update.
20200         * doc/posix-functions/sprintf.texi: Update.
20201         * doc/posix-functions/vfprintf.texi: Update.
20202         * doc/posix-functions/vprintf.texi: Update.
20203         * doc/posix-functions/vsnprintf.texi: Update.
20204         * doc/posix-functions/vsprintf.texi: Update.
20205         * doc/glibc-functions/obstack_printf.texi: Update.
20206         * doc/glibc-functions/obstack_vprintf.texi: Update.
20207
20208 2009-02-26  Eric Blake  <ebb9@byu.net>
20209
20210         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20211         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20212         compilation bug by using runtime conversion.
20213         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20214         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20215         * modules/ceill-tests (Files): Use nan.h.
20216         * modules/floorl-tests (Files): Likewise.
20217         * modules/frexpl-tests (Files): Likewise.
20218         * modules/isnanl-tests (Files): Likewise.
20219         * modules/ldexpl-tests (Files): Likewise.
20220         * modules/roundl-tests (Files): Likewise.
20221         * modules/truncl-tests (Files): Likewise.
20222         * tests/test-ceill.c (main): Use a working NaN.
20223         * tests/test-floorl.c (main): Likewise.
20224         * tests/test-frexpl.c (main): Likewise.
20225         * tests/test-isnan.c (test_long_double): Likewise.
20226         * tests/test-isnanl.h (main): Likewise.
20227         * tests/test-ldexpl.h (main): Likewise.
20228         * tests/test-roundl.h (main): Likewise.
20229         * tests/test-truncl.h (main): Likewise.
20230         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20231
20232 2009-02-26  Eric Blake  <ebb9@byu.net>
20233             Bruno Haible  <bruno@clisp.org>
20234
20235         Work around a *printf bug with %ls on Solaris.
20236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20237         precision is specified, sprintf stops converting the wide string
20238         argument when the number of bytes that have been produced by this
20239         conversion equals or exceeds the precision.
20240         * doc/posix-functions/fprintf.texi: Update.
20241         * doc/posix-functions/printf.texi: Update.
20242         * doc/posix-functions/snprintf.texi: Update.
20243         * doc/posix-functions/sprintf.texi: Update.
20244         * doc/posix-functions/vfprintf.texi: Update.
20245         * doc/posix-functions/vprintf.texi: Update.
20246         * doc/posix-functions/vsnprintf.texi: Update.
20247         * doc/posix-functions/vsprintf.texi: Update.
20248         * doc/glibc-functions/obstack_printf.texi: Update.
20249         * doc/glibc-functions/obstack_vprintf.texi: Update.
20250
20251 2009-02-26  Eric Blake  <ebb9@byu.net>
20252
20253         stdlib: favor compiler check of random.h
20254         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20255         to avoid an ObjC random.h installed by Swarm.
20256
20257 2009-02-26  Bruno Haible  <bruno@clisp.org>
20258
20259         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20260         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20261         Reported by Gary V. Vaughan <gary@gnu.org>.
20262
20263 2009-02-26  Bruno Haible  <bruno@clisp.org>
20264
20265         Fix *printf behaviour regarding the %ls directive.
20266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20267         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20268         NEED_PRINTF_DIRECTIVE_LS.
20269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20270         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20271         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20272         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20273         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20274         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20275         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20280         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20281         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20284         * doc/posix-functions/fprintf.texi: Update.
20285         * doc/posix-functions/printf.texi: Update.
20286         * doc/posix-functions/snprintf.texi: Update.
20287         * doc/posix-functions/sprintf.texi: Update.
20288         * doc/posix-functions/vfprintf.texi: Update.
20289         * doc/posix-functions/vprintf.texi: Update.
20290         * doc/posix-functions/vsnprintf.texi: Update.
20291         * doc/posix-functions/vsprintf.texi: Update.
20292         * doc/glibc-functions/obstack_printf.texi: Update.
20293         * doc/glibc-functions/obstack_vprintf.texi: Update.
20294         Reported by Eric Blake.
20295
20296 2009-02-25  Bruno Haible  <bruno@clisp.org>
20297
20298         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20299         with known value.
20300         Reported by Gary V. Vaughan <gary@gnu.org>.
20301
20302 2009-02-25  Bruno Haible  <bruno@clisp.org>
20303
20304         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20305         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20306         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20307         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20308         Reported by Gary V. Vaughan <gary@gnu.org>.
20309
20310 2009-02-25  Bruno Haible  <bruno@clisp.org>
20311
20312         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20313         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20314         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20315         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20316         Reported by Gary V. Vaughan <gary@gnu.org>.
20317
20318 2009-02-25  Eric Blake  <ebb9@byu.net>
20319
20320         tests: skip fseek/ftell tests if ungetc is broken
20321         * m4/ungetc.m4: New file.
20322         * modules/fseek-tests: Split test, so ungetc dependency is
20323         separate from rest of test.
20324         * modules/fseeko-tests: Likewise.
20325         * modules/ftell-tests: Likewise.
20326         * modules/ftello-tests: Likewise.
20327         * tests/test-fseek.c (main): Isolate ungetc dependency.
20328         * tests/test-fseeko.c (main): Likewise.
20329         * tests/test-ftell.c (main): Likewise.
20330         * tests/test-ftello.c (main): Likewise.
20331         * tests/test-fseek2.sh: New file.
20332         * tests/test-fseeko2.sh: Likewise.
20333         * tests/test-ftell2.sh: Likewise.
20334         * tests/test-ftello2.sh: Likewise.
20335
20336 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20337
20338         test-getaddrinfo: fix usage of skip return code 77
20339         * tests/test-gettaddrinfo.c: Return skip code 77 only
20340         for first occurance of skip (4x77 is not 77)
20341
20342 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20343
20344         strtod: avoid C99 decl-after-statement
20345         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20346
20347 2009-02-24  Eric Blake  <ebb9@byu.net>
20348
20349         strtod: detect HP-UX 11.31 bug
20350         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20351         Reported by Gary V. Vaughan.
20352
20353 2009-02-23  Bruno Haible  <bruno@clisp.org>
20354
20355         Fix invalid read past end of memory block.
20356         * lib/vasnprintf.c (DCHAR_SET): Define.
20357         (local_wcslen): Define only when needed.
20358         (local_strnlen, local_wcsnlen): New functions.
20359         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20360         directives that involve a conversion ourselves.
20361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20362         wcsnlen, mbrtowc, wcrtomb.
20363         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20364         * tests/test-vasprintf-posix.c (test_function): Likewise.
20365         * tests/test-snprintf-posix.h (test_function): Likewise.
20366         * tests/test-sprintf-posix.h (test_function): Likewise.
20367         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20368
20369 2009-02-22  Bruno Haible  <bruno@clisp.org>
20370
20371         Implement new clarified decomposition of Hangul syllables.
20372         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20373         of type LTV, return only a pairwise decomposition.
20374         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20375         Likewise.
20376         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20377         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20378         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20379
20380 2009-02-22  Bruno Haible  <bruno@clisp.org>
20381
20382         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20383         zero-length results and shrink excess allocated memory.
20384         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20385         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20386         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20387         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20388         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20389         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20390         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20391         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20392         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20393         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20394         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20395         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20396
20397 2009-02-21  Bruno Haible  <bruno@clisp.org>
20398
20399         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20400         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20401         spaces after a period. Put a space between a macro name and its
20402         argument list. Trivial rewordings.
20403         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
20404         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
20405         (main): Return 0 explicitly.
20406
20407 2009-02-21  Bruno Haible  <bruno@clisp.org>
20408
20409         Tests for module 'uninorm/filter'.
20410         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
20411         * modules/uninorm/filter-tests: New file.
20412
20413         New module 'uninorm/filter'.
20414         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
20415         uninorm_filter_flush, uninorm_filter_free): New declarations.
20416         * lib/uninorm/uninorm-filter.c: New file.
20417         * modules/uninorm/filter: New file.
20418
20419 2009-02-21  Bruno Haible  <bruno@clisp.org>
20420
20421         Tests for module 'uninorm/nfkc'.
20422         * tests/uninorm/test-nfkc.c: New file.
20423         * tests/uninorm/test-u8-nfkc.c: New file.
20424         * tests/uninorm/test-u16-nfkc.c: New file.
20425         * tests/uninorm/test-u32-nfkc.c: New file.
20426         * tests/uninorm/test-u32-nfkc-big.sh: New file.
20427         * tests/uninorm/test-u32-nfkc-big.c: New file.
20428         * modules/uninorm/nfkc-tests: New file.
20429
20430         New module 'uninorm/nfkc'.
20431         * lib/uninorm/nfkc.c: New file.
20432         * modules/uninorm/nfkc: New file.
20433
20434         Tests for module 'uninorm/nfkd'.
20435         * tests/uninorm/test-nfkd.c: New file.
20436         * tests/uninorm/test-u8-nfkd.c: New file.
20437         * tests/uninorm/test-u16-nfkd.c: New file.
20438         * tests/uninorm/test-u32-nfkd.c: New file.
20439         * tests/uninorm/test-u32-nfkd-big.sh: New file.
20440         * tests/uninorm/test-u32-nfkd-big.c: New file.
20441         * modules/uninorm/nfkd-tests: New file.
20442
20443         New module 'uninorm/nfkd'.
20444         * lib/uninorm/nfkd.c: New file.
20445         * modules/uninorm/nfkd: New file.
20446
20447         Tests for module 'uninorm/nfc'.
20448         * tests/uninorm/test-nfc.c: New file.
20449         * tests/uninorm/test-u8-nfc.c: New file.
20450         * tests/uninorm/test-u16-nfc.c: New file.
20451         * tests/uninorm/test-u32-nfc.c: New file.
20452         * tests/uninorm/test-u32-nfc-big.sh: New file.
20453         * tests/uninorm/test-u32-nfc-big.c: New file.
20454         * modules/uninorm/nfc-tests: New file.
20455
20456         New module 'uninorm/nfc'.
20457         * lib/uninorm/nfc.c: New file.
20458         * modules/uninorm/nfc: New file.
20459
20460         Tests for module 'uninorm/nfd'.
20461         * tests/uninorm/test-nfd.c: New file.
20462         * tests/uninorm/test-u8-nfd.c: New file.
20463         * tests/uninorm/test-u16-nfd.c: New file.
20464         * tests/uninorm/test-u32-nfd.c: New file.
20465         * tests/uninorm/test-u32-nfd-big.sh: New file.
20466         * tests/uninorm/test-u32-nfd-big.c: New file.
20467         * tests/uninorm/test-u32-normalize-big.h: New file.
20468         * tests/uninorm/test-u32-normalize-big.c: New file.
20469         * tests/uninorm/NormalizationTest.txt: New file, created from
20470         Unicode 5.1.0 NormalizationTest.txt.
20471         * modules/uninorm/nfd-tests: New file.
20472
20473         New module 'uninorm/nfd'.
20474         * lib/uninorm/nfd.c: New file.
20475         * modules/uninorm/nfd: New file.
20476
20477         New module 'uninorm/u32-normalize'.
20478         * lib/uninorm/u32-normalize.c: New file.
20479         * modules/uninorm/u32-normalize: New file.
20480
20481         New module 'uninorm/u16-normalize'.
20482         * lib/uninorm/u16-normalize.c: New file.
20483         * modules/uninorm/u16-normalize: New file.
20484
20485         New module 'uninorm/u8-normalize'.
20486         * lib/uninorm/u8-normalize.c: New file.
20487         * lib/uninorm/normalize-internal.h: New file.
20488         * lib/uninorm/u-normalize-internal.h: New file.
20489         * modules/uninorm/u8-normalize: New file.
20490
20491         New module 'uninorm/decompose-internal'.
20492         * lib/uninorm/decompose-internal.c: New file.
20493         * modules/uninorm/decompose-internal: New file.
20494
20495         Tests for module 'uninorm/composition'.
20496         * tests/uninorm/test-composition.c: New file.
20497         * modules/uninorm/composition-tests: New file.
20498
20499         New module 'uninorm/composition'.
20500         * lib/uninorm/composition.c: New file.
20501         * lib/uninorm/composition-table.gperf: New file, generated by
20502         gen-uni-tables.
20503         * modules/uninorm/composition: New file.
20504
20505         Tests for module 'uninorm/compat-decomposition'.
20506         * tests/uninorm/test-compat-decomposition.c: New file.
20507         * modules/uninorm/compat-decomposition-tests: New file.
20508
20509         New module 'uninorm/compat-decomposition'.
20510         * lib/uninorm/decompose-internal.h: New file.
20511         * lib/uninorm/compat-decomposition.c: New file.
20512         * modules/uninorm/compat-decomposition: New file.
20513
20514         Tests for module 'uninorm/canonical-decomposition'.
20515         * tests/uninorm/test-canonical-decomposition.c: New file.
20516         * modules/uninorm/canonical-decomposition-tests: New file.
20517
20518         New module 'uninorm/canonical-decomposition'.
20519         * lib/uninorm/canonical-decomposition.c: New file.
20520         * modules/uninorm/canonical-decomposition: New file.
20521
20522         Tests for module 'uninorm/decomposition'.
20523         * tests/uninorm/test-decomposition.c: New file.
20524         * modules/uninorm/decomposition-tests: New file.
20525
20526         New module 'uninorm/decomposition'.
20527         * lib/uninorm/decomposition.c: New file.
20528         * modules/uninorm/decomposition: New file.
20529
20530         New module 'uninorm/decomposition-table'.
20531         * lib/uninorm/decomposition-table.h: New file.
20532         * lib/uninorm/decomposition-table.c: New file.
20533         * lib/uninorm/decomposition-table1.h: New file, generated by
20534         gen-uni-tables.
20535         * lib/uninorm/decomposition-table2.h: New file, generated by
20536         gen-uni-tables.
20537         * modules/uninorm/decomposition-table: New file.
20538
20539         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
20540         (UC_DECOMP_*): New enumeration items.
20541         (get_decomposition): New function.
20542         (struct decomp_table): New type.
20543         (output_decomposition, output_decomposition_tables): New functions.
20544         (unicode_composition_exclusions): New variable.
20545         (fill_composition_exclusions, debug_output_composition_tables): New
20546         functions.
20547         (main): Accept one more argument. Invoke fill_composition_exclusions.
20548         Output decomposition and composition tables.
20549
20550         New module 'uninorm/base'.
20551         * lib/uninorm.h: New file.
20552         * lib/unictype.h: Update comment.
20553         * modules/uninorm/base: New file.
20554
20555 2009-02-21  David Lutterkort  <lutter@redhat.com>
20556
20557         Tests for module 'safe-alloc'.
20558         * tests/test-safe-alloc.c: New file.
20559         * modules/safe-alloc-tests: New file.
20560
20561         New module 'safe-alloc'.
20562         * lib/safe-alloc.h: New file.
20563         * lib/safe-alloc.c: New file.
20564         * m4/safe-alloc.m4: New file.
20565         * modules/safe-alloc: New file.
20566         * doc/safe-alloc.texi: New file.
20567         * doc/gnulib.texi: Include it.
20568         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20569         safe-alloc.
20570
20571 2009-02-18  Bruno Haible  <bruno@clisp.org>
20572
20573         Fix link error on non-glibc systems.
20574         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
20575         variable.
20576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20577
20578 2009-02-18  Jim Meyering  <meyering@redhat.com>
20579
20580         fts: avoid used-uninitialized error due to recent change
20581         * lib/fts.c (fts_read): Guard uses of the new member,
20582         parent->fts_n_dirs_remaining, since it's not relevant for
20583         the parent of a directory specified on the command-line.
20584
20585 2009-02-17  James Youngman  <jay@gnu.org>
20586             Bruno Haible  <bruno@clisp.org>
20587
20588         * m4/include_next.m4: Reformulate comment.
20589
20590 2009-02-16  Jim Meyering  <meyering@redhat.com>
20591
20592         fts: add #if guards so that the fts_lgpl module still builds
20593         * lib/fts.c: Guard just-added hash-table-using parts with
20594         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
20595         Reported by Simon Josefsson.
20596
20597 2009-02-15  Bruno Haible  <bruno@clisp.org>
20598
20599         * modules/array-mergesort-tests: New file.
20600         * tests/test-array-mergesort.c: New file.
20601
20602         New module 'array-mergesort'.
20603         * modules/array-mergesort: New file.
20604         * lib/array-mergesort.h: New file.
20605
20606 2009-02-15  Bruno Haible  <bruno@clisp.org>
20607
20608         Fix 2009-02-07 commit.
20609         * lib/gen-uni-tables.c (output_predicate, output_category,
20610         output_combclass, output_bidi_category, output_decimal_digit,
20611         output_digit, output_numeric, output_mirror, output_scripts,
20612         output_ident_category, output_simple_mapping): Fix format directives.
20613         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
20614
20615 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
20616
20617         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
20618         fixes are available from IBM.
20619
20620 2009-02-13  Jim Meyering  <meyering@redhat.com>
20621
20622         fts: arrange not to stat non-directories in more cases
20623         This makes GNU find (when it doesn't need to stat each file)
20624         *much* more efficient at traversing reiserfs file systems.
20625         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
20626         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
20627         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
20628         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
20629         (leaf_optimization_applies): New function.
20630         (LCO_hash, LCO_compare): New helper functions.
20631         (link_count_optimize_ok): New function.
20632         (fts_stat): Initialize new member (if dir).
20633         (fts_read): Decrement parent's fts_n_dirs_remaining count if
20634         we've just stat'ed a directory.  Skip the stat call when possible.
20635         ---
20636         Note this AFS-related exchange:
20637         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
20638         and note find's pioctl call in find/fstype.c.
20639         But that is necessary only if you want to enable the
20640         optimization for AFS, and for now, I don't.
20641
20642         fts: move a function definition "up" (no semantic change)
20643         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
20644         "up" to precede upcoming use of a related function.
20645
20646 2009-02-11  Jim Meyering  <meyering@redhat.com>
20647
20648         fts: correct internal computation of nlinks (optimization-related)
20649         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
20650         whether the current entry is a directory, so don't test it.
20651
20652 2009-02-10  Bruno Haible  <bruno@clisp.org>
20653
20654         Tests for module 'uniwbrk/ulc-wordbreaks'.
20655         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
20656         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
20657         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
20658
20659         Tests for module 'uniwbrk/u32-wordbreaks'.
20660         * modules/uniwbrk/u32-wordbreaks-tests: New file.
20661         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
20662
20663         Tests for module 'uniwbrk/u16-wordbreaks'.
20664         * modules/uniwbrk/u16-wordbreaks-tests: New file.
20665         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
20666
20667         Tests for module 'uniwbrk/u8-wordbreaks'.
20668         * modules/uniwbrk/u8-wordbreaks-tests: New file.
20669         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
20670
20671 2009-02-10  Bruno Haible  <bruno@clisp.org>
20672
20673         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
20674         property.
20675         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
20676         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
20677         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
20678
20679 2009-02-10  Simon Josefsson  <simon@josefsson.org>
20680
20681         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
20682         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
20683
20684 2009-02-10  Bruno Haible  <bruno@clisp.org>
20685
20686         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
20687         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
20688         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
20689         * lib/unilbrk/u8-possible-linebreaks.c: Update.
20690         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
20691         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
20692
20693 2009-02-09  Simon Josefsson  <simon@josefsson.org>
20694
20695         * lib/sockets.h (gl_fd_to_handle): New function.
20696
20697         * tests/test-sockets.c: Call gl_fd_to_handle.
20698
20699 2009-02-09  Bruno Haible  <bruno@clisp.org>
20700
20701         * doc/havelib.texi: Document the conventions on bi-arch systems.
20702
20703 2009-02-08  Bruno Haible  <bruno@clisp.org>
20704
20705         Document the AC_LIB_LINKFLAGS macro.
20706         * doc/havelib.texi: New file, mostly written on 2005-05-24.
20707         * doc/gnulib.texi: Include it.
20708
20709 2009-02-08  Bruno Haible  <bruno@clisp.org>
20710
20711         Fix wrong order of sections, compared to TOC.
20712         * doc/gnulib.texi: Include relocatable-maint.texi after the
20713         "Regular expressions" node, not before.
20714
20715 2009-02-08  Bruno Haible  <bruno@clisp.org>
20716
20717         Tests for module 'unicase/totitle'.
20718         * modules/unicase/totitle-tests: New file.
20719
20720         Tests for module 'unicase/tolower'.
20721         * modules/unicase/tolower-tests: New file.
20722
20723         Tests for module 'unicase/toupper'.
20724         * modules/unicase/toupper-tests: New file.
20725         * tests/unicase/test-mapping-part1.h: New file.
20726         * tests/unicase/test-mapping-part2.h: New file.
20727
20728         New module 'unicase/totitle'.
20729         * modules/unicase/totitle: New file.
20730         * lib/unicase/totitle.c: New file.
20731
20732         New module 'unicase/tolower'.
20733         * modules/unicase/tolower: New file.
20734         * lib/unicase/tolower.c: New file.
20735
20736         New module 'unicase/toupper'.
20737         * modules/unicase/toupper: New file.
20738         * lib/unicase/toupper.c: New file.
20739         * lib/unicase/simple-mapping.h: New file.
20740
20741         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
20742         (mapping_table): New structure.
20743         (output_simple_mapping): New function.
20744         (main): Invoke output_simple_mapping_test and output_simple_mapping.
20745         * modules/gen-uni-tables (Description): Update.
20746         * lib/unicase/toupper.h: New file, automatically generated by
20747         gen-uni-tables.
20748         * lib/unicase/tolower.h: New file, automatically generated by
20749         gen-uni-tables.
20750         * lib/unicase/totitle.h: New file, automatically generated by
20751         gen-uni-tables.
20752         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
20753         gen-uni-tables.
20754         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
20755         gen-uni-tables.
20756         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
20757         gen-uni-tables.
20758
20759         New module 'unicase/base'.
20760         * modules/unicase/base: New file.
20761         * lib/unicase.h: New file.
20762
20763 2009-02-08  Bruno Haible  <bruno@clisp.org>
20764
20765         New module 'uniwbrk/ulc-wordbreaks'.
20766         * modules/uniwbrk/ulc-wordbreaks: New file.
20767         * lib/uniwbrk/ulc-wordbreaks.c: New file.
20768
20769         New module 'uniwbrk/u32-wordbreaks'.
20770         * modules/uniwbrk/u32-wordbreaks: New file.
20771         * lib/uniwbrk/u32-wordbreaks.c: New file.
20772
20773         New module 'uniwbrk/u16-wordbreaks'.
20774         * modules/uniwbrk/u16-wordbreaks: New file.
20775         * lib/uniwbrk/u16-wordbreaks.c: New file.
20776
20777         New module 'uniwbrk/u8-wordbreaks'.
20778         * modules/uniwbrk/u8-wordbreaks: New file.
20779         * lib/uniwbrk/u8-wordbreaks.c: New file.
20780         * lib/uniwbrk/u-wordbreaks.h: New file.
20781
20782         New module 'uniwbrk/table'.
20783         * modules/uniwbrk/table: New file.
20784         * lib/uniwbrk/wbrktable.h: New file.
20785         * lib/uniwbrk/wbrktable.c: New file.
20786
20787         New module 'uniwbrk/wordbreak-property'.
20788         * modules/uniwbrk/wordbreak-property: New file.
20789         * lib/uniwbrk/wordbreak-property.c: New file.
20790
20791         * lib/gen-uni-tables.c (WBP_*): New enum items.
20792         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
20793         (unicode_org_wbp): New variable.
20794         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
20795         New functions.
20796         (wbp_table): New structure.
20797         (output_wbp, output_wbrk_tables): New functions.
20798         (main): Accept additional argument. Invoke fill_org_wbp,
20799         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
20800         output_wbrk_tables.
20801         * modules/gen-uni-tables (Description): Update.
20802         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
20803         gen-uni-tables.
20804
20805         New module 'uniwbrk/base'.
20806         * modules/uniwbrk/base: New file.
20807         * lib/uniwbrk.h: New file.
20808
20809 2009-02-08  Bruno Haible  <bruno@clisp.org>
20810
20811         Update to Unicode 5.1.0.
20812         * lib/gen-uni-tables.c (is_property_alphabetic): Include
20813         U+2185..U+2188.
20814         (is_property_default_ignorable_code_point): Don't include characters
20815         of category Cc or Cs and not-a-characters.
20816         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
20817         U+0D79, U+109E, U+109F, U+A60C.
20818         * lib/unictype/bidi_of.h: Regenerated.
20819         * lib/unictype/blocks.h: Regenerated.
20820         * lib/unictype/categ_C.h: Regenerated.
20821         * lib/unictype/categ_Cf.h: Regenerated.
20822         * lib/unictype/categ_Cn.h: Regenerated.
20823         * lib/unictype/categ_L.h: Regenerated.
20824         * lib/unictype/categ_Ll.h: Regenerated.
20825         * lib/unictype/categ_Lm.h: Regenerated.
20826         * lib/unictype/categ_Lo.h: Regenerated.
20827         * lib/unictype/categ_Lu.h: Regenerated.
20828         * lib/unictype/categ_M.h: Regenerated.
20829         * lib/unictype/categ_Mc.h: Regenerated.
20830         * lib/unictype/categ_Me.h: Regenerated.
20831         * lib/unictype/categ_Mn.h: Regenerated.
20832         * lib/unictype/categ_N.h: Regenerated.
20833         * lib/unictype/categ_Nd.h: Regenerated.
20834         * lib/unictype/categ_Nl.h: Regenerated.
20835         * lib/unictype/categ_No.h: Regenerated.
20836         * lib/unictype/categ_P.h: Regenerated.
20837         * lib/unictype/categ_Pd.h: Regenerated.
20838         * lib/unictype/categ_Pe.h: Regenerated.
20839         * lib/unictype/categ_Pf.h: Regenerated.
20840         * lib/unictype/categ_Pi.h: Regenerated.
20841         * lib/unictype/categ_Po.h: Regenerated.
20842         * lib/unictype/categ_Ps.h: Regenerated.
20843         * lib/unictype/categ_S.h: Regenerated.
20844         * lib/unictype/categ_Sk.h: Regenerated.
20845         * lib/unictype/categ_Sm.h: Regenerated.
20846         * lib/unictype/categ_So.h: Regenerated.
20847         * lib/unictype/categ_of.h: Regenerated.
20848         * lib/unictype/combining.h: Regenerated.
20849         * lib/unictype/ctype_alnum.h: Regenerated.
20850         * lib/unictype/ctype_alpha.h: Regenerated.
20851         * lib/unictype/ctype_graph.h: Regenerated.
20852         * lib/unictype/ctype_lower.h: Regenerated.
20853         * lib/unictype/ctype_print.h: Regenerated.
20854         * lib/unictype/ctype_punct.h: Regenerated.
20855         * lib/unictype/ctype_upper.h: Regenerated.
20856         * lib/unictype/decdigit.h: Regenerated.
20857         * lib/unictype/digit.h: Regenerated.
20858         * lib/unictype/mirror.h: Regenerated.
20859         * lib/unictype/numeric.h: Regenerated.
20860         * lib/unictype/pr_alphabetic.h: Regenerated.
20861         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
20862         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
20863         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
20864         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
20865         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
20866         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
20867         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
20868         * lib/unictype/pr_combining.h: Regenerated.
20869         * lib/unictype/pr_dash.h: Regenerated.
20870         * lib/unictype/pr_decimal_digit.h: Regenerated.
20871         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
20872         * lib/unictype/pr_deprecated.h: Regenerated.
20873         * lib/unictype/pr_diacritic.h: Regenerated.
20874         * lib/unictype/pr_extender.h: Regenerated.
20875         * lib/unictype/pr_format_control.h: Regenerated.
20876         * lib/unictype/pr_grapheme_base.h: Regenerated.
20877         * lib/unictype/pr_grapheme_extend.h: Regenerated.
20878         * lib/unictype/pr_grapheme_link.h: Regenerated.
20879         * lib/unictype/pr_id_continue.h: Regenerated.
20880         * lib/unictype/pr_id_start.h: Regenerated.
20881         * lib/unictype/pr_ideographic.h: Regenerated.
20882         * lib/unictype/pr_ignorable_control.h: Regenerated.
20883         * lib/unictype/pr_lowercase.h: Regenerated.
20884         * lib/unictype/pr_math.h: Regenerated.
20885         * lib/unictype/pr_numeric.h: Regenerated.
20886         * lib/unictype/pr_other_alphabetic.h: Regenerated.
20887         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
20888         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
20889         * lib/unictype/pr_other_id_continue.h: Regenerated.
20890         * lib/unictype/pr_other_lowercase.h: Regenerated.
20891         * lib/unictype/pr_other_math.h: Regenerated.
20892         * lib/unictype/pr_punctuation.h: Regenerated.
20893         * lib/unictype/pr_sentence_terminal.h: Regenerated.
20894         * lib/unictype/pr_soft_dotted.h: Regenerated.
20895         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
20896         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
20897         * lib/unictype/pr_unified_ideograph.h: Regenerated.
20898         * lib/unictype/pr_uppercase.h: Regenerated.
20899         * lib/unictype/pr_xid_continue.h: Regenerated.
20900         * lib/unictype/pr_xid_start.h: Regenerated.
20901         * lib/unictype/pr_zero_width.h: Regenerated.
20902         * lib/unictype/scripts.h: Regenerated.
20903         * lib/unictype/scripts_byname.gperf: Regenerated.
20904         * lib/unictype/sy_java_ident.h: Regenerated.
20905         * lib/unilbrk/lbrkprop1.h: Regenerated.
20906         * lib/unilbrk/lbrkprop2.h: Regenerated.
20907         * tests/unictype/test-categ_C.c: Regenerated.
20908         * tests/unictype/test-categ_Cf.c: Regenerated.
20909         * tests/unictype/test-categ_Cn.c: Regenerated.
20910         * tests/unictype/test-categ_L.c: Regenerated.
20911         * tests/unictype/test-categ_Ll.c: Regenerated.
20912         * tests/unictype/test-categ_Lm.c: Regenerated.
20913         * tests/unictype/test-categ_Lo.c: Regenerated.
20914         * tests/unictype/test-categ_Lu.c: Regenerated.
20915         * tests/unictype/test-categ_M.c: Regenerated.
20916         * tests/unictype/test-categ_Mc.c: Regenerated.
20917         * tests/unictype/test-categ_Me.c: Regenerated.
20918         * tests/unictype/test-categ_Mn.c: Regenerated.
20919         * tests/unictype/test-categ_N.c: Regenerated.
20920         * tests/unictype/test-categ_Nd.c: Regenerated.
20921         * tests/unictype/test-categ_Nl.c: Regenerated.
20922         * tests/unictype/test-categ_No.c: Regenerated.
20923         * tests/unictype/test-categ_P.c: Regenerated.
20924         * tests/unictype/test-categ_Pd.c: Regenerated.
20925         * tests/unictype/test-categ_Pe.c: Regenerated.
20926         * tests/unictype/test-categ_Pf.c: Regenerated.
20927         * tests/unictype/test-categ_Pi.c: Regenerated.
20928         * tests/unictype/test-categ_Po.c: Regenerated.
20929         * tests/unictype/test-categ_Ps.c: Regenerated.
20930         * tests/unictype/test-categ_S.c: Regenerated.
20931         * tests/unictype/test-categ_Sk.c: Regenerated.
20932         * tests/unictype/test-categ_Sm.c: Regenerated.
20933         * tests/unictype/test-categ_So.c: Regenerated.
20934         * tests/unictype/test-ctype_alnum.c: Regenerated.
20935         * tests/unictype/test-ctype_alpha.c: Regenerated.
20936         * tests/unictype/test-ctype_graph.c: Regenerated.
20937         * tests/unictype/test-ctype_lower.c: Regenerated.
20938         * tests/unictype/test-ctype_print.c: Regenerated.
20939         * tests/unictype/test-ctype_punct.c: Regenerated.
20940         * tests/unictype/test-ctype_upper.c: Regenerated.
20941         * tests/unictype/test-decdigit.h: Regenerated.
20942         * tests/unictype/test-digit.h: Regenerated.
20943         * tests/unictype/test-numeric.h: Regenerated.
20944         * tests/unictype/test-pr_alphabetic.c: Regenerated.
20945         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
20946         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
20947         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
20948         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
20949         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
20950         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
20951         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
20952         * tests/unictype/test-pr_combining.c: Regenerated.
20953         * tests/unictype/test-pr_dash.c: Regenerated.
20954         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
20955         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
20956         * tests/unictype/test-pr_deprecated.c: Regenerated.
20957         * tests/unictype/test-pr_diacritic.c: Regenerated.
20958         * tests/unictype/test-pr_extender.c: Regenerated.
20959         * tests/unictype/test-pr_format_control.c: Regenerated.
20960         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
20961         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
20962         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
20963         * tests/unictype/test-pr_id_continue.c: Regenerated.
20964         * tests/unictype/test-pr_id_start.c: Regenerated.
20965         * tests/unictype/test-pr_ideographic.c: Regenerated.
20966         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20967         * tests/unictype/test-pr_lowercase.c: Regenerated.
20968         * tests/unictype/test-pr_math.c: Regenerated.
20969         * tests/unictype/test-pr_numeric.c: Regenerated.
20970         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20971         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20972         Regenerated.
20973         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20974         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20975         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20976         * tests/unictype/test-pr_other_math.c: Regenerated.
20977         * tests/unictype/test-pr_punctuation.c: Regenerated.
20978         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20979         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20980         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20981         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20982         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20983         * tests/unictype/test-pr_uppercase.c: Regenerated.
20984         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20985         * tests/unictype/test-pr_xid_start.c: Regenerated.
20986         * tests/unictype/test-pr_zero_width.c: Regenerated.
20987
20988         Update to Unicode 5.1.0.
20989         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20990         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20991         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20992         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20993         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20994         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20995         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20996         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20997         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20998         (nonspacing_table_ind): Update.
20999         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21000
21001         Update to Unicode 5.1.0.
21002         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21003         code transform.
21004         * lib/uniname/uniname.c (unicode_character_name,
21005         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21006         * lib/uniname/uninames.h: Regenerated.
21007         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21008
21009 2009-02-07  Bruno Haible  <bruno@clisp.org>
21010
21011         Merge gen-ctype and gen-lbrk into a single program.
21012         * lib/gen-uni-tables.c: New file, incorporating
21013         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21014         Add directory prefixes to the names of the generated files.
21015         * lib/unictype/gen-ctype.c: Remove file.
21016         * lib/unilbrk/gen-lbrk.c: Remove file.
21017         * modules/gen-uni-tables: New file.
21018         * modules/unictype/gen-ctype: Remove file.
21019         * modules/unilbrk/gen-lbrk: Remove file.
21020
21021 2009-02-07  Bruno Haible  <bruno@clisp.org>
21022
21023         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21024
21025         New module 'unistr/u32-strcoll'.
21026         * modules/unistr/u32-strcoll: New file.
21027         * lib/unistr/u32-strcoll.c: New file.
21028
21029         New module 'unistr/u16-strcoll'.
21030         * modules/unistr/u16-strcoll: New file.
21031         * lib/unistr/u16-strcoll.c: New file.
21032
21033         New module 'unistr/u8-strcoll'.
21034         * modules/unistr/u8-strcoll: New file.
21035         * lib/unistr/u8-strcoll.c: New file.
21036         * lib/unistr/u-strcoll.h: New file.
21037
21038 2009-02-07  Bruno Haible  <bruno@clisp.org>
21039
21040         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21041         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21042         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21043         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21044         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21045         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21046
21047 2009-02-07  Bruno Haible  <bruno@clisp.org>
21048
21049         Make 64-bit clean.
21050         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21051         output_combclass, output_bidi_category, output_decimal_digit,
21052         output_digit, output_numeric, output_mirror, output_scripts,
21053         output_ident_category): Use proper width specifier in format strings.
21054
21055 2009-02-07  Bruno Haible  <bruno@clisp.org>
21056
21057         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21058         failure behaviour.
21059
21060 2009-02-07  Jim Meyering  <meyering@redhat.com>
21061
21062         regex: avoid compilation failure with upcoming gcc-4.4
21063         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21064         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21065         "... error: integer overflow in preprocessor expression".
21066
21067 2009-02-05  Ben Pfaff  <blp@gnu.org>
21068
21069         Fix link errors on Windows when close module is used.
21070         * modules/close: Add $(LIB_CLOSE) to Link section.
21071         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21072         $(LIB_CLOSE) on Windows.
21073
21074 2009-02-05  Jim Meyering  <meyering@redhat.com>
21075
21076         still avoid unused-parameter warnings, but do it cleanly
21077         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21078         (get_fs_usage): Cast to void instead.
21079         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21080         (dev_from_mount_options, read_file_system_list): Cast to void.
21081         Prompted by Bruno Haible.
21082
21083 2009-02-04  Jim Meyering  <meyering@redhat.com>
21084
21085         fsusage.c: correct copyright year
21086         * lib/fsusage.c: Reflect year in which the change is pushed into
21087
21088         avoid misc. warnings
21089         * lib/fsusage.c (UNUSED_PARAM): Define.
21090         (get_fs_usage): Mark parameter "disk" as unused.
21091         * lib/getugroups.c (getgrent): Use "void" in prototype.
21092         * lib/mountlist.c: Mark unused parameters.
21093         (read_file_system_list): Declare a local with "const".
21094         * lib/nanosleep.c (getnow): Declare static.
21095         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21096
21097         dirfd: set errno upon failure
21098         * lib/dirfd.c: Include <errno.h>.
21099         Set errno to ENOTSUP when returning -1.
21100         * modules/dirfd (Depends-on): Add errno.
21101         Suggested by John Kodis <kodis@comcast.net>.
21102
21103 2009-02-01  Bruno Haible  <bruno@clisp.org>
21104
21105         Don't assume sizeof (long) >= sizeof (void *).
21106         * lib/memcmp.c: Include stdint.h.
21107         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21108         srcp2 to 'const byte *'.
21109         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21110         types to uintptr_t.
21111         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21112         * modules/memcmp (Depends-on): Add stdint.
21113         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21114
21115 2009-01-30  Eric Blake  <ebb9@byu.net>
21116
21117         fix more require-before-expand issues
21118         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21119         expand, AC_PROG_AWK.
21120         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21121
21122 2009-01-28  Eric Blake  <ebb9@byu.net>
21123
21124         version-etc: use consistent URL formatting
21125         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21126         Improve formatting.  Use fputs for string without %.
21127
21128 2009-01-28  Jim Meyering  <meyering@redhat.com>
21129
21130         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21131         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21132         "underquoted definition of NAME" from autoconf-2.59.
21133
21134 2009-01-28  Bruno Haible  <bruno@clisp.org>
21135
21136         * doc/gnulib.texi: Add "Obsolete modules" to index.
21137
21138 2009-01-28  Jim Meyering  <meyering@redhat.com>
21139
21140         useless-if-before-free: recognize more variants
21141         * build-aux/useless-if-before-free: Also recognize e.g.,
21142         if (NULL != p) free (p);
21143
21144 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21145
21146         test-getaddrinfo: skip (don't fail) this test when there's no network
21147         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21148         on the presumption that it means you lack network access.
21149
21150 2009-01-26  Jim Meyering  <meyering@redhat.com>
21151
21152         fflush: avoid warnings on modern systems
21153         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21154         pos and result, into scopes where they're used.
21155
21156 2009-01-26  Eric Blake  <ebb9@byu.net>
21157
21158         Silence warning reintroduced by recent extensions patch.
21159         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21160         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21161         autoconf.
21162
21163         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21164         * m4/00gnulib.m4: New file.
21165         * gnulib-tool (func_get_filelist): Always use it.
21166         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21167         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21168
21169 2009-01-25  Bruno Haible  <bruno@clisp.org>
21170
21171         Make test-quotearg work on MacOS X and AIX.
21172         * tests/test-quotearg.sh: New file.
21173         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21174         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21175         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21176         include <libintl.h>.
21177         (fake_locale): Remove variable.
21178         (gettext, dgettext, dcgettext): Remove functions.
21179         (main): Instead of setting a fake locale, set a real locale. Call
21180         textdomain and bindtextdomain.
21181         * modules/quotearg-tests (Files): Add the new files.
21182         (Depends-on): Add gettext, setenv, unsetenv.
21183         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21184         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21185         Augment TESTS_ENVIRONMENT.
21186
21187 2009-01-25  Bruno Haible  <bruno@clisp.org>
21188
21189         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21190         fr_FR.ISO8859-1 locale on MacOS X.
21191         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21192         ja_JP.eucJP locale on MacOS X.
21193         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21194         zh_CN.GB18030 locale on MacOS X.
21195
21196 2009-01-25  Bruno Haible  <bruno@clisp.org>
21197
21198         Avoid link errors on MacOS X 10.3.
21199         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21200         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21201
21202 2009-01-25  Bruno Haible  <bruno@clisp.org>
21203
21204         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21205         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21206         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21207         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21208         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21209         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21210         posix_spawnattr_init, posix_spawnattr_setsigmask,
21211         posix_spawnattr_setflags, posix_spawnattr_destroy.
21212
21213         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21214         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21215         * modules/execute (Files): Remove m4/posix_spawn.m4.
21216         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21217         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21218         posix_spawnattr_init, posix_spawnattr_setsigmask,
21219         posix_spawnattr_setflags, posix_spawnattr_destroy.
21220
21221 2009-01-25  Bruno Haible  <bruno@clisp.org>
21222
21223         * lib/glthread/threadlib.c: Include <stdlib.h>.
21224
21225 2009-01-25  Bruno Haible  <bruno@clisp.org>
21226
21227         * lib/glthread/threadlib.c (dummy): New declaration.
21228
21229 2009-01-25  Bruno Haible  <bruno@clisp.org>
21230
21231         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21232         multibyte characters also for the GB18030 encoding. Don't crash when
21233         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21234
21235 2009-01-25  Bruno Haible  <bruno@clisp.org>
21236
21237         Avoid redefining 'struct random_data' on OSF/1 5.1.
21238         * lib/stdlib.in.h: Include <random.h> if it exists.
21239         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21240         HAVE_RANDOM_H. Include <random.h> when testing whether
21241         'struct random_data' exists.
21242         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21243
21244 2009-01-25  Bruno Haible  <bruno@clisp.org>
21245
21246         Don't install charset.alias on MacOS X >= 10.3.
21247         * lib/localcharset.c (DARWIN7): New macro.
21248         (get_charset_aliases): Hardcode the result for Darwin7.
21249         * modules/localcharset (install-exec-local): Don't install
21250         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21251
21252 2009-01-25  Bruno Haible  <bruno@clisp.org>
21253
21254         Don't install charset.alias on mingw and Cygwin.
21255         * modules/localcharset (install-exec-local): Don't install
21256         charset.alias on mingw and Cygwin, if the file does not yet exist.
21257         The result for these platforms is hardcoded in localcharset.c.
21258
21259 2009-01-25  Bruno Haible  <bruno@clisp.org>
21260
21261         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21263         before requiring AC_USE_SYSTEM_EXTENSIONS.
21264
21265 2009-01-25  Jim Meyering  <meyering@redhat.com>
21266
21267         c-strtod: avoid warnings
21268         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21269         "assignment discards qualifiers from pointer target type" warnings.
21270
21271 2009-01-24  Bruno Haible  <bruno@clisp.org>
21272
21273         Add support for non-UTF-8 locales on MacOS X.
21274         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21275         canonical encodings. For Darwin 7 and newer, don't map traditional
21276         encodings to UTF-8.
21277         Reported by Vincent Lefevre <vincent@vinc17.org>
21278         at <http://savannah.gnu.org/bugs/?25235>.
21279
21280 2009-01-24  Bruno Haible  <bruno@clisp.org>
21281
21282         * doc/gnulib.texi (Obsolete modules): New section.
21283         Reported by Mike Frysinger <vapier@gentoo.org>.
21284
21285 2009-01-24  Bruno Haible  <bruno@clisp.org>
21286
21287         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21288         (%.dvi): New rule.
21289
21290 2009-01-24  Bruno Haible  <bruno@clisp.org>
21291
21292         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21293         Reported by Eric Blake.
21294
21295 2009-01-24  Bruno Haible  <bruno@clisp.org>
21296
21297         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21298         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21299         Reported by Gary V. Vaughan <gary@gnu.org>.
21300
21301 2009-01-24  Bruno Haible  <bruno@clisp.org>
21302
21303         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21304
21305 2009-01-23  Bruno Haible  <bruno@clisp.org>
21306
21307         Make c-strtod, c-strtold usable in libraries.
21308         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21309         (C_STRTOD): Call strdup instead of xstrdup.
21310         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21311         * modules/c-strtold (Depends-on): Likewise.
21312         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21313         * NEWS: Mention the change.
21314         Reported by Michael Gold <mgold@ncf.ca>.
21315
21316 2009-01-23  Jim Meyering  <meyering@redhat.com>
21317
21318         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21319         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21320         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21321
21322 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21323
21324         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21325         GNU CoreUtils.
21326         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21327         * modules/version-etc (Description): Update.
21328
21329 2009-01-22  Bruno Haible  <bruno@clisp.org>
21330
21331         Cache the C locale object.
21332         * lib/c-strtod.c (c_locale_cache): New variable.
21333         (c_locale): New function.
21334         (C_STRTOD): Use it, and don't call freelocale.
21335         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21336         Suggested by Paolo Bonzini.
21337
21338 2009-01-21  Bruno Haible  <bruno@clisp.org>
21339
21340         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21341         conditions other than overflow.
21342
21343 2009-01-21  Bruno Haible  <bruno@clisp.org>
21344
21345         * lib/c-strtod.c: Include errno.h.
21346         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21347         value from STRTOD_L and STRTOD.
21348
21349 2009-01-21  Bruno Haible  <bruno@clisp.org>
21350         and Jim Meyering  <meyering@redhat.com>
21351
21352         nanosleep: skip configure test (fail it) for apple universal builds
21353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21354         universal builds, assume that nanosleep does not work.
21355         * modules/nanosleep (Depends-on): Add multiarch.
21356
21357         mktime: skip configure test (fail it) for apple universal builds
21358         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21359         universal builds, assume that mktime does not work.
21360         * modules/mktime (Depends-on): Add multiarch.
21361
21362 2009-01-21  Eric Blake  <ebb9@byu.net>
21363
21364         multiarch: avoid expand-before-require warning
21365         * modules/multiarch (configure.ac): Require, rather than expand,
21366         gl_MULTIARCH.
21367         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21368         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21369         enforce that all clients require it.  Partial reversion of
21370         2008-12-29 patch.
21371
21372         error: avoid expand-before-require warning
21373         * modules/errno (configure.ac): Require, rather than expand,
21374         gl_HEADER_ERRNO_H.
21375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21376         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21377         enforce that all clients require it.
21378
21379         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21380         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21381         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21382         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21383
21384 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21385
21386         Revert:
21387         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21388
21389         regex: do not depend on obsolete modules.
21390         * modules/regex: Remove memcmp and memmove.
21391
21392 2009-01-20  Bruno Haible  <bruno@clisp.org>
21393
21394         Make the 'link' module link on Windows NT 4.
21395         * lib/link.c (_WIN32_WINNT): Don't define.
21396         (CreateHardLinkFuncType): New type.
21397         (CreateHardLinkFunc, initialized): New variables.
21398         (initialize): New function.
21399         (link): Invoke CreateHardLink indirectly through the function pointer.
21400
21401 2009-01-20  Bruno Haible  <bruno@clisp.org>
21402
21403         Fix compilation failure on mingw.
21404         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
21405
21406 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
21407
21408         * doc/c-strtod.texi: Mention a couple of restrictions.
21409
21410 2009-01-20  Jim Meyering  <meyering@redhat.com>
21411
21412         gettimeofday: move more declarations out of functions
21413         * lib/gettimeofday.c: Move extern declarations of tzset and
21414         gmtime out of containing functions.  Prompted by Bruno Haible.
21415
21416 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21417
21418         regex: do not depend on obsolete modules.
21419         * modules/regex: Remove memcmp and memmove.
21420
21421 2009-01-19  Bruno Haible  <bruno@clisp.org>
21422
21423         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21424         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
21425         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21426         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
21427         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
21428
21429 2009-01-19  Bruno Haible  <bruno@clisp.org>
21430
21431         * tests/test-link.c: Include <errno.h>.
21432         (main): Exit with code 77 when a hard link cannot be created due to
21433         the file system.
21434         * tests/test-link.sh: Skip test when a hard link cannot be created due
21435         to the file system.
21436         Suggested by Eric Blake.
21437
21438 2009-01-19  Martin Lambers  <marlam@marlam.de>
21439
21440         * modules/link-tests: New file.
21441         * tests/test-link.sh: New file.
21442         * tests/test-link.c: New file.
21443
21444 2009-01-19  Eric Blake  <ebb9@byu.net>
21445
21446         doc: mention another function added in cygwin 1.7.0
21447         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
21448         Another new function in cygwin 1.7.
21449
21450 2009-01-19  Bruno Haible  <bruno@clisp.org>
21451
21452         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
21453         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
21454         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
21455         gl_BIGENDIAN, not AC_C_BIGENDIAN.
21456         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21457         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21458         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21459         * m4/md4.m4 (gl_MD4): Likewise.
21460         * m4/md5.m4 (gl_MD5): Likewise.
21461         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
21462         * m4/sha1.m4 (gl_SHA1): Likewise.
21463         * m4/sha256.m4 (gl_SHA256): Likewise.
21464         * m4/sha512.m4 (gl_SHA512): Likewise.
21465
21466 2009-01-19  Bruno Haible  <bruno@clisp.org>
21467
21468         * modules/uniname/uniname-tests (Depends-on): Add progname.
21469         * tests/uniname/test-uninames.c: Include progname.h.
21470         (main): Call set_program_name.
21471
21472         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
21473         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
21474         (main): Call set_program_name.
21475
21476         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
21477         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
21478         (main): Call set_program_name.
21479
21480         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
21481         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
21482         (main): Call set_program_name.
21483
21484         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
21485         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
21486         (main): Call set_program_name.
21487
21488         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
21489         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
21490         (main): Call set_program_name.
21491
21492         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
21493         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
21494         (main): Call set_program_name.
21495
21496         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
21497         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
21498         (main): Call set_program_name.
21499
21500         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
21501         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
21502         (main): Call set_program_name.
21503
21504 2009-01-19  Eric Blake  <ebb9@byu.net>
21505
21506         test-unistd: test previous patch
21507         * tests/test-unistd.c: Test *_FILENO macros.
21508
21509         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
21510         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21511         Guarantee a definition.
21512         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
21513         * modules/unistd-safer (Depends-on): Add dependency on unistd.
21514         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
21515         * lib/dup-safer.c (STDERR_FILENO): Likewise.
21516         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21517         Likewise.
21518         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
21519         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
21520         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
21521         Likewise.
21522         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
21523         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
21524         (STDERR_FILENO): Likewise.
21525         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
21526         (STDERR_FILENO): Likewise.
21527         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
21528         (STDERR_FILENO): Likewise.
21529         Reported by Elbert Pol.
21530
21531 2009-01-19  Eric Blake  <ebb9@byu.net>
21532
21533         doc: mention more functions added in cygwin 1.7.0
21534         * doc/posix-functions/abort.texi (abort): Update wording related
21535         to cygwin.
21536         * doc/posix-functions/daylight.texi (daylight): Likewise.
21537         * doc/posix-functions/optarg.texi (optarg): Likewise.
21538         * doc/posix-functions/optarg.texi (opterr): Likewise.
21539         * doc/posix-functions/optarg.texi (optind): Likewise.
21540         * doc/posix-functions/optarg.texi (optopt): Likewise.
21541         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
21542         worked in 1.5.x, and was withdrawn in 1.7.
21543         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
21544         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
21545         cygwin versions.
21546         * doc/posix-functions/perror.texi (perror): Likewise.
21547         * doc/posix-functions/printf.texi (printf): Likewise.
21548         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
21549         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
21550         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21551         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21552         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21553         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
21554         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21555         Likewise.
21556         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21557         Likewise.
21558         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
21559         this function.
21560         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
21561         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
21562         Likewise.
21563         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
21564         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
21565         * doc/posix-functions/confstr.texi (confstr): Likewise.
21566         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
21567         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
21568         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
21569         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
21570         * doc/posix-functions/fputws.texi (fputws): Likewise.
21571         * doc/posix-functions/fwide.texi (fwide): Likewise.
21572         * doc/posix-functions/getwc.texi (getwc): Likewise.
21573         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
21574         * doc/posix-functions/putwc.texi (putwc): Likewise.
21575         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
21576         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
21577         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
21578         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
21579         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
21580         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
21581         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
21582         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
21583         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
21584         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
21585         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
21586
21587 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21588
21589         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
21590         * lib/ioctl.c: Include <sys/ioctl.h>.
21591
21592 2009-01-19  Simon Josefsson  <simon@josefsson.org>
21593
21594         * modules/getdate-tests (Depends-on): Add progname.
21595         * tests/test-getdate.c: Use progname module, to avoid link errors
21596         on non-glibc systems.
21597
21598 2009-01-18  Simon Josefsson  <simon@josefsson.org>
21599
21600         * modules/filenamecat-tests (Depends-on): Add progname.
21601         * modules/fstrcmp-tests (Depends-on): Likewise.
21602
21603         * tests/test-filenamecat.c: Use progname module, to avoid link
21604         errors on non-glibc systems.
21605         * tests/test-fstrcmp.c: Likewise.
21606
21607 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
21608
21609         gettimeofday: avoid warning: nested extern declaration of 'localtime'
21610         * lib/gettimeofday.c: Move extern declaration out of function.
21611
21612 2009-01-18  Bruno Haible  <bruno@clisp.org>
21613
21614         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
21615         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
21616         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
21617
21618 2009-01-18  Bruno Haible  <bruno@clisp.org>
21619
21620         * lib/strftime.c (MEMPCPY): Remove unused macro.
21621         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
21622
21623 2009-01-18  Martin Lambers  <marlam@marlam.de>
21624
21625         New module 'link'.
21626         * lib/unistd.in.h (link): New declaration.
21627         * lib/link.c: New file.
21628         * m4/link.m4: New file.
21629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
21630         HAVE_LINK.
21631         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
21632         * modules/link: New file.
21633         * doc/posix-functions/link.texi: Mention the new module.
21634
21635 2009-01-18  Bruno Haible  <bruno@clisp.org>
21636
21637         * tests/test-avltree_list.c (main): Call set_program_name.
21638         * tests/test-avltree_oset.c (main): Likewise.
21639         * tests/test-obstack-printf.c: Include progname.h.
21640         (main): Call set_program_name.
21641         * tests/test-quotearg.c: Include progname.h.
21642         (main): Call set_program_name.
21643         * tests/test-xmemdup0.c: Include progname.h.
21644         (main): Call set_program_name.
21645
21646 2009-01-18  Bruno Haible  <bruno@clisp.org>
21647
21648         New module 'alphasort'.
21649         * lib/dirent.in.h (alphasort): New declaration.
21650         * lib/alphasort.c: New file, from glibc with modifications.
21651         * m4/alphasort.m4: New file.
21652         * modules/alphasort: New file.
21653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
21654         HAVE_ALPHASORT.
21655         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
21656         HAVE_ALPHASORT.
21657         * doc/posix-functions/alphasort.texi: Mention the new module and the
21658         portability problems.
21659
21660 2009-01-18  Bruno Haible  <bruno@clisp.org>
21661
21662         New module 'scandir'.
21663         * lib/dirent.in.h (scandir): New declaration.
21664         * lib/scandir.c: New file, from glibc with modifications.
21665         * m4/scandir.m4: New file.
21666         * modules/scandir: New file.
21667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
21668         HAVE_SCANDIR.
21669         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
21670         HAVE_SCANDIR.
21671         * doc/posix-functions/scandir.texi: Mention the new module and the
21672         portability problems.
21673
21674 2009-01-17  Bruno Haible  <bruno@clisp.org>
21675
21676         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
21677         Update documentation.
21678         (func_remove_suffix): Escape all dots in the suffix. Update
21679         documentation.
21680         (func_filter_filelist): Update documentation.
21681         Reported by Ralf Wildenhues.
21682
21683 2009-01-17  Bruno Haible  <bruno@clisp.org>
21684
21685         * modules/dprintf-posix-tests: New file.
21686         * tests/test-dprintf-posix.sh: New file.
21687         * tests/test-dprintf-posix.c: New file.
21688
21689         New modules 'dprintf', 'dprintf-posix'.
21690         * lib/stdio.in.h (dprintf): New declaration.
21691         * lib/dprintf.c: New file.
21692         * m4/dprintf.m4: New file.
21693         * m4/dprintf-posix.m4: New file.
21694         * modules/dprintf: New file.
21695         * modules/dprintf-posix: New file.
21696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
21697         HAVE_DPRINTF, REPLACE_DPRINTF.
21698         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
21699         HAVE_DPRINTF, REPLACE_DPRINTF.
21700         * doc/posix-functions/dprintf.texi: Mention the new modules.
21701
21702 2009-01-17  Bruno Haible  <bruno@clisp.org>
21703
21704         * modules/vdprintf-posix-tests: New file.
21705         * tests/test-vdprintf-posix.sh: New file.
21706         * tests/test-vdprintf-posix.c: New file.
21707
21708         New modules 'vdprintf', 'vdprintf-posix'.
21709         * lib/stdio.in.h (vdprintf): New declaration.
21710         * lib/vdprintf.c: New file.
21711         * m4/vdprintf.m4: New file.
21712         * m4/vdprintf-posix.m4: New file.
21713         * modules/vdprintf: New file.
21714         * modules/vdprintf-posix: New file.
21715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
21716         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21717         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
21718         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21719         * doc/posix-functions/vdprintf.texi: Mention the new modules.
21720
21721 2009-01-17  Bruno Haible  <bruno@clisp.org>
21722
21723         Fix replacement of fopen on mingw.
21724         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
21725         mingw.
21726
21727 2009-01-17  Bruno Haible  <bruno@clisp.org>
21728
21729         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
21730         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
21731
21732 2009-01-17  Bruno Haible  <bruno@clisp.org>
21733
21734         Avoid test-fflush2.sh failure on mingw.
21735         * tests/test-fflush2.c: Include binary-io.h.
21736         (main): Put standard input into binary mode.
21737         * modules/fflush-tests (Depends-on): Add binary-io.
21738
21739 2009-01-17  Bruno Haible  <bruno@clisp.org>
21740
21741         * lib/wchar.in.h: In another particular situation, include only the
21742         system's <wchar.h> file.
21743         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
21744         Reported by Albert Chin-A-Young <china@thewrittenword.com>
21745         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
21746
21747 2009-01-17  Bruno Haible  <bruno@clisp.org>
21748
21749         Support for stripping executables in --enable-relocatable.
21750         * build-aux/install-reloc: Expect one more argument, or an environment
21751         variable RELOC_STRIP_PROG. If set, strip the destination program and
21752         its wrapper.
21753         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
21754         RELOC_STRIP_PROG.
21755         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
21756         to set RELOCATABLE_STRIP.
21757         * NEWS: Mention the new Makefile requirement.
21758
21759 2009-01-17  Bruno Haible  <bruno@clisp.org>
21760
21761         * build-aux/install-reloc: Remove debugging information left over by
21762         C compiler on MacOS X.
21763
21764 2009-01-17  Bruno Haible  <bruno@clisp.org>
21765
21766         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
21767         * lib/progreloc.c (find_executable): Fix type of pointer passed to
21768         _NSGetExecutablePath.
21769
21770 2009-01-16  Jim Meyering  <meyering@redhat.com>
21771
21772         strerror: avoid warnings about discarding "const"
21773         * lib/strerror.c (rpl_strerror): Instead of returning a const
21774         string from each and every "case", use a variable, and add a single
21775         cast after the switch.
21776
21777 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
21778
21779         * lib/arpa_inet.in.h: Add extern "C" block for C++.
21780
21781 2009-01-16  Bruno Haible  <bruno@clisp.org>
21782
21783         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
21784         array initializer syntax that also works in C++ mode.
21785         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21786
21787 2009-01-16  Jim Meyering  <meyering@redhat.com>
21788
21789         poll: suppress a warning
21790         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
21791         to ignore "...unsigned expression < 0 is always false" warnings.
21792
21793 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
21794
21795         poll: remove declarations of unused variables
21796         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
21797         sockbuf and optlen.
21798
21799 2009-01-15  Bruno Haible  <bruno@clisp.org>
21800
21801         Make fflush-after-ungetc POSIX compliant on BSD systems.
21802         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
21803         (clear_ungetc_buffer): Implement also for other systems.
21804         (rpl_fflush): On glibc systems, invoke
21805         clear_ungetc_buffer_preserving_position. Otherwise, invoke
21806         clear_ungetc_buffer after fetching the stream's position, not before.
21807
21808 2009-01-15  Bruno Haible  <bruno@clisp.org>
21809
21810         Make fflush-after-ungetc POSIX compliant on glibc systems.
21811         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
21812         after ungetc.
21813         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
21814         (rpl_fflush): On glibc systems, simply call the system's fflush
21815         function after clearing the ungetc buffer.
21816         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
21817         Instead, lseek only to the end of file, then use the system's fseeko
21818         for the rest. On glibc systems, reset the EOF indicator bit.
21819
21820 2009-01-15  Jim Meyering  <meyering@redhat.com>
21821
21822         openmp.m4: revert quote-adding change, for portability to older autoconf
21823         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
21824         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
21825         Simon Josefsson noticed the problem when using autoconf-2.61.
21826
21827 2009-01-15  Bruno Haible  <bruno@clisp.org>
21828
21829         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
21830         * tests/test-fflush2.c (ASSERT): Always fail.
21831         (main): Add two tests for fflush() after ungetc(), taking into account
21832         the Austin Group's clarification.
21833         Suggested by Eric Blake.
21834
21835 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
21836
21837         mktime.m4: remove K&R-style function prototypes
21838         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
21839         for the Sun C++ compiler.
21840
21841 2009-01-14  Bruno Haible  <bruno@clisp.org>
21842
21843         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
21844         while including <wchar.h>.
21845         * lib/wchar.in.h: In two particular situations on HP-UX, include only
21846         the system's <wchar.h> file.
21847         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21848
21849 2009-01-14  Bruno Haible  <bruno@clisp.org>
21850
21851         * m4/csharp.m4: Don't mention gettext on the serial number line.
21852         * m4/csharpexec.m4: Likewise.
21853         * m4/eaccess.m4: Likewise.
21854         * m4/javaexec.m4: Likewise.
21855         * m4/sig_atomic_t.m4: Likewise.
21856         * m4/tmpdir.m4: Likewise.
21857         * m4/intldir.m4: Bump gettext version.
21858         * m4/lib-ld.m4: Likewise.
21859
21860 2009-01-14  Bruno Haible  <bruno@clisp.org>
21861
21862         * lib/progname.c (set_program_name): Add more comments.
21863         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21864
21865 2009-01-14  Simon Josefsson  <simon@josefsson.org>
21866
21867         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
21868         were sys/stat.h does not define it.
21869
21870 2009-01-14  Jim Meyering  <meyering@redhat.com>
21871
21872         many *.m4 files: improve m4 quoting
21873         99% of this change was performed by running the following commands:
21874         git ls-files | grep '\.m4$' | xargs perl -pi \
21875           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
21876           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21877           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21878           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
21879         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
21880         The remainder were to add Copyright dates, increment serial numbers,
21881         undo some changes in comments, exclude m4/intl.m4, and add quotes
21882         around the "1" in ",1" where the unusual spacing prohibited the
21883         above regexps from doing the job.  For more details, see
21884         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
21885         * m4/acl.m4: Modified.
21886         * m4/afs.m4: Likewise.
21887         * m4/alloca.m4: Likewise.
21888         * m4/argp.m4: Likewise.
21889         * m4/argz.m4: Likewise.
21890         * m4/atexit.m4: Likewise.
21891         * m4/bison-i18n.m4: Likewise.
21892         * m4/bison.m4: Likewise.
21893         * m4/byteswap.m4: Likewise.
21894         * m4/c-stack.m4: Likewise.
21895         * m4/c-strtod.m4: Likewise.
21896         * m4/calloc.m4: Likewise.
21897         * m4/canonicalize-lgpl.m4: Likewise.
21898         * m4/chown.m4: Likewise.
21899         * m4/clock_time.m4: Likewise.
21900         * m4/codeset.m4: Likewise.
21901         * m4/copy-file.m4: Likewise.
21902         * m4/csharp.m4: Likewise.
21903         * m4/csharpcomp.m4: Likewise.
21904         * m4/csharpexec.m4: Likewise.
21905         * m4/d-ino.m4: Likewise.
21906         * m4/d-type.m4: Likewise.
21907         * m4/dirfd.m4: Likewise.
21908         * m4/double-slash-root.m4: Likewise.
21909         * m4/eaccess.m4: Likewise.
21910         * m4/eealloc.m4: Likewise.
21911         * m4/environ.m4: Likewise.
21912         * m4/errno_h.m4: Likewise.
21913         * m4/euidaccess.m4: Likewise.
21914         * m4/execute.m4: Likewise.
21915         * m4/fatal-signal.m4: Likewise.
21916         * m4/fchdir.m4: Likewise.
21917         * m4/fcntl_h.m4: Likewise.
21918         * m4/fileblocks.m4: Likewise.
21919         * m4/filenamecat.m4: Likewise.
21920         * m4/findprog.m4: Likewise.
21921         * m4/flexmember.m4: Likewise.
21922         * m4/fnmatch.m4: Likewise.
21923         * m4/fopen.m4: Likewise.
21924         * m4/fpending.m4: Likewise.
21925         * m4/fprintf-posix.m4: Likewise.
21926         * m4/free.m4: Likewise.
21927         * m4/frexp.m4: Likewise.
21928         * m4/frexpl.m4: Likewise.
21929         * m4/fsusage.m4: Likewise.
21930         * m4/ftruncate.m4: Likewise.
21931         * m4/gc-camellia.m4: Likewise.
21932         * m4/gc-random.m4: Likewise.
21933         * m4/gc.m4: Likewise.
21934         * m4/getaddrinfo.m4: Likewise.
21935         * m4/getcwd-abort-bug.m4: Likewise.
21936         * m4/getcwd-path-max.m4: Likewise.
21937         * m4/getdate.m4: Likewise.
21938         * m4/getdomainname.m4: Likewise.
21939         * m4/getgroups.m4: Likewise.
21940         * m4/gethostname.m4: Likewise.
21941         * m4/gethrxtime.m4: Likewise.
21942         * m4/getline.m4: Likewise.
21943         * m4/getloadavg.m4: Likewise.
21944         * m4/getndelim2.m4: Likewise.
21945         * m4/getpass.m4: Likewise.
21946         * m4/gettext.m4: Likewise.
21947         * m4/gettime.m4: Likewise.
21948         * m4/gettimeofday.m4: Likewise.
21949         * m4/gnulib-common.m4: Likewise.
21950         * m4/group-member.m4: Likewise.
21951         * m4/host-os.m4: Likewise.
21952         * m4/iconv.m4: Likewise.
21953         * m4/iconv_open.m4: Likewise.
21954         * m4/inet_ntop.m4: Likewise.
21955         * m4/inet_pton.m4: Likewise.
21956         * m4/inline.m4: Likewise.
21957         * m4/intldir.m4: Likewise.
21958         * m4/intlmacosx.m4: Likewise.
21959         * m4/intmax.m4: Likewise.
21960         * m4/intmax_t.m4: Likewise.
21961         * m4/inttypes.m4: Likewise.
21962         * m4/inttypes_h.m4: Likewise.
21963         * m4/inttypes-pri.m4: Likewise.
21964         * m4/isapipe.m4: Likewise.
21965         * m4/isnand.m4: Likewise.
21966         * m4/isnanf.m4: Likewise.
21967         * m4/isnanl.m4: Likewise.
21968         * m4/javacomp.m4: Likewise.
21969         * m4/javaexec.m4: Likewise.
21970         * m4/jm-winsz1.m4: Likewise.
21971         * m4/jm-winsz2.m4: Likewise.
21972         * m4/lchown.m4: Likewise.
21973         * m4/lcmessage.m4: Likewise.
21974         * m4/ldexpl.m4: Likewise.
21975         * m4/lib-ld.m4: Likewise.
21976         * m4/lib-link.m4: Likewise.
21977         * m4/libsigsegv.m4: Likewise.
21978         * m4/link-follow.m4: Likewise.
21979         * m4/localcharset.m4: Likewise.
21980         * m4/locale-fr.m4: Likewise.
21981         * m4/locale-ja.m4: Likewise.
21982         * m4/locale-tr.m4: Likewise.
21983         * m4/locale-zh.m4: Likewise.
21984         * m4/lock.m4: Likewise.
21985         * m4/longlong.m4: Likewise.
21986         * m4/ls-mntd-fs.m4: Likewise.
21987         * m4/lstat.m4: Likewise.
21988         * m4/malloc.m4: Likewise.
21989         * m4/mathl.m4: Likewise.
21990         * m4/mbrtowc.m4: Likewise.
21991         * m4/mbstate_t.m4: Likewise.
21992         * m4/mbswidth.m4: Likewise.
21993         * m4/memchr.m4: Likewise.
21994         * m4/memcmp.m4: Likewise.
21995         * m4/memcpy.m4: Likewise.
21996         * m4/memmem.m4: Likewise.
21997         * m4/memmove.m4: Likewise.
21998         * m4/mempcpy.m4: Likewise.
21999         * m4/memrchr.m4: Likewise.
22000         * m4/memset.m4: Likewise.
22001         * m4/minmax.m4: Likewise.
22002         * m4/mkdir-slash.m4: Likewise.
22003         * m4/mkdtemp.m4: Likewise.
22004         * m4/mktime.m4: Likewise.
22005         * m4/mmap-anon.m4: Likewise.
22006         * m4/mountlist.m4: Likewise.
22007         * m4/nanosleep.m4: Likewise.
22008         * m4/nls.m4: Likewise.
22009         * m4/nocrash.m4: Likewise.
22010         * m4/open.m4: Likewise.
22011         * m4/openat.m4: Likewise.
22012         * m4/openmp.m4: Likewise.
22013         * m4/pathmax.m4: Likewise.
22014         * m4/perl.m4: Likewise.
22015         * m4/physmem.m4: Likewise.
22016         * m4/pipe.m4: Likewise.
22017         * m4/po.m4: Likewise.
22018         * m4/poll.m4: Likewise.
22019         * m4/posixtm.m4: Likewise.
22020         * m4/posixver.m4: Likewise.
22021         * m4/printf-frexp.m4: Likewise.
22022         * m4/printf-frexpl.m4: Likewise.
22023         * m4/printf-posix.m4: Likewise.
22024         * m4/printf-posix-rpl.m4: Likewise.
22025         * m4/printf.m4: Likewise.
22026         * m4/progtest.m4: Likewise.
22027         * m4/putenv.m4: Likewise.
22028         * m4/readline.m4: Likewise.
22029         * m4/readlink.m4: Likewise.
22030         * m4/readutmp.m4: Likewise.
22031         * m4/realloc.m4: Likewise.
22032         * m4/regex.m4: Likewise.
22033         * m4/relocatable.m4: Likewise.
22034         * m4/relocatable-lib.m4: Likewise.
22035         * m4/rename-dest-slash.m4: Likewise.
22036         * m4/rename.m4: Likewise.
22037         * m4/rmdir-errno.m4: Likewise.
22038         * m4/rmdir.m4: Likewise.
22039         * m4/roundf.m4: Likewise.
22040         * m4/roundl.m4: Likewise.
22041         * m4/rpmatch.m4: Likewise.
22042         * m4/save-cwd.m4: Likewise.
22043         * m4/selinux-selinux-h.m4: Likewise.
22044         * m4/setenv.m4: Likewise.
22045         * m4/settime.m4: Likewise.
22046         * m4/sig2str.m4: Likewise.
22047         * m4/sig_atomic_t.m4: Likewise.
22048         * m4/signalblocking.m4: Likewise.
22049         * m4/signbit.m4: Likewise.
22050         * m4/sigpipe.m4: Likewise.
22051         * m4/sockets.m4: Likewise.
22052         * m4/sockpfaf.m4: Likewise.
22053         * m4/st_dm_mode.m4: Likewise.
22054         * m4/stat-time.m4: Likewise.
22055         * m4/stdbool.m4: Likewise.
22056         * m4/stdint.m4: Likewise.
22057         * m4/stdint_h.m4: Likewise.
22058         * m4/stpcpy.m4: Likewise.
22059         * m4/stpncpy.m4: Likewise.
22060         * m4/strcase.m4: Likewise.
22061         * m4/strchrnul.m4: Likewise.
22062         * m4/strcspn.m4: Likewise.
22063         * m4/strdup.m4: Likewise.
22064         * m4/strftime.m4: Likewise.
22065         * m4/strndup.m4: Likewise.
22066         * m4/strnlen.m4: Likewise.
22067         * m4/strpbrk.m4: Likewise.
22068         * m4/strptime.m4: Likewise.
22069         * m4/strsep.m4: Likewise.
22070         * m4/strtod.m4: Likewise.
22071         * m4/strtoimax.m4: Likewise.
22072         * m4/strtok_r.m4: Likewise.
22073         * m4/strtol.m4: Likewise.
22074         * m4/strtoll.m4: Likewise.
22075         * m4/strtoul.m4: Likewise.
22076         * m4/strtoull.m4: Likewise.
22077         * m4/strtoumax.m4: Likewise.
22078         * m4/strverscmp.m4: Likewise.
22079         * m4/threadlib.m4: Likewise.
22080         * m4/timegm.m4: Likewise.
22081         * m4/tm_gmtoff.m4: Likewise.
22082         * m4/tmpdir.m4: Likewise.
22083         * m4/tmpfile.m4: Likewise.
22084         * m4/tzset.m4: Likewise.
22085         * m4/uintmax_t.m4: Likewise.
22086         * m4/unlinkdir.m4: Likewise.
22087         * m4/unlocked-io.m4: Likewise.
22088         * m4/uptime.m4: Likewise.
22089         * m4/userspec.m4: Likewise.
22090         * m4/utimbuf.m4: Likewise.
22091         * m4/utime.m4: Likewise.
22092         * m4/utimes-null.m4: Likewise.
22093         * m4/utimes.m4: Likewise.
22094         * m4/vararrays.m4: Likewise.
22095         * m4/vasnprintf.m4: Likewise.
22096         * m4/vfprintf-posix.m4: Likewise.
22097         * m4/vprintf-posix.m4: Likewise.
22098         * m4/wait-process.m4: Likewise.
22099         * m4/wchar_t.m4: Likewise.
22100         * m4/wint_t.m4: Likewise.
22101         * m4/write-any-file.m4: Likewise.
22102         * m4/yield.m4: Likewise.
22103
22104 2009-01-13  Bruno Haible  <bruno@clisp.org>
22105
22106         Avoid test-copy-file.sh failures when ACL support insufficient.
22107         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22108         TESTS_ENVIRONMENT.
22109         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22110         Reported by Jim Meyering.
22111
22112 2009-01-13  Bruno Haible  <bruno@clisp.org>
22113
22114         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22115         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22116         * modules/unistdio/u8-printf-parse (Files): Likewise.
22117         * modules/unistdio/u32-printf-parse (Files): Likewise.
22118         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22119
22120 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22121
22122         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22123         and m4/inttypes_h.m4 too.
22124
22125 2009-01-12  Eric Blake  <ebb9@byu.net>
22126
22127         tests: IRIX 6.2 cc can't compile -0.0 into .data
22128         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22129         rather than at compile-time.
22130         * tests/test-floorl.c (minus_zero): Likewise.
22131         * tests/test-frexpl.c (minus_zero): Likewise.
22132         * tests/test-isnan.c (minus_zerol): Likewise.
22133         * tests/test-isnanl.h (minus_zero): Likewise.
22134         * tests/test-ldexpl.c (minus_zero): Likewise.
22135         * tests/test-roundl.c (minus_zero): Likewise.
22136         * tests/test-signbit.c (minus_zerol): Likewise.
22137         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22138         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22139         * tests/test-truncl.c (minus_zero): Likewise.
22140         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22141         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22142         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22143
22144 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22145
22146         regex: fix glibc bug 9697
22147         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22148         handling.
22149
22150 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22151
22152         regex: fix glibc bug 697
22153         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22154         being NULL also if there are no backreferences.
22155
22156 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22157
22158         regex: merge glibc changes
22159         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22160         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22161         re_string_skip_chars, re_string_reconstruct): Likewise.
22162         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22163
22164 2009-01-07  Jim Meyering  <meyering@redhat.com>
22165
22166         poll: filter through cppi
22167         * lib/poll.c: Indent cpp directives to reflect nesting.
22168
22169 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22170
22171         poll: don't return uninitialized
22172         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22173
22174 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22175
22176         avoid compile failure on AIX 6.1
22177         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22178         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22179
22180 2009-01-04  Jim Meyering  <meyering@redhat.com>
22181
22182         remove duplicate inclusion of <stdio.h>
22183         * tests/test-fprintf-posix.c: Likewise.
22184         * tests/test-printf-posix.c: Likewise.
22185         * tests/test-snprintf-posix.c: Likewise.
22186         * tests/test-sprintf-posix.c: Likewise.
22187         * tests/test-vasprintf-posix.c: Likewise.
22188         * tests/test-vfprintf-posix.c: Likewise.
22189         * tests/test-vprintf-posix.c: Likewise.
22190         * tests/test-vsnprintf-posix.c: Likewise.
22191         * tests/test-vsprintf-posix.c: Likewise.
22192
22193 2009-01-03  Jim Meyering  <meyering@redhat.com>
22194
22195         gnulib-tool: fix sed-based filtering
22196         * gnulib-tool (func_filter_filelist): Remove extra backslash
22197         in sed_fff_filter definition.
22198
22199 2009-01-02  Jim Meyering  <meyering@redhat.com>
22200
22201         strftime: avoid compilation failure on Solaris 2.6
22202         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22203         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22204         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22205         be available.  Reported by Tom G. Christensen.  Details in
22206         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22207
22208 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22209             Bruno Haible  <bruno@clisp.org>
22210
22211         Speed up gnulib-tool by doing more string processing through shell
22212         built-ins.
22213         * gnulib-tool (fast_func_append): New variable.
22214         (func_remove_prefix, func_remove_suffix): New functions.
22215         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22216         (func_filter_filelist): New function.
22217         (func_get_dependencies): Use func_remove_suffix instead of sed.
22218         (func_get_automake_snippet): Use func_filter_filelist instead of a
22219         subshell and sed invocation.
22220
22221 2009-01-01  Bruno Haible  <bruno@clisp.org>
22222
22223         Fix a security bug.
22224         * gnulib-tool (func_import, import, update): Don't allow the characters
22225         '"', '$', '`', '\' in macro arguments that become part of commands that
22226         are evaluated.
22227
22228 2009-01-01  Bruno Haible  <bruno@clisp.org>
22229
22230         * gnulib-tool (func_reset_sigpipe): Add more comments.
22231
22232 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22233
22234         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22235         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22236         already know the answer.
22237
22238 2009-01-01  Jim Meyering  <meyering@redhat.com>
22239
22240         * lib/version-etc.c (version_etc_va): Update copyright year.
22241
22242 2008-12-30  Bruno Haible  <bruno@clisp.org>
22243
22244         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22245         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22246         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22247
22248 2008-12-29  Eric Blake  <ebb9@byu.net>
22249
22250         multiarch: avoid autoconf AC_REQUIRE bug
22251         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22252         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22253         2.63 and older.
22254         Reported by Bruno Haible, and analyzed in
22255         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22256
22257 2008-12-29  Bruno Haible  <bruno@clisp.org>
22258
22259         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22260         files in subdirectories correctly.
22261         Reported by Ralf Wildenhues.
22262
22263 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22264
22265         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22266         rather than 'join FILE -', for Solaris join.
22267
22268 2008-12-29  Bruno Haible  <bruno@clisp.org>
22269
22270         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22271         quoting.
22272         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22273         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22274         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22275         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22276         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22277         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22278         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22279         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22280         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22281         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22282         * m4/nls.m4 (AM_NLS): Likewise.
22283         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22284         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22285         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22286         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22287         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22288         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22289         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22290         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22291         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22292         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22293         * m4/xsize.m4 (gl_XSIZE): Likewise.
22294         Suggested by Jim Meyering.
22295
22296 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22297
22298         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22299         * lib/parse-duration.c: use a switch instead of cascading if's.
22300
22301 2008-12-29  Eric Blake  <ebb9@byu.net>
22302
22303         wchar.h: supply WEOF on Irix 5.3
22304         * lib/wchar.in.h (wint_t): Also supply WEOF.
22305         * lib/wctype.in.h (wint_t): Likewise.
22306         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22307         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22308         Reported by Tom G. Christensen.
22309
22310 2008-12-26  Bruno Haible  <bruno@clisp.org>
22311
22312         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22313         i486, i586, i686.
22314
22315 2008-12-26  Bruno Haible  <bruno@clisp.org>
22316
22317         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22318
22319 2008-12-26  Bruno Haible  <bruno@clisp.org>
22320
22321         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22322         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22323         not __STDC_CONSTANT_MACROS.
22324         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22325
22326 2008-12-25  Bruno Haible  <bruno@clisp.org>
22327
22328         Add support for universal builds to vasnprintf.
22329         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22330         universal builds, guess no.
22331         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22332         * modules/vasprintf-posix (Depends-on): Likewise.
22333         * modules/fprintf-posix (Depends-on): Likewise.
22334         * modules/vfprintf-posix (Depends-on): Likewise.
22335         * modules/snprintf-posix (Depends-on): Likewise.
22336         * modules/vsnprintf-posix (Depends-on): Likewise.
22337         * modules/sprintf-posix (Depends-on): Likewise.
22338         * modules/vsprintf-posix (Depends-on): Likewise.
22339         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22340         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22341         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22342         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22343         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22344         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22345         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22346
22347         Add support for universal builds to <inttypes.h>.
22348         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22349         _SCNu64_PREFIX): In Apple
22350         universal builds, define directly, using _LP64.
22351         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22352         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22353         * modules/inttypes (Depends-on): Add multiarch.
22354         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22355
22356         Add support for universal builds to <stdint.h>.
22357         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22358         universal builds, define directly, using _LP64.
22359         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22360         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22361         and size_t.
22362         * modules/stdint (Depends-on): Add multiarch.
22363         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22364
22365         New module 'multiarch'.
22366         * modules/multiarch: New file.
22367         * m4/multiarch.m4: New file.
22368
22369 2008-12-25  Bruno Haible  <bruno@clisp.org>
22370
22371         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22372
22373 2008-12-25  Bruno Haible  <bruno@clisp.org>
22374
22375         * modules/btowc (License): Relicense under LGPLv2+.
22376         * modules/mbsinit (License): Likewise.
22377         * modules/mbrtowc (License): Likewise.
22378         * modules/wcrtomb (License): Likewise.
22379         * modules/streq (License): Likewise.
22380         Reported by David Lutterkort <lutter@redhat.com>.
22381
22382 2008-12-23  Bruno Haible  <bruno@clisp.org>
22383
22384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22385
22386 2008-12-23  Bruno Haible  <bruno@clisp.org>
22387
22388         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22390         GETADDRINFO_LIB, not in LIBS.
22391         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22392         * modules/canon-host (Link): Likewise.
22393         * NEWS: Mention the change.
22394         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22395         GETADDRINFO_LIB.
22396
22397 2008-12-22  Bruno Haible  <bruno@clisp.org>
22398
22399         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22400         * doc/posix-functions/iswalpha_l.texi: Likewise.
22401         * doc/posix-functions/iswblank_l.texi: Likewise.
22402         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22403         * doc/posix-functions/iswctype_l.texi: Likewise.
22404         * doc/posix-functions/iswdigit_l.texi: Likewise.
22405         * doc/posix-functions/iswgraph_l.texi: Likewise.
22406         * doc/posix-functions/iswlower_l.texi: Likewise.
22407         * doc/posix-functions/iswprint_l.texi: Likewise.
22408         * doc/posix-functions/iswpunct_l.texi: Likewise.
22409         * doc/posix-functions/iswspace_l.texi: Likewise.
22410         * doc/posix-functions/iswupper_l.texi: Likewise.
22411         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22412         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
22413         * doc/posix-functions/open_wmemstream.texi: Likewise.
22414         * doc/posix-functions/swscanf.texi: Likewise.
22415         * doc/posix-functions/towctrans_l.texi: Likewise.
22416         * doc/posix-functions/towlower.texi: Likewise.
22417         * doc/posix-functions/towlower_l.texi: Likewise.
22418         * doc/posix-functions/towupper.texi: Likewise.
22419         * doc/posix-functions/towupper_l.texi: Likewise.
22420         * doc/posix-functions/vfwprintf.texi: Likewise.
22421         * doc/posix-functions/vfwscanf.texi: Likewise.
22422         * doc/posix-functions/vswscanf.texi: Likewise.
22423         * doc/posix-functions/vwprintf.texi: Likewise.
22424         * doc/posix-functions/vwscanf.texi: Likewise.
22425         * doc/posix-functions/wcpcpy.texi: Likewise.
22426         * doc/posix-functions/wcpncpy.texi: Likewise.
22427         * doc/posix-functions/wcscasecmp.texi: Likewise.
22428         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
22429         * doc/posix-functions/wcscoll_l.texi: Likewise.
22430         * doc/posix-functions/wcsdup.texi: Likewise.
22431         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22432         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
22433         * doc/posix-functions/wcsnlen.texi: Likewise.
22434         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22435         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22436         * doc/posix-functions/wctrans_l.texi: Likewise.
22437         * doc/posix-functions/wctype_l.texi: Likewise.
22438         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
22439         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
22440         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
22441         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
22442         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
22443         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
22444         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
22445         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
22446         * doc/glibc-functions/wcschrnul.texi: Likewise.
22447         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22448         * doc/glibc-functions/wcstod_l.texi: Likewise.
22449         * doc/glibc-functions/wcstof_l.texi: Likewise.
22450         * doc/glibc-functions/wcstol_l.texi: Likewise.
22451         * doc/glibc-functions/wcstold_l.texi: Likewise.
22452         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22453         * doc/glibc-functions/wcstoq.texi: Likewise.
22454         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22455         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22456         * doc/glibc-functions/wcstouq.texi: Likewise.
22457         * doc/glibc-functions/wmempcpy.texi: Likewise.
22458
22459 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
22460             Eric Blake  <ebb9@byu.net>
22461             Paolo Bonzini  <bonzini@gnu.org>
22462             Bruno Haible  <bruno@clisp.org>
22463
22464         Make c-stack work on Haiku.
22465         * lib/c-stack.c (SA_ONSTACK): Define fallback.
22466         (c_stack_action): Use SA_ONSTACK flag.
22467
22468 2008-12-22  Bruno Haible  <bruno@clisp.org>
22469
22470         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
22471
22472 2008-12-22  Bruno Haible  <bruno@clisp.org>
22473
22474         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
22475         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
22476         being overridden.
22477         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
22478         New macros.
22479         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
22480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
22481         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
22482         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
22483
22484 2008-12-22  Bruno Haible  <bruno@clisp.org>
22485
22486         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
22487         from test code.
22488
22489 2008-12-22  Eric Blake  <ebb9@byu.net>
22490
22491         Avoid gcc warnings on cygwin.
22492         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
22493         Avoid unused variable.
22494         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
22495         Likewise.
22496
22497 2008-12-22  Bruno Haible  <bruno@clisp.org>
22498
22499         Remove HAVE_MBRTOWC conditionals.
22500         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
22501         (mbscasecmp): Assume mbrtowc function.
22502         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
22503         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
22504         * lib/mbschr.c: Include mbuiter.h unconditionally.
22505         (mbschr): Assume mbrtowc function.
22506         * lib/mbscspn.c: Include mbuiter.h unconditionally.
22507         (mbscspn): Assume mbrtowc function.
22508         * lib/mbslen.c: Include mbuiter.h unconditionally.
22509         (mbslen): Assume mbrtowc function.
22510         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
22511         (mbsncasecmp): Assume mbrtowc function.
22512         * lib/mbsnlen.c: Include mbiter.h unconditionally.
22513         (mbsnlen): Assume mbrtowc function.
22514         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
22515         (mbspbrk): Assume mbrtowc function.
22516         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
22517         (mbspcasecmp): Assume mbrtowc function.
22518         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
22519         (mbsrchr): Assume mbrtowc function.
22520         * lib/mbssep.c: Include mbuiter.h unconditionally.
22521         (mbssep): Assume mbrtowc function.
22522         * lib/mbsspn.c: Include mbuiter.h unconditionally.
22523         (mbsspn): Assume mbrtowc function.
22524         * lib/mbsstr.c: Include mbuiter.h unconditionally.
22525         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
22526         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
22527         (mbstok_r): Assume mbrtowc function.
22528         * lib/propername.c: Include mbuiter.h unconditionally.
22529         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
22530         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
22531         (trim2): Assume mbrtowc function.
22532         * lib/mbswidth.c (mbsinit): Remove fallback definition.
22533         (mbsnwidth): Assume mbrtowc function.
22534         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
22535         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
22536         fallback definitions.
22537         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
22538
22539 2008-12-22  Bruno Haible  <bruno@clisp.org>
22540
22541         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
22542
22543 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
22544
22545         * modules/regex: Request emulations for the mb*/wc* functions we need.
22546         * m4/regex.m4: Don't look for those functions here.
22547         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
22548
22549 2008-12-22  Bruno Haible  <bruno@clisp.org>
22550
22551         * modules/fnmatch (Depends-on): Remove duplicated dependency.
22552
22553 2008-12-21  Bruno Haible  <bruno@clisp.org>
22554
22555         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
22556         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
22557         (Include): Remove conditionalization.
22558         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
22559         (Include): Remove conditionalization.
22560         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
22561         (Include): Remove conditionalization.
22562         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
22563         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22564         * NEWS: Mention the change.
22565         Reported by Alan Hourihane <alanh@fairlite.co.uk>
22566         via Sergey Poznyakoff <gray@gnu.org.ua>.
22567
22568 2008-12-21  Bruno Haible  <bruno@clisp.org>
22569
22570         * MODULES.html.sh (Extended multibyte and wide character utilities
22571         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
22572         wcrtomb, wcsrtombs.
22573         (Support for systems lacking POSIX:2008): Add accept, bind, close,
22574         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
22575         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
22576         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
22577
22578 2008-12-21  Bruno Haible  <bruno@clisp.org>
22579
22580         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
22581
22582 2008-12-21  Bruno Haible  <bruno@clisp.org>
22583
22584         * modules/wcsnrtombs-tests: New file.
22585         * tests/test-wcsnrtombs1.sh: New file.
22586         * tests/test-wcsnrtombs2.sh: New file.
22587         * tests/test-wcsnrtombs3.sh: New file.
22588         * tests/test-wcsnrtombs4.sh: New file.
22589         * tests/test-wcsnrtombs.c: New file.
22590
22591         New module 'wcsnrtombs'.
22592         * lib/wchar.in.h (wcsnrtombs): New declaration.
22593         * lib/wcsnrtombs.c: New file.
22594         * lib/wcsrtombs-state.c: New file.
22595         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
22596         (internal_state): Remove variable.
22597         * m4/wcsnrtombs.m4: New file.
22598         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
22599         compilation units.
22600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
22601         HAVE_WCSNRTOMBS.
22602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
22603         HAVE_WCSNRTOMBS.
22604         * modules/wcsnrtombs: New file.
22605         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
22606         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
22607
22608 2008-12-21  Bruno Haible  <bruno@clisp.org>
22609
22610         * modules/wcsrtombs-tests: New file.
22611         * tests/test-wcsrtombs1.sh: New file.
22612         * tests/test-wcsrtombs2.sh: New file.
22613         * tests/test-wcsrtombs3.sh: New file.
22614         * tests/test-wcsrtombs4.sh: New file.
22615         * tests/test-wcsrtombs.c: New file.
22616
22617         New module 'wcsrtombs'.
22618         * lib/wchar.in.h (wcsrtombs): New declaration.
22619         * lib/wcsrtombs.c: New file.
22620         * m4/wcsrtombs.m4: New file.
22621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
22622         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
22624         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
22625         * modules/wcsrtombs: New file.
22626         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
22627         bugs.
22628
22629 2008-12-21  Bruno Haible  <bruno@clisp.org>
22630
22631         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
22632         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
22633         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
22634         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
22635         if not correct.
22636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
22637         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
22638         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22639         m4/locale-zh.m4, m4/codeset.m4.
22640         * doc/posix-functions/wcrtomb.texi: Document the bug.
22641
22642 2008-12-21  Bruno Haible  <bruno@clisp.org>
22643
22644         Work around a btowc() bug on IRIX 6.5.
22645         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
22646         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
22647         REPLACE_WTOBC if not.
22648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
22649         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
22650         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
22651
22652 2008-12-21  Bruno Haible  <bruno@clisp.org>
22653
22654         * modules/wcrtomb-tests: New file.
22655         * tests/test-wcrtomb.sh: New file.
22656         * tests/test-wcrtomb.c: New file.
22657
22658         New module 'wcrtomb'.
22659         * lib/wchar.in.h (wcrtomb): New declaration.
22660         * lib/wcrtomb.c: New file.
22661         * m4/wcrtomb.m4: New file.
22662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
22663         HAVE_WCRTOMB.
22664         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
22665         HAVE_WCRTOMB.
22666         * modules/wcrtomb: New file.
22667         * doc/posix-functions/wcrtomb.texi: Mention the new module.
22668
22669 2008-12-21  Bruno Haible  <bruno@clisp.org>
22670
22671         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
22672         * modules/mbsrtowcs (Files): Likewise.
22673         * modules/wctob (Files): Likewise.
22674         * modules/c-strcase-tests (Files): Likewise.
22675         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22676         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22677         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22678         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22679         * modules/vasnprintf-posix-tests (Files): Likewise.
22680
22681 2008-12-21  William Pursell  <bill.pursell@gmail.com>
22682
22683         gitlog-to-changelog: pass all command-line arguments to git-log
22684         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
22685         it is sometimes convenient to filter the commits in various ways.
22686         gitlog-to-changelog only allows --since to specify a start date,
22687         but git-log itself supports many other filtering mechanisms.
22688         At the moment, I want to filter by branch name.  Rather than
22689         adding a --branch option to gitlog-to-changelog, it seems more
22690         flexible to simply pass all options directly to git-log and let
22691         git do the work.  Notice that this effectively makes --since a
22692         redundant option for gitlog-to-changelog, but removing it would
22693         require current usage to change since calls would then require
22694         an additional '--'.
22695
22696 2008-12-21  Bruno Haible  <bruno@clisp.org>
22697
22698         * modules/mbsnrtowcs-tests: New file.
22699         * tests/test-mbsnrtowcs1.sh: New file.
22700         * tests/test-mbsnrtowcs2.sh: New file.
22701         * tests/test-mbsnrtowcs3.sh: New file.
22702         * tests/test-mbsnrtowcs4.sh: New file.
22703         * tests/test-mbsnrtowcs.c: New file.
22704
22705         New module 'mbsnrtowcs'.
22706         * lib/wchar.in.h (mbsnrtowcs): New declaration.
22707         * lib/mbsnrtowcs.c: New file.
22708         * lib/mbsrtowcs-state.c: New file.
22709         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
22710         (internal_state): Remove variable.
22711         * m4/mbsnrtowcs.m4: New file.
22712         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
22713         compilation units.
22714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
22715         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22716         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
22717         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22718         * modules/mbsnrtowcs: New file.
22719         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
22720         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
22721         portability problem.
22722
22723 2008-12-21  Bruno Haible  <bruno@clisp.org>
22724
22725         Work around mbsrtowcs bug.
22726         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
22727         (gl_FUNC_MBSRTOWCS): Invoke it.
22728         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22729         m4/locale-zh.m4.
22730         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
22731
22732 2008-12-21  Bruno Haible  <bruno@clisp.org>
22733
22734         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
22735
22736 2008-12-21  Bruno Haible  <bruno@clisp.org>
22737
22738         Update doc for AIX.
22739         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
22740         16-bit wchar_t type.
22741         * doc/posix-functions/btowc.texi: Likewise.
22742         * doc/posix-functions/fgetwc.texi: Likewise.
22743         * doc/posix-functions/fgetws.texi: Likewise.
22744         * doc/posix-functions/fputwc.texi: Likewise.
22745         * doc/posix-functions/fputws.texi: Likewise.
22746         * doc/posix-functions/fwide.texi: Likewise.
22747         * doc/posix-functions/fwprintf.texi: Likewise.
22748         * doc/posix-functions/fwscanf.texi: Likewise.
22749         * doc/posix-functions/getwchar.texi: Likewise.
22750         * doc/posix-functions/getwc.texi: Likewise.
22751         * doc/posix-functions/iswalnum.texi: Likewise.
22752         * doc/posix-functions/iswalpha.texi: Likewise.
22753         * doc/posix-functions/iswblank.texi: Likewise.
22754         * doc/posix-functions/iswcntrl.texi: Likewise.
22755         * doc/posix-functions/iswctype.texi: Likewise.
22756         * doc/posix-functions/iswdigit.texi: Likewise.
22757         * doc/posix-functions/iswgraph.texi: Likewise.
22758         * doc/posix-functions/iswlower.texi: Likewise.
22759         * doc/posix-functions/iswprint.texi: Likewise.
22760         * doc/posix-functions/iswpunct.texi: Likewise.
22761         * doc/posix-functions/iswspace.texi: Likewise.
22762         * doc/posix-functions/iswupper.texi: Likewise.
22763         * doc/posix-functions/iswxdigit.texi: Likewise.
22764         * doc/posix-functions/mbrtowc.texi: Likewise.
22765         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22766         * doc/posix-functions/mbstowcs.texi: Likewise.
22767         * doc/posix-functions/mbtowc.texi: Likewise.
22768         * doc/posix-functions/putwchar.texi: Likewise.
22769         * doc/posix-functions/putwc.texi: Likewise.
22770         * doc/posix-functions/swprintf.texi: Likewise.
22771         * doc/posix-functions/tolower.texi: Likewise.
22772         * doc/posix-functions/toupper.texi: Likewise.
22773         * doc/posix-functions/towctrans.texi: Likewise.
22774         * doc/posix-functions/ungetwc.texi: Likewise.
22775         * doc/posix-functions/vswprintf.texi: Likewise.
22776         * doc/posix-functions/wcrtomb.texi: Likewise.
22777         * doc/posix-functions/wcscat.texi: Likewise.
22778         * doc/posix-functions/wcschr.texi: Likewise.
22779         * doc/posix-functions/wcscmp.texi: Likewise.
22780         * doc/posix-functions/wcscoll.texi: Likewise.
22781         * doc/posix-functions/wcscpy.texi: Likewise.
22782         * doc/posix-functions/wcscspn.texi: Likewise.
22783         * doc/posix-functions/wcsftime.texi: Likewise.
22784         * doc/posix-functions/wcslen.texi: Likewise.
22785         * doc/posix-functions/wcsncat.texi: Likewise.
22786         * doc/posix-functions/wcsncmp.texi: Likewise.
22787         * doc/posix-functions/wcsncpy.texi: Likewise.
22788         * doc/posix-functions/wcspbrk.texi: Likewise.
22789         * doc/posix-functions/wcsrchr.texi: Likewise.
22790         * doc/posix-functions/wcsrtombs.texi: Likewise.
22791         * doc/posix-functions/wcsspn.texi: Likewise.
22792         * doc/posix-functions/wcsstr.texi: Likewise.
22793         * doc/posix-functions/wcstod.texi: Likewise.
22794         * doc/posix-functions/wcstof.texi: Likewise.
22795         * doc/posix-functions/wcstoimax.texi: Likewise.
22796         * doc/posix-functions/wcstok.texi: Likewise.
22797         * doc/posix-functions/wcstold.texi: Likewise.
22798         * doc/posix-functions/wcstoll.texi: Likewise.
22799         * doc/posix-functions/wcstol.texi: Likewise.
22800         * doc/posix-functions/wcstombs.texi: Likewise.
22801         * doc/posix-functions/wcstoull.texi: Likewise.
22802         * doc/posix-functions/wcstoul.texi: Likewise.
22803         * doc/posix-functions/wcstoumax.texi: Likewise.
22804         * doc/posix-functions/wcswidth.texi: Likewise.
22805         * doc/posix-functions/wcsxfrm.texi: Likewise.
22806         * doc/posix-functions/wctob.texi: Likewise.
22807         * doc/posix-functions/wctomb.texi: Likewise.
22808         * doc/posix-functions/wctrans.texi: Likewise.
22809         * doc/posix-functions/wctype.texi: Likewise.
22810         * doc/posix-functions/wcwidth.texi: Likewise.
22811         * doc/posix-functions/wmemchr.texi: Likewise.
22812         * doc/posix-functions/wmemcmp.texi: Likewise.
22813         * doc/posix-functions/wmemcpy.texi: Likewise.
22814         * doc/posix-functions/wmemmove.texi: Likewise.
22815         * doc/posix-functions/wmemset.texi: Likewise.
22816         * doc/posix-functions/wprintf.texi: Likewise.
22817         * doc/posix-functions/wscanf.texi: Likewise.
22818
22819 2008-12-21  Bruno Haible  <bruno@clisp.org>
22820
22821         Update doc for HP-UX 11.11.
22822         * doc/posix-functions/btowc.texi: Clarify that the function is missing
22823         in HP-UX version 11.00, not in all versions of HP-UX 11.
22824         * doc/posix-functions/fwide.texi: Likewise.
22825         * doc/posix-functions/fwprintf.texi: Likewise.
22826         * doc/posix-functions/fwscanf.texi: Likewise.
22827         * doc/posix-functions/inet_ntop.texi: Likewise.
22828         * doc/posix-functions/inet_pton.texi: Likewise.
22829         * doc/posix-functions/mbrlen.texi: Likewise.
22830         * doc/posix-functions/mbrtowc.texi: Likewise.
22831         * doc/posix-functions/mbsinit.texi: Likewise.
22832         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22833         * doc/posix-functions/swprintf.texi: Likewise.
22834         * doc/posix-functions/swscanf.texi: Likewise.
22835         * doc/posix-functions/towctrans.texi: Likewise.
22836         * doc/posix-functions/vfwprintf.texi: Likewise.
22837         * doc/posix-functions/vswprintf.texi: Likewise.
22838         * doc/posix-functions/vwprintf.texi: Likewise.
22839         * doc/posix-functions/wcrtomb.texi: Likewise.
22840         * doc/posix-functions/wcsrtombs.texi: Likewise.
22841         * doc/posix-functions/wcsstr.texi: Likewise.
22842         * doc/posix-functions/wctob.texi: Likewise.
22843         * doc/posix-functions/wctrans.texi: Likewise.
22844         * doc/posix-functions/wmemchr.texi: Likewise.
22845         * doc/posix-functions/wmemcmp.texi: Likewise.
22846         * doc/posix-functions/wmemcpy.texi: Likewise.
22847         * doc/posix-functions/wmemmove.texi: Likewise.
22848         * doc/posix-functions/wmemset.texi: Likewise.
22849         * doc/posix-functions/wprintf.texi: Likewise.
22850         * doc/posix-functions/wscanf.texi: Likewise.
22851
22852 2008-12-21  Bruno Haible  <bruno@clisp.org>
22853
22854         Work around a portability problem.
22855         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
22856         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
22857
22858 2008-12-20  Bruno Haible  <bruno@clisp.org>
22859
22860         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
22861         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
22862         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
22863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
22864         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
22865
22866         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
22867         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
22868         set.
22869         (GNULIB_defined_mbstate_t): New macro.
22870         (mbsinit): Redefine if REPLACE_MBSINIT is set.
22871         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
22872         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
22873         reuses the system's mbrtowc function but works around the bugs.
22874         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
22875         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
22876         macros.
22877         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
22878         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
22879         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
22880         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
22881         REPLACE_MBSINIT if mbsinit needs to be overridden.
22882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
22883         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22884         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
22885         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22886         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22887         m4/locale-zh.m4.
22888         (Depends): Add mbsinit.
22889         * modules/mbsinit (Depends): Add mbrtowc.
22890         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
22891
22892 2008-12-20  Bruno Haible  <bruno@clisp.org>
22893
22894         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
22895         so that there are no conversion errors on AIX.
22896         * tests/test-mbsrtowcs.c (main): LIkewise.
22897
22898 2008-12-20  Bruno Haible  <bruno@clisp.org>
22899
22900         Work around wctob bug on Solaris <= 9.
22901         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
22902         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
22903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
22904         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
22905         * modules/wctob (Files): Add m4/locale-fr.m4.
22906         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
22907
22908 2008-12-20  Bruno Haible  <bruno@clisp.org>
22909
22910         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
22911         /dev/null.
22912         * tests/test-select-in.sh: Likewise.
22913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22914
22915 2008-12-20  Bruno Haible  <bruno@clisp.org>
22916
22917         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
22918         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
22919         Cygwin 1.5.x.
22920
22921 2008-12-20  Bruno Haible  <bruno@clisp.org>
22922
22923         Ensure mbstate_t is defined on HP-UX 11.11.
22924         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
22925         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
22926         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
22927         AC_USE_SYSTEM_EXTENSIONS.
22928         * modules/fnmatch (Depends-on): Add extensions.
22929         * modules/mbrlen (Depends-on): Likewise.
22930         * modules/mbrtowc (Depends-on): Likewise.
22931         * modules/mbsinit (Depends-on): Likewise.
22932         * modules/mbsrtowcs (Depends-on): Likewise.
22933         * modules/mbswidth (Depends-on): Likewise.
22934         * modules/quotearg (Depends-on): Likewise.
22935         * modules/strftime (Depends-on): Likewise.
22936
22937 2008-12-20  Bruno Haible  <bruno@clisp.org>
22938
22939         Ensure wctob is declared on IRIX 6.5.
22940         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
22941         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
22942         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
22943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
22944         of HAVE_WCTOB.
22945         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
22946         HAVE_WCTOB.
22947         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
22948
22949 2008-12-19  Bruno Haible  <bruno@clisp.org>
22950
22951         * modules/mbsrtowcs-tests: New file.
22952         * tests/test-mbsrtowcs1.sh: New file.
22953         * tests/test-mbsrtowcs2.sh: New file.
22954         * tests/test-mbsrtowcs3.sh: New file.
22955         * tests/test-mbsrtowcs4.sh: New file.
22956         * tests/test-mbsrtowcs.c: New file.
22957
22958         New module 'mbsrtowcs'.
22959         * lib/wchar.in.h (mbsrtowcs): New declaration.
22960         * lib/mbsrtowcs.c: New file.
22961         * m4/mbsrtowcs.m4: New file.
22962         * modules/mbsrtowcs: New file.
22963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
22964         HAVE_MBSRTOWCS.
22965         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22966         HAVE_MBSRTOWCS.
22967         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22968
22969 2008-12-19  Bruno Haible  <bruno@clisp.org>
22970
22971         New module 'mbrlen'.
22972         * lib/wchar.in.h (mbrlen): New declaration.
22973         * lib/mbrlen.c: New file.
22974         * m4/mbrlen.m4: New file.
22975         * modules/mbrlen: New file.
22976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22977         HAVE_MBRLEN.
22978         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22979         HAVE_MBRLEN.
22980         * doc/posix-functions/mbrlen.texi: Document the new module.
22981
22982 2008-12-19  Bruno Haible  <bruno@clisp.org>
22983
22984         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22985         * modules/mbrtowc (Depends-on): Add verify.
22986         Suggested by Paul Eggert.
22987
22988 2008-12-18  Bruno Haible  <bruno@clisp.org>
22989
22990         * modules/mbsinit-tests: New file.
22991         * tests/test-mbsinit.sh: New file.
22992         * tests/test-mbsinit.c: New file.
22993
22994 2008-12-18  Bruno Haible  <bruno@clisp.org>
22995
22996         * modules/mbrtowc-tests: New file.
22997         * tests/test-mbrtowc1.sh: New file.
22998         * tests/test-mbrtowc2.sh: New file.
22999         * tests/test-mbrtowc3.sh: New file.
23000         * tests/test-mbrtowc4.sh: New file.
23001         * tests/test-mbrtowc.c: New file.
23002
23003         New module 'mbrtowc'.
23004         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23005         mbsinit and mbrtowc.
23006         (mbrtowc): New declaration.
23007         * lib/mbrtowc.c: New file.
23008         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23009         * modules/mbrtowc: New file.
23010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23011         HAVE_MBRTOWC.
23012         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23013         HAVE_MBRTOWC.
23014         * doc/posix-functions/mbrtowc.texi: Document the new module.
23015
23016 2008-12-18  Bruno Haible  <bruno@clisp.org>
23017
23018         New module 'wctob'.
23019         * lib/wchar.in.h (wctob): New declaration.
23020         * lib/wctob.c: New file.
23021         * m4/wctob.m4: New file.
23022         * modules/wctob: New file.
23023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23024         HAVE_WCTOB.
23025         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23026         * doc/posix-functions/wctob.texi: Document the new module.
23027
23028 2008-12-18  Bruno Haible  <bruno@clisp.org>
23029
23030         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23031         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23032
23033 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23034
23035         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23036         G. Christensen" <tgc@jupiterrise.com>.
23037
23038         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23039         G. Christensen" <tgc@jupiterrise.com>.
23040
23041         * lib/flock.c: Need to include string.h.  Reported by "Tom
23042         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23043         <ebb9@byu.net>.
23044
23045 2008-12-18  Bruno Haible  <bruno@clisp.org>
23046
23047         * m4/locale-ja.m4: New file, from GNU gettext.
23048
23049 2008-12-17  Bruno Haible  <bruno@clisp.org>
23050
23051         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23052         Suggested by Eric Blake.
23053
23054 2008-12-17  Bruno Haible  <bruno@clisp.org>
23055
23056         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23057
23058 2008-12-17  Bruno Haible  <bruno@clisp.org>
23059
23060         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23061         * modules/mbsinit (Depends-on): Add verify.
23062         Suggested by Paul Eggert.
23063
23064 2008-12-17  Bruno Haible  <bruno@clisp.org>
23065
23066         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23067         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23068         gl_FUNC_MBRTOWC.
23069         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23070         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23071         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23072         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23073         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23074         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23075         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23076         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23077         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23078         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23079         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23080         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23081         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23082         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23083         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23084         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23085         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23086         * modules/trim (configure.ac): Likewise.
23087
23088 2008-12-17  Bruno Haible  <bruno@clisp.org>
23089
23090         * modules/btowc-tests: New file.
23091         * tests/test-btowc1.sh: New file.
23092         * tests/test-btowc2.sh: New file.
23093         * tests/test-btowc.c: New file.
23094
23095         New module 'btowc'.
23096         * lib/wchar.in.h (btowc): New declaration.
23097         * lib/btowc.c: New file.
23098         * m4/btowc.m4: New file.
23099         * modules/btowc: New file.
23100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23101         HAVE_BTOWC.
23102         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23103         * doc/posix-functions/btowc.texi: Document the new module.
23104
23105 2008-12-17  Bruno Haible  <bruno@clisp.org>
23106
23107         New module 'mbsinit'.
23108         * lib/wchar.in.h (mbsinit): New declaration.
23109         * lib/mbsinit.c: New file.
23110         * m4/mbsinit.m4: New file.
23111         * modules/mbsinit: New file.
23112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23113         HAVE_MBSINIT.
23114         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23115         HAVE_MBSINIT.
23116         * doc/posix-functions/mbsinit.texi: Document the new module.
23117
23118 2008-12-16  Bruno Haible  <bruno@clisp.org>
23119
23120         * lib/unistd.in.h: Add comment.
23121         * tests/test-environ.c: Don't include <stdlib.h>.
23122
23123 2008-12-16  Bruno Haible  <bruno@clisp.org>
23124
23125         * lib/parse-duration.h (parse_duration): Document return value
23126         convention.
23127         * lib/parse-duration.c: Include specification header first. Add
23128         comments.
23129         (_): Remove macro.
23130         (parse_year_month_day, parse_hour_minute_second): Move side effects
23131         outside of strchr call.
23132         (parse_non_iso8601): Move side effects outside of isspace call.
23133         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23134         call.
23135
23136 2008-12-16  Bruno Haible  <bruno@clisp.org>
23137
23138         * tests/test-parse-duration.sh: Produce no output when the test
23139         succeeds.
23140
23141 2008-12-16  Bruno Haible  <bruno@clisp.org>
23142
23143         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23144         expressions.
23145
23146 2008-12-15  Bruno Haible  <bruno@clisp.org>
23147
23148         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23149         * doc/glibc-functions/flistxattr.texi: Likewise.
23150         * doc/glibc-functions/fopencookie.texi: Likewise.
23151         * doc/glibc-functions/fremovexattr.texi: Likewise.
23152         * doc/glibc-functions/fsetxattr.texi: Likewise.
23153         * doc/glibc-functions/getxattr.texi: Likewise.
23154         * doc/glibc-functions/lgetxattr.texi: Likewise.
23155         * doc/glibc-functions/listxattr.texi: Likewise.
23156         * doc/glibc-functions/llistxattr.texi: Likewise.
23157         * doc/glibc-functions/lremovexattr.texi: Likewise.
23158         * doc/glibc-functions/lsetxattr.texi: Likewise.
23159         * doc/glibc-functions/removexattr.texi: Likewise.
23160         * doc/glibc-functions/setxattr.texi: Likewise.
23161         * doc/posix-functions/open_memstream.texi: Likewise.
23162
23163 2008-12-15  Eric Blake  <ebb9@byu.net>
23164
23165         Update doc for cygwin 1.7.
23166         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23167         functions.
23168         * doc/posix-functions/fchmodat.texi: Likewise.
23169         * doc/posix-functions/fchownat.texi: Likewise.
23170         * doc/posix-functions/fdopendir.texi: Likewise.
23171         * doc/posix-functions/fmemopen.texi: Likewise.
23172         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23173         * doc/posix-functions/fstatat.texi: Likewise.
23174         * doc/posix-functions/futimens.texi: Likewise.
23175         * doc/posix-functions/gai_strerror.texi: Likewise.
23176         * doc/posix-functions/getaddrinfo.texi: Likewise.
23177         * doc/posix-functions/getnameinfo.texi: Likewise.
23178         * doc/posix-functions/if_freenameindex.texi: Likewise.
23179         * doc/posix-functions/if_indextoname.texi: Likewise.
23180         * doc/posix-functions/if_nameindex.texi: Likewise.
23181         * doc/posix-functions/if_nametoindex.texi: Likewise.
23182         * doc/posix-functions/insque.texi: Likewise.
23183         * doc/posix-functions/linkat.texi: Likewise.
23184         * doc/posix-functions/llrint.texi: Likewise.
23185         * doc/posix-functions/llrintf.texi: Likewise.
23186         * doc/posix-functions/llrintl.texi: Likewise.
23187         * doc/posix-functions/lockf.texi: Likewise.
23188         * doc/posix-functions/lrintl.texi: Likewise.
23189         * doc/posix-functions/mkdirat.texi: Likewise.
23190         * doc/posix-functions/mkfifoat.texi: Likewise.
23191         * doc/posix-functions/mknodat.texi: Likewise.
23192         * doc/posix-functions/mq_close.texi: Likewise.
23193         * doc/posix-functions/mq_getattr.texi: Likewise.
23194         * doc/posix-functions/mq_notify.texi: Likewise.
23195         * doc/posix-functions/mq_open.texi: Likewise.
23196         * doc/posix-functions/mq_receive.texi: Likewise.
23197         * doc/posix-functions/mq_send.texi: Likewise.
23198         * doc/posix-functions/mq_setattr.texi: Likewise.
23199         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23200         * doc/posix-functions/mq_timedsend.texi: Likewise.
23201         * doc/posix-functions/mq_unlink.texi: Likewise.
23202         * doc/posix-functions/open_memstream.texi: Likewise.
23203         * doc/posix-functions/openat.texi: Likewise.
23204         * doc/posix-functions/posix_fadvise.texi: Likewise.
23205         * doc/posix-functions/posix_fallocate.texi: Likewise.
23206         * doc/posix-functions/posix_madvise.texi: Likewise.
23207         * doc/posix-functions/posix_memalign.texi: Likewise.
23208         * doc/posix-functions/posix_openpt.texi: Likewise.
23209         * doc/posix-functions/readlinkat.texi: Likewise.
23210         * doc/posix-functions/remque.texi: Likewise.
23211         * doc/posix-functions/renameat.texi: Likewise.
23212         * doc/posix-functions/rintl.texi: Likewise.
23213         * doc/posix-functions/sem_unlink.texi: Likewise.
23214         * doc/posix-functions/shm_open.texi: Likewise.
23215         * doc/posix-functions/shm_unlink.texi: Likewise.
23216         * doc/posix-functions/signgam.texi: Likewise.
23217         * doc/posix-functions/sigset.texi: Likewise.
23218         * doc/posix-functions/stpcpy.texi: Likewise.
23219         * doc/posix-functions/stpncpy.texi: Likewise.
23220         * doc/posix-functions/strerror.texi: Likewise.
23221         * doc/posix-functions/strtod.texi: Likewise.
23222         * doc/posix-functions/symlinkat.texi: Likewise.
23223         * doc/posix-functions/unlinkat.texi: Likewise.
23224         * doc/posix-functions/utimensat.texi: Likewise.
23225         * doc/glibc-functions/bindresvport.texi: Likewise.
23226         * doc/glibc-functions/dn_expand.texi: Likewise.
23227         * doc/glibc-functions/exp10.texi: Likewise.
23228         * doc/glibc-functions/exp10f.texi: Likewise.
23229         * doc/glibc-functions/fgetxattr.texi: Likewise.
23230         * doc/glibc-functions/flistxattr.texi: Likewise.
23231         * doc/glibc-functions/fopencookie.texi: Likewise.
23232         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23233         * doc/glibc-functions/fremovexattr.texi: Likewise.
23234         * doc/glibc-functions/fsetxattr.texi: Likewise.
23235         * doc/glibc-functions/getifaddrs.texi: Likewise.
23236         * doc/glibc-functions/getxattr.texi: Likewise.
23237         * doc/glibc-functions/lgetxattr.texi: Likewise.
23238         * doc/glibc-functions/listxattr.texi: Likewise.
23239         * doc/glibc-functions/llistxattr.texi: Likewise.
23240         * doc/glibc-functions/lremovexattr.texi: Likewise.
23241         * doc/glibc-functions/lsetxattr.texi: Likewise.
23242         * doc/glibc-functions/pow10.texi: Likewise.
23243         * doc/glibc-functions/pow10f.texi: Likewise.
23244         * doc/glibc-functions/rcmd_af.texi: Likewise.
23245         * doc/glibc-functions/removexattr.texi: Likewise.
23246         * doc/glibc-functions/res_init.texi: Likewise.
23247         * doc/glibc-functions/res_mkquery.texi: Likewise.
23248         * doc/glibc-functions/res_query.texi: Likewise.
23249         * doc/glibc-functions/res_querydomain.texi: Likewise.
23250         * doc/glibc-functions/res_send.texi: Likewise.
23251         * doc/glibc-functions/rresvport_af.texi: Likewise.
23252         * doc/glibc-functions/setxattr.texi: Likewise.
23253         * doc/glibc-functions/strcasestr.texi: Likewise.
23254
23255 2008-12-15  Bruno Haible  <bruno@clisp.org>
23256
23257         Fix compilation error on OSF/1 4.0.
23258         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23259         <sys/time.h>, simply delegate to the system header.
23260         Reported by Daniel Richard G. <oss@teragram.com>.
23261
23262 2008-12-15  Bruno Haible  <bruno@clisp.org>
23263
23264         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23265         * doc/posix-functions/fchmodat.texi: Likewise.
23266         * doc/posix-functions/fchownat.texi: Likewise.
23267         * doc/posix-functions/fdopendir.texi: Likewise.
23268         * doc/posix-functions/fstatat.texi: Likewise.
23269         * doc/posix-functions/mkdirat.texi: Likewise.
23270         * doc/posix-functions/unlinkat.texi: Likewise.
23271
23272 2008-12-14  Bruno Haible  <bruno@clisp.org>
23273
23274         Update doc for POSIX:2008.
23275         * doc/posix-functions/faccessat.texi: New file.
23276         * doc/posix-functions/fchmodat.texi: New file.
23277         * doc/posix-functions/fchownat.texi: New file.
23278         * doc/posix-functions/fdopendir.texi: New file.
23279         * doc/posix-functions/fstatat.texi: New file.
23280         * doc/posix-functions/futimens.texi: New file.
23281         * doc/posix-functions/linkat.texi: New file.
23282         * doc/posix-functions/mkdirat.texi: New file.
23283         * doc/posix-functions/mkfifoat.texi: New file.
23284         * doc/posix-functions/mknodat.texi: New file.
23285         * doc/posix-functions/open_wmemstream.texi: New file.
23286         * doc/posix-functions/openat.texi: New file.
23287         * doc/posix-functions/psiginfo.texi: New file.
23288         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23289         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23290         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23291         * doc/posix-functions/readlinkat.texi: New file.
23292         * doc/posix-functions/renameat.texi: New file.
23293         * doc/posix-functions/strerror_l.texi: New file.
23294         * doc/posix-functions/symlinkat.texi: New file.
23295         * doc/posix-functions/unlinkat.texi: New file.
23296         * doc/posix-functions/utimensat.texi: New file.
23297         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23298
23299 2008-12-14  Bruno Haible  <bruno@clisp.org>
23300
23301         Update doc for POSIX:2008.
23302         * doc/posix-functions/alphasort.texi: Renamed from
23303         doc/glibc-functions/alphasort.texi.
23304         * doc/posix-functions/dirfd.texi: Renamed from
23305         doc/glibc-functions/dirfd.texi.
23306         * doc/posix-functions/dprintf.texi: Renamed from
23307         doc/glibc-functions/dprintf.texi.
23308         * doc/posix-functions/duplocale.texi: Renamed from
23309         doc/glibc-functions/duplocale.texi.
23310         * doc/posix-functions/fexecve.texi: Renamed from
23311         doc/glibc-functions/fexecve.texi.
23312         * doc/posix-functions/fmemopen.texi: Renamed from
23313         doc/glibc-functions/fmemopen.texi.
23314         * doc/posix-functions/freelocale.texi: Renamed from
23315         doc/glibc-functions/freelocale.texi.
23316         * doc/posix-functions/getdate_err.texi: Renamed from
23317         doc/glibc-functions/getdate_err.texi.
23318         * doc/posix-functions/isalnum_l.texi: Renamed from
23319         doc/glibc-functions/isalnum_l.texi.
23320         * doc/posix-functions/isalpha_l.texi: Renamed from
23321         doc/glibc-functions/isalpha_l.texi.
23322         * doc/posix-functions/isblank_l.texi: Renamed from
23323         doc/glibc-functions/isblank_l.texi.
23324         * doc/posix-functions/iscntrl_l.texi: Renamed from
23325         doc/glibc-functions/iscntrl_l.texi.
23326         * doc/posix-functions/isdigit_l.texi: Renamed from
23327         doc/glibc-functions/isdigit_l.texi.
23328         * doc/posix-functions/isgraph_l.texi: Renamed from
23329         doc/glibc-functions/isgraph_l.texi.
23330         * doc/posix-functions/islower_l.texi: Renamed from
23331         doc/glibc-functions/islower_l.texi.
23332         * doc/posix-functions/isprint_l.texi: Renamed from
23333         doc/glibc-functions/isprint_l.texi.
23334         * doc/posix-functions/ispunct_l.texi: Renamed from
23335         doc/glibc-functions/ispunct_l.texi.
23336         * doc/posix-functions/isspace_l.texi: Renamed from
23337         doc/glibc-functions/isspace_l.texi.
23338         * doc/posix-functions/isupper_l.texi: Renamed from
23339         doc/glibc-functions/isupper_l.texi.
23340         * doc/posix-functions/iswalnum_l.texi: Renamed from
23341         doc/glibc-functions/iswalnum_l.texi.
23342         * doc/posix-functions/iswalpha_l.texi: Renamed from
23343         doc/glibc-functions/iswalpha_l.texi.
23344         * doc/posix-functions/iswblank_l.texi: Renamed from
23345         doc/glibc-functions/iswblank_l.texi.
23346         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23347         doc/glibc-functions/iswcntrl_l.texi.
23348         * doc/posix-functions/iswctype_l.texi: Renamed from
23349         doc/glibc-functions/iswctype_l.texi.
23350         * doc/posix-functions/iswdigit_l.texi: Renamed from
23351         doc/glibc-functions/iswdigit_l.texi.
23352         * doc/posix-functions/iswgraph_l.texi: Renamed from
23353         doc/glibc-functions/iswgraph_l.texi.
23354         * doc/posix-functions/iswlower_l.texi: Renamed from
23355         doc/glibc-functions/iswlower_l.texi.
23356         * doc/posix-functions/iswprint_l.texi: Renamed from
23357         doc/glibc-functions/iswprint_l.texi.
23358         * doc/posix-functions/iswpunct_l.texi: Renamed from
23359         doc/glibc-functions/iswpunct_l.texi.
23360         * doc/posix-functions/iswspace_l.texi: Renamed from
23361         doc/glibc-functions/iswspace_l.texi.
23362         * doc/posix-functions/iswupper_l.texi: Renamed from
23363         doc/glibc-functions/iswupper_l.texi.
23364         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23365         doc/glibc-functions/iswxdigit_l.texi.
23366         * doc/posix-functions/isxdigit_l.texi: Renamed from
23367         doc/glibc-functions/isxdigit_l.texi.
23368         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23369         doc/glibc-functions/mbsnrtowcs.texi.
23370         * doc/posix-functions/mkdtemp.texi: Renamed from
23371         doc/glibc-functions/mkdtemp.texi.
23372         * doc/posix-functions/newlocale.texi: Renamed from
23373         doc/glibc-functions/newlocale.texi.
23374         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23375         doc/glibc-functions/nl_langinfo_l.texi.
23376         * doc/posix-functions/open_memstream.texi: Renamed from
23377         doc/glibc-functions/open_memstream.texi.
23378         * doc/posix-functions/opterr.texi: Renamed from
23379         doc/glibc-functions/opterr.texi.
23380         * doc/posix-functions/optind.texi: Renamed from
23381         doc/glibc-functions/optind.texi.
23382         * doc/posix-functions/optopt.texi: Renamed from
23383         doc/glibc-functions/optopt.texi.
23384         * doc/posix-functions/psignal.texi: Renamed from
23385         doc/glibc-functions/psignal.texi.
23386         * doc/posix-functions/scandir.texi: Renamed from
23387         doc/glibc-functions/scandir.texi.
23388         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23389         doc/glibc-functions/sched_get_priority_min.texi.
23390         * doc/posix-functions/signgam.texi: Renamed from
23391         doc/glibc-functions/signgam.texi.
23392         * doc/posix-functions/stpcpy.texi: Renamed from
23393         doc/glibc-functions/stpcpy.texi.
23394         * doc/posix-functions/stpncpy.texi: Renamed from
23395         doc/glibc-functions/stpncpy.texi.
23396         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23397         doc/glibc-functions/strcasecmp_l.texi.
23398         * doc/posix-functions/strcoll_l.texi: Renamed from
23399         doc/glibc-functions/strcoll_l.texi.
23400         * doc/posix-functions/strfmon_l.texi: Renamed from
23401         doc/glibc-functions/strfmon_l.texi.
23402         * doc/posix-functions/strftime_l.texi: Renamed from
23403         doc/glibc-functions/strftime_l.texi.
23404         * doc/posix-functions/strncasecmp_l.texi: Renamed from
23405         doc/glibc-functions/strncasecmp_l.texi.
23406         * doc/posix-functions/strndup.texi: Renamed from
23407         doc/glibc-functions/strndup.texi.
23408         * doc/posix-functions/strnlen.texi: Renamed from
23409         doc/glibc-functions/strnlen.texi.
23410         * doc/posix-functions/strsignal.texi: Renamed from
23411         doc/glibc-functions/strsignal.texi.
23412         * doc/posix-functions/strxfrm_l.texi: Renamed from
23413         doc/glibc-functions/strxfrm_l.texi.
23414         * doc/posix-functions/timer_gettime.texi: Renamed from
23415         doc/glibc-functions/timer_gettime.texi.
23416         * doc/posix-functions/tolower_l.texi: Renamed from
23417         doc/glibc-functions/tolower_l.texi.
23418         * doc/posix-functions/toupper_l.texi: Renamed from
23419         doc/glibc-functions/toupper_l.texi.
23420         * doc/posix-functions/towctrans_l.texi: Renamed from
23421         doc/glibc-functions/towctrans_l.texi.
23422         * doc/posix-functions/towlower_l.texi: Renamed from
23423         doc/glibc-functions/towlower_l.texi.
23424         * doc/posix-functions/towupper_l.texi: Renamed from
23425         doc/glibc-functions/towupper_l.texi.
23426         * doc/posix-functions/uselocale.texi: Renamed from
23427         doc/glibc-functions/uselocale.texi.
23428         * doc/posix-functions/vdprintf.texi: Renamed from
23429         doc/glibc-functions/vdprintf.texi.
23430         * doc/posix-functions/wcpcpy.texi:
23431         Renamed from doc/glibc-functions/wcpcpy.texi.
23432         * doc/posix-functions/wcpncpy.texi: Renamed from
23433         doc/glibc-functions/wcpncpy.texi.
23434         * doc/posix-functions/wcscasecmp.texi: Renamed from
23435         doc/glibc-functions/wcscasecmp.texi.
23436         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
23437         doc/glibc-functions/wcscasecmp_l.texi.
23438         * doc/posix-functions/wcscoll_l.texi: Renamed from
23439         doc/glibc-functions/wcscoll_l.texi.
23440         * doc/posix-functions/wcsdup.texi: Renamed from
23441         doc/glibc-functions/wcsdup.texi.
23442         * doc/posix-functions/wcsncasecmp.texi: Renamed from
23443         doc/glibc-functions/wcsncasecmp.texi.
23444         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
23445         doc/glibc-functions/wcsncasecmp_l.texi.
23446         * doc/posix-functions/wcsnlen.texi: Renamed from
23447         doc/glibc-functions/wcsnlen.texi.
23448         * doc/posix-functions/wcsnrtombs.texi: Renamed from
23449         doc/glibc-functions/wcsnrtombs.texi.
23450         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
23451         doc/glibc-functions/wcsxfrm_l.texi.
23452         * doc/posix-functions/wctrans_l.texi: Renamed from
23453         doc/glibc-functions/wctrans_l.texi.
23454         * doc/posix-functions/wctype_l.texi: Renamed from
23455         doc/glibc-functions/wctype_l.texi.
23456         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23457         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
23458         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
23459         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
23460         these subsections.
23461         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
23462         Remove sections.
23463
23464 2008-12-14  Bruno Haible  <bruno@clisp.org>
23465
23466         Update doc for POSIX:2008.
23467         * doc/posix-functions/*.texi: Update URL of POSIX specification.
23468
23469 2008-12-14  Bruno Haible  <bruno@clisp.org>
23470
23471         Update doc for POSIX:2008.
23472         * doc/pastposix-functions/bcmp.texi: Renamed from
23473         doc/posix-functions/bcmp.texi.
23474         * doc/pastposix-functions/bcopy.texi: Renamed from
23475         doc/posix-functions/bcopy.texi.
23476         * doc/pastposix-functions/bsd_signal.texi: Renamed from
23477         doc/posix-functions/bsd_signal.texi.
23478         * doc/pastposix-functions/bzero.texi: Renamed from
23479         doc/posix-functions/bzero.texi.
23480         * doc/pastposix-functions/ecvt.texi: Renamed from
23481         doc/posix-functions/ecvt.texi.
23482         * doc/pastposix-functions/fcvt.texi: Renamed from
23483         doc/posix-functions/fcvt.texi.
23484         * doc/pastposix-functions/ftime.texi: Renamed from
23485         doc/posix-functions/ftime.texi.
23486         * doc/pastposix-functions/gcvt.texi: Renamed from
23487         doc/posix-functions/gcvt.texi.
23488         * doc/pastposix-functions/getcontext.texi: Renamed from
23489         doc/posix-functions/getcontext.texi.
23490         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
23491         doc/posix-functions/gethostbyaddr.texi.
23492         * doc/pastposix-functions/gethostbyname.texi: Renamed from
23493         doc/posix-functions/gethostbyname.texi.
23494         * doc/pastposix-functions/getwd.texi: Renamed from
23495         doc/posix-functions/getwd.texi.
23496         * doc/pastposix-functions/h_errno.texi: Renamed from
23497         doc/posix-functions/h_errno.texi.
23498         * doc/pastposix-functions/index.texi: Renamed from
23499         doc/posix-functions/index.texi.
23500         * doc/pastposix-functions/makecontext.texi: Renamed from
23501         doc/posix-functions/makecontext.texi.
23502         * doc/pastposix-functions/mktemp.texi: Renamed from
23503         doc/posix-functions/mktemp.texi.
23504         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
23505         doc/posix-functions/pthread_attr_getstackaddr.texi.
23506         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
23507         doc/posix-functions/pthread_attr_setstackaddr.texi.
23508         * doc/pastposix-functions/rindex.texi: Renamed from
23509         doc/posix-functions/rindex.texi.
23510         * doc/pastposix-functions/scalb.texi: Renamed from
23511         doc/posix-functions/scalb.texi.
23512         * doc/pastposix-functions/setcontext.texi: Renamed from
23513         doc/posix-functions/setcontext.texi.
23514         * doc/pastposix-functions/swapcontext.texi: Renamed from
23515         doc/posix-functions/swapcontext.texi.
23516         * doc/pastposix-functions/ualarm.texi: Renamed from
23517         doc/posix-functions/ualarm.texi.
23518         * doc/pastposix-functions/usleep.texi: Renamed from
23519         doc/posix-functions/usleep.texi.
23520         * doc/pastposix-functions/vfork.texi: Renamed from
23521         doc/posix-functions/vfork.texi.
23522         * doc/pastposix-functions/wcswcs.texi: Renamed from
23523         doc/posix-functions/wcswcs.texi.
23524         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
23525         (Function Substitutes): Update.
23526
23527 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23528
23529         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
23530         m4/strerror.m4.
23531
23532 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23533             Bruno Haible  <bruno@clisp.org>
23534
23535         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
23536
23537 2008-12-13  Bruno Haible  <bruno@clisp.org>
23538
23539         * modules/strtoull (Depends-on): Remove unistd.
23540
23541 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23542
23543         * modules/strtoull (Depends-on): Add stdlib.
23544
23545 2008-12-11  Simon Josefsson  <simon@josefsson.org>
23546
23547         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
23548
23549 2008-12-10  Jim Meyering  <meyering@redhat.com>
23550
23551         gl_ASSERT: don't say assertions are disabled when they're not
23552         * m4/assert.m4 (gl_ASSERT): Do not make configure report
23553         "checking whether to enable assertions... no", when they are in
23554         fact enabled.  This is solely a bug in the output of configure.
23555         In spite of saying "no", NDEBUG was not defined in that case.
23556         Also, as noted by Eric Blake, leave assertions enabled upon
23557         --enable-assert=INVALID.
23558
23559 2008-12-10  Bruno Haible  <bruno@clisp.org>
23560
23561         Change MODULES.html to refer to POSIX:2008 where possible.
23562         * MODULES.html.sh (POSIX2008_URL): New variable.
23563         (posix_headers): Remove sys/timeb, ucontext.
23564         (posix2001_headers): New variable.
23565         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
23566         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
23567         index, makecontext, mktemp, pthread_attr_getstackaddr,
23568         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
23569         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
23570         (posix2001_functions): New variable.
23571         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
23572         otherwise.
23573
23574 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23575
23576         add missing include to parse-duration.c
23577         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
23578         * modules/parse-duration (Depends-on): Add xalloc.
23579
23580         fix sed script reading maint.mk
23581         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
23582         (syntax-check-rules): Use it.
23583
23584 2008-12-09  Bruno Haible  <bruno@clisp.org>
23585
23586         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
23587         MacOS X 10.4/PowerPC.
23588         Reported by Simon Josefsson.
23589
23590 2008-12-08  Jim Meyering  <meyering@redhat.com>
23591
23592         work around mingw's lack of some S_IF definitions
23593         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
23594         Reported by Simon Josefsson.
23595
23596 2008-12-08  Bruno Haible  <bruno@clisp.org>
23597
23598         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
23599         applied to variables. Needed on MacOS X 10.4/PowerPC.
23600         Reported by Simon Josefsson.
23601
23602 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
23603         and Eric Blake  <ebb9@byu.net>
23604
23605         assert: honor --enable-assert
23606         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
23607         order to honor --enable-assert, rather than treating it as a
23608         synonym for --disable-assert.
23609
23610 2008-12-08  Jim Meyering  <meyering@redhat.com>
23611
23612         * lib/posixtm.c: Remove now-useless declaration of mktime.
23613
23614         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
23615
23616 2008-12-07  Bruno Haible  <bruno@clisp.org>
23617
23618         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
23619         test_once): Mark functions as static.
23620         * tests/test-tls.c (test_tls): Likewise.
23621
23622 2008-12-07  Bruno Haible  <bruno@clisp.org>
23623
23624         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
23625         iconv_register_autodetect.
23626
23627 2008-12-07  Jim Meyering  <meyering@redhat.com>
23628
23629         posixtm.c: avoid a warning
23630         * lib/posixtm.c (posixtime): Don't initialize tm0.
23631         It's no longer needed to placate gcc4's -Wuninitialized,
23632         and the attempt to placate would elicit a new warning.
23633
23634         unicodeio.c: mark unused parameters
23635         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23636         (fallback_failure_callback): Likewise.
23637
23638 2008-12-07  Bruno Haible  <bruno@clisp.org>
23639
23640         * gnulib-tool (func_create_testdir): When building the tests
23641         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
23642         Reported by Simon Josefsson.
23643
23644 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23645
23646         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
23647
23648 2008-12-06  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
23651         Suggested by Eric Blake.
23652
23653 2008-12-06  Bruno Haible  <bruno@clisp.org>
23654
23655         Fix a c-stack test failure on MacOS X.
23656         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
23657         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
23658         handler for SIGBUS as well.
23659         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
23660         install a signal handler for SIGBUS as well.
23661         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
23662
23663 2008-12-06  Bruno Haible  <bruno@clisp.org>
23664
23665         Advocacy documentation.
23666         * doc/gnulib-intro.texi (Benefits): New section.
23667         * doc/gnulib.texi: Update.
23668
23669 2008-12-06  Bruno Haible  <bruno@clisp.org>
23670
23671         Document the 'manywarnings' module.
23672         * doc/manywarnings.texi: New file.
23673         * doc/gnulib.texi: Include it.
23674
23675 2008-12-05  Eric Blake  <ebb9@byu.net>
23676
23677         tests: silence some gcc warnings
23678         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
23679         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
23680         type mismatches.
23681
23682 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23683             Bruno Haible  <bruno@clisp.org>
23684
23685         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
23686
23687 2008-11-29  Jim Meyering  <meyering@redhat.com>
23688
23689         unicodeio.c: mark unused parameters
23690         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23691         (fallback_failure_callback): Likewise.
23692
23693         fts: fix a thinko
23694         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
23695         (set_stat_type): Return S_IF*-valued "type" directly.
23696         Prompted by James Youngman's spotting a related bug.
23697         Confirmed by further testing through find.
23698
23699         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
23700         * lib/fts.c (D_TYPE): Define.
23701         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
23702         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
23703         (s_ifmt_shift_bits): New function.
23704         (set_stat_type): New function.
23705         (fts_build): When not calling fts_stat, call set_stat_type
23706         to propagate dirent.d_type info to fts_read caller.
23707         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
23708         fts_statp->st_mode type information may be valid.
23709
23710 2008-11-28  Simon Josefsson  <simon@josefsson.org>
23711
23712         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
23713         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
23714         <sds@gnu.org>.
23715
23716 2008-11-20  Bruno Haible  <bruno@clisp.org>
23717
23718         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
23719         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
23720         INCLUDE_NEXT.
23721         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
23722         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
23723         * modules/math (Makefile.am): Substitute
23724         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
23725         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23726
23727 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
23728             Bruno Haible  <bruno@clisp.org>
23729
23730         * lib/stdint.in.h: Define all type macros so that their expansion is
23731         a single typedef'ed token. Fixes a compilation failure in Boost which
23732         does "using ::int8_t;".
23733
23734 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23735
23736         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
23737         gl_MANYWARN_ALL_GCC.
23738         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
23739         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
23740         * modules/manywarnings: New file.
23741         * MODULES.html.sh: Mention manywarnings module.
23742
23743 2008-11-18  Bruno Haible  <bruno@clisp.org>
23744
23745         * doc/gnulib-tool.texi (Unit tests): New section.
23746
23747 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23748
23749         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
23750         paths like 'lib/po/foo.po'.
23751
23752 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23753
23754         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
23755         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
23756
23757 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23758
23759         * m4/warnings.m4: Use CPPFLAGS to really check whether the
23760         parameter works.
23761
23762 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23763
23764         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
23765
23766 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23767
23768         * modules/parse-duration-tests: New file.
23769         * tests/test-parse-duration.sh: New file.
23770         * tests/test-parse-duration.c: New file.
23771
23772         New module 'parse-duration'.
23773         * lib/parse-duration.h: New file.
23774         * lib/parse-duration.c: New file.
23775         * modules/parse-duration: New file.
23776
23777 2008-11-17  Bruno Haible  <bruno@clisp.org>
23778
23779         * tests/test-select-out.sh: Comment out the first pipe test.
23780         Reported by Simon Josefsson.
23781
23782 2008-11-17  Bruno Haible  <bruno@clisp.org>
23783
23784         * modules/getaddrinfo (Depends-on): Add servent, hostent.
23785         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
23786         gl_HOSTENT.
23787
23788 2008-11-17  Bruno Haible  <bruno@clisp.org>
23789
23790         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
23791         -lnetwork and -lnet. Needed for Haiku and BeOS.
23792
23793 2008-11-16  Bruno Haible  <bruno@clisp.org>
23794
23795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
23796
23797 2008-11-16  Bruno Haible  <bruno@clisp.org>
23798
23799         Avoid test failure on Haiku.
23800         * tests/test-fsync.c: Include <errno.h>.
23801         (main): Don't require that fsync (0) fails.
23802
23803 2008-11-15  Bruno Haible  <bruno@clisp.org>
23804
23805         New module 'hostent'.
23806         * modules/hostent: New file.
23807         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
23808
23809 2008-11-15  Bruno Haible  <bruno@clisp.org>
23810
23811         New module 'servent'.
23812         * modules/servent: New file.
23813         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
23814
23815 2008-11-15  Bruno Haible  <bruno@clisp.org>
23816
23817         Avoid generating same test program with two different rules.
23818         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
23819         test-frexp to test-frexp-nolibm.
23820         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
23821         test-frexpl to test-frexpl-nolibm.
23822
23823 2008-11-15  Bruno Haible  <bruno@clisp.org>
23824
23825         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
23826         $(FREXPL_LIBM).
23827
23828 2008-11-15  Bruno Haible  <bruno@clisp.org>
23829
23830         * lib/netdb.in.h: Activate the definitions also when the system's
23831         <netdb.h> has 'struct addrinfo'.
23832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
23833         EAI_OVERFLOW or AI_NUMERICSERV.
23834         * doc/posix-headers/netdb.texi: Document the problem.
23835
23836 2008-11-15  Bruno Haible  <bruno@clisp.org>
23837
23838         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
23839
23840         Make the 'sched' module work on platforms where <sched.h> exists but
23841         is incomplete (such as Haiku).
23842         * lib/sched.in.h; Include the system's <sched.h> if it exists.
23843         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
23844         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
23845         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
23846         HAVE_STRUCT_SCHED_PARAM.
23847         * modules/sched (Depends-on): Add include_next.
23848         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
23849         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
23850         * doc/posix-headers/sched.texi: Document the issue.
23851
23852 2008-11-13  Jim Meyering  <meyering@redhat.com>
23853
23854         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
23855         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
23856         test would fail due to the difference in the Report bugs to ...
23857         line.  The expected address is empty, "<>", while the actual
23858         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
23859
23860 2008-11-12  Bruno Haible  <bruno@clisp.org>
23861
23862         lstat: don't compile lstat.c on systems lacking lstat
23863         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
23864         which don't have lstat; this is handled by lib/sys_stat.in.h already.
23865         Reported by Daniel P. Berrange via Jim Meyering.
23866
23867 2008-11-12  Jim Meyering  <meyering@redhat.com>
23868
23869         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
23870
23871 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23872
23873         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
23874         instead.
23875
23876 2008-11-12  Bruno Haible  <bruno@clisp.org>
23877
23878         * lib/unicodeio.c: Include unistr.h.
23879         (utf8_wctomb): Remove function.
23880         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
23881
23882 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23883
23884         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
23885         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
23886         <bruno@clisp.org>.
23887         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
23888
23889 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23890
23891         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
23892         * doc/gnulib.texi: Add section for warnings.
23893
23894 2008-11-11  Bruno Haible  <bruno@clisp.org>
23895
23896         * lib/sockets.h: Add a comment.
23897
23898 2008-11-11  Karl Berry  <karl@gnu.org>
23899
23900         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
23901
23902 2008-11-11  Eric Blake  <ebb9@byu.net>
23903
23904         fdl.texi: avoid git symlinks
23905         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
23906
23907 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23908
23909         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
23910
23911 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23912
23913         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
23914         (gl_WARN_ADD): Substitute $2 if literal.
23915
23916 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23917
23918         * m4/warning.m4: Remove.
23919
23920 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23921
23922         * m4/warnings.m4: Almost complete rewrite. :-)
23923
23924 2008-11-10  Simon Josefsson  <simon@josefsson.org>
23925
23926         * modules/warnings: New module.
23927         * m4/warnings.m4: New file.
23928         * MODULES.html.sh: Mention warnings module.
23929         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
23930         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23931
23932 2008-11-10  Eric Blake  <ebb9@byu.net>
23933
23934         fdl.texi: make a symlink to the latest version
23935         * doc/standards.texi: Revert today's earlier change.
23936         * doc/fdl-1.2.texi: Rename from old fdl.texi...
23937         * doc/fdl.texi: ...and replace this with a symlink to the newer
23938         fdl-1.3.texi.
23939
23940 2008-11-10  Bruno Haible  <bruno@clisp.org>
23941
23942         * tests/test-select-fd.c (main): Accept the result file name as fourth
23943         argument.
23944         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
23945         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
23946
23947 2008-11-10  Bruno Haible  <bruno@clisp.org>
23948
23949         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
23950         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
23951         as autoconf-substituted macros.
23952         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
23953         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
23954         gl_NETDB_H_DEFAULTS. Set these variables.
23955         * modules/netdb (Makefile.am): Substitute these variables.
23956
23957 2008-11-10  Eric Blake  <ebb9@byu.net>
23958
23959         standards.texi: include correct file for FDL 1.3
23960         * doc/standards.texi (GNU Free Documentation License): Change
23961         include file to pull in FDL 1.3, not 1.2.
23962
23963         fdl.texi: revert accidental change to license
23964         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23965
23966 2008-11-10  Bruno Haible  <bruno@clisp.org>
23967
23968         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23969         cross-compiling guesses also when the native compile gives no result.
23970
23971 2008-11-10  Bruno Haible  <bruno@clisp.org>
23972
23973         * lib/spawni.c (__spawni): Force variable into the stack.
23974
23975 2008-11-10  Bruno Haible  <bruno@clisp.org>
23976
23977         Add support for Haiku.
23978         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23979         glibc and BeOS, but also on Haiku.
23980         * lib/fpurge.c (fpurge): Likewise.
23981         * lib/freadable.c (freadable): Likewise.
23982         * lib/freadahead.c (freadahead): Likewise.
23983         * lib/freading.c (freading): Likewise.
23984         * lib/freadptr.c (freadptr): Likewise.
23985         * lib/freadseek.c (freadptrinc): Likewise.
23986         * lib/fseeko.c (rpl_fseeko): Likewise.
23987         * lib/fseterr.c (fseterr): Likewise.
23988         * lib/fwritable.c (fwritable): Likewise.
23989         * lib/fwriting.c (fwriting): Likewise.
23990         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23991
23992 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23993
23994         * lib/config.charset: Treat Haiku like BeOS.
23995
23996 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23997
23998         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23999         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24000
24001 2008-11-08  Bruno Haible  <bruno@clisp.org>
24002
24003         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24004         AC_CACHE_CHECK.
24005
24006 2008-11-08  Bruno Haible  <bruno@clisp.org>
24007
24008         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24009
24010 2008-11-08  Bruno Haible  <bruno@clisp.org>
24011
24012         * tests/test-select-fd.c: New file.
24013         * tests/test-select-in.sh: New file.
24014         * tests/test-select-out.sh: New file.
24015         * tests/test-select-stdin.c: New file.
24016         * modules/select-tests (Files): Add the new files.
24017         (Depends-on): Add gettimeofday.
24018         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24019         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24020         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24021
24022 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24023             Bruno Haible  <bruno@clisp.org>
24024
24025         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24026
24027 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24028
24029         * build-aux/pmccabe2html: Added support for C++ source files.
24030
24031 2008-11-05  Ben Pfaff  <blp@gnu.org>
24032
24033         Fix lib/close.c build on Windows.
24034         * modules/close (Files): Add lib/w32sock.h.
24035
24036 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24037
24038         Accept Bison's NEWS format.
24039         * build-aux/announce-gen (print_news_deltas): Tweak
24040         $re_prefix.
24041
24042 2008-11-04  Bruno Haible  <bruno@clisp.org>
24043
24044         * modules/random_r (Maintainer): Add glibc.
24045
24046 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24047
24048         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24049         by karl@freefriends.org (Karl Berry).
24050         * doc/alloca.texi: Likewise.
24051         * doc/c-ctype.texi: Likewise.
24052         * doc/c-strcase.texi: Likewise.
24053         * doc/c-strcaseeq.texi: Likewise.
24054         * doc/c-strcasestr.texi: Likewise.
24055         * doc/c-strstr.texi: Likewise.
24056         * doc/c-strtod.texi: Likewise.
24057         * doc/c-strtold.texi: Likewise.
24058         * doc/ctime.texi: Likewise.
24059         * doc/error.texi: Likewise.
24060         * doc/fdl.texi: Likewise.
24061         * doc/gcd.texi: Likewise.
24062         * doc/getdate.texi: Likewise.
24063         * doc/gnulib-intro.texi: Likewise.
24064         * doc/gnulib-tool.texi: Likewise.
24065         * doc/gnulib.texi: Likewise.
24066         * doc/inet_ntoa.texi: Likewise.
24067         * doc/maintain.texi: Likewise.
24068         * doc/make-stds.texi: Likewise.
24069         * doc/quote.texi: Likewise.
24070         * doc/regexprops-generic.texi: Likewise.
24071         * doc/standards.texi: Likewise.
24072         * doc/verify.texi: Likewise.
24073         * doc/visibility.texi: Likewise.
24074         * doc/gnulib.texi (GNU Free Documentation License): Include
24075         fdl-1.3.texi instead of fdl.texi.
24076
24077 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24078
24079         * doc/fdl-1.3.texi: New file, from
24080         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24081         * modules/fdl-1.3: Add.
24082         * MODULES.html.sh: Add fdl-1.3.
24083
24084 2008-11-03  Bruno Haible  <bruno@clisp.org>
24085
24086         Make determination of absolute name of header file work with AIX xlc.
24087         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24088         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24089         preprocessing.
24090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24091         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24092
24093 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24094
24095         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24096         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24097         <ludo@gnu.org>.
24098
24099 2008-11-02  Bruno Haible  <bruno@clisp.org>
24100
24101         Mark 'strpbrk' obsolete.
24102         * modules/strpbrk (Status, Notice): New sections.
24103         * modules/strtok_r (Depends-on): Add strpbrk.
24104
24105 2008-11-02  Bruno Haible  <bruno@clisp.org>
24106
24107         Mark 'strdup' obsolete.
24108         * modules/strdup (Status, Notice): New sections.
24109         * modules/findprog (Depends-on): Add strdup.
24110         * modules/getaddrinfo (Depends-on): Likewise.
24111         * modules/localename (Depends-on): Likewise.
24112         * modules/relocatable-lib (Depends-on): Likewise.
24113         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24114         * modules/relocatable-prog (Depends-on): Likewise.
24115         * modules/trim (Depends-on): Likewise.
24116         * modules/unictype/gen-ctype (Depends-on): Likewise.
24117         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24118
24119 2008-11-02  Bruno Haible  <bruno@clisp.org>
24120
24121         Mark 'strcspn' obsolete.
24122         * modules/strcspn (Status, Notice): New sections.
24123
24124 2008-11-02  Bruno Haible  <bruno@clisp.org>
24125
24126         Mark 'rmdir' obsolete.
24127         * modules/rmdir (Status, Notice): New sections.
24128         * modules/clean-temp (Depends-on): Add rmdir.
24129         * modules/openat (Depends-on): Likewise.
24130
24131 2008-11-02  Bruno Haible  <bruno@clisp.org>
24132
24133         Mark 'raise' obsolete.
24134         * modules/raise (Status, Notice): New sections.
24135         (Include): Specify <signal.h>.
24136         * modules/stdio (Depends-on): Add raise.
24137         * modules/write (Depends-on): Likewise.
24138
24139 2008-11-02  Bruno Haible  <bruno@clisp.org>
24140
24141         Mark 'memset' obsolete.
24142         * modules/memset (Status, Notice): New sections.
24143
24144 2008-11-02  Bruno Haible  <bruno@clisp.org>
24145
24146         Mark 'memmove' obsolete.
24147         * modules/memmove (Status, Notice): New sections.
24148         * modules/argp (Depends-on): Add memmove.
24149         * modules/argz (Depends-on): Likewise.
24150         * modules/canonicalize (Depends-on): Likewise.
24151         * modules/canonicalize-lgpl (Depends-on): Likewise.
24152         * modules/fts (Depends-on): Likewise.
24153         * modules/getcwd (Depends-on): Likewise.
24154         * modules/human (Depends-on): Likewise.
24155         * modules/regex (Depends-on): Likewise.
24156         * modules/striconveh (Depends-on): Likewise.
24157         * modules/trim (Depends-on): Likewise.
24158         * modules/unistr/u8-move (Depends-on): Likewise.
24159         * modules/unistr/u16-move (Depends-on): Likewise.
24160         * modules/unistr/u32-move (Depends-on): Likewise.
24161
24162 2008-11-02  Bruno Haible  <bruno@clisp.org>
24163
24164         Mark 'memcpy' obsolete.
24165         * modules/memcpy (Status, Notice): New sections.
24166
24167 2008-11-02  Bruno Haible  <bruno@clisp.org>
24168
24169         Mark 'memcmp' obsolete.
24170         * modules/memcmp (Status, Notice): New sections.
24171         * modules/argmatch (Depends-on): Add memchr.
24172         * modules/backupfile (Depends-on): Likewise.
24173         * modules/c-strcasestr (Depends-on): Likewise.
24174         * modules/crypto/des (Depends-on): Likewise.
24175         * modules/csharpcomp (Depends-on): Likewise.
24176         * modules/fnmatch (Depends-on): Likewise.
24177         * modules/git-merge-changelog (Depends-on): Likewise.
24178         * modules/isnand (Depends-on): Likewise.
24179         * modules/isnand-nolibm (Depends-on): Likewise.
24180         * modules/isnanf (Depends-on): Likewise.
24181         * modules/isnanf-nolibm (Depends-on): Likewise.
24182         * modules/isnanl (Depends-on): Likewise.
24183         * modules/isnanl-nolibm (Depends-on): Likewise.
24184         * modules/mbchar (Depends-on): Likewise.
24185         * modules/memcoll (Depends-on): Likewise.
24186         * modules/quotearg (Depends-on): Likewise.
24187         * modules/regex (Depends-on): Likewise.
24188         * modules/relocatable-prog (Depends-on): Likewise.
24189         * modules/same (Depends-on): Likewise.
24190         * modules/signbit (Depends-on): Likewise.
24191         * modules/strcasestr-simple (Depends-on): Likewise.
24192         * modules/unictype/gen-ctype (Depends-on): Likewise.
24193         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24194         * modules/uniname/uniname (Depends-on): Likewise.
24195         * modules/unistr/u8-cmp (Depends-on): Likewise.
24196
24197 2008-11-02  Bruno Haible  <bruno@clisp.org>
24198
24199         Mark 'memchr' obsolete.
24200         * modules/memchr (Status, Notice): New sections.
24201         * modules/argp (Depends-on): Add memchr.
24202         * modules/base64 (Depends-on): Likewise.
24203         * modules/c-strcasestr (Depends-on): Likewise.
24204         * modules/chdir-long (Depends-on): Likewise.
24205         * modules/fnmatch (Depends-on): Likewise.
24206         * modules/getsubopt (Depends-on): Likewise.
24207         * modules/git-merge-changelog (Depends-on): Likewise.
24208         * modules/glob (Depends-on): Likewise.
24209         * modules/strcasestr-simple (Depends-on): Likewise.
24210         * modules/strnlen (Depends-on): Likewise.
24211
24212 2008-11-02  Bruno Haible  <bruno@clisp.org>
24213
24214         Mark 'atexit' obsolete.
24215         * modules/atexit (Status, Notice): New sections.
24216         * modules/chdir-long (Depends-on): Add atexit.
24217         * modules/wait-process (Depends-on): Likewise.
24218
24219 2008-11-02  Bruno Haible  <bruno@clisp.org>
24220
24221         * gnulib-tool: New option --with-obsolete.
24222         (func_usage): Document it.
24223         (func_modules_transitive_closure): Drop obsolete dependencies if
24224         incobsolete is not true.
24225         (func_import): Read and save the incobsolete variable to the cache.
24226
24227 2008-11-02  Bruno Haible  <bruno@clisp.org>
24228
24229         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24230         * gnulib-tool: New option --extract-status.
24231         (func_usage): Document it.
24232         (sed_extract_prog): Recognize it.
24233         (func_get_status): New function.
24234
24235 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24236
24237         * modules/sockets (License): Change from LGPL to LGPLv2+.
24238
24239 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24240
24241         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24242
24243 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24244
24245         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24246         Mention times and sys_times.
24247         * modules/sys_times, modules/sys_times-tests: New modules.
24248         * modules/times, modules/times-tests: Likewise
24249         * m4/sys_times_h.m4: New file.
24250         * lib/sys_times.in.h: Likewise
24251         * lib/times.c: Likewise.
24252         * tests/test-sys_times.c: Likewise.
24253         * tests/test-times.c: Likewise.
24254         * doc/posix-headers/sys_times.texi: Update.
24255         * doc/posix-functions/times.texi: Update.
24256
24257 2008-10-28  Jim Meyering  <meyering@redhat.com>
24258
24259         * modules/tempname (Depends-on): Add lstat.
24260
24261         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24262
24263 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24264
24265         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24266         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24267         using idiom used elsewhere in gnulib.
24268
24269 2008-10-27  Jim Meyering  <meyering@redhat.com>
24270
24271         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24272
24273 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24274
24275         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24276         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24277         programs.
24278         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24279
24280 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24281
24282         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24283
24284 2008-10-27  Bruno Haible  <bruno@clisp.org>
24285
24286         * tests/test-lstat.c: Include <stdio.h>.
24287
24288 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24289
24290         * modules/lstat-tests: New module.
24291         * tests/test-lstat.c: New file.
24292
24293 2008-10-26  Jim Meyering  <meyering@redhat.com>
24294
24295         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24296
24297 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24298             Bruno Haible  <bruno@clisp.org>
24299
24300         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24301         * modules/configmake (Include): Add a note that the include must come
24302         after all system headers.
24303         * lib/javaversion.c: Include configmake.h after all other includes.
24304
24305 2008-10-26  Bruno Haible  <bruno@clisp.org>
24306
24307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24308         HAVE_STRUCT_RANDOM_DATA to 1.
24309         (gl_STDLIB_H): Simplify.
24310
24311 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24312
24313         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24314         substitute HAVE_STRUCT_RANDOM_DATA.
24315         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24316         random_data.
24317         * modules/stdlib (Makefile.am): Substitute
24318         HAVE_STRUCT_RANDOM_DATA.
24319
24320 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24321
24322         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24323         * doc/gnulib-intro.texi (Copyright): Likewise.
24324
24325 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24326
24327         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24328         findings.
24329
24330 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24331             Bruno Haible  <bruno@clisp.org>
24332
24333         * lib/unistd.in.h: Include <winsock2.h>.
24334         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24335         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24336         Provide dummy declarations.
24337         (gethostname): Override.
24338         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24339         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24340         gl_PREREQ_SYS_H_WINSOCK2.
24341         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24342         * doc/posix-functions/gethostname.texi: More details.
24343
24344 2008-10-25  Bruno Haible  <bruno@clisp.org>
24345
24346         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24347         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24348         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24349
24350         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24351         here ...
24352         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24353         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24354         gl_UNISTD_H_DEFAULTS.
24355
24356 2008-10-25  Eric Blake  <ebb9@byu.net>
24357
24358         signbit: avoid spurious compiler failure
24359         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24360         declarations inside function.
24361
24362 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24363             Bruno Haible  <bruno@clisp.org>
24364
24365         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24366         * modules/random_r (Depends-on): Add stdint.
24367
24368 2008-10-24  Bruno Haible  <bruno@clisp.org>
24369
24370         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24371         Eggert.
24372         * modules/strerror (License): Likewise.
24373
24374 2008-10-24  Jim Meyering  <meyering@redhat.com>
24375
24376         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24377         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24378
24379 2008-10-24  Eric Blake  <ebb9@byu.net>
24380
24381         getgroups: fix compilation when getgroups is available
24382         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24383         but with <config.h> override of getgroups disabled.
24384
24385 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24386
24387         * doc/gnulib.texi (Header files): Add note about C++ problems.
24388         Explained by Bruno Haible <bruno@clisp.org>.
24389
24390 2008-10-23  Bruno Haible  <bruno@clisp.org>
24391
24392         Define a dummy SA_NODEFER macro on Interix.
24393         * lib/signal.in.h (SA_NODEFER): Define fallback.
24394         Reported by Aleksey Cheusov <cheusov@tut.by> via
24395         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24396
24397 2008-10-23  Bruno Haible  <bruno@clisp.org>
24398
24399         * modules/freadahead (License): Change to LGPLv2+.
24400         Suggested by Simon Josefsson.
24401
24402 2008-10-23  Jim Meyering  <meyering@redhat.com>
24403
24404         random_r: new module
24405         * modules/random_r: New file.
24406         * m4/random_r.m4: New file.
24407         * lib/random_r.c: New file, from glibc.
24408         * modules/random_r-tests: New file.
24409         * tests/test-random_r.c: New file.
24410         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
24411          Declare.
24412         (RAND_MAX): Define.
24413         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
24414         * modules/stdlib: Substitute them, too.
24415         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
24416         * doc/glibc-functions/initstate_r.texi: Mention the new module.
24417         * doc/glibc-functions/random_r.texi: Likewise.
24418         * doc/glibc-functions/setstate_r.texi: Likewise.
24419         * doc/glibc-functions/srandom_r.texi: Likewise.
24420         * config/srclist.txt: Mention it.
24421
24422 2008-10-23  David Lutterkort  <lutter@redhat.com>
24423
24424         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
24425         link requirement
24426
24427 2008-10-23  Jim Meyering  <meyering@redhat.com>
24428
24429         selinux-h: mark parameters of stub functions as intentionally unused
24430         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
24431         * lib/se-context.in.h: Likewise.
24432
24433 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24434
24435         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
24436
24437 2008-10-22  Simon Josefsson  <simon@josefsson.org>
24438
24439         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
24440
24441 2008-10-22  Eric Blake  <ebb9@byu.net>
24442
24443         glthread/thread: avoid compiler warning
24444         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
24445         Add unreachable abort to silence compiler.
24446
24447 2008-10-22  Eric Blake  <ebb9@byu.net>
24448
24449         netdb: also supply struct addrinfo for cygwin 1.5.x
24450         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
24451         older cygwin.
24452         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
24453         cygwin.
24454         * doc/posix-headers/netdb.texi (netdb.h): Document this.
24455
24456 2008-10-22  Bruno Haible  <bruno@clisp.org>
24457
24458         * users.txt: Update entry about pspp.
24459
24460 2008-10-21  Bruno Haible  <bruno@clisp.org>
24461
24462         Simplification.
24463         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
24464         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
24465
24466         Simplification.
24467         * lib/ioctl.c (ioctl): Don't undefine.
24468         * lib/socket.c (socket): Don't undefine.
24469
24470         Remove unused module indicator macros.
24471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
24472         GNULIB_$1 as a C macro.
24473
24474         * doc/posix-functions/close.texi: Undo last change.
24475         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
24476         Windows platforms.
24477
24478 2008-10-21  Bruno Haible  <bruno@clisp.org>
24479
24480         Add gethostname() declaration to <unistd.h>.
24481         * lib/unistd.in.h (gethostname): New declaration.
24482         * lib/gethostname.c: Include <unistd.h>.
24483         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
24484         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
24485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
24486         and HAVE_GETHOSTNAME.
24487         * modules/gethostname (Depends-on): Add unistd.
24488         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24489         (Include): Specify <unistd.h>.
24490         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
24491         HAVE_GETHOSTNAME.
24492         * tests/test-gethostname.c: Include <unistd.h> first.
24493
24494 2008-10-21  Bruno Haible  <bruno@clisp.org>
24495
24496         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
24497         * modules/select-tests (Depends-on): Likewise.
24498         Reported by Simon Josefsson.
24499
24500 2008-10-21  Simon Josefsson  <simon@josefsson.org>
24501
24502         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
24503         * lib/accept.c: New file, based on winsock.c.
24504         * lib/bind.c: New file, based on winsock.c.
24505         * lib/connect.c: New file, based on winsock.c.
24506         * lib/getpeername.c: New file, based on winsock.c.
24507         * lib/getsockname.c: New file, based on winsock.c.
24508         * lib/getsockopt.c: New file, based on winsock.c.
24509         * lib/ioctl.c: New file, based on winsock.c.
24510         * lib/listen.c: New file, based on winsock.c.
24511         * lib/recv.c: New file, based on winsock.c.
24512         * lib/recvfrom.c: New file, based on winsock.c.
24513         * lib/send.c: New file, based on winsock.c.
24514         * lib/sendto.c: New file, based on winsock.c.
24515         * lib/setsockopt.c: New file, based on winsock.c.
24516         * lib/shutdown.c: New file, based on winsock.c.
24517         * lib/socket.c: New file, based on winsock.c.
24518         * lib/w32sock.h: New file, based on winsock.c.
24519         * lib/winsock.c: Remove file.
24520         * modules/accept: Likewise.
24521         * modules/bind: Likewise.
24522         * modules/connect: Likewise.
24523         * modules/getpeername: Likewise.
24524         * modules/getsockname: Likewise.
24525         * modules/getsockopt: Likewise.
24526         * modules/ioctl: Likewise.
24527         * modules/listen: Likewise.
24528         * modules/recv: Likewise.
24529         * modules/recvfrom: Likewise.
24530         * modules/send: Likewise.
24531         * modules/sendto: Likewise.
24532         * modules/setsockopt: Likewise.
24533         * modules/shutdown: Likewise.
24534         * modules/socket: Use socket.c instead of winsock.c.
24535         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
24536         * doc/posix-functions/accept.texi: Doc fix.
24537         * doc/posix-functions/bind.texi: Doc fix.
24538         * doc/posix-functions/close.texi: Doc fix.
24539         * doc/posix-functions/connect.texi: Doc fix.
24540         * doc/posix-functions/getpeername.texi: Doc fix.
24541         * doc/posix-functions/getsockname.texi: Doc fix.
24542         * doc/posix-functions/getsockopt.texi: Doc fix.
24543         * doc/posix-functions/ioctl.texi: Doc fix.
24544         * doc/posix-functions/listen.texi: Doc fix.
24545         * doc/posix-functions/recv.texi: Doc fix.
24546         * doc/posix-functions/recvfrom.texi: Doc fix.
24547         * doc/posix-functions/send.texi: Doc fix.
24548         * doc/posix-functions/sendto.texi: Doc fix.
24549         * doc/posix-functions/setsockopt.texi: Doc fix.
24550         * doc/posix-functions/shutdown.texi: Doc fix.
24551         * doc/posix-functions/socket.texi: Doc fix.
24552
24553 2008-10-20  Bruno Haible  <bruno@clisp.org>
24554
24555         Take into account the role of SIGABRT_COMPAT on Windows 2008.
24556         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
24557         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
24558         as an alias for SIGABRT.
24559         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
24560         (sigaction): Map it to SIGABRT.
24561         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
24562
24563 2008-10-20  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/fts.c: Don't include lstat.h.
24566         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
24567
24568         Move the lstat() declaration to <sys/stat.h>.
24569         * lib/lstat.h: Remove file.
24570         * lib/sys_stat.in.h: Add special invocation convention.
24571         (lstat): New declaration.
24572         * lib/lstat.c (orig_lstat): New function.
24573         (rpl_lstat): Use orig_lstat instead of lstat.
24574         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
24575         AC_C_INLINE. Set REPLACE_LSTAT.
24576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
24577         and REPLACE_LSTAT.
24578         * modules/lstat (Files): Remove lib/lstat.h.
24579         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24580         (Include): Specify <sys/stat.h> instead of lstat.h.
24581         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
24582         REPLACE_LSTAT.
24583         * NEWS: Mention the change.
24584
24585 2008-10-20  Bruno Haible  <bruno@clisp.org>
24586
24587         * modules/posix_spawn-tests: New file.
24588         * tests/test-posix_spawn3.c: New file.
24589
24590 2008-10-20  Bruno Haible  <bruno@clisp.org>
24591
24592         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
24593         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24594         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
24595         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
24596         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
24597
24598 2008-10-20  Bruno Haible  <bruno@clisp.org>
24599
24600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
24601         of posix_spawn on AIX 5.3.
24602
24603 2008-10-20  Bruno Haible  <bruno@clisp.org>
24604
24605         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
24606
24607 2008-10-20  Bruno Haible  <bruno@clisp.org>
24608
24609         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
24610         of AC_LANG_PROGRAM.
24611
24612 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24613
24614         * lib/netdb.in.h: Don't define GNU specific constants until they
24615         are supported or needed.  Reported by Bruno Haible
24616         <bruno@clisp.org>.
24617
24618 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24619
24620         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
24621
24622 2008-10-20  Simon Josefsson  <simon@josefsson.org>
24623
24624         * lib/getaddrinfo.h: Remove file.
24625         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
24626         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
24627         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
24628         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
24629         * modules/netdb: Substitute GNULIB_GETADDRINFO.
24630         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
24631         * tests/test-getaddrinfo.c: Likewise.
24632         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
24633         * NEWS: Mention change.
24634
24635 2008-10-19  Bruno Haible  <bruno@clisp.org>
24636
24637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
24638
24639 2008-10-19  Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/wait-process.c: Include simply <sys/wait.h>.
24642         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
24643         WIFSTOPPED): Remove fallback definitions.
24644         * modules/wait-process (Depends-on): Add sys_wait.
24645
24646         New module 'sys_wait'.
24647         * modules/sys_wait: New file.
24648         * lib/sys_wait.in.h: New file, partially copied from
24649         lib/wait-process.c.
24650         * m4/sys_wait_h.m4: New file.
24651         * doc/posix-headers/sys_wait.texi: Mention the new module.
24652
24653 2008-10-19  Bruno Haible  <bruno@clisp.org>
24654
24655         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
24656
24657 2008-10-19  Bruno Haible  <bruno@clisp.org>
24658
24659         Assume that waitpid() fills an 'int' status, not a 'union wait'.
24660         * lib/wait-process.c (WAIT_T): Remove type.
24661         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
24662         (wait_subprocess): Update.
24663
24664 2008-10-19  Bruno Haible  <bruno@clisp.org>
24665
24666         New module 'atoll'.
24667         * modules/atoll: New file.
24668         * lib/stdlib.in.h (atoll): New declaration.
24669         * lib/atoll.c: New file, from glibc with modifications.
24670         * m4/atoll.m4: New file.
24671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
24672         HAVE_ATOLL.
24673         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
24674         * doc/posix-functions/atoll.texi: Mention the new module.
24675
24676 2008-10-19  Bruno Haible  <bruno@clisp.org>
24677
24678         Add strtoull() declaration to <stdlib.h>.
24679         * lib/stdlib.in.h (strtoull): New declaration.
24680         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24681         Set HAVE_STRTOULL.
24682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
24683         HAVE_STRTOULL.
24684         * modules/strtoull (Depends-on): Add stdlib.
24685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24686         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
24687         HAVE_STRTOULL.
24688
24689 2008-10-19  Bruno Haible  <bruno@clisp.org>
24690
24691         Add strtoll() declaration to <stdlib.h>.
24692         * lib/stdlib.in.h (strtoll): New declaration.
24693         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24694         Set HAVE_STRTOLL.
24695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
24696         HAVE_STRTOLL.
24697         * modules/strtoll (Depends-on): Add stdlib.
24698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24699         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
24700
24701 2008-10-19  Bruno Haible  <bruno@clisp.org>
24702
24703         * modules/bcopy (Depends-on): Add strings.
24704         (Include): Specify <strings.h>.
24705
24706 2008-10-19  Bruno Haible  <bruno@clisp.org>
24707
24708         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
24709
24710 2008-10-19  Bruno Haible  <bruno@clisp.org>
24711
24712         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
24713         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
24714         mingw.
24715
24716 2008-10-19  Bruno Haible  <bruno@clisp.org>
24717
24718         * lib/atanl.c: Don't include isnanl.h.
24719         * lib/cosl.c: Likewise.
24720         * lib/ldexpl.c: Likewise.
24721         * lib/logl.c: Likewise.
24722         * lib/sinl.c: Likewise.
24723         * lib/sqrtl.c: Likewise.
24724         * lib/tanl.c: Likewise.
24725
24726         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
24727         * lib/isnanf.h: Remove file.
24728         * lib/isnand.h: Remove file.
24729         * lib/isnanl.h: Remove file.
24730         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
24731         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
24732         macros.
24733         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
24734         HAVE_ISNANF, don't define it as a C macro.
24735         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
24736         HAVE_ISNAND, don't define it as a C macro.
24737         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
24738         HAVE_ISNANL, don't define it as a C macro.
24739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
24740         HAVE_ISNAN[FDL].
24741         * modules/isnanf (Files): Remove lib/isnanf.h.
24742         (Depends-on): Add math.
24743         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24744         (Include): Specify <math.h> instead of isnanf.h.
24745         * modules/isnand (Files): Remove lib/isnand.h.
24746         (Depends-on): Add math.
24747         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24748         (Include): Specify <math.h> instead of isnand.h.
24749         * modules/isnanl (Files): Remove lib/isnanl.h.
24750         (Depends-on): Add math.
24751         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24752         (Include): Specify <math.h> instead of isnanl.h.
24753         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
24754         HAVE_ISNAN[FDL].
24755         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
24756         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
24757         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
24758         * NEWS: Mention the change.
24759
24760 2008-10-18  Bruno Haible  <bruno@clisp.org>
24761
24762         Add getusershell(), setusershell(), endusershell() declarations to
24763         <unistd.h>.
24764         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
24765         declarations.
24766         * lib/getusershell.c: Include unistd.h.
24767         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
24768         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24769         HAVE_GETUSERSHELL.
24770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
24771         and HAVE_GETUSERSHELL.
24772         * modules/getusershell (Depends-on): Add unistd, extensions.
24773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24774         (Include): Specify <unistd.h>.
24775         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
24776         HAVE_GETUSERSHELL.
24777
24778 2008-10-18  Bruno Haible  <bruno@clisp.org>
24779
24780         Add a getloadavg() declaration to <stdlib.h>.
24781         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
24782         getloadavg declaration.
24783         (getloadavg): New declaration.
24784         * lib/getloadavg.c: Include <stdlib.h> first.
24785         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
24786         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
24787         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
24788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
24789         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24790         * modules/getloadavg (Depends-on): Add stdlib, extensions.
24791         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24792         (Include): Specify <stdlib.h>.
24793         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
24794         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24795
24796 2008-10-18  Bruno Haible  <bruno@clisp.org>
24797
24798         * lib/dirchownmod.c: Don't include lchmod.h.
24799
24800         Move the lchmod() declaration to <sys/stat.h>.
24801         * lib/lchmod.h: Remove file.
24802         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
24803         (lchmod): New declaration, moved here from lib/lchown.h.
24804         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
24805         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
24806         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
24807         and HAVE_LCHMOD.
24808         * modules/lchmod (Files): Remove lib/lchmod.h.
24809         (Depends-on): Add sys_stat, extensions.
24810         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24811         (Include): Specify <sys/stat.h> instead of lchmod.h.
24812         * modules/sys_stat (Depends-on): Add link-warning.
24813         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
24814         definition of GL_LINK_WARNING.
24815         * NEWS: Mention the change.
24816
24817 2008-10-18  Bruno Haible  <bruno@clisp.org>
24818
24819         * lib/fchdir.c: Don't include dirfd.h.
24820         * lib/fts.c: Likewise.
24821         * lib/getcwd.c: Likewise.
24822         * lib/glob.c: Likewise.
24823
24824         Move the dirfd() declaration to <dirent.h>.
24825         * lib/dirfd.h: Remove file.
24826         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
24827         (dirfd): New declaration.
24828         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
24829         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
24830         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
24831         HAVE_DECL_DIRFD.
24832         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
24833         HAVE_DECL_DIRFD.
24834         * modules/dirfd (Files): Remove lib/dirfd.h.
24835         (Depends-on): Add dirent, extensions.
24836         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
24837         (Include): Specify <dirent.h> instead of dirfd.h.
24838         * modules/dirent (Depends-on): Add link-warning.
24839         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
24840         definition of GL_LINK_WARNING.
24841         * NEWS: Mention the change.
24842
24843 2008-10-18  Bruno Haible  <bruno@clisp.org>
24844
24845         Move the euidaccess() declaration to <unistd.h>.
24846         * lib/euidaccess.h: Remove file.
24847         * lib/unistd.in.h (euidaccess): New declaration.
24848         * lib/euidaccess.c: Don't include euidaccess.h.
24849         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
24850         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
24851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
24852         and HAVE_EUIDACCESS.
24853         * modules/euidaccess (Files): Remove lib/euidaccess.h.
24854         (Depends-on): Add unistd.
24855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24856         (Include): Specify <unistd.h> instead of euidaccess.h.
24857         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
24858         HAVE_EUIDACCESS.
24859         * NEWS: Mention the change.
24860
24861 2008-10-18  Bruno Haible  <bruno@clisp.org>
24862
24863         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
24864
24865         Move the getdomainname() declaration to <unistd.h>.
24866         * lib/getdomainname.h: Remove file.
24867         * lib/unistd.in.h (getdomainname): New declaration.
24868         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
24869         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24870         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24871         HAVE_GETDOMAINNAME.
24872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24873         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
24874         * modules/getdomainname (Files): Remove lib/getdomainname.h.
24875         (Depends-on): Add unistd, extensions.
24876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24877         (Includes): Specify <unistd.h> instead of getdomainname.h.
24878         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
24879         HAVE_GETDOMAINNAME.
24880         * NEWS: Mention the change.
24881
24882 2008-10-18  Bruno Haible  <bruno@clisp.org>
24883
24884         * modules/dirent: New file.
24885         * m4/dirent_h.m4: New file.
24886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
24887         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
24888         * modules/fchdir (Files): Remove lib/dirent.in.h.
24889         (Depends-on): Add dirent.
24890         (Makefile.am): Move rules to modules/dirent.
24891         * doc/posix-headers/dirent.texi: Mention the new module.
24892
24893 2008-10-18  Bruno Haible  <bruno@clisp.org>
24894
24895         Avoid -Wunused-parameter warnings in public gnulib header files.
24896         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
24897         macro.
24898         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
24899
24900 2008-10-18  Bruno Haible  <bruno@clisp.org>
24901
24902         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
24903         * doc/glibc-functions/error.texi: Mention the module 'error'.
24904         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
24905         * doc/glibc-functions/getdomainname.texi: Mention the module
24906         'getdomainname'.
24907         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
24908         * doc/glibc-functions/getpagesize.texi: Mention the module
24909         'getpagesize'.
24910         * doc/glibc-functions/getusershell.texi: Mention the module
24911         'getusershell'.
24912         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
24913         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
24914         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
24915         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
24916         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
24917         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
24918         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
24919         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
24920         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
24921         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
24922         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
24923         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
24924         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
24925         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
24926
24927 2008-10-17  Bruno Haible  <bruno@clisp.org>
24928
24929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
24930         HP-UX and IRIX, use -0.0L.
24931         * tests/test-ceill.c (minus_zero): Likewise.
24932         * tests/test-floorl.c (minus_zero): Likewise.
24933         * tests/test-frexpl.c (minus_zero): Likewise.
24934         * tests/test-isnan.c (minus_zerol): Likewise.
24935         * tests/test-isnanl.h (minus_zero): Likewise.
24936         * tests/test-ldexpl.c (minus_zero): Likewise.
24937         * tests/test-roundl.c (minus_zero): Likewise.
24938         * tests/test-signbit.c (minus_zerol): Likewise.
24939         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24940         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24941         * tests/test-truncl.c (minus_zero): Likewise.
24942         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24943         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24944         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
24945         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24946
24947 2008-10-17  Bruno Haible  <bruno@clisp.org>
24948
24949         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
24950         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
24951         that it gets activated only for gcc >= 3.0.
24952         * lib/dirent.in.h: Likewise.
24953         * lib/errno.in.h: Likewise.
24954         * lib/fcntl.in.h: Likewise.
24955         * lib/float.in.h: Likewise.
24956         * lib/iconv.in.h: Likewise.
24957         * lib/inttypes.in.h: Likewise.
24958         * lib/locale.in.h: Likewise.
24959         * lib/math.in.h: Likewise.
24960         * lib/netdb.in.h: Likewise.
24961         * lib/netinet_in.in.h: Likewise.
24962         * lib/search.in.h: Likewise.
24963         * lib/signal.in.h: Likewise.
24964         * lib/spawn.in.h: Likewise.
24965         * lib/stdarg.in.h: Likewise.
24966         * lib/stdint.in.h: Likewise.
24967         * lib/stdio.in.h: Likewise.
24968         * lib/stdlib.in.h: Likewise.
24969         * lib/string.in.h: Likewise.
24970         * lib/strings.in.h: Likewise.
24971         * lib/sys_file.in.h: Likewise.
24972         * lib/sys_ioctl.in.h: Likewise.
24973         * lib/sys_select.in.h: Likewise.
24974         * lib/sys_socket.in.h: Likewise.
24975         * lib/sys_stat.in.h: Likewise.
24976         * lib/sys_time.in.h: Likewise.
24977         * lib/sysexits.in.h: Likewise.
24978         * lib/time.in.h: Likewise.
24979         * lib/unistd.in.h: Likewise.
24980         * lib/wchar.in.h: Likewise.
24981         * lib/wctype.in.h: Likewise.
24982         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24983
24984 2008-10-17  Jim Meyering  <meyering@redhat.com>
24985
24986         ignore-value: don't depend on inline module
24987         * modules/ignore-value (Depends-on): Remove 'inline'.
24988         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24989         Suggestion from Bruno Haible.
24990
24991 2008-10-17  Bruno Haible  <bruno@clisp.org>
24992
24993         New implementation of condition variables for Win32.
24994         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24995         (gl_linked_waitqueue_t): New type.
24996         (gl_cond_t): Use it.
24997         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24998         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24999         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25000         (glthread_cond_init_func, glthread_cond_wait_func,
25001         glthread_cond_timedwait_func, glthread_cond_signal_func,
25002         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25003         Reimplemented on the basis of gl_linked_waitqueue_t.
25004         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25005         gl_waitqueue_t.
25006         (gl_rwlock_t): Update.
25007         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25008
25009 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25010
25011         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25012         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25013
25014 2008-10-17  Jim Meyering  <meyering@redhat.com>
25015
25016         ignore-value: new module
25017         * modules/ignore-value: New file.
25018         * lib/ignore-value.h: New file.
25019         * MODULES.html.sh (Compiler warning management): New section,
25020         just for this module.  More to come.
25021
25022 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25023
25024         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25025         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25026         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25027
25028 2008-10-16  Jim Meyering  <meyering@redhat.com>
25029
25030         openat-die.c: avoid 'no previous prototype' warning
25031         * lib/openat-die.c: Include "openat.h".
25032         Reported by Reuben Thomas <rrt@sc3d.org>.
25033
25034 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25035
25036         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25037         * lib/netdb.in.h: Fix typo.
25038         Reported by Bruno Haible  <bruno@clisp.org>
25039
25040         * lib/netdb.in.h: Include sys/socket.h for platforms without
25041         netdb.h, to get structures like hostent on MinGW.
25042         * modules/netdb (Depends-on): Add sys_socket.
25043
25044 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25045
25046         * modules/netdb, modules/netdb-tests: New file.
25047         * m4/netdb_h.m4: New file.
25048         * lib/netdb.in.h: Add, currently just an empty file pending
25049         definitions.
25050         * tests/test-netdb.c: New file.
25051         * doc/posix-headers/netdb.texi: Mention that we replace it if
25052         needed.
25053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25054         netdb.
25055
25056 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25057
25058         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25059         with code.
25060
25061 2008-10-13  Bruno Haible  <bruno@clisp.org>
25062
25063         * lib/glthread/cond.c (glthread_cond_wait_func,
25064         glthread_cond_timedwait_func): Add a comment.
25065
25066 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25067
25068         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25069         * tests/test-select.c: Likewise,
25070
25071 2008-10-13  Bruno Haible  <bruno@clisp.org>
25072
25073         * lib/glthread/cond.c (glthread_cond_wait_func,
25074         glthread_cond_timedwait_func): Fix variable name.
25075         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25076
25077 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25078
25079         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25080         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25081         struct sockaddr.sa_len.
25082         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25083
25084 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25085
25086         * build-aux/pmccabe2html: Add css and css_url parameters.
25087
25088 2008-10-12  Bruno Haible  <bruno@clisp.org>
25089
25090         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25091         calling aclx_get.
25092         Reported by Rainer Tammer <tammer@tammer.net>.
25093
25094 2008-10-12  Bruno Haible  <bruno@clisp.org>
25095
25096         Use msvcrt aware primitives for creation/termination of Win32 threads.
25097         * lib/glthread/thread.c: Include <process.h>.
25098         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25099         (wrapper_func): Update signature.
25100         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25101
25102 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25103             Bruno Haible  <bruno@clisp.org>
25104
25105         Provide a Win32 implementation of the 'cond' module.
25106         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25107         * lib/glthread/cond.c (glthread_cond_init_func,
25108         glthread_cond_wait_func, glthread_cond_timedwait_func,
25109         glthread_cond_signal_func, glthread_cond_broadcast_func,
25110         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25111         * modules/cond (Dependencies): Add gettimeofday.
25112
25113 2008-10-11  Bruno Haible  <bruno@clisp.org>
25114
25115         Make sleep work on older versions of mingw.
25116         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25117         only whether it exists.
25118         * doc/posix-functions/sleep.texi: Mention the problem with older
25119         versions of mingw.
25120
25121 2008-10-11  Bruno Haible  <bruno@clisp.org>
25122
25123         New module 'shutdown'.
25124         * modules/shutdown: New file.
25125         * lib/sys_socket.in.h (shutdown): New declaration.
25126         * lib/winsock.c (shutdown): New function.
25127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25128         GNULIB_SHUTDOWN.
25129         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25130         * doc/posix-functions/shutdown.texi: Document the new module.
25131
25132 2008-10-11  Jim Meyering  <meyering@redhat.com>
25133
25134         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25135
25136 2008-10-11  Bruno Haible  <bruno@clisp.org>
25137
25138         New module 'fclose'.
25139         * modules/fclose: New file.
25140         * lib/stdio.in.h (fclose): New declaration.
25141         * lib/fclose.c: New file.
25142         * m4/fclose.m4: New file.
25143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25144         REPLACE_FCLOSE.
25145         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25146         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25147         REPLACE_FCLOSE.
25148         * modules/close (Depends-on): fclose.
25149         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25150
25151 2008-10-11  Bruno Haible  <bruno@clisp.org>
25152
25153         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25154         set errno and don't call _close.
25155
25156 2008-10-10  Bruno Haible  <bruno@clisp.org>
25157
25158         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25159         ACL, not afterwards. Fixes test failure on Cygwin.
25160
25161 2008-10-09  Ben Pfaff  <blp@gnu.org>
25162
25163         * build-aux/announce-gen: Fix gnulib version related part of usage
25164         message.  Die with a useful error message if no tarballs are
25165         found.
25166
25167 2008-10-10  Jim Meyering  <meyering@redhat.com>
25168
25169         bootstrap: use git's --depth=N option only if it's supported
25170         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25171         recognize the --depth option.  Reported by Pádraig Brady.
25172
25173 2008-10-09  Bruno Haible  <bruno@clisp.org>
25174
25175         New module 'ioctl'.
25176         * modules/ioctl: New file.
25177         * lib/sys_socket.in.h (ioctl): Remove declaration.
25178         * lib/winsock.c: Include <sys/ioctl.h>.
25179         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25180         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25181         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25182         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25183         * doc/posix-functions/ioctl.texi: Mention the new module.
25184
25185 2008-10-09  Bruno Haible  <bruno@clisp.org>
25186
25187         New module 'sys_ioctl'.
25188         * lib/sys_ioctl.in.h: New file.
25189         * m4/sys_ioctl_h.m4: New file.
25190         * modules/sys_ioctl: New file.
25191         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25192
25193 2008-10-09  Bruno Haible  <bruno@clisp.org>
25194
25195         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25196         * lib/winsock.c: Include <stdarg.h>.
25197         (rpl_ioctl): Change to second argument 'int' and then varargs.
25198
25199 2008-10-09  Bruno Haible  <bruno@clisp.org>
25200
25201         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25202         when the sys_socket module is present and the system has <winsock2.h>.
25203
25204 2008-10-09  Bruno Haible  <bruno@clisp.org>
25205
25206         * doc/posix-functions/close.texi: Mention module 'close' instead of
25207         module 'sys_socket'.
25208
25209 2008-10-09  Bruno Haible  <bruno@clisp.org>
25210
25211         * doc/glibc-headers/sys_ioctl.texi: New file.
25212         * doc/gnulib.texi: Include it.
25213
25214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25215             Bruno Haible  <bruno@clisp.org>
25216
25217         Combine the two replacements of 'close'.
25218         * lib/sys_socket.in.h (close): Define to a reminder to include
25219         <unistd.h>.
25220         (_gl_close_fd_maybe_socket): New declaration.
25221         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25222         * lib/winsock.c (close): Remove undefinition.
25223         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25224         needed for the gnulib module 'close'.
25225         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25226         define to an error symbol or to a warning, if suitable.
25227         * lib/close.c: Include <sys/socket.h>.
25228         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25229         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25230         UNISTD_H_HAVE_WINSOCK2_H.
25231         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25233         UNISTD_H_HAVE_WINSOCK2_H.
25234         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25235         (configure.ac): Set a module indicator.
25236         (Makefile.am): Substitute GNULIB_CLOSE.
25237         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25238         * modules/poll-tests (Depends-on): Add close.
25239         * modules/select-tests (Depends-on): Likewise.
25240
25241 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25242             Bruno Haible  <bruno@clisp.org>
25243
25244         New module 'close'.
25245         * modules/close: New file.
25246         * lib/unistd.in.h (close): Move declaration out of the
25247         FCHDIR_REPLACEMENT scope.
25248         (_gl_unregister_fd): New declaration.
25249         * lib/close.c: New file.
25250         * lib/fchdir.c (rpl_close): Remove function.
25251         * m4/close.m4: New file.
25252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25253         close.
25254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25255         REPLACE_CLOSE.
25256         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25257         REPLACE_CLOSE.
25258         * modules/fchdir (Depends-on): Add close.
25259
25260 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25261             Bruno Haible  <bruno@clisp.org>
25262
25263         * lib/fcntl.in.h (open): Simplify conditionals.
25264         (_gl_register_fd): New declaration.
25265         * lib/fchdir.c (rpl_open): Remove function.
25266         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25267         also.
25268         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25270         open.
25271
25272 2008-10-09  Jim Meyering  <meyering@redhat.com>
25273
25274         GNUmakefile: use the more name-space-friendly "_version"
25275         * top/GNUmakefile (_dummy): Update.
25276         (_version): Rename from "version".
25277
25278 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25279             Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25282         rpl_close.
25283         (_gl_register_fd): New function, extracted from rpl_open.
25284         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25285         (rpl_open, rpl_opendir): Use _gl_register_fd.
25286
25287 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25288
25289         Fix organization of 'open' replacement.
25290         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25291         (gl_FUNC_OPEN): Use it.
25292         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25293
25294 2008-10-08  Bruno Haible  <bruno@clisp.org>
25295
25296         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25297
25298 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25299
25300         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25301         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25302         listen).
25303
25304 2008-10-08  Eric Blake  <ebb9@byu.net>
25305
25306         GNUmakefile: add 'make version' target
25307         * top/GNUmakefile (_curr-ver): Split version update rules...
25308         (version): ...into a target.
25309
25310 2008-10-07  Bruno Haible  <bruno@clisp.org>
25311
25312         Use a more portable replacement expression for -0.0L.
25313         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25314         instead of -0.0L. Fix m4 quotation.
25315
25316         * tests/test-signbit.c: Include <float.h>.
25317         (minus_zero): New variable.
25318         (test_signbitl): Use minus_zero instead of -zero.
25319         * modules/signbit-tests (Depends-on): Add float.
25320
25321         * tests/test-ceill.c: Include <float.h>.
25322         (zero): Remove variable.
25323         (minus_zero): New variable.
25324         (main): Use minus_zero instead of -zero.
25325         * modules/ceill-tests (Depends-on): Add float.
25326
25327         * tests/test-floorl.c: Include <float.h>.
25328         (zero): Remove variable.
25329         (minus_zero): New variable.
25330         (main): Use minus_zero instead of -zero.
25331         * modules/floorl-tests (Depends-on): Add float.
25332
25333         * tests/test-roundl.c: Include <float.h>.
25334         (zero): Remove variable.
25335         (minus_zero): New variable.
25336         (main): Use minus_zero instead of -zero.
25337         * modules/roundl-tests (Depends-on): Add float.
25338
25339         * tests/test-truncl.c: Include <float.h>.
25340         (zero): Remove variable.
25341         (minus_zero): New variable.
25342         (main): Use minus_zero instead of -zero.
25343         * modules/truncl-tests (Depends-on): Add float.
25344
25345         * tests/test-frexpl.c (zero): Remove variable.
25346         (minus_zero): New variable.
25347         (main): Use minus_zero instead of -zero.
25348         * modules/frexpl-tests (Depends-on): Add float.
25349
25350         * tests/test-isnan.c (zerol): Remove variable.
25351         (minus_zerol): New variable.
25352         (test_long_double): Use minus_zerol instead of -zerol.
25353         * modules/isnan-tests (Depends-on): Add float.
25354
25355         * tests/test-isnanl.h (zero): Remove variable.
25356         (minus_zero): New variable.
25357         (main): Use minus_zero instead of -zero.
25358         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25359         * modules/isnanl-tests (Depends-on): Add float.
25360
25361         * tests/test-ldexpl.c (zero): Remove variable.
25362         (minus_zero): New variable.
25363         (main): Use minus_zero instead of -zero.
25364         * modules/ldexpl-tests (Depends-on): Add float.
25365
25366         * tests/test-snprintf-posix.h (zerol): Remove variable.
25367         (minus_zerol): New variable.
25368         (test_function): Use minus_zerol instead of -zerol.
25369         * modules/snprintf-posix-tests (Depends-on): Add float.
25370         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25371
25372         * tests/test-sprintf-posix.h (zerol): Remove variable.
25373         (minus_zerol): New variable.
25374         (test_function): Use minus_zerol instead of -zerol.
25375         * modules/sprintf-posix-tests (Depends-on): Add float.
25376         * modules/vsprintf-posix-tests (Depends-on): Add float.
25377
25378         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25379         (minus_zerol): New variable.
25380         (test_function): Use minus_zerol instead of -zerol.
25381         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25382
25383         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25384         (minus_zerol): New variable.
25385         (test_function): Use minus_zerol instead of -zerol.
25386         * modules/vasprintf-posix-tests (Depends-on): Add float.
25387
25388 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25389
25390         * MODULES.html.sh (Support for building documentation): Mention
25391         pmccabe2html.  Sort entries.
25392
25393         Add pmccabe2html module, from gnupdf.
25394         * build-aux/pmccabe.css: New file.
25395         * build-aux/pmccabe2html: New file.
25396         * m4/pmccabe2html.m4: New file.
25397         * modules/pmccabe2html: New file.
25398
25399 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25400
25401         flock: new module
25402         * MODULES.html.sh: Add to list of modules.
25403         * lib/flock.c: flock implementation for Windows and Unix systems
25404         which have fcntl.
25405         * doc/glibc-functions/flock.texi: Update documentation.
25406         * lib/sys_file.in.h: <sys/file.h> header file.
25407         * m4/flock.m4: M4 macros.
25408         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
25409         * modules/flock: flock module.
25410         * modules/flock-tests: flock tests module.
25411         * modules/sys_file: sys/file.h module.
25412         * tests/test-flock.c: test suite for flock.
25413
25414 2008-10-06  Jim Meyering  <meyering@redhat.com>
25415
25416         bootstrap: check for LT_INIT more portably still ;-)
25417         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
25418         Spotted by Bruno Haible.
25419
25420 2008-10-06  Eric Blake  <ebb9@byu.net>
25421
25422         test-signbit: avoid tripping Irix cc bug on -0.0L
25423         * tests/test-signbit.c (minus_zerol): Delete, and replace with
25424         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
25425         entire testsuite consistent and avoids an Irix 6.2 bug.
25426
25427 2008-10-05  Bruno Haible  <bruno@clisp.org>
25428             Jim Meyering  <jim@meyering.net>
25429
25430         Add an option for ignoring EPIPE during close_stdout.
25431         * lib/closeout.h: Include <stdbool.h>.
25432         (close_stdout_set_ignore_EPIPE): New declaration.
25433         * lib/closeout.c: Include <stdbool.h>.
25434         (ignore_EPIPE): New variable.
25435         (close_stdout_set_ignore_EPIPE): New function.
25436         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
25437         * lib/close-stream.c (close_stream): Mention the possible EPIPE
25438         failure.
25439         * modules/closeout (Depends-on): Add stdbool.
25440
25441 2008-10-05  Bruno Haible  <bruno@clisp.org>
25442
25443         * modules/accept: New file.
25444         * modules/bind: New file.
25445         * modules/connect: New file.
25446         * modules/getpeername: New file.
25447         * modules/getsockname: New file.
25448         * modules/getsockopt: New file.
25449         * modules/listen: New file.
25450         * modules/recv: New file.
25451         * modules/recvfrom: New file.
25452         * modules/send: New file.
25453         * modules/sendto: New file.
25454         * modules/setsockopt: New file.
25455         * modules/socket: New file.
25456         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
25457         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25458         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
25459         the particular module is requested. Add a link warning when the
25460         particular module is not requested.
25461         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
25462         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
25463         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
25464         the particular module is requested.
25465         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
25466         gl_SYS_SOCKET_H_DEFAULTS): New macros.
25467         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
25468         * modules/sys_socket (Depends-on): Add link-warning.
25469         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
25470         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
25471         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
25472         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
25473         GL_LINK_WARNING.
25474         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
25475         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
25476         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
25477         * doc/posix-functions/getpeername.texi: Mention the new module
25478         'getpeername'.
25479         * doc/posix-functions/getsockname.texi: Mention the new module
25480         'getsockname'.
25481         * doc/posix-functions/getsockopt.texi: Mention the new module
25482         'getsockopt'.
25483         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
25484         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
25485         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
25486         * doc/posix-functions/send.texi: Mention the new module 'send'.
25487         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
25488         * doc/posix-functions/setsockopt.texi: Mention the new module
25489         'setsockopt'.
25490         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
25491         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
25492         listen, connect, accept.
25493         * modules/select-tests (Depends-on): Likewise.
25494
25495 2008-10-05  Bruno Haible  <bruno@clisp.org>
25496
25497         * lib/winsock.c (strerror): Remove unused #undef.
25498         (rpl_close): Remove unused local variable.
25499
25500         * modules/sys_socket (Depends-on); Add errno.
25501
25502 2008-10-05  Bruno Haible  <bruno@clisp.org>
25503
25504         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
25505         (select): Add a link warning when the 'select' module is not used.
25506         * modules/sys_select (Depends-on): Add link-warning.
25507         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
25508         Suggested by Paolo Bonzini.
25509
25510 2008-10-05  Jim Meyering  <meyering@redhat.com>
25511
25512         bootstrap: check for LT_INIT more portably
25513         * build-aux/bootstrap: Avoid using grep -E, since it's not
25514         portable enough.  Suggestion from Bruno Haible.
25515
25516 2008-10-05  Bruno Haible  <bruno@clisp.org>
25517
25518         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
25519         as being fixed by gnulib.
25520
25521 2008-10-05  Bruno Haible  <bruno@clisp.org>
25522
25523         * modules/select-tests: New file, mostly copied from
25524         modules/sys_select-tests.
25525         * tests/test-select.c: New file, mostly copied from
25526         tests/test-sys_select.c.
25527         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
25528         * modules/sys_select-tests (Depends-on): Remove all dependencies.
25529         (Makefile.am): Remove test_sys_select_LDADD.
25530
25531         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
25532         to an undefined symbol, for an error message.
25533         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
25534         (gl_SYS_SELECT_H_DEFAULTS): New macro.
25535         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
25536         winsock-select.c here.
25537         * modules/sys_select (Files): Remove lib/winsock-select.c.
25538         (Depends-on): Remove alloca.
25539         (Makefile.am): Substitute GNULIB_SELECT.
25540         * modules/select: New file.
25541         * doc/posix-functions/select.texi: Update.
25542
25543 2008-10-05  Bruno Haible  <bruno@clisp.org>
25544
25545         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
25546         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
25547         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
25548         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
25549         getdtablesize.
25550         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
25551         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
25552
25553 2008-10-05  Bruno Haible  <bruno@clisp.org>
25554
25555         * modules/getdtablesize-tests: New file.
25556         * tests/test-getdtablesize.c: New file.
25557
25558         New module 'getdtablesize'.
25559         * lib/unistd.in.h (getdtablesize): New declaration.
25560         * lib/getdtablesize.c: New file.
25561         * m4/getdtablesize.m4: New file.
25562         * modules/getdtablesize: New file.
25563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25564         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
25565         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
25566         HAVE_GETDTABLESIZE.
25567         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
25568
25569 2008-10-05  Bruno Haible  <bruno@clisp.org>
25570
25571         * modules/sched (Makefile.am): Fix typo.
25572         Reported by Simon Josefsson.
25573
25574 2008-10-05  Jim Meyering  <meyering@redhat.com>
25575
25576         bootstrap: check for LT_INIT, too
25577         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
25578         are deprecated.  Suggestion from Ralf Wildenhues.
25579
25580 2008-10-05  Bruno Haible  <bruno@clisp.org>
25581
25582         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
25583         overriding them by ours.
25584         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
25585
25586 2008-10-05  Jim Meyering  <meyering@redhat.com>
25587
25588         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
25589         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
25590         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
25591
25592 2008-10-04  Bruno Haible  <bruno@clisp.org>
25593
25594         * modules/dup2 (License): Change to LGPLv2+.
25595         * modules/sleep (License): Likewise.
25596         * modules/perror (License): Likewise.
25597         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
25598         Blake.
25599         * modules/signal (License): Likewise.
25600         * modules/sigprocmask (License): Likewise.
25601         * modules/raise (License): Change to LGPLv2+, with approval by Jim
25602         Meyering.
25603
25604 2008-10-04  Bruno Haible  <bruno@clisp.org>
25605
25606         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
25607         Reported by Rainer Tammer <tammer@tammer.net>.
25608
25609 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
25610             Bruno Haible  <bruno@clisp.org>
25611
25612         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
25613         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
25614         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
25615
25616 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
25617
25618         filevercmp: new module
25619         * lib/filevercmp.h: New function filevercmp comparing version strings.
25620         * lib/filevercmp.c: Implementation of filevercmp function.
25621         * modules/filevercmp: Module metadata.
25622         * tests/test-filevercmp.c: Unit test for new module.
25623         * modules/filevercmp-tests: Unit test metadata.
25624         * MODULES.html.sh: Add filevercmp module.
25625
25626 2008-10-03  Bruno Haible  <bruno@clisp.org>
25627
25628         * lib/c-ctype.h: Add comment.
25629         Reported by Jim Meyering.
25630
25631 2008-10-02  Bruno Haible  <bruno@clisp.org>
25632
25633         * modules/posix_spawn-internal (Depends-on): Add 'open'.
25634
25635 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25636
25637         * build-aux/bootstrap: Allow renaming bootstrap, and change the
25638         name of bootstrap.conf accordingly.
25639
25640 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25641
25642         * build-aux/bootstrap: Install git-merge-changelog configuration
25643         items into .gitconfig if needed.
25644
25645 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25646
25647         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
25648         git repository, and initialize/update it accordingly.
25649
25650 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
25651
25652         * modules/fsync-tests: New file.
25653         * tests/test-fsync.c: New file.
25654
25655         New module 'fsync'.
25656         * lib/fsync.c: New file.
25657         * m4/fsync.m4: New file.
25658         * modules/fsync: New file.
25659         * lib/unistd.in.h (fsync): New declaration.
25660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
25661         GNULIB_FSYNC and HAVE_FSYNC.
25662         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
25663         * MODULES.html.sh (posix_functions): Add fsync.
25664         * doc/posix-functions/fsync.texi: Mention the new module.
25665
25666 2008-10-02  Jim Meyering  <meyering@redhat.com>
25667
25668         fts.c: sync with similar code from coreutils' remove.c
25669         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
25670         Guard also with "#if defined __linux__", since for now at least,
25671         this code is Linux-kernel-specific.
25672
25673 2008-10-02  Jim Meyering  <meyering@redhat.com>
25674
25675         fts: bug fixes
25676         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
25677         Include <sys/vfs.h>, not <sys/statfs.h>.
25678
25679         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
25680         Include <sys/vfs.h>, not <sys/statfs.h>.
25681
25682 2008-10-01  Bruno Haible  <bruno@clisp.org>
25683
25684         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
25685         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
25686         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
25687         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
25688         * doc/posix-functions/posix_spawnp.texi: Likewise.
25689         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
25690         whether posix_spawn actually works.
25691         * m4/pipe.m4 (gl_PIPE): Likewise.
25692         * modules/execute (Files): Add m4/posix_spawn.m4.
25693         * modules/pipe (Files): Add m4/posix_spawn.m4.
25694         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
25695
25696 2008-10-01  Jim Meyering  <meyering@redhat.com>
25697
25698         remove trailing spaces
25699         * NEWS: Likewise.
25700         * lib/poll.c (poll): Likewise.
25701         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
25702         * lib/winsock.c (rpl_close): Likewise.
25703         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
25704         * modules/yield: Likewise.
25705         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
25706         * tests/test-sys_select.c (connect_to_socket): Likewise.
25707
25708         fts.c: adjust a new interface to be more generally useful
25709         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
25710         (fts_build): Adjust caller.
25711
25712 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25713
25714         * modules/cond-tests: New file.
25715         * tests/test-cond.c: New file.
25716
25717 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25718             Bruno Haible  <bruno@clisp.org>
25719
25720         * modules/cond (Dependencies): Add errno, time.
25721         * lib/glthread/cond.h: Include <time.h>.
25722         (gl_cond_define, gl_cond_define_initialized): Use the same definition
25723         across platforms.
25724
25725 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25726             Bruno Haible  <bruno@clisp.org>
25727
25728         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
25729
25730 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25731             Bruno Haible  <bruno@clisp.org>
25732
25733         * modules/tls-tests (Depends-on): Add thread, yield.
25734         (configure.ac): Remove all checks.
25735         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
25736         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25737         gl_thread_self): Remove definitions. Include glthread/thread.h and
25738         glthread/yield.h instead.
25739         (test_tls): Pass an additional NULL argument to gl_thread_join.
25740
25741 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25742             Bruno Haible  <bruno@clisp.org>
25743
25744         * modules/lock-tests (Depends-on): Add thread, yield.
25745         (configure.ac): Remove all checks.
25746         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
25747         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25748         gl_thread_self): Remove definitions. Include glthread/thread.h and
25749         glthread/yield.h instead.
25750         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
25751         additional NULL argument to gl_thread_join.
25752
25753 2008-09-30  Bruno Haible  <bruno@clisp.org>
25754
25755         Fix the Win32 implementation of the 'thread' module.
25756         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
25757         pointer type.
25758         (gl_thread_self): Invoke gl_thread_self_func.
25759         (gl_thread_self_func): New declaration.
25760         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
25761         (do_init_self_key, init_self_key): New functions.
25762         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
25763         Remove some fields.
25764         (running_threads, running_lock): Remove variables.
25765         (get_current_thread_handle): New function.
25766         (gl_thread_self_func, wrapper_func, glthread_create_func,
25767         glthread_join_func, gl_thread_exit_func): Largely rewritten and
25768         simplified.
25769
25770 2008-09-30  Bruno Haible  <bruno@clisp.org>
25771
25772         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
25773         files.
25774
25775 2008-09-30  Jim Meyering  <meyering@redhat.com>
25776
25777         fts.m4: correct the test for statfs.f_type
25778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
25779         when checking for statfs.f_type.
25780
25781 2008-09-15  Simon Josefsson  <simon@josefsson.org>
25782
25783         tests: avoid some compiler warnings
25784         * tests/test-memchr.c (main): Pass NULL indirectly.
25785         * tests/test-getdate.c (main): Remove unused variable 'ret'.
25786
25787 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
25788
25789         getdate.y: disallow countable dayshifts like "4 yesterday ago"
25790         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
25791         exactly specified dayshifts.
25792         (dayshift): New rule.
25793         (rel): Add dayshift.
25794         (relative_time_table) [tomorrow, yesterday, today, now]:
25795         Use tDAY_SHIFT in place of tDAY_UNIT.
25796         * tests/test-getdate.c: Add tests for now-disallowed countable
25797         dayshifts, e.g., "4 yesterday ago".
25798
25799 2008-09-29  Bruno Haible  <bruno@clisp.org>
25800
25801         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
25802         * tests/test-posix_spawn1.in.sh: Renamed from
25803         tests/test-posix_spawn.in.sh.
25804         * tests/test-posix_spawn2.c: New file.
25805         * tests/test-posix_spawn2.in.sh: New file.
25806         * modules/posix_spawnp-tests (Files): Update.
25807         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
25808
25809 2008-09-29  Bruno Haible  <bruno@clisp.org>
25810
25811         Propagate effects of putenv/setenv/unsetenv to child processes.
25812         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
25813         * lib/pipe.c (create_pipe): Likewise.
25814
25815 2008-09-29  Bruno Haible  <bruno@clisp.org>
25816
25817         Enable use of shell scripts as executables in mingw.
25818         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
25819         run the program as a shell script.
25820         * lib/pipe.c (create_pipe): Likewise.
25821         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
25822         resulting array.
25823
25824 2008-09-29  Eric Blake  <ebb9@byu.net>
25825
25826         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
25827
25828 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
25829
25830         * doc/posix-functions/accept.texi: Update mingw problems.
25831         * doc/posix-functions/bind.texi: Update mingw problems.
25832         * doc/posix-functions/close.texi: Update mingw problems.
25833         * doc/posix-functions/connect.texi: Update mingw problems.
25834         * doc/posix-functions/getpeername.texi: Update mingw problems.
25835         * doc/posix-functions/getsockname.texi: Update mingw problems.
25836         * doc/posix-functions/getsockopt.texi: Update mingw problems.
25837         * doc/posix-functions/ioctl.texi: Update mingw problems.
25838         * doc/posix-functions/listen.texi: Update mingw problems.
25839         * doc/posix-functions/recv.texi: Update mingw problems.
25840         * doc/posix-functions/recvfrom.texi: Update mingw problems.
25841         * doc/posix-functions/select.texi: Update mingw problems.
25842         * doc/posix-functions/send.texi: Update mingw problems.
25843         * doc/posix-functions/sendto.texi: Update mingw problems.
25844         * doc/posix-functions/setsockopt.texi: Update mingw problems.
25845         * doc/posix-functions/socket.texi: Update mingw problems.
25846
25847 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
25848             Bruno Haible  <bruno@clisp.org>
25849
25850         * lib/sys_select.in.h: Include sys/time.h.
25851         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
25852         * modules/sys_select: Depend on sys_time.
25853         * tests/test-sys_select.c: Test that sys/select.h defines struct
25854         timeval fully.
25855
25856 2008-09-29  Bruno Haible  <bruno@clisp.org>
25857
25858         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
25859         * lib/sys_select.in.h: Likewise.
25860
25861 2008-09-29  Bruno Haible  <bruno@clisp.org>
25862
25863         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
25864
25865 2008-09-29  Bruno Haible  <bruno@clisp.org>
25866
25867         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
25868         Set LIBSOCKET instead of augmenting LIBS.
25869         * modules/sockets (Link): New section.
25870         * modules/sockets-tests (test_sockets_LDADD): New variable.
25871         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
25872         * modules/poll-tests (test_poll_LDADD): New variable.
25873         * NEWS: Document the change.
25874
25875 2008-09-29  Bruno Haible  <bruno@clisp.org>
25876
25877         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
25878         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
25879         ARPA_INET_H directly.
25880         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25881
25882 2008-09-28  Bruno Haible  <bruno@clisp.org>
25883
25884         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
25885         from gl_HEADER_SYS_SOCKET.
25886         (gl_HEADER_SYS_SOCKET): Invoke it.
25887         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25888
25889 2008-09-28  Bruno Haible  <bruno@clisp.org>
25890
25891         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
25892         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
25893         Needed on OSF/1 4.0.
25894
25895 2008-09-28  Bruno Haible  <bruno@clisp.org>
25896
25897         Override open more carefully.
25898         * lib/open.c (orig_open): New function.
25899         (rpl_open): Use orig_open instead of open.
25900         * lib/fcntl.in.h: Add special invocation convention.
25901         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
25902         (gl_FUNC_OPEN): Invoke it.
25903
25904         Override freopen more carefully.
25905         * lib/freopen.c (orig_freopen): New function.
25906         (rpl_freopen): Use orig_freopen instead of freopen.
25907         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
25908         (gl_FUNC_FREOPEN): Invoke it.
25909
25910         Override fopen more carefully.
25911         * lib/fopen.c (orig_fopen): New function.
25912         (rpl_fopen): Use orig_fopen instead of fopen.
25913         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
25914         (gl_FUNC_FOPEN): Invoke it.
25915         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
25916
25917 2008-09-28  Bruno Haible  <bruno@clisp.org>
25918
25919         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
25920         SIGPIPE.
25921
25922 2008-09-28  Bruno Haible  <bruno@clisp.org>
25923
25924         * tests/test-sigaction.c (handler, main): Disable the check whether
25925         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
25926         glibc systems with LinuxThreads.
25927
25928 2008-09-28  Bruno Haible  <bruno@clisp.org>
25929
25930         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
25931
25932         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
25933         with AIX xlc.
25934         * lib/fcntl.in.h (open): Likewise.
25935         Reported by Rainer Tammer <tammer@tammer.net>.
25936
25937 2008-09-28  Bruno Haible  <bruno@clisp.org>
25938
25939         * modules/posix_spawnp-tests: New file.
25940         * tests/test-posix_spawn.c: New file.
25941         * tests/test-posix_spawn.in.sh: New file.
25942
25943         New module 'posix_spawnp'.
25944         * modules/posix_spawnp: New file.
25945         * lib/spawnp.c: New file, from GNU libc with modifications.
25946         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
25947
25948         New module 'posix_spawn'.
25949         * modules/posix_spawn: New file.
25950         * lib/spawn.c: New file, from GNU libc with modifications.
25951         * doc/posix-functions/posix_spawn.texi: Mention the new module.
25952
25953         New module 'posix_spawnattr_destroy'.
25954         * modules/posix_spawnattr_destroy: New file.
25955         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
25956         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
25957         module.
25958
25959         New module 'posix_spawnattr_setsigmask'.
25960         * modules/posix_spawnattr_setsigmask: New file.
25961         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
25962         modifications.
25963         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
25964         new module.
25965
25966         New module 'posix_spawnattr_getsigmask'.
25967         * modules/posix_spawnattr_getsigmask: New file.
25968         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25969         modifications.
25970         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25971         new module.
25972
25973         New module 'posix_spawnattr_setsigdefault'.
25974         * modules/posix_spawnattr_setsigdefault: New file.
25975         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25976         modifications.
25977         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25978         new module.
25979
25980         New module 'posix_spawnattr_getsigdefault'.
25981         * modules/posix_spawnattr_getsigdefault: New file.
25982         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25983         modifications.
25984         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25985         new module.
25986
25987         New module 'posix_spawnattr_setschedpolicy'.
25988         * modules/posix_spawnattr_setschedpolicy: New file.
25989         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25990         modifications.
25991         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25992         new module.
25993
25994         New module 'posix_spawnattr_getschedpolicy'.
25995         * modules/posix_spawnattr_getschedpolicy: New file.
25996         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25997         modifications.
25998         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25999         new module.
26000
26001         New module 'posix_spawnattr_setschedparam'.
26002         * modules/posix_spawnattr_setschedparam: New file.
26003         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26004         modifications.
26005         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26006         new module.
26007
26008         New module 'posix_spawnattr_getschedparam'.
26009         * modules/posix_spawnattr_getschedparam: New file.
26010         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26011         modifications.
26012         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26013         new module.
26014
26015         New module 'posix_spawnattr_setpgroup'.
26016         * modules/posix_spawnattr_setpgroup: New file.
26017         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26018         modifications.
26019         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26020         module.
26021
26022         New module 'posix_spawnattr_getpgroup'.
26023         * modules/posix_spawnattr_getpgroup: New file.
26024         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26025         modifications.
26026         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26027         module.
26028
26029         New module 'posix_spawnattr_setflags'.
26030         * modules/posix_spawnattr_setflags: New file.
26031         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26032         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26033         module.
26034
26035         New module 'posix_spawnattr_getflags'.
26036         * modules/posix_spawnattr_getflags: New file.
26037         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26038         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26039         module.
26040
26041         New module 'posix_spawnattr_init'.
26042         * modules/posix_spawnattr_init: New file.
26043         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26044         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26045         module.
26046
26047         New module 'posix_spawn_file_actions_destroy'.
26048         * modules/posix_spawn_file_actions_destroy: New file.
26049         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26050         modifications.
26051         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26052         the new module.
26053
26054         New module 'posix_spawn_file_actions_addopen'.
26055         * modules/posix_spawn_file_actions_addopen: New file.
26056         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26057         modifications.
26058         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26059         the new module.
26060
26061         New module 'posix_spawn_file_actions_adddup2'.
26062         * modules/posix_spawn_file_actions_adddup2: New file.
26063         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26064         modifications.
26065         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26066         the new module.
26067
26068         New module 'posix_spawn_file_actions_addclose'.
26069         * modules/posix_spawn_file_actions_addclose: New file.
26070         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26071         modifications.
26072         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26073         the new module.
26074
26075         New module 'posix_spawn_file_actions_init'.
26076         * modules/posix_spawn_file_actions_init: New file.
26077         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26078         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26079         new module.
26080
26081         New module 'posix_spawn-internal'.
26082         * modules/posix_spawn-internal: New file.
26083         * lib/spawn_int.h: New file, from GNU libc with modifications.
26084         * lib/spawni.c: New file, from GNU libc with modifications.
26085         * m4/posix_spawn.m4: New file.
26086
26087         New module 'spawn'.
26088         * modules/spawn: New file.
26089         * lib/spawn.in.h: New file, from GNU libc with modifications.
26090         * m4/spawn_h.m4: New file.
26091         * doc/posix-headers/spawn.texi: Mention the new module.
26092
26093 2008-09-28  Bruno Haible  <bruno@clisp.org>
26094
26095         * modules/sched-tests: New file.
26096         * tests/test-sched.c: New file.
26097
26098         New module 'sched'.
26099         * modules/sched: New file.
26100         * lib/sched.in.h: New file.
26101         * m4/sched_h.m4: New file.
26102         * doc/posix-headers/sched.texi: Mention the new module.
26103
26104 2008-09-27  Eric Blake  <ebb9@byu.net>
26105
26106         Fix previous patch, and tweak references to $0.
26107         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26108         (func_version, func_gnulib_dir): Don't call this program
26109         gnulib-tool.
26110         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26111         with using $0 in function.
26112         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26113         (func_fatal_error): Reuse the name the user invoked us with.
26114
26115 2008-09-27  Bruno Haible  <bruno@clisp.org>
26116
26117         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26118         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26119         (gl_ICONV_H): Not here.
26120         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26121         instead of assigning ICONV_H directly.
26122
26123         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26125         WCHAR_H directly.
26126
26127 2008-09-27  Bruno Haible  <bruno@clisp.org>
26128
26129         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26130         * modules/arpa_inet (Depends-on): Add link-warning.
26131         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26132         * modules/unistd (Makefile.am): Likewise.
26133
26134 2008-09-26  Bruno Haible  <bruno@clisp.org>
26135
26136         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26137         variables.
26138         (func_version): Essentially copied from gnulib-tool.
26139         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26140         func_readlink): Copied from gnulib-tool.
26141
26142 2008-09-26  Bruno Haible  <bruno@clisp.org>
26143
26144         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26145         invoking git-version-gen.
26146
26147 2008-09-26  Bruno Haible  <bruno@clisp.org>
26148
26149         * posix-modules: Update to directory names changed on 2008-01-19.
26150         Remove commas in output before splitting into words. No more need to
26151         avoid 'ftruncate' since 2007-02-19.
26152
26153 2008-09-26  Bruno Haible  <bruno@clisp.org>
26154
26155         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26156
26157 2008-09-26  Bruno Haible  <bruno@clisp.org>
26158
26159         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26160         * modules/fwriteerror (Depends-on): Add errno.
26161
26162 2008-09-26  Bruno Haible  <bruno@clisp.org>
26163
26164         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26165         * tests/test-vc-list-files-cvs.sh: Likewise.
26166
26167 2008-09-26  Bruno Haible  <bruno@clisp.org>
26168
26169         * doc/posix-headers/sys_resource.texi: Reorder items.
26170
26171 2008-09-26  Jim Meyering  <meyering@redhat.com>
26172
26173         fts: tweak inode comparison function
26174         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26175         inode numbers, as documented.
26176
26177         fts: sort dirent entries on inode number before traversing
26178         This avoids a quadratic, seek-related performance penalty when
26179         operating on a directory containing many entries (measurable at 10k;
26180         3.5 hours at 2 million entries with a cold cache) on certain types
26181         of file systems, including ext3 and ext4, but not tmpfs.
26182         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26183         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26184         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26185         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26186         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26187         (fts_build): Set the stat.st_ino member from D_INO.
26188         If it is likely to be useful, sort dirent entries on inode number.
26189
26190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26191         and the struct statfs.f_type member.
26192         * modules/fts (Depends-on): Add d-ino.
26193
26194 2008-09-26  Bruno Haible  <bruno@clisp.org>
26195
26196         * modules/sigpipe-die (Depends-on): Add sigpipe.
26197
26198         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26199         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26200         and GNULIB_STDIO_H_SIGPIPE are set.
26201         * lib/stdio-write.c: New file.
26202         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26203         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26204         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26205         REPLACE_STDIO_WRITE_FUNCS.
26206         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26207         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26208         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26209         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26210         * modules/stdio (Files): Add lib/stdio-write.c.
26211         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26212         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26213         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26214         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26215         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26216         REPLACE_FPRINTF_POSIX.
26217         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26218         REPLACE_PRINTF_POSIX.
26219         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26220         REPLACE_VFPRINTF_POSIX.
26221         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26222         REPLACE_VPRINTF_POSIX.
26223         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26224         SIGPIPE issue.
26225         * doc/posix-functions/fputc.texi: Likewise.
26226         * doc/posix-functions/fputs.texi: Likewise.
26227         * doc/posix-functions/fwrite.texi: Likewise.
26228         * doc/posix-functions/printf.texi: Likewise.
26229         * doc/posix-functions/putc.texi: Likewise.
26230         * doc/posix-functions/putchar.texi: Likewise.
26231         * doc/posix-functions/puts.texi: Likewise.
26232         * doc/posix-functions/vfprintf.texi: Likewise.
26233         * doc/posix-functions/vprintf.texi: Likewise.
26234
26235         * modules/safe-write (Depends-on): Add write.
26236
26237         * modules/sigpipe-tests: New file.
26238         * tests/test-sigpipe.c: New file.
26239         * tests/test-sigpipe.sh: New file.
26240
26241         * modules/write: New file.
26242         * lib/unistd.in.h: Include <sys/types.h>.
26243         (write): New declaration.
26244         * lib/write.c: New file.
26245         * m4/write.m4: New file.
26246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26247         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26248         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26249         GNULIB_WRITE, REPLACE_WRITE.
26250         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26251         and the SIGPIPE issue.
26252
26253         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26254         (raise): New declaration.
26255         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26256         (ext_signal): New function.
26257         (rpl_raise): New function.
26258         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26259         GNULIB_SIGNAL_H_SIGPIPE.
26260         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26261         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26262
26263         * modules/sigpipe: New file.
26264         * m4/sigpipe.m4: New file.
26265
26266 2008-09-25  Derek Price  <derek@ximbiot.com>
26267             Bruno Haible  <bruno@clisp.org>
26268
26269         * gnulib-tool (func_import): Report all license incompatibilities, not
26270         just the first one.
26271
26272 2008-09-25  Bruno Haible  <bruno@clisp.org>
26273
26274         * gnulib-tool (func_import): When computing the edits, consider not
26275         only the Makefile.ams that exist but also those that will be generated.
26276
26277 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26278
26279         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26280         fixes gnulib-tool --test warning about duplicate dependency.
26281
26282 2008-09-25  Bruno Haible  <bruno@clisp.org>
26283
26284         * gnulib-tool: Don't ask the user to perform edits in the generated
26285         Makefile.ams.
26286         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26287         apply to the Makefile.am being generated.
26288         (func_emit_tests_Makefile_am): Execute edits that apply to the
26289         Makefile.am being generated.
26290         (func_import): Setup list of Makefile.am edits before emitting the
26291         Makefile.ams, not at the end.
26292         (func_create_testdir): Update.
26293         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26294
26295 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26296
26297         * gnulib-tool (func_import): Store the --tests-base option in the
26298         comment in gnulib-cache.m4.
26299
26300 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26301
26302         * NEWS: Document increased portability that sys_select now provides.
26303
26304         * lib/sys_select.in.h: Install select wrapper.
26305         * lib/sys_socket.in.h: Use more descriptive name when there is no
26306         select wrapper.
26307         * lib/winsock-select.c: New.
26308         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26309         Require gl_HEADER_SYS_SOCKET.
26310         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26311         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26312         * tests/test-sys_select.c: Add functional tests.
26313
26314 2008-09-24  Eric Blake  <ebb9@byu.net>
26315
26316         open, fopen: close fd leak in last patch
26317         * lib/open.c (rpl_open): Close fd before returning error.
26318         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26319         * doc/posix-functions/open.texi (open): Document that Irix also
26320         has the bug.
26321         * doc/posix-functions/fopen.texi (fopen): Likewise.
26322         Reported by Paolo Bonzini.
26323
26324 2008-09-24  Bruno Haible  <bruno@clisp.org>
26325
26326         Ensure that a filename ending in a slash cannot be used to access a
26327         non-directory.
26328         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26329         to check whether it's really a directory.
26330         * lib/fopen.c: Include fcntl.h, unistd.h.
26331         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26332         and fdopen().
26333         * modules/fopen (Depends-on): Add unistd.
26334         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26335         * tests/test-fopen.c (main): Likewise.
26336         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26337         * doc/posix-functions/fopen.texi: Likewise.
26338         Reported by Eric Blake.
26339
26340 2008-09-23  Eric Blake  <ebb9@byu.net>
26341
26342         c-stack: avoid compiler optimizations when provoking overflow
26343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26344         recursion harder to optimize, to ensure a stack overflow occurs.
26345         * tests/test-c-stack.c (recurse): Likewise.
26346         Borrowed from libsigsegv.
26347
26348         c-stack: work around Irix sigaltstack bug
26349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26350         whether sigaltstack uses wrong end of stack_t (copied in part from
26351         libsigsegv).
26352         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26353         Irix bug, without requiring an over-allocation.
26354         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26355         bug.
26356
26357         fopen: document mingw bug on directories
26358         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26359         not allowing a stream visiting a directory, even though reading
26360         from such a stream is not portable.
26361
26362 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26363
26364         * lib/poll.c: Rewrite.
26365         * modules/poll: Depend on alloca.
26366
26367 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26368
26369         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26370         instead define prototypes for a full set of wrappers.  Ensure
26371         that Cygwin does not use the compatibility code, which is only
26372         for MinGW.
26373         * lib/winsock.c: New.
26374         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26375         * modules/sys_socket: Add lib/winsock.c.
26376
26377         * modules/poll-tests: Add errno and perror.
26378         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26379
26380 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26381
26382         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26383
26384 2008-09-23  Bruno Haible  <bruno@clisp.org>
26385
26386         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26387         * doc/glibc-functions/*: Likewise.
26388
26389 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26390
26391         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26392         success.
26393
26394 2008-09-22  Eric Blake  <ebb9@byu.net>
26395             Bruno Haible  <bruno@clisp.org>
26396
26397         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26398         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26399         supply %A but mishandle pseudo-NaN.
26400         Reported by Simon Josefsson.
26401
26402 2008-09-21  Bruno Haible  <bruno@clisp.org>
26403
26404         * tests/test-lock.c (main): Tweak skip message.
26405         * tests/test-tls.c (main): Likewise.
26406
26407 2008-09-21  Bruno Haible  <bruno@clisp.org>
26408
26409         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
26410         whether 'struct sigaction' has sa_sigaction here...
26411         (gl_PREREQ_SIG_HANDLER_H): ... not here.
26412         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
26413
26414 2008-09-21  Bruno Haible  <bruno@clisp.org>
26415
26416         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
26417         section.
26418         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
26419         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
26420         the new section.
26421         (Support for obsolete systems lacking POSIX:2001): New section.
26422         (String handling <string.h>): Move strdup to the new section.
26423         Suggested by Simon Josefsson and Paolo Bonzini.
26424
26425 2008-09-21  Bruno Haible  <bruno@clisp.org>
26426
26427         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
26428         exponents in %e and %g results on 'long double'. Needed for mingw's
26429         improved *printf functions.
26430         * tests/test-vasprintf-posix.c (test_function): Likewise.
26431         * tests/test-snprintf-posix.h (test_function): Likewise.
26432         * tests/test-sprintf-posix.h (test_function): Likewise.
26433         Reported by Eric Blake.
26434
26435 2008-09-21  Bruno Haible  <bruno@clisp.org>
26436
26437         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
26438         * tests/test-sprintf-posix.h (test_function): Likewise.
26439
26440 2008-09-21  Bruno Haible  <bruno@clisp.org>
26441
26442         * modules/getpass (Depends-on): Add strdup-posix.
26443
26444         New module 'strdup-posix'.
26445         * modules/strdup-posix: New file.
26446         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
26447         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
26448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26449         REPLACE_STRDUP.
26450         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
26451         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
26452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26453         strdup-posix.
26454
26455         * modules/strdup (Depends-on): Remove malloc-posix.
26456
26457 2008-09-20  Bruno Haible  <bruno@clisp.org>
26458
26459         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
26460         Wildenhues.
26461
26462 2008-09-20  Bruno Haible  <bruno@clisp.org>
26463
26464         Ensure that wint_t gets defined on IRIX 5.3.
26465         * lib/wchar.in.h (wint_t): Define if not defined by the system.
26466         * lib/wctype.in.h (wint_t): Likewise.
26467         (__wctype_wint_t): Remove type.
26468         (isw*): Use wint_t instead of __wctype_wint_t.
26469         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
26470         * modules/wchar (Files): Add m4/wint_t.m4.
26471         (Makefile.am): Substitute HAVE_WINT_T.
26472         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
26473         * tests/test-wctype.c: Check that wint_t is defined.
26474         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
26475         * doc/posix-headers/wctype.texi: Likewise.
26476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26477
26478 2008-09-18  Bruno Haible  <bruno@clisp.org>
26479
26480         * gnulib-tool (func_exit): Update comment.
26481
26482 2008-09-18  Simon Josefsson  <simon@josefsson.org>
26483
26484         * modules/getaddrinfo (Depends-on): Remove strdup, this module
26485         assumes strdup exists and does not depend on strdup to return
26486         ENOMEM on out of memory conditions.
26487
26488 2008-09-18  Bruno Haible  <bruno@clisp.org>
26489
26490         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
26491         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
26492         digits for the exponent.
26493
26494 2008-09-18  Jim Meyering  <meyering@redhat.com>
26495             Bruno Haible  <bruno@clisp.org>
26496
26497         * lib/vasnprintf.c (decimal_point_char): Define also if
26498         NEED_PRINTF_INFINITE_LONG_DOUBLE.
26499
26500 2008-09-16  Bruno Haible  <bruno@clisp.org>
26501         and Eric Blake  <ebb9@byu.net>
26502
26503         vasnprintf: support Irix 5.3
26504         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
26505         that mishandle long double infinity.
26506         Reported by Tom G. Christensen.
26507
26508 2008-09-16  Bruno Haible  <bruno@clisp.org>
26509
26510         * doc/glibc-functions/scandir.texi: Mention the function is missing on
26511         Solaris 9.
26512         * doc/glibc-functions/alphasort.texi: Likewise.
26513         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
26514
26515 2008-09-16  Jim Meyering  <meyering@redhat.com>
26516
26517         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
26518         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
26519         a umask modification leak out of a subshell.  Otherwise, the
26520         opensolaris /bin/sh would be accepted and thus cause unwarranted
26521         failures in the coreutils test suite.
26522
26523 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
26524
26525         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
26526         to succeed.
26527
26528 2008-09-16  Jim Meyering  <meyering@redhat.com>
26529
26530         avoid spurious test failure when library is built without ACL support
26531         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
26532         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
26533         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
26534         * tests/test-copy-acl.sh: Likewise.
26535
26536 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26537
26538         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
26539         based on character occurrence counts.
26540
26541 2008-09-15  Eric Blake  <ebb9@byu.net>
26542
26543         tests: avoid some compiler warnings
26544         * tests/test-memchr.c (main): Pass NULL indirectly.
26545         * tests/test-closein.c (main): Avoid unused variable.
26546
26547 2008-09-15  Bruno Haible  <bruno@clisp.org>
26548
26549         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
26550         are missing on OpenBSD 4.0 individually.
26551         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26552
26553 2008-09-15  Bruno Haible  <bruno@clisp.org>
26554
26555         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
26556         * doc/posix-functions/strerror.texi: Mention also Cygwin.
26557         * doc/posix-functions/perror.texi: Likewise.
26558         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
26559         is missing.
26560         Reported by Eric Blake.
26561
26562         * lib/errno.in.h: Use replacement values >= 2000.
26563         Reported by Eric Blake.
26564
26565 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26566
26567         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
26568         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
26569         limit.
26570         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
26571         compareseq was aborted.
26572
26573 2008-09-14  Bruno Haible  <bruno@clisp.org>
26574
26575         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
26576         yvec_edit_count.
26577         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
26578         (fstrcmp_bounded): Simplify result computation accordingly.
26579
26580 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26581
26582         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
26583         (fstrcmp): Define in terms of fstrcmp_bounded.
26584         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
26585         lower_bound argument.
26586         Return quickly if the result is certainly < lower_bound.
26587         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
26588
26589 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26590
26591         * lib/diffseq.h (EARLY_ABORT): New macro.
26592         (compareseq): Change return type to bool. Return true when EARLY_ABORT
26593         evaluates to true.
26594
26595 2008-09-14  Bruno Haible  <bruno@clisp.org>
26596
26597         * modules/perror-tests: New file.
26598         * tests/test-perror.sh: New file.
26599         * tests/test-perror.c: New file.
26600
26601         New module 'perror'.
26602         * lib/stdio.in.h (perror): New declaration.
26603         * lib/perror.c: New file.
26604         * m4/perror.m4: New file.
26605         * modules/perror: New file.
26606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
26607         * doc/posix-functions/perror.texi: Mention the perror module.
26608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
26609         REPLACE_PERROR.
26610         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
26611         REPLACE_PERROR.
26612
26613 2008-09-14  Bruno Haible  <bruno@clisp.org>
26614
26615         * modules/stdio (Makefile.am): Reorder to match the order in
26616         lib/stdio.in.h.
26617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26618
26619 2008-09-13  Bruno Haible  <bruno@clisp.org>
26620
26621         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
26622
26623 2008-09-13  Bruno Haible  <bruno@clisp.org>
26624
26625         Extend strerror to cover the added errno values.
26626         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
26627         (rpl_strerror): Provide error messages for the added errno values and
26628         for the WSA* values.
26629         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
26630         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
26631         strerror.
26632         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
26633         * modules/strerror (Depends-on): Add errno.
26634         * doc/posix-functions/strerror.texi: Document the change.
26635         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
26636         and EOVERFLOW.
26637
26638 2008-09-13  Bruno Haible  <bruno@clisp.org>
26639
26640         * modules/EOVERFLOW: Remove file.
26641         * m4/eoverflow.m4: Remove file.
26642         * modules/EOVERFLOW-tests: Remove file.
26643         * tests/test-EOVERFLOW.c: Remove file.
26644         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
26645         * modules/ftell (Depends-on): Likewise.
26646         * modules/getdelim (Depends-on): Likewise.
26647         * modules/getugroups (Depends-on): Likewise.
26648         * modules/poll (Depends-on): Likewise.
26649         * modules/snprintf (Depends-on): Likewise.
26650         * modules/sprintf-posix (Depends-on): Likewise.
26651         * modules/vasnprintf (Depends-on): Likewise.
26652         * modules/vasprintf (Depends-on): Likewise.
26653         * modules/vfprintf-posix (Depends-on): Likewise.
26654         * modules/vsnprintf (Depends-on): Likewise.
26655         * modules/vsprintf-posix (Depends-on): Likewise.
26656         * modules/xvasprintf (Depends-on): Likewise.
26657         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26658         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
26659         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
26660         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
26661         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26662         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
26663         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
26664         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
26665         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26666         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
26667         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
26668         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
26669         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26670         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
26671         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
26672         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
26673         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26674         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
26675         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
26676         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
26677         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26678         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
26679         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
26680         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
26681         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
26682         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26683         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
26684         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
26685         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
26686         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
26687         * MODULES.html.sh: Remove EOVERFLOW.
26688         * NEWS: Mention the change.
26689
26690 2008-09-13  Bruno Haible  <bruno@clisp.org>
26691
26692         * modules/errno-tests: New file.
26693         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
26694
26695         * lib/errno.in.h: New file.
26696         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
26697         * modules/errno: New file.
26698         * doc/posix-headers/errno.texi: Update documentation.
26699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
26700
26701 2008-09-13  Bruno Haible  <bruno@clisp.org>
26702
26703         * tests/test-poll.c: Use #if for native Windows, rather than testing
26704         __MSVCRT__.
26705
26706 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26707             Bruno Haible  <bruno@clisp.org>
26708
26709         * lib/glob.c: Don't include <pwd.h> on native Windows.
26710         (WINDOWS32): New macro.
26711         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
26712
26713 2008-09-13  Bruno Haible  <bruno@clisp.org>
26714
26715         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
26716         (ETIMEDOUT): Remove macro.
26717         (glthread_cond_timedwait_multithreaded): New declaration.
26718         (glthread_cond_timedwait): Use it.
26719         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
26720         (glthread_cond_timedwait_multithreaded): New function.
26721
26722 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26723
26724         * modules/poll-tests: Do not check for io.h.
26725         * tests/test-poll.c: Check for __MSVCRT__ instead.
26726
26727 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26728
26729         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
26730         * modules/poll-tests: Add inet_pton, stdbool, sockets.
26731         * tests/test-poll.c: Use them.  Use _pipe on Windows.
26732
26733 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26734
26735         * modules/poll-tests: New.
26736         * tests/test-poll.c: New.
26737
26738 2008-09-12  Eric Blake  <ebb9@byu.net>
26739
26740         frexp: test for NetBSD failure on -0.0
26741         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
26742         not all, bugs from NetBSD 3.0 have been fixed.
26743         * doc/posix-functions/frexp.texi (frexp): Document bug.
26744         Reported by Thomas Klausner.
26745
26746         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
26747         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
26748         literal -0.0.
26749         Reported by Jonathan C. Patschke <jp@centtech.com>.
26750
26751 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26752
26753         * lib/glthread/cond.h: Use dummy implementation also if
26754         USE_WIN32_THREADS.
26755
26756 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26757
26758         * modules/fnmatch-posix (License): Change to LGPLv2+.
26759         * modules/fnmatch-gnu (License): Likewise.
26760
26761 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26762
26763         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
26764
26765 2008-09-11  Jim Meyering  <meyering@redhat.com>
26766
26767         * users.txt: Add gtk-vnc.
26768
26769 2008-09-08  Simon Josefsson  <simon@josefsson.org>
26770
26771         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
26772         rotate amounts.
26773
26774         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
26775         required for 16-bit and 8-bit rotates.
26776         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
26777         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
26778         UINT8_MAX instead of hard-coded constants.
26779         Suggested by Paul Eggert.
26780
26781 2008-09-07  Bruno Haible  <bruno@clisp.org>
26782
26783         * tests/test-striconveh.c (main): Check behaviour when converting from
26784         UTF-7.
26785
26786         Make striconveh work better with stateful encodings.
26787         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
26788         that iconv does not increment the inptr when returning -1/EINVAL.
26789
26790 2008-09-07  Bruno Haible  <bruno@clisp.org>
26791
26792         * build-aux/config.rpath: Update according to libtool-2.2.6.
26793         * build-aux/config.libpath: Likewise.
26794
26795 2008-09-06  Bruno Haible  <bruno@clisp.org>
26796
26797         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
26798         * lib/freadptr.c (freadptr): Likewise.
26799         * lib/freadseek.c (freadptrinc): Likewise.
26800         Reported by Simon Josefsson.
26801
26802 2008-09-06  Bruno Haible  <bruno@clisp.org>
26803
26804         * modules/freadptr (License): Change to LGPLv2+.
26805         * modules/freadseek (License): Likewise.
26806         Suggested by Eric Blake.
26807
26808         * modules/memchr2 (License): Change to LGPLv2+.
26809         Approved by Eric Blake.
26810
26811 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26812             Bruno Haible  <bruno@clisp.org>
26813
26814         Make gnulib-tool work with native 'sed' on AIX.
26815         * gnulib-tool (sed_noop): New variable.
26816         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
26817         func_add_or_update, func_create_testdir): Use it to initialize sed
26818         script variables.
26819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26820
26821 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
26822             Bruno Haible  <bruno@clisp.org>
26823
26824         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
26825         also works after #include directives.
26826
26827 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
26828
26829         getdate.y: reject an out-of-range timezone value
26830         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
26831         the range [-24...+24].  When specified with only one or two digits,
26832         * tests/test-getdate.c: Tests for the fix.
26833         * doc/getdate.texi: Document this change.
26834
26835 2008-09-03  Bruno Haible  <bruno@clisp.org>
26836
26837         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
26838
26839 2008-09-02  Simon Josefsson  <simon@josefsson.org>
26840
26841         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
26842         <bruce.korb@gmail.com> with ideas from Ben Pfaff
26843         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
26844         Blake <ebb9@byu.net>.
26845
26846         * tests/test-bitrotate.c: Add more test vectors.
26847
26848 2008-09-02  Eric Blake  <ebb9@byu.net>
26849
26850         vasnprintf-posix: handle large precision via %.*d
26851         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
26852         when handling it ourselves.
26853         * tests/test-vasnprintf-posix.c (test_function): Add test.
26854         * tests/test-snprintf-posix.h (test_function): Likewise.
26855         * tests/test-sprintf-posix.h (test_function): Likewise.
26856         * tests/test-vasprintf-posix.c (test_function): Likewise.
26857         Reported by Alain Guibert.
26858
26859 2008-09-01  Eric Blake  <ebb9@byu.net>
26860
26861         c-stack: make configure-time check more robust
26862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
26863         successful sigaction call.
26864         Reported by Tom G. Christensen.
26865
26866 2008-09-01  Bruno Haible  <bruno@clisp.org>
26867
26868         New module 'findprog-lgpl'.
26869         * modules/findprog-lgpl: New file.
26870         * lib/findprog-lgpl.c: New file.
26871         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
26872         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
26873         to decide whether to use strdup or xstrdup, concatenated_filename or
26874         xconcatenated_filename.
26875
26876 2008-09-01  Bruno Haible  <bruno@clisp.org>
26877
26878         Split module 'concat-filename' into 'concat-filename' (LGPL) and
26879         'xconcat-filename' (GPL).
26880         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
26881         (License): Change to LGPLv2+.
26882         * modules/xconcat-filename: New file.
26883         * lib/concat-filename.h (concatenated_filename): Change specification.
26884         (xconcatenated_filename): New declaration.
26885         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
26886         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
26887         memory situations.
26888         * lib/xconcat-filename.c: New file.
26889         * NEWS: Mention the change.
26890         * lib/findprog.c: Include concat-filename.h, not filename.h.
26891         (find_in_path): Use xconcatenated_filename instead of
26892         concatenated_filename.
26893         * lib/javacomp.c: Include concat-filename.h, not filename.h.
26894         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26895         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26896         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26897         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
26898         instead of concatenated_filename.
26899         * lib/javaexec.c: Include concat-filename.h, not filename.h.
26900         (execute_java_class): Use xconcatenated_filename instead of
26901         concatenated_filename.
26902         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
26903         * modules/javacomp (Depends-on): Likewise.
26904         * modules/javaexec (Depends-on): Likewise.
26905
26906 2008-09-01  Bruno Haible  <bruno@clisp.org>
26907
26908         Split module 'filename' into 'filename' and 'concat-filename'.
26909         * modules/filename: Keep only lib/filename.h.
26910         (License): Change to LGPLv2+.
26911         * modules/concat-filename: New file, extracted from modules/filename.
26912         * lib/filename.h (concatenated_filename): Remove declaration.
26913         * lib/concat-filename.h: New file, extracted from lib/filename.h.
26914         * lib/concat-filename.c: Include concat-filename.h.
26915         * NEWS: Mention the change.
26916
26917 2008-09-01  Simon Josefsson  <simon@josefsson.org>
26918
26919         * lib/bitrotate.h (rotl8, rotr8): Add.
26920
26921         * modules/bitrotate (configure.ac): Need
26922         AC_REQUIRE([AC_C_INLINE]).
26923         (Description): Mention stdint.h.  Reported by Bruno Haible
26924         <bruno@clisp.org>.
26925
26926         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
26927         Paolo Bonzini <bonzini@gnu.org>.
26928
26929 2008-08-31  Bruno Haible  <bruno@clisp.org>
26930
26931         Assume Solaris specific bi-arch conventions on Solaris systems.
26932         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
26933         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
26934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
26935         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
26936         like acl_libdirstem.
26937         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
26938         acl_libdirstem.
26939         * NEWS: Mention the change.
26940         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
26941
26942 2008-08-31  Jim Meyering  <meyering@redhat.com>
26943
26944         * lib/strftime.h: Add comments describing the two added arguments.
26945
26946         remove duplicate #include directives
26947         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
26948         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
26949
26950 2008-08-31  Bruno Haible  <bruno@clisp.org>
26951
26952         New module 'sigpipe-die'.
26953         * modules/sigpipe-die: New file.
26954         * lib/sigpipe-die.h: New file.
26955         * lib/sigpipe-die.c: New file.
26956         * MODULES.html.sh (Signal handling): Add sigpipe-die.
26957
26958 2008-08-31  Bruno Haible  <bruno@clisp.org>
26959
26960         Don't override previously installed signal handlers.
26961         * lib/fatal-signal.c (saved_sigactions): New variable.
26962         (uninstall_handlers): Reset the signal to the saved handler, not
26963         to SIG_DFL (except when ignored).
26964         (install_handlers): Save the previous handlers.
26965
26966 2008-08-30  Bruno Haible  <bruno@clisp.org>
26967
26968         * gnulib-tool (func_reset_sigpipe): New function.
26969         (func_get_automake_snippet, func_modules_transitive_closure,
26970         func_import): Invoke it before a join command that reads from stdin,
26971         to avoid "echo: write error: Broken pipe" error messages on stderr.
26972         Reported by Sam Steingold <sds@gnu.org>.
26973
26974 2008-08-30  Bruno Haible  <bruno@clisp.org>
26975
26976         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26977         Code copied from m4/open.m4.
26978         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26979         access and the filename ends in a slash. Code copied from lib/open.c.
26980         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26981         * tests/test-fopen.c (main): Check against bug with trailing slash.
26982
26983 2008-08-29  Bruno Haible  <bruno@clisp.org>
26984
26985         Avoid some "gcc -pedantic" warnings.
26986         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26987         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26988         * lib/dirent.in.h: Likewise.
26989         * lib/fcntl.in.h: Likewise.
26990         * lib/float.in.h: Likewise.
26991         * lib/iconv.in.h: Likewise.
26992         * lib/inttypes.in.h: Likewise.
26993         * lib/locale.in.h: Likewise.
26994         * lib/math.in.h: Likewise.
26995         * lib/netinet_in.in.h: Likewise.
26996         * lib/search.in.h: Likewise.
26997         * lib/signal.in.h: Likewise.
26998         * lib/stdarg.in.h: Likewise.
26999         * lib/stdint.in.h: Likewise.
27000         * lib/stdio.in.h: Likewise.
27001         * lib/stdlib.in.h: Likewise.
27002         * lib/string.in.h: Likewise.
27003         * lib/strings.in.h: Likewise.
27004         * lib/sys_select.in.h: Likewise.
27005         * lib/sys_socket.in.h: Likewise.
27006         * lib/sys_stat.in.h: Likewise.
27007         * lib/sys_time.in.h: Likewise.
27008         * lib/sysexits.in.h: Likewise.
27009         * lib/time.in.h: Likewise.
27010         * lib/unistd.in.h: Likewise.
27011         * lib/wchar.in.h: Likewise.
27012         * lib/wctype.in.h: Likewise.
27013         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27014         * modules/fchdir (Makefile.am): Likewise.
27015         * modules/fcntl (Makefile.am): Likewise.
27016         * modules/float (Makefile.am): Likewise.
27017         * modules/iconv_open (Makefile.am): Likewise.
27018         * modules/inttypes (Makefile.am): Likewise.
27019         * modules/locale (Makefile.am): Likewise.
27020         * modules/math (Makefile.am): Likewise.
27021         * modules/netinet_in (Makefile.am): Likewise.
27022         * modules/search (Makefile.am): Likewise.
27023         * modules/signal (Makefile.am): Likewise.
27024         * modules/stdarg (Makefile.am): Likewise.
27025         * modules/stdint (Makefile.am): Likewise.
27026         * modules/stdio (Makefile.am): Likewise.
27027         * modules/stdlib (Makefile.am): Likewise.
27028         * modules/string (Makefile.am): Likewise.
27029         * modules/strings (Makefile.am): Likewise.
27030         * modules/sys_select (Makefile.am): Likewise.
27031         * modules/sys_socket (Makefile.am): Likewise.
27032         * modules/sys_stat (Makefile.am): Likewise.
27033         * modules/sys_time (Makefile.am): Likewise.
27034         * modules/sysexits (Makefile.am): Likewise.
27035         * modules/time (Makefile.am): Likewise.
27036         * modules/unistd (Makefile.am): Likewise.
27037         * modules/wchar (Makefile.am): Likewise.
27038         * modules/wctype (Makefile.am): Likewise.
27039         Reported by Reuben Thomas <rrt@sc3d.org>.
27040
27041 2008-08-29  Bruno Haible  <bruno@clisp.org>
27042
27043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27044         any more.
27045
27046 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27047
27048         * MODULES.html.sh (Misc): Add bitrotate.
27049
27050         * modules/bitrotate: New file.
27051
27052         * lib/bitrotate.h: New file.
27053
27054         * modules/bitrotate-tests: New file.
27055
27056         * tests/test-bitrotate.c: New file.
27057
27058         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27059         on the bitrotate module.
27060
27061         * lib/arctwo.c: Use new bitrotate module.
27062
27063 2008-08-29  Jim Meyering  <meyering@redhat.com>
27064
27065         bootstrap: merge changes from coreutils
27066         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27067         of copied files.  Remove a kludge, now that this is fixed.
27068         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27069         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27070         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27071
27072 2008-08-29  Bruno Haible  <bruno@clisp.org>
27073
27074         * MODULES.html.sh: Remove --cvs-urls option.
27075
27076 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27077
27078         maint.mk: adjust to file name change
27079         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27080
27081 2008-08-28  Jim Meyering  <meyering@redhat.com>
27082
27083         * modules/getndelim2 (License): Relicense to LGPLv2+.
27084         Approved by Richard Stallman for the version of 1995, and by
27085         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27086
27087 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27088
27089         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27090         dummy if one is not available.  Do not touch them if
27091         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27092         (getc_maybe_unlocked): New.
27093         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27094
27095 2008-08-26  Eric Blake  <ebb9@byu.net>
27096
27097         doc/INSTALL: resync from autoconf
27098         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27099         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27100         moving...
27101         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27102         * INSTALL: Regenerate.
27103         * INSTALL.ISO: New file.
27104         * INSTALL.UTF-8: Likewise.
27105
27106 2008-08-26  Jim Meyering  <meyering@redhat.com>
27107
27108         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27109         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27110         these definitions conditional, so that they may be overridden, too.
27111
27112 2008-08-26  Bruno Haible  <bruno@clisp.org>
27113
27114         Generate INSTALL file variants with prettier quotes.
27115         * doc/Makefile (INSTALL_PRELUDE): New macro.
27116         (INSTALL): Use it.
27117         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27118
27119 2008-08-26  Bruno Haible  <bruno@clisp.org>
27120
27121         Run makeinfo in an English locale.
27122         * doc/Makefile (MAKEINFO): New variable.
27123
27124 2008-08-26  Bruno Haible  <bruno@clisp.org>
27125
27126         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27127         Suggested by Eric Blake.
27128
27129 2008-08-25  Bruno Haible  <bruno@clisp.org>
27130
27131         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27132
27133 2008-08-25  Eric Blake  <ebb9@byu.net>
27134
27135         c-stack: test that stack overflow can be caught
27136         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27137         that platform allows handling stack overflow; at least OS/2 EMX
27138         has sigaltstack, but crashes before transferring control to
27139         handler on stack overflow.
27140         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27141         check for HAVE_STACK_OVERFLOW_HANDLING.
27142         Reported by Elbert Pol.
27143
27144 2008-08-25  Bruno Haible  <bruno@clisp.org>
27145
27146         * doc/posix-functions/strftime.texi: Fix description of strftime
27147         module.
27148
27149 2008-08-24  Bruno Haible  <bruno@clisp.org>
27150
27151         * tests/uniwidth/test-uc_width2.c: New file.
27152         * tests/uniwidth/test-uc_width2.sh: New file.
27153         * modules/uniwidth/width-tests (Files): Add the new files.
27154         (TESTS): Add uniwidth/test-uc_width2.sh.
27155         (TESTS_ENVIRONMENT): New variable.
27156         (check_PROGRAMS): Add test-uc_width2.
27157         (test_uc_width2_SOURCES): New variable.
27158
27159         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27160         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27161         not 0x00AB.
27162         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27163
27164 2008-08-22  Eric Blake  <ebb9@byu.net>
27165
27166         test-lock, test-tls: mention why a test is skipped
27167         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27168         skipped.
27169         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27170
27171         count-one-bits: relax license
27172         * modules/count-one-bits (License): Relicense to LGPLv2+.
27173         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27174
27175 2008-08-22  Andreas Schwab  <schwab@suse.de>
27176
27177         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27178         Remove spurious space in assignment.
27179
27180 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27181
27182         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27183         Paul Eggert <eggert@CS.UCLA.EDU>.
27184
27185 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27186
27187         * modules/gettext: Add m4/threadlib.m4.
27188
27189 2008-08-19  Eric Blake  <ebb9@byu.net>
27190
27191         test-c-stack: fix compilation failure on FreeBSD 5.0
27192         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27193         headers before <sys/resource.h>.
27194         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27195         the bug.
27196         Reported by Nelson H. F. Beebe.
27197
27198         strverscmp: migrate from "strverscmp.h" to <string.h>
27199         * modules/string (Makefile.am): Add new hooks.
27200         * modules/strverscmp (Files): Remove strverscmp.h.
27201         (Depends-on): Add string.
27202         (configure.ac): Add indicator.
27203         (Include): Mention new header.
27204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27205         defaults.
27206         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27207         results.
27208         * lib/strverscmp.h: Delete.
27209         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27210         * tests/test-strverscmp.c (includes): Adjust client.
27211         * lib/check-version.c (includes): Likewise.
27212         * NEWS: Document the change.
27213
27214         strverscmp: add unit test
27215         * modules/strverscmp-tests: New file.
27216         * tests/test-strverscmp.c: Likewise.
27217
27218 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27219
27220         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27221         regarding Windows crypto stuff, from Mono.
27222
27223 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27224
27225         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27226         if present, for intel RND.  Return error on failures.
27227
27228 2008-08-18  Ben Pfaff  <blp@gnu.org>
27229
27230         gitlog-to-changelog: give better diagnostic for failed pipe-open
27231         * build-aux/gitlog-to-changelog: Improve error message: suggest
27232         that the version of Git may be too old.
27233
27234 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27235
27236         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27237         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27238
27239 2008-08-18  Bruno Haible  <bruno@clisp.org>
27240
27241         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27242         pthread_in_use().
27243
27244 2008-08-18  Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/glthread/threadlib.c: Include <pthread.h>.
27247
27248 2008-08-18  Bruno Haible  <bruno@clisp.org>
27249
27250         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27251         glthread_recursive_lock_* macros.
27252         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27253         Fix syntax error.
27254
27255 2008-08-18  Bruno Haible  <bruno@clisp.org>
27256
27257         * lib/glthread/thread.c: Avoid forcing a context switch right after
27258         thread creation.
27259
27260 2008-08-17  Bruno Haible  <bruno@clisp.org>
27261
27262         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27263         * lib/glthread/thread.h: Provide Win32 specific implementation.
27264         * modules/thread (Files): Add lib/glthread/thread.c.
27265         (Depends-on): Add lock.
27266         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27267
27268 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27269
27270         New module 'yield'.
27271         * modules/yield: New file.
27272         * lib/glthread/yield.h: New file.
27273         * m4/yield.m4: New file.
27274         * MODULES.html.sh (Multithreading): Add yield.
27275
27276 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27277
27278         New module 'thread'.
27279         * modules/thread: New file.
27280         * lib/glthread/thread.h: New file.
27281         * m4/thread.m4: New file.
27282         * MODULES.html.sh (Multithreading): Add thread.
27283
27284 2008-08-17  Bruno Haible  <bruno@clisp.org>
27285
27286         * lib/glthread/lock.h: Include <stdlib.h> always.
27287         * lib/glthread/tls.h: Likewise.
27288         * lib/glthread/cond.h: Likewise.
27289
27290 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27291
27292         New module 'cond'.
27293         * modules/cond: New file.
27294         * lib/glthread/cond.h: New file.
27295         * lib/glthread/cond.c: New file.
27296         * m4/cond.m4: New file.
27297         * MODULES.html.sh (Multithreading): Add cond.
27298
27299 2008-08-16  Eric Blake  <ebb9@byu.net>
27300
27301         c-stack: fix regression on Irix 5.3 from 2008-06-21
27302         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27303         sa_sigaction...
27304         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27305         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27306         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27307         * modules/signal (Makefile.am): Use the value.
27308         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27309         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27310         * doc/posix-headers/signal.texi (signal.h): Document this
27311         portability issue.
27312         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27313         Reported by Tom G. Christensen.
27314
27315 2008-08-17  Bruno Haible  <bruno@clisp.org>
27316
27317         New module 'threadlib'.
27318         * modules/threadlib: New file.
27319         * lib/glthread/threadlib.c: New file, extracted from
27320         lib/glthread/lock.c.
27321         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27322         functions.
27323         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27324         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27325         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27326         macros.
27327         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27328         (gl_DISABLE_THREADS): Remove macro.
27329         * modules/lock (Files): Remove build-aux/config.rpath.
27330         (Depends-on): Remove havelib. Add threadlib.
27331         (configure.ac-early): Remove section.
27332         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27333         * modules/tls (Depends-on): Remove lock. Add threadlib.
27334         (Link): New section, copied from threadlib.
27335         * MODULES.html.sh (Multithreading): Add threadlib.
27336
27337 2008-08-14  Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27340         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27341         glthread_rwlock_unlock, glthread_rwlock_destroy,
27342         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27343         glthread_recursive_lock_destroy): Define as macros always.
27344         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27345         glthread_lock_lock.
27346         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27347         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27348         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27349         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27350         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27351         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27352         (glthread_recursive_lock_lock_func): Renamed from
27353         glthread_recursive_lock_lock.
27354         (glthread_recursive_lock_unlock_func): Renamed from
27355         glthread_recursive_lock_unlock.
27356         (glthread_recursive_lock_destroy_func): Renamed from
27357         glthread_recursive_lock_destroy.
27358
27359 2008-08-14  Bruno Haible  <bruno@clisp.org>
27360
27361         * lib/glthread/lock.h: Renamed from lib/lock.h.
27362         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27363         * lib/glthread/tls.h: Renamed from lib/tls.h.
27364         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27365         * lib/fstrcmp.c: Update includes.
27366         * lib/strsignal.c: Update includes.
27367         * modules/lock (Files, Makefile.am): Update.
27368         (Include): Change to "glthread/lock.h".
27369         * modules/tls (Files, Makefile.am): Update.
27370         (Include): Change to "glthread/tls.h".
27371         * tests/test-lock.c: Update includes.
27372         * tests/test-tls.c: Update includes.
27373         * NEWS: Mention the renamed header files.
27374
27375 2008-08-11  Jim Meyering  <meyering@redhat.com>
27376
27377         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27378
27379 2008-08-11  Eric Blake  <ebb9@byu.net>
27380
27381         test-c-stack: avoid C99-ism
27382         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27383         before statement.
27384         Reported by Alain Guibert.
27385
27386 2008-08-10  Jim Meyering  <meyering@redhat.com>
27387
27388         ensure that return value of uinttostr et al are not ignored
27389         * lib/inttostr.h (__GNUC_PREREQ): Define.
27390         (__attribute_warn_unused_result__): Define.
27391         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27392
27393 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27394
27395         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27396         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27397
27398 2008-08-07  Jim Meyering  <meyering@redhat.com>
27399
27400         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27401
27402         * modules/mkstemp (License): Relicense under LGPLv2+.
27403         * modules/tempname (License): Likewise.
27404
27405 2008-08-06  Bruno Haible  <bruno@clisp.org>
27406
27407         * lib/poll.c (poll): Further micro-optimization.
27408
27409 2008-08-06  Jim Meyering  <meyering@redhat.com>
27410
27411         inet_pton.c: use locale-independent tolower
27412         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
27413         (inet_pton6): Use c_tolower rather than tolower.
27414         * modules/inet_pton (Depends-on): Add c-ctype.
27415
27416 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
27417
27418         * lib/poll.c (poll): Avoid division when timeout is 0, cache
27419         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
27420
27421 2008-08-06  Jim Meyering  <meyering@redhat.com>
27422
27423         * modules/inet_pton (License): Relicense under LGPLv2+.
27424
27425 2008-08-03  Bruno Haible  <bruno@clisp.org>
27426
27427         Additional non-aborting API for lock and tls.
27428         * lib/lock.h: Include <errno.h>.
27429         (glthread_lock_init): New macro/function.
27430         (gl_lock_init): Define as wrapper around glthread_lock_init.
27431         (glthread_lock_lock): New macro/function.
27432         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
27433         (glthread_lock_unlock): New macro/function.
27434         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
27435         (glthread_lock_destroy): New macro/function.
27436         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
27437         (glthread_rwlock_init): New macro/function.
27438         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
27439         (glthread_rwlock_rdlock): New macro/function.
27440         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
27441         (glthread_rwlock_wrlock): New macro/function.
27442         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
27443         (glthread_rwlock_unlock): New macro/function.
27444         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
27445         (glthread_rwlock_destroy): New macro/function.
27446         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
27447         (glthread_recursive_lock_init): New macro/function.
27448         (gl_recursive_lock_init): Define as wrapper around
27449         glthread_recursive_lock_init.
27450         (glthread_recursive_lock_lock): New macro/function.
27451         (gl_recursive_lock_lock): Define as wrapper around
27452         glthread_recursive_lock_lock.
27453         (glthread_recursive_lock_unlock): New macro/function.
27454         (gl_recursive_lock_unlock): Define as wrapper around
27455         glthread_recursive_lock_unlock.
27456         (glthread_recursive_lock_destroy): New macro/function.
27457         (gl_recursive_lock_destroy): Define as wrapper around
27458         glthread_recursive_lock_destroy.
27459         (glthread_once): New macro/function.
27460         (gl_once): Define as wrapper around glthread_once.
27461         Update function declarations.
27462         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
27463         glthread_rwlock_init. Return error code.
27464         (glthread_rwlock_rdlock_multithreaded): Renamed from
27465         glthread_rwlock_rdlock. Return error code.
27466         (glthread_rwlock_wrlock_multithreaded): Renamed from
27467         glthread_rwlock_wrlock. Return error code.
27468         (glthread_rwlock_unlock_multithreaded): Renamed from
27469         glthread_rwlock_unlock. Return error code.
27470         (glthread_rwlock_destroy_multithreaded): Renamed from
27471         glthread_rwlock_destroy. Return error code.
27472         (glthread_recursive_lock_init_multithreaded): Renamed from
27473         glthread_recursive_lock_init. Return error code.
27474         (glthread_recursive_lock_lock_multithreaded): Renamed from
27475         glthread_recursive_lock_lock. Return error code.
27476         (glthread_recursive_lock_unlock_multithreaded): Renamed from
27477         glthread_recursive_lock_unlock. Return error code.
27478         (glthread_recursive_lock_destroy_multithreaded): Renamed from
27479         glthread_recursive_lock_destroy. Return error code.
27480         (glthread_once_call): Make static.
27481         (glthread_once_multithreaded): Renamed from glthread_once.
27482         * lib/tls.h: Include <errno.h>.
27483         (glthread_tls_key_init): New macro/function.
27484         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
27485         (glthread_tls_set): New macro/function.
27486         (gl_tls_set): Define as wrapper around glthread_tls_set.
27487         (glthread_tls_key_destroy): New macro/function.
27488         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
27489         Update function declarations.
27490         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
27491         glthread_tls_get.
27492         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27493
27494 2008-08-04  Eric Blake  <ebb9@byu.net>
27495
27496         gnumakefile: use space, not TAB, outside of targets
27497         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
27498
27499 2008-08-02  Jim Meyering  <meyering@redhat.com>
27500
27501         getdate.y: avoid locale-dependent date parsing failure
27502         In Turkish locales, getdate would fail to recognize keywords
27503         containing a lowercase "i".  The solution is not to rely on
27504         locale-sensitive case-conversion.
27505         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
27506         (lookup_word): Use c_toupper in place of toupper.
27507         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
27508         Reported by Vefa Bicakci <bicave@superonline.com> in
27509         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
27510         * modules/getdate (Depends-on): Add c-ctype.
27511
27512 2008-08-02  Bruno Haible  <bruno@clisp.org>
27513
27514         * gnulib-tool (func_import): When updating or creating a .gitignore
27515         file, prepend each added line with a slash, and ignore leading slashes
27516         from the existing lines.
27517         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27518
27519 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27520
27521         Portability fix for GNU make 3.79.1.
27522         * top/GNUmakefile: Avoid 'else COND', which older GNU make
27523         versions do not understand.
27524
27525 2008-08-01  Bruno Haible  <bruno@clisp.org>
27526
27527         Work around bug of HP-UX 10.20 cc with -0.0 literal.
27528         * tests/test-isnanf.h (zero): New variable.
27529         (main): Avoid literal -0.0f.
27530         * tests/test-isnand.h (zero): New variable.
27531         (main): Avoid literal -0.0.
27532         * tests/test-isnanl.h (zero): New variable.
27533         (main): Avoid literal -0.0L.
27534         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
27535         (test_float, test_double, test_long_double): Avoid literals -0.0f,
27536         -0.0, -0.0L.
27537         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
27538         (test_signbitd): Avoid literal -0.0.
27539         (test_signbitl): Avoid literal -0.0L.
27540         * tests/test-ceilf1.c (zero): New variable.
27541         (main): Avoid literal -0.0f.
27542         * tests/test-ceill.c (zero): New variable.
27543         (main): Avoid literal -0.0L.
27544         * tests/test-floorf1.c (zero): New variable.
27545         (main): Avoid literal -0.0f.
27546         * tests/test-floorl.c (zero): New variable.
27547         (main): Avoid literal -0.0L.
27548         * tests/test-roundf1.c (zero): New variable.
27549         (main): Avoid literal -0.0f.
27550         * tests/test-round1.c (zero): New variable.
27551         (main): Avoid literal -0.0.
27552         * tests/test-roundl.c (zero): New variable.
27553         (main): Avoid literal -0.0L.
27554         * tests/test-truncf1.c (zero): New variable.
27555         (main): Avoid literal -0.0f.
27556         * tests/test-trunc1.c (zero): New variable.
27557         (main): Avoid literal -0.0.
27558         * tests/test-truncl.c (zero): New variable.
27559         (main): Avoid literal -0.0L.
27560         * tests/test-frexp.c (zero): New variable.
27561         (main): Avoid literal -0.0.
27562         * tests/test-frexpl.c (zero): New variable.
27563         (main): Avoid literal -0.0L.
27564         * tests/test-ldexpl.c (zero): New variable.
27565         (main): Avoid literal -0.0L.
27566         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27567         (zerod, zerol): New variables.
27568         (test_function): Avoid literals -0.0, -0.0L.
27569         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
27570         (zerod, zerol): New variables.
27571         (test_function): Avoid literals -0.0, -0.0L.
27572         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27573         (zerod, zerol): New variables.
27574         (test_function): Avoid literals -0.0, -0.0L.
27575         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
27576         (zerod, zerol): New variables.
27577         (test_function): Avoid literals -0.0, -0.0L.
27578         * tests/test-strtod.c (zero): New variable.
27579         (main): Avoid literal -0.0.
27580         Reported by Jonathan C. Patschke <jp@centtech.com>.
27581
27582 2008-07-31  Jim Meyering  <meyering@redhat.com>
27583
27584         sha256.h: correct definition of SHA224_DIGEST_SIZE
27585         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
27586         Reported by Paulie Pena IV <paulie4@gmail.com>.
27587         Define as 224 / 8, rather than as a literal.
27588         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
27589         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
27590         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
27591
27592 2008-07-31  Bruno Haible  <bruno@clisp.org>
27593
27594         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
27595         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
27596         Reported by Jonathan Patschke <jp@centtech.com>.
27597
27598 2008-07-31  Bruno Haible  <bruno@clisp.org>
27599
27600         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
27601         Reported by Paolo Bonzini <bonzini@gnu.org>.
27602
27603 2008-07-30  Eric Blake  <ebb9@byu.net>
27604
27605         test-strtod: allow compilation without -lm
27606         * tests/test-strtod.c (main): Avoid link dependence on fabs.
27607         Reported by Dennis Clarke <blastwave@gmail.com>.
27608
27609 2008-07-28  Jim Meyering  <meyering@redhat.com>
27610
27611         bootstrap: work also when there are no .po files in po/
27612         * build-aux/bootstrap (update_po_files): Complete the change
27613         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
27614
27615 2008-07-27  Jim Meyering  <meyering@redhat.com>
27616
27617         * users.txt: Add zile.
27618
27619 2008-07-26  Ben Pfaff  <blp@gnu.org>
27620
27621         Add missing dependencies on new m4/exponent[fdl].m4 files.
27622         * modules/isnanf-nolibm: Add m4/exponentf.m4.
27623         * modules/isnand-nolibm: Add m4/exponentd.m4.
27624         * modules/isnanl-nolibm: Add m4/exponentl.m4.
27625         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
27626         m4/isnan[fdl].m4, because the macros actually used moved.
27627         Reported by Jim Meyering.
27628
27629 2008-07-14  Ben Pfaff  <blp@gnu.org>
27630
27631         Add isinf module.
27632         * lib/isinf.c: New file.
27633         * lib/math.in.h: Define isinf macro if we have decided to replace
27634         it.
27635         * m4/isinf.m4: New file.
27636         * m4/math_h.m4: Initialize and substitute variables for isinf
27637         module.
27638         * modules/isinf: New file.
27639         * modules/isinf-tests: New file.
27640         * modules/math: Add substitutions for new module.
27641         * tests/test-isinf.c: New file.
27642         * doc/posix-functions/isinf.texi: Mention new module.
27643         * MODULES.html.sh: Mention new module.
27644
27645 2008-07-14  Ben Pfaff  <blp@gnu.org>
27646
27647         Factor out some macros for use by additional modules.
27648         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
27649         exponentf.m4.
27650         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
27651         exponentd.m4.
27652         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
27653         file exponentl.m4.
27654         * m4/exponentf.m4: New file.
27655         * m4/exponentd.m4: New file.
27656         * m4/exponentl.m4: New file.
27657         * modules/isnanf: Use new file m4/exponentf.m4.
27658         * modules/isnand: Use new file m4/exponentd.m4.
27659         * modules/isnanl: Use new file m4/exponentl.m4.
27660
27661 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
27662
27663         mktime.c: normalize tp->tm_isdst value to -1/0/1.
27664         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
27665         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
27666         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
27667
27668         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
27669         readlink on platforms without PATH_MAX.
27670
27671 2008-07-21  Eric Blake  <ebb9@byu.net>
27672
27673         Warn, not fail, on stale version.
27674         * top/GNUmakefile (_curr-ver): Tone down previous patch.
27675
27676         Don't allow installation with stale devel version number.
27677         * top/GNUmakefile (_is-install-target): New macro.
27678         (_curr-ver): Forbid installation with stale version number.
27679
27680 2008-07-20  Bruno Haible  <bruno@clisp.org>
27681
27682         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
27683         TESTS_ENVIRONMENT.
27684         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
27685
27686 2008-07-20  Bruno Haible  <bruno@clisp.org>
27687
27688         * lib/c-stack.h (c_stack_action): Add documentation.
27689         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
27690
27691 2008-07-20  Bruno Haible  <bruno@clisp.org>
27692
27693         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
27694         * modules/readlink (License): Likewise.
27695
27696 2008-07-17  Eric Blake  <ebb9@byu.net>
27697
27698         * modules/c-stack (Link): Fix typo.
27699
27700         Make c-stack use libsigsegv, when available.
27701         * modules/c-stack (Depends-on): Add libsigsegv.
27702         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
27703         needed.
27704         * lib/c-stack.c (SIGSTKSZ): Define fallback.
27705         (segv_handler, overflow_handler, c_stack_action)
27706         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
27707         implementation when libsigsegv is available, but only when using
27708         the library is necessary.
27709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
27710         comment, explaining why XSI check fails on Linux.
27711         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
27712         * tests/test-c-stack2.sh: Tweak skip message.
27713         * NEWS: Document new link-time requirements.
27714
27715 2008-07-16  Eric Blake  <ebb9@byu.net>
27716
27717         c-stack: Expose false positives when not using libsigsegv.
27718         * modules/c-stack-tests (Files): Expand test.
27719         * tests/test-c-stack.c (main): Add means to conditionally trigger
27720         non-overflow SIGSEGV.
27721         * tests/test-c-stack2.sh: New file.
27722
27723 2008-07-14  Bruno Haible  <bruno@clisp.org>
27724
27725         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
27726         Reported by Eric Blake.
27727
27728 2008-07-14  Sam Steingold  <sds@gnu.org>
27729             Bruno Haible  <bruno@clisp.org>
27730
27731         New module libsigsegv.
27732         * modules/libsigsegv: New file.
27733         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
27734         modifications.
27735         * MODULES.html.sh (Signal handling): New section.
27736
27737 2008-07-14  Bruno Haible  <bruno@clisp.org>
27738
27739         * modules/unictype/ctype-* (Description): Add the word "function".
27740         Improves the resulting doc in MODULES.html.
27741
27742 2008-07-12  Ben Pfaff  <blp@gnu.org>
27743
27744         Add longlong module.
27745         * modules/longlong: New file.
27746
27747 2008-07-12  Bruno Haible  <bruno@clisp.org>
27748
27749         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
27750         to empty.
27751
27752 2008-07-10  Ben Pfaff  <blp@gnu.org>
27753
27754         Add isnan module.
27755         * doc/posix-functions/isnan.texi: Mention new module.
27756         * lib/math.in.h: Define isnan macro if we have decided to replace
27757         it.
27758         * m4/isnan.m4: New file.
27759         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
27760         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
27761         also.
27762         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
27763         redundancy.
27764         * m4/math_h.m4: Initialize and substitute variables for isnan
27765         module.
27766         * modules/isnan: New file.
27767         * modules/isnan-tests: New file.
27768         * modules/math: Add substitutions for new module.
27769         * tests/test-isnan.c: New file.
27770         * MODULES.html.sh: Mention new module.
27771
27772 2008-07-10  Ben Pfaff  <blp@gnu.org>
27773
27774         Add isnanf module.
27775         * lib/isnanf.m4: New file.
27776         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
27777         (gl_HAVE_ISNANF_IN_LIBM): New macro.
27778         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
27779         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
27780         * modules/isnanf: New file.
27781         * modules/isnanf-tests: New file.
27782         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
27783         files.
27784         * tests/test-isnanf-nolibm.c: factored most of its contents into
27785         new file tests/test-isnanf.h.
27786         * tests/test-isnanf.h: New file.
27787         * tests/test-isnanf.c: New file.
27788         * MODULES.html.sh: Mention new module.
27789         * doc/glibc-functions/isnanf.texi: Mention new module.
27790
27791 2008-07-10  Ben Pfaff  <blp@gnu.org>
27792
27793         Add isnand module.
27794         * lib/isnand.h: New file.
27795         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
27796         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
27797         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
27798         functionality also.
27799         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
27800         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
27801         (gl_HAVE_ISNAND_IN_LIBM): New macro.
27802         * modules/isnand: New file.
27803         * modules/isnand-tests: New file.
27804         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
27805         files.
27806         * tests/test-isnand-nolibm.c: factored most of its contents into
27807         new file tests/test-isnand.h.
27808         * tests/test-isnand.h: New file.
27809         * tests/test-isnand.c: New file.
27810         * MODULES.html.sh: Mention new module.
27811
27812 2008-07-10  Ben Pfaff  <blp@gnu.org>
27813
27814         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
27815         * lib/isnand.h: Rename lib/isnand-nolibm.h.
27816         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
27817         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
27818         * modules/isnanf-nolibm: Update references to renamed files.
27819         * modules/isnand-nolibm: Likewise.
27820         * modules/isnanf-nolibm-tests: Likewise.
27821         * modules/isnand-nolibm-tests: Likewise.
27822         * lib/frexp.c: Likewise.
27823         * lib/isfinite.c: Likewise.
27824         * lib/signbitd.c: Likewise.
27825         * lib/signbitf.c: Likewise.
27826         * lib/vasnprintf.c: Likewise.
27827         * tests/test-ceilf1.c: Likewise.
27828         * tests/test-ceilf2.c: Likewise.
27829         * tests/test-floorf1.c: Likewise.
27830         * tests/test-floorf2.c: Likewise.
27831         * tests/test-frexp.c: Likewise.
27832         * tests/test-round1.c: Likewise.
27833         * tests/test-round2.c: Likewise.
27834         * tests/test-roundf1.c: Likewise.
27835         * tests/test-strtod.c: Likewise.
27836         * tests/test-trunc1.c: Likewise.
27837         * tests/test-trunc2.c: Likewise.
27838         * tests/test-truncf1.c: Likewise.
27839         * tests/test-truncf2.c: Likewise.
27840         * NEWS: Mention the renamed header files.
27841
27842 2008-07-11  Jim Meyering  <meyering@redhat.com>
27843
27844         vc-list-files: make the last-resort awk code more portable
27845         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
27846         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
27847         does not support it.
27848
27849 2008-07-10  Eric Blake  <ebb9@byu.net>
27850
27851         Work with tar's bootstrap.
27852         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
27853         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
27854         an m4 comment.
27855
27856 2008-07-09  Jim Meyering  <meyering@redhat.com>
27857
27858         posix-shell.m4: fix typo that made this test malfunction
27859         * m4/posix-shell.m4: Remove capitalization in variable name.
27860
27861 2008-07-08  Bruno Haible  <bruno@clisp.org>
27862
27863         * m4/onceonly.m4: Update comments.
27864         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27865
27866 2008-07-04  Jim Meyering  <meyering@redhat.com>
27867
27868         * users.txt: Add vc-dwim.
27869         (bison, coreutils): Use the gitweb URL.
27870
27871 2008-07-03  Jim Meyering  <meyering@redhat.com>
27872
27873         * users.txt: Add libffcall.  From Sam Steingold.
27874
27875 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
27876
27877         getdate.y: do not ignore TZ with relative day, month or year offset
27878         * lib/getdate.y (get_date): Move the tz-handling block to follow the
27879         relative-date-handling, since otherwise, the latter would clobber the
27880         sole output (an updated Start value) of the tz-handling block.
27881         * tests/test-getdate.c: Tests for the fix
27882
27883 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27884
27885         Recognize 'foo_LIBRARIES += libgnu.a'.
27886         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
27887         makefile snippet has already specified an installation location,
27888         also using '+='.
27889
27890 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
27891
27892         getdate.y: factor out common actions
27893         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
27894         Use them in place of open-coded actions.
27895
27896 2008-07-01  Simon Josefsson  <simon@josefsson.org>
27897
27898         Add self-test for getdate module.
27899         * modules/getdate-tests: New file.
27900         * tests/test-getdate.c: New file.
27901
27902 2008-06-29  Bruno Haible  <bruno@clisp.org>
27903
27904         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
27905         .gitignore.
27906         Reported by Sylvain Beucler <beuc@beuc.net>.
27907
27908 2008-06-29  Bruno Haible  <bruno@clisp.org>
27909
27910         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
27911         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
27912
27913 2008-06-29  Bruno Haible  <bruno@clisp.org>
27914
27915         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
27916         EXTRA_DIST.
27917         Reported by Sylvain Beucler <beuc@beuc.net>.
27918
27919 2008-06-26  Jim Meyering  <meyering@redhat.com>
27920
27921         make several modules depend on the "open" module
27922         This provides slightly increased consistency when opening-for-write
27923         the name of a non-directory spelled with a trailing slash.
27924         * modules/chdir-safer: Likewise.
27925         * modules/chown: Likewise.
27926         * modules/clean-temp: Likewise.
27927         * modules/copy-file: Likewise.
27928         * modules/fchdir: Likewise.
27929         * modules/fcntl-safer: Likewise.
27930         * modules/pipe: Likewise.
27931         * modules/utime: Likewise.
27932         Prompted by Eric Blake and Bruno Haible.
27933
27934 2008-06-24  Andreas Schwab  <schwab@suse.de>
27935
27936         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
27937         literals can be used as initializers for global variables.
27938
27939 2008-06-23  Eric Blake  <ebb9@byu.net>
27940
27941         Make gnulib-cache.m4 easier to diff.
27942         * gnulib-tool (func_import): Allow newlines when reading cached
27943         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
27944
27945 2008-06-23  Bruno Haible  <bruno@clisp.org>
27946
27947         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
27948         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
27949         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
27950         m4/signalblocking.m4.
27951         (gl_PREREQ_SIGACTION): Don't invoke it.
27952         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
27953         gl_PREREQ_SIG_HANDLER_H.
27954         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27955         Don't check for sigaction here.
27956
27957 2008-06-23  Bruno Haible  <bruno@clisp.org>
27958
27959         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
27960         (install_handlers): Don't set the SA_RESETHAND flag.
27961
27962 2008-06-23  Bruno Haible  <bruno@clisp.org>
27963
27964         * m4/sigaction.m4: Comment fixes.
27965         * lib/signal.in.h: Likewise.
27966
27967 2008-06-23  Eric Blake  <ebb9@byu.net>
27968
27969         Fix typo.
27970         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27971
27972         Avoid SA_ namespace.
27973         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27974         Reported by Ralf Wildenhues.
27975
27976         Avoid test failure due to SA_RESTORER.
27977         * tests/test-sigaction.c (SA_MASK): New macro.
27978         (main): Avoid failing due to extension flags being set.
27979         Reported by Jim Meyering.
27980
27981         Revert use of sig-handler.h in sigprocmask.c.
27982         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27983         it requires the existence of struct sigaction.
27984         * lib/sigprocmask.c (handler_t): Restore typedef.
27985         (rpl_signal, old_handlers): Use local type.
27986
27987 2008-06-22  Bruno Haible  <bruno@clisp.org>
27988
27989         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27990         conditionally.
27991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27992
27993 2008-06-22  Bruno Haible  <bruno@clisp.org>
27994
27995         * doc/posix-functions/siginterrupt.texi: Move note.
27996
27997         * lib/signal.in.h (SA_RESTART): New macro.
27998         * lib/sigaction.c: Update comment.
27999
28000         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28001
28002         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28003         (gl_PREREQ_SIGPROCMASK): Invoke it.
28004         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28005
28006         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28007
28008         * lib/sigprocmask.c: Update a comment.
28009
28010 2008-06-21  Eric Blake  <ebb9@byu.net>
28011
28012         Use sigaction module rather than signal().
28013         * modules/c-stack (Depends-on): Add sigaction.
28014         * modules/fatal-signal (Depends-on): Likewise.
28015         * modules/nanosleep (Depends-on): Likewise.
28016         * modules/sigprocmask (Files): Add sig-handler.h.
28017         * modules/sigaction (Files): Likewise.
28018         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28019         Eggert.
28020         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28021         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28022         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28023         (init_fatal_signals): Likewise.
28024         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28025         (siginterrupt): Delete fallback.
28026         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28027         instead.
28028         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28029         siginterrupt.
28030
28031         New module sigaction, for mingw.
28032         * modules/sigaction: New module...
28033         * modules/sigaction-tests: ...and its test.
28034         * m4/sigaction.m4: New file.
28035         * lib/sigaction.c: Likewise.
28036         * tests/test-sigaction.c: Likewise.
28037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28038         * modules/signal (Makefile.am): Likewise.
28039         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28040         needed.
28041         * doc/posix-headers/signal.texi (signal.h): Mention provided
28042         types.
28043         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28044         that sigaction is preferable.
28045         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28046         module.
28047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28048         sigaction.
28049
28050         Improve robustness of sigprocmask by overriding signal.
28051         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28052         is in use.
28053         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28054         (SIGKILL, SIGSTOP): Provide fallbacks.
28055         (rpl_signal): Implement.
28056         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28057         signal can be called inside handlers.
28058
28059         Fix nanosleep module on mingw.
28060         * modules/nanosleep (Depends-on): Add sys_select.
28061         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28062
28063         Fix licensing of sigprocmask.
28064         * modules/raise (License): Relicense as LGPL.
28065
28066 2008-06-21  Bruno Haible  <bruno@clisp.org>
28067
28068         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28069         result if it contains question marks.
28070         Reported by Michael Geng <linux@michaelgeng.de>.
28071
28072 2008-06-19  Bruno Haible  <bruno@clisp.org>
28073
28074         Fix CVS-ism.
28075         * doc/gnulib.texi: Include updated-stamp.texi.
28076         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28077         (updated-stamp.texi): New rule.
28078         (gnulib.info): Depend on it.
28079         * doc/.gitignore: Add updated-stamp.texi.
28080         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28081
28082 2008-06-19  Bruno Haible  <bruno@clisp.org>
28083
28084         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28085         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28086
28087 2008-06-19  Eric Blake  <ebb9@byu.net>
28088
28089         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28090         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28091         Reported by Stepan Kasal.
28092
28093 2008-06-18  Bruno Haible  <bruno@clisp.org>
28094
28095         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28096         Reported by Eric Blake.
28097
28098 2008-06-18  Eric Blake  <ebb9@byu.net>
28099
28100         Work around cygwin 1.5.25 strsignal bug.
28101         * tests/test-strsignal.c: Allow for const char *.
28102         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28103
28104 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28105
28106         * users.txt: Update URL to article and add author/date
28107         information.
28108
28109 2008-06-17  Bruno Haible  <bruno@clisp.org>
28110
28111         New macro gl_DISABLE_THREADS.
28112         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28113         if the user did not pass --enable-threads or --disable-threads option.
28114         (gl_DISABLE_THREADS): New macro.
28115         Reported by Eric Blake <ebb9@byu.net>.
28116
28117 2008-06-17  Bruno Haible  <bruno@clisp.org>
28118
28119         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28120         when the macro ignores it.
28121         Based on a patch by Eric Blake <ebb9@byu.net>.
28122
28123 2008-06-17  Bruno Haible  <bruno@clisp.org>
28124
28125         * modules/tls (License): Change to LGPLv2+.
28126         Reported by Eric Blake.
28127
28128 2008-06-17  Eric Blake  <ebb9@byu.net>
28129
28130         Simplify c-stack prerequisites.
28131         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28133         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28134         check.
28135         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28136         <sys/resource.h>.
28137
28138         Move c-stack test into testsuite.
28139         * modules/c-stack-tests: New file.
28140         * lib/c-stack.c [DEBUG]: Move test program...
28141         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28142         fail test if sigaltstack is lacking.
28143         * tests/test-c-stack.sh: New driver file.
28144
28145 2008-06-16  Eric Blake  <ebb9@byu.net>
28146
28147         Use raise module consistently.
28148         * modules/fatal-signal (Depends-on): Add raise.
28149         * modules/sigprocmask (Depends-on): Likewise.
28150         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28151         * lib/sigprocmask.c (sigprocmask): Likewise.
28152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28153         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28154
28155         Fix compliance bug in sigpending.
28156         * lib/sigprocmask.c (sigpending): Return pending array via
28157         parameter, not return value.
28158
28159 2008-06-14  Eric Blake  <ebb9@byu.net>
28160
28161         Improve obstack-printf test code.
28162         * tests/test-obstack-printf.c (test_function): Fix comment, and
28163         simplify usage of obstack_* in macros.  Add a test for coverage.
28164         Reported by Bruno Haible.
28165
28166 2008-06-14  Bruno Haible  <bruno@clisp.org>
28167
28168         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28169         array size as a constant, not as a const variable.
28170         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28171         AC_USE_SYSTEM_EXTENSIONS.
28172         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28173         Test whether the obstack_printf function actually exists.
28174         * modules/obstack-printf (Depends-on): Add extensions.
28175         (Include): Remove obstack.h.
28176         * modules/obstack-printf-posix (Depends-on): Add extensions.
28177         (Include): Remove obstack.h.
28178
28179 2008-06-13  Eric Blake  <ebb9@byu.net>
28180
28181         Add obstack-printf and obstack-printf-posix modules.
28182         * modules/obstack-printf: New file.
28183         * modules/obstack-printf-posix: Likewise.
28184         * MODULES.html.sh (Misc): Mention them.
28185         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28186         Likewise.
28187         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28188         Likewise.
28189         * modules/stdio (Makefile.am): Accomodate new modules.
28190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28191         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28192         Declare.
28193         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28194         functions.
28195         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28196         (gl_REPLACE_OBSTACK_PRINTF): New macros
28197         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28198         * tests/test-obstack-printf.c: New file.
28199         * modules/obstack-printf-tests: Likewise.
28200         * modules/obstack-printf-posix-tests: Likewise.
28201
28202 2008-06-11  Bruno Haible  <bruno@clisp.org>
28203
28204         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28205         * lib/open.c: Include errno.h.
28206         (open): Fail when attempting to write to a file that has a trailing
28207         slash.
28208         * tests/test-open.c (main): Test against trailing slash bug.
28209         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28210
28211 2008-06-10  Bruno Haible  <bruno@clisp.org>
28212
28213         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28214         for $? to work inside the trap command, with various /bin/sh-s.
28215         * tests/test-vc-list-files-cvs.sh: Likewise.
28216
28217 2008-06-10  Bruno Haible  <bruno@clisp.org>
28218
28219         * lib/acl-internal.h: Don't include gettext.h here.
28220         * lib/set-mode-acl.c: Include gettext.h here.
28221         * lib/copy-acl.c: Likewise.
28222
28223 2008-06-10  Bruno Haible  <bruno@clisp.org>
28224
28225         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28226         * lib/wait-process.c (wait_subprocess): Likewise.
28227         * lib/execute.h (execute): Add termsigp argument.
28228         * lib/execute.c (execute): Likewise.
28229         * lib/csharpcomp.c (compile_csharp_using_pnet,
28230         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28231         * lib/csharpexec.c (execute_csharp_using_pnet,
28232         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28233         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28234         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28235         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28236         is_jikes_present): Update.
28237         * lib/javaexec.c (execute_java_class): Update.
28238         * lib/javaversion.c (execute_and_read_line): Update.
28239         * NEWS: Document the changes.
28240         Reported by Eric Blake.
28241
28242 2008-06-10  Eric Blake  <ebb9@byu.net>
28243
28244         Add missing include.
28245         * tests/test-strstr.c (includes): Add <signal.h>.
28246         * tests/test-strcasestr.c (includes): Likewise.
28247         * tests/test-memmem.c (includes): Likewise.
28248
28249 2008-06-10  Bruno Haible  <bruno@clisp.org>
28250
28251         * lib/wait-process.c (wait_subprocess): Add an assertion.
28252
28253 2008-06-10  Bruno Haible  <bruno@clisp.org>
28254
28255         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28256
28257 2008-06-10  Bruno Haible  <bruno@clisp.org>
28258
28259         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28260         using alarm().
28261         * tests/test-strcasestr.c (main): Likewise.
28262         * tests/test-strstr.c (main): Likewise.
28263
28264 2008-06-09  Bruno Haible  <bruno@clisp.org>
28265
28266         Work around the Solaris 10 ACE ACLs ABI change.
28267         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28268         declare if ACL_NO_TRIVIAL is present.
28269         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28270         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28271         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28272         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28273         define if ACL_NO_TRIVIAL is present.
28274         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28275         and use the current ABI.
28276         (file_has_acl): Use same #if condition as elsewhere.
28277         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28278         in use, and use the current ABI.
28279         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28280         Reported by Jim Meyering.
28281
28282 2008-06-09  Eric Blake  <ebb9@byu.net>
28283
28284         Work around environments that (stupidly) ignore SIGALRM.
28285         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28286         before using alarm().
28287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28288         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28289         Reported by Ian Beckwith <ianb@erislabs.net>.
28290
28291         Produce autobuild blurb earlier in log.
28292         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28293
28294 2008-06-09  Jim Meyering  <meyering@redhat.com>
28295         and Ondřej Vašík  <ovasik@redhat.com>
28296
28297         utimens.c: correct kernel bug work-around
28298         Ondřej Vašík found that the invalid return value of 280 indicates
28299         failure, not success, and the kernel bug we're trying to work
28300         around affects not just the utimensat call, but also the fallback
28301         futimens call.
28302         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28303         not success.
28304         [HAVE_FUTIMENS]: Use the same work-around, here.
28305
28306 2008-06-09  Jim Meyering  <meyering@redhat.com>
28307
28308         add more guards around definition of ACE_-related code
28309         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28310         ALLOW and ACE_OWNER are also defined.
28311
28312 2008-06-08  Bruno Haible  <bruno@clisp.org>
28313
28314         * lib/acl-internal.h: Add me as co-author.
28315         * lib/file-has-acl.c: Likewise.
28316         * lib/set-mode-acl.c: Likewise.
28317         * lib/copy-acl.c: Likewise.
28318
28319 2008-06-08  Bruno Haible  <bruno@clisp.org>
28320
28321         Add support for AIX ACLs.
28322         * lib/acl-internal.h (acl_nontrivial): New declaration.
28323         * lib/file-has-acl.c (acl_nontrivial): New function.
28324         (file_has_acl): Add implementation using AIX 4 ACL API.
28325         * lib/set-mode-acl.c (qset_acl): Likewise.
28326         * lib/copy-acl.c (qcopy_acl): Likewise.
28327
28328 2008-06-08  Bruno Haible  <bruno@clisp.org>
28329
28330         Add support for HP-UX ACLs.
28331         * lib/acl-internal.h (acl_nontrivial): New declaration.
28332         * lib/file-has-acl.c (acl_nontrivial): New function.
28333         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28334         * lib/set-mode-acl.c (qset_acl): Likewise.
28335         * lib/copy-acl.c (qcopy_acl): Likewise.
28336
28337 2008-06-08  Bruno Haible  <bruno@clisp.org>
28338
28339         Add support for Cygwin ACLs.
28340         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28341         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28342         the chmod_or_fchmod call.
28343         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28344
28345 2008-06-08  Bruno Haible  <bruno@clisp.org>
28346
28347         Fix bug with setuid modes in Solaris 10+ code.
28348         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28349         succeeded, when the mode contains some special bits.
28350
28351 2008-06-08  Bruno Haible  <bruno@clisp.org>
28352
28353         Add support for Solaris 7..10 ACLs.
28354         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28355         declarations.
28356         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28357         functions.
28358         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28359         * lib/set-mode-acl.c (qset_acl): Likewise.
28360         * lib/copy-acl.c (qcopy_acl): Likewise.
28361
28362 2008-06-08  Bruno Haible  <bruno@clisp.org>
28363
28364         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28365         declaration.
28366         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28367         (acl_access_nontrivial): Remove MacOS X case.
28368         (file_has_acl): Use acl_extended_nontrivial.
28369         * lib/copy-acl.c (qcopy_acl): Likewise.
28370
28371 2008-06-08  Bruno Haible  <bruno@clisp.org>
28372
28373         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28374
28375 2008-06-08  Jim Meyering  <meyering@redhat.com>
28376
28377         * modules/acl (Maintainer): Add Bruno Haible.
28378
28379 2008-06-07  Bruno Haible  <bruno@clisp.org>
28380
28381         Improve support for Tru64 ACLs.
28382         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28383         ACL on OSF/1.
28384
28385 2008-06-07  Bruno Haible  <bruno@clisp.org>
28386
28387         Add support for MacOS X ACLs.
28388         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28389         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28390         * lib/set-mode-acl.c (qset_acl): Likewise.
28391         * lib/copy-acl.c (qcopy_acl): Likewise.
28392
28393 2008-06-07  Bruno Haible  <bruno@clisp.org>
28394
28395         Fix memory leak introduced on 2008-05-22.
28396         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28397         use.
28398
28399 2008-06-07  Bruno Haible  <bruno@clisp.org>
28400
28401         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28402         to construct an empty ACL.
28403
28404 2008-06-07  Bruno Haible  <bruno@clisp.org>
28405
28406         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
28407         precisely.
28408         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
28409
28410 2008-06-07  Bruno Haible  <bruno@clisp.org>
28411
28412         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
28413         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
28414
28415 2008-06-07  Bruno Haible  <bruno@clisp.org>
28416
28417         * doc/posix-functions/_setjmp.texi: Explain the use of this function
28418         regardless of POSIX.
28419         * doc/posix-functions/_longjmp.texi: Likewise.
28420         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
28421         SystemV platform in this case.
28422
28423 2008-06-06  Eric Blake  <ebb9@byu.net>
28424
28425         Document abort() bugs.
28426         * doc/posix-functions/abort.texi (abort): Mention anomalies.
28427
28428         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
28429         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
28430         sigsetjmp.
28431         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
28432         siglongjmp, but only as a macro.
28433         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
28434         is obsolete.
28435         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
28436
28437         Tweak documentation to cover cygwin argz bugs.
28438         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
28439         argz bug fix; no code change needed since no cygwin releases
28440         occurred between the last fix and the bug being tested.
28441         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
28442         module and recently fixed cygwin bugs.
28443         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
28444         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
28445         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
28446         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
28447         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
28448         Likewise.
28449         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
28450         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
28451         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
28452         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
28453         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
28454         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
28455         Likewise.
28456
28457         Avoid gcc warning on cygwin.
28458         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
28459         !ACL_NO_TRIVIAL]: Avoid unused variable.
28460
28461 2008-06-05  Eric Blake  <ebb9@byu.net>
28462
28463         Be tolerant of UNKNOWN version in gnulib-tool test dir.
28464         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
28465         git-version-gen fails to come up with a version.
28466         Reported by Simon Josefsson.
28467
28468 2008-06-05  Jim Meyering  <meyering@redhat.com>
28469             Paul Eggert  <eggert@cs.ucla.edu>
28470
28471         utimens.c: work around a probable Linux kernel bug
28472         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
28473         appears to be a kernel bug that causes utimensat to return 280
28474         instead of 0, indicating success.
28475
28476 2008-06-04  Bruno Haible  <bruno@clisp.org>
28477
28478         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
28479         2008-06-01 commit.
28480
28481 2008-06-04  Bruno Haible  <bruno@clisp.org>
28482
28483         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
28484         * lib/file-has-acl.c (acl_access_nontrivial): New function.
28485         (file_has_acl): Use it. Save errno afterwards.
28486         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
28487
28488 2008-06-03  Bruno Haible  <bruno@clisp.org>
28489
28490         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
28491         draft code. Simplify #ifs.
28492         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
28493         Put Solaris code after POSIX-draft code. Fix comments regarding
28494         Solaris 10, HP-UX. Mention Cygwin.
28495         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
28496
28497 2008-06-03  Eric Blake  <ebb9@byu.net>
28498
28499         Provide fallback for older kernels.
28500         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
28501         Provide runtime fallback if kernel lacks support.
28502         Reported by Mike Frysinger.
28503
28504 2008-06-02  Bruno Haible  <bruno@clisp.org>
28505
28506         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
28507         it exists.
28508
28509 2008-06-02  Bruno Haible  <bruno@clisp.org>
28510
28511         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
28512         * lib/copy-acl.c (qcopy_acl): Update comment.
28513
28514 2008-06-02  Bruno Haible  <bruno@clisp.org>
28515
28516         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
28517         like ACL APIs.
28518
28519 2008-06-02  Bruno Haible  <bruno@clisp.org>
28520
28521         * tests/test-file-has-acl.sh: Use different code for Cygwin.
28522         * tests/test-set-mode-acl.sh: Likewise.
28523         * tests/test-copy-acl.sh: Likewise.
28524         * tests/test-copy-file.sh: Likewise.
28525
28526 2008-06-02  Bruno Haible  <bruno@clisp.org>
28527
28528         * tests/test-file-has-acl.sh: Remove unused code.
28529
28530 2008-06-01  Bruno Haible  <bruno@clisp.org>
28531
28532         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
28533         (copy_acl): Just a wrapper around qcopy_acl that emits the error
28534         messages.
28535         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
28536
28537 2008-06-01  Bruno Haible  <bruno@clisp.org>
28538
28539         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
28540         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
28541         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
28542         APIs.
28543         * modules/acl-tests (configure.ac): Remove tests now contained in
28544         m4/acl.m4.
28545
28546 2008-06-02  Jim Meyering  <meyering@redhat.com>
28547
28548         announce-gen: use a better key-server host name
28549         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
28550         it may be more consistently reliable.  Suggested by Werner Koch
28551         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
28552
28553 2008-06-01  Bruno Haible  <bruno@clisp.org>
28554
28555         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
28556         Reported by Voroskoi Andras <voroskoi@gmail.com>.
28557
28558 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
28559
28560         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
28561
28562 2008-06-01  Bruno Haible  <bruno@clisp.org>
28563
28564         New ACL tests.
28565         * tests/test-file-has-acl.sh: New file.
28566         * tests/test-file-has-acl.c: New file.
28567         * tests/test-set-mode-acl.sh: New file.
28568         * tests/test-set-mode-acl.c: New file.
28569         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
28570         * tests/test-copy-acl.c: New file.
28571         * modules/acl-tests: New file, based on modules/copy-file-tests.
28572         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
28573         (Depends-on): Add acl-tests.
28574         (configure.ac): Remove checks.
28575         (Makefile.am): Don't create test-sameacls program here any more.
28576
28577 2008-06-01  Bruno Haible  <bruno@clisp.org>
28578
28579         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
28580         * tests/test-sameacls.c: Include progname.h.
28581         (main): Invoke set_program_name. Portability fixes for MacOS X,
28582         Solaris, HP-UX.
28583
28584 2008-06-01  Bruno Haible  <bruno@clisp.org>
28585
28586         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
28587         function.
28588         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
28589
28590 2008-06-01  Bruno Haible  <bruno@clisp.org>
28591
28592         * modules/rpmatch (Depends-on): Add strdup.
28593
28594 2008-06-01  Bruno Haible  <bruno@clisp.org>
28595
28596         * lib/pipe.c: Include unistd-safer.h.
28597         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
28598         * modules/pipe (Depends-on): Add unistd-safer.
28599
28600 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28601
28602         * modules/autobuild (configure.ac): Call AB_INIT.
28603
28604 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28605
28606         * tests/test-getaddrinfo.c: Don't print debug messages by default.
28607         Suggested by Bruno Haible <bruno@clisp.org>.
28608
28609 2008-05-30  Simon Josefsson  <simon@josefsson.org>
28610
28611         * tests/test-base64.c: Cast size_t to unsigned long when invoking
28612         printf.  Use %lu instead of %d.  Reported by Bruno Haible
28613         <bruno@clisp.org>.
28614
28615 2008-05-29  Eric Blake  <ebb9@byu.net>
28616
28617         Prefer new POSIX 200x interfaces over futimesat.
28618         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
28619         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
28620         when available.
28621         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
28622
28623 2008-05-28  Bruno Haible  <bruno@clisp.org>
28624
28625         * modules/stpcpy (License): Change to LGPLv2+.
28626         Requested by David Lutterkort <dlutter@redhat.com>.
28627
28628 2008-05-27  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
28631         current mingw.
28632         Reported by Jose E. Marchesi <jemarch@gnu.org>.
28633
28634 2008-05-27  Bruno Haible  <bruno@clisp.org>
28635
28636         * modules/iconv_open (Link): New section, from module 'iconv'.
28637         * modules/striconv (Link): Likewise.
28638         * modules/striconveh (Link): Likewise.
28639         * modules/xstriconv (Link): Likewise.
28640         * modules/unicodeio (Link): Likewise.
28641         * modules/propername (Link): Likewise.
28642         Reported by Jim Meyering.
28643
28644 2008-05-26  Jim Meyering  <meyering@redhat.com>
28645
28646         sha256: do not artificially restrict buffer length to be < 2^32
28647         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
28648         uint32_t to size_t.
28649         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
28650         to match.
28651
28652         avoid unaligned access errors, e.g., on sparc
28653         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
28654         direct access through a possibly-unaligned uint64* pointer.
28655         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
28656         direct access through a possibly-unaligned uint32* pointer.
28657         Prompted by this patch from Tom "spot" Callaway:
28658         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
28659
28660         sha512.c: fix typo in comment
28661         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
28662
28663 2008-05-25  Bruno Haible  <bruno@clisp.org>
28664
28665         * lib/set-mode-acl.c: Renamed from lib/acl.c.
28666         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
28667         (Makefile.am): Update lib_SOURCES.
28668
28669 2008-05-25  Bruno Haible  <bruno@clisp.org>
28670
28671         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
28672
28673 2008-05-25  Jim Meyering  <meyering@redhat.com>
28674
28675         useless-if-before-free: freed expr may have white-space differences
28676         * build-aux/useless-if-before-free: Recognize cases in which the
28677         freed expression differs from the tested one in embedded white
28678         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
28679         $1 was used, so we can't make any regexp shy.  Improved tests now
28680         detect this.
28681
28682         useless-if-before-free: accept white space in the expression.
28683         * build-aux/useless-if-before-free: For now, any white space
28684         in the expression must be identical in the free argument.
28685
28686         useless-if-before-free: efficiency tweak
28687         * build-aux/useless-if-before-free: Make the expression-matching
28688         regexp "shy".
28689         Make the *outer* regexp shy, not the expr-matching one.
28690
28691         update code-in-comment to accept cast of free arg
28692         * build-aux/useless-if-before-free: Update regexp.
28693
28694 2008-05-25  Bruno Haible  <bruno@clisp.org>
28695
28696         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
28697         * modules/copy-file-tests (Files, Makefile.am): Update.
28698         * tests/test-copy-file.c (func_test_copy): Update.
28699
28700 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
28701
28702         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
28703
28704 2008-05-23  Bruno Haible  <bruno@clisp.org>
28705
28706         Improve support for ACLs on OSF/1.
28707         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
28708         Remove fallback for unknown flavors of ACLs.
28709
28710 2008-05-22  Bruno Haible  <bruno@clisp.org>
28711
28712         Add support for ACLs on OSF/1.
28713         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
28714         replacements.
28715         (acl_free_text): New macro fallback.
28716         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
28717         acl_free.
28718         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
28719         acl_free_text function. Require AC_C_INLINE.
28720
28721 2008-05-22  Bruno Haible  <bruno@clisp.org>
28722
28723         Make copy_acl work on MacOS X 10.5.
28724         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
28725         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
28726         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
28727         If MODE_INSIDE_ACL, don't assume that every system has the same text
28728         representation for ACLs as FreeBSD.
28729         * lib/copy-acl.c (copy_acl): Add support for platforms with
28730         !MODE_INSIDE_ACL.
28731         * lib/file-has-acl.c (file_has_acl): Likewise.
28732         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
28733         FreeBSD, MacOS X, or IRIX, respectively.
28734
28735 2008-05-22  Bruno Haible  <bruno@clisp.org>
28736
28737         * lib/acl.h: Don't include <sys/acl.h>.
28738         (GETACLCNT): Move fallback to lib/acl-internal.h.
28739         * lib/acl-internal.h: Include <sys/acl.h> here.
28740         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
28741
28742 2008-05-22  Bruno Haible  <bruno@clisp.org>
28743
28744         Split off copy_acl function to separate file.
28745         * lib/copy-acl.c: New file, extracted from lib/acl.c.
28746         * lib/acl.c (copy_acl): Moved function to separate file.
28747         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
28748         * modules/acl (Files): Add lib/copy-acl.c.
28749         (Makefiles.am): Augment lib_SOURCES.
28750
28751 2008-05-22  Bruno Haible  <bruno@clisp.org>
28752
28753         * modules/copy-file-tests: New file.
28754         * tests/test-copy-file.sh: New file.
28755         * tests/test-copy-file.c: New file.
28756         * tests/test-copy-file-sameacls.c: New file.
28757
28758 2008-05-22  Eric Blake  <ebb9@byu.net>
28759
28760         Avoid gcc warning.
28761         * tests/test-memcmp.c (main): Pass NULL indirectly.
28762
28763 2008-05-21  Bruno Haible  <bruno@clisp.org>
28764
28765         Add reference doc about ACLs.
28766         * doc/acl-resources.txt: New file.
28767         * doc/acl-cygwin.txt: New file.
28768
28769 2008-05-21  Bruno Haible  <bruno@clisp.org>
28770
28771         Avoid one more warning from gcc.
28772         * lib/vasnprintf.c (IF_LINT): Update comments.
28773         (VASNPRINTF): Use it also for the 'prefix' array initializer.
28774
28775 2008-05-21  Jim Meyering  <meyering@redhat.com>
28776
28777         avoid a warning from gcc
28778         * lib/vasnprintf.c (IF_LINT): Define.
28779         (scale10_round_decimal_long_double):
28780         Use it to avoid a "may be used uninitialized" warning.
28781         (scale10_round_decimal_double): Likewise.
28782
28783 2008-05-21  Simon Josefsson  <simon@josefsson.org>
28784
28785         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
28786         declared.
28787
28788 2008-05-20  Bruno Haible  <bruno@clisp.org>
28789
28790         * tests/test-memcmp.c (main): Test also the sign of the result. Test
28791         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
28792
28793 2008-05-20  Simon Josefsson  <simon@josefsson.org>
28794
28795         * modules/memcmp-tests: New file.
28796         * tests/test-memcmp.c: New file.
28797
28798 2008-05-19  Bruno Haible  <bruno@clisp.org>
28799
28800         * modules/propername (Notice, configure.ac): Put quoted "..." into
28801         --keyword option.
28802         * lib/propername.h: Update comments accordingly.
28803         Reported by Eric Blake.
28804
28805 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
28806
28807         * modules/getpass-gnu (Depends-on): Add fseeko.
28808
28809 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28810
28811         * modules/base64-tests: New file.
28812
28813 2008-05-19  Bo Borgerson <gigabo@gmail.com>
28814
28815         * lib/base64.c (base64_decode_ctx): If a decode context structure
28816         was passed in use it to ignore newlines.  If a context structure
28817         was _not_ passed in, continue to treat newlines as garbage (this
28818         is the historical behavior).  Formerly base64_decode.
28819         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28820         takes a decode context structure.
28821         * lib/base64.h (base64_decode): Macro for four-argument calls.
28822         (base64_decode_alloc): Likewise.
28823         * lib/base64.c (base64_decode_ctx): If a decode context structure
28824         was passed in use it to ignore newlines.  If a context structure
28825         was _not_ passed in, continue to treat newlines as garbage (this
28826         is the historical behavior).  Formerly base64_decode.
28827         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28828         takes a decode context structure.
28829         * lib/base64.h (base64_decode): Macro for four-argument calls.
28830         (base64_decode_alloc): Likewise.
28831
28832 2008-05-19  Jim Meyering  <meyering@redhat.com>
28833
28834         avoid a warning from gcc
28835         * lib/trim.c (IF_LINT): Define.
28836         (trim2): Use it to avoid a "may be used uninitialized" warning.
28837
28838         Fix doc typo.
28839         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
28840
28841 2008-05-19  Bruno Haible  <bruno@clisp.org>
28842
28843         * doc/glibc-functions/getpass.texi: Document limits of other
28844         implementations.
28845
28846 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28847             Bruno Haible <bruno@clisp.org>
28848
28849         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
28850
28851 2008-05-18  Bruno Haible  <bruno@clisp.org>
28852
28853         * modules/propername: New file, from GNU gettext.
28854         * lib/propername.h: New file, from GNU gettext.
28855         * lib/propername.c: New file, from GNU gettext.
28856         * MODULES.html.sh (Internationalization functions): Add propername.
28857
28858 2008-05-16  Jim Meyering  <meyering@redhat.com>
28859             Bruno Haible  <bruno@clisp.org>
28860
28861         Avoid some warnings from "gcc -Wshadow".
28862         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
28863
28864 2008-05-15  Eric Blake  <ebb9@byu.net>
28865
28866         Extend previous patch to cygwin 1.7.0.
28867         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
28868         fast implementation in cygwin >= 1.7.0.
28869         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28871
28872 2008-05-15  Bruno Haible  <bruno@clisp.org>
28873
28874         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
28875         implementation in glibc >= 2.9.
28876         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28878
28879 2008-05-15  Bruno Haible  <bruno@clisp.org>
28880
28881         * MODULES.html.sh (Internationalization functions): Remove linebreak.
28882         (Unicode string functions): Add unilbrk/*.
28883         Reported by Karl Berry.
28884
28885 2008-05-15  Eric Blake  <ebb9@byu.net>
28886
28887         Fix violation of <stdbool.h> replacement in regex.
28888         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
28889         * lib/regexec.c (re_search_internal): Likewise.
28890         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
28891
28892 2008-05-15  Jim Meyering  <meyering@redhat.com>
28893
28894         avoid distracting test output when git or cvs is not found
28895         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
28896         * tests/test-vc-list-files-git.sh: Likewise.
28897
28898 2008-05-15  Eric Blake  <ebb9@byu.net>
28899
28900         Glibc finally accepted the memmem speedup code, bugzilla #5514.
28901         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
28902         glibc version.
28903         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28904         * doc/posix-functions/strstr.texi (strstr): Likewise.
28905         * lib/str-two-way.h (MAX): Sychronize with glibc.
28906
28907 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
28908
28909         * lib/regcomp.c (optimize_utf8): Add a note on why we test
28910         opr.ctx_type.
28911         (calc_first): Initialize constraint field.
28912         (duplicate_node_closure): Use it instead of special casing ANCHORS.
28913         Fix grammar.
28914         (duplicate_node): Merge constraint field for all node types.
28915         (calc_eclosure_iter): Look at constraint field for all node types.
28916         * lib/regex_internal.c (create_cd_newstate): Don't look at
28917         opr.ctx_type.
28918
28919 2008-05-14  Bruno Haible  <bruno@clisp.org>
28920
28921         Help GCC to do better code generation.
28922         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
28923         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28924         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
28925         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
28926         Declare with attribute 'malloc' if supported.
28927
28928 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
28929
28930         use "echo STR|wc -c" rather than unportable "expr length STR"
28931         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
28932         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
28933
28934 2008-05-14  Jim Meyering  <meyering@redhat.com>
28935
28936         use dd ibs=$n count=1 ... rather than less-portable head -c$n
28937         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
28938         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
28939         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
28940         via Collin Lasse.
28941
28942 2008-05-14  Eric Blake  <ebb9@byu.net>
28943
28944         Avoid quadratic growth in gl_LIBSOURCES.
28945         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
28946         Suggested by Bruno Haible.
28947
28948         Test xmemdup0.
28949         * modules/xmemdup0-tests: New file.
28950         * tests/test-xmemdup0.c: Likewise.
28951
28952 2008-05-13  Eric Blake  <ebb9@byu.net>
28953
28954         Split xmemdup0 into its own module.
28955         * modules/xmemdup0: New file.
28956         * lib/xmemdup0.h: Likewise.
28957         * lib/xmemdup0.c: Likewise.
28958         * MODULES.html.sh (Memory management functions): Add xmemdup0.
28959         * lib/xalloc.h (xmemdup0): Remove.
28960         * lib/xmalloc.c (xmemdup0): Likewise.
28961
28962 2008-05-13  Eric Blake  <ebb9@byu.net>
28963             Bruno Haible  <bruno@clisp.org>
28964
28965         Reduce number of forks required during autoconf.
28966         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28967         and gl_LIBSOURCES_DIR.
28968         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28969         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28970         m4_syscmd per file.
28971         <m4_foreach_w>: Move...
28972         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28973
28974 2008-05-13  Eric Blake  <ebb9@byu.net>
28975
28976         * gnulib-tool: Fix various comment typos.
28977
28978 2008-05-12  Bruno Haible  <bruno@clisp.org>
28979
28980         Tailor the linebreaking algorithm.
28981         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28982
28983 2008-05-12  Bruno Haible  <bruno@clisp.org>
28984
28985         Update to Unicode 5.0.0.
28986         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28987         LBP_JV, LBP_JT. Redistribute values.
28988         (unilbrk_table): Change size.
28989         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28990         Unicode TR#14 rev. 22.
28991         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28992         LBP_JV, LBP_JT. Redistribute values.
28993         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28994         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28995         Update.
28996         * lib/unilbrk/lbrkprop1.h: Regenerated.
28997         * lib/unilbrk/lbrkprop2.h: Regenerated.
28998         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28999         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29000         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29001         Likewise.
29002         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29003         Likewise.
29004         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29005         result.
29006         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29007         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29008         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29009         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29010         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29011         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29012
29013 2008-05-11  Bruno Haible  <bruno@clisp.org>
29014
29015         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29016
29017 2008-05-11  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29020         * modules/unilbrk/gen-lbrk: New file.
29021
29022 2008-05-11  Bruno Haible  <bruno@clisp.org>
29023
29024         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29025         * m4/sha512.m4 (gl_SHA512): Likewise.
29026
29027 2008-05-11  Jim Meyering  <meyering@redhat.com>
29028
29029         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29030         * modules/crypto/sha256: New file.
29031         * modules/crypto/sha512: Likewise.
29032         * lib/sha256.c: Likewise.
29033         * lib/sha256.h: Likewise.
29034         * lib/sha512.c: Likewise.
29035         * lib/sha512.h: Likewise.
29036         * lib/u64.h: Likewise.
29037         * m4/sha256.m4: Likewise.
29038         * m4/sha512.m4: Likewise.
29039         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29040
29041 2008-05-10  Bruno Haible  <bruno@clisp.org>
29042
29043         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29044         (Input/Output <stdio.h>): Add xprintf.
29045         (Signal handling <signal.h>): Add strsignal.
29046         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29047         (Core language properties): Add func.
29048         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29049         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29050         strings.
29051         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29052         (Input/output): New section.
29053         (File system functions): Add openat-die, stat-macros.
29054         (Networking functions): Add sockets.
29055         (Unicode string functions): Add unictype/*.
29056         (Support for building libraries and executables): Add gperf.
29057         (Support for building documentation): Add agpl-3.0.
29058         (Misc): Add nocrash.
29059
29060 2008-05-10  Bruno Haible  <bruno@clisp.org>
29061
29062         * modules/unictype/gen-ctype: New file.
29063
29064 2008-05-10  Jim Meyering  <meyering@redhat.com>
29065
29066         Make chdir-safer.c more efficient on a system with no symlinks.
29067         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29068         also if ELOOP is zero.  Suggested by Bruno Haible.
29069
29070         Make chdir-safer.c slightly safer.
29071         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29072         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29073
29074         Avoid compile failure on systems without ELOOP (like mingw).
29075         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29076         Reported by Bruno Haible.
29077
29078 2008-05-10  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29081         (is_utf8_encoding): Use a case-insensitive comparison.
29082         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29083         streq.
29084
29085 2008-05-10  Bruno Haible  <bruno@clisp.org>
29086
29087         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29088         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29089         * lib/unilbrk/ulc-common.h (iconv_string_length,
29090         iconv_string_keeping_offsets): Remove declarations.
29091         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29092         Don't include <iconv.h>, streq.h, xsize.h.
29093         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29094         conversion.
29095         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29096         <iconv.h>, streq.h, xsize.h.
29097         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29098         conversion.
29099         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29100         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29101         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29102         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29103
29104 2008-05-10  Bruno Haible  <bruno@clisp.org>
29105
29106         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29107         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29108
29109         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29110         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29111
29112         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29113         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29114
29115         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29116         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29117
29118         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29119         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29120
29121         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29122         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29123
29124         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29125         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29126
29127         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29128         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29129
29130 2008-05-10  Bruno Haible  <bruno@clisp.org>
29131
29132         Split up 'linebreak' module.
29133         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29134         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29135         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29136         modifications.
29137         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29138         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29139         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29140         lib/linebreak.c.
29141         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29142         lib/linebreak.c.
29143         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29144         lib/linebreak.c.
29145         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29146         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29147         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29148         lib/linebreak.c.
29149         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29150         lib/linebreak.c.
29151         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29152         lib/linebreak.c.
29153         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29154         lib/linebreak.c.
29155         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29156         lib/linebreak.c.
29157         * modules/unilbrk/base: New file.
29158         * modules/unilbrk/tables: New file.
29159         * modules/unilbrk/u8-possible-linebreaks: New file.
29160         * modules/unilbrk/u16-possible-linebreaks: New file.
29161         * modules/unilbrk/u32-possible-linebreaks: New file.
29162         * modules/unilbrk/ulc-common: New file.
29163         * modules/unilbrk/ulc-possible-linebreaks: New file.
29164         * modules/unilbrk/u8-width-linebreaks: New file.
29165         * modules/unilbrk/u16-width-linebreaks: New file.
29166         * modules/unilbrk/u32-width-linebreaks: New file.
29167         * modules/unilbrk/ulc-width-linebreaks: New file.
29168         * lib/linebreak.h: Remove file.
29169         * lib/linebreak.c: Remove file.
29170         * m4/linebreak.m4: Remove file.
29171         * modules/linebreak: Remove file.
29172         * NEWS: Mention the changes.
29173
29174 2008-05-09  Eric Blake  <ebb9@byu.net>
29175
29176         Add xmemdup0.
29177         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29178         implementation.
29179         * lib/xmalloc.c (xmemdup0): New C implementation.
29180
29181 2008-05-08  Bruno Haible  <bruno@clisp.org>
29182
29183         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29184
29185 2008-05-07  Eric Blake  <ebb9@byu.net>
29186
29187         Support cross-compilation of <wctype.h>.
29188         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29189         AC_CACHE_CHECK.
29190
29191 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29192
29193         * build-aux/vc-list-files: Add support for bzr.
29194
29195 2008-05-03  Jim Meyering  <meyering@redhat.com>
29196
29197         avoid failed assertion with tight malloc
29198         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29199
29200 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29201
29202         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29203         are needed from arpa/inet.h.
29204         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29205         Reported by Bruno Haible.
29206
29207 2008-05-02  Jim Meyering  <meyering@redhat.com>
29208
29209         avoid compilation error on FreeBSD 6
29210         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29211
29212 2008-05-01  Jim Meyering  <meyering@redhat.com>
29213
29214         useless-if-before-free: correct --help's exit status description
29215         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29216         for one or more matches, etc.  Reported by Bruno Haible.
29217
29218         vc-list-files: make the stand-alone gnulib test work
29219         * modules/vc-list-files-tests (configure.ac):
29220         Define and AC_SUBST abs_aux_dir.
29221         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29222         $(abs_top_srcdir) to each script and having each of them
29223         duplicate the work of setting PATH, set PATH here, using
29224         the new variable, abs_aux_dir instead.
29225         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29226         * tests/test-vc-list-files-git.sh: Likewise.
29227         Reported by Bruno Haible.
29228
29229 2008-05-01  Bruno Haible  <bruno@clisp.org>
29230
29231         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29232         reallocation. Rename 'done' to 'found_delimiter'.
29233
29234 2008-05-01  Jim Meyering  <meyering@redhat.com>
29235
29236         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29237         * build-aux/vc-list-files: Use `...`, not $(...).
29238
29239 2008-04-30  Jim Meyering  <meyering@redhat.com>
29240
29241         add tests for vc-list-files
29242         * modules/vc-list-files-tests: New module.
29243         * tests/test-vc-list-files-cvs.sh: New file.
29244         * tests/test-vc-list-files-git.sh: New file.
29245
29246         avoid a warning from gcc
29247         * lib/getndelim2.c (IF_LINT): Define.
29248         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29249
29250         vc-list-files: work properly with build-aux/cvsu, too
29251         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29252         to all cvs-based clauses.
29253
29254         vc-list-files: work properly in the CVS+awk case, too
29255         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29256
29257         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29258         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29259         take more than one file argument, so .  Add quotes, just in case $dir
29260         ever contains a shell meta-character.  Prompted by Soren Hansen in
29261         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29262
29263 2008-04-29  Eric Blake  <ebb9@byu.net>
29264
29265         Optimize getndelim2 to use block operations when possible.
29266         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29267         freadseek, and memchr2.
29268         * lib/getndelim2.c (getndelim2): Use them for block reads.
29269
29270 2008-04-29  Bruno Haible  <bruno@clisp.org>
29271
29272         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29273         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29274         * modules/inet_ntop (Depends-on): Add extensions.
29275         * modules/inet_pton (Depends-on): Likewise.
29276         Reported by Simon Josefsson.
29277
29278 2008-04-29  Jim Meyering  <meyering@redhat.com>
29279
29280         When the is more than one match in a block, match all of them.
29281         * build-aux/useless-if-before-free: Iterate through each block
29282         until there are no more matches.
29283
29284         Fix broken useless-if-before-free script.
29285         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29286         the expression to match cast of argument to free-like function.
29287
29288 2008-04-29  Eric Blake  <ebb9@byu.net>
29289
29290         Use new header.
29291         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29292
29293 2008-04-29  Jim Meyering  <meyering@redhat.com>
29294
29295         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29296         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29297         by gnulib to exist and to declare e.g., inet_ntop.
29298         Don't include "inet_ntop.h", now removed.
29299
29300         * m4/arpa_inet_h.m4: Remove trailing blanks.
29301
29302 2008-04-29  Eric Blake  <ebb9@byu.net>
29303
29304         Silence valgrind on safe reads beyond potential array bounds.
29305         * lib/rawmemchr.valgrind: New file.
29306         * lib/strchrnul.valgrind: Likewise.
29307         * modules/rawmemchr (Files): Distribute new file.
29308         * modules/strchrnul (Files): Likewise.
29309         Suggested by Bruno Haible.
29310
29311 2008-04-29  Bruno Haible  <bruno@clisp.org>
29312
29313         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29314         (inet_ntop, inet_pton): Change portability warning's wording.
29315         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29316         Invoke gl_CHECK_NEXT_HEADERS.
29317         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29318         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29319         set ARPA_INET_H.
29320         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29321         * modules/arpa_inet (Description): No longer only for systems that
29322         lack it.
29323         (Depends-on): Add include_next.
29324         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29325         HAVE_ARPA_INET_H.
29326
29327 2008-04-29  Jim Meyering  <meyering@redhat.com>
29328
29329         * modules/mkdir (License): Re-license as LGPLv2+.
29330
29331 2008-04-29  Bruno Haible  <bruno@clisp.org>
29332
29333         * modules/rawmemchr (Maintainer): Set to Eric.
29334         * modules/strchrnul (Maintainer): Likewise.
29335
29336 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29337
29338         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29339         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29340
29341         * modules/arpa_inet (arpa/inet.h): Use them.
29342
29343 2008-04-28  Eric Blake  <ebb9@byu.net>
29344
29345         Test getndelim2.
29346         * modules/getndelim2-tests: New file.
29347         * tests/test-getndelim2.c: Likewise.
29348         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29349         stream.
29350         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29351
29352         * MODULES.html.sh: Document new module.
29353
29354 2008-04-20  Bruno Haible  <bruno@clisp.org>
29355
29356         * lib/c-stack.c (die): Use raise.
29357         * modules/c-stack (Depends-on): Add raise.
29358
29359 2008-04-28  Bruno Haible  <bruno@clisp.org>
29360
29361         Expect rpmatch to be declared.
29362         * lib/yesno.c (rpmatch): Remove declaration.
29363
29364         Declare rpmatch.
29365         * lib/stdlib.in.h (rpmatch): New declaration.
29366         * lib/rpmatch.c: Include <stdlib.h> first.
29367         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29368         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29370         HAVE_RPMATCH.
29371         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29373         (Include): Set to <stdlib.h>.
29374         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29375         HAVE_RPMATCH.
29376         * NEWS: Document the change.
29377
29378 2008-04-28  Bruno Haible  <bruno@clisp.org>
29379
29380         Change rpmatch to use nl_langinfo when appropriate.
29381         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29382         (N_): New macro.
29383         (localized_pattern): New function/macro.
29384         (try): Remove match, nomatch arguments. Copy the pattern into safe
29385         memory before caching it.
29386         (rpmatch): Use localized_pattern. Add translator comments.
29387         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29388         Suggested by Eric Blake.
29389         * modules/rpmatch (Depends-on): Add stdbool.
29390
29391 2008-04-28  Eric Blake  <ebb9@byu.net>
29392
29393         Add rawmemchr module, matching glibc.
29394         * modules/string (Makefile.am): New indicator.
29395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29396         * lib/string.in.h (rawmemchr): Declare when appropriate.
29397         * modules/rawmemchr: New file.
29398         * m4/rawmemchr.m4: Likewise.
29399         * lib/rawmemchr.c: Likewise.
29400         * modules/rawmemchr-tests: Likewise.
29401         * tests/test-rawmemchr.c: Likewise.
29402         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
29403         module.
29404         * modules/strchrnul (Depends-on): Add rawmemchr.
29405         * lib/strchrnul.c (strchrnul): Optimize a corner case.
29406
29407         Whitespace cleanup.
29408         * tests/test-strchrnul.c: Reindent.
29409         * lib/strchrnul.c: Likewise.
29410
29411         Optimize and test strchrnul.
29412         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
29413         * modules/strchrnul-tests: New file.
29414         * tests/test-strchrnul.c: Likewise.
29415
29416         Remove intprops dependency.
29417         * modules/memchr (Depends-on): Remove intprops.
29418         * modules/memrchr (Depends-on): Likewise.
29419         * modules/memchr2 (Depends-on): Likewise.
29420         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
29421         * lib/memrchr.c (__memrchr): Likewise.
29422         * lib/memrchr2.c (memchr2): Likewise.
29423         Reported by Simon Josefsson.
29424
29425 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29426
29427         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
29428         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29429
29430 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29431
29432         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
29433
29434         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
29435
29436         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
29437
29438         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
29439         declarations.
29440         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
29441
29442         * m4/inet_pton.m4: Don't check for header files.
29443
29444         * m4/inet_ntop.m4: Don't check for header files.
29445
29446 2008-04-28  Simon Josefsson  <simon@josefsson.org>
29447
29448         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
29449         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
29450         trigger for cygwin).
29451         Reported by Bruno Haible  <bruno@clisp.org>.
29452
29453 2008-04-28  Bruno Haible  <bruno@clisp.org>
29454
29455         * doc/posix-functions/strdup.texi: Mention mingw problem.
29456
29457 2008-04-27  Bruno Haible  <bruno@clisp.org>
29458
29459         * modules/stat-time-tests (Depends-on): Add sleep.
29460         * tests/test-stat-time.c (force_unlink): New function.
29461         (cleanup): Use it.
29462         (test_mtime): Remove the ctime related tests.
29463         (test_ctime): New function, containing the ctime related tests.
29464         (main): Call test_ctime, except on native Windows platforms.
29465
29466 2008-04-27  Bruno Haible  <bruno@clisp.org>
29467
29468         * lib/rpmatch.c (rpmatch): Add some comments.
29469         Reported by James Youngman <jay@gnu.org>.
29470
29471 2008-04-27  Bruno Haible  <bruno@clisp.org>
29472
29473         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
29474         quiet NaNs.
29475
29476 2008-04-27  Bruno Haible  <bruno@clisp.org>
29477
29478         Make test-yesno.sh work on mingw.
29479         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
29480         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
29481         (main): Set stdin to binary mode.
29482         * modules/yesno-tests (Depends-on): Add binary-io.
29483
29484 2008-04-27  Bruno Haible  <bruno@clisp.org>
29485
29486         Fix 'isfinite' on x86, x86_64, ia64 platforms.
29487         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
29488         argument that lie outside the IEEE 854 domain.
29489         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
29490         (gl_ISFINITE): Use it.
29491         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
29492
29493 2008-04-27  Bruno Haible  <bruno@clisp.org>
29494
29495         Allow local renaming in config.h.
29496         * lib/memrchr.c (memrchr): Don't undefine outside libc.
29497
29498 2008-04-27  Bruno Haible  <bruno@clisp.org>
29499
29500         * lib/memchr.c (__memchr): Change type of 'i'.
29501         * lib/memchr2.c (memchr2): Likewise.
29502
29503 2008-04-26  Eric Blake  <ebb9@byu.net>
29504         and Bruno Haible  <bruno@clisp.org>
29505
29506         Optimize and test memrchr.
29507         * modules/memrchr (Depends-on): Add intprops.
29508         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
29509         * modules/memrchr-tests: New file.
29510         * tests/test-memrchr.c: New file.
29511
29512 2008-04-26  Bruno Haible  <bruno@clisp.org>
29513
29514         Add tentative support for DragonFly BSD.
29515         * lib/stdio-impl.h: Add macros for DragonFly BSD.
29516         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
29517         fp.
29518         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29519         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
29520         * lib/fpurge.c (fpurge): Likewise.
29521         * lib/freadable.c (freaadable): Likewise.
29522         * lib/freadahead.c (freadahead): Likewise.
29523         * lib/freading.c (freading): Likewise.
29524         * lib/freadptr.c (freadptr): Likewise.
29525         * lib/freadseek.c (freadptrinc): Likewise.
29526         * lib/fseeko.c (fseeko): Likewise.
29527         * lib/fseterr.c (fseterr): Likewise.
29528         * lib/fwritable.c (fwritable): Likewise.
29529         * lib/fwriting.c (fwriting): Likewise.
29530
29531 2008-04-26  Bruno Haible  <bruno@clisp.org>
29532
29533         * lib/stdio-impl.h: New file.
29534         * lib/fbufmode.c: Include stdio-impl.h.
29535         (fbufmode): Use fp_, remove redundant #defines.
29536         * lib/fflush.c: Include stdio-impl.h.
29537         (clear_ungetc_buffer): Remove redundant #defines.
29538         * lib/fpurge.c: Include stdio-impl.h.
29539         (fpurge): Remove redundant #defines.
29540         * lib/freadable.c: Include stdio-impl.h.
29541         (freadable): Remove redundant #defines.
29542         * lib/freadahead.c: Include stdio-impl.h.
29543         (freadahead): Remove redundant #defines.
29544         * lib/freading.c: Include stdio-impl.h.
29545         (freading): Remove redundant #defines.
29546         * lib/freadptr.c: Include stdio-impl.h.
29547         (freadptr): Remove redundant #defines.
29548         * lib/freadseek.c: Include stdio-impl.h.
29549         (freadptrinc): Remove redundant #defines.
29550         * lib/fseeko.c: Include stdio-impl.h.
29551         (rpl_fseeko): Remove redundant #defines.
29552         * lib/fseterr.c: Include stdio-impl.h.
29553         (fseterr): Remove redundant #defines.
29554         * lib/fwritable.c: Include stdio-impl.h.
29555         (fwritable: Remove redundant #defines.
29556         * lib/fwriting.c: Include stdio-impl.h.
29557         (fwriting): Remove redundant #defines.
29558         * modules/fbufmode (Files): Add lib/stdio-impl.h.
29559         * modules/fflush (Files): Likewise.
29560         * modules/fpurge (Files): Likewise.
29561         * modules/freadable (Files): Likewise.
29562         * modules/freadahead (Files): Likewise.
29563         * modules/freading (Files): Likewise.
29564         * modules/freadptr (Files): Likewise.
29565         * modules/freadseek (Files): Likewise.
29566         * modules/fseeko (Files): Likewise.
29567         * modules/fseterr (Files): Likewise.
29568         * modules/fwritable (Files): Likewise.
29569         * modules/fwriting (Files): Likewise.
29570
29571 2008-04-26  Bruno Haible  <bruno@clisp.org>
29572
29573         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
29574         restore_seek_optimization, update_fpos_cache): New functions, extracted
29575         from rpl_fflush.
29576         (rpl_fflush): Use them.
29577         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
29578         (gl_REPLACE_FFLUSH): Use it.
29579
29580 2008-04-26  Bruno Haible  <bruno@clisp.org>
29581
29582         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
29583         on Solaris.
29584         * tests/test-xstrtoimax.sh: Likewise.
29585         * tests/test-xstrtoumax.sh: Likewise.
29586         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29587
29588 2008-04-26  Bruno Haible  <bruno@clisp.org>
29589
29590         * modules/memchr-tests: New file.
29591         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
29592
29593 2008-04-26  Eric Blake  <ebb9@byu.net>
29594             Bruno Haible  <bruno@clisp.org>
29595
29596         * lib/memchr.c: Include intprops.h.
29597         (__memchr): Optimize parallel detection of matching bytes. Rename local
29598         variables. Add explanatory comments.
29599
29600 2008-04-26  Bruno Haible  <bruno@clisp.org>
29601
29602         Fix module 'memchr', broken since 2000-10-28.
29603         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
29604
29605 2008-04-26  Bruno Haible  <bruno@clisp.org>
29606
29607         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
29608         comments.
29609
29610 2008-04-25  Eric Blake  <ebb9@byu.net>
29611
29612         Use native fstatat on cygwin 1.7.0.
29613         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
29614         first.
29615
29616 2008-04-23  Eric Blake  <ebb9@byu.net>
29617
29618         Improve memchr2 performance.
29619         * lib/memchr2.c (memchr2): Further optimize parallel detection of
29620         NUL bytes.
29621         * modules/memchr2 (Depends-on): Use intprops.h.
29622
29623 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29624
29625         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
29626         an inline function instead of a CPP macro.  Patch by Ben Pfaff
29627         <blp@cs.stanford.edu>.
29628
29629 2008-04-23  Simon Josefsson  <simon@josefsson.org>
29630
29631         * lib/arpa_inet.in.h: New file.
29632
29633         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
29634         (Makefile.am): Sed in substitute header file.
29635
29636         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
29637         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
29638
29639         * modules/inet_ntop (configure.ac): Use
29640         gl_ARPA_INET_MODULE_INDICATOR.
29641
29642         * modules/inet_pton (configure.ac): Use
29643         gl_ARPA_INET_MODULE_INDICATOR.
29644
29645 2008-04-22  Jim Meyering  <meyering@redhat.com>
29646
29647         * modules/verify (License): Re-license as LGPLv2+.
29648
29649 2008-04-22  Simon Josefsson  <simon@josefsson.org>
29650
29651         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
29652         parameter to void* as per POSIX standard (MinGW uses char*).
29653
29654 2008-04-21  Bruno Haible  <bruno@clisp.org>
29655
29656         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
29657         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
29658         Define to replacements if REPLACE_ISWCNTRL is 1.
29659         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
29660         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
29661         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
29662         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
29663         what it fixes.
29664         * doc/posix-functions/iswalpha.texi: Likewise.
29665         * doc/posix-functions/iswblank.texi: Likewise.
29666         * doc/posix-functions/iswcntrl.texi: Likewise.
29667         * doc/posix-functions/iswdigit.texi: Likewise.
29668         * doc/posix-functions/iswgraph.texi: Likewise.
29669         * doc/posix-functions/iswlower.texi: Likewise.
29670         * doc/posix-functions/iswprint.texi: Likewise.
29671         * doc/posix-functions/iswpunct.texi: Likewise.
29672         * doc/posix-functions/iswspace.texi: Likewise.
29673         * doc/posix-functions/iswupper.texi: Likewise.
29674         * doc/posix-functions/iswxdigit.texi: Likewise.
29675         Reported by Alain Guibert.
29676
29677 2008-04-21  Bruno Haible  <bruno@clisp.org>
29678
29679         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
29680         Patch by Alain Guibert.
29681
29682 2008-04-21  Bruno Haible  <bruno@clisp.org>
29683
29684         Fix test failures on mingw.
29685         * tests/test-xstrtol.c (print_no_progname): New function.
29686         (main): Install it in error_print_progname hook.
29687         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
29688         * tests/test-xstrtoimax.sh: Likewise.
29689         * tests/test-xstrtoumax.sh: Likewise.
29690
29691 2008-04-21  Bruno Haible  <bruno@clisp.org>
29692
29693         Fix test failure on mingw.
29694         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
29695
29696 2008-04-21  Bruno Haible  <bruno@clisp.org>
29697
29698         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
29699         Actually assign a value.
29700
29701 2008-04-20  Bruno Haible  <bruno@clisp.org>
29702
29703         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
29704         take 2.
29705         * lib/canonicalize.c (canonicalize_file_name): Elide if the
29706         'canonicalize-lgpl' module is also used.
29707         * lib/canonicalize-lgpl.c: Undo last change.
29708         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
29709
29710 2008-04-20  Bruno Haible  <bruno@clisp.org>
29711
29712         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
29713         config.h. Provide _mkdir based fallback for mingw.
29714         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
29715         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
29716         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
29717         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
29718         rather than defining mkdir in config.h.
29719         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
29720         (gl_SYS_STAT_H_DEFAULTS): New macro.
29721         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
29722         HAVE_IO_H any more.
29723         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
29724         HAVE_DECL_MKDIR and HAVE_IO_H.
29725
29726 2008-04-20  Bruno Haible  <bruno@clisp.org>
29727
29728         * lib/isapipe.c: Port to native Windows platforms.
29729
29730 2008-04-20  Bruno Haible  <bruno@clisp.org>
29731
29732         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
29733
29734 2008-04-21  Eric Blake  <ebb9@byu.net>
29735
29736         Work around preprocessors that don't handle UINTMAX_MAX.
29737         * lib/memchr2.c (memchr2): Avoid embedded #if.
29738         Reported by Alain Guibert, fix suggested by Bruno Haible.
29739
29740 2008-04-21  Simon Josefsson  <simon@josefsson.org>
29741
29742         * doc/posix-functions/strftime.texi (strftime): Explain better
29743         Windows incompatibility.  Suggested by Micah Cowan
29744         <micah@cowan.name>.
29745
29746 2008-04-20  Bruno Haible  <bruno@clisp.org>
29747
29748         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
29749         unistr/u8-mblen.
29750
29751 2008-04-20  Bruno Haible  <bruno@clisp.org>
29752
29753         Fix test failure on platforms with non-GNU iconv.
29754         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
29755         (U_TO_U8): Use it, rather than u16_to_u8.
29756         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
29757         units at the end of the input string.
29758         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
29759
29760 2008-04-20  Bruno Haible  <bruno@clisp.org>
29761
29762         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
29763         when the resulting length is 0.
29764         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
29765
29766 2008-04-20  Bruno Haible  <bruno@clisp.org>
29767
29768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
29769         works.
29770         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
29771
29772 2008-04-20  Bruno Haible  <bruno@clisp.org>
29773
29774         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
29775         * modules/tsearch-tests (configure.ac): Test for initstate function.
29776
29777 2008-04-20  Bruno Haible  <bruno@clisp.org>
29778
29779         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
29780         for nlink_t if missing.
29781         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
29782
29783 2008-04-19  Bruno Haible  <bruno@clisp.org>
29784
29785         Work around snprintf bug on Linux libc5.
29786         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
29787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29788         gl_SNPRINTF_SIZE1.
29789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29790         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
29791         that test failed.
29792         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29793         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
29794         * modules/snprintf (Files): Add m4/printf.m4.
29795         * modules/vsnprintf (Files): Likewise.
29796         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
29797         * doc/posix-functions/vsnprintf.texi: Likewise.
29798
29799 2008-04-19  Bruno Haible  <bruno@clisp.org>
29800
29801         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
29802         from 0.0058 to less than 10^-7.
29803
29804 2008-04-19  Bruno Haible  <bruno@clisp.org>
29805
29806         Fix rounding when a precision is given.
29807         * lib/vasnprintf.c (is_borderline): New function.
29808         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
29809         9...9x.
29810         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
29811         %e, %g.
29812         * tests/test-vasprintf-posix.c (test_function): Likewise.
29813         * tests/test-snprintf-posix.h (test_function): Likewise.
29814         * tests/test-sprintf-posix.h (test_function): Likewise.
29815         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
29816         * tests/test-printf-posix.h (test_function): Likewise.
29817         * tests/test-printf-posix.output: Update.
29818         Reported by John Darrington <john@darrington.wattle.id.au> via
29819         Ben Pfaff <blp@cs.stanford.edu>.
29820
29821 2008-04-18  Simon Josefsson  <simon@josefsson.org>
29822
29823         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
29824         Suggested by Bruno Haible <bruno@clisp.org>.
29825
29826 2008-04-17  Bruno Haible  <bruno@clisp.org>
29827
29828         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
29829         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
29830         implementation.
29831         Patch by Bruce Merry <bmerry@gmail.com>.
29832
29833 2008-04-17  Simon Josefsson  <simon@josefsson.org>
29834
29835         * doc/posix-functions/strftime.texi (strftime): Mention that %e
29836         doesn't work under Windows.
29837
29838 2008-04-16  Bruno Haible  <bruno@clisp.org>
29839
29840         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
29841         New macros.
29842         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
29843         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
29844         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
29845         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
29846         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
29847         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
29848         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
29849         macros.
29850         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
29851         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
29852         Northern Sotho, Uighur.
29853
29854 2008-04-16  Bruno Haible  <bruno@clisp.org>
29855
29856         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
29857         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
29858         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
29859         Reported by Daniel Bergström <daniel@octocode.com>.
29860
29861 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
29862             Bruno Haible  <bruno@clisp.org>
29863
29864         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
29865         function.
29866         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
29867         New functions, mostly extracted from gl_locale_name_default.
29868         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
29869
29870 2008-04-16  Eric Blake  <ebb9@byu.net>
29871
29872         Adjust strtod detection to catch glibc 2.7 bug.
29873         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
29874         Reported by John Gatewood Ham.
29875
29876 2008-04-16  Bruno Haible  <bruno@clisp.org>
29877
29878         Add tentative support for Linux libc5.
29879         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
29880         * lib/fpurge.c (fpurge): Likewise.
29881         * lib/freadable.c (freadable): Likewise.
29882         * lib/freadahead.c (freadahead): Likewise.
29883         * lib/freading.c (freading): Likewise.
29884         * lib/freadptr.c (freadptr): Likewise.
29885         * lib/freadseek.c (freadptrinc): Likewise.
29886         * lib/fseeko.c (rpl_fseeko): Likewise.
29887         * lib/fseterr.c (fseterr): Likewise.
29888         * lib/fwritable.c (fwritable): Likewise.
29889         * lib/fwriting.c (fwriting): Likewise.
29890         Reported by Alain Guibert <alguibert+bts@free.fr>.
29891
29892 2008-04-15  Bruno Haible  <bruno@clisp.org>
29893
29894         * modules/mathl (configure.ac): Define module indicator.
29895
29896 2008-04-15  Bruno Haible  <bruno@clisp.org>
29897
29898         * lib/logl.c (logl): Remove unused variables.
29899
29900 2008-04-15  Bruno Haible  <bruno@clisp.org>
29901
29902         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
29903         fails.
29904
29905 2008-04-15  Bruno Haible  <bruno@clisp.org>
29906
29907         * lib/trim.c (trim2): Fix argument of isspace() macro.
29908
29909 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
29910
29911         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
29912         to 0.
29913         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
29914
29915 2008-04-14  Bruno Haible  <bruno@clisp.org>
29916
29917         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
29918         AC_LANG_PROGRAM argument.
29919         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
29920         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
29921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29922         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29923         * m4/math_h.m4 (gl_MATH_H): Likewise.
29924         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
29925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29926         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29927         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
29928         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29929         * m4/regex.m4 (gl_REGEX): Likewise.
29930         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
29931         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
29932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29933         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
29934         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29935         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29938
29939 2008-04-14  Jim Meyering  <meyering@redhat.com>
29940
29941         test-strtod: fix typos: s/abs/fabs/
29942         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
29943
29944 2008-04-13  Bruno Haible  <bruno@clisp.org>
29945
29946         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
29947         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
29948         module is also used and while not building the reloc-wrapper.
29949
29950 2008-04-13  Bruno Haible  <bruno@clisp.org>
29951
29952         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
29953
29954 2008-04-13  Bruno Haible  <bruno@clisp.org>
29955
29956         Fix AIX compilation failure introduced on 2008-04-02.
29957         * tests/test-frexp.c (exp): Undefine before redefining.
29958         * tests/test-frexpl.c (exp): Likewise.
29959
29960 2008-04-13  Bruno Haible  <bruno@clisp.org>
29961
29962         Work around a HP-UX stdio bug.
29963         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
29964         * tests/test-ftello.c (main): Likewise.
29965         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29966         * doc/posix-functions/ftello.texi: Likewise.
29967
29968 2008-04-13  Bruno Haible  <bruno@clisp.org>
29969
29970         Make test-signbit pass on HP-UX/hppa.
29971         * tests/test-signbit.c (minus_zerol): New variable.
29972         (test_signbitl): Use it.
29973
29974 2008-04-13  Bruno Haible  <bruno@clisp.org>
29975
29976         Make truncl work on OSF/1 4.0.
29977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29978         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29979         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29981         HAVE_DECL_TRUNCL.
29982         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29983         HAVE_DECL_TRUNCL.
29984         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29985
29986 2008-04-13  Bruno Haible  <bruno@clisp.org>
29987
29988         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29989
29990 2008-04-13  Bruno Haible  <bruno@clisp.org>
29991
29992         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29993         expression, so as to avoid HP-UX 11 cc compiler bug.
29994
29995 2008-04-13  Bruno Haible  <bruno@clisp.org>
29996
29997         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29998
29999 2008-04-13  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/git-merge-changelog.c: Remove empty declaration outside of
30002         functions.
30003
30004 2008-04-13  Bruno Haible  <bruno@clisp.org>
30005
30006         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30007
30008 2008-04-13  Bruno Haible  <bruno@clisp.org>
30009
30010         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30011         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30012         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30013         also if it exists but lacks definitions of the SHUT_* macros.
30014         * modules/sys_socket (Description): Update.
30015         Reported by Elbert Pol <e.pol@chello.nl>.
30016
30017 2008-04-13  Bruno Haible  <bruno@clisp.org>
30018
30019         * lib/localcharset.c (OS2): Don't redefine if already defined.
30020         Reported by Elbert Pol <e.pol@chello.nl>.
30021
30022 2008-04-13  Bruno Haible  <bruno@clisp.org>
30023
30024         * lib/binary-io.h [__EMX__]: Include <io.h>.
30025         Reported by Elbert Pol <e.pol@chello.nl>.
30026
30027 2008-04-12  Bruno Haible  <bruno@clisp.org>
30028
30029         * lib/fpucw.h: Enable the definitions also for x86_64.
30030         Needed for NetBSD/x86_64.
30031         Reported by Thomas Klausner <tk@giga.or.at>.
30032
30033 2008-04-12  Bruno Haible  <bruno@clisp.org>
30034
30035         * tests/test-strtod.c: Include isnand.h.
30036         (main): Use isnand instead of isnan.
30037         Reported by Jim Meyering.
30038
30039 2008-04-12  Bruno Haible  <bruno@clisp.org>
30040
30041         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30042         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30043
30044 2008-04-12  Jim Meyering  <meyering@redhat.com>
30045
30046         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30047
30048 2008-04-12  Bruno Haible  <bruno@clisp.org>
30049
30050         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30051         Reported by Elbert Pol <e.pol@chello.nl>.
30052
30053 2008-04-12  Eric Blake  <ebb9@byu.net>
30054
30055         Work around Solaris 10 math.h bug.
30056         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30057         (gl_MATH_H_DEFAULTS): Set up default.
30058         * modules/math (Makefile.am): Replace new indicators.
30059         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30060         * tests/test-math.c (main): Test this.
30061         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30062         * doc/posix-headers/math.texi (math.h): Mention bug.
30063         Reported by Nelson H. F. Beebe and Jim Meyering.
30064
30065 2008-04-11  Bruno Haible  <bruno@clisp.org>
30066
30067         Adapt to future versions of Apple GCC.
30068         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30069         Reported by Peter O'Gorman <peter@pogma.com>.
30070
30071 2008-04-11  Bruno Haible  <bruno@clisp.org>
30072
30073         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30074
30075 2008-04-11  Bruno Haible  <bruno@clisp.org>
30076
30077         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30078
30079         * modules/getaddrinfo-tests (Makefile.am): Define
30080         test_getaddrinfo_LDADD.
30081
30082 2008-04-11  Bruno Haible  <bruno@clisp.org>
30083
30084         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30085         (init): Fix syntax error.
30086         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30087         is declared.
30088
30089 2008-04-11  Bruno Haible  <bruno@clisp.org>
30090
30091         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30092         * modules/glob (Depends-on): Add stdbool.
30093
30094 2008-04-11  Bruno Haible  <bruno@clisp.org>
30095
30096         * lib/trim.c: Include <string.h>.
30097
30098 2008-04-11  Eric Blake  <ebb9@byu.net>
30099
30100         Avoid compile failure on OS/2.
30101         * lib/regex_internal.h (internal_function): Disable optimization
30102         on OS/2 (__EMX__), where it caused compiler error.
30103         Reported by Elbert Pol.
30104
30105 2008-04-11  Bruno Haible  <bruno@clisp.org>
30106
30107         Flush the standard error stream before aborting. Needed on mingw.
30108         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30109         * tests/test-array_list.c (ASSERT): Likewise.
30110         * tests/test-array_oset.c (ASSERT): Likewise.
30111         * tests/test-avltree_list.c (ASSERT): Likewise.
30112         * tests/test-avltree_oset.c (ASSERT): Likewise.
30113         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30114         * tests/test-binary-io.c (ASSERT): Likewise.
30115         * tests/test-byteswap.c (ASSERT): Likewise.
30116         * tests/test-c-ctype.c (ASSERT): Likewise.
30117         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30118         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30119         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30120         * tests/test-c-strstr.c (ASSERT): Likewise.
30121         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30122         * tests/test-canonicalize.c (ASSERT): Likewise.
30123         * tests/test-carray_list.c (ASSERT): Likewise.
30124         * tests/test-ceilf1.c (ASSERT): Likewise.
30125         * tests/test-ceilf2.c (ASSERT): Likewise.
30126         * tests/test-ceill.c (ASSERT): Likewise.
30127         * tests/test-count-one-bits.c (ASSERT): Likewise.
30128         * tests/test-fbufmode.c (ASSERT): Likewise.
30129         * tests/test-fflush2.c (ASSERT): Likewise.
30130         * tests/test-floorf1.c (ASSERT): Likewise.
30131         * tests/test-floorf2.c (ASSERT): Likewise.
30132         * tests/test-floorl.c (ASSERT): Likewise.
30133         * tests/test-fopen.c (ASSERT): Likewise.
30134         * tests/test-fpending.c (ASSERT): Likewise.
30135         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30136         * tests/test-fpurge.c (ASSERT): Likewise.
30137         * tests/test-freadable.c (ASSERT): Likewise.
30138         * tests/test-freadahead.c (ASSERT): Likewise.
30139         * tests/test-freading.c (ASSERT): Likewise.
30140         * tests/test-freadptr.c (ASSERT): Likewise.
30141         * tests/test-freadptr2.c (ASSERT): Likewise.
30142         * tests/test-freadseek.c (ASSERT): Likewise.
30143         * tests/test-freopen.c (ASSERT): Likewise.
30144         * tests/test-frexp.c (ASSERT): Likewise.
30145         * tests/test-frexpl.c (ASSERT): Likewise.
30146         * tests/test-fseek.c (ASSERT): Likewise.
30147         * tests/test-fseeko.c (ASSERT): Likewise.
30148         * tests/test-fstrcmp.c (ASSERT): Likewise.
30149         * tests/test-ftell.c (ASSERT): Likewise.
30150         * tests/test-ftello.c (ASSERT): Likewise.
30151         * tests/test-func.c (ASSERT): Likewise.
30152         * tests/test-fwritable.c (ASSERT): Likewise.
30153         * tests/test-fwriting.c (ASSERT): Likewise.
30154         * tests/test-getdelim.c (ASSERT): Likewise.
30155         * tests/test-getline.c (ASSERT): Likewise.
30156         * tests/test-i-ring.c (ASSERT): Likewise.
30157         * tests/test-iconv-utf.c (ASSERT): Likewise.
30158         * tests/test-iconv.c (ASSERT): Likewise.
30159         * tests/test-isfinite.c (ASSERT): Likewise.
30160         * tests/test-isnand.c (ASSERT): Likewise.
30161         * tests/test-isnanf.c (ASSERT): Likewise.
30162         * tests/test-isnanl.h (ASSERT): Likewise.
30163         * tests/test-ldexpl.c (ASSERT): Likewise.
30164         * tests/test-linked_list.c (ASSERT): Likewise.
30165         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30166         * tests/test-localename.c (ASSERT): Likewise.
30167         * tests/test-lseek.c (ASSERT): Likewise.
30168         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30169         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30170         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30171         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30172         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30173         * tests/test-mbschr.c (ASSERT): Likewise.
30174         * tests/test-mbscspn.c (ASSERT): Likewise.
30175         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30176         * tests/test-mbspbrk.c (ASSERT): Likewise.
30177         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30178         * tests/test-mbsrchr.c (ASSERT): Likewise.
30179         * tests/test-mbsspn.c (ASSERT): Likewise.
30180         * tests/test-mbsstr1.c (ASSERT): Likewise.
30181         * tests/test-mbsstr2.c (ASSERT): Likewise.
30182         * tests/test-mbsstr3.c (ASSERT): Likewise.
30183         * tests/test-memchr2.c (ASSERT): Likewise.
30184         * tests/test-memmem.c (ASSERT): Likewise.
30185         * tests/test-open.c (ASSERT): Likewise.
30186         * tests/test-printf-frexp.c (ASSERT): Likewise.
30187         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30188         * tests/test-printf-posix.c (ASSERT): Likewise.
30189         * tests/test-quotearg.c (ASSERT): Likewise.
30190         * tests/test-rbtree_list.c (ASSERT): Likewise.
30191         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30192         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30193         * tests/test-round1.c (ASSERT): Likewise.
30194         * tests/test-roundf1.c (ASSERT): Likewise.
30195         * tests/test-roundl.c (ASSERT): Likewise.
30196         * tests/test-signbit.c (ASSERT): Likewise.
30197         * tests/test-sleep.c (ASSERT): Likewise.
30198         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30199         * tests/test-snprintf.c (ASSERT): Likewise.
30200         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30201         * tests/test-stat-time.c (ASSERT): Likewise.
30202         * tests/test-strcasestr.c (ASSERT): Likewise.
30203         * tests/test-strerror.c (ASSERT): Likewise.
30204         * tests/test-striconv.c (ASSERT): Likewise.
30205         * tests/test-striconveh.c (ASSERT): Likewise.
30206         * tests/test-striconveha.c (ASSERT): Likewise.
30207         * tests/test-strsignal.c (ASSERT): Likewise.
30208         * tests/test-strstr.c (ASSERT): Likewise.
30209         * tests/test-strtod.c (ASSERT): Likewise.
30210         * tests/test-trunc1.c (ASSERT): Likewise.
30211         * tests/test-trunc2.c (ASSERT): Likewise.
30212         * tests/test-truncf1.c (ASSERT): Likewise.
30213         * tests/test-truncf2.c (ASSERT): Likewise.
30214         * tests/test-truncl.c (ASSERT): Likewise.
30215         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30216         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30217         * tests/test-vasnprintf.c (ASSERT): Likewise.
30218         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30219         * tests/test-vasprintf.c (ASSERT): Likewise.
30220         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30221         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30222         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30223         * tests/test-vsnprintf.c (ASSERT): Likewise.
30224         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30225         * tests/test-wcwidth.c (ASSERT): Likewise.
30226         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30227         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30228         * tests/test-xvasprintf.c (ASSERT): Likewise.
30229         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30230         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30231         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30232         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30233         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30234         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30235         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30236         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30237         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30238         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30239         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30240         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30241         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30242         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30243         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30244         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30245         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30246         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30247         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30248         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30249         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30250         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30251         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30252         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30253         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30254         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30255         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30256         * tests/unictype/test-combining.c (ASSERT): Likewise.
30257         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30258         * tests/unictype/test-digit.c (ASSERT): Likewise.
30259         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30260         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30261         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30262         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30263         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30264         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30265         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30266         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30267         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30268         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30269         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30270         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30271         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30272         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30273         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30274         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30275         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30276         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30277         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30278         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30279         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30280         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30281         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30282         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30283         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30284         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30285         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30286         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30287         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30288         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30289         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30290         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30291         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30292         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30293         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30294         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30295         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30296         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30297         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30298         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30299         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30300         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30301         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30302         Reported by Eric Blake.
30303
30304 2008-04-11  Bruno Haible  <bruno@clisp.org>
30305
30306         * lib/wchar.in.h: Tweak comment.
30307
30308 2008-04-11  Bruno Haible  <bruno@clisp.org>
30309
30310         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30311         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30312         gl_COMMON.
30313         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30314
30315 2008-04-11  Bruno Haible  <bruno@clisp.org>
30316
30317         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30318
30319 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30320
30321         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30322         of attempting to use non-existing /dev/*random.  Based on patch
30323         from Adam Strzelecki <ono@java.pl> in
30324         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30325
30326 2008-04-08  Bruno Haible  <bruno@clisp.org>
30327
30328         Add tentative support for emx+gcc.
30329         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30330         * lib/fpurge.c (fpurge): Likewise.
30331         * lib/freadable.c (freadable): Likewise.
30332         * lib/freadahead.c (freadahead): Likewise.
30333         * lib/freading.c (freading): Likewise.
30334         * lib/freadptr.c (freadptr): Likewise.
30335         * lib/freadseek.c (freadptrinc): Likewise.
30336         * lib/fseeko.c (rpl_fseeko): Likewise.
30337         * lib/fseterr.c (fseterr): Likewise.
30338         * lib/fwritable.c (fwritable): Likewise.
30339         * lib/fwriting.c (fwriting): Likewise.
30340         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30341
30342 2008-04-09  Eric Blake  <ebb9@byu.net>
30343
30344         Avoid some autoconf warnings.
30345         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30346         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30347         * m4/afs.m4 (gl_AFS): Likewise.
30348         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30349         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30351         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30352         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30353         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30354         (AC_CHECK_DECLS_ONCE): Likewise.
30355         Rename file...
30356         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30357         gnulib-tool requires autoconf 2.59 or better.
30358         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30359
30360 2008-04-08  Eric Blake  <ebb9@byu.net>
30361
30362         Use 'git describe --match' if present (added in git 1.5.5).
30363         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30364         if possible.
30365
30366 2008-04-08  Bruno Haible  <bruno@clisp.org>
30367
30368         Add tentative support for OpenServer.
30369         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30370         _ptr, _cnt.
30371         * lib/fpurge.c (fpurge): Likewise.
30372         * lib/freadable.c (freadable): Likewise.
30373         * lib/freadahead.c (freadahead): Likewise.
30374         * lib/freading.c (freading): Likewise.
30375         * lib/freadptr.c (freadptr): Likewise.
30376         * lib/freadseek.c (freadptrinc): Likewise.
30377         * lib/fseeko.c (rpl_fseeko): Likewise.
30378         * lib/fseterr.c (fseterr): Likewise.
30379         * lib/fwritable.c (fwritable): Likewise.
30380         * lib/fwriting.c (fwriting): Likewise.
30381         Reported by Roger Cornelius <rac@tenzing.org> and
30382         Brian K. White <brian@aljex.com>.
30383
30384 2008-04-06  Jim Meyering  <meyering@redhat.com>
30385
30386         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30387
30388 2008-04-06  Bruno Haible  <bruno@clisp.org>
30389
30390         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30391         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30392         * tests/test-printf-posix.sh: Likewise.
30393         * tests/test-vfprintf-posix.sh: Likewise.
30394         * tests/test-vprintf-posix.sh: Likewise.
30395         * tests/test-xprintf-posix.sh: Likewise.
30396
30397 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30398
30399         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30400         hide error from 'ls', needed on OS/2.
30401         Report by Elbert Pol <elbert.pol@gmail.com>.
30402
30403 2008-04-04  Eric Blake  <ebb9@byu.net>
30404
30405         Make test-fseeko.c failures meaningful.
30406         * tests/test-fseeko.c: Print line number on failure.
30407         * tests/test-fseek.c: Likewise.
30408         Reported by Nelson H. F. Beebe.
30409
30410         Improve strtod bug detection check.
30411         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
30412         required for Solaris 10.
30413         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
30414
30415 2008-04-04  Bruno Haible  <bruno@clisp.org>
30416
30417         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
30418         by m4/setenv.m4.
30419
30420 2008-04-03  Eric Blake  <ebb9@byu.net>
30421
30422         Ensure sane .version contents.
30423         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
30424         version string.
30425         * build-aux/git-version-gen: Improve documentation.
30426
30427         Make GNU make output nicer.
30428         * top/GNUmakefile [!_have-Makefile]: Add dependency on
30429         MAKECMDGOALS to enforce message for all command line targets.  Set
30430         srcdir for use in maint.mk.
30431
30432         Another maintainer tweak.
30433         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
30434         a target that regenerates version.
30435
30436 2008-04-03  Jim Meyering  <meyering@redhat.com>
30437
30438         vc-list-files: don't cause coreutils "make po-check" failure
30439         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
30440
30441 2008-04-03  Eric Blake  <ebb9@byu.net>
30442
30443         Allow VPATH usage of vc-list-files.
30444         * build-aux/vc-list-files (scriptversion): Add timestamp.
30445         (options): Add --help, --version, -C.
30446         (CVS): Support installed cvsu.
30447
30448 2008-04-02  Bruno Haible  <bruno@clisp.org>
30449
30450         Avoid some "statement with no effect" warnings from gcc.
30451         * tests/test-wctype.c (main): Explicitly ignore unused values.
30452         Reported by Jim Meyering.
30453
30454 2008-04-02  Jim Meyering  <meyering@redhat.com>
30455
30456         Avoid some warnings from "gcc -Wshadow".
30457         * tests/test-frexp.c (exp): Define to a different identifier.
30458         * tests/test-frexpl.c (exp): Likewise.
30459
30460 2008-04-03  Jim Meyering  <meyering@redhat.com>
30461
30462         bootstrap: remove dangling *.[ch] symlinks from lib
30463         * build-aux/bootstrap [dangling symlink removal]: Move find's
30464         -depth option to precede all others, to avoid a warning.
30465         Remove *.[ch] files too, and from "$source_base" (usually lib/).
30466
30467 2008-04-02  Bruno Haible  <bruno@clisp.org>
30468
30469         Avoid some warnings from "gcc -Wshadow".
30470         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
30471         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
30472         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
30473         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
30474         Reported by Jim Meyering.
30475
30476 2008-04-01  Bruno Haible  <bruno@clisp.org>
30477
30478         Fix test to work on IRIX 6.5 with cc.
30479         * tests/test-math.c (numeric_equal): New function.
30480         (main): Use it.
30481
30482 2008-04-01  Bruno Haible  <bruno@clisp.org>
30483
30484         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
30485
30486 2008-04-01  Bruno Haible  <bruno@clisp.org>
30487
30488         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
30489         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30490         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
30491         (Depends-on): Remove math.
30492
30493         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
30494         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30495         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
30496         (Depends-on): Remove math.
30497
30498         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
30499         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30500         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
30501         (Depends-on): Remove math.
30502         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
30503         (Depends-on): Remove math.
30504
30505         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
30506         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
30507         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
30508         (Depends-on): Remove math.
30509         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
30510         (Depends-on): Remove math.
30511
30512         * tests/test-round1.c: Include nan.h.
30513         (main): Use NaNd instead of NAN.
30514         * modules/round-tests (Files): Add tests/nan.h.
30515
30516         * tests/test-trunc1.c: Include nan.h.
30517         (main): Use NaNd instead of NAN.
30518         * modules/trunc-tests (Files): Add tests/nan.h.
30519
30520         * tests/test-roundf1.c: Include nan.h.
30521         (main): Use NaNf instead of NAN.
30522         * modules/roundf-tests (Files): Add tests/nan.h.
30523
30524         * tests/test-truncf1.c: Include nan.h.
30525         (main): Use NaNf instead of NAN.
30526         * modules/truncf-tests (Files): Add tests/nan.h.
30527
30528         * tests/test-ceilf1.c: Include nan.h.
30529         (main): Use NaNf instead of NAN.
30530         * modules/ceilf-tests (Files): Add tests/nan.h.
30531
30532         * tests/test-floorf1.c: Include nan.h.
30533         (main): Use NaNf instead of NAN.
30534         * modules/floorf-tests (Files): Add tests/nan.h.
30535
30536         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
30537         (main): Use NaNf instead of NAN.
30538         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
30539
30540         * tests/test-isnand.c: Include nan.h instead of <math.h>.
30541         (main): Use NaNd instead of NAN.
30542         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
30543
30544         * tests/test-frexp.c: Include nan.h.
30545         (main): Use NaNd instead of NAN.
30546         * modules/frexp-tests (Files): Add tests/nan.h.
30547
30548         * lib/isnan.c: Don't include <math.h>.
30549         (FUNC): Don't use NAN macro.
30550         * modules/isnand-nolibm (Depends-on): Remove math.
30551         * modules/isnanf-nolibm (Depends-on): Remove math.
30552         * modules/isnanl (Depends-on): Remove math.
30553         * modules/isnanl-nolibm (Depends-on): Remove math.
30554
30555         * tests/nan.h: New file.
30556
30557 2008-04-01  Eric Blake  <ebb9@byu.net>
30558
30559         Fix typos.
30560         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
30561         values to be the right type.
30562
30563         For now, cater to gnulib strtod inaccuracies.
30564         * tests/test-strtod.c (main): Allow 1-ulp error on expected
30565         fractional results.  While not as nice from a QoI perspective, it
30566         is a quicker patch than correctly implementing decimal to binary
30567         rounding.
30568
30569 2008-03-31  Eric Blake  <ebb9@byu.net>
30570
30571         Guarantee a definition of NAN.
30572         * lib/math.in.h (NAN): Define if missing.
30573         * tests/test-math.c (main): Test it.
30574         * doc/posix-headers/math.texi (math.h): Document this.
30575         * lib/isnan.c (rpl_isnand): Use it.
30576         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
30577         * tests/test-floorf1.c (NaN): Likewise.
30578         * tests/test-frexp.c (NaN): Likewise.
30579         * tests/test-isnand.c (NaN): Likewise.
30580         * tests/test-isnanf.c (NaN): Likewise.
30581         * tests/test-round1.c (NaN): Likewise.
30582         * tests/test-roundf1.c (NaN): Likewise.
30583         * tests/test-snprintf-posix.h (NaN): Likewise.
30584         * tests/test-sprintf-posix.h (NaN): Likewise.
30585         * tests/test-trunc1.c (NaN): Likewise.
30586         * tests/test-truncf1.c (NaN): Likewise.
30587         * tests/test-vasnprintf-posix.c (NaN): Likewise.
30588         * tests/test-vasprintf-posix.c (NaN): Likewise.
30589         * modules/isnand-nolibm (Depends-on): Add math.
30590         * modules/isnanf-nolibm (Depends-on): Likewise.
30591         * modules/isnanl (Depends-on): Likewise.
30592         * modules/isnanl-nolibm (Depends-on): Likewise.
30593         * modules/snprintf-posix-tests (Depends-on): Likewise.
30594         * modules/sprintf-posix-tests (Depends-on): Likewise.
30595         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
30596         * modules/vsprintf-posix-tests (Depends-on): Likewise.
30597         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
30598         * modules/vasprintf-posix-tests (Depends-on): Likewise.
30599
30600 2008-03-31  Bruno Haible  <bruno@clisp.org>
30601
30602         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
30603         * doc/posix-functions/strtod.texi: Likewise.
30604
30605 2008-03-31  Bruno Haible  <bruno@clisp.org>
30606
30607         * tests/test-strtod.c (main): Don't use C99 syntax.
30608
30609 2008-03-31  Bruno Haible  <bruno@clisp.org>
30610
30611         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
30612         Reported by Eric Blake.
30613
30614 2008-03-31  Jim Meyering  <meyering@redhat.com>
30615
30616         Don't compare actual signbit return values.
30617         * tests/test-strtod.c (main): Rather, compare only their
30618         zero/non-zero nature.
30619
30620 2008-03-31  Eric Blake  <ebb9@byu.net>
30621
30622         More strtod documentation.
30623         * doc/posix-functions/strtod.texi (strtod): Interpret more test
30624         failures as distinct bugs.
30625
30626 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
30627
30628         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
30629         Problem reported by Erik Benada in
30630         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
30631
30632 2008-03-30  Bruno Haible  <bruno@clisp.org>
30633
30634         * tests/test-strtod.c: Add comments about which assertion fails on which
30635         platform.
30636         * doc/posix-functions/strtod.texi: Add info about many more platforms.
30637
30638 2008-03-30  Eric Blake  <ebb9@byu.net>
30639
30640         Test signbit behavior on zeros.
30641         * tests/test-signbit.c (test_signbitf): Add tests for zero.
30642         (test_signbitd, test_signbitl): Likewise.
30643
30644         More strtod touchups.
30645         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
30646         sign of negative underflow, for now.  Use .5, not .1.
30647         * doc/posix-functions/strtod.texi (strtod): Mention these
30648         limitations.
30649         Reported by Jim Meyering.
30650
30651 2008-03-30  Bruno Haible  <bruno@clisp.org>
30652
30653         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
30654         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
30655
30656 2008-03-30  Bruno Haible  <bruno@clisp.org>
30657
30658         Avoid failure when attempting to return empty iconv results on some
30659         platforms.
30660         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
30661         allocation, don't report ENOMEM when the resulting string is empty.
30662
30663 2008-03-30  Bruno Haible  <bruno@clisp.org>
30664
30665         Fix buffer overrun.
30666         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
30667         Don't consider the width for tmp_length. Check count against tmp_length
30668         before doing the padding. Ensure enough allocation during padding.
30669
30670 2008-03-30  Eric Blake  <ebb9@byu.net>
30671
30672         strtod touchups.
30673         * lib/strtod.c (strtod): Avoid compiler warnings.
30674         Reported by Jim Meyering.
30675
30676 2008-03-30  Bruno Haible  <bruno@clisp.org>
30677
30678         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
30679         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
30680         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
30681         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
30682         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
30683         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
30684         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
30685         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
30686
30687         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
30688         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
30689         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
30690         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
30691         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
30692         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
30693         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
30694         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
30695
30696         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
30697         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
30698         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
30699         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
30700         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
30701         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
30702         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
30703         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
30704
30705         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
30706         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
30707
30708         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
30709         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
30710
30711         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
30712         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
30713
30714         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
30715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
30716         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
30717
30718         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
30719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
30720         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
30721
30722         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
30723         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
30724         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
30725
30726         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
30727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
30728         * modules/vasprintf (Depends-on): Add EOVERFLOW.
30729
30730         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
30731         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
30732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
30733         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
30734         (Depends-on): Add EOVERFLOW.
30735         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
30736         (Depends-on): Add EOVERFLOW.
30737         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30738         (Depends-on): Add EOVERFLOW.
30739         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30740         (Depends-on): Add EOVERFLOW.
30741         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30742         (Depends-on): Add EOVERFLOW.
30743         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30744         (Depends-on): Add EOVERFLOW.
30745         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30746         (Depends-on): Add EOVERFLOW.
30747         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30748         (Depends-on): Add EOVERFLOW.
30749
30750         * lib/sprintf.c (EOVERFLOW): Remove fallback.
30751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
30752         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
30753
30754         * lib/snprintf.c (EOVERFLOW): Remove fallback.
30755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
30756         * modules/snprintf (Depends-on): Add EOVERFLOW.
30757
30758         * lib/poll.c (EOVERFLOW): Remove fallback.
30759         * modules/poll (Depends-on): Add EOVERFLOW.
30760
30761         * lib/getugroups.c (EOVERFLOW): Remove fallback.
30762         * modules/getugroups (Depends-on): Add EOVERFLOW.
30763
30764         * lib/getdelim.c (EOVERFLOW): Remove fallback.
30765         * modules/getdelim (Depends-on): Add EOVERFLOW.
30766
30767         * lib/ftell.c (EOVERFLOW): Remove fallback.
30768         * modules/ftell (Depends-on): Add EOVERFLOW.
30769
30770         * lib/fprintf.c (EOVERFLOW): Remove fallback.
30771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
30772         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
30773
30774         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
30775
30776         * modules/EOVERFLOW-tests: New file.
30777         * tests/test-EOVERFLOW.c: New file.
30778
30779         * modules/EOVERFLOW: New file.
30780         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
30781
30782 2008-03-30  Bruno Haible  <bruno@clisp.org>
30783
30784         Fix bug introduced on 2007-06-10.
30785         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
30786         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
30787
30788 2008-03-30  Bruno Haible  <bruno@clisp.org>
30789
30790         Improve freadseek's efficiency after ungetc.
30791         * lib/freadseek.c: Include freadahead.h.
30792         (freadptrinc): New function, extracted from freadseek.
30793         (freadseek): Use it in a loop. Use freadahead to determine the number
30794         of loop iterations.
30795         * modules/freadseek (Depends-on): Add freadahead.
30796         (configure.ac): Require AC_C_INLINE.
30797
30798 2008-03-30  Bruno Haible  <bruno@clisp.org>
30799
30800         * lib/freadseek.c (freadseek): Don't ignore the return value of
30801         freadptr.
30802
30803 2008-03-29  Eric Blake  <ebb9@byu.net>
30804
30805         Add hex float support.
30806         * modules/strtod (Depends-on): Add c-ctype.
30807         (Link): Mention POW_LIB.
30808         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
30809         whitespace between 'e' and exponent.
30810         * tests/test-strtod.c (main): Enable hex float tests.
30811         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
30812         now provides.
30813
30814         Document various strtod bugs, with some fixes.
30815         * doc/posix-functions/strtod.texi (strtod): Document bugs with
30816         "-0x", "inf", "nan", and hex constants.
30817         * doc/posix-functions/atof.texi (atof): Likewise.
30818         * modules/stdlib (Makefile.am): Support strtod.
30819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30820         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
30821         detect additional strtod bugs.
30822         * lib/stdlib.in.h (rpl_strtod): Add declarations.
30823         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
30824         bool where appropriate.  Parse 'inf' and 'nan'.
30825         * tests/test-strtod.c: New file.
30826         * modules/strtod (Depends-on): Add stdbool, stdlib.
30827         (configure.ac): Turn on module indicator.
30828         * modules/strtod-tests: New module.
30829
30830 2008-03-29  Eric Blake  <ebb9@byu.net>
30831
30832         Fix ftell on mingw.
30833         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
30834         * modules/ftell-tests (Depends-on): Add binary-io.
30835         * modules/ftello-tests (Depends-on): Likewise.
30836         * tests/test-ftell.c (main): Enhance test to cover behavior after
30837         ungetc.  Enforce binary mode.
30838         * tests/test-ftello.c (main): Likewise.
30839
30840         Pass test-freadseek on cygwin.
30841         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
30842         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
30843         ungetc buffer.
30844
30845         * tests/test-fflush2.c (main): Fix typo.
30846
30847 2008-03-29  Bruno Haible  <bruno@clisp.org>
30848
30849         * tests/test-fflush2.c (main): Temporarily disable the contents of
30850         this test.
30851         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
30852         Reported by Eric Blake.
30853
30854 2008-03-28  Simon Josefsson  <simon@josefsson.org>
30855
30856         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
30857         (GC_SHA224_DIGEST_SIZE): Add.
30858
30859         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
30860         (gc_hash_digest_length): Likewise.
30861         (gc_hash_buffer): Likewise.
30862
30863 2008-03-25  Bruno Haible  <bruno@clisp.org>
30864
30865         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
30866         detail which gettext release to use.
30867         Reported by Simon Josefsson.
30868
30869 2008-03-26  Jim Meyering  <meyering@redhat.com>
30870
30871         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
30872         * modules/gnumakefile (clean-GNUmakefile): Also, use
30873         test ... && ... || : syntax rather than if-then ... fi.
30874
30875         gnumakefile: Don't double-quote-expand $(VPATH) value.
30876         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
30877
30878 2008-03-24  Eric Blake  <ebb9@byu.net>
30879
30880         Alter GNUmakefile to install into top directory.
30881         * modules/maintainer-makefile: Split, and add dependency...
30882         * modules/gnumakefile: to this new module.
30883         * build-aux/GNUmakefile: Move...
30884         * top/GNUmakefile: ...here.
30885         * build-aux/maint.mk: Move...
30886         * top/maint.mk: ...here.
30887         * MODULES.html.sh (Support for maintaining...): Document new
30888         module.
30889
30890 2008-03-23  Bruno Haible  <bruno@clisp.org>
30891
30892         * gnulib-tool: New options --vc-files, --no-vc-files.
30893         (func_usage): Document them.
30894         (vc_files): New variable.
30895         (func_import): Consider vc_files.
30896         (func_create_testdir): Set vc_files to empty.
30897         Suggested by Jim Meyering and Karl Berry.
30898
30899 2008-03-23  Bruno Haible  <bruno@clisp.org>
30900
30901         Fix regex compilation error on HP-UX 11.
30902         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
30903         * modules/regex (Files): Add m4/mbstate_t.m4.
30904         Reported by Ton Voon <ton.voon@altinity.com>.
30905
30906 2008-03-23  Bruno Haible  <bruno@clisp.org>
30907
30908         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
30909
30910 2008-03-23  Eric Blake  <ebb9@byu.net>
30911             Bruno Haible  <bruno@clisp.org>
30912
30913         Install files from top/ in the destination directory.
30914         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30915         augmentation also for the files from top/.
30916         (func_import, func_create_testdir): Rewrite file names:
30917         top/filename -> filename.
30918
30919 2008-03-23  Bruno Haible  <bruno@clisp.org>
30920
30921         Tweak "gnulib --version" output.
30922         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
30923
30924 2008-03-23  Bruno Haible  <bruno@clisp.org>
30925
30926         Tweak "gnulib --version" output.
30927         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
30928         rather than contents of ChangeLog, when possible.
30929
30930 2008-03-21  Eric Blake  <ebb9@byu.net>
30931
30932         More --version tweaks.
30933         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
30934         date of last ChangeLog entry.
30935
30936 2008-03-21  Jim Meyering  <meyering@redhat.com>
30937
30938         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
30939
30940 2008-03-20  Eric Blake  <ebb9@byu.net>
30941
30942         VPATH fix.
30943         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
30944
30945 2008-03-20  Simon Josefsson  <simon@josefsson.org>
30946
30947         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
30948         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
30949
30950 2008-03-20  Eric Blake  <ebb9@byu.net>
30951
30952         Sync GNUmakefile with coreutils.
30953         * build-aux/GNUmakefile (have-Makefile): Rename...
30954         (_have-Makefile): ...to this, for namespace consideration.
30955         (GNUmakefile.cfg): Include, if present.
30956         (_autoreconf): Define a default.
30957         (_is-dist-target): New rule for rebuilds to pick up intra-release
30958         version.
30959         (maint-cfg.mk): Rename...
30960         (cfg.mk): ...to this.
30961
30962 2008-03-18  Jim Meyering  <meyering@redhat.com>
30963
30964         New script and module: mktempd
30965         * MODULES.html.sh (maint+release support): Add mktempd.
30966         * build-aux/mktempd: New file.
30967         * modules/mktempd: New file.
30968
30969 2008-03-15  Jim Meyering  <meyering@redhat.com>
30970
30971         Undo last change.
30972         * lib/sha1.c, lib/md5.c: 63 != ~63.
30973         Reported by Andreas Schwab.
30974
30975         sha1.c, md5.c: Hoist a redundant expression.
30976         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30977         "ctx->buflen" only once, before calling *_process_block.
30978         * lib/md5.c (md5_process_bytes): Likewise.
30979
30980 2008-03-14  Eric Blake  <ebb9@byu.net>
30981
30982         Bump copyright year in files generated by gnulib-tool.
30983         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30984         gnulib-tool, rather than hard-coding it.
30985
30986         Fix 'gnulib-tool --version' output to work with git.
30987         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30988         (startup): ...here.
30989         (func_version): Use it to invoke git-version-gen, rather than
30990         relying on CVS keyword expansion.  Modernize wording.
30991         (cvsdatestamp, last_checkin_date, version): Kill unused
30992         variables.
30993
30994 2008-03-12  Jim Meyering  <meyering@redhat.com>
30995
30996         Recognize optional cast of the argument to free.
30997         * build-aux/useless-if-before-free: Update regexps.
30998
30999         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31000
31001 2008-03-11  Bruno Haible  <bruno@clisp.org>
31002
31003         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31004         by a single package.
31005         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31006         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31007         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31008         Reported by Sam Steingold <sds@gnu.org>.
31009
31010 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31011
31012         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31013         repositories.
31014
31015 2008-03-11  Bruno Haible  <bruno@clisp.org>
31016
31017         Avoid conflicts between local macro definitions.
31018         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31019         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31020
31021 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31022             Bruno Haible  <bruno@clisp.org>
31023
31024         Make va_copy work with some version of xlc on AIX 5.1.
31025         * lib/stdarg.in.h: New file.
31026         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31027         On AIX, use a <stdarg.h> file substitute.
31028         * modules/stdarg (Files): Add lib/stdarg.in.h.
31029         (Depends-on): Add include_next.
31030         (Makefile.am): Build a stdarg.h substitute if requested.
31031         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31032
31033 2008-03-10  Bruno Haible  <bruno@clisp.org>
31034
31035         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31036         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31037         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31038
31039 2008-03-10  Bruno Haible  <bruno@clisp.org>
31040
31041         * modules/stdlib (Depends-on): Add include_next, remove
31042         absolute-header.
31043
31044 2008-03-09  Bruno Haible  <bruno@clisp.org>
31045
31046         * lib/freadahead.h (freadahead): Document more precisely.
31047         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31048         the sum of both buffer sizes.
31049         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31050         * NEWS: Document the change.
31051
31052 2008-03-09  Bruno Haible  <bruno@clisp.org>
31053
31054         Extend freadptr to return also the buffer size.
31055         * lib/freadptr.h (freadptr): Add sizep argument.
31056         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31057         (freadptr): Add sizep argument. Determine buffer size like freadahead
31058         does.
31059         * tests/test-freadptr.c: Don't include freadahead.h.
31060         (main): Adapt for new calling convention of freadptr.
31061         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31062         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31063         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31064         tests/test-freadptr2.sh.
31065         (Depends): Remove freadahead.
31066         (TESTS): Add test-freadptr2.sh.
31067         (check_PROGRAMS): Add test-freadptr2.
31068
31069 2008-03-09  Bruno Haible  <bruno@clisp.org>
31070
31071         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31072         Report and solution by Simon Josefsson.
31073
31074 2008-03-06  Bruno Haible  <bruno@clisp.org>
31075
31076         Make fflush after ungetc work on BSD platforms.
31077         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31078         * tests/test-fflush2.c: New file.
31079         * tests/test-fflush2.sh: New file.
31080         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31081         tests/test-fflush2.c.
31082         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31083         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31084
31085 2008-03-06  Eric Blake  <ebb9@byu.net>
31086
31087         Likewise for ftello.
31088         * modules/ftello (Dependencies): Add extensions.
31089         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31090
31091 2008-03-06  Bruno Haible  <bruno@clisp.org>
31092
31093         * modules/fseeko (Dependencies): Add extensions.
31094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31095         Needed on glibc systems.
31096
31097 2008-03-06  Bruno Haible  <bruno@clisp.org>
31098
31099         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31100         email address.
31101         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31102
31103 2008-03-06  Bruno Haible  <bruno@clisp.org>
31104
31105         * users.txt: Add libgnupdf.
31106
31107 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31108
31109         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31110         (Header File Substitutes, Function Substitutes,
31111         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31112         (Build robot for gnulib): Fix typo.
31113
31114 2008-03-06  Bruno Haible  <bruno@clisp.org>
31115
31116         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31117         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31118
31119 2008-03-06  Bruno Haible  <bruno@clisp.org>
31120
31121         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31122         * doc/gnulib.texi: Include it.
31123
31124 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31125
31126         * modules/func (License): Change license to unlimited; there was
31127         no LGPL parts in the module anyway.
31128
31129 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31130
31131         * modules/__func__: Renamed to modules/func.
31132         * modules/__func__-tests: Renamed to modules/func-tests.
31133         * tests/test-__func__.c: Renamed to tests/test-func.c.
31134         * m4/__func__.m4: Renamed to m4/func.m4.
31135         * doc/gnulib.texi (__func__): Section renamed to func.
31136         Suggested by Eric Blake <ebb9@byu.net>.
31137
31138 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31139
31140         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31141         about __func__.  Make example self-contained.  Suggested by Eric
31142         Blake <ebb9@byu.net>.
31143
31144         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31145         Suggested by Eric Blake <ebb9@byu.net>.
31146
31147 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31148
31149         * modules/__func__: New file.
31150         * modules/__func__-tests: New file.
31151         * tests/test-__func__.c: New file.
31152         * m4/__func__.m4: New file.
31153         * doc/gnulib.texi (__func__): Document __func__ module.
31154
31155 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31156
31157         * modules/byteswap (License): Re-license as LGPLv2+.
31158
31159 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31160
31161         * doc/Makefile: Add pdf target.
31162
31163 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31164
31165         * modules/inline (License): Use 'unlimited', since there are only
31166         *.m4 files in this module.
31167
31168 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31169             Bruno Haible  <bruno@clisp.org>
31170
31171         Add support for HP C 7.1 on OpenVMS 8.3.
31172         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31173
31174 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31175
31176         Update VMS specifics.
31177         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31178
31179 2008-03-02  Jim Meyering  <meyering@redhat.com>
31180
31181         Remove the last dependency on the "free" module.
31182         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31183         Reported by Bob Proulx.
31184
31185         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31186
31187         Remove useless "if" tests before free.  Deprecate "free" module.
31188         * doc/posix-functions/free.texi: Mention that this
31189         module is no longer useful.
31190         * modules/free (Notice): Say this module is obsolete.
31191         * modules/readutmp (Depends-on): Remove free.
31192         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31193         * lib/putenv.c (putenv): Likewise.
31194         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31195         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31196         * tests/test-c-strcasestr.c (main): Likewise.
31197         * tests/test-c-strstr.c (main): Likewise.
31198         * tests/test-mbscasestr1.c (main): Likewise.
31199         * tests/test-mbscasestr2.c (main): Likewise.
31200         * tests/test-mbsstr1.c (main): Likewise.
31201         * tests/test-mbsstr2.c (main): Likewise.
31202         * tests/test-memmem.c (main): Likewise.
31203         * tests/test-strcasestr.c (main): Likewise.
31204         * tests/test-striconv.c (main): Likewise.
31205         * tests/test-striconveh.c (main): Likewise.
31206         * tests/test-striconveha.c (main): Likewise.
31207         * tests/test-strstr.c (main): Likewise.
31208
31209         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31210
31211         bootstrap: sync from coreutils again
31212         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31213
31214 2008-03-01  Jim Meyering  <meyering@redhat.com>
31215
31216         bootstrap: sync from coreutils
31217         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31218         also when the target doesn't exist.
31219
31220 2008-03-01  Eric Blake  <ebb9@byu.net>
31221
31222         Fix bugs in last patch.
31223         * lib/memchr2.c (memchr2): Fix typo.
31224         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31225         extension.
31226         Reported by Bruce Korb.
31227
31228         New module 'memchr2'.
31229         * modules/memchr2: New file.
31230         * modules/memchr2-tests: Likewise.
31231         * lib/memchr2.h: Likewise.
31232         * lib/memchr2.c: Likewise, based on memchr.c.
31233         * tests/test-memchr2.c: New test.
31234         * MODULES.html.sh (String handling): Add memchr2.
31235
31236 2008-02-29  Bruno Haible  <bruno@clisp.org>
31237
31238         * modules/freadseek-tests: New file.
31239         * tests/test-freadseek.sh: New file.
31240         * tests/test-freadseek.c: New file.
31241
31242         New module 'freadseek'.
31243         * modules/freadseek: New file.
31244         * lib/freadseek.h: New file.
31245         * lib/freadseek.c: New file.
31246         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31247
31248 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31249
31250         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31251         wydawca.
31252
31253         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31254         program_invocation_name and program_invocation_short_name are
31255         present.
31256
31257 2008-02-28  Bruno Haible  <bruno@clisp.org>
31258
31259         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31260         * tests/test-freadptr.sh: Also test non-seekable stdin.
31261
31262 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31263
31264         * build-aux/bootstrap (source_base, m4_base)
31265         (doc_base, tests_base): New variables.
31266         (gnulib_tool_options): Do not hardcode base directories, use
31267         the above variables instead.
31268
31269 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31270
31271         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31272
31273 2008-02-28  Bruno Haible  <bruno@clisp.org>
31274
31275         * modules/freadptr-tests: New file.
31276         * tests/test-freadptr.sh: New file.
31277         * tests/test-freadptr.c: New file.
31278
31279         New module 'freadptr'.
31280         * modules/freadptr: New file.
31281         * lib/freadptr.h: New file.
31282         * lib/freadptr.c: New file.
31283         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31284
31285 2008-02-26  Karl Berry  <karl@freefriends.org>
31286
31287         Sync from Libtool:
31288         * libltdl/argz.c (argz_add, argz_count): New functions.
31289         * libltdl/argz.in.h: Declare them.
31290         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31291
31292 2008-02-22  Bruno Haible  <bruno@clisp.org>
31293
31294         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31295         is a pointer type.  Needed for HP-UX 10.
31296         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31297         * doc/posix-functions/gmtime_r.texi: Likewise.
31298         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31299
31300 2008-02-24  Bruno Haible  <bruno@clisp.org>
31301
31302         * modules/environ-tests: New file.
31303         * tests/test-environ.c: New file.
31304
31305         New module 'environ'.
31306         * modules/environ: New file.
31307         * lib/unistd.in.h (environ): New declaration.
31308         * m4/environ.m4: New file.
31309         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31310         after use.
31311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31312         HAVE_DECL_ENVIRON.
31313         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31314         HAVE_DECL_ENVIRON.
31315         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31316         wrong claim that 'environ' is missing on some systems.
31317         * modules/execute (Depends-on): Add environ.
31318         * lib/execute.c (environ): Remove fallback declaration.
31319         * modules/pipe (Depends-on): Add environ.
31320         * lib/pipe.c (environ): Remove fallback declaration.
31321         * modules/setenv (Depends-on): Add environ.
31322         * lib/setenv.c (environ): Remove fallback declaration.
31323         * modules/unsetenv (Depends-on): Add environ.
31324         * lib/unsetenv.c (environ): Remove fallback declaration.
31325         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31326         m4/environ.m4.
31327         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31328         (gl_PREREQ_UNSETENV): Likewise.
31329
31330 2008-02-24  Bruno Haible  <bruno@clisp.org>
31331
31332         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31333
31334 2008-02-20  Bob Proulx  <bob@proulx.com>
31335
31336         Enable use of older two part flavor 'git describe'.
31337         * build-aux/git-version-gen: If using the older two part flavor of
31338         git version then recreate the third part now present in the
31339         newer three part flavor of git describe.
31340
31341 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31342
31343         * lib/fts.c (fts_build): Typo correction to comment.
31344
31345 2008-02-17  Bruno Haible  <bruno@clisp.org>
31346
31347         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31348         generating no-op conflicts.
31349
31350 2008-02-17  Bruno Haible  <bruno@clisp.org>
31351
31352         Speed up by 10%.
31353         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31354         result_entries, rather than an index-based loop.
31355
31356 2008-02-17  Bruno Haible  <bruno@clisp.org>
31357
31358         Speed up by 25%.
31359         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31360         'hashcode_cached'.
31361         (entry_create): New function.
31362         (entry_hashcode): Use the cached hashcode if possible.
31363         (read_changelog_file, try_split_merged_entry): Use entry_create.
31364
31365 2008-02-17  Bruno Haible  <bruno@clisp.org>
31366
31367         Speed up from O(n^2) to O(n) for long ChangeLog files.
31368         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31369         (read_changelog_file): Change implementation of entries_reversed list
31370         to rbtreehash.
31371         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31372
31373 2008-02-17  Bruno Haible  <bruno@clisp.org>
31374
31375         New option --split-merged-entry.
31376         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31377         (find_paragraph_end, try_split_merged_entry): New functions.
31378         (long_options): Add option --split-merged-entry.
31379         (usage): Document option --split-merged-entry.
31380         (main): Implement option --split-merged-entry.
31381         Reported by Eric Blake.
31382
31383 2008-02-17  Bruno Haible  <bruno@clisp.org>
31384
31385         * lib/git-merge-changelog.c: Include c-strstr.h.
31386         (main): Support the "git pull --rebase" situation.
31387         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31388         Reported by Eric Blake.
31389
31390 2008-02-16  Eric Blake  <ebb9@byu.net>
31391
31392         Avoid doubling \ in common case of "c-maybe" quoting style.
31393         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31394         eliding outer quotes.
31395         * lib/quotearg.h: Document this.
31396         * tests/test-quotearg.c (result_strings, inputs, results_g)
31397         (flag_results, locale_results): Test it by adding a new string to
31398         each test group.
31399         (compare_strings): Test new string.
31400
31401 2008-02-13  Eric Blake  <ebb9@byu.net>
31402
31403         Avoid trigraph quoting in default output.
31404         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
31405         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
31406         unless explicitly requested.
31407         * tests/test-quotearg.c (flag_results, main): Add additional tests.
31408
31409 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
31410
31411         Don't rely on signed integer overflowing to negative value.
31412         * lib/getugroups.c (getugroups): Include <limits.h>.
31413         Instead, compare against INT_MAX, and increment only if the test passes.
31414
31415 2008-02-13  Jim Meyering  <meyering@redhat.com>
31416         and Eric Blake  <ebb9@byu.net>
31417
31418         Avoid shadowing warning and compile errors on Linux.
31419         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
31420         forwarding macros on Linux.
31421         (dcgettext): Define a stub, for Linux.
31422         (results_g, main): Avoid warnings.
31423
31424 2008-02-12  Eric Blake  <ebb9@byu.net>
31425
31426         Silence warning in last patch.
31427         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
31428
31429         Quotearg part 4: add tests, fix c-maybe colon quoting.
31430         * lib/quotearg.h: Improve documentation.
31431         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
31432         escapes when adding outer quotes.  When quoting trigraphs, use
31433         valid C notation.  When quoting NUL, omit extra characters if next
31434         character is not digit.  Alter prototype.
31435         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
31436         callers.
31437         * modules/quotearg-tests: New module.
31438         * tests/test-quotearg.c: New test.
31439
31440 2008-02-07  Eric Blake  <ebb9@byu.net>
31441
31442         Quotearg part 3: add flag to control outer quote elision.
31443         * lib/quotearg.h (c_maybe_quoting_style): New style.
31444         (enum quoting_flags): Better documentation of flags.
31445         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
31446         c-maybe style.
31447         (quotearg_buffer_restyled): Handle new flag to elide outer
31448         quotes.
31449
31450         Quotearg part 2: add flag that can control NUL elision.
31451         * lib/quotearg.h (set_quoting_flags): New prototype.
31452         * lib/quotearg.c (struct quoting_options): Add flag field.
31453         (set_quoting_flags): New function.
31454         (quotearg_buffer_restyled): Add flags parameter.
31455         (quotearg_alloc_mem): Set the flag if length cannot be returned.
31456         (quotearg_n_options): Set the flag, since length cannot be
31457         returned.
31458         (quoting_options_from_style): Default flags correctly.
31459
31460         Quotearg part 1: more wrappers, restore quotearg_char state.
31461         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
31462         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
31463         (quotearg_colon_mem): New wrappers.
31464         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
31465         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
31466         functions.
31467         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
31468         (quotearg_colon_mem): New functions.
31469
31470 2008-02-11  Bruno Haible  <bruno@clisp.org>
31471
31472         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
31473         library in the current directory: it does not work with parallel make.
31474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31475
31476 2008-02-11  Bruno Haible  <bruno@clisp.org>
31477
31478         * .gitattributes: New file.
31479
31480 2008-02-11  Jim Meyering  <meyering@redhat.com>
31481
31482         useless-if-before-free: Fix reversed exit values.
31483         * build-aux/useless-if-before-free: Use correct values
31484         for EXIT_MATCH and EXIT_NO_MATCH.
31485
31486         * build-aux/useless-if-before-free: Close stdout carefully.
31487
31488 2008-02-10  Bruno Haible  <bruno@clisp.org>
31489
31490         New module 'git-merge-changelog'.
31491         * modules/git-merge-changelog: New file.
31492         * lib/git-merge-changelog.c: New file.
31493
31494 2008-02-10  Jim Meyering  <meyering@redhat.com>
31495
31496         useless-if-before-free: New option: --list (-l).
31497
31498         useless-if-before-free: Don't exit immediately upon open failure.
31499         * build-aux/useless-if-before-free: Exit 2 for errors.
31500         Upon failure to open a file, don't exit immediately.
31501         Rather, just warn and continue with any remaining files.
31502
31503 2008-02-10  Bruno Haible  <bruno@clisp.org>
31504
31505         New abstract list operation 'node_set_value'.
31506         * lib/gl_list.h (gl_list_node_set_value): New function.
31507         (struct gl_list_implementation): New field node_set_value.
31508         * lib/gl_list.c (gl_list_node_set_value): New function.
31509         * lib/gl_array_list.c (gl_array_node_set_value): New function.
31510         (gl_array_list_implementation): Update.
31511         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
31512         (gl_carray_list_implementation): Update.
31513         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
31514         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31515         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31516         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
31517         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31518         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31519         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31520         Update.
31521         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31522         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
31523         (gl_sublist_list_implementation): Update.
31524
31525 2008-02-10  Bruno Haible  <bruno@clisp.org>
31526
31527         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
31528         Needed when ELEMENT is #defined to 'some_type *'.
31529
31530 2008-02-10  Jim Meyering  <meyering@redhat.com>
31531
31532         New script and module: useless-if-before-free
31533         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
31534         * build-aux/useless-if-before-free: New file.
31535         * modules/useless-if-before-free: New file.
31536
31537         * build-aux/gitlog-to-changelog: Use committer date, not author date.
31538
31539         xstrtol_error: Fix typo.
31540         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
31541         s/exit_failure/exit_status/.
31542
31543 2008-02-09  Jim Meyering  <meyering@redhat.com>
31544
31545         New script and module: gitlog-to-changelog
31546         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
31547         * modules/gitlog-to-changelog: New file.
31548         * build-aux/gitlog-to-changelog: New file.
31549
31550 2008-02-08  Jim Meyering  <meyering@redhat.com>
31551
31552         Avoid two "parameter unused" warnings.
31553         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
31554         Mark "st" as used.
31555
31556         Use "git COMMAND", not "git-COMMAND".
31557         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
31558         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
31559         * build-aux/git-version-gen: Use "git status", not "git-status".
31560
31561 2008-02-07  Bruno Haible  <bruno@clisp.org>
31562
31563         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
31564         Avoids a crash on Windows Vista.
31565         Reported by Adam Strzelecki <ono@java.pl> via
31566         Simon Josefsson <simon@josefsson.org>.
31567
31568 2008-02-06  Bruno Haible  <bruno@clisp.org>
31569
31570         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
31571         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
31572         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
31573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
31574         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31576         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
31577         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
31578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31584         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31585         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
31586         left-adjust flag.
31587         * tests/test-snprintf-posix.h (test_function): Likewise.
31588         * tests/test-sprintf-posix.h (test_function): Likewise.
31589         * tests/test-vasprintf-posix.c (test_function): Likewise.
31590         * doc/posix-functions/fprintf.texi: Update.
31591         * doc/posix-functions/printf.texi: Update.
31592         * doc/posix-functions/snprintf.texi: Update.
31593         * doc/posix-functions/sprintf.texi: Update.
31594         * doc/posix-functions/vfprintf.texi: Update.
31595         * doc/posix-functions/vprintf.texi: Update.
31596         * doc/posix-functions/vsnprintf.texi: Update.
31597         * doc/posix-functions/vsprintf.texi: Update.
31598         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31599
31600 2008-02-06  Bruno Haible  <bruno@clisp.org>
31601
31602         Fix bug introduced on 2008-01-26.
31603         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
31604
31605 2008-02-06  Bruno Haible  <bruno@clisp.org>
31606
31607         Fix bug introduced on 2007-06-10.
31608         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
31609         !NEED_PRINTF_FLAG_ZERO.
31610
31611 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
31612
31613         getloadavg: use libperfstat on AIX5
31614         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
31615
31616 2008-02-03  Bruno Haible  <bruno@clisp.org>
31617
31618         * lib/diffseq.h: Add comments about required #includes.
31619         Reported by Michael Biggs <gnulib@doubleplum.net>.
31620
31621 2008-02-01  Bruno Haible  <bruno@clisp.org>
31622
31623         * users.txt: Add gnuit.
31624
31625 2008-01-31  Bruno Haible  <bruno@clisp.org>
31626
31627         * lib/md4.c (set_uint32): Mark as inline.
31628         * lib/md5.c (set_uint32): Likewise.
31629         * lib/sha1.c (set_uint32): Likewise.
31630         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
31631         * m4/md5.m4 (gl_MD5): Likewise.
31632         * m4/sha1.m4 (gl_SHA1): Likewise.
31633
31634 2008-01-31  Jim Meyering  <meyering@redhat.com>
31635
31636         Use "sizeof VAR", rather than a literal "4".
31637         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
31638         * lib/md4.c (md4_read_ctx): Likewise.
31639         * lib/sha1.c (sha1_read_ctx): Likewise.
31640
31641 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31642
31643         * tests/test-sha1.c: New file, based on test-md5.c.
31644
31645         * modules/crypto/sha1-tests: New file.
31646
31647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31648
31649         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
31650
31651 2008-01-31  Jim Meyering  <meyering@redhat.com>
31652
31653         Prefer "sizeof v" over the equivalent "4".
31654         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
31655         * lib/md5.c (set_uint32): Likewise.
31656         * lib/sha1.c (set_uint32): Likewise.
31657
31658 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31659
31660         * lib/sha1.c (set_uint32): Mark function as static.
31661
31662 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31663
31664         md2: clarify comments to say that alignment is not required.
31665         * lib/md2.h: Remove warning about alignment in comment.
31666         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
31667         never been required.
31668
31669 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31670
31671         md4: adapt alignment constraint fix from sha1.
31672         * lib/md4.c (set_uint32): New function, from sha1.c
31673         (md4_read_ctx): Use it.
31674         (md4_finish_ctx): Doc fix.
31675         * lib/md4.h: Doc fix.
31676
31677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31678
31679         md5: adapt alignment constraint fix from sha1.
31680         * lib/md5.c (set_uint32): New function, from sha1.c
31681         (md5_read_ctx): Use it.
31682         (md5_finish_ctx): Doc fix.
31683         * lib/md5.h: Doc fix.
31684
31685 2008-01-30  Peter Palfrader  <weasel@debian.org>
31686
31687         sha1: remove the result buffer alignment constraint
31688         * lib/sha1.c (set_uint32): New function.
31689         (sha1_read_ctx): Rewrite to remove the result buffer alignment
31690         constraint.
31691         (sha1_finish_ctx): Remove comment warning about alignment constraint.
31692         * lib/sha1.h: Likewise.
31693
31694 2008-01-30  Andreas Schwab  <schwab@suse.de>
31695             Bruno Haible  <bruno@clisp.org>
31696
31697         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
31698         correct definition of LDBL_MIN_EXP.
31699
31700 2008-01-30  Karl Berry  <karl@gnu.org>
31701
31702         * config/srclist-update: try to preserve x bit on updates.
31703         * config/srclistvars.sh: update for karl.
31704
31705 2008-01-29  Jim Meyering  <meyering@redhat.com>
31706
31707         vasnprintf.c: Avoid warning about unused label
31708         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
31709         "overflow" label definition and associated code with the
31710         same cpp condition that guards the sole use of that label.
31711
31712 2008-01-26  Bruno Haible  <bruno@clisp.org>
31713
31714         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
31715         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
31716         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
31717         * lib/isnanl-nolibm.h (isnanl): Likewise.
31718         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31719
31720 2008-01-26  Bruno Haible  <bruno@clisp.org>
31721
31722         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
31723         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
31724
31725 2008-01-26  Bruno Haible  <bruno@clisp.org>
31726
31727         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
31728         GCC >= 4.0 built-in.
31729         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
31730
31731 2008-01-26  Bruno Haible  <bruno@clisp.org>
31732
31733         Rename isnan, applicable to 'double' only, to isnand.
31734         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
31735         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
31736         (configure.ac): Update.
31737         (Include): Replace "isnan.h" with "isnand.h".
31738         * m4/isnand.m4: Renamed from m4/isnan.m4.
31739         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
31740         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
31741         instead of isnan.c.
31742         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
31743         instead of HAVE_ISNAN_IN_LIBC.
31744         (isnand): Renamed from isnan.
31745         * lib/isnand.c: New file.
31746         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
31747         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
31748         (Makefile.am): Update.
31749         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
31750         Include isnand.h instead of isnan.h.
31751         (main): Test isnand instead of isnan.
31752         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
31753         isnan-nolibm.
31754         * modules/frexp (Depends-on): Likewise.
31755         * modules/frexp-tests (Depends-on): Likewise.
31756         * modules/frexp-nolibm (Depends-on): Likewise.
31757         * modules/frexp-nolibm-tests (Depends-on): Likewise.
31758         * modules/isfinite (Depends-on): Likewise.
31759         * modules/round-tests (Depends-on): Likewise.
31760         * modules/signbit (Depends-on): Likewise.
31761         * modules/signbit-tests (Depends-on): Likewise.
31762         * modules/snprintf-posix (Depends-on): Likewise.
31763         * modules/sprintf-posix (Depends-on): Likewise.
31764         * modules/trunc-tests (Depends-on): Likewise.
31765         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31766         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31767         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31768         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31769         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31770         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31771         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31772         * modules/vasnprintf-posix (Depends-on): Likewise.
31773         * modules/vasprintf-posix (Depends-on): Likewise.
31774         * modules/vfprintf-posix (Depends-on): Likewise.
31775         * modules/vsnprintf-posix (Depends-on): Likewise.
31776         * modules/vsprintf-posix (Depends-on): Likewise.
31777         * lib/frexp.c: Include isnand.h instead of isnan.h.
31778         (ISNAN): Set to isnand instead of isnan.
31779         * lib/isfinite.c: Include isnand.h instead of isnan.h.
31780         (gl_isfinited): Use isnand instead of isnan.
31781         * lib/signbitd.c: Include isnand.h instead of isnan.h.
31782         (gl_signbitd): Use isnand instead of isnan.
31783         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
31784         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
31785         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
31786         (main): Use isnand instead of isnan.
31787         * tests/test-round1.c: Include isnand.h.
31788         (main): Use isnand instead of isnan.
31789         * tests/test-round2.c: Include isnand.h instead of isnan.h.
31790         (ISNAN): Set to isnand instead of isnan.
31791         * tests/test-trunc1.c: Include isnand.h.
31792         (main): Use isnand instead of isnan.
31793         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
31794         (equal): Use isnand instead of isnan.
31795         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
31796         isnand-nolibm.
31797         * NEWS: Mention the change.
31798
31799 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
31800             Bruno Haible  <bruno@clisp.org>
31801
31802         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
31803         the GCC builtins for signbits are present and set
31804         REPLACE_SIGNBIT_USING_GCC if so.
31805         * lib/math.in.h (signbit): Define using GCC builtins if
31806         REPLACE_SIGNBIT_USING_GCC is set.
31807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
31808         REPLACE_SIGNBIT_USING_GCC.
31809         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
31810
31811 2008-01-25  Jim Meyering  <meyering@redhat.com>
31812
31813         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
31814         * lib/poll.c: Include <config.h>, not "config.h".
31815         * tests/test-getaddrinfo.c: Likewise.
31816
31817 2008-01-25  Simon Josefsson  <simon@josefsson.org>
31818
31819         * modules/sockets-tests: New file.
31820
31821 2008-01-24  Simon Josefsson  <simon@josefsson.org>
31822
31823         * modules/sockets: New module, can be used to call WSA_Startup and
31824         WSA_Cleanup when needed.
31825
31826         * lib/sockets.h, lib/sockets.c: New files.
31827
31828         * m4/sockets.m4: New file.
31829
31830         * tests/test-sockets.c: New file.
31831
31832 2008-01-19  Bruno Haible  <bruno@clisp.org>
31833
31834         * doc/posix-headers: Renamed from doc/headers.
31835         * doc/posix-functions: Renamed from doc/functions.
31836         * doc/gnulib.texi: Update.
31837
31838 2008-01-19  Bruno Haible  <bruno@clisp.org>
31839
31840         * doc/glibc-functions/strcasestr.texi: Include contents of
31841         doc/functions/strcasestr.texi, fixing the list of platforms.
31842         * doc/functions/strcasestr.texi: Remove file.
31843
31844 2008-01-19  Bruno Haible  <bruno@clisp.org>
31845
31846         * doc/glibc-functions/memmem.texi: Include contents of
31847         doc/functions/memmem.texi.
31848         * doc/functions/memmem.texi: Remove file.
31849
31850 2008-01-18  Bruno Haible  <bruno@clisp.org>
31851
31852         * doc/glibc-functions/*.texi: New files.
31853         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
31854         to use the new files.
31855
31856 2008-01-17  Bruno Haible  <bruno@clisp.org>
31857
31858         * tests/test-gethostname.c (main): Fix printf statement.
31859
31860 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31861
31862         * modules/gethostname-tests: New file.
31863
31864         * tests/test-gethostname.c: New file.
31865
31866 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31867
31868         * lib/gethostname.c: Include string.h unconditionally, strncpy is
31869         used by the UNAME case.  Reported by Bruno Haible
31870         <bruno@clisp.org>.
31871
31872 2008-01-17  Eric Blake  <ebb9@byu.net>
31873
31874         Convert c-strcasestr to be more efficient.
31875         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
31876         (Depends-on): Add c-strcase, remove malloca, strnlen.
31877         * tests/test-c-strcasestr.c (main): Enhance test.
31878         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
31879
31880 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31881
31882         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
31883         Use it in creating po/Makevars.
31884
31885 2008-01-15  Simon Josefsson  <simon@josefsson.org>
31886
31887         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
31888         Applications that requires it should initialize libgcrypt
31889         manually.
31890
31891 2008-01-16  Simon Josefsson  <simon@josefsson.org>
31892
31893         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
31894
31895 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31896
31897         Fix problem with getdate on mingw32 reported by Simon Josefsson
31898         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
31899         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
31900         tzname", when deciding whether to declare tzname.
31901         * lib/strftime.c (tzname): Likewise.
31902
31903 2008-01-15  Bruno Haible  <bruno@clisp.org>
31904
31905         Work around a MacOS X 10.5 bug in frexpl().
31906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
31907         * doc/functions/frexpl.texi: Document the bug.
31908         Reported by Elias Pipping <pipping@gentoo.org>.
31909
31910 2008-01-14  Eric Blake  <ebb9@byu.net>
31911
31912         Touch up previous patch.
31913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
31914         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
31915
31916         Convert strcasestr module to use Two-Way algorithm.
31917         * modules/strcasestr-simple: New module, based on the old
31918         strcasestr, but with Two-Way rather than KMP.
31919         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
31920         * lib/string.in.h (rpl_strcasestr): Declare.
31921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
31922         performance.
31923         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
31924         * modules/string (Makefile.am): Support strcasestr.
31925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31926         * modules/strcasestr-tests (Depends-on): Check for alarm.
31927         * tests/test-strcasestr.c: Augment test.
31928         * lib/str-two-way.h: Clean up stray macro.
31929         * NEWS: Document new module.
31930         * MODULES.html.sh (string handling): Likewise.
31931         * doc/functions/strcasestr.texi: New file.
31932         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
31933         here, since it is not a POSIX function.
31934
31935 2008-01-14  Colin Watson  <cjwatson@debian.org>
31936             Bruno Haible  <bruno@clisp.org>
31937
31938         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
31939         works fine; if not, set REPLACE_STRSIGNAL.
31940         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
31941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31942         REPLACE_STRSIGNAL.
31943         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
31944         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
31945         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
31946
31947 2008-01-14  Bruno Haible  <bruno@clisp.org>
31948
31949         * modules/strsignal (Include): Change to <string.h>.
31950
31951 2008-01-14  Colin Watson  <cjwatson@debian.org>
31952
31953         * modules/argp (Notice): Add a notice recommending to change
31954         XGETTEXT_OPTIONS.
31955         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
31956
31957 2008-01-13  Colin Watson  <cjwatson@debian.org>
31958
31959         * modules/strsignal-tests: New file.
31960         * tests/test-strsignal.c: New file.
31961
31962         * lib/strsignal.c: New file, from glibc with modifications.
31963         * lib/siglist.h: New file, from glibc with modifications.
31964         * lib/string.in.h (strsignal): New declaration.
31965         * m4/strsignal.m4: New file.
31966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31967         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31968         * modules/strsignal: New file.
31969         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31970         HAVE_DECL_STRSIGNAL.
31971
31972 2008-01-13  Bruno Haible  <bruno@clisp.org>
31973
31974         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31975         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31976         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31977         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31978
31979 2008-01-13  Bruno Haible  <bruno@clisp.org>
31980
31981         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31982         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31983         * lib/argp.h (__attribute__): Likewise.
31984         * lib/c-stack.c (__attribute__): Likewise.
31985         * lib/error.h (__attribute__): Likewise.
31986         * lib/fts.c (__attribute__): Likewise.
31987         * lib/openat.h (__attribute__): Likewise.
31988         * lib/stdio.in.h (__attribute__): Likewise.
31989         * lib/string.in.h (__attribute__): Likewise.
31990         * lib/utimens.c (__attribute__): Likewise.
31991         * lib/vasnprintf.h (__attribute__): Likewise.
31992         * lib/xalloc.h (__attribute__): Likewise.
31993         * lib/xprintf.h (__attribute__): Likewise.
31994         * lib/xstrtol.h (__attribute__): Likewise.
31995         * lib/xvasprintf.h (__attribute__): Likewise.
31996
31997 2008-01-12  Bruno Haible  <bruno@clisp.org>
31998
31999         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32000         * doc/glibc-headers/a.out.texi: New file.
32001         * doc/glibc-headers/aliases.texi: New file.
32002         * doc/glibc-headers/alloca.texi: New file.
32003         * doc/glibc-headers/ar.texi: New file.
32004         * doc/glibc-headers/argp.texi: New file.
32005         * doc/glibc-headers/argz.texi: New file.
32006         * doc/glibc-headers/byteswap.texi: New file.
32007         * doc/glibc-headers/crypt.texi: New file.
32008         * doc/glibc-headers/endian.texi: New file.
32009         * doc/glibc-headers/envz.texi: New file.
32010         * doc/glibc-headers/err.texi: New file.
32011         * doc/glibc-headers/error.texi: New file.
32012         * doc/glibc-headers/execinfo.texi: New file.
32013         * doc/glibc-headers/fpu_control.texi: New file.
32014         * doc/glibc-headers/fstab.texi: New file.
32015         * doc/glibc-headers/fts.texi: New file.
32016         * doc/glibc-headers/getopt.texi: New file.
32017         * doc/glibc-headers/ieee754.texi: New file.
32018         * doc/glibc-headers/ifaddrs.texi: New file.
32019         * doc/glibc-headers/libintl.texi: New file.
32020         * doc/glibc-headers/mcheck.texi: New file.
32021         * doc/glibc-headers/mntent.texi: New file.
32022         * doc/glibc-headers/obstack.texi: New file.
32023         * doc/glibc-headers/paths.texi: New file.
32024         * doc/glibc-headers/printf.texi: New file.
32025         * doc/glibc-headers/pty.texi: New file.
32026         * doc/glibc-headers/resolv.texi: New file.
32027         * doc/glibc-headers/shadow.texi: New file.
32028         * doc/glibc-headers/sysexits.texi: New file.
32029         * doc/glibc-headers/ttyent.texi: New file.
32030
32031 2008-01-12  Jim Meyering  <meyering@redhat.com>
32032
32033         announce-gen: emit Gnulib's git-based version string.
32034         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32035         New option --gnulib-version=V, where V is expected to be
32036         the output of running git describe in the gnulib directory.
32037         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32038         not useful, and plan to stop publishing an xdelta file with each
32039         coreutils release.
32040
32041         * build-aux/announce-gen: Also check for lzma-compressed files.
32042
32043 2008-01-11  Bruno Haible  <bruno@clisp.org>
32044
32045         * tests/test-memmem.c (main): Increase maximum allowed time.
32046         * tests/test-strstr.c (main): Likewise.
32047
32048 2008-01-11  Bruno Haible  <bruno@clisp.org>
32049
32050         * doc/functions/memmem.texi: Add more precisions about platforms.
32051         * doc/functions/strstr.texi: Likewise.
32052
32053 2008-01-10  Eric Blake  <ebb9@byu.net>
32054
32055         * m4/strstr.m4: Delete cruft from copy-n-paste.
32056         Reported by Bruno Haible.
32057
32058 2008-01-10  Bruno Haible  <bruno@clisp.org>
32059
32060         Make c-strstr rely on strstr.
32061         * lib/c-strstr.c: Don't include str-kmp.h.
32062         (c_strstr): Define in terms of strstr.
32063         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32064         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32065
32066 2008-01-10  Bruno Haible  <bruno@clisp.org>
32067
32068         * doc/gnulib.texi (String Functions in C Locale): New section.
32069         * doc/c-ctype.texi: New file.
32070         * doc/c-strcase.texi: New file.
32071         * doc/c-strcaseeq.texi: New file.
32072         * doc/c-strcasestr.texi: New file.
32073         * doc/c-strstr.texi: New file.
32074         * doc/c-strtod.texi: New file.
32075         * doc/c-strtold.texi: New file.
32076
32077 2008-01-10  Eric Blake  <ebb9@byu.net>
32078
32079         * lib/relocatable.h: Fix a comment.
32080
32081 2008-01-10  Eric Blake  <ebb9@byu.net>
32082
32083         Share two-way algorithm.
32084         * lib/str-two-way.h: New file, merged from...
32085         * lib/memmem.c: ...here...
32086         * lib/strstr.c: ...and here.
32087         * modules/memmem (Files): Use it.
32088         * modules/strstr (Files): Likewise.
32089
32090         Avoid quadratic strstr implementations.
32091         * lib/strstr.c: New file.
32092         * m4/strstr.m4: Likewise.
32093         * modules/strstr: Likewise.
32094         * modules/strstr-tests: Likewise.
32095         * tests/test-strstr.c: Likewise.
32096         * lib/string.in.h (rpl_strstr): Declare.
32097         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32099         * modules/string (Makefile.am): Likewise.
32100         * MODULES.html.sh (string handling): Mention new module.
32101         * doc/functions/strstr.texi (strstr): Document the bug.
32102
32103 2008-01-10  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/relocatable.h (relocate): State whether result is freshly
32106         allocated or not.
32107         * lib/relocatable.c (relocate): Return a freshly allocated string
32108         instead of a pointer to a privately held string.
32109         Reported by Sylvain Beucler <beuc@gnu.org>.
32110
32111 2008-01-10  Colin Watson  <cjwatson@debian.org>
32112
32113         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32114         s/S_ISNLK/S_ISLNK/.
32115
32116 2008-01-09  Bruno Haible  <bruno@clisp.org>
32117
32118         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32119         and other files.
32120         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32121         if it's only a guess.
32122         * modules/memmem: Simplify by depending on memmem-simple.
32123
32124 2008-01-09  Bruno Haible  <bruno@clisp.org>
32125
32126         Work around OpenBSD 4.0 tdelete() bug.
32127         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32128         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32129         macros and don't redefine the enum values.
32130         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32131         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32132         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32133
32134 2008-01-09  Bruno Haible  <bruno@clisp.org>
32135
32136         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32137         (main): Don't perform the tests if setlocale did not install a UTF-8
32138         locale. Needed on OpenBSD 4.0.
32139         * modules/wcwidth-tests (Depends-on): Add localcharset.
32140
32141 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32142
32143         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32144         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32145         * NEWS: announce this.
32146         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32147
32148 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32149         and Eric Blake  <ebb9@byu.net>
32150
32151         Add memmem-simple module.
32152         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32153         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32154         * modules/memmem-simple: New file.
32155         * modules/memmem (Description): Tweak.
32156         * MODULES.html.sh (string handling): Mention new module.
32157         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32158         addressed by memmem-simple.
32159         * NEWS: Document the difference.
32160
32161 2008-01-09  Eric Blake  <ebb9@byu.net>
32162
32163         Give gcc some memmem optimization hints.
32164         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32165         (strcasestr): Declare as pure.
32166         * modules/memmem (Maintainer): Claim my implementation.
32167
32168 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32169
32170         Support AIX 6.1 and higher.
32171         * build-aux/config.libpath: Likewise.
32172         * build-aux/config.rpath: Likewise.
32173
32174 2008-01-08  Jim Meyering  <meyering@redhat.com>
32175             Bruno Haible  <bruno@clisp.org>
32176
32177         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32178         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32179         Reported by Peter Fales in
32180         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32181
32182 2008-01-08  Bruno Haible  <bruno@clisp.org>
32183
32184         * modules/unictype/category-of (Depends-on): Add
32185         unictype/category-none.
32186         * modules/unictype/category-and-tests (Depends-on): Add
32187         unictype/category-{L,N,Lu,Nd}.
32188         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32189         * modules/unictype/category-or-tests (Depends-on): Add
32190         unictype/category-{L,N}.
32191         * modules/unictype/category-name-tests (Depends-on): Add
32192         unictype/category-{Z,Nl}.
32193         Reported by Simon Josefsson.
32194
32195 2008-01-08  Bruno Haible  <bruno@clisp.org>
32196
32197         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32198         convention better.
32199         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32200         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32201         Reported by Peter Miller <millerp@canb.auug.org.au>.
32202
32203 2008-01-08  Eric Blake  <ebb9@byu.net>
32204
32205         Rewrite memmem to guarantee linear complexity without malloc.
32206         * lib/memmem.c (memmem): Use Two-Way rather than
32207         Knuth-Morris-Pratt, to allow O(1) space usage.
32208         (critical_factorization, two_way_short_needle)
32209         (two_way_long_needle): New functions.
32210         (knuth_morris_pratt): Delete.
32211         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32212         Add stdint.
32213         * tests/test-memmem.c (main): Add tests for periodic needle and
32214         sublinear performance.
32215         * doc/functions/memmem.texi (memmem): Document other deficiencies
32216         in cygwin and older glibc.
32217
32218 2008-01-08  Bruno Haible  <bruno@clisp.org>
32219
32220         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32221         augmentation.
32222
32223 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32224
32225         Add a configure time option: --disable-acl.
32226         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32227         AC_ARG_ENABLE(acl).
32228
32229 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32230
32231         * tests/test-localename.c: Don't include obsolete "setenv.h".
32232
32233         * modules/localename-tests (Depends-on): Need unsetenv.
32234
32235 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32236
32237         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32238
32239 2008-01-06  Colin Watson  <cjwatson@debian.org>
32240
32241         * users.txt: Add man-db.
32242
32243 2008-01-07  Bruno Haible  <bruno@clisp.org>
32244
32245         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32246         previous section name.
32247
32248 2008-01-07  Bruno Haible  <bruno@clisp.org>
32249
32250         * lib/progname.c (set_program_name): Don't strip off a leading
32251         "lt-" prefix outside a .libs directory.
32252         Suggested by Paul Eggert.
32253
32254 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32255             Bruno Haible  <bruno@clisp.org>
32256
32257         Improve memory cleanup in 'relocatable' module.
32258         * lib/relocatable.h (compute_curr_prefix): Change return type to
32259         'char *'.
32260         * lib/relocatable.c (compute_curr_prefix): Change return type to
32261         'char *'. Free curr_installdir after use.
32262         (relocate): Free curr_prefix_better after use.
32263         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32264
32265 2008-01-01  Bruno Haible  <bruno@clisp.org>
32266
32267         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32268         failure on older glibc systems.
32269         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32270
32271 2008-01-05  Eric Blake  <ebb9@byu.net>
32272
32273         Avoid quadratic system memmem.
32274         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32275         Reported by Ralf Wildenhues.
32276
32277         Fix memmem test for mingw.
32278         * modules/memmem-tests (configure.ac): Check for alarm.
32279         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32280         it.
32281         * doc/functions/memmem.texi: New file.
32282         * doc/gnulib.texi (Function Substitutes): Add memmem.
32283         Reported by Bruno Haible.
32284
32285 2008-01-04  Bruno Haible  <bruno@clisp.org>
32286
32287         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32288         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32289         gl_HEADER_STRING_H_DEFAULTS.
32290
32291 2008-01-04  Eric Blake  <ebb9@byu.net>
32292
32293         Shorten duration of memmem test.
32294         * tests/test-memmem.c (main): Use alarm to declare failure if test
32295         is taking too long.
32296         Reported by Ralf Wildenhues.
32297
32298 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32299
32300         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32301         string, needed by strerror.
32302
32303 2008-01-03  Colin Watson  <cjwatson@debian.org>
32304             Bruno Haible  <bruno@clisp.org>
32305
32306         * doc/gnulib-tool.texi (Localization): New section.
32307
32308 2008-01-02  Bruno Haible  <bruno@clisp.org>
32309
32310         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32311         variables to 'unsigned char *' type.
32312         Reported by Paul Eggert.
32313
32314 2008-01-02  Jim Meyering  <jim@meyering.net>
32315
32316         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32317
32318 2007-12-31  Jim Meyering  <jim@meyering.net>
32319
32320         Avoid use of private FTS type name.
32321         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32322
32323 2007-12-30  Karl Berry  <karl@gnu.org>
32324
32325         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32326         work around defect in Texinfo and/or the standalone Info browser.
32327
32328 2007-12-30  Bruno Haible  <bruno@clisp.org>
32329
32330         Unify 5 copies of the KMP code.
32331         * lib/str-kmp.h: New file.
32332         * lib/c-strcasestr.c: Include str-kmp.h.
32333         (knuth_morris_pratt): Remove function.
32334         (c_strcasestr): Update.
32335         * lib/c-strstr.c: Include str-kmp.h.
32336         (knuth_morris_pratt): Remove function.
32337         (c_strcasestr): Update.
32338         * lib/mbscasestr.c: Include str-kmp.h.
32339         (knuth_morris_pratt_unibyte): Remove function.
32340         * lib/mbsstr.c: Include str-kmp.h.
32341         (knuth_morris_pratt_unibyte): Remove function.
32342         * lib/strcasestr.c: Include str-kmp.h.
32343         (knuth_morris_pratt): Remove function.
32344         (strcasestr): Update.
32345         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32346         * modules/c-strstr (Files): Likewise.
32347         * modules/mbscasestr (Files): Likewise.
32348         * modules/mbsstr (Files): Likewise.
32349         * modules/strcasestr (Files): Likewise.
32350         Suggested by Paul Eggert.
32351
32352 2007-12-30  Bruno Haible  <bruno@clisp.org>
32353
32354         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32355         defined.
32356
32357 2007-12-30  Bruno Haible  <bruno@clisp.org>
32358
32359         * lib/xmalloca.h: Include xalloc.h.
32360         (xnmalloca): New macro.
32361
32362 2007-12-30  Bruno Haible  <bruno@clisp.org>
32363
32364         * lib/malloca.h (nmalloca): New macro.
32365         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32366         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32367         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32368         knuth_morris_pratt_multibyte): Likewise.
32369         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32370         knuth_morris_pratt_multibyte): Likewise.
32371         * lib/memmem.c (knuth_morris_pratt): Likewise.
32372         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32373
32374 2007-12-25  Bruno Haible  <bruno@clisp.org>
32375
32376         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32377         * lib/glob.c: Don't include openat.h.
32378         (link_exists2_p): Add back the code that deals with the
32379         !GLOB_ALTDIRFUNC case.
32380         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32381         let it do the filename concatenation.
32382         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32383         * modules/glob (Depends-on): Remove openat.
32384
32385 2007-12-31  Bruno Haible  <bruno@clisp.org>
32386
32387         * modules/dirfd (License): Change to LGPLv2+.
32388         Approved by Jim Meyering.
32389
32390 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32391
32392         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32393         when multiplying M by sizeof (size_t).
32394
32395 2007-12-10  Martin Lambers  <marlam@marlam.de>
32396
32397         Override getpagesize on mingw.
32398         * lib/getpagesize.c: New file.
32399         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32400         * modules/getpagesize (Files): Add lib/getpagesize.c.
32401         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32403         REPLACE_GETPAGESIZE.
32404         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
32405
32406 2007-12-25  Bruno Haible  <bruno@clisp.org>
32407
32408         * modules/localcharset (Notice): New field.
32409         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
32410         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32411
32412 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
32413             Bruno Haible  <bruno@clisp.org>
32414
32415         Avoid using the syntax symbol() in formatted documentation.
32416         * MODULES.html.sh (func_module): When replacing symbol() with a
32417         hyperlink, remove the parentheses. Show an error if some remain.
32418         Recognize and render the '...' syntax.
32419         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
32420         Rework. Add paragraph about GCC's inlining.
32421         * doc/alloca.texi: Likewise.
32422         * doc/error.texi: Remove parentheses from symbol reference.
32423         * doc/gnulib-intro.texi: Likewise.
32424         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
32425         * modules/fnmatch (Description): Reword to say "the ... function".
32426         * modules/full-read (Description): Likewise.
32427         * modules/full-write (Description): Likewise.
32428         * modules/safe-read (Description): Likewise.
32429         * modules/safe-write (Description): Likewise.
32430         * modules/strchrnul (Description): Likewise.
32431         * modules/trim (Description): Likewise.
32432         * modules/error (Description): Remove parentheses from symbol
32433         references.
32434         * modules/verror (Description): Likewise.
32435         Reported by Karl Berry.
32436
32437 2007-12-25  Bruno Haible  <bruno@clisp.org>
32438
32439         Fixup after 2007-10-16 commit.
32440         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
32441
32442 2007-12-24  Bruno Haible  <bruno@clisp.org>
32443
32444         Make --enable-relocatable work with DESTDIR.
32445         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
32446         to compute installdir from destprog.
32447         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
32448         also set the RELOC_DESTDIR variable.
32449         Reported by Левашев Иван <octagram@bluebottle.com>.
32450
32451 2007-12-24  Bruno Haible  <bruno@clisp.org>
32452
32453         Fix link error due to xalloc_die().
32454         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
32455         of xreadlink.
32456         * lib/relocwrapper.c: Update comments.
32457         * build-aux/install-reloc: Remove xreadlink.c from file list.
32458         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
32459         xreadlink.c.
32460         Reported by Левашев Иван <octagram@bluebottle.com>.
32461
32462 2007-12-24  Bruno Haible  <bruno@clisp.org>
32463
32464         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
32465         * lib/setenv.h: Remove file.
32466         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
32467         lib/setenv.h.
32468         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
32469         (Depends-on): Add stdlib.
32470         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
32471         gl_FUNC_UNSETENV.
32472         (Include): Replace setenv.h with <stdlib.h>.
32473         * modules/unsetenv: New file.
32474         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
32475         * lib/unsetenv.c: Include <stdlib.h> first.
32476         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
32477         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
32478         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
32479         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
32480         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
32481         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
32483         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32484         * doc/functions/unsetenv.texi: Update.
32485         * modules/xsetenv (Depends-on): Add unsetenv.
32486         * modules/getdate (Depends-on): Likewise.
32487         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
32488         * lib/xsetenv.c: Don't include setenv.h.
32489         * lib/getdate.y: Likewise.
32490         * lib/relocwrapper.c: Likewise.
32491         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
32492         (Depends-on): Add stdlib.
32493         * NEWS: Mention the changes.
32494         Reported by Левашев Иван <octagram@bluebottle.com>.
32495
32496 2007-12-23  Bruno Haible  <bruno@clisp.org>
32497
32498         * lib/memmem.c (memmem): Use lowercase variable names. Tab
32499         indentation.
32500
32501 2007-12-23  Bruno Haible  <bruno@clisp.org>
32502
32503         * lib/c-strcasestr.c: Add more comments.
32504         * lib/c-strstr.c: Likewise.
32505         * lib/mbscasestr.c: Likewise.
32506         * lib/mbsstr.c: Likewise.
32507         * lib/strcasestr.c: Likewise.
32508         * lib/memmem.c: Likewise.
32509
32510 2007-12-23  Bruno Haible  <bruno@clisp.org>
32511
32512         * tests/test-memmem.c: Include <string.h> first.
32513
32514 2007-12-22  Bruno Haible  <bruno@clisp.org>
32515
32516         * gnulib-tool (func_create_testdir): Change $auxdir while generating
32517         the contents of $testsbase.
32518         Reported by Ralf Wildenhues.
32519
32520 2007-12-22  Bruno Haible  <bruno@clisp.org>
32521
32522         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
32523         two variables local_ldadd_before, local_ldadd_last.
32524
32525 2007-12-20  Eric Blake  <ebb9@byu.net>
32526
32527         Work around circular library issue when cross-compiling.
32528         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
32529         that progname.o does not need to pull in rpl_memcmp.
32530
32531 2007-12-19  Eric Blake  <ebb9@byu.net>
32532
32533         Fix memmem to avoid O(n^2) worst-case complexity.
32534         * lib/memmem.c (knuth_morris_pratt): New function.
32535         (memmem): Use it if first few naive iterations fail.
32536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
32537         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
32538         * modules/memchr (License): Likewise.
32539         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
32540         malloca.
32541         * tests/test-memmem.c: Rewrite, borrowing ideas from
32542         test-mbsstr1.c; the old version wouldn't even compile!
32543         * modules/memmem-tests: New file.
32544         * lib/string.in.h (rpl_memmem): Add declaration.
32545         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
32546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
32547         REPLACE_MEMMEM.
32548
32549 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32550
32551         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
32552         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
32553         before any system include files, and undef after them all.  This
32554         should fix a problem on VMS reported by John E. Malmberg in
32555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
32556
32557 2007-12-17  Eric Blake  <ebb9@byu.net>
32558
32559         Revert addition of verify, for BSD/OS.
32560         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
32561         can't handle large files, for the sake of obsolete platforms.
32562         * modules/fseeko (Depends-on): Remove verify.
32563         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
32564         * doc/functions/ftello.texi (ftello): Likewise.
32565         * doc/functions/fgetpos.texi (fgetpos): Likewise.
32566         Reported by Larry Jones.
32567
32568 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
32569
32570         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
32571         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
32572
32573 2007-12-17  Jim Meyering  <meyering@redhat.com>
32574
32575         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
32576         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
32577         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
32578         * modules/getcwd (Depends-on): Add openat.
32579         Reported by Petr Salinger.
32580
32581 2007-12-17  Bruno Haible  <bruno@clisp.org>
32582
32583         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
32584         avoid a segmentation fault of the configure test on x86_64 systems.
32585
32586 2007-12-15  Jim Meyering  <meyering@redhat.com>
32587
32588         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
32589
32590 2007-12-13  Eric Blake  <ebb9@byu.net>
32591
32592         Another fseek test.
32593         * tests/test-fseek.c (main): Also test ungetc handling.
32594         * tests/test-fseeko.c (main): Likewise.
32595         * modules/fseeko (Depends-on): Add verify.
32596         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
32597         large.
32598         Reported by Larry Jones.
32599
32600         Fix fseeko on mingw.
32601         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
32602         seek.
32603
32604         Beef up fseek tests.
32605         * tests/test-fseek.c (main): Also test eof handling.
32606         * tests/test-fseeko.c (main): Likewise.
32607         Reported by Larry Jones.
32608
32609 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
32610
32611         Fix fseeko on BSD-based platforms.
32612         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
32613         successful seek.
32614
32615 2007-12-12  Eric Blake  <ebb9@byu.net>
32616
32617         Allow circular dependency of separate libtests.a
32618         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
32619         when use_libtests.
32620
32621 2007-12-11  Eric Blake  <ebb9@byu.net>
32622
32623         Fix bug with -0.0L in previous patch.
32624         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
32625         * tests/test-isnan.c (main): Also test on zeroes.
32626         * tests/test-isnanf.c (main): Likewise.
32627         * tests/test-isnanl.h (main): Likewise.
32628
32629         Detect pseudo-denormals on x86 even when cross-compiling.
32630         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
32631         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
32632         invalid bit patterns that happen to satisfy ==.
32633
32634         Avoid link failures with separate libtests.a.
32635         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
32636         last, to satisfy circular dependencies.
32637
32638 2007-12-11  Eric Blake  <ebb9@byu.net>
32639         and Bruno Haible  <bruno@clisp.org>
32640
32641         Fix OpenBSD 4.0 <float.h> handling of long double.
32642         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
32643         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
32644         * doc/headers/float.texi (float.h): Document OpenBSD bug.
32645
32646 2007-12-11  Jim Meyering  <meyering@redhat.com>
32647
32648         * users.txt: Add libvirt.
32649
32650         Support versions of autoconf prior to 2.59c.
32651         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
32652         if it is not already defined.
32653
32654 2007-12-09  Bruno Haible  <bruno@clisp.org>
32655
32656         Let 'gnulib-tool --import' collect sources needed for the tests in
32657         tests/ rather than in lib/.
32658         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
32659         argument. If true, add rules to generate libtests.a, and put libtests.a
32660         into $(LDADD). Consider source files in subdirectories and set
32661         uses_subdirs.
32662         (func_emit_initmacro_start, func_emit_initmacro_end,
32663         func_emit_initmacro_done): Pass all arguments explicitly.
32664         (func_import): Determine two module lists main_modules,
32665         testsrelated_modules. Determine use_libtests. Determine two variables
32666         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
32667         instead of just sed_transform_lib_file. Determine two variables
32668         main_files and testsrelated_files. Compute 'files' as the union of
32669         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
32670         func_add_or_update. In the generated gnulib-comp.m4, collect the
32671         object files for tests/ in different variables than those for lib/.
32672         Substitute LIBTESTS_LIBDEPS.
32673         (func_create_testdir): Combine the uses_subdirs results from
32674         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
32675
32676 2007-12-09  Bruno Haible  <bruno@clisp.org>
32677
32678         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
32679         the build-aux directory.
32680
32681 2007-12-09  Bruno Haible  <bruno@clisp.org>
32682
32683         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
32684         introduced on 2006-09-09.
32685
32686 2007-12-07  Jim Meyering  <meyering@redhat.com>
32687
32688         Let these macros work also with autoconf-2.59.
32689         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
32690         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
32691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32692
32693 2007-12-06  Jim Meyering  <meyering@redhat.com>
32694
32695         Avoid a configure-time syntax error in gl_FUNC_ACL.
32696         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
32697         function in each branch, before testing the cache variable.
32698
32699 2007-12-04  Eric Blake  <ebb9@byu.net>
32700
32701         Make scripts executable.
32702         * build-aux/config.guess: Add execute permissions.
32703         * build-aux/config.sub: Likewise.
32704         * build-aux/gendocs.sh: Likewise.
32705
32706         Fix frexp on mingw.
32707         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
32708         cross-compiling.
32709         * doc/functions/frexp.texi (frexp): Document the bug.
32710
32711         Make cygwin fseeko check more reliable.
32712         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
32713         version numbers, rather than unrelated feature check.
32714         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
32715         * doc/functions/ftello.texi (ftello): Likewise.
32716         Reported by Bruno Haible.
32717
32718         * m4/strerror.m4: Bump version number.
32719
32720 2007-12-03  Bruno Haible  <bruno@clisp.org>
32721
32722         * doc/functions/mprotect.texi: Mention the mingw problem.
32723
32724 2007-12-03  Eric Blake  <ebb9@byu.net>
32725
32726         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
32727         REPLACE_STRERROR is initialized before this macro.
32728
32729 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32730
32731         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
32732         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
32733         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
32734         put -lsec in even for programs other than 'ls'.  This fixes a problem
32735         for gettext reported by Bruno Haible in
32736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
32737         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
32738         Add support for Solaris 10.  This isn't efficient, but should get the
32739         job done for now.
32740
32741 2007-12-03  James Youngman  <jay@gnu.org>
32742
32743         * doc/regexprops-generic.texi: change "an close-group" to "a
32744         close-group" and "illegal" to "not allowed".
32745
32746 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32747
32748         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
32749         pr_byname.h. Needed for the rare case when the maintainer has done
32750         "make maintainer-clean" in the source directory and then attempts a
32751         build outside the source directory.
32752         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
32753         scripts_byname.h.
32754
32755 2007-12-02  Martin Lambers <marlam@marlam.de>
32756             Bruno Haible  <bruno@clisp.org>
32757
32758         * lib/getpagesize.h: Remove file.
32759         * lib/unistd.in.h: Include declaration of getpagesize here.
32760         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
32761         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
32762         HAVE_SYS_PARAM_H.
32763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
32764         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32765         * modules/getpagesize (Files): Remove lib/getpagesize.h.
32766         (Depends-on): Add unistd.
32767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32768         (Include): Use <unistd.h> instead of getpagesize.h.
32769         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
32770         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32771         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
32772         gl_GETPAGESIZE invocation, already handled by module dependency.
32773         * lib/pagealign_alloc.c: Don't include getpagesize.h.
32774
32775 2007-12-02  Bruno Haible  <bruno@clisp.org>
32776
32777         * modules/strings-tests: New file.
32778         * tests/test-strings.c: New file.
32779
32780         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
32781         * lib/strings.in.h: New file.
32782         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
32783         * m4/strings_h.m4: New file.
32784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
32785         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
32786         * modules/strings: New file.
32787         * modules/string (Makefile.am): Update.
32788         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
32789         Reported by Karl Berry.
32790
32791 2007-12-01  Eric Blake  <ebb9@byu.net>
32792
32793         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
32794         accomodate fix in cygwin 1.5.25.
32795
32796 2007-12-01  Jim Meyering  <meyering@redhat.com>
32797
32798         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
32799         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
32800         that would inhibit utf8-optimization of a regexp containing line-
32801         or buffer-anchors, e.g., `^', `$'.
32802
32803 2007-11-30  Bruno Haible  <bruno@clisp.org>
32804
32805         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
32806         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
32807         glthread_recursive_lock_init.
32808         * lib/lock.c (glthread_recursive_lock_init)
32809         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
32810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32811
32812 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32813
32814         New function qset_acl, like set_acl but with syscall semantics.
32815         * lib/acl.h (qset_acl): New decl.
32816         * lib/acl.c (qset_acl): New function.
32817         (set_acl): Use new function.  Use more-consistent diagnostics.
32818
32819 2007-11-28  Jim Meyering  <meyering@redhat.com>
32820
32821         * modules/physmem (License): Change from GPL to LGPLv2+.
32822
32823 2007-11-26  Bruno Haible  <bruno@clisp.org>
32824
32825         * lib/vasnprintf.c (decode_long_double): Don't abort if the
32826         'long double' type has excess precision.
32827         Reported by Jim Meyering in
32828         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
32829
32830 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32831
32832         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
32833         Sync from <http://gnu.org/licenses>.
32834         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
32835         with license text from same location.
32836         * doc/maintain.texi, doc/standards.texi:  Sync from
32837         <http://savannah.gnu.org/projects/gnustandards>.
32838
32839 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
32840         and Jim Meyering  <meyering@redhat.com>
32841
32842         Adjust getdate' grammar to accept a slightly more regular language.
32843         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
32844         Before, the former was rejected.
32845         * lib/getdate.y (digits_to_date_time): New function, factored
32846         out of ...
32847         (number): ...here.  Just call digits_to_date_time.
32848         (hybrid): New non-terminal to handle an <unsigned number,
32849         signed relative offset> sequence consistently.
32850
32851 2007-11-18  Jim Meyering  <meyering@redhat.com>
32852
32853         Pull my changes from coreutils:
32854         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
32855         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
32856         use of $gnulib_tool_option_extras, so that it's separated from the
32857         preceding argument.
32858
32859         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
32860         * build-aux/bootstrap (cp_mark_as_generated): Create any required
32861         parent destination directories before copying a file into place.
32862
32863 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
32864
32865         bootstrap: work also with 4-argument variant of AC_INIT
32866         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
32867
32868 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32869
32870         Port test-getaddrinfo to Solaris.
32871         Problem reported by Bruno Haible in
32872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
32873         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
32874         explanation of setting 'hints'.
32875         Don't reject an implementation merely because it returns EAI_SERVICE.
32876         (EAI_SERVICE): Define to 0 if not defined.
32877
32878 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
32879
32880         The license of gnu-make and posix-shell is now "GPLed build tool".
32881         * modules/gnu-make (License): Likewise.
32882         * modules/posix-shell (License): Likewise.
32883
32884         New module posix-shell, for determining a POSIX shell
32885         or perhaps something that is close enough to a POSIX shell.
32886         * m4/posix-shell.m4: New file.
32887         * modules/posix-shell: New file.
32888
32889         * MODULES.html.sh: Mention new module.
32890
32891         New module gnu-make, for determining whether we're using GNU Make.
32892         * m4/gnu-make.m4: New file.
32893         * modules/gnu-make: New file.
32894         * MODULES.html.sh: Mention new module.
32895
32896 2007-11-14  Jim Meyering  <meyering@redhat.com>
32897
32898         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
32899         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
32900         use this macro to create a function _definition_.
32901         Remove useless "#undef ARGMATCH_DIE".
32902
32903 2007-11-14  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/config.charset: Update for OpenBSD 4.1.
32906         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
32907
32908 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
32909
32910         Document 64-bit #if problems in stdint.texi.
32911         * doc/headers/stdint.texi (stdint.h): Mention problems with
32912         64-bit-#if, and how to work around them.
32913
32914         Don't insist on 'long long int' support in the preprocessor.  It
32915         breaks too many things.  For example, PRIdMAX still uses a 'long
32916         long int' format with the latest Sun compiler, even though
32917         HAVE_LONG_LONG_INT isn't defined due to that compiler's
32918         preprocessor problem.  This causes the latest coreutils to dump
32919         core on Solaris 10 sparc with the Sun C compiler.
32920         Instead, fix the 2007-10-16 problem in a different way, by evaluating
32921         the troublesome expressions at configure-time, not at #if-time.
32922         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
32923         preprocessor.
32924         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
32925         compile-time C checks, done at 'configure'-time.
32926         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
32927         * modules/inttypes (Makefile): Substitute the new symbols that
32928         gl_INTTYPES_H now generates.
32929         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
32930
32931 2007-11-12  Bruno Haible  <bruno@clisp.org>
32932
32933         Tests for Unicode character classification functions.
32934
32935         * modules/unictype/bidicategory-byname-tests: New file.
32936         * modules/unictype/bidicategory-name-tests: New file.
32937         * modules/unictype/bidicategory-of-tests: New file.
32938         * modules/unictype/bidicategory-test-tests: New file.
32939         * modules/unictype/block-list-tests: New file.
32940         * modules/unictype/block-of-tests: New file.
32941         * modules/unictype/block-test-tests: New file.
32942         * modules/unictype/category-C-tests: New file.
32943         * modules/unictype/category-Cc-tests: New file.
32944         * modules/unictype/category-Cf-tests: New file.
32945         * modules/unictype/category-Cn-tests: New file.
32946         * modules/unictype/category-Co-tests: New file.
32947         * modules/unictype/category-Cs-tests: New file.
32948         * modules/unictype/category-L-tests: New file.
32949         * modules/unictype/category-Ll-tests: New file.
32950         * modules/unictype/category-Lm-tests: New file.
32951         * modules/unictype/category-Lo-tests: New file.
32952         * modules/unictype/category-Lt-tests: New file.
32953         * modules/unictype/category-Lu-tests: New file.
32954         * modules/unictype/category-M-tests: New file.
32955         * modules/unictype/category-Mc-tests: New file.
32956         * modules/unictype/category-Me-tests: New file.
32957         * modules/unictype/category-Mn-tests: New file.
32958         * modules/unictype/category-N-tests: New file.
32959         * modules/unictype/category-Nd-tests: New file.
32960         * modules/unictype/category-Nl-tests: New file.
32961         * modules/unictype/category-No-tests: New file.
32962         * modules/unictype/category-P-tests: New file.
32963         * modules/unictype/category-Pc-tests: New file.
32964         * modules/unictype/category-Pd-tests: New file.
32965         * modules/unictype/category-Pe-tests: New file.
32966         * modules/unictype/category-Pf-tests: New file.
32967         * modules/unictype/category-Pi-tests: New file.
32968         * modules/unictype/category-Po-tests: New file.
32969         * modules/unictype/category-Ps-tests: New file.
32970         * modules/unictype/category-S-tests: New file.
32971         * modules/unictype/category-Sc-tests: New file.
32972         * modules/unictype/category-Sk-tests: New file.
32973         * modules/unictype/category-Sm-tests: New file.
32974         * modules/unictype/category-So-tests: New file.
32975         * modules/unictype/category-Z-tests: New file.
32976         * modules/unictype/category-Zl-tests: New file.
32977         * modules/unictype/category-Zp-tests: New file.
32978         * modules/unictype/category-Zs-tests: New file.
32979         * modules/unictype/category-and-not-tests: New file.
32980         * modules/unictype/category-and-tests: New file.
32981         * modules/unictype/category-byname-tests: New file.
32982         * modules/unictype/category-name-tests: New file.
32983         * modules/unictype/category-none-tests: New file.
32984         * modules/unictype/category-of-tests: New file.
32985         * modules/unictype/category-or-tests: New file.
32986         * modules/unictype/category-test-withtable-tests: New file.
32987         * modules/unictype/combining-class-tests: New file.
32988         * modules/unictype/ctype-alnum-tests: New file.
32989         * modules/unictype/ctype-alpha-tests: New file.
32990         * modules/unictype/ctype-blank-tests: New file.
32991         * modules/unictype/ctype-cntrl-tests: New file.
32992         * modules/unictype/ctype-digit-tests: New file.
32993         * modules/unictype/ctype-graph-tests: New file.
32994         * modules/unictype/ctype-lower-tests: New file.
32995         * modules/unictype/ctype-print-tests: New file.
32996         * modules/unictype/ctype-punct-tests: New file.
32997         * modules/unictype/ctype-space-tests: New file.
32998         * modules/unictype/ctype-upper-tests: New file.
32999         * modules/unictype/ctype-xdigit-tests: New file.
33000         * modules/unictype/decimal-digit-tests: New file.
33001         * modules/unictype/digit-tests: New file.
33002         * modules/unictype/mirror-tests: New file.
33003         * modules/unictype/numeric-tests: New file.
33004         * modules/unictype/property-alphabetic-tests: New file.
33005         * modules/unictype/property-ascii-hex-digit-tests: New file.
33006         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33007         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33008         * modules/unictype/property-bidi-block-separator-tests: New file.
33009         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33010         * modules/unictype/property-bidi-common-separator-tests: New file.
33011         * modules/unictype/property-bidi-control-tests: New file.
33012         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33013         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33014         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33015         * modules/unictype/property-bidi-european-digit-tests: New file.
33016         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33017         * modules/unictype/property-bidi-left-to-right-tests: New file.
33018         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33019         * modules/unictype/property-bidi-other-neutral-tests: New file.
33020         * modules/unictype/property-bidi-pdf-tests: New file.
33021         * modules/unictype/property-bidi-segment-separator-tests: New file.
33022         * modules/unictype/property-bidi-whitespace-tests: New file.
33023         * modules/unictype/property-byname-tests: New file.
33024         * modules/unictype/property-combining-tests: New file.
33025         * modules/unictype/property-composite-tests: New file.
33026         * modules/unictype/property-currency-symbol-tests: New file.
33027         * modules/unictype/property-dash-tests: New file.
33028         * modules/unictype/property-decimal-digit-tests: New file.
33029         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33030         * modules/unictype/property-deprecated-tests: New file.
33031         * modules/unictype/property-diacritic-tests: New file.
33032         * modules/unictype/property-extender-tests: New file.
33033         * modules/unictype/property-format-control-tests: New file.
33034         * modules/unictype/property-grapheme-base-tests: New file.
33035         * modules/unictype/property-grapheme-extend-tests: New file.
33036         * modules/unictype/property-grapheme-link-tests: New file.
33037         * modules/unictype/property-hex-digit-tests: New file.
33038         * modules/unictype/property-hyphen-tests: New file.
33039         * modules/unictype/property-id-continue-tests: New file.
33040         * modules/unictype/property-id-start-tests: New file.
33041         * modules/unictype/property-ideographic-tests: New file.
33042         * modules/unictype/property-ids-binary-operator-tests: New file.
33043         * modules/unictype/property-ids-trinary-operator-tests: New file.
33044         * modules/unictype/property-ignorable-control-tests: New file.
33045         * modules/unictype/property-iso-control-tests: New file.
33046         * modules/unictype/property-join-control-tests: New file.
33047         * modules/unictype/property-left-of-pair-tests: New file.
33048         * modules/unictype/property-line-separator-tests: New file.
33049         * modules/unictype/property-logical-order-exception-tests: New file.
33050         * modules/unictype/property-lowercase-tests: New file.
33051         * modules/unictype/property-math-tests: New file.
33052         * modules/unictype/property-non-break-tests: New file.
33053         * modules/unictype/property-not-a-character-tests: New file.
33054         * modules/unictype/property-numeric-tests: New file.
33055         * modules/unictype/property-other-alphabetic-tests: New file.
33056         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33057         * modules/unictype/property-other-grapheme-extend-tests: New file.
33058         * modules/unictype/property-other-id-continue-tests: New file.
33059         * modules/unictype/property-other-id-start-tests: New file.
33060         * modules/unictype/property-other-lowercase-tests: New file.
33061         * modules/unictype/property-other-math-tests: New file.
33062         * modules/unictype/property-other-uppercase-tests: New file.
33063         * modules/unictype/property-paired-punctuation-tests: New file.
33064         * modules/unictype/property-paragraph-separator-tests: New file.
33065         * modules/unictype/property-pattern-syntax-tests: New file.
33066         * modules/unictype/property-pattern-white-space-tests: New file.
33067         * modules/unictype/property-private-use-tests: New file.
33068         * modules/unictype/property-punctuation-tests: New file.
33069         * modules/unictype/property-quotation-mark-tests: New file.
33070         * modules/unictype/property-radical-tests: New file.
33071         * modules/unictype/property-sentence-terminal-tests: New file.
33072         * modules/unictype/property-soft-dotted-tests: New file.
33073         * modules/unictype/property-space-tests: New file.
33074         * modules/unictype/property-terminal-punctuation-tests: New file.
33075         * modules/unictype/property-test-tests: New file.
33076         * modules/unictype/property-titlecase-tests: New file.
33077         * modules/unictype/property-unassigned-code-value-tests: New file.
33078         * modules/unictype/property-unified-ideograph-tests: New file.
33079         * modules/unictype/property-uppercase-tests: New file.
33080         * modules/unictype/property-variation-selector-tests: New file.
33081         * modules/unictype/property-white-space-tests: New file.
33082         * modules/unictype/property-xid-continue-tests: New file.
33083         * modules/unictype/property-xid-start-tests: New file.
33084         * modules/unictype/property-zero-width-tests: New file.
33085         * modules/unictype/scripts-tests: New file.
33086         * modules/unictype/syntax-c-ident-tests: New file.
33087         * modules/unictype/syntax-c-whitespace-tests: New file.
33088         * modules/unictype/syntax-java-ident-tests: New file.
33089         * modules/unictype/syntax-java-whitespace-tests: New file.
33090         * tests/unictype/test-bidi_byname.c: New file.
33091         * tests/unictype/test-bidi_name.c: New file.
33092         * tests/unictype/test-bidi_of.c: New file.
33093         * tests/unictype/test-bidi_test.c: New file.
33094         * tests/unictype/test-block_list.c: New file.
33095         * tests/unictype/test-block_of.c: New file.
33096         * tests/unictype/test-block_test.c: New file.
33097         * tests/unictype/test-categ_and.c: New file.
33098         * tests/unictype/test-categ_and_not.c: New file.
33099         * tests/unictype/test-categ_byname.c: New file.
33100         * tests/unictype/test-categ_name.c: New file.
33101         * tests/unictype/test-categ_none.c: New file.
33102         * tests/unictype/test-categ_of.c: New file.
33103         * tests/unictype/test-categ_or.c: New file.
33104         * tests/unictype/test-categ_test_withtable.c: New file.
33105         * tests/unictype/test-combining.c: New file.
33106         * tests/unictype/test-decdigit.c: New file.
33107         * tests/unictype/test-digit.c: New file.
33108         * tests/unictype/test-mirror.c: New file.
33109         * tests/unictype/test-numeric.c: New file.
33110         * tests/unictype/test-pr_byname.c: New file.
33111         * tests/unictype/test-pr_test.c: New file.
33112         * tests/unictype/test-predicate-part1.h: New file.
33113         * tests/unictype/test-predicate-part2.h: New file.
33114         * tests/unictype/test-scripts.c: New file.
33115         * tests/unictype/test-sy_c_ident.c: New file.
33116         * tests/unictype/test-sy_java_ident.c: New file.
33117
33118         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33119         for Unicode 5.0.0.
33120         * tests/unictype/test-categ_Cc.c: Likewise.
33121         * tests/unictype/test-categ_Cf.c: Likewise.
33122         * tests/unictype/test-categ_Cn.c: Likewise.
33123         * tests/unictype/test-categ_Co.c: Likewise.
33124         * tests/unictype/test-categ_Cs.c: Likewise.
33125         * tests/unictype/test-categ_L.c: Likewise.
33126         * tests/unictype/test-categ_Ll.c: Likewise.
33127         * tests/unictype/test-categ_Lm.c: Likewise.
33128         * tests/unictype/test-categ_Lo.c: Likewise.
33129         * tests/unictype/test-categ_Lt.c: Likewise.
33130         * tests/unictype/test-categ_Lu.c: Likewise.
33131         * tests/unictype/test-categ_M.c: Likewise.
33132         * tests/unictype/test-categ_Mc.c: Likewise.
33133         * tests/unictype/test-categ_Me.c: Likewise.
33134         * tests/unictype/test-categ_Mn.c: Likewise.
33135         * tests/unictype/test-categ_N.c: Likewise.
33136         * tests/unictype/test-categ_Nd.c: Likewise.
33137         * tests/unictype/test-categ_Nl.c: Likewise.
33138         * tests/unictype/test-categ_No.c: Likewise.
33139         * tests/unictype/test-categ_P.c: Likewise.
33140         * tests/unictype/test-categ_Pc.c: Likewise.
33141         * tests/unictype/test-categ_Pd.c: Likewise.
33142         * tests/unictype/test-categ_Pe.c: Likewise.
33143         * tests/unictype/test-categ_Pf.c: Likewise.
33144         * tests/unictype/test-categ_Pi.c: Likewise.
33145         * tests/unictype/test-categ_Po.c: Likewise.
33146         * tests/unictype/test-categ_Ps.c: Likewise.
33147         * tests/unictype/test-categ_S.c: Likewise.
33148         * tests/unictype/test-categ_Sc.c: Likewise.
33149         * tests/unictype/test-categ_Sk.c: Likewise.
33150         * tests/unictype/test-categ_Sm.c: Likewise.
33151         * tests/unictype/test-categ_So.c: Likewise.
33152         * tests/unictype/test-categ_Z.c: Likewise.
33153         * tests/unictype/test-categ_Zl.c: Likewise.
33154         * tests/unictype/test-categ_Zp.c: Likewise.
33155         * tests/unictype/test-categ_Zs.c: Likewise.
33156         * tests/unictype/test-ctype_alnum.c: Likewise.
33157         * tests/unictype/test-ctype_alpha.c: Likewise.
33158         * tests/unictype/test-ctype_blank.c: Likewise.
33159         * tests/unictype/test-ctype_cntrl.c: Likewise.
33160         * tests/unictype/test-ctype_digit.c: Likewise.
33161         * tests/unictype/test-ctype_graph.c: Likewise.
33162         * tests/unictype/test-ctype_lower.c: Likewise.
33163         * tests/unictype/test-ctype_print.c: Likewise.
33164         * tests/unictype/test-ctype_punct.c: Likewise.
33165         * tests/unictype/test-ctype_space.c: Likewise.
33166         * tests/unictype/test-ctype_upper.c: Likewise.
33167         * tests/unictype/test-ctype_xdigit.c: Likewise.
33168         * tests/unictype/test-decdigit.h: Likewise.
33169         * tests/unictype/test-digit.h: Likewise.
33170         * tests/unictype/test-numeric.h: Likewise.
33171         * tests/unictype/test-pr_alphabetic.c: Likewise.
33172         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33173         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33174         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33175         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33176         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33177         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33178         * tests/unictype/test-pr_bidi_control.c: Likewise.
33179         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33180         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33181         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33182         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33183         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33184         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33185         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33186         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33187         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33188         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33189         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33190         * tests/unictype/test-pr_combining.c: Likewise.
33191         * tests/unictype/test-pr_composite.c: Likewise.
33192         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33193         * tests/unictype/test-pr_dash.c: Likewise.
33194         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33195         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33196         * tests/unictype/test-pr_deprecated.c: Likewise.
33197         * tests/unictype/test-pr_diacritic.c: Likewise.
33198         * tests/unictype/test-pr_extender.c: Likewise.
33199         * tests/unictype/test-pr_format_control.c: Likewise.
33200         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33201         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33202         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33203         * tests/unictype/test-pr_hex_digit.c: Likewise.
33204         * tests/unictype/test-pr_hyphen.c: Likewise.
33205         * tests/unictype/test-pr_id_continue.c: Likewise.
33206         * tests/unictype/test-pr_id_start.c: Likewise.
33207         * tests/unictype/test-pr_ideographic.c: Likewise.
33208         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33209         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33210         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33211         * tests/unictype/test-pr_iso_control.c: Likewise.
33212         * tests/unictype/test-pr_join_control.c: Likewise.
33213         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33214         * tests/unictype/test-pr_line_separator.c: Likewise.
33215         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33216         * tests/unictype/test-pr_lowercase.c: Likewise.
33217         * tests/unictype/test-pr_math.c: Likewise.
33218         * tests/unictype/test-pr_non_break.c: Likewise.
33219         * tests/unictype/test-pr_not_a_character.c: Likewise.
33220         * tests/unictype/test-pr_numeric.c: Likewise.
33221         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33222         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33223         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33224         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33225         * tests/unictype/test-pr_other_id_start.c: Likewise.
33226         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33227         * tests/unictype/test-pr_other_math.c: Likewise.
33228         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33229         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33230         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33231         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33232         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33233         * tests/unictype/test-pr_private_use.c: Likewise.
33234         * tests/unictype/test-pr_punctuation.c: Likewise.
33235         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33236         * tests/unictype/test-pr_radical.c: Likewise.
33237         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33238         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33239         * tests/unictype/test-pr_space.c: Likewise.
33240         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33241         * tests/unictype/test-pr_titlecase.c: Likewise.
33242         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33243         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33244         * tests/unictype/test-pr_uppercase.c: Likewise.
33245         * tests/unictype/test-pr_variation_selector.c: Likewise.
33246         * tests/unictype/test-pr_white_space.c: Likewise.
33247         * tests/unictype/test-pr_xid_continue.c: Likewise.
33248         * tests/unictype/test-pr_xid_start.c: Likewise.
33249         * tests/unictype/test-pr_zero_width.c: Likewise.
33250         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33251         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33252
33253 2007-11-12  Bruno Haible  <bruno@clisp.org>
33254
33255         Unicode character classification functions.
33256         * lib/unictype.h: New file.
33257         * modules/unictype/base: New file.
33258         * modules/unictype/category-L: New file.
33259         * modules/unictype/category-Lu: New file.
33260         * modules/unictype/category-Ll: New file.
33261         * modules/unictype/category-Lt: New file.
33262         * modules/unictype/category-Lm: New file.
33263         * modules/unictype/category-Lo: New file.
33264         * modules/unictype/category-M: New file.
33265         * modules/unictype/category-Mn: New file.
33266         * modules/unictype/category-Mc: New file.
33267         * modules/unictype/category-Me: New file.
33268         * modules/unictype/category-N: New file.
33269         * modules/unictype/category-Nd: New file.
33270         * modules/unictype/category-Nl: New file.
33271         * modules/unictype/category-No: New file.
33272         * modules/unictype/category-P: New file.
33273         * modules/unictype/category-Pc: New file.
33274         * modules/unictype/category-Pd: New file.
33275         * modules/unictype/category-Ps: New file.
33276         * modules/unictype/category-Pe: New file.
33277         * modules/unictype/category-Pi: New file.
33278         * modules/unictype/category-Pf: New file.
33279         * modules/unictype/category-Po: New file.
33280         * modules/unictype/category-S: New file.
33281         * modules/unictype/category-Sm: New file.
33282         * modules/unictype/category-Sc: New file.
33283         * modules/unictype/category-Sk: New file.
33284         * modules/unictype/category-So: New file.
33285         * modules/unictype/category-Z: New file.
33286         * modules/unictype/category-Zs: New file.
33287         * modules/unictype/category-Zl: New file.
33288         * modules/unictype/category-Zp: New file.
33289         * modules/unictype/category-C: New file.
33290         * modules/unictype/category-Cc: New file.
33291         * modules/unictype/category-Cf: New file.
33292         * modules/unictype/category-Cs: New file.
33293         * modules/unictype/category-Co: New file.
33294         * modules/unictype/category-Cn: New file.
33295         * modules/unictype/category-or: New file.
33296         * modules/unictype/category-of: New file.
33297         * modules/unictype/category-test: New file.
33298         * modules/unictype/category-test-withtable: New file.
33299         * modules/unictype/category-byname: New file.
33300         * modules/unictype/category-none: New file.
33301         * modules/unictype/category-and: New file.
33302         * modules/unictype/category-and-not: New file.
33303         * modules/unictype/category-name: New file.
33304         * modules/unictype/combining-class: New file.
33305         * modules/unictype/category-all: New file.
33306         * modules/unictype/bidicategory-all: New file.
33307         * modules/unictype/bidicategory-byname: New file.
33308         * modules/unictype/bidicategory-name: New file.
33309         * modules/unictype/bidicategory-of: New file.
33310         * modules/unictype/bidicategory-test: New file.
33311         * modules/unictype/decimal-digit: New file.
33312         * modules/unictype/digit: New file.
33313         * modules/unictype/numeric: New file.
33314         * modules/unictype/mirror: New file.
33315         * modules/unictype/property-white-space: New file.
33316         * modules/unictype/property-alphabetic: New file.
33317         * modules/unictype/property-other-alphabetic: New file.
33318         * modules/unictype/property-not-a-character: New file.
33319         * modules/unictype/property-default-ignorable-code-point: New file.
33320         * modules/unictype/property-other-default-ignorable-code-point: New
33321         file.
33322         * modules/unictype/property-deprecated: New file.
33323         * modules/unictype/property-logical-order-exception: New file.
33324         * modules/unictype/property-variation-selector: New file.
33325         * modules/unictype/property-private-use: New file.
33326         * modules/unictype/property-unassigned-code-value: New file.
33327         * modules/unictype/property-uppercase: New file.
33328         * modules/unictype/property-other-uppercase: New file.
33329         * modules/unictype/property-lowercase: New file.
33330         * modules/unictype/property-other-lowercase: New file.
33331         * modules/unictype/property-titlecase: New file.
33332         * modules/unictype/property-soft-dotted: New file.
33333         * modules/unictype/property-id-start: New file.
33334         * modules/unictype/property-other-id-start: New file.
33335         * modules/unictype/property-id-continue: New file.
33336         * modules/unictype/property-other-id-continue: New file.
33337         * modules/unictype/property-xid-start: New file.
33338         * modules/unictype/property-xid-continue: New file.
33339         * modules/unictype/property-pattern-white-space: New file.
33340         * modules/unictype/property-pattern-syntax: New file.
33341         * modules/unictype/property-join-control: New file.
33342         * modules/unictype/property-grapheme-base: New file.
33343         * modules/unictype/property-grapheme-extend: New file.
33344         * modules/unictype/property-other-grapheme-extend: New file.
33345         * modules/unictype/property-grapheme-link: New file.
33346         * modules/unictype/property-bidi-control: New file.
33347         * modules/unictype/property-bidi-left-to-right: New file.
33348         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33349         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33350         * modules/unictype/property-bidi-european-digit: New file.
33351         * modules/unictype/property-bidi-eur-num-separator: New file.
33352         * modules/unictype/property-bidi-eur-num-terminator: New file.
33353         * modules/unictype/property-bidi-arabic-digit: New file.
33354         * modules/unictype/property-bidi-common-separator: New file.
33355         * modules/unictype/property-bidi-block-separator: New file.
33356         * modules/unictype/property-bidi-segment-separator: New file.
33357         * modules/unictype/property-bidi-whitespace: New file.
33358         * modules/unictype/property-bidi-non-spacing-mark: New file.
33359         * modules/unictype/property-bidi-boundary-neutral: New file.
33360         * modules/unictype/property-bidi-pdf: New file.
33361         * modules/unictype/property-bidi-embedding-or-override: New file.
33362         * modules/unictype/property-bidi-other-neutral: New file.
33363         * modules/unictype/property-hex-digit: New file.
33364         * modules/unictype/property-ascii-hex-digit: New file.
33365         * modules/unictype/property-ideographic: New file.
33366         * modules/unictype/property-unified-ideograph: New file.
33367         * modules/unictype/property-radical: New file.
33368         * modules/unictype/property-ids-binary-operator: New file.
33369         * modules/unictype/property-ids-trinary-operator: New file.
33370         * modules/unictype/property-zero-width: New file.
33371         * modules/unictype/property-space: New file.
33372         * modules/unictype/property-non-break: New file.
33373         * modules/unictype/property-iso-control: New file.
33374         * modules/unictype/property-format-control: New file.
33375         * modules/unictype/property-dash: New file.
33376         * modules/unictype/property-hyphen: New file.
33377         * modules/unictype/property-punctuation: New file.
33378         * modules/unictype/property-line-separator: New file.
33379         * modules/unictype/property-paragraph-separator: New file.
33380         * modules/unictype/property-quotation-mark: New file.
33381         * modules/unictype/property-sentence-terminal: New file.
33382         * modules/unictype/property-terminal-punctuation: New file.
33383         * modules/unictype/property-currency-symbol: New file.
33384         * modules/unictype/property-math: New file.
33385         * modules/unictype/property-other-math: New file.
33386         * modules/unictype/property-paired-punctuation: New file.
33387         * modules/unictype/property-left-of-pair: New file.
33388         * modules/unictype/property-combining: New file.
33389         * modules/unictype/property-composite: New file.
33390         * modules/unictype/property-decimal-digit: New file.
33391         * modules/unictype/property-numeric: New file.
33392         * modules/unictype/property-diacritic: New file.
33393         * modules/unictype/property-extender: New file.
33394         * modules/unictype/property-ignorable-control: New file.
33395         * modules/unictype/property-test: New file.
33396         * modules/unictype/property-byname: New file.
33397         * modules/unictype/property-all: New file.
33398         * modules/unictype/scripts: New file.
33399         * modules/unictype/scripts-all: New file.
33400         * modules/unictype/block-of: New file.
33401         * modules/unictype/block-test: New file.
33402         * modules/unictype/block-list: New file.
33403         * modules/unictype/block-all: New file.
33404         * modules/unictype/syntax-c-whitespace: New file.
33405         * modules/unictype/syntax-java-whitespace: New file.
33406         * modules/unictype/syntax-c-ident: New file.
33407         * modules/unictype/syntax-java-ident: New file.
33408         * modules/unictype/ctype-alnum: New file.
33409         * modules/unictype/ctype-alpha: New file.
33410         * modules/unictype/ctype-cntrl: New file.
33411         * modules/unictype/ctype-digit: New file.
33412         * modules/unictype/ctype-graph: New file.
33413         * modules/unictype/ctype-lower: New file.
33414         * modules/unictype/ctype-print: New file.
33415         * modules/unictype/ctype-punct: New file.
33416         * modules/unictype/ctype-space: New file.
33417         * modules/unictype/ctype-upper: New file.
33418         * modules/unictype/ctype-xdigit: New file.
33419         * modules/unictype/ctype-blank: New file.
33420         * lib/unictype/bidi_byname.c: New file.
33421         * lib/unictype/bidi_name.c: New file.
33422         * lib/unictype/bidi_of.c: New file.
33423         * lib/unictype/bidi_test.c: New file.
33424         * lib/unictype/bitmap.h: New file.
33425         * lib/unictype/block_test.c: New file.
33426         * lib/unictype/blocks.c: New file.
33427         * lib/unictype/categ_C.c: New file.
33428         * lib/unictype/categ_Cc.c: New file.
33429         * lib/unictype/categ_Cf.c: New file.
33430         * lib/unictype/categ_Cn.c: New file.
33431         * lib/unictype/categ_Co.c: New file.
33432         * lib/unictype/categ_Cs.c: New file.
33433         * lib/unictype/categ_L.c: New file.
33434         * lib/unictype/categ_Ll.c: New file.
33435         * lib/unictype/categ_Lm.c: New file.
33436         * lib/unictype/categ_Lo.c: New file.
33437         * lib/unictype/categ_Lt.c: New file.
33438         * lib/unictype/categ_Lu.c: New file.
33439         * lib/unictype/categ_M.c: New file.
33440         * lib/unictype/categ_Mc.c: New file.
33441         * lib/unictype/categ_Me.c: New file.
33442         * lib/unictype/categ_Mn.c: New file.
33443         * lib/unictype/categ_N.c: New file.
33444         * lib/unictype/categ_Nd.c: New file.
33445         * lib/unictype/categ_Nl.c: New file.
33446         * lib/unictype/categ_No.c: New file.
33447         * lib/unictype/categ_P.c: New file.
33448         * lib/unictype/categ_Pc.c: New file.
33449         * lib/unictype/categ_Pd.c: New file.
33450         * lib/unictype/categ_Pe.c: New file.
33451         * lib/unictype/categ_Pf.c: New file.
33452         * lib/unictype/categ_Pi.c: New file.
33453         * lib/unictype/categ_Po.c: New file.
33454         * lib/unictype/categ_Ps.c: New file.
33455         * lib/unictype/categ_S.c: New file.
33456         * lib/unictype/categ_Sc.c: New file.
33457         * lib/unictype/categ_Sk.c: New file.
33458         * lib/unictype/categ_Sm.c: New file.
33459         * lib/unictype/categ_So.c: New file.
33460         * lib/unictype/categ_Z.c: New file.
33461         * lib/unictype/categ_Zl.c: New file.
33462         * lib/unictype/categ_Zp.c: New file.
33463         * lib/unictype/categ_Zs.c: New file.
33464         * lib/unictype/categ_and.c: New file.
33465         * lib/unictype/categ_and_not.c: New file.
33466         * lib/unictype/categ_byname.c: New file.
33467         * lib/unictype/categ_name.c: New file.
33468         * lib/unictype/categ_none.c: New file.
33469         * lib/unictype/categ_of.c: New file.
33470         * lib/unictype/categ_or.c: New file.
33471         * lib/unictype/categ_test.c: New file.
33472         * lib/unictype/combining.c: New file.
33473         * lib/unictype/ctype_alnum.c: New file.
33474         * lib/unictype/ctype_alpha.c: New file.
33475         * lib/unictype/ctype_blank.c: New file.
33476         * lib/unictype/ctype_cntrl.c: New file.
33477         * lib/unictype/ctype_digit.c: New file.
33478         * lib/unictype/ctype_graph.c: New file.
33479         * lib/unictype/ctype_lower.c: New file.
33480         * lib/unictype/ctype_print.c: New file.
33481         * lib/unictype/ctype_punct.c: New file.
33482         * lib/unictype/ctype_space.c: New file.
33483         * lib/unictype/ctype_upper.c: New file.
33484         * lib/unictype/ctype_xdigit.c: New file.
33485         * lib/unictype/decdigit.c: New file.
33486         * lib/unictype/digit.c: New file.
33487         * lib/unictype/identsyntaxmap.h: New file.
33488         * lib/unictype/mirror.c: New file.
33489         * lib/unictype/numeric.c: New file.
33490         * lib/unictype/pr_alphabetic.c: New file.
33491         * lib/unictype/pr_ascii_hex_digit.c: New file.
33492         * lib/unictype/pr_bidi_arabic_digit.c: New file.
33493         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
33494         * lib/unictype/pr_bidi_block_separator.c: New file.
33495         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
33496         * lib/unictype/pr_bidi_common_separator.c: New file.
33497         * lib/unictype/pr_bidi_control.c: New file.
33498         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
33499         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
33500         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
33501         * lib/unictype/pr_bidi_european_digit.c: New file.
33502         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
33503         * lib/unictype/pr_bidi_left_to_right.c: New file.
33504         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
33505         * lib/unictype/pr_bidi_other_neutral.c: New file.
33506         * lib/unictype/pr_bidi_pdf.c: New file.
33507         * lib/unictype/pr_bidi_segment_separator.c: New file.
33508         * lib/unictype/pr_bidi_whitespace.c: New file.
33509         * lib/unictype/pr_byname.c: New file.
33510         * lib/unictype/pr_byname.gperf: New file.
33511         * lib/unictype/pr_combining.c: New file.
33512         * lib/unictype/pr_composite.c: New file.
33513         * lib/unictype/pr_currency_symbol.c: New file.
33514         * lib/unictype/pr_dash.c: New file.
33515         * lib/unictype/pr_decimal_digit.c: New file.
33516         * lib/unictype/pr_default_ignorable_code_point.c: New file.
33517         * lib/unictype/pr_deprecated.c: New file.
33518         * lib/unictype/pr_diacritic.c: New file.
33519         * lib/unictype/pr_extender.c: New file.
33520         * lib/unictype/pr_format_control.c: New file.
33521         * lib/unictype/pr_grapheme_base.c: New file.
33522         * lib/unictype/pr_grapheme_extend.c: New file.
33523         * lib/unictype/pr_grapheme_link.c: New file.
33524         * lib/unictype/pr_hex_digit.c: New file.
33525         * lib/unictype/pr_hyphen.c: New file.
33526         * lib/unictype/pr_id_continue.c: New file.
33527         * lib/unictype/pr_id_start.c: New file.
33528         * lib/unictype/pr_ideographic.c: New file.
33529         * lib/unictype/pr_ids_binary_operator.c: New file.
33530         * lib/unictype/pr_ids_trinary_operator.c: New file.
33531         * lib/unictype/pr_ignorable_control.c: New file.
33532         * lib/unictype/pr_iso_control.c: New file.
33533         * lib/unictype/pr_join_control.c: New file.
33534         * lib/unictype/pr_left_of_pair.c: New file.
33535         * lib/unictype/pr_line_separator.c: New file.
33536         * lib/unictype/pr_logical_order_exception.c: New file.
33537         * lib/unictype/pr_lowercase.c: New file.
33538         * lib/unictype/pr_math.c: New file.
33539         * lib/unictype/pr_non_break.c: New file.
33540         * lib/unictype/pr_not_a_character.c: New file.
33541         * lib/unictype/pr_numeric.c: New file.
33542         * lib/unictype/pr_other_alphabetic.c: New file.
33543         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
33544         * lib/unictype/pr_other_grapheme_extend.c: New file.
33545         * lib/unictype/pr_other_id_continue.c: New file.
33546         * lib/unictype/pr_other_id_start.c: New file.
33547         * lib/unictype/pr_other_lowercase.c: New file.
33548         * lib/unictype/pr_other_math.c: New file.
33549         * lib/unictype/pr_other_uppercase.c: New file.
33550         * lib/unictype/pr_paired_punctuation.c: New file.
33551         * lib/unictype/pr_paragraph_separator.c: New file.
33552         * lib/unictype/pr_pattern_syntax.c: New file.
33553         * lib/unictype/pr_pattern_white_space.c: New file.
33554         * lib/unictype/pr_private_use.c: New file.
33555         * lib/unictype/pr_punctuation.c: New file.
33556         * lib/unictype/pr_quotation_mark.c: New file.
33557         * lib/unictype/pr_radical.c: New file.
33558         * lib/unictype/pr_sentence_terminal.c: New file.
33559         * lib/unictype/pr_soft_dotted.c: New file.
33560         * lib/unictype/pr_space.c: New file.
33561         * lib/unictype/pr_terminal_punctuation.c: New file.
33562         * lib/unictype/pr_test.c: New file.
33563         * lib/unictype/pr_titlecase.c: New file.
33564         * lib/unictype/pr_unassigned_code_value.c: New file.
33565         * lib/unictype/pr_unified_ideograph.c: New file.
33566         * lib/unictype/pr_uppercase.c: New file.
33567         * lib/unictype/pr_variation_selector.c: New file.
33568         * lib/unictype/pr_white_space.c: New file.
33569         * lib/unictype/pr_xid_continue.c: New file.
33570         * lib/unictype/pr_xid_start.c: New file.
33571         * lib/unictype/pr_zero_width.c: New file.
33572         * lib/unictype/scripts.c: New file.
33573         * lib/unictype/sy_c_ident.c: New file.
33574         * lib/unictype/sy_c_whitespace.c: New file.
33575         * lib/unictype/sy_java_ident.c: New file.
33576         * lib/unictype/sy_java_whitespace.c: New file.
33577
33578         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
33579         Unicode 5.0.0.
33580         * lib/unictype/blocks.h: Likewise.
33581         * lib/unictype/categ_C.h: Likewise.
33582         * lib/unictype/categ_Cc.h: Likewise.
33583         * lib/unictype/categ_Cf.h: Likewise.
33584         * lib/unictype/categ_Cn.h: Likewise.
33585         * lib/unictype/categ_Co.h: Likewise.
33586         * lib/unictype/categ_Cs.h: Likewise.
33587         * lib/unictype/categ_L.h: Likewise.
33588         * lib/unictype/categ_Ll.h: Likewise.
33589         * lib/unictype/categ_Lm.h: Likewise.
33590         * lib/unictype/categ_Lo.h: Likewise.
33591         * lib/unictype/categ_Lt.h: Likewise.
33592         * lib/unictype/categ_Lu.h: Likewise.
33593         * lib/unictype/categ_M.h: Likewise.
33594         * lib/unictype/categ_Mc.h: Likewise.
33595         * lib/unictype/categ_Me.h: Likewise.
33596         * lib/unictype/categ_Mn.h: Likewise.
33597         * lib/unictype/categ_N.h: Likewise.
33598         * lib/unictype/categ_Nd.h: Likewise.
33599         * lib/unictype/categ_Nl.h: Likewise.
33600         * lib/unictype/categ_No.h: Likewise.
33601         * lib/unictype/categ_P.h: Likewise.
33602         * lib/unictype/categ_Pc.h: Likewise.
33603         * lib/unictype/categ_Pd.h: Likewise.
33604         * lib/unictype/categ_Pe.h: Likewise.
33605         * lib/unictype/categ_Pf.h: Likewise.
33606         * lib/unictype/categ_Pi.h: Likewise.
33607         * lib/unictype/categ_Po.h: Likewise.
33608         * lib/unictype/categ_Ps.h: Likewise.
33609         * lib/unictype/categ_S.h: Likewise.
33610         * lib/unictype/categ_Sc.h: Likewise.
33611         * lib/unictype/categ_Sk.h: Likewise.
33612         * lib/unictype/categ_Sm.h: Likewise.
33613         * lib/unictype/categ_So.h: Likewise.
33614         * lib/unictype/categ_Z.h: Likewise.
33615         * lib/unictype/categ_Zl.h: Likewise.
33616         * lib/unictype/categ_Zp.h: Likewise.
33617         * lib/unictype/categ_Zs.h: Likewise.
33618         * lib/unictype/categ_of.h: Likewise.
33619         * lib/unictype/combining.h: Likewise.
33620         * lib/unictype/ctype_alnum.h: Likewise.
33621         * lib/unictype/ctype_alpha.h: Likewise.
33622         * lib/unictype/ctype_blank.h: Likewise.
33623         * lib/unictype/ctype_cntrl.h: Likewise.
33624         * lib/unictype/ctype_digit.h: Likewise.
33625         * lib/unictype/ctype_graph.h: Likewise.
33626         * lib/unictype/ctype_lower.h: Likewise.
33627         * lib/unictype/ctype_print.h: Likewise.
33628         * lib/unictype/ctype_punct.h: Likewise.
33629         * lib/unictype/ctype_space.h: Likewise.
33630         * lib/unictype/ctype_upper.h: Likewise.
33631         * lib/unictype/ctype_xdigit.h: Likewise.
33632         * lib/unictype/decdigit.h: Likewise.
33633         * lib/unictype/digit.h: Likewise.
33634         * lib/unictype/mirror.h: Likewise.
33635         * lib/unictype/numeric.h: Likewise.
33636         * lib/unictype/pr_alphabetic.h: Likewise.
33637         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
33638         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
33639         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
33640         * lib/unictype/pr_bidi_block_separator.h: Likewise.
33641         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
33642         * lib/unictype/pr_bidi_common_separator.h: Likewise.
33643         * lib/unictype/pr_bidi_control.h: Likewise.
33644         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
33645         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
33646         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
33647         * lib/unictype/pr_bidi_european_digit.h: Likewise.
33648         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
33649         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
33650         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
33651         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
33652         * lib/unictype/pr_bidi_pdf.h: Likewise.
33653         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
33654         * lib/unictype/pr_bidi_whitespace.h: Likewise.
33655         * lib/unictype/pr_combining.h: Likewise.
33656         * lib/unictype/pr_composite.h: Likewise.
33657         * lib/unictype/pr_currency_symbol.h: Likewise.
33658         * lib/unictype/pr_dash.h: Likewise.
33659         * lib/unictype/pr_decimal_digit.h: Likewise.
33660         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
33661         * lib/unictype/pr_deprecated.h: Likewise.
33662         * lib/unictype/pr_diacritic.h: Likewise.
33663         * lib/unictype/pr_extender.h: Likewise.
33664         * lib/unictype/pr_format_control.h: Likewise.
33665         * lib/unictype/pr_grapheme_base.h: Likewise.
33666         * lib/unictype/pr_grapheme_extend.h: Likewise.
33667         * lib/unictype/pr_grapheme_link.h: Likewise.
33668         * lib/unictype/pr_hex_digit.h: Likewise.
33669         * lib/unictype/pr_hyphen.h: Likewise.
33670         * lib/unictype/pr_id_continue.h: Likewise.
33671         * lib/unictype/pr_id_start.h: Likewise.
33672         * lib/unictype/pr_ideographic.h: Likewise.
33673         * lib/unictype/pr_ids_binary_operator.h: Likewise.
33674         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
33675         * lib/unictype/pr_ignorable_control.h: Likewise.
33676         * lib/unictype/pr_iso_control.h: Likewise.
33677         * lib/unictype/pr_join_control.h: Likewise.
33678         * lib/unictype/pr_left_of_pair.h: Likewise.
33679         * lib/unictype/pr_line_separator.h: Likewise.
33680         * lib/unictype/pr_logical_order_exception.h: Likewise.
33681         * lib/unictype/pr_lowercase.h: Likewise.
33682         * lib/unictype/pr_math.h: Likewise.
33683         * lib/unictype/pr_non_break.h: Likewise.
33684         * lib/unictype/pr_not_a_character.h: Likewise.
33685         * lib/unictype/pr_numeric.h: Likewise.
33686         * lib/unictype/pr_other_alphabetic.h: Likewise.
33687         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
33688         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
33689         * lib/unictype/pr_other_id_continue.h: Likewise.
33690         * lib/unictype/pr_other_id_start.h: Likewise.
33691         * lib/unictype/pr_other_lowercase.h: Likewise.
33692         * lib/unictype/pr_other_math.h: Likewise.
33693         * lib/unictype/pr_other_uppercase.h: Likewise.
33694         * lib/unictype/pr_paired_punctuation.h: Likewise.
33695         * lib/unictype/pr_paragraph_separator.h: Likewise.
33696         * lib/unictype/pr_pattern_syntax.h: Likewise.
33697         * lib/unictype/pr_pattern_white_space.h: Likewise.
33698         * lib/unictype/pr_private_use.h: Likewise.
33699         * lib/unictype/pr_punctuation.h: Likewise.
33700         * lib/unictype/pr_quotation_mark.h: Likewise.
33701         * lib/unictype/pr_radical.h: Likewise.
33702         * lib/unictype/pr_sentence_terminal.h: Likewise.
33703         * lib/unictype/pr_soft_dotted.h: Likewise.
33704         * lib/unictype/pr_space.h: Likewise.
33705         * lib/unictype/pr_terminal_punctuation.h: Likewise.
33706         * lib/unictype/pr_titlecase.h: Likewise.
33707         * lib/unictype/pr_unassigned_code_value.h: Likewise.
33708         * lib/unictype/pr_unified_ideograph.h: Likewise.
33709         * lib/unictype/pr_uppercase.h: Likewise.
33710         * lib/unictype/pr_variation_selector.h: Likewise.
33711         * lib/unictype/pr_white_space.h: Likewise.
33712         * lib/unictype/pr_xid_continue.h: Likewise.
33713         * lib/unictype/pr_xid_start.h: Likewise.
33714         * lib/unictype/pr_zero_width.h: Likewise.
33715         * lib/unictype/scripts.h: Likewise.
33716         * lib/unictype/scripts_byname.gperf: Likewise.
33717         * lib/unictype/sy_c_ident.h: Likewise.
33718         * lib/unictype/sy_c_whitespace.h: Likewise.
33719         * lib/unictype/sy_java_ident.h: Likewise.
33720         * lib/unictype/sy_java_whitespace.h: Likewise.
33721
33722         * lib/unictype/Makefile: New file.
33723         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
33724         glibc.
33725         * lib/unictype/3level.h: New file, copied from glibc.
33726         * lib/unictype/3levelbit.h: New file.
33727
33728 2007-11-11  Bruno Haible  <bruno@clisp.org>
33729
33730         * modules/gperf: New file.
33731         * modules/iconv_open (Depends-on): Add it.
33732         (Makefile.am): Remove the GPERF definition.
33733
33734 2007-11-11  Bruno Haible  <bruno@clisp.org>
33735
33736         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
33737         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
33738
33739 2007-11-11  Bruno Haible  <bruno@clisp.org>
33740
33741         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
33742         (usage): Remove function.
33743
33744 2007-11-11  Bruno Haible  <bruno@clisp.org>
33745
33746         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
33747         gl_FUNC_CEILF_LIBS.
33748         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
33749         gl_FUNC_CEIL_LIBS.
33750         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
33751         gl_FUNC_CEILL_LIBS.
33752         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
33753         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
33754         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
33755
33756 2007-11-11  Bruno Haible  <bruno@clisp.org>
33757
33758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
33759         roundf were declared but do not exist on functions.
33760         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
33761         roundl were declared but do not exist on functions.
33762         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
33763         HAVE_FLOORL_AND_CEILL, respectively.
33764         Needed for Sun C on Solaris 10.
33765
33766 2007-11-11  Bruno Haible  <bruno@clisp.org>
33767
33768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
33769         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
33770         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
33771         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
33772         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
33773         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
33774         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
33775         HAVE_DECL_ROUNDF.
33776         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
33777         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
33778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
33779         of HAVE_DECL_ROUND*.
33780         * modules/math (Makefile.am): Update.
33781
33782 2007-11-10  Bruno Haible  <bruno@clisp.org>
33783
33784         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
33785         ptrdiff_t as m4/intl.m4.
33786
33787 2007-11-10  Jim Meyering  <meyering@redhat.com>
33788
33789         Avoid link failure for the argmatch test.
33790         * tests/test-argmatch.c (usage): Define function to avoid a link
33791         failure: argmatch_die requires a usage function.
33792
33793 2007-11-09  Bruno Haible  <bruno@clisp.org>
33794
33795         * doc/functions/snprintf.texi: Mention BeOS deficiency.
33796         * doc/functions/vsnprintf.texi: Likewise.
33797         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
33798         with a size argument < 2.
33799
33800 2007-11-09  Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
33803         buffer. Fixes an inefficiency introduced on 2007-11-03.
33804
33805 2007-11-09  Bruno Haible  <bruno@clisp.org>
33806
33807         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
33808         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
33809
33810 2007-11-08  Jim Meyering  <meyering@redhat.com>
33811
33812         Change cache variable name prefix "jm_" to "gl_" everywhere.
33813         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
33814         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
33815         * m4/uptime.m4: s/gl_/jm_/
33816
33817 2007-11-07  Bruno Haible  <bruno@clisp.org>
33818
33819         Update to GNU gettext 0.17.
33820         * m4/intl.m4: Update to GNU gettext 0.17.
33821         * m4/po.m4: Likewise.
33822         * modules/gettext (Files): Remove m4/ulonglong.m4.
33823         (configure.ac): Require gettext infrastructure from version 0.17.
33824
33825 2007-11-06  Bruno Haible  <bruno@clisp.org>
33826
33827         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
33828         symbolic values are not defined in a public header.
33829         * lib/freadable.c (freadable) [QNX]: Likewise.
33830         * lib/freadahead.c (freadahead) [QNX]: Likewise.
33831         * lib/freading.c (freading) [QNX]: Likewise.
33832         * lib/fseterr.c (fseterr) [QNX]: Likewise.
33833         * lib/fwritable.c (fwritable) [QNX]: Likewise.
33834         * lib/fwriting.c (fwriting) [QNX]: Likewise.
33835         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
33836         Reported by Alain Magloire.
33837
33838         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
33839
33840 2007-11-05  Bruno Haible  <bruno@clisp.org>
33841
33842         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
33843         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
33844         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
33845         Reported by Eric Blake.
33846
33847 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33848             Bruno Haible  <bruno@clisp.org>
33849
33850         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
33851         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
33852         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
33853         (malloc): Undefine also before including <stdlib.h>.
33854         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
33855         Needed on OSF/1 4.0.
33856
33857 2007-11-05  Jim Meyering  <meyering@redhat.com>
33858
33859         git-version-gen: sync from coreutils.
33860         * build-aux/git-version-gen: Add comments.
33861         Change the first '-' to '.' in the snapshot version string,
33862         e.g., 6.9-377-08144 -> 6.9.377-08144
33863         Remove first parameter.
33864         Don't declare a version "-dirty" merely because a time
33865         stamp has changed.
33866
33867 2007-11-04  Bruno Haible  <bruno@clisp.org>
33868
33869         * lib/lock.h: Protect all macro definitions containing an 'if'
33870         statement through a "do { ... } while (0)".
33871         * lib/tls.h: Likewise.
33872
33873 2007-11-04  Bruno Haible  <bruno@clisp.org>
33874
33875         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
33876
33877 2007-11-04  Bruno Haible  <bruno@clisp.org>
33878
33879         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
33880         * modules/fprintf-posix (Depends-on): Add nocrash.
33881         * modules/snprintf-posix (Depends-on): Likewise.
33882         * modules/sprintf-posix (Depends-on): Likewise.
33883         * modules/vasnprintf-posix (Depends-on): Likewise.
33884         * modules/vasprintf-posix (Depends-on): Likewise.
33885         * modules/vfprintf-posix (Depends-on): Likewise.
33886         * modules/vsnprintf-posix (Depends-on): Likewise.
33887         * modules/vsprintf-posix (Depends-on): Likewise.
33888         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33891         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33893         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33894         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33895
33896 2007-11-04  Bruno Haible  <bruno@clisp.org>
33897
33898         * modules/nocrash: New file.
33899         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
33900         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
33901
33902 2007-11-04  Bruno Haible  <bruno@clisp.org>
33903
33904         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
33905         precision handling.
33906         * tests/test-vasprintf-posix.c (test_function): Likewise.
33907         * tests/test-snprintf-posix.h (test_function): Likewise.
33908         * tests/test-sprintf-posix.h (test_function): Likewise.
33909
33910         Fix *printf behaviour for large precisions on mingw and BeOS.
33911         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
33912         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
33913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
33914         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33916         gl_PRINTF_PRECISION and test its result. Invoke
33917         gl_PREREQ_VASNPRINTF_PRECISION.
33918         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33922         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33924         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33925         * doc/functions/fprintf.texi: Update.
33926         * doc/functions/printf.texi: Update.
33927         * doc/functions/snprintf.texi: Update.
33928         * doc/functions/sprintf.texi: Update.
33929         * doc/functions/vfprintf.texi: Update.
33930         * doc/functions/vprintf.texi: Update.
33931         * doc/functions/vsnprintf.texi: Update.
33932         * doc/functions/vsprintf.texi: Update.
33933
33934 2007-11-04  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
33937
33938 2007-11-04  Bruno Haible  <bruno@clisp.org>
33939
33940         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
33941         Reported by Sylvain Beucler <beuc@gnu.org>.
33942
33943 2007-11-03  Bruno Haible  <bruno@clisp.org>
33944
33945         * tests/test-fprintf-posix2.sh: New file.
33946         * tests/test-fprintf-posix2.c: New file.
33947         * modules/fprintf-posix-tests (Files): Add them.
33948         (TESTS): Add test-fprintf-posix2.sh.
33949         (configure.ac): Check for getrlimit and setrlimit.
33950         (check_PROGRAMS): Add test-fprintf-posix2.
33951
33952         * tests/test-printf-posix2.sh: New file.
33953         * tests/test-printf-posix2.c: New file.
33954         * modules/printf-posix-tests (Files): Add them.
33955         (TESTS): Add test-printf-posix2.sh.
33956         (configure.ac): Check for getrlimit and setrlimit.
33957         (check_PROGRAMS): Add test-printf-posix2.
33958
33959         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
33960         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
33961         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
33962         (decode_double): New function, copied from decode_long_double.
33963         (scale10_round_decimal_decoded): New function, extracted from
33964         scale10_round_decimal_long_double.
33965         (scale10_round_decimal_long_double): Use it.
33966         (scale10_round_decimal_double): New function.
33967         (floorlog10): New function.
33968         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33970         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33971         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33972         gl_PRINTF_ENOMEM and test its result. Invoke
33973         gl_PREREQ_VASNPRINTF_ENOMEM.
33974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33975         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33976         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33978         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33981         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33982         * modules/snprintf-posix (Depends-on): Likewise.
33983         * modules/sprintf-posix (Depends-on): Likewise.
33984         * modules/vasnprintf-posix (Depends-on): Likewise.
33985         * modules/vasprintf-posix (Depends-on): Likewise.
33986         * modules/vfprintf-posix (Depends-on): Likewise.
33987         * modules/vsnprintf-posix (Depends-on): Likewise.
33988         * modules/vsprintf-posix (Depends-on): Likewise.
33989         * doc/functions/fprintf.texi: Update.
33990         * doc/functions/printf.texi: Update.
33991         * doc/functions/snprintf.texi: Update.
33992         * doc/functions/sprintf.texi: Update.
33993         * doc/functions/vfprintf.texi: Update.
33994         * doc/functions/vprintf.texi: Update.
33995         * doc/functions/vsnprintf.texi: Update.
33996         * doc/functions/vsprintf.texi: Update.
33997
33998 2007-11-03  Bruno Haible  <bruno@clisp.org>
33999
34000         * modules/frexp-nolibm-tests: New file.
34001
34002         * modules/frexp-nolibm: New file.
34003         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34004
34005 2007-11-03  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34008         value is C99 compliant.
34009         Needed for OSF/1 5.1.
34010
34011 2007-11-03  Bruno Haible  <bruno@clisp.org>
34012
34013         Fix out-of-memory handling of vasnprintf.
34014         * lib/printf-parse.c: Include <errno.h>.
34015         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34016         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34017         is already set.
34018
34019 2007-11-02  Eric Blake  <ebb9@byu.net>
34020
34021         Fix tests on cygwin.
34022         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34023
34024 2007-11-01  Bruno Haible  <bruno@clisp.org>
34025
34026         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34027         warning.
34028         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34029         needed for POSIX compatibility.
34030
34031 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34032
34033         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34034         for compatibility with GNU.
34035
34036 2007-11-01  Bruno Haible  <bruno@clisp.org>
34037
34038         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34039         (putenv): Renamed from rpl_putenv. Change argument type from
34040         'const char *' to 'char *'.
34041         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34042         of defining putenv in config.h, just set REPLACE_PUTENV.
34043         * modules/putenv (Depends-on): Add stdlib.
34044         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34045         (Include): Use <stdlib.h>.
34046         * lib/stdlib.in.h (putenv): New declaration.
34047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34048         REPLACE_PUTENV.
34049         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34050         REPLACE_PUTENV.
34051         Needed for MacOS X 10.5.0.
34052         Reported by Peter O'Gorman <peter@pogma.com>.
34053
34054 2007-11-01  Jim Meyering  <meyering@redhat.com>
34055
34056         Treat an empty date string exactly like "0".
34057         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34058         if the remaining date string (to be parsed) is empty, use "0".
34059         Reported by Mischa Molhoek and discussed in this thread:
34060         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34061
34062 2007-10-31  Bruno Haible  <bruno@clisp.org>
34063
34064         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34065         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34066         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34067         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34068         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34069         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34070
34071 2007-10-31  Bruno Haible  <bruno@clisp.org>
34072
34073         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34074         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34075         (AC_TYPE_LONG_LONG_INT): Use it.
34076         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34077         it as well.
34078         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34079         to m4/longlong.m4.
34080         * modules/stdint (Files): Remove m4/ulonglong.m4.
34081         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34082         m4/ulonglong.m4.
34083         * modules/strtoumax (Files): Likewise.
34084
34085 2007-10-30  Bruno Haible  <bruno@clisp.org>
34086
34087         * modules/xvasprintf-posix: New file.
34088         Suggested by Eric Blake.
34089
34090 2007-10-30  Bruno Haible  <bruno@clisp.org>
34091
34092         * modules/xprintf-posix-tests: New file.
34093         * tests/test-xprintf-posix.sh: New file.
34094         * tests/test-xprintf-posix.c: New file.
34095         * tests/test-xfprintf-posix.c: New file.
34096
34097         * modules/xprintf-posix: New file.
34098
34099 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34100
34101         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34102         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34103         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34104
34105 2007-10-29  Bruno Haible  <bruno@clisp.org>
34106
34107         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34108         contain the special marker '_cv_'.
34109         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34110         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34111         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34112         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34113         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34114         Reported by Ralf Wildenhues.
34115
34116 2007-10-29  Bruno Haible  <bruno@clisp.org>
34117
34118         * gnulib-tool (func_import): When --lgpl is not specified, set
34119         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34120         GPLv3.
34121         Reported by Simon Josefsson.
34122
34123 2007-10-28  Bruno Haible  <bruno@clisp.org>
34124
34125         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34126         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34127         HAVE_DECL_ISFINITE.
34128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34129         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34130         HAVE_DECL_ISFINITE.
34131
34132 2007-10-28  Bruno Haible  <bruno@clisp.org>
34133
34134         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34135         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34136
34137 2007-10-28  Bruno Haible  <bruno@clisp.org>
34138
34139         Fix link errors with Sun C 5.0 on Solaris 10.
34140         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34141         function is declared but not present in the compiler's libm.
34142         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34143         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34144         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34145         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34146         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34147         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34148         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34150         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34151         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34152         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34153         HAVE_DECL_FLOORL.
34154
34155 2007-10-28  Bruno Haible  <bruno@clisp.org>
34156
34157         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34158         gl_FUNC_FLOORL. Cache the result.
34159         (gl_FUNC_FLOORL): Use it.
34160         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34161         gl_FUNC_CEILL. Cache the result.
34162         (gl_FUNC_CEILL): Use it.
34163
34164         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34165         gl_FUNC_FLOOR. Cache the result.
34166         (gl_FUNC_FLOOR): Use it.
34167         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34168         gl_FUNC_CEIL. Cache the result.
34169         (gl_FUNC_CEIL): Use it.
34170
34171         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34172         gl_FUNC_FLOORF. Cache the result.
34173         (gl_FUNC_FLOORF): Use it.
34174         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34175         gl_FUNC_CEILF. Cache the result.
34176         (gl_FUNC_CEILF): Use it.
34177
34178 2007-10-28  Bruno Haible  <bruno@clisp.org>
34179
34180         * gnulib-tool: Allow specifying the LGPL version number through
34181         --lgpl=2 or --lgpl=3.
34182         (func_usage): Document --lgpl with argument.
34183         Handle --lgpl=... arguments.
34184         (func_import): Recognize also gl_LGPL calls with an argument. When
34185         --lgpl=2 is used and the module's license is just LGPL, report an
34186         error. Set sed_transform_lib_file according to the lgpl variable. In
34187         the generated files, use --lgpl or gl_LGPL invocations with argument,
34188         if necessary.
34189         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34190         an LGPv2+ license.
34191         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34192         gl_LGPL macro.
34193
34194 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34195             Bruno Haible  <bruno@clisp.org>
34196
34197         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34198         (u16_uctomb_aux): Likewise.
34199         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34200         !HAVE_INLINE.
34201         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34202
34203 2007-10-28  Bruno Haible  <bruno@clisp.org>
34204
34205         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34206         Invoke AM_GETTEXT_OPTION if it exists.
34207         * modules/vasprintf: Likewise.
34208         * modules/verror: Likewise.
34209         * modules/xprintf: Likewise.
34210         * modules/xvasprintf: Likewise.
34211
34212 2007-10-27  Ben Pfaff  <blp@gnu.org>
34213
34214         * lib/math.in.h: Define isfinite macro and prototypes for
34215         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34216         implementations.
34217         * m4/math_h.m4: New substitutions for isfinite module.
34218         * lib/isfinite.c: New file.
34219         * m4/isfinite.m4: New file.
34220         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34221         * modules/isfinite: New file.
34222         * modules/isfinite-tests: New file.
34223         * tests/tests-isfinite.c: New file.
34224         * doc/functions/isfinite.texi: Mention isfinite module.
34225         * MODULES.html.sh: Mention new module.
34226
34227 2007-10-27  Ben Pfaff  <blp@gnu.org>
34228
34229         Ralf Wildenhues reported that Tru64 4.0D declares the round
34230         functions but does not have definitions.
34231         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34232         cannot be found in any library, set the output variable to
34233         "missing" instead of "".
34234         * m4/round.m4: Also use our substitute if we cannot find round in
34235         any library, even if it is declared.
34236         * m4/roundf.m4: Likewise for roundf.
34237         * m4/roundl.m4: Likewise for roundl.
34238         * lib/math.in.h: Undefine roundf, round, roundl before defining
34239         their replacements, to allow for hypothetical systems where these
34240         may be defined as macros but not available in libraries.
34241
34242 2007-10-27  Bruno Haible  <bruno@clisp.org>
34243
34244         * doc/gnulib.texi: Invoke @firstparagraphindent.
34245         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34246         changes in gnulib.
34247         (Source changes): New section.
34248
34249 2007-10-26  Bruno Haible  <bruno@clisp.org>
34250
34251         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34252         borrowed from autoconf.
34253
34254 2007-10-26  Bruno Haible  <bruno@clisp.org>
34255
34256         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34257         strerror returned the empty string. Needed on HP-UX 11.00.
34258
34259 2007-10-24  Micah Cowan  <micah@cowan.name>
34260
34261         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34262         * build-aux/bootstrap: Remove support for now-unnecessary option,
34263         --cvs-user, and envvars CVS_USER, CVS_RSH.
34264
34265 2007-10-24  Jim Meyering  <meyering@redhat.com>
34266
34267         Avoid diagnostics from sha1sum when there is no cached checksum.
34268         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34269         if the po.s1 file hasn't been created yet.
34270
34271         * build-aux/bootstrap: Sync from coreutils:
34272         2007-10-24  Jim Meyering  <meyering@redhat.com>
34273         Get gnulib from the git repository, not from an obsolete cvs one.
34274         * build-aux/bootstrap: Suggestion from Micah Cowan.
34275         2007-10-04  Jim Meyering  <jim@meyering.net>
34276         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34277         (update_po_files): Work also when there are no .po files in po/.
34278
34279 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34280
34281         * README: Append ".git" to git and cg examples.
34282         Problem reported by Benoit Sigoure.
34283
34284 2007-10-23  Micah Cowan  <micah@cowan.name>
34285
34286         * users.txt: Add wget.
34287
34288 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34289
34290         Fix linking of some unistdio tests on FreeBSD.
34291         * modules/unistdio/u16-vsnprintf-tests
34292         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34293         * modules/unistdio/u16-vsprintf-tests
34294         (test_u16_vsnprintf1_LDADD): Likewise.
34295         * modules/unistdio/u32-vsnprintf-tests
34296         (test_u32_vsnprintf1_LDADD): Likewise.
34297         * modules/unistdio/u32-vsprintf-tests
34298         (test_u32_vsprintf1_LDADD): Likewise.
34299         * modules/unistdio/u8-vsnprintf-tests
34300         (test_u8_vsnprintf1_LDADD): Likewise.
34301         * modules/unistdio/u8-vsprintf-tests
34302         (test_u8_vsprintf1_LDADD): Likewise.
34303         * modules/unistdio/ulc-vsnprintf-tests
34304         (test_ulc_vsnprintf1_LDADD): Likewise.
34305         * modules/unistdio/ulc-vsprintf-tests
34306         (test_ulc_vsprintf1_LDADD): Likewise.
34307
34308         Fix linking of some uniconv tests on FreeBSD.
34309         * modules/uniconv/u16-conv-from-enc-tests
34310         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34311         * modules/uniconv/u16-conv-to-enc-tests
34312         (test_u16_conv_to_enc_LDADD): Likewise.
34313         * modules/uniconv/u16-strconv-from-enc-tests
34314         (test_u16_strconv_from_enc_LDADD): Likewise.
34315         * modules/uniconv/u16-strconv-to-enc-tests
34316         (test_u16_strconv_to_enc_LDADD): Likewise.
34317         * modules/uniconv/u32-conv-from-enc-tests
34318         (test_u32_conv_from_enc_LDADD): Likewise.
34319         * modules/uniconv/u32-conv-to-enc-tests
34320         (test_u32_conv_to_enc_LDADD): Likewise.
34321         * modules/uniconv/u32-strconv-from-enc-tests
34322         (test_u32_strconv_from_enc_LDADD): Likewise.
34323         * modules/uniconv/u32-strconv-to-enc-tests
34324         (test_u32_strconv_to_enc_LDADD): Likewise.
34325         * modules/uniconv/u8-conv-from-enc-tests
34326         (test_u8_conv_from_enc_LDADD): Likewise.
34327         * modules/uniconv/u8-conv-to-enc-tests
34328         (test_u8_conv_to_enc_LDADD): Likewise.
34329         * modules/uniconv/u8-strconv-from-enc-tests
34330         (test_u8_strconv_from_enc_LDADD): Likewise.
34331         * modules/uniconv/u8-strconv-to-enc-tests
34332         (test_u8_strconv_to_enc_LDADD): Likewise.
34333
34334 2007-10-22  Bruno Haible  <bruno@clisp.org>
34335
34336         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34337         size.
34338
34339 2007-10-22  Eric Blake  <ebb9@byu.net>
34340
34341         Tweak x*printf documentation.
34342         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34343         variable name and comments.
34344         Suggested by Bruno Haible.
34345
34346 2007-10-22  Bruno Haible  <bruno@clisp.org>
34347
34348         * lib/acl.c (copy_acl): Fix file name in comment.
34349
34350 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34351
34352         Fix Tru64 problem with stdbool.h.
34353         * lib/stdbool.in.h (false, true):
34354         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34355         Don't declare as an enum in this situation; it runs afoul of Tru64.
34356         Problem reported by Steven M. Schweda in
34357         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34358
34359 2007-10-22  Eric Blake  <ebb9@byu.net>
34360
34361         Also wrap vf?printf.
34362         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34363         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34364         (xvprintf, xvfprintf): New functions.
34365
34366 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34367
34368         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34369         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34370
34371         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34372         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34373
34374 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34375
34376         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34377         by Bruno Haible.
34378
34379 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34380
34381         * lib/getloadavg.c
34382         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34383         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34384
34385         * tests/test-i-ring.c: Work for C89.
34386
34387 2007-10-22  Bruno Haible  <bruno@clisp.org>
34388
34389         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34390         -1u, in preprocessor expression, so that we don't test for the bug
34391         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34393
34394 2007-10-22  Eric Blake  <ebb9@byu.net>
34395
34396         * tests/test-yesno.sh: Silence stderr during test.
34397
34398 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34399
34400         * modules/crypto/gc-camellia: New file.
34401
34402         * m4/gc-camellia.m4: New file.
34403
34404         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
34405
34406         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
34407
34408 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34409
34410         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
34411         --help to stdout.  Reported by sms@antinode.org (Steven
34412         M. Schweda).
34413
34414 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34415
34416         * users.txt: Fix link to libksba.
34417
34418 2007-10-21  Ben Pfaff  <blp@gnu.org>
34419
34420         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
34421         round.c roundf implementation that depends on floorf and ceilf to
34422         be tested unconditionally.
34423
34424 2007-10-21  Ben Pfaff  <blp@gnu.org>
34425
34426         * m4/check-libm-func.m4: Removed.
34427         * m4/check-math-lib.m4: New file.
34428         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
34429         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
34430         definition and lack of AC_LIBOBJ([roundf]).
34431         * m4/roundl.m4: Ditto, and similarly for roundl.
34432         * modules/round: Reference new m4 file.
34433         * modules/roundf: Ditto.
34434         * modules/roundl: Ditto.
34435         * tests/test-round2.c (main): Use ROUND instead of round.
34436         Bug report from Bruno Haible.
34437
34438 2007-10-21  Bruno Haible  <bruno@clisp.org>
34439
34440         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
34441         context.
34442
34443 2007-10-21  Bruno Haible  <bruno@clisp.org>
34444
34445         * tests/test-wcwidth.c (main): Allow negative result for some control
34446         characters.
34447
34448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
34449         Needed on OSF/1 5.1.
34450
34451 2007-10-21  Bruno Haible  <bruno@clisp.org>
34452
34453         * tests/test-floorf1.c: Include isnanf.h.
34454         (main): Use isnanf() instead of isnan().
34455         * tests/test-ceilf1.c: Include isnanf.h.
34456         (main): Use isnanf() instead of isnan().
34457         * tests/test-truncf1.c: Include isnanf.h.
34458         (main): Use isnanf() instead of isnan().
34459         * tests/test-roundf1.c: Include isnanf.h.
34460         (main): Use isnanf() instead of isnan().
34461
34462 2007-10-21  Eric Blake  <ebb9@byu.net>
34463
34464         * users.txt: Update URL for m4.
34465
34466 2007-10-21  Bruno Haible  <bruno@clisp.org>
34467
34468         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
34469
34470 2007-10-21  Bruno Haible  <bruno@clisp.org>
34471
34472         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
34473         Git's management files if the CVS files are not present.
34474
34475 2007-10-20  Bruno Haible  <bruno@clisp.org>
34476
34477         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
34478         gcc-3.4.x.
34479
34480 2007-10-20  Ben Pfaff  <blp@gnu.org>
34481
34482         * lib/math.in.h: Declare round, roundf, roundl if we are providing
34483         implementations.
34484         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
34485         * lib/round.c: New file.
34486         * lib/roundf.c: New file.
34487         * lib/roundl.c: New file.
34488         * m4/round.m4: New file.
34489         * m4/roundf.m4: New file.
34490         * m4/roundl.m4: New file.
34491         * m4/check-libm-func-m4: New file.
34492         * modules/math: Replace round, roundf, roundl related @VARS@ in
34493         math.in.h.
34494         * modules/round: New file.
34495         * modules/round-tests: New file.
34496         * modules/roundf: New file.
34497         * modules/roundf-tests: New file.
34498         * modules/roundl: New file.
34499         * modules/roundl-tests: New file.
34500         * tests/test-round1.c: New file.
34501         * tests/test-round2.c: New file.
34502         * tests/test-roundf1.c: New file.
34503         * tests/test-roundf2.c: New file.
34504         * tests/test-roundl.c: New file.
34505         * doc/functions/round.texi: Mention round module.
34506         * doc/functions/roundf.texi: Mention roundf module.
34507         * doc/functions/roundl.texi: Mention roundl module.
34508         * MODULES.html.sh: Mention new modules.
34509         Thanks to Bruno Haible for suggestions.
34510
34511 2007-10-20  Jim Meyering  <meyering@redhat.com>
34512
34513         * lib/xprintf.c: Include <config.h> unconditionally.
34514
34515         Change xprintf's license to GPL.
34516         * modules/xprintf (License): s/LGPL/GPL/, since this module
34517         depends on modules (exit and exitfail) which are GPL.
34518         Suggestion from Bruno Haible.
34519
34520         xprintf fixes.
34521         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
34522         Use a clearer diagnostic.
34523         Patch from Bruno Haible.
34524
34525 2007-10-20  Bruno Haible  <bruno@clisp.org>
34526
34527         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
34528         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
34529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34530
34531 2007-10-20  Bruno Haible  <bruno@clisp.org>
34532
34533         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
34534         precision in the comparison result > x - 1 or similar.
34535         * tests/test-ceilf2.c (correct_result_p): Likewise.
34536         * tests/test-truncf2.c (correct_result_p): Likewise.
34537         * tests/test-trunc2.c (correct_result_p): Likewise.
34538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34539
34540 2007-10-20  Bruno Haible  <bruno@clisp.org>
34541
34542         * modules/ceil: New file.
34543         * m4/ceil.m4: New file.
34544         * doc/functions/ceil.texi: Mention the 'ceil' module.
34545
34546 2007-10-20  Bruno Haible  <bruno@clisp.org>
34547
34548         * modules/floor: New file.
34549         * m4/floor.m4: New file.
34550         * doc/functions/floor.texi: Mention the 'floor' module.
34551
34552 2007-10-20  Bruno Haible  <bruno@clisp.org>
34553
34554         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
34555         of %a.
34556         * modules/floorf-tests (Depends-on): Likewise.
34557         * modules/truncf-tests (Depends-on): Likewise.
34558         * modules/trunc-tests (Depends-on): Likewise.
34559         Reported by Ben Pfaff.
34560
34561 2007-10-19  Jim Meyering  <meyering@redhat.com>
34562
34563         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
34564         Don't bother testing specific errno values.  Just test ferror.
34565
34566         New module: xprintf
34567         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
34568
34569 2007-10-19  Bruno Haible  <bruno@clisp.org>
34570
34571         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
34572         syntax.
34573         * modules/javaexec (Makefile.am): Likewise.
34574         * modules/relocatable-prog (Makefile.am): Likewise.
34575         Suggested by Jim Meyering.
34576
34577 2007-10-18  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
34580         Reported by Jim Meyering.
34581
34582 2007-10-18  Eric Blake  <ebb9@byu.net>
34583
34584         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
34585
34586 2007-10-18  Bruno Haible  <bruno@clisp.org>
34587
34588         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
34589         the format string into writable memory. Needed in Fortify conditions.
34590
34591 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
34592             Bruno Haible  <bruno@clisp.org>
34593
34594         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
34595         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
34596         * modules/trim (Depends-on): Add mbchar.
34597         (configure.ac): Add gl_FUNC_MBRTOWC.
34598         (Makefile.am): Augment lib_SOURCES.
34599
34600 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34601
34602         Modify glob.c to use fstatat and dirfd, to simplify it.
34603         Suggested by Eric Blake.
34604         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
34605         Don't include <stdbool.h>; not used.
34606         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
34607         (link_exists_p): Simplify implementation, since we can now assume
34608         dirfd and fstatat.
34609         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
34610
34611 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34612
34613         * gnulib-tool (func_get_dependencies): Fix sed script to
34614         match only tests.
34615
34616 2007-10-17  Bruno Haible  <bruno@clisp.org>
34617
34618         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
34619         allow locale names without encoding suffix.
34620         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34622
34623 2007-10-16  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
34626         * lib/getgroups.c (getgroups): Likewise.
34627         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
34628
34629 2007-10-16  Bruno Haible  <bruno@clisp.org>
34630
34631         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
34632         * modules/malloc-posix (License): Likewise.
34633         * modules/realloc-posix (License): Likewise.
34634         * modules/calloc-posix (License): Likewise.
34635         * modules/intprops (License): Change from GPL to LGPL, with
34636         Paul Eggert's approval.
34637
34638 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34639
34640         Merge glibc changes into lib/glob.c.
34641
34642         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
34643         2007-10-15 04:59:03 UTC.  Here are the changes:
34644
34645         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
34646
34647         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
34648
34649         * lib/glob.c: Add some branch prediction throughout.
34650
34651         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
34652
34653         [BZ #5103]
34654         * lib/glob.c (glob): Recognize patterns starting \/.
34655
34656         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
34657
34658         [BZ #3996]
34659         * lib/glob.c (attribute_hidden): Define if not defined.
34660         (glob): Unescape dirname, filename or username when needed and not
34661         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
34662         is NULL.  Handle unescaped [ in pattern without closing ].
34663         Don't pass GLOB_CHECK down to recursive glob for directories.
34664         (__glob_pattern_type): New function.
34665         (__glob_pattern_p): Implement using __glob_pattern_type.
34666         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
34667         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
34668         Remove unreachable code.
34669
34670         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
34671
34672         * lib/glob.c (glob_in_dir): Add some comments and asserts to
34673         explain why there are no leaks.
34674
34675         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
34676
34677         [BZ #3253]
34678         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
34679         time, rather allocate increasingly bigger arrays of pointers, if
34680         possible with alloca, if too large with malloc.
34681
34682 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34683
34684         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
34685         Problem reported by H.Merijn Brand in
34686         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
34687         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
34688         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34689
34690 2007-10-15  Bruno Haible  <bruno@clisp.org>
34691
34692         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
34693         with explicit rpl_ prefix.
34694         * lib/fopen.c (fopen): Likewise.
34695         * lib/freopen.c (freopen): Likewise.
34696         * lib/iconv.c (iconv): Likewise.
34697         * lib/iconv_close.c (iconv_close): Likewise.
34698
34699 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34700
34701         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
34702
34703 2007-10-15  Bruno Haible  <bruno@clisp.org>
34704
34705         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
34706         <stddef.h> instead of <stdlib.h> since we only need NULL.
34707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34708
34709 2007-10-15  Bruno Haible  <bruno@clisp.org>
34710
34711         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
34712         Replace paragraph talking about LIBOBJS.
34713         Reported by Colin Watson <cjwatson@debian.org>.
34714
34715 2007-10-15  Bruno Haible  <bruno@clisp.org>
34716
34717         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
34718         <stdlib.h> before using NULL.
34719
34720 2007-10-15  Simon Josefsson  <simon@josefsson.org>
34721
34722         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
34723         Reported by Albert Chin <china@thewrittenword.com>.
34724
34725 2007-10-14  Bruno Haible  <bruno@clisp.org>
34726
34727         * modules/iconv_open-utf-tests: New file.
34728         * tests/test-iconv-utf.c: New file.
34729
34730         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
34731         * modules/iconv_open-utf: New file.
34732         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
34733         (iconv, iconv_close): New declarations.
34734         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
34735         be defined.
34736         (iconv_open): Add special handling of conversion between UTF-8 and
34737         UTF-{16,32}{BE,LE}.
34738         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
34739         * lib/iconv_close.c: New file.
34740         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
34741         gl_FUNC_ICONV_OPEN.
34742         (gl_FUNC_ICONV_OPEN): Use it.
34743         (gl_FUNC_ICONV_OPEN_UTF): New macro.
34744         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
34745         and REPLACE_ICONV_UTF.
34746         * modules/iconv_open (Depends-on): Add c-strcase.
34747         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
34748         ICONV_CONST.
34749         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
34750
34751 2007-10-13  Albert Chin  <china@thewrittenword.com>
34752             Bruno Haible  <bruno@clisp.org>
34753
34754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
34755         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
34756
34757 2007-10-13  Bruno Haible  <bruno@clisp.org>
34758
34759         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
34760         defined, use the ISO C99 inline semantics.
34761         * lib/argp.h (ARGP_EI): Likewise.
34762
34763 2007-10-13  Bruno Haible  <bruno@clisp.org>
34764
34765         Handle 'inline' change in gcc 4.3.0.
34766         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
34767         argp_fmtstream_write, argp_fmtstream_set_lmargin,
34768         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
34769         argp_fmtstream_point): Disable 'extern' declaration if the function
34770         definition is going to be provided inline.
34771         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
34772         semantics, not the ISO C99 inline semantics.
34773         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
34774         'extern' declaration if the function definition is going to be provided
34775         inline.
34776         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
34777         the GNU C inline semantics, not the ISO C99 inline semantics. With
34778         GCC 4.2, avoid a warning.
34779
34780 2007-10-13  Bruno Haible  <bruno@clisp.org>
34781
34782         * lib/freading.h (freading): Enable the use of __freading for
34783         glibc >= 2.7.
34784         * lib/freading.c (freading): Likewise.
34785
34786 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34787
34788         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
34789         "warning: C99 inline functions are not supported; using GNU89".
34790
34791 2007-10-12  Bruno Haible  <bruno@clisp.org>
34792
34793         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
34794         of 2.
34795         * tests/test-ceilf2.c: New file.
34796         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
34797
34798         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
34799         * modules/ceilf-tests: Update.
34800
34801 2007-10-12  Bruno Haible  <bruno@clisp.org>
34802
34803         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
34804         of 2.
34805         * tests/test-floorf2.c: New file.
34806         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
34807
34808         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
34809         * modules/floorf-tests: Update.
34810
34811 2007-10-12  Bruno Haible  <bruno@clisp.org>
34812
34813         * tests/test-trunc2.c: New file.
34814         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
34815
34816         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
34817         * modules/trunc-tests: Update.
34818
34819 2007-10-12  Bruno Haible  <bruno@clisp.org>
34820
34821         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
34822         of 2.
34823         * tests/test-truncf2.c: New file.
34824         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
34825
34826         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
34827         * modules/truncf-tests: Update.
34828
34829 2007-10-11  Eric Blake  <ebb9@byu.net>
34830
34831         Don't claim strerror is broken on Interix.
34832         * doc/functions/strerror.texi (strerror): Known broken systems are
34833         now Solaris 8, and not Interix.
34834         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
34835         Interix on cross-compile.
34836         Reported by Martin Koeppe in
34837         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
34838
34839 2007-10-11  Bruno Haible  <bruno@clisp.org>
34840
34841         * modules/i-ring-tests: New file.
34842         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
34843         instead of assert.
34844
34845 2007-10-11  Bruno Haible  <bruno@clisp.org>
34846
34847         * modules/filenamecat-tests: New file.
34848         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
34849         * lib/filenamecat.c: Remove test code.
34850
34851 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
34852
34853         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
34854
34855         * lib/strerror.c: Include <string.h> always, to test interface,
34856         and to remove the need for the dummy.
34857         Include intprops.h to compute width instead of doing it ourselves
34858         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
34859         (strerror): Define it to return NULL if there's no system strerror.
34860         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
34861         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
34862         ancient pre-strerror Unix systems well any more.  Saying "unknown
34863         system error" is enough.
34864         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
34865         simpler strerror.c implementation.
34866         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
34867         Simplify the tests to reflect the simpler strerror implementation.
34868         * modules/strerror (Depends-on): Add intprops.
34869
34870 2007-10-09  Eric Blake  <ebb9@byu.net>
34871
34872         Silence test-fpending.
34873         * modules/fpending-tests (Files): Add wrapper script.
34874         * tests/test-fpending.sh: New file.
34875
34876 2007-10-09  Bruno Haible  <bruno@clisp.org>
34877
34878         * MODULES.html.sh (func_module): Don't create a hyperlink for
34879         function names like 'printf_frexp'.
34880         (Misc): Add crc, memxor.
34881         (Characteristics of floating types): New section.
34882         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
34883         isnanf-nolibm, signbit, trunc, truncf, truncl.
34884         (Enhancements for ISO C 99 functions): New subsection Input/output.
34885         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
34886         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
34887         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
34888         (Compatibility checks for POSIX:2001 functions): Add clock-time.
34889         (Enhancements for POSIX:2001 functions): Add chdir-long.
34890         (File system functions): Add areadlink, chdir-safer, read-file.
34891         Remove cycle-check.
34892         (File system as inode set): New section.
34893         (Date and time): Add gethrxtime.
34894         (Multithreading): Add openmp.
34895         (Internationalization functions): Add localename.
34896         (Unicode string functions): Add unistr/u*-mbsnlen.
34897         (Support for maintaining and releasing projects): Add git-version-gen.
34898         (Lone files): Remove directories.
34899
34900 2007-10-08  Ben Pfaff  <blp@gnu.org>
34901
34902         * lib/xmalloca.h: Fix typo in comment.
34903
34904 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34905
34906         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
34907         when avoiding problems with integer overflow.  Use a portable test
34908         instead.
34909
34910 2007-10-08  Simon Josefsson  <simon@josefsson.org>
34911
34912         * modules/dummy (License): Change to LGPLv2+.
34913         * modules/float (License): Likewise
34914         * modules/realloc (License): Likewise
34915         * modules/stdlib (License): Likewise
34916
34917 2007-10-07  Bruno Haible  <bruno@clisp.org>
34918
34919         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
34920         * floor.c (TWO_MANT_DIG): Likewise.
34921         * ceil.c (TWO_MANT_DIG): Likewise.
34922         Reported by Ben Pfaff.
34923
34924 2007-10-07  Bruno Haible  <bruno@clisp.org>
34925
34926         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
34927         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
34928         * lib/frexp.c (FUNC): Likewise.
34929         * lib/printf-frexp.h (printf_frexp): Likewise.
34930         * lib/printf-frexpl.h (printf_frexpl): Likewise.
34931         * lib/printf-frexp.c (FUNC): Likewise.
34932         Suggested by Jim Meyering.
34933
34934 2007-10-07  Jim Meyering  <meyering@redhat.com>
34935
34936         Make xnanosleep's integer overflow test more robust.
34937         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
34938         so that gcc-4.3.0 doesn't optimize away this test for overflow.
34939
34940 2007-10-07  Bruno Haible  <bruno@clisp.org>
34941
34942         * NEWS: Mention the license change.
34943
34944         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
34945         abbreviations in the modules files.
34946
34947         Change copyright notice from GPLv2+ to GPLv3+.
34948         * README: Change copyright notice.
34949         * MODULES.html.sh: Likewise.
34950         * build-aux/bootstrap.conf: Likewise.
34951         * build-aux/config.libpath: Likewise.
34952         * build-aux/csharpcomp.sh.in: Likewise.
34953         * build-aux/csharpexec.sh.in: Likewise.
34954         * build-aux/install-reloc: Likewise.
34955         * build-aux/javacomp.sh.in: Likewise.
34956         * build-aux/javaexec.sh.in: Likewise.
34957         * build-aux/ldd.sh.in: Likewise.
34958         * build-aux/reloc-ldflags: Likewise.
34959         * build-aux/relocatable.sh.in: Likewise.
34960         * build-aux/x-to-1.in: Likewise.
34961         * check-module: Likewise.
34962         * config/srclistvars.sh: Likewise.
34963         * gnulib-tool: Likewise.
34964         * lib/acl-internal.h: Likewise.
34965         * lib/acl.c: Likewise.
34966         * lib/acl.h: Likewise.
34967         * lib/acl_entries.c: Likewise.
34968         * lib/areadlink-with-size.c: Likewise.
34969         * lib/areadlink.c: Likewise.
34970         * lib/areadlink.h: Likewise.
34971         * lib/argmatch.c: Likewise.
34972         * lib/argmatch.h: Likewise.
34973         * lib/argp-ba.c: Likewise.
34974         * lib/argp-eexst.c: Likewise.
34975         * lib/argp-fmtstream.c: Likewise.
34976         * lib/argp-fmtstream.h: Likewise.
34977         * lib/argp-fs-xinl.c: Likewise.
34978         * lib/argp-help.c: Likewise.
34979         * lib/argp-namefrob.h: Likewise.
34980         * lib/argp-parse.c: Likewise.
34981         * lib/argp-pin.c: Likewise.
34982         * lib/argp-pv.c: Likewise.
34983         * lib/argp-pvh.c: Likewise.
34984         * lib/argp-xinl.c: Likewise.
34985         * lib/argp.h: Likewise.
34986         * lib/at-func.c: Likewise.
34987         * lib/atanl.c: Likewise.
34988         * lib/backupfile.c: Likewise.
34989         * lib/backupfile.h: Likewise.
34990         * lib/basename.c: Likewise.
34991         * lib/binary-io.h: Likewise.
34992         * lib/byteswap.in.h: Likewise.
34993         * lib/c-stack.c: Likewise.
34994         * lib/c-stack.h: Likewise.
34995         * lib/c-strcasestr.c: Likewise.
34996         * lib/c-strcasestr.h: Likewise.
34997         * lib/c-strstr.c: Likewise.
34998         * lib/c-strstr.h: Likewise.
34999         * lib/c-strtod.c: Likewise.
35000         * lib/calloc.c: Likewise.
35001         * lib/canon-host.c: Likewise.
35002         * lib/canon-host.h: Likewise.
35003         * lib/canonicalize-lgpl.c: Likewise.
35004         * lib/canonicalize.c: Likewise.
35005         * lib/canonicalize.h: Likewise.
35006         * lib/ceil.c: Likewise.
35007         * lib/ceilf.c: Likewise.
35008         * lib/ceill.c: Likewise.
35009         * lib/chdir-long.c: Likewise.
35010         * lib/chdir-long.h: Likewise.
35011         * lib/chdir-safer.c: Likewise.
35012         * lib/chdir-safer.h: Likewise.
35013         * lib/chown.c: Likewise.
35014         * lib/classpath.c: Likewise.
35015         * lib/classpath.h: Likewise.
35016         * lib/clean-temp.c: Likewise.
35017         * lib/clean-temp.h: Likewise.
35018         * lib/cloexec.c: Likewise.
35019         * lib/close-stream.c: Likewise.
35020         * lib/closein.c: Likewise.
35021         * lib/closein.h: Likewise.
35022         * lib/closeout.c: Likewise.
35023         * lib/closeout.h: Likewise.
35024         * lib/concat-filename.c: Likewise.
35025         * lib/copy-file.c: Likewise.
35026         * lib/copy-file.h: Likewise.
35027         * lib/count-one-bits.h: Likewise.
35028         * lib/crc.c: Likewise.
35029         * lib/crc.h: Likewise.
35030         * lib/creat-safer.c: Likewise.
35031         * lib/csharpcomp.c: Likewise.
35032         * lib/csharpcomp.h: Likewise.
35033         * lib/csharpexec.c: Likewise.
35034         * lib/csharpexec.h: Likewise.
35035         * lib/cycle-check.c: Likewise.
35036         * lib/cycle-check.h: Likewise.
35037         * lib/diacrit.c: Likewise.
35038         * lib/diacrit.h: Likewise.
35039         * lib/diffseq.h: Likewise.
35040         * lib/dirchownmod.c: Likewise.
35041         * lib/dirent.in.h: Likewise.
35042         * lib/dirfd.c: Likewise.
35043         * lib/dirfd.h: Likewise.
35044         * lib/dirname.c: Likewise.
35045         * lib/dirname.h: Likewise.
35046         * lib/dummy.c: Likewise.
35047         * lib/dup-safer.c: Likewise.
35048         * lib/dup2.c: Likewise.
35049         * lib/eealloc.h: Likewise.
35050         * lib/error.c: Likewise.
35051         * lib/error.h: Likewise.
35052         * lib/euidaccess.c: Likewise.
35053         * lib/exclude.c: Likewise.
35054         * lib/exclude.h: Likewise.
35055         * lib/execute.c: Likewise.
35056         * lib/execute.h: Likewise.
35057         * lib/exitfail.c: Likewise.
35058         * lib/exitfail.h: Likewise.
35059         * lib/expl.c: Likewise.
35060         * lib/fatal-signal.c: Likewise.
35061         * lib/fatal-signal.h: Likewise.
35062         * lib/fbufmode.c: Likewise.
35063         * lib/fbufmode.h: Likewise.
35064         * lib/fchdir.c: Likewise.
35065         * lib/fchmodat.c: Likewise.
35066         * lib/fchownat.c: Likewise.
35067         * lib/fcntl--.h: Likewise.
35068         * lib/fcntl-safer.h: Likewise.
35069         * lib/fcntl.in.h: Likewise.
35070         * lib/fd-safer.c: Likewise.
35071         * lib/fflush.c: Likewise.
35072         * lib/file-has-acl.c: Likewise.
35073         * lib/file-set.c: Likewise.
35074         * lib/file-type.c: Likewise.
35075         * lib/file-type.h: Likewise.
35076         * lib/fileblocks.c: Likewise.
35077         * lib/filemode.c: Likewise.
35078         * lib/filemode.h: Likewise.
35079         * lib/filename.h: Likewise.
35080         * lib/filenamecat.c: Likewise.
35081         * lib/filenamecat.h: Likewise.
35082         * lib/findprog.c: Likewise.
35083         * lib/findprog.h: Likewise.
35084         * lib/float.in.h: Likewise.
35085         * lib/floor.c: Likewise.
35086         * lib/floorf.c: Likewise.
35087         * lib/floorl.c: Likewise.
35088         * lib/fopen-safer.c: Likewise.
35089         * lib/fopen.c: Likewise.
35090         * lib/fpending.c: Likewise.
35091         * lib/fpending.h: Likewise.
35092         * lib/fprintf.c: Likewise.
35093         * lib/fprintftime.h: Likewise.
35094         * lib/fpucw.h: Likewise.
35095         * lib/fpurge.c: Likewise.
35096         * lib/fpurge.h: Likewise.
35097         * lib/freadable.c: Likewise.
35098         * lib/freadable.h: Likewise.
35099         * lib/freadahead.c: Likewise.
35100         * lib/freadahead.h: Likewise.
35101         * lib/freading.c: Likewise.
35102         * lib/freading.h: Likewise.
35103         * lib/free.c: Likewise.
35104         * lib/freopen.c: Likewise.
35105         * lib/frexp.c: Likewise.
35106         * lib/frexpl.c: Likewise.
35107         * lib/fseek.c: Likewise.
35108         * lib/fseterr.c: Likewise.
35109         * lib/fseterr.h: Likewise.
35110         * lib/fstatat.c: Likewise.
35111         * lib/fstrcmp.c: Likewise.
35112         * lib/fstrcmp.h: Likewise.
35113         * lib/fsusage.c: Likewise.
35114         * lib/fsusage.h: Likewise.
35115         * lib/ftell.c: Likewise.
35116         * lib/ftello.c: Likewise.
35117         * lib/fts-cycle.c: Likewise.
35118         * lib/fts.c: Likewise.
35119         * lib/fts_.h: Likewise.
35120         * lib/full-read.c: Likewise.
35121         * lib/full-read.h: Likewise.
35122         * lib/full-write.c: Likewise.
35123         * lib/full-write.h: Likewise.
35124         * lib/fwritable.c: Likewise.
35125         * lib/fwritable.h: Likewise.
35126         * lib/fwriteerror.c: Likewise.
35127         * lib/fwriteerror.h: Likewise.
35128         * lib/fwriting.c: Likewise.
35129         * lib/fwriting.h: Likewise.
35130         * lib/gcd.c: Likewise.
35131         * lib/gcd.h: Likewise.
35132         * lib/getcwd.c: Likewise.
35133         * lib/getdate.h: Likewise.
35134         * lib/getdate.y: Likewise.
35135         * lib/getdomainname.c: Likewise.
35136         * lib/getdomainname.h: Likewise.
35137         * lib/getgroups.c: Likewise.
35138         * lib/gethostname.c: Likewise.
35139         * lib/gethrxtime.c: Likewise.
35140         * lib/gethrxtime.h: Likewise.
35141         * lib/getloadavg.c: Likewise.
35142         * lib/getndelim2.c: Likewise.
35143         * lib/getndelim2.h: Likewise.
35144         * lib/getnline.c: Likewise.
35145         * lib/getnline.h: Likewise.
35146         * lib/getopt.c: Likewise.
35147         * lib/getopt.in.h: Likewise.
35148         * lib/getopt1.c: Likewise.
35149         * lib/getopt_int.h: Likewise.
35150         * lib/getpagesize.h: Likewise.
35151         * lib/getsubopt.c: Likewise.
35152         * lib/gettime.c: Likewise.
35153         * lib/getugroups.c: Likewise.
35154         * lib/getugroups.h: Likewise.
35155         * lib/getusershell.c: Likewise.
35156         * lib/gl_anyavltree_list1.h: Likewise.
35157         * lib/gl_anyavltree_list2.h: Likewise.
35158         * lib/gl_anyhash_list1.h: Likewise.
35159         * lib/gl_anyhash_list2.h: Likewise.
35160         * lib/gl_anylinked_list1.h: Likewise.
35161         * lib/gl_anylinked_list2.h: Likewise.
35162         * lib/gl_anyrbtree_list1.h: Likewise.
35163         * lib/gl_anyrbtree_list2.h: Likewise.
35164         * lib/gl_anytree_list1.h: Likewise.
35165         * lib/gl_anytree_list2.h: Likewise.
35166         * lib/gl_anytree_oset.h: Likewise.
35167         * lib/gl_anytreehash_list1.h: Likewise.
35168         * lib/gl_anytreehash_list2.h: Likewise.
35169         * lib/gl_array_list.c: Likewise.
35170         * lib/gl_array_list.h: Likewise.
35171         * lib/gl_array_oset.c: Likewise.
35172         * lib/gl_array_oset.h: Likewise.
35173         * lib/gl_avltree_list.c: Likewise.
35174         * lib/gl_avltree_list.h: Likewise.
35175         * lib/gl_avltree_oset.c: Likewise.
35176         * lib/gl_avltree_oset.h: Likewise.
35177         * lib/gl_avltreehash_list.c: Likewise.
35178         * lib/gl_avltreehash_list.h: Likewise.
35179         * lib/gl_carray_list.c: Likewise.
35180         * lib/gl_carray_list.h: Likewise.
35181         * lib/gl_linked_list.c: Likewise.
35182         * lib/gl_linked_list.h: Likewise.
35183         * lib/gl_linkedhash_list.c: Likewise.
35184         * lib/gl_linkedhash_list.h: Likewise.
35185         * lib/gl_list.c: Likewise.
35186         * lib/gl_list.h: Likewise.
35187         * lib/gl_oset.c: Likewise.
35188         * lib/gl_oset.h: Likewise.
35189         * lib/gl_rbtree_list.c: Likewise.
35190         * lib/gl_rbtree_list.h: Likewise.
35191         * lib/gl_rbtree_oset.c: Likewise.
35192         * lib/gl_rbtree_oset.h: Likewise.
35193         * lib/gl_rbtreehash_list.c: Likewise.
35194         * lib/gl_rbtreehash_list.h: Likewise.
35195         * lib/gl_sublist.c: Likewise.
35196         * lib/gl_sublist.h: Likewise.
35197         * lib/group-member.c: Likewise.
35198         * lib/group-member.h: Likewise.
35199         * lib/hard-locale.c: Likewise.
35200         * lib/hard-locale.h: Likewise.
35201         * lib/hash-pjw.c: Likewise.
35202         * lib/hash-pjw.h: Likewise.
35203         * lib/hash-triple.c: Likewise.
35204         * lib/hash.c: Likewise.
35205         * lib/hash.h: Likewise.
35206         * lib/human.c: Likewise.
35207         * lib/human.h: Likewise.
35208         * lib/i-ring.c: Likewise.
35209         * lib/i-ring.h: Likewise.
35210         * lib/idcache.c: Likewise.
35211         * lib/imaxabs.c: Likewise.
35212         * lib/imaxdiv.c: Likewise.
35213         * lib/inet_pton.c: Likewise.
35214         * lib/inet_pton.h: Likewise.
35215         * lib/intprops.h: Likewise.
35216         * lib/inttostr.c: Likewise.
35217         * lib/inttostr.h: Likewise.
35218         * lib/inttypes.in.h: Likewise.
35219         * lib/isapipe.c: Likewise.
35220         * lib/isdir.c: Likewise.
35221         * lib/isnan.c: Likewise.
35222         * lib/isnan.h: Likewise.
35223         * lib/isnanf.c: Likewise.
35224         * lib/isnanf.h: Likewise.
35225         * lib/isnanl-nolibm.h: Likewise.
35226         * lib/isnanl.c: Likewise.
35227         * lib/isnanl.h: Likewise.
35228         * lib/javacomp.c: Likewise.
35229         * lib/javacomp.h: Likewise.
35230         * lib/javaexec.c: Likewise.
35231         * lib/javaexec.h: Likewise.
35232         * lib/javaversion.c: Likewise.
35233         * lib/javaversion.h: Likewise.
35234         * lib/javaversion.java: Likewise.
35235         * lib/lbrkprop.h: Likewise.
35236         * lib/lchmod.h: Likewise.
35237         * lib/lchown.c: Likewise.
35238         * lib/ldexpl.c: Likewise.
35239         * lib/linebreak.c: Likewise.
35240         * lib/linebreak.h: Likewise.
35241         * lib/linebuffer.c: Likewise.
35242         * lib/linebuffer.h: Likewise.
35243         * lib/locale.in.h: Likewise.
35244         * lib/logl.c: Likewise.
35245         * lib/long-options.c: Likewise.
35246         * lib/long-options.h: Likewise.
35247         * lib/lstat.c: Likewise.
35248         * lib/lstat.h: Likewise.
35249         * lib/math.in.h: Likewise.
35250         * lib/mbchar.c: Likewise.
35251         * lib/mbchar.h: Likewise.
35252         * lib/mbfile.h: Likewise.
35253         * lib/mbiter.h: Likewise.
35254         * lib/mbscasecmp.c: Likewise.
35255         * lib/mbscasestr.c: Likewise.
35256         * lib/mbschr.c: Likewise.
35257         * lib/mbscspn.c: Likewise.
35258         * lib/mbslen.c: Likewise.
35259         * lib/mbsncasecmp.c: Likewise.
35260         * lib/mbsnlen.c: Likewise.
35261         * lib/mbspbrk.c: Likewise.
35262         * lib/mbspcasecmp.c: Likewise.
35263         * lib/mbsrchr.c: Likewise.
35264         * lib/mbssep.c: Likewise.
35265         * lib/mbsspn.c: Likewise.
35266         * lib/mbsstr.c: Likewise.
35267         * lib/mbstok_r.c: Likewise.
35268         * lib/mbswidth.c: Likewise.
35269         * lib/mbswidth.h: Likewise.
35270         * lib/mbuiter.h: Likewise.
35271         * lib/memcasecmp.c: Likewise.
35272         * lib/memcasecmp.h: Likewise.
35273         * lib/memchr.c: Likewise.
35274         * lib/memcmp.c: Likewise.
35275         * lib/memcoll.c: Likewise.
35276         * lib/memcoll.h: Likewise.
35277         * lib/memcpy.c: Likewise.
35278         * lib/memrchr.c: Likewise.
35279         * lib/mkancesdirs.c: Likewise.
35280         * lib/mkdir-p.c: Likewise.
35281         * lib/mkdir-p.h: Likewise.
35282         * lib/mkdir.c: Likewise.
35283         * lib/mkdirat.c: Likewise.
35284         * lib/mkdtemp.c: Likewise.
35285         * lib/mkstemp-safer.c: Likewise.
35286         * lib/mkstemp.c: Likewise.
35287         * lib/modechange.c: Likewise.
35288         * lib/modechange.h: Likewise.
35289         * lib/mountlist.c: Likewise.
35290         * lib/mountlist.h: Likewise.
35291         * lib/mpsort.c: Likewise.
35292         * lib/nanosleep.c: Likewise.
35293         * lib/obstack.c: Likewise.
35294         * lib/obstack.h: Likewise.
35295         * lib/open-safer.c: Likewise.
35296         * lib/open.c: Likewise.
35297         * lib/openat-die.c: Likewise.
35298         * lib/openat-priv.h: Likewise.
35299         * lib/openat-proc.c: Likewise.
35300         * lib/openat.c: Likewise.
35301         * lib/openat.h: Likewise.
35302         * lib/pagealign_alloc.c: Likewise.
35303         * lib/pagealign_alloc.h: Likewise.
35304         * lib/physmem.c: Likewise.
35305         * lib/physmem.h: Likewise.
35306         * lib/pipe-safer.c: Likewise.
35307         * lib/pipe.c: Likewise.
35308         * lib/pipe.h: Likewise.
35309         * lib/posixtm.c: Likewise.
35310         * lib/posixtm.h: Likewise.
35311         * lib/posixver.c: Likewise.
35312         * lib/printf-frexp.c: Likewise.
35313         * lib/printf-frexp.h: Likewise.
35314         * lib/printf-frexpl.c: Likewise.
35315         * lib/printf-frexpl.h: Likewise.
35316         * lib/printf.c: Likewise.
35317         * lib/progname.c: Likewise.
35318         * lib/progname.h: Likewise.
35319         * lib/progreloc.c: Likewise.
35320         * lib/putenv.c: Likewise.
35321         * lib/quote.c: Likewise.
35322         * lib/quote.h: Likewise.
35323         * lib/quotearg.c: Likewise.
35324         * lib/quotearg.h: Likewise.
35325         * lib/raise.c: Likewise.
35326         * lib/readline.c: Likewise.
35327         * lib/readline.h: Likewise.
35328         * lib/readlink.c: Likewise.
35329         * lib/readtokens.c: Likewise.
35330         * lib/readtokens.h: Likewise.
35331         * lib/readtokens0.c: Likewise.
35332         * lib/readtokens0.h: Likewise.
35333         * lib/readutmp.c: Likewise.
35334         * lib/readutmp.h: Likewise.
35335         * lib/realloc.c: Likewise.
35336         * lib/relocwrapper.c: Likewise.
35337         * lib/rename-dest-slash.c: Likewise.
35338         * lib/rename.c: Likewise.
35339         * lib/rmdir.c: Likewise.
35340         * lib/rpmatch.c: Likewise.
35341         * lib/safe-read.c: Likewise.
35342         * lib/safe-read.h: Likewise.
35343         * lib/safe-write.c: Likewise.
35344         * lib/safe-write.h: Likewise.
35345         * lib/same-inode.h: Likewise.
35346         * lib/same.c: Likewise.
35347         * lib/same.h: Likewise.
35348         * lib/save-cwd.c: Likewise.
35349         * lib/save-cwd.h: Likewise.
35350         * lib/savedir.c: Likewise.
35351         * lib/savedir.h: Likewise.
35352         * lib/savewd.c: Likewise.
35353         * lib/savewd.h: Likewise.
35354         * lib/search.in.h: Likewise.
35355         * lib/setenv.c: Likewise.
35356         * lib/setenv.h: Likewise.
35357         * lib/settime.c: Likewise.
35358         * lib/sh-quote.c: Likewise.
35359         * lib/sh-quote.h: Likewise.
35360         * lib/sig2str.c: Likewise.
35361         * lib/sig2str.h: Likewise.
35362         * lib/signal.in.h: Likewise.
35363         * lib/signbitd.c: Likewise.
35364         * lib/signbitf.c: Likewise.
35365         * lib/signbitl.c: Likewise.
35366         * lib/sigprocmask.c: Likewise.
35367         * lib/sincosl.c: Likewise.
35368         * lib/sleep.c: Likewise.
35369         * lib/sprintf.c: Likewise.
35370         * lib/sqrtl.c: Likewise.
35371         * lib/stat-time.h: Likewise.
35372         * lib/stdio--.h: Likewise.
35373         * lib/stdio-safer.h: Likewise.
35374         * lib/stdlib--.h: Likewise.
35375         * lib/stdlib-safer.h: Likewise.
35376         * lib/stdlib.in.h: Likewise.
35377         * lib/stpcpy.c: Likewise.
35378         * lib/stpncpy.c: Likewise.
35379         * lib/strchrnul.c: Likewise.
35380         * lib/strcspn.c: Likewise.
35381         * lib/strerror.c: Likewise.
35382         * lib/strftime.c: Likewise.
35383         * lib/strftime.h: Likewise.
35384         * lib/striconveh.c: Likewise.
35385         * lib/striconveh.h: Likewise.
35386         * lib/striconveha.c: Likewise.
35387         * lib/striconveha.h: Likewise.
35388         * lib/stripslash.c: Likewise.
35389         * lib/strnlen1.c: Likewise.
35390         * lib/strnlen1.h: Likewise.
35391         * lib/strtod.c: Likewise.
35392         * lib/strtoimax.c: Likewise.
35393         * lib/strtok_r.c: Likewise.
35394         * lib/strtol.c: Likewise.
35395         * lib/strtoll.c: Likewise.
35396         * lib/strtoul.c: Likewise.
35397         * lib/strtoull.c: Likewise.
35398         * lib/sysexits.in.h: Likewise.
35399         * lib/tempname.c: Likewise.
35400         * lib/tempname.h: Likewise.
35401         * lib/timespec.h: Likewise.
35402         * lib/tls.c: Likewise.
35403         * lib/tls.h: Likewise.
35404         * lib/tmpdir.c: Likewise.
35405         * lib/tmpdir.h: Likewise.
35406         * lib/tmpfile-safer.c: Likewise.
35407         * lib/tmpfile.c: Likewise.
35408         * lib/trigl.c: Likewise.
35409         * lib/trigl.h: Likewise.
35410         * lib/trim.c: Likewise.
35411         * lib/trim.h: Likewise.
35412         * lib/trunc.c: Likewise.
35413         * lib/truncf.c: Likewise.
35414         * lib/truncl.c: Likewise.
35415         * lib/tsearch.c: Likewise.
35416         * lib/unicodeio.c: Likewise.
35417         * lib/unicodeio.h: Likewise.
35418         * lib/unistd--.h: Likewise.
35419         * lib/unistd-safer.h: Likewise.
35420         * lib/unistdio/ulc-fprintf.c: Likewise.
35421         * lib/unistdio/ulc-vfprintf.c: Likewise.
35422         * lib/unlinkdir.c: Likewise.
35423         * lib/unlinkdir.h: Likewise.
35424         * lib/unlocked-io.h: Likewise.
35425         * lib/unsetenv.c: Likewise.
35426         * lib/userspec.c: Likewise.
35427         * lib/utime.c: Likewise.
35428         * lib/utimecmp.c: Likewise.
35429         * lib/utimecmp.h: Likewise.
35430         * lib/utimens.c: Likewise.
35431         * lib/verify.h: Likewise.
35432         * lib/verror.c: Likewise.
35433         * lib/verror.h: Likewise.
35434         * lib/version-etc-fsf.c: Likewise.
35435         * lib/version-etc.c: Likewise.
35436         * lib/version-etc.h: Likewise.
35437         * lib/vfprintf.c: Likewise.
35438         * lib/vprintf.c: Likewise.
35439         * lib/vsprintf.c: Likewise.
35440         * lib/w32spawn.h: Likewise.
35441         * lib/wait-process.c: Likewise.
35442         * lib/wait-process.h: Likewise.
35443         * lib/wcwidth.c: Likewise.
35444         * lib/write-any-file.c: Likewise.
35445         * lib/xalloc-die.c: Likewise.
35446         * lib/xalloc.h: Likewise.
35447         * lib/xasprintf.c: Likewise.
35448         * lib/xgetcwd.c: Likewise.
35449         * lib/xgetcwd.h: Likewise.
35450         * lib/xgetdomainname.c: Likewise.
35451         * lib/xgetdomainname.h: Likewise.
35452         * lib/xgethostname.c: Likewise.
35453         * lib/xmalloc.c: Likewise.
35454         * lib/xmalloca.c: Likewise.
35455         * lib/xmalloca.h: Likewise.
35456         * lib/xmemcoll.c: Likewise.
35457         * lib/xnanosleep.c: Likewise.
35458         * lib/xreadlink.c: Likewise.
35459         * lib/xreadlink.h: Likewise.
35460         * lib/xsetenv.c: Likewise.
35461         * lib/xsetenv.h: Likewise.
35462         * lib/xstriconv.c: Likewise.
35463         * lib/xstriconv.h: Likewise.
35464         * lib/xstrndup.c: Likewise.
35465         * lib/xstrndup.h: Likewise.
35466         * lib/xstrtod.c: Likewise.
35467         * lib/xstrtod.h: Likewise.
35468         * lib/xstrtol-error.c: Likewise.
35469         * lib/xstrtol.c: Likewise.
35470         * lib/xstrtol.h: Likewise.
35471         * lib/xtime.h: Likewise.
35472         * lib/xvasprintf.c: Likewise.
35473         * lib/xvasprintf.h: Likewise.
35474         * lib/yesno.c: Likewise.
35475         * lib/yesno.h: Likewise.
35476         * posix-modules: Likewise.
35477         * tests/test-alloca-opt.c: Likewise.
35478         * tests/test-arcfour.c: Likewise.
35479         * tests/test-arctwo.c: Likewise.
35480         * tests/test-argmatch.c: Likewise.
35481         * tests/test-argp-2.sh: Likewise.
35482         * tests/test-argp.c: Likewise.
35483         * tests/test-arpa_inet.c: Likewise.
35484         * tests/test-array_list.c: Likewise.
35485         * tests/test-array_oset.c: Likewise.
35486         * tests/test-atexit.c: Likewise.
35487         * tests/test-avltree_list.c: Likewise.
35488         * tests/test-avltree_oset.c: Likewise.
35489         * tests/test-avltreehash_list.c: Likewise.
35490         * tests/test-base64.c: Likewise.
35491         * tests/test-binary-io.c: Likewise.
35492         * tests/test-byteswap.c: Likewise.
35493         * tests/test-c-ctype.c: Likewise.
35494         * tests/test-c-strcasecmp.c: Likewise.
35495         * tests/test-c-strcasestr.c: Likewise.
35496         * tests/test-c-strncasecmp.c: Likewise.
35497         * tests/test-c-strstr.c: Likewise.
35498         * tests/test-canonicalize-lgpl.c: Likewise.
35499         * tests/test-canonicalize.c: Likewise.
35500         * tests/test-carray_list.c: Likewise.
35501         * tests/test-ceilf.c: Likewise.
35502         * tests/test-ceill.c: Likewise.
35503         * tests/test-count-one-bits.c: Likewise.
35504         * tests/test-crc.c: Likewise.
35505         * tests/test-dirname.c: Likewise.
35506         * tests/test-fbufmode.c: Likewise.
35507         * tests/test-fcntl.c: Likewise.
35508         * tests/test-fflush.c: Likewise.
35509         * tests/test-floorf.c: Likewise.
35510         * tests/test-floorl.c: Likewise.
35511         * tests/test-fopen.c: Likewise.
35512         * tests/test-fprintf-posix.c: Likewise.
35513         * tests/test-fprintf-posix.h: Likewise.
35514         * tests/test-fpurge.c: Likewise.
35515         * tests/test-freadable.c: Likewise.
35516         * tests/test-freadahead.c: Likewise.
35517         * tests/test-freading.c: Likewise.
35518         * tests/test-freopen.c: Likewise.
35519         * tests/test-frexp.c: Likewise.
35520         * tests/test-frexpl.c: Likewise.
35521         * tests/test-fseek.c: Likewise.
35522         * tests/test-fseeko.c: Likewise.
35523         * tests/test-fseterr.c: Likewise.
35524         * tests/test-fstrcmp.c: Likewise.
35525         * tests/test-ftell.c: Likewise.
35526         * tests/test-ftello.c: Likewise.
35527         * tests/test-fwritable.c: Likewise.
35528         * tests/test-fwriting.c: Likewise.
35529         * tests/test-getaddrinfo.c: Likewise.
35530         * tests/test-getpass.c: Likewise.
35531         * tests/test-gettimeofday.c: Likewise.
35532         * tests/test-hmac-md5.c: Likewise.
35533         * tests/test-hmac-sha1.c: Likewise.
35534         * tests/test-iconv.c: Likewise.
35535         * tests/test-iconvme.c: Likewise.
35536         * tests/test-inttypes.c: Likewise.
35537         * tests/test-isnan.c: Likewise.
35538         * tests/test-isnanf.c: Likewise.
35539         * tests/test-isnanl-nolibm.c: Likewise.
35540         * tests/test-isnanl.c: Likewise.
35541         * tests/test-isnanl.h: Likewise.
35542         * tests/test-ldexpl.c: Likewise.
35543         * tests/test-linked_list.c: Likewise.
35544         * tests/test-linkedhash_list.c: Likewise.
35545         * tests/test-locale.c: Likewise.
35546         * tests/test-localename.c: Likewise.
35547         * tests/test-lock.c: Likewise.
35548         * tests/test-lseek.c: Likewise.
35549         * tests/test-malloca.c: Likewise.
35550         * tests/test-math.c: Likewise.
35551         * tests/test-mbscasecmp.c: Likewise.
35552         * tests/test-mbscasestr1.c: Likewise.
35553         * tests/test-mbscasestr2.c: Likewise.
35554         * tests/test-mbscasestr3.c: Likewise.
35555         * tests/test-mbscasestr4.c: Likewise.
35556         * tests/test-mbschr.c: Likewise.
35557         * tests/test-mbscspn.c: Likewise.
35558         * tests/test-mbsncasecmp.c: Likewise.
35559         * tests/test-mbspbrk.c: Likewise.
35560         * tests/test-mbspcasecmp.c: Likewise.
35561         * tests/test-mbsrchr.c: Likewise.
35562         * tests/test-mbsspn.c: Likewise.
35563         * tests/test-mbsstr1.c: Likewise.
35564         * tests/test-mbsstr2.c: Likewise.
35565         * tests/test-mbsstr3.c: Likewise.
35566         * tests/test-md5.c: Likewise.
35567         * tests/test-memmem.c: Likewise.
35568         * tests/test-netinet_in.c: Likewise.
35569         * tests/test-open.c: Likewise.
35570         * tests/test-printf-frexp.c: Likewise.
35571         * tests/test-printf-frexpl.c: Likewise.
35572         * tests/test-printf-posix.c: Likewise.
35573         * tests/test-printf-posix.h: Likewise.
35574         * tests/test-rbtree_list.c: Likewise.
35575         * tests/test-rbtree_oset.c: Likewise.
35576         * tests/test-rbtreehash_list.c: Likewise.
35577         * tests/test-read-file.c: Likewise.
35578         * tests/test-rijndael.c: Likewise.
35579         * tests/test-search.c: Likewise.
35580         * tests/test-signbit.c: Likewise.
35581         * tests/test-sleep.c: Likewise.
35582         * tests/test-snprintf-posix.c: Likewise.
35583         * tests/test-snprintf-posix.h: Likewise.
35584         * tests/test-snprintf.c: Likewise.
35585         * tests/test-sprintf-posix.c: Likewise.
35586         * tests/test-sprintf-posix.h: Likewise.
35587         * tests/test-stat-time.c: Likewise.
35588         * tests/test-stdbool.c: Likewise.
35589         * tests/test-stdint.c: Likewise.
35590         * tests/test-stdio.c: Likewise.
35591         * tests/test-stdlib.c: Likewise.
35592         * tests/test-stpncpy.c: Likewise.
35593         * tests/test-strcasestr.c: Likewise.
35594         * tests/test-striconv.c: Likewise.
35595         * tests/test-striconveh.c: Likewise.
35596         * tests/test-striconveha.c: Likewise.
35597         * tests/test-string.c: Likewise.
35598         * tests/test-sys_select.c: Likewise.
35599         * tests/test-sys_socket.c: Likewise.
35600         * tests/test-sys_stat.c: Likewise.
35601         * tests/test-sys_time.c: Likewise.
35602         * tests/test-sysexits.c: Likewise.
35603         * tests/test-time.c: Likewise.
35604         * tests/test-tls.c: Likewise.
35605         * tests/test-trunc.c: Likewise.
35606         * tests/test-truncf.c: Likewise.
35607         * tests/test-truncl.c: Likewise.
35608         * tests/test-unistd.c: Likewise.
35609         * tests/test-vasnprintf-posix.c: Likewise.
35610         * tests/test-vasnprintf-posix2.c: Likewise.
35611         * tests/test-vasnprintf.c: Likewise.
35612         * tests/test-vasprintf-posix.c: Likewise.
35613         * tests/test-vasprintf.c: Likewise.
35614         * tests/test-verify.c: Likewise.
35615         * tests/test-vfprintf-posix.c: Likewise.
35616         * tests/test-vprintf-posix.c: Likewise.
35617         * tests/test-vsnprintf-posix.c: Likewise.
35618         * tests/test-vsnprintf.c: Likewise.
35619         * tests/test-vsprintf-posix.c: Likewise.
35620         * tests/test-wchar.c: Likewise.
35621         * tests/test-wctype.c: Likewise.
35622         * tests/test-wcwidth.c: Likewise.
35623         * tests/test-xstrtol.c: Likewise.
35624         * tests/test-xvasprintf.c: Likewise.
35625         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35626         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35627         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35628         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35629         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35630         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35631         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35632         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35633         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35634         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35635         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35636         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35637         * tests/uniname/test-uninames.c: Likewise.
35638         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35639         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
35640         * tests/unistdio/test-u16-printf1.h: Likewise.
35641         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35642         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35643         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35644         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35645         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35646         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35647         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35648         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
35649         * tests/unistdio/test-u32-printf1.h: Likewise.
35650         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35651         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35652         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35653         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35654         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35655         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35656         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35657         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
35658         * tests/unistdio/test-u8-printf1.h: Likewise.
35659         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35660         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35661         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35662         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35663         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35664         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35665         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35666         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
35667         * tests/unistdio/test-ulc-printf1.h: Likewise.
35668         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35669         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35670         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35671         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35672         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35673         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35674         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35675         * tests/uniwidth/test-u16-width.c: Likewise.
35676         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35677         * tests/uniwidth/test-u32-width.c: Likewise.
35678         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35679         * tests/uniwidth/test-u8-width.c: Likewise.
35680         * tests/uniwidth/test-uc_width.c: Likewise.
35681         * config/srclist-update: Likewise.
35682         (fixlicense): Update to GPLv3+.
35683
35684         Change copyright notice from LGPLv2.1+ to LGPLv3+.
35685         * tests/test-tsearch.c: Change copyright notice.
35686
35687         Change copyright notice from LGPLv2.0+ to LGPLv3+.
35688         * lib/c-strcaseeq.h: Change copyright notice.
35689         * lib/streq.h: Likewise.
35690         * lib/uniconv.h: Likewise.
35691         * lib/uniconv/u-conv-from-enc.h: Likewise.
35692         * lib/uniconv/u-conv-to-enc.h: Likewise.
35693         * lib/uniconv/u-strconv-from-enc.h: Likewise.
35694         * lib/uniconv/u-strconv-to-enc.h: Likewise.
35695         * lib/uniconv/u16-conv-from-enc.c: Likewise.
35696         * lib/uniconv/u16-conv-to-enc.c: Likewise.
35697         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
35698         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
35699         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
35700         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
35701         * lib/uniconv/u32-conv-from-enc.c: Likewise.
35702         * lib/uniconv/u32-conv-to-enc.c: Likewise.
35703         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
35704         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
35705         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
35706         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
35707         * lib/uniconv/u8-conv-from-enc.c: Likewise.
35708         * lib/uniconv/u8-conv-to-enc.c: Likewise.
35709         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
35710         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
35711         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
35712         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
35713         * lib/uniname.h: Likewise.
35714         * lib/uniname/uniname.c: Likewise.
35715         * lib/unistdio.h: Likewise.
35716         * lib/unistdio/u-asnprintf.h: Likewise.
35717         * lib/unistdio/u-asprintf.h: Likewise.
35718         * lib/unistdio/u-printf-args.c: Likewise.
35719         * lib/unistdio/u-printf-args.h: Likewise.
35720         * lib/unistdio/u-printf-parse.h: Likewise.
35721         * lib/unistdio/u-snprintf.h: Likewise.
35722         * lib/unistdio/u-sprintf.h: Likewise.
35723         * lib/unistdio/u-vasprintf.h: Likewise.
35724         * lib/unistdio/u-vsnprintf.h: Likewise.
35725         * lib/unistdio/u-vsprintf.h: Likewise.
35726         * lib/unistdio/u16-asnprintf.c: Likewise.
35727         * lib/unistdio/u16-asprintf.c: Likewise.
35728         * lib/unistdio/u16-printf-parse.c: Likewise.
35729         * lib/unistdio/u16-snprintf.c: Likewise.
35730         * lib/unistdio/u16-sprintf.c: Likewise.
35731         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
35732         * lib/unistdio/u16-u16-asprintf.c: Likewise.
35733         * lib/unistdio/u16-u16-snprintf.c: Likewise.
35734         * lib/unistdio/u16-u16-sprintf.c: Likewise.
35735         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
35736         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
35737         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
35738         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
35739         * lib/unistdio/u16-vasnprintf.c: Likewise.
35740         * lib/unistdio/u16-vasprintf.c: Likewise.
35741         * lib/unistdio/u16-vsnprintf.c: Likewise.
35742         * lib/unistdio/u16-vsprintf.c: Likewise.
35743         * lib/unistdio/u32-asnprintf.c: Likewise.
35744         * lib/unistdio/u32-asprintf.c: Likewise.
35745         * lib/unistdio/u32-printf-parse.c: Likewise.
35746         * lib/unistdio/u32-snprintf.c: Likewise.
35747         * lib/unistdio/u32-sprintf.c: Likewise.
35748         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
35749         * lib/unistdio/u32-u32-asprintf.c: Likewise.
35750         * lib/unistdio/u32-u32-snprintf.c: Likewise.
35751         * lib/unistdio/u32-u32-sprintf.c: Likewise.
35752         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
35753         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
35754         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
35755         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
35756         * lib/unistdio/u32-vasnprintf.c: Likewise.
35757         * lib/unistdio/u32-vasprintf.c: Likewise.
35758         * lib/unistdio/u32-vsnprintf.c: Likewise.
35759         * lib/unistdio/u32-vsprintf.c: Likewise.
35760         * lib/unistdio/u8-asnprintf.c: Likewise.
35761         * lib/unistdio/u8-asprintf.c: Likewise.
35762         * lib/unistdio/u8-printf-parse.c: Likewise.
35763         * lib/unistdio/u8-snprintf.c: Likewise.
35764         * lib/unistdio/u8-sprintf.c: Likewise.
35765         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
35766         * lib/unistdio/u8-u8-asprintf.c: Likewise.
35767         * lib/unistdio/u8-u8-snprintf.c: Likewise.
35768         * lib/unistdio/u8-u8-sprintf.c: Likewise.
35769         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
35770         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
35771         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
35772         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
35773         * lib/unistdio/u8-vasnprintf.c: Likewise.
35774         * lib/unistdio/u8-vasprintf.c: Likewise.
35775         * lib/unistdio/u8-vsnprintf.c: Likewise.
35776         * lib/unistdio/u8-vsprintf.c: Likewise.
35777         * lib/unistdio/ulc-asnprintf.c: Likewise.
35778         * lib/unistdio/ulc-asprintf.c: Likewise.
35779         * lib/unistdio/ulc-printf-parse.c: Likewise.
35780         * lib/unistdio/ulc-snprintf.c: Likewise.
35781         * lib/unistdio/ulc-sprintf.c: Likewise.
35782         * lib/unistdio/ulc-vasnprintf.c: Likewise.
35783         * lib/unistdio/ulc-vasprintf.c: Likewise.
35784         * lib/unistdio/ulc-vsnprintf.c: Likewise.
35785         * lib/unistdio/ulc-vsprintf.c: Likewise.
35786         * lib/unistr.h: Likewise.
35787         * lib/unistr/u-cpy-alloc.h: Likewise.
35788         * lib/unistr/u-cpy.h: Likewise.
35789         * lib/unistr/u-endswith.h: Likewise.
35790         * lib/unistr/u-move.h: Likewise.
35791         * lib/unistr/u-set.h: Likewise.
35792         * lib/unistr/u-startswith.h: Likewise.
35793         * lib/unistr/u-stpcpy.h: Likewise.
35794         * lib/unistr/u-stpncpy.h: Likewise.
35795         * lib/unistr/u-strcat.h: Likewise.
35796         * lib/unistr/u-strcpy.h: Likewise.
35797         * lib/unistr/u-strcspn.h: Likewise.
35798         * lib/unistr/u-strdup.h: Likewise.
35799         * lib/unistr/u-strlen.h: Likewise.
35800         * lib/unistr/u-strncat.h: Likewise.
35801         * lib/unistr/u-strncpy.h: Likewise.
35802         * lib/unistr/u-strnlen.h: Likewise.
35803         * lib/unistr/u-strpbrk.h: Likewise.
35804         * lib/unistr/u-strspn.h: Likewise.
35805         * lib/unistr/u-strstr.h: Likewise.
35806         * lib/unistr/u-strtok.h: Likewise.
35807         * lib/unistr/u16-check.c: Likewise.
35808         * lib/unistr/u16-chr.c: Likewise.
35809         * lib/unistr/u16-cmp.c: Likewise.
35810         * lib/unistr/u16-cpy-alloc.c: Likewise.
35811         * lib/unistr/u16-cpy.c: Likewise.
35812         * lib/unistr/u16-endswith.c: Likewise.
35813         * lib/unistr/u16-mblen.c: Likewise.
35814         * lib/unistr/u16-mbsnlen.c: Likewise.
35815         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35816         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35817         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35818         * lib/unistr/u16-mbtouc.c: Likewise.
35819         * lib/unistr/u16-mbtoucr.c: Likewise.
35820         * lib/unistr/u16-move.c: Likewise.
35821         * lib/unistr/u16-next.c: Likewise.
35822         * lib/unistr/u16-prev.c: Likewise.
35823         * lib/unistr/u16-set.c: Likewise.
35824         * lib/unistr/u16-startswith.c: Likewise.
35825         * lib/unistr/u16-stpcpy.c: Likewise.
35826         * lib/unistr/u16-stpncpy.c: Likewise.
35827         * lib/unistr/u16-strcat.c: Likewise.
35828         * lib/unistr/u16-strchr.c: Likewise.
35829         * lib/unistr/u16-strcmp.c: Likewise.
35830         * lib/unistr/u16-strcpy.c: Likewise.
35831         * lib/unistr/u16-strcspn.c: Likewise.
35832         * lib/unistr/u16-strdup.c: Likewise.
35833         * lib/unistr/u16-strlen.c: Likewise.
35834         * lib/unistr/u16-strmblen.c: Likewise.
35835         * lib/unistr/u16-strmbtouc.c: Likewise.
35836         * lib/unistr/u16-strncat.c: Likewise.
35837         * lib/unistr/u16-strncmp.c: Likewise.
35838         * lib/unistr/u16-strncpy.c: Likewise.
35839         * lib/unistr/u16-strnlen.c: Likewise.
35840         * lib/unistr/u16-strpbrk.c: Likewise.
35841         * lib/unistr/u16-strrchr.c: Likewise.
35842         * lib/unistr/u16-strspn.c: Likewise.
35843         * lib/unistr/u16-strstr.c: Likewise.
35844         * lib/unistr/u16-strtok.c: Likewise.
35845         * lib/unistr/u16-to-u32.c: Likewise.
35846         * lib/unistr/u16-to-u8.c: Likewise.
35847         * lib/unistr/u16-uctomb-aux.c: Likewise.
35848         * lib/unistr/u16-uctomb.c: Likewise.
35849         * lib/unistr/u32-check.c: Likewise.
35850         * lib/unistr/u32-chr.c: Likewise.
35851         * lib/unistr/u32-cmp.c: Likewise.
35852         * lib/unistr/u32-cpy-alloc.c: Likewise.
35853         * lib/unistr/u32-cpy.c: Likewise.
35854         * lib/unistr/u32-endswith.c: Likewise.
35855         * lib/unistr/u32-mblen.c: Likewise.
35856         * lib/unistr/u32-mbsnlen.c: Likewise.
35857         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35858         * lib/unistr/u32-mbtouc.c: Likewise.
35859         * lib/unistr/u32-mbtoucr.c: Likewise.
35860         * lib/unistr/u32-move.c: Likewise.
35861         * lib/unistr/u32-next.c: Likewise.
35862         * lib/unistr/u32-prev.c: Likewise.
35863         * lib/unistr/u32-set.c: Likewise.
35864         * lib/unistr/u32-startswith.c: Likewise.
35865         * lib/unistr/u32-stpcpy.c: Likewise.
35866         * lib/unistr/u32-stpncpy.c: Likewise.
35867         * lib/unistr/u32-strcat.c: Likewise.
35868         * lib/unistr/u32-strchr.c: Likewise.
35869         * lib/unistr/u32-strcmp.c: Likewise.
35870         * lib/unistr/u32-strcpy.c: Likewise.
35871         * lib/unistr/u32-strcspn.c: Likewise.
35872         * lib/unistr/u32-strdup.c: Likewise.
35873         * lib/unistr/u32-strlen.c: Likewise.
35874         * lib/unistr/u32-strmblen.c: Likewise.
35875         * lib/unistr/u32-strmbtouc.c: Likewise.
35876         * lib/unistr/u32-strncat.c: Likewise.
35877         * lib/unistr/u32-strncmp.c: Likewise.
35878         * lib/unistr/u32-strncpy.c: Likewise.
35879         * lib/unistr/u32-strnlen.c: Likewise.
35880         * lib/unistr/u32-strpbrk.c: Likewise.
35881         * lib/unistr/u32-strrchr.c: Likewise.
35882         * lib/unistr/u32-strspn.c: Likewise.
35883         * lib/unistr/u32-strstr.c: Likewise.
35884         * lib/unistr/u32-strtok.c: Likewise.
35885         * lib/unistr/u32-to-u16.c: Likewise.
35886         * lib/unistr/u32-to-u8.c: Likewise.
35887         * lib/unistr/u32-uctomb.c: Likewise.
35888         * lib/unistr/u8-check.c: Likewise.
35889         * lib/unistr/u8-chr.c: Likewise.
35890         * lib/unistr/u8-cmp.c: Likewise.
35891         * lib/unistr/u8-cpy-alloc.c: Likewise.
35892         * lib/unistr/u8-cpy.c: Likewise.
35893         * lib/unistr/u8-endswith.c: Likewise.
35894         * lib/unistr/u8-mblen.c: Likewise.
35895         * lib/unistr/u8-mbsnlen.c: Likewise.
35896         * lib/unistr/u8-mbtouc-aux.c: Likewise.
35897         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35898         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35899         * lib/unistr/u8-mbtouc.c: Likewise.
35900         * lib/unistr/u8-mbtoucr.c: Likewise.
35901         * lib/unistr/u8-move.c: Likewise.
35902         * lib/unistr/u8-next.c: Likewise.
35903         * lib/unistr/u8-prev.c: Likewise.
35904         * lib/unistr/u8-set.c: Likewise.
35905         * lib/unistr/u8-startswith.c: Likewise.
35906         * lib/unistr/u8-stpcpy.c: Likewise.
35907         * lib/unistr/u8-stpncpy.c: Likewise.
35908         * lib/unistr/u8-strcat.c: Likewise.
35909         * lib/unistr/u8-strchr.c: Likewise.
35910         * lib/unistr/u8-strcmp.c: Likewise.
35911         * lib/unistr/u8-strcpy.c: Likewise.
35912         * lib/unistr/u8-strcspn.c: Likewise.
35913         * lib/unistr/u8-strdup.c: Likewise.
35914         * lib/unistr/u8-strlen.c: Likewise.
35915         * lib/unistr/u8-strmblen.c: Likewise.
35916         * lib/unistr/u8-strmbtouc.c: Likewise.
35917         * lib/unistr/u8-strncat.c: Likewise.
35918         * lib/unistr/u8-strncmp.c: Likewise.
35919         * lib/unistr/u8-strncpy.c: Likewise.
35920         * lib/unistr/u8-strnlen.c: Likewise.
35921         * lib/unistr/u8-strpbrk.c: Likewise.
35922         * lib/unistr/u8-strrchr.c: Likewise.
35923         * lib/unistr/u8-strspn.c: Likewise.
35924         * lib/unistr/u8-strstr.c: Likewise.
35925         * lib/unistr/u8-strtok.c: Likewise.
35926         * lib/unistr/u8-to-u16.c: Likewise.
35927         * lib/unistr/u8-to-u32.c: Likewise.
35928         * lib/unistr/u8-uctomb-aux.c: Likewise.
35929         * lib/unistr/u8-uctomb.c: Likewise.
35930         * lib/unitypes.h: Likewise.
35931         * lib/uniwidth.h: Likewise.
35932         * lib/uniwidth/cjk.h: Likewise.
35933         * lib/uniwidth/u16-strwidth.c: Likewise.
35934         * lib/uniwidth/u16-width.c: Likewise.
35935         * lib/uniwidth/u32-strwidth.c: Likewise.
35936         * lib/uniwidth/u32-width.c: Likewise.
35937         * lib/uniwidth/u8-strwidth.c: Likewise.
35938         * lib/uniwidth/u8-width.c: Likewise.
35939         * lib/uniwidth/width.c: Likewise.
35940
35941 2007-10-07  Bruno Haible  <bruno@clisp.org>
35942
35943         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
35944         The file is still under LGPL (see modules/inttypes).
35945
35946 2007-10-06  Bruno Haible  <bruno@clisp.org>
35947
35948         * modules/trunc (Dependencies): Add 'extensions'.
35949         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
35950         Reported by Ben Pfaff <blp@gnu.org>.
35951
35952 2007-10-06  Bruno Haible  <bruno@clisp.org>
35953
35954         * modules/freopen-tests: New file.
35955         * tests/test-freopen.c: New file.
35956
35957         * modules/fopen-tests: New file.
35958         * tests/test-fopen.c: New file.
35959
35960         * modules/fopen: New file.
35961         * lib/fopen.c: New file.
35962         * m4/fopen.m4: New file.
35963         * modules/freopen: New file.
35964         * lib/freopen.c: New file.
35965         * m4/freopen.m4: New file.
35966         * lib/stdio.in.h (fopen, freopen): New declarations.
35967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35968         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35969         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35970         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35971         * doc/functions/fopen.texi: Mention the 'fopen' module.
35972         * doc/functions/freopen.texi: Mention the 'freopen' module.
35973
35974 2007-10-06  Bruno Haible  <bruno@clisp.org>
35975
35976         * modules/open-tests: New file.
35977         * tests/test-open.c: New file.
35978
35979         * modules/open: New file.
35980         * lib/open.c: New file.
35981         * m4/open.m4: New file.
35982         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35983         lib/open.c does.
35984         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35985         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35986         macros.
35987         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35988         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35989         REPLACE_OPEN.
35990         * doc/functions/open.texi: Mention the 'open' module.
35991
35992 2007-10-04  Bruno Haible  <bruno@clisp.org>
35993
35994         * modules/ceill-tests: New file.
35995         * tests/test-ceill.c: New file.
35996
35997         * modules/ceill: New file.
35998         * lib/ceill.c: Replace entire file.
35999         * m4/ceill.m4: New file.
36000         * lib/math.in.h (ceill): Replace declaration.
36001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36002         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36003         * doc/functions/ceill.texi: Mention the 'ceill' module.
36004         * modules/mathl (Files): Remove lib/ceill.c.
36005         (Depends-on): Add ceill.
36006
36007 2007-10-04  Bruno Haible  <bruno@clisp.org>
36008
36009         * modules/ceilf-tests: New file.
36010         * tests/test-ceilf.c: New file.
36011
36012         * modules/ceilf: New file.
36013         * lib/ceil.c: New file.
36014         * lib/ceilf.c: New file.
36015         * m4/ceilf.m4: New file.
36016         * lib/math.in.h (ceilf): New declaration.
36017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36018         HAVE_DECL_CEILF.
36019         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36020         HAVE_DECL_CEILF.
36021         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36022
36023 2007-10-04  Bruno Haible  <bruno@clisp.org>
36024
36025         * modules/floorl-tests: New file.
36026         * tests/test-floorl.c: New file.
36027
36028         * modules/floorl: New file.
36029         * lib/floorl.c: Replace entire file.
36030         * m4/floorl.m4: New file.
36031         * lib/math.in.h (floorl): Replace declaration.
36032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36033         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36034         * doc/functions/floorl.texi: Mention the 'floorl' module.
36035         * modules/mathl (Files): Remove lib/floorl.c.
36036         (Depends-on): Add floorl.
36037
36038 2007-10-04  Bruno Haible  <bruno@clisp.org>
36039
36040         * modules/floorf-tests: New file.
36041         * tests/test-floorf.c: New file.
36042
36043         * modules/floorf: New file.
36044         * lib/floor.c: New file.
36045         * lib/floorf.c: New file.
36046         * m4/floorf.m4: New file.
36047         * lib/math.in.h (floorf): New declaration.
36048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36049         HAVE_DECL_FLOORF.
36050         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36051         HAVE_DECL_FLOORF.
36052         * doc/functions/floorf.texi: Mention the 'floorf' module.
36053
36054 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36055             Bruno Haible  <bruno@clisp.org>
36056
36057         Advertise for the Git server instead of the CVS server.
36058         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36059         repository instead of the CVS one.
36060         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36061         about all VCS systems generically.
36062         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36063
36064 2007-10-04  Bruno Haible  <bruno@clisp.org>
36065
36066         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36067         means.
36068         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36069
36070 2007-10-04  Bruno Haible  <bruno@clisp.org>
36071
36072         * modules/truncl-tests: New file.
36073         * tests/test-truncl.c: New file.
36074
36075         * modules/truncl: New file.
36076         * lib/truncl.c: New file.
36077         * m4/truncl.m4: New file.
36078         * lib/math.in.h (truncl): New declaration.
36079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36080         HAVE_DECL_TRUNCL.
36081         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36082         HAVE_DECL_TRUNCL.
36083         * doc/functions/truncl.texi: Mention the 'truncl' module.
36084
36085 2007-10-04  Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/truncf-tests: New file.
36088         * tests/test-truncf.c: New file.
36089
36090         * modules/truncf: New file.
36091         * lib/trunc.c: Make paramerizable through USE_* macros.
36092         * lib/truncf.c: New file.
36093         * m4/truncf.m4: New file.
36094         * lib/math.in.h (truncf): New declaration.
36095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36096         HAVE_DECL_TRUNCF.
36097         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36098         HAVE_DECL_TRUNCF.
36099         * doc/functions/truncf.texi: Mention the 'truncf' module.
36100
36101 2007-10-03  Bruno Haible  <bruno@clisp.org>
36102
36103         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36104         augmentation also for tests modules.
36105         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36106         * modules/atexit-tests (Makefile.am): Likewise.
36107         * modules/binary-io-tests (Makefile.am): Likewise.
36108         * modules/c-strcase-tests (Makefile.am): Likewise.
36109         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36110         * modules/canonicalize-tests (Makefile.am): Likewise.
36111         * modules/closein-tests (Makefile.am): Likewise.
36112         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36113         * modules/freadahead-tests (Makefile.am): Likewise.
36114         * modules/fseek-tests (Makefile.am): Likewise.
36115         * modules/fseeko-tests (Makefile.am): Likewise.
36116         * modules/ftell-tests (Makefile.am): Likewise.
36117         * modules/ftello-tests (Makefile.am): Likewise.
36118         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36119         * modules/isnanl-tests (Makefile.am): Likewise.
36120         * modules/lseek-tests (Makefile.am): Likewise.
36121         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36122         * modules/mbscasestr-tests (Makefile.am): Likewise.
36123         * modules/mbschr-tests (Makefile.am): Likewise.
36124         * modules/mbscspn-tests (Makefile.am): Likewise.
36125         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36126         * modules/mbspbrk-tests (Makefile.am): Likewise.
36127         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36128         * modules/mbsrchr-tests (Makefile.am): Likewise.
36129         * modules/mbsspn-tests (Makefile.am): Likewise.
36130         * modules/mbsstr-tests (Makefile.am): Likewise.
36131         * modules/printf-posix-tests (Makefile.am): Likewise.
36132         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36133         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36134         * modules/tsearch-tests (Makefile.am): Likewise.
36135         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36136         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36137         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36138         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36139         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36140         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36141         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36142         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36143         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36144         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36145         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36146         * modules/xstrtol-tests (Makefile.am): Likewise.
36147         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36148         * modules/yesno-tests (Makefile.am): Likewise.
36149
36150 2007-10-03  Bruno Haible  <bruno@clisp.org>
36151
36152         * modules/trunc-tests: New file.
36153         * tests/test-trunc.c: New file.
36154
36155         * modules/trunc: New file.
36156         * lib/trunc.c: New file.
36157         * m4/trunc.m4: New file.
36158         * lib/math.in.h (trunc): New declaration.
36159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36160         HAVE_DECL_TRUNC.
36161         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36162         HAVE_DECL_TRUNC.
36163         * doc/functions/trunc.texi: Mention the 'trunc' module.
36164
36165 2007-10-03  Bruno Haible  <bruno@clisp.org>
36166
36167         * tests/test-fpending.c: New file, mostly copied
36168         from coreutils/lib/t-fpending.c.
36169         * modules/fpending-tests: New file.
36170
36171 2007-10-03  Bruno Haible  <bruno@clisp.org>
36172
36173         Port the stdio extensions to QNX (untested).
36174         * lib/fseterr.c (fseterr): Add support for QNX.
36175         * lib/fbufmode.c (fbufmode): Likewise.
36176         * lib/freadable.c (freadable): Likewise.
36177         * lib/fwritable.c (fwritable): Likewise.
36178         * lib/freading.c (freading): Likewise.
36179         * lib/fwriting.c (fwriting): Likewise.
36180         * lib/freadahead.c (freadahed): Likewise.
36181         * lib/fpurge.c (fpurge): Likewise.
36182         * lib/fseeko.c (rpl_fseeko): Likewise.
36183
36184 2007-10-03  Bruno Haible  <bruno@clisp.org>
36185             Jim Meyering  <jim@meyering.net>
36186             Eric Blake  <ebb9@byu.net>
36187
36188         * doc/relocatable.texi: Use @command instead of @program.
36189
36190 2007-10-02  Jim Meyering  <jim@meyering.net>
36191
36192         Perform one more "_.h" -> ".in.h" substitution.
36193         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36194         instead of unistd_.h here, too.
36195
36196 2007-10-01  Bruno Haible  <bruno@clisp.org>
36197
36198         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36199         Needed for the alloca-opt module.
36200
36201 2007-09-30  Bruno Haible  <bruno@clisp.org>
36202
36203         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36204         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36205         alloca_.h.
36206         * lib/argz.in.h: Renamed from lib/argz_.h.
36207         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36208         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36209         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36210         byteswap_.h.
36211         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36212         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36213         dirent_.h.
36214         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36215         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36216         fcntl_.h.
36217         * lib/float.in.h: Renamed from lib/float_.h.
36218         * modules/float (Files, Makefile.am): Use float.in.h instead of
36219         float_.h.
36220         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36221         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36222         fnmatch_.h.
36223         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36224         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36225         getopt_.h.
36226         * lib/glob.in.h: Renamed from lib/glob_.h.
36227         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36228         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36229         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36230         iconv_.h.
36231         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36232         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36233         inttypes_.h.
36234         * lib/locale.in.h: Renamed from lib/locale_.h.
36235         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36236         locale_.h.
36237         * lib/math.in.h: Renamed from lib/math_.h.
36238         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36239         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36240         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36241         of netinet_in_.h. Add dependency.
36242         * lib/poll.in.h: Renamed from lib/poll_.h.
36243         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36244         * lib/search.in.h: Renamed from lib/search_.h.
36245         * modules/search (Files, Makefile.am): Use search.in.h instead of
36246         search_.h.
36247         * lib/signal.in.h: Renamed from lib/signal_.h.
36248         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36249         _signal.h.
36250         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36251         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36252         stdbool_.h.
36253         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36254         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36255         stdint_.h.
36256         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36257         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36258         stdio_.h.
36259         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36260         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36261         stdlib_.h.
36262         * lib/string.in.h: Renamed from lib/string_.h.
36263         * modules/string (Files, Makefile.am): Use string.in.h instead of
36264         string_.h.
36265         * doc/gnulib-tool.texi (Initial import): Update.
36266         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36267         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36268         of sys_select_.h. Add dependency.
36269         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36270         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36271         of sys_socket_.h.
36272         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36273         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36274         sys_stat_.h.
36275         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36276         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36277         sys_time_.h.
36278         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36279         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36280         sysexits_.h.
36281         * lib/time.in.h: Renamed from lib/time_.h.
36282         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36283         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36284         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36285         unistd_.h.
36286         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36287         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36288         wchar_.h.
36289         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36290         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36291         wctype_.h.
36292         * build-aux/bootstrap (slurp): Update.
36293         * lib/.cppi-disable: Update.
36294
36295 2007-09-30  Bruno Haible  <bruno@clisp.org>
36296
36297         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36298         Needed on BeOS.
36299
36300 2007-09-30  Bruno Haible  <bruno@clisp.org>
36301
36302         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36303
36304 2007-09-29  Bruno Haible  <bruno@clisp.org>
36305
36306         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36307
36308 2007-09-29  Bruno Haible  <bruno@clisp.org>
36309
36310         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36311         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36312         * build-aux/install-reloc: Compile also areadlink.c.
36313         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36314
36315 2007-09-29  Bruno Haible  <bruno@clisp.org>
36316
36317         * gnulib-tool (func_emit_initmacro_done): Indentation.
36318
36319 2007-09-29  Bruno Haible  <bruno@clisp.org>
36320
36321         * README: Add CVS checkout update instructions.
36322         Info from Bob Proulx <bob@proulx.com>.
36323
36324 2007-09-28  Eric Blake  <ebb9@byu.net>
36325
36326         Provide move-if-change.
36327         * build-aux/move-if-change: New file, based on best practice
36328         rather than any canonical upstream location.
36329
36330 2007-09-28  Jim Meyering  <jim@meyering.net>
36331
36332         Fix canonicalize loop-detection corner case.
36333         Do not attempt to stat the symlink values stored via seen_triple.
36334         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36335         on linux-2.6.18, (but not 2.6.22).
36336         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36337         triple_compare.  The former compares dev,ino,filename, while the latter
36338         would actually stat dirname(filename) when dev and ino were equal.
36339         * lib/hash-triple.c: Install <string.h>.
36340         (STREQ): Define.
36341         (triple_compare_ino_str): New function.
36342         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36343
36344 2007-09-28  Eric Blake  <ebb9@byu.net>
36345
36346         Enforce that AC_REPLACE_FUNCS files exist.
36347         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36348         override check for typos.
36349
36350         Fix test-closein on Solaris 10.
36351         * tests/test-closein.c (main): Don't assume stdin can be inherited
36352         closed on all systems.
36353         * tests/test-closein.sh: Likewise.
36354         Reported by Piotr Tarnowski.
36355
36356 2007-09-28  Jim Meyering  <jim@meyering.net>
36357
36358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36359
36360 2007-09-27  Jim Meyering  <jim@meyering.net>
36361
36362         canonicalize: Avoid a false-positive cycle failure.
36363         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36364         Sort.  Remove cycle-check.
36365         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36366         not cycle-check.h.
36367         (seen_triple): New function.
36368         (canonicalize_filename_mode): Use it instead of cycle-check.
36369         * tests/test-canonicalize.c: Add a test for this bug.
36370         * tests/test-canonicalize.sh: Set up and run the test.
36371
36372         New module, file-set, from coreutils.
36373         * modules/file-set: Define it.
36374         * lib/file-set.c, lib/file-set.h: Implement.
36375
36376         New module, hash-triple, from coreutils.
36377         * modules/hash-triple: Define it.
36378         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36379
36380 2007-09-25  Eric Blake  <ebb9@byu.net>
36381
36382         Fix strerror on Interix.
36383         * lib/string_.h (strerror): Declare replacement.
36384         * doc/functions/strerror.texi (strerror): Document the Interix
36385         shortcoming.
36386         * modules/string (Makefile.am): Support new hooks.
36387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36388         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36389         gl_FUNC_STRERROR_SEPARATE.
36390         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36391         * lib/strerror.c (rpl_strerror): Provide replacement.
36392         * modules/strerror (Depends-on): Add string.
36393         (configure.ac): Detect use of module.
36394         * tests/test-strerror.c: New file.
36395         * modules/strerror-tests: New test module.
36396         * modules/argp (Depends-on): Add strerror.
36397         * modules/error (Depends-on): Likewise.
36398         Reported by Martin Koeppe.
36399
36400 2007-09-24  Bruno Haible  <bruno@clisp.org>
36401
36402         * README: Update git instructions.
36403
36404 2007-09-24  Eric Blake  <ebb9@byu.net>
36405
36406         Revert fpending breakage from 2007-09-08.
36407         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
36408         __fpending.c.
36409
36410 2007-09-24  Jim Meyering  <jim@meyering.net>
36411
36412         filenamecat.c: Add a test.
36413         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
36414         showing how the function works when DIR is the empty string.
36415
36416 2007-09-21  Simon Josefsson  <simon@josefsson.org>
36417
36418         * tests/test-canonicalize.sh: Turn on executable bit.
36419
36420 2007-09-19  Eric Blake  <ebb9@byu.net>
36421
36422         * README: Update CVS instructions.
36423
36424 2007-09-18  Bruno Haible  <bruno@clisp.org>
36425
36426         * modules/areadlink: New file.
36427         * lib/areadlink.h (areadlink): New declaration.
36428         * lib/areadlink.c: New file, based on lib/xreadlink.c.
36429
36430 2007-09-17  Jim Meyering  <jim@meyering.net>
36431
36432         * lib/savewd.c (ESTALE) [!defined]: Define.
36433         Reported to be required on Interix by Martin Koeppe.
36434
36435 2007-09-17  Bruno Haible  <bruno@clisp.org>
36436
36437         * gnulib-tool (func_version): Use $version.
36438
36439 2007-09-16  Bruno Haible  <bruno@clisp.org>
36440
36441         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
36442         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
36443         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
36444         Reported by Greg Schafer <gschafer@zip.com.au>.
36445
36446 2007-09-15  Bruno Haible  <bruno@clisp.org>
36447
36448         * gnulib-tool (sed): Try a little harder to make bash understand the
36449         alias.
36450         Reported by Bruce Korb <bruce.korb@gmail.com>.
36451
36452 2007-09-13  Eric Blake  <ebb9@byu.net>
36453
36454         * ChangeLog: Remove conflict markers.
36455
36456 2007-09-13  Simon Josefsson  <simon@josefsson.org>
36457
36458         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
36459         Reported by Bruno Haible <bruno@clisp.org>.
36460
36461 2007-09-12  Bruno Haible  <bruno@clisp.org>
36462
36463         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
36464         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
36465         is not defined.
36466
36467 2007-09-12  Eric Blake  <ebb9@byu.net>
36468
36469         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
36470         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
36471         Autoconf definition.
36472         * modules/euidaccess (Depends-on): Add extensions, for
36473         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
36474         * modules/fnmatch (Depends-on): Likewise.
36475         * modules/getaddrinfo (Depends-on): Likewise.
36476         * modules/getdelim (Depends-on): Likewise.
36477         * modules/getline (Depends-on): Likewise.
36478         * modules/getsubopt (Depends-on): Likewise.
36479         * modules/gettext (Depends-on): Likewise.
36480         * modules/group-member (Depends-on): Likewise.
36481         * modules/mbchar (Depends-on): Likewise.
36482         * modules/memmem (Depends-on): Likewise.
36483         * modules/mempcpy (Depends-on): Likewise.
36484         * modules/memrchr (Depends-on): Likewise.
36485         * modules/pagealign_alloc (Depends-on): Likewise.
36486         * modules/readutmp (Depends-on): Likewise.
36487         * modules/stpcpy (Depends-on): Likewise.
36488         * modules/stpncpy (Depends-on): Likewise.
36489         * modules/strchrnul (Depends-on): Likewise.
36490         * modules/strndup (Depends-on): Likewise.
36491         * modules/strsep (Depends-on): Likewise.
36492         * modules/strverscmp (Depends-on): Likewise.
36493         * modules/vasprintf (Depends-on): Likewise.
36494         * modules/wcwidth (Depends-on): Likewise.
36495         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
36496         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
36497         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
36498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
36499         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36500         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36501         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
36502         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36503         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
36504         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36505         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36506         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
36507         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
36508         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
36509         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
36510         * m4/readutmp.m4 (gl_READUTMP): Likewise.
36511         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36512         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
36513         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36514         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
36515         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36516         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
36517         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36518         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
36519         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
36520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36521         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
36522         so that lock.m4 can be used in gettext without extensions module.
36523
36524 2007-09-11  Bruno Haible  <bruno@clisp.org>
36525
36526         * m4/isc-posix.m4: Remove file.
36527         Suggested by Eric Blake.
36528
36529 2007-09-11  Eric Blake  <ebb9@byu.net>
36530
36531         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
36532
36533 2007-09-10  Bruno Haible  <bruno@clisp.org>
36534
36535         * posix-modules: Fix typo in error message.
36536         Reported by Matt <mkraai@beckman.com>.
36537
36538 2007-09-09  Bruno Haible  <bruno@clisp.org>
36539
36540         * doc/functions/getdelim.texi: Update list of platforms lacking the
36541         function.
36542         * doc/functions/getline.texi: Likewise.
36543
36544 2007-09-09  Jim Meyering  <jim@meyering.net>
36545
36546         * lib/hash.c (hash_initialize): Detect calloc failure.
36547         Reported by Bruno Haible.
36548
36549 2007-09-09  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
36552         malloc or realloc fails.
36553
36554 2007-09-09  Bruno Haible  <bruno@clisp.org>
36555
36556         * modules/getcwd (Depends-on): Add malloc-posix.
36557         * modules/glob (Depends-on): Likewise.
36558         * modules/putenv (Depends-on): Likewise.
36559         * modules/strdup (Depends-on): Likewise.
36560         * modules/getdelim (Depends-on): Add realloc-posix.
36561         * modules/read-file (Depends-on): Likewise.
36562
36563 2007-09-09  Bruno Haible  <bruno@clisp.org>
36564
36565         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
36566         (gl_FUNC_MALLOC_POSIX): Require it.
36567         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
36568         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
36569         * modules/realloc (Files): Add m4/malloc.m4.
36570         * modules/calloc (Files): Likewise.
36571
36572 2007-09-09  Bruno Haible  <bruno@clisp.org>
36573
36574         * modules/malloc-posix: New file.
36575         * modules/malloc (Depends-on): Add malloc-posix.
36576         * lib/malloc.c: Include errno.h.
36577         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
36578         and a POSIX-compatible malloc into a single function. Set ENOMEM
36579         when returning NULL.
36580         * m4/malloc.m4: New file.
36581         * doc/functions/malloc.texi: Mention the malloc-posix module.
36582         * lib/stdlib_.h (malloc): New declaration.
36583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36584         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
36585         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
36586         and HAVE_MALLOC_POSIX.
36587
36588 2007-09-09  Bruno Haible  <bruno@clisp.org>
36589
36590         * modules/realloc-posix: New file.
36591         * modules/realloc (Depends-on): Add realloc-posix.
36592         * lib/realloc.c: Include errno.h.
36593         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
36594         and a POSIX-compatible realloc into a single function. Set ENOMEM
36595         when returning NULL.
36596         * m4/realloc.m4: New file.
36597         * doc/functions/realloc.texi: Mention the realloc-posix module.
36598         * lib/stdlib_.h (realloc): New declaration.
36599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36600         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
36601         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
36602         and HAVE_REALLOC_POSIX.
36603
36604 2007-09-09  Bruno Haible  <bruno@clisp.org>
36605
36606         * modules/calloc-posix: New file.
36607         * modules/calloc (Depends-on): Add calloc-posix.
36608         * lib/calloc.c: Include errno.h.
36609         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
36610         and a POSIX-compatible calloc into a single function. Set ENOMEM
36611         when returning NULL.
36612         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
36613         * doc/functions/calloc.texi: Mention the calloc-posix module.
36614         * lib/stdlib_.h (calloc): New declaration.
36615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
36616         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
36617         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
36618         and HAVE_CALLOC_POSIX.
36619
36620 2007-09-09  Bruno Haible  <bruno@clisp.org>
36621
36622         Allow for modules to show an arbitrary notice.
36623         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
36624         * gnulib-tool: New option --extract-notice.
36625         (func_usage): Document it.
36626         (sed_extract_prog): Update.
36627         (func_get_notice): New function.
36628         (func_modules_notice): New function.
36629         (func_import, func_create_testdir): Invoke it.
36630         Suggested by Jim Meyering.
36631
36632 2007-09-09  Bruno Haible  <bruno@clisp.org>
36633
36634         * gnulib-tool: New options --verbose, --quiet.
36635         (func_usage): Document them.
36636         (verbose): New variable.
36637         (func_execute_command): New function.
36638         (func_import): Don't show the module list and the file list if
36639         $verbose < 0.
36640         (func_create_testdir): Likewise. Use func_execute_command.
36641         (func_create_megatestdir): Use func_execute_command.
36642
36643 2007-09-08  Bruno Haible  <bruno@clisp.org>
36644
36645         * gnulib-tool (func_import): Prefer rsync over wget when available,
36646         for fetching the PO files.
36647
36648 2007-09-08  Bruno Haible  <bruno@clisp.org>
36649
36650         * posix-modules: New file. Portions copied from gnulib-tool.
36651         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
36652
36653 2007-09-08  Jim Meyering  <jim@meyering.net>
36654
36655         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
36656         * lib/fpending.h: Rename from __fpending.h.
36657         * lib/fpending.c: Rename from __fpending.c.
36658         Include "fpending.h", not "__fpending.h".
36659         * lib/__fpending.h, lib/__fpending.c: Remove files.
36660         * modules/fpending (Files): Reflect new file names.
36661         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
36662
36663 2007-09-08  Bruno Haible  <bruno@clisp.org>
36664
36665         * m4/inttypes-h.m4: Remove stub file.
36666
36667 2007-09-07  Simon Josefsson  <simon@josefsson.org>
36668
36669         * doc/headers/stdint.texi: Discuss #include_next issue.
36670
36671 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36672
36673         * build-aux/bootstrap: Remove obsolete comment about wget --help.
36674
36675 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36676
36677         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
36678         in variable name.
36679
36680 2007-09-03  Jim Meyering  <jim@meyering.net>
36681
36682         New module: git-version-gen.
36683         * modules/git-version-gen: New file.
36684
36685         Import changes from coreutils for bootstrap script.
36686
36687         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
36688
36689         bootstrap: uses rsync to download the .po files
36690         * build-aux/bootstrap (po_download_command_format): New global.
36691         (download_po_files): Use rsync.
36692         (update_po_files): Don't remove .po files after download,
36693         so future rsync runs can take advantage of the copies.
36694
36695         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
36696
36697         Solve the unnecessary-.po-file-regeneration problem once and for all.
36698         * build-aux/bootstrap (download_po_files): New function, renamed from
36699         get_translations.  Now, downloads, but doesn't update LINGUAS.
36700         (update_po_files): New function.
36701
36702         bootstrap: Ignore more.
36703         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
36704         uniwidth to e.g., lib/.gitignore.
36705         (slurp): Handle the sys_stat_.h -> sys mapping, too.
36706
36707         * build-aux/bootstrap: New setting: vc_ignore.
36708         (insert_sorted_if_absent): Create $file if absent.
36709         Adapt to new, possibly empty, list: $vc_ignore.
36710
36711         bootstrap: generate more ignorable names
36712         * build-aux/bootstrap (slurp): When generating ignorable names,
36713         also map .sin to .sed, .gperf to .c, and .y to .c.
36714
36715 2007-09-03  Jim Meyering  <jim@meyering.net>
36716
36717         * build-aux/git-version-gen: New file, from coreutils.  For details, see
36718         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
36719
36720 2007-09-02  Bruno Haible  <bruno@clisp.org>
36721
36722         Fix mis-recognition of 'mcs' on QNX 6.
36723         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
36724         output contains the string "Mono".
36725         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
36726         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
36727
36728 2007-09-01  Bruno Haible  <bruno@clisp.org>
36729
36730         Fix collision between uniwidth/* and linebreak modules.
36731         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
36732         u32_width): Remove declarations.
36733         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
36734         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
36735         streq3, streq2, streq1, streq0): Remove functions.
36736         (STREQ): Remove macro.
36737         (is_cjk_encoding): Remove function.
36738         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
36739         (uc_width, u8_width, u16_width, u32_width): Remove functions.
36740         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
36741         * NEWS: Document the change.
36742
36743 2007-09-01  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/streq.h: Add double-inclusion guard.
36746
36747 2007-09-01  Karl Berry  <karl@gnu.org>
36748
36749         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
36750
36751 2007-08-28  Jim Meyering  <jim@meyering.net>
36752
36753         Rename mreadlink_with_size to areadlink_with_size.
36754         * NEWS: Document the change.
36755         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
36756         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
36757         * lib/mreadlink.h: Rename this to...
36758         * lib/areadlink.h: ...this.
36759         * modules/mreadlink-with-size: Rename this to...
36760         * modules/areadlink-with-size: ...this.
36761         * lib/canonicalize.c: Reflect the renaming.
36762         * modules/canonicalize: Likewise.
36763
36764 2007-08-26  Bruno Haible  <bruno@clisp.org>
36765
36766         * gnulib-tool (func_import): When deciding which files to remove,
36767         consider also dangling symbolic links.
36768         Reported by Eric Blake.
36769
36770 2007-08-26  Bruno Haible  <bruno@clisp.org>
36771
36772         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
36773
36774 2007-08-23  Simon Josefsson  <simon@josefsson.org>
36775
36776         * lib/readline.c: Don't include getline.h, the prototype is now
36777         found in stdio.h.
36778
36779 2007-08-23  Jim Meyering  <jim@meyering.net>
36780
36781         Getdelim touchup.
36782         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
36783         around the funlockfile call, since funlockfile never sets errno.
36784         Don't set errno upon failed realloc.
36785
36786 2007-08-22  Eric Blake  <ebb9@byu.net>
36787
36788         Getline touchups.
36789         * lib/getdelim.c (getdelim): Revert regression that required *n to
36790         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
36791         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
36792         getdelim, rather than whether implementation is missing.
36793         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
36794         * lib/stdio_.h (getline): Also declare if replacement is
36795         required.
36796         * doc/functions/getdelim.texi: New file.
36797         * doc/functions/getline.texi: Likewise.
36798         * doc/gnulib.texi (Function Substitutes): Add new files.
36799         Reported by Bruno Haible.
36800
36801 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
36802
36803         * users.txt: Add Guile.
36804
36805 2007-08-22  Eric Blake  <ebb9@byu.net>
36806
36807         * tests/test-getdelim.c (main): Use remove, not unlink.
36808         * tests/test-getline.c (main): Likewise.
36809
36810         Move getline and getdelim into stdio.h, per POSIX 200x.
36811         * modules/getline (Files): Remove getline.h.
36812         (Depends-on): Add stdio.
36813         (configure.ac): Add module indicator.
36814         * modules/getdelim (Files): Remove getdelim.h.
36815         (Depends-on): Add stdio.
36816         (configure.ac): Add module indicator.
36817         * modules/stdio (Makefile.am): Work with new indicators.
36818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36819         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
36820         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36821         * lib/getdelim.h: Delete.
36822         * lib/getline.h: Delete.
36823         * lib/stdio_.h (getdelim, getline): Declare.
36824         * modules/getdelim-tests: New module.
36825         * modules/getline-tests: Likewise.
36826         * tests/test-getdelim.c: New file.
36827         * tests/test-getline.c: Likewise.
36828         * NEWS: Document the change.
36829         * lib/getline.c: Update choice of header.
36830         * lib/csharpcomp.c: Likewise.
36831         * lib/getpass.c: Likewise.
36832         * lib/javacomp.c: Likewise.
36833         * lib/javaversion.c: Likewise.
36834         * lib/yesno.c: Likewise.
36835         * lib/getdelim.c: Likewise.
36836         (getdelim): Set errno on failure, and avoid memory leak.
36837
36838 2007-08-19  Bruno Haible  <bruno@clisp.org>
36839
36840         * modules/closein (Depends-on): Add freadahead.
36841         * lib/closein.c: Include freadahead.h.
36842         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
36843         is zero.
36844
36845 2007-08-19  Bruno Haible  <bruno@clisp.org>
36846
36847         * modules/freadahead-tests: New file.
36848         * tests/test-freadahead.sh: New file.
36849         * tests/test-freadahead.c: New file.
36850
36851         * modules/freadahead: New file.
36852         * lib/freadahead.h: New file.
36853         * lib/freadahead.c: New file.
36854         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
36855         fbufmode, fpurge, freadable, fwritable.
36856
36857 2007-08-19  Eric Blake  <ebb9@byu.net>
36858
36859         Test yesno in combination with closein.
36860         * lib/yesno.c (yesno): Document use of stdin.
36861         * modules/yesno-tests (Files): New module.
36862         * tests/test-yesno.c (main): New file.
36863         * tests/test-yesno.sh: Likewise.
36864
36865 2007-08-19  Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
36868         * lib/fseeko.c (rpl_fseeko): Likewise.
36869         * lib/fseterr.c (fseterr): Likewise.
36870
36871 2007-08-19  Bruno Haible  <bruno@clisp.org>
36872
36873         * tests/test-lseek.c (main): Disable a test for BeOS.
36874         * doc/functions/lseek.texi: Document the BeOS bug.
36875
36876 2007-08-19  Bruno Haible  <bruno@clisp.org>
36877             Eric Blake  <ebb9@byu.net>
36878
36879         * lib/lseek.c: Include <sys/stat.h>.
36880         (rpl_lseek): Add workaround code also for Unix platforms.
36881         Needed for BeOS.
36882         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
36883         * doc/functions/lseek.texi: Document BeOS definiency.
36884
36885 2007-08-18  Bruno Haible  <bruno@clisp.org>
36886
36887         * modules/fstrcmp-tests: New file.
36888         * tests/test-fstrcmp.c: New file.
36889
36890 2007-08-18  Bruno Haible  <bruno@clisp.org>
36891
36892         * modules/fstrcmp: New file, from GNU gettext with modifications.
36893         * lib/fstrcmp.h: New file, from GNU gettext.
36894         * lib/fstrcmp.c: New file, from GNU gettext.
36895         * MODULES.html.sh (String handling): Add fstrcmp.
36896
36897 2007-08-18  Bruno Haible  <bruno@clisp.org>
36898
36899         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
36900         'bool'.
36901         (diag, compareseq): Remove const from the ctxt argument.
36902         (USE_HEURISTIC): Undefine at the end.
36903
36904 2007-08-18  Jim Meyering  <jim@meyering.net>
36905
36906         New file: lib/idcache.h
36907         * NEWS: Mention the addition.
36908         * modules/idcache (Files): Add lib/idcache.h
36909         * lib/idcache.c: Include "idcache.h".
36910         Don't include <sys/types.h>.
36911         Add a FIXME comment.
36912         Move file-scoped "static" declarations to the top.
36913         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
36914
36915 2007-08-17  Bruno Haible  <bruno@clisp.org>
36916         and Paul Eggert  <eggert@cs.ucla.edu>
36917
36918         * MODULES.html.sh: Add diffseq.
36919         * modules/diffseq: New file.
36920         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
36921         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
36922
36923 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36924
36925         Import changes from coreutils for bootstrap script.
36926
36927         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
36928
36929         * build-aux/bootstrap (slurp): Work even in environments where
36930         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
36931         current code does not slurp files whose names start with ".", and
36932         this looks like it might be a troublesome area.
36933
36934         2007-07-11  Jim Meyering  <jim@meyering.net>
36935
36936         If there's a GPL vN copyright comment, require that N == 3.
36937
36938         2007-07-08  Jim Meyering  <jim@meyering.net>
36939
36940         Run the coreutils-specific code only if tests/Makefile.am.in exists.
36941         * build-aux/bootstrap (mam_template): Move definition out of loop.
36942
36943         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
36944
36945         * build-aux/bootstrap (symlink_to_dir): Rename function from
36946         symlink_to_gnulib.  Add a directory parameter.  Update all
36947         callers.
36948         (cp_mark_as_generated): Also check for -- and link to -- files in
36949         gl/.
36950
36951         2007-07-08  Jim Meyering  <jim@meyering.net>
36952
36953         Adapt to deeper hierarchy in gnulib.
36954         * build-aux/bootstrap (symlink_to_dir): If the destination
36955         directory doesn't exist, create it. This is required at least for
36956         "lib/uniwidth/cjk.h".
36957
36958         2007-05-15  Jim Meyering  <jim@meyering.net>
36959
36960         * build-aux/bootstrap: Now that generated Makefile.am files
36961         are no longer under version control, they must be created at
36962         bootstrap time.
36963
36964 2007-08-14  Ben Pfaff  <blp@gnu.org>
36965
36966         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36967
36968 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36969
36970         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36971         given the changes below.
36972         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36973         even on hosts that have padding bits beyond the supported 64.
36974
36975 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36976
36977         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36978         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36979         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36980         depends on it.
36981         (xstrtol_error): Remove.
36982         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36983         but with a different signature.
36984         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36985         * lib/xstrtol-error.c: Include exitfail.h.
36986         (xstrtol_fatal): New function, with a different signature from the
36987         old xstrtol_error, so that the caller need not worry about passing
36988         in an exit status, or about storage management of the option argument.
36989         (xstrtol_error): Now a static function.  Redo signature to
36990         implement xstrtol_fatal.  Output the correct number of hyphens in
36991         front of the option so that the caller need not worry about
36992         storage management.
36993         (N_): New macro.
36994         (_): Remove; not used now.
36995         * modules/xstrtol: Depend on getopt.
36996         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36997         of old STRTOL_FATAL_ERROR macro.
36998         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36999         of test program.
37000         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37001         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37002
37003 2007-08-08  Eric Blake  <ebb9@byu.net>
37004
37005         * lib/xstrtol-error.c: Add missing include.
37006
37007         Move xstrtol messages into gnulib domain, when --pobase is used.
37008         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37009         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37010         * modules/xstrtol (Files): Distribute new file.
37011         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37012         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37013         * tests/test-xstrtol.c: ...into new file.
37014         * tests/test-xstrtoul.c: Also test xstrtoul.
37015         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37016         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37017         * tests/test-xstrtol.sh: Drive the tests.
37018         * tests/test-xstrtoimax.sh: Likewise.
37019         * tests/test-xstrtoumax.sh: Likewise.
37020         * modules/xstrtol-tests: New module.
37021         * modules/xstrtoimax-tests: Likewise.
37022         * modules/xstrtoumax-tests: Likewise.
37023
37024 2007-08-08  Jim Meyering  <jim@meyering.net>
37025
37026         New function: mfile_name_concat.
37027         * lib/filenamecat.c (mfile_name_concat): New function, just like
37028         file_name_concat, but return NULL upon failure rather than exiting
37029         with a diagnostic.
37030         * lib/filenamecat.h: Declare it.
37031
37032 2007-08-07  Bruno Haible  <bruno@clisp.org>
37033
37034         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37035         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37036         warning from gcc.
37037         Reported by Eric Blake.
37038
37039 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37040
37041         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37042         * modules/crypto/arcfour (License): Likewise.
37043         * modules/crypto/des-tests (License): Likewise.
37044         * modules/crypto/gc-arctwo-tests (License): Likewise.
37045         * modules/crypto/gc-des-tests (License): Likewise.
37046         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37047         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37048         * modules/crypto/gc-md2-tests (License): Likewise.
37049         * modules/crypto/gc-md4-tests (License): Likewise.
37050         * modules/crypto/gc-md5-tests (License): Likewise.
37051         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37052         * modules/crypto/gc-rijndael-tests (License): Likewise.
37053         * modules/crypto/gc-sha1-tests (License): Likewise.
37054         * modules/crypto/gc-tests (License): Likewise.
37055         * modules/crypto/hmac-md5 (License): Likewise.
37056         * modules/crypto/hmac-sha1 (License): Likewise.
37057         * modules/crypto/md2-tests (License): Likewise.
37058         * modules/crypto/md4-tests (License): Likewise.
37059         * modules/crypto/md5 (License): Likewise.
37060         * modules/crypto/rijndael (License): Likewise.
37061         * modules/crypto/sha1 (License): Likewise.
37062         * modules/memxor (License): Likewise.
37063
37064 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37065         and Bruno Haible  <bruno@clisp.org>
37066
37067         * NEWS: Describe interface changes to human, xstrtol.
37068         * lib/human.h: Include <xstrtol.h>.
37069         (human_options): Return enum strtol_error, not int.  Remove
37070         bool arg; take int * instead.
37071         * lib/human.c: Don't include "gettext.h".
37072         (_): Remove; no longer used.
37073         Don't include <xstrtol.h>, since human.h does it.
37074         (human_options): Adjust to abovementioned interface changes.
37075         Do not report error to stderr; that's now the caller's
37076         responsibility.
37077         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37078         interface change.
37079         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37080         Str, Argument_type_string.  All uses changed.  Put " argument"
37081         in diagnostics to make them clearer.  Change wording of suffix
37082         message for clarity.
37083         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37084         Argument_type_string.
37085         (STRTOL_FATAL_WARN): Remove; no longer used.
37086         * modules/human (Depends-on): Remove gettext-h.
37087
37088 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37089
37090         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37091
37092 2007-07-31  Bruno Haible  <bruno@clisp.org>
37093
37094         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37095         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37096         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37097
37098 2007-07-31  Bruno Haible  <bruno@clisp.org>
37099
37100         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37101         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37102
37103 2007-07-30  Bruno Haible  <bruno@clisp.org>
37104
37105         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37106         * modules/c-ctype (License): Likewise.
37107         * modules/c-strcase (License): Likewise.
37108         * modules/check-version (License): Likewise.
37109         * modules/iconv (License): Likewise.
37110         * modules/iconv_open (License): Likewise.
37111         * modules/read-file (License): Likewise.
37112         * modules/striconv (License): Likewise.
37113         * modules/strverscmp (License): Likewise.
37114         * modules/vasprintf (License): Likewise.
37115         * modules/crypto/des (License): Likewise.
37116         * modules/crypto/gc (License): Likewise.
37117         * modules/crypto/gc-arcfour (License): Likewise.
37118         * modules/crypto/gc-arctwo (License): Likewise.
37119         * modules/crypto/gc-des (License): Likewise.
37120         * modules/crypto/gc-hmac-md5 (License): Likewise.
37121         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37122         * modules/crypto/gc-md2 (License): Likewise.
37123         * modules/crypto/gc-md4 (License): Likewise.
37124         * modules/crypto/gc-md5 (License): Likewise.
37125         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37126         * modules/crypto/gc-random (License): Likewise.
37127         * modules/crypto/gc-rijndael (License): Likewise.
37128         * modules/crypto/gc-sha1 (License): Likewise.
37129         * modules/crypto/md2 (License): Likewise.
37130         * modules/crypto/md4 (License): Likewise.
37131
37132 2007-07-30  Jim Meyering  <jim@meyering.net>
37133
37134         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37135         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37136         it has valid stat data.  This bug would cause du not to count the
37137         sizes of inaccessible directories.
37138         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37139         in <http://bugzilla.redhat.com/250077>.
37140
37141 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37142             Bruno Haible  <bruno@clisp.org>
37143
37144         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37145         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37146         #include_next, gives a diagnostic about it, but reports no error in
37147         the exit code.
37148         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37149
37150 2007-07-24  Ben Pfaff  <blp@gnu.org>
37151
37152         Improve name: "count-one-bits" is better than "popcount".
37153         * MODULES.html.sh: Update name.
37154         * lib/popcount.h: Renamed lib/count-one-bits.h.
37155         (popcount): Renamed count_one_bits.
37156         (popcountl): Renamed count_one_bits_l.
37157         (popcountll): Renamed count_one_bits_ll.
37158         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37159         * modules/popcount: Renamed module/count-one-bits.
37160         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37161         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37162
37163 2007-07-23  Ben Pfaff  <blp@gnu.org>
37164
37165         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37166         better code generation, and add U to large constants to avoid
37167         warnings, in non-GCC case.
37168         Suggested by Bruno Haible.
37169
37170 2007-07-23  Ben Pfaff  <blp@gnu.org>
37171
37172         * lib/popcount.h: Use verify_true instead of if...abort.
37173         * modules/popcount: Depend on verify module.
37174         Suggested by Jim Meyering.
37175
37176 2007-07-23  Bruno Haible  <bruno@clisp.org>
37177
37178         * gnulib-tool (func_import): Create a .cvsignore file also when the
37179         directory is not yet in CVS but the toplevel directory is. When
37180         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37181         Reported by Karl Berry.
37182
37183 2007-07-22  Ben Pfaff  <blp@gnu.org>
37184
37185         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37186         case.
37187         Suggested by Eric Blake.
37188
37189 2007-07-22  Ben Pfaff  <blp@gnu.org>
37190
37191         New module: popcount.
37192         * MODULES.html.sh: Add popcount.
37193         * modules/popcount: New file.
37194         * modules/popcount-tests: New file.
37195         * tests/test-popcount.c: New file.
37196         * lib/popcount.h: New file.
37197         * m4/popcount.m4: New file.
37198
37199 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37200
37201         * build-aux/announce-gen: Update to GPLv3.
37202
37203         * build-aux/config.guess: Update from config.
37204
37205 2007-07-21  Bruno Haible  <bruno@clisp.org>
37206
37207         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37208         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37209
37210 2007-07-20  Jim Meyering  <jim@meyering.net>
37211
37212         * check-module: Diagnose a self-dependency.
37213
37214 2007-07-19  Bruno Haible  <bruno@clisp.org>
37215
37216         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37217         empty.
37218         Reported by Eric Blake.
37219
37220 2007-07-18  Bruno Haible  <bruno@clisp.org>
37221
37222         * gnulib-tool: New options --po-base, --po-domain.
37223         (func_usage): Document them.
37224         (pobase, po_domain): New variables.
37225         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37226         DEFAULT_TEXT_DOMAIN.
37227         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37228         (func_import): Consider pobase and po_domain. Create a po/ directory.
37229         (func_create_testdir): Set pobase and po_domain to empty.
37230         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37231         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37232
37233 2007-07-18  Bruno Haible  <bruno@clisp.org>
37234
37235         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37236         EXTRA_DIST augmentation for files in build-aux/.
37237
37238 2007-07-16  Bruno Haible  <bruno@clisp.org>
37239
37240         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37241         * modules/getdelim (License): Likewise.
37242
37243 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37244
37245         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37246         * modules/d-type (License): Likewise.
37247         * modules/extensions (License): Likewise.
37248         * modules/fnmatch (License): Likewise.
37249         * modules/fseeko (License): Likewise.
37250         * modules/getaddrinfo (License): Likewise.
37251         * modules/getline (License): Likewise.
37252         * modules/getlogin_r (License): Likewise.
37253         * modules/getpass (License): Likewise.
37254         * modules/gettimeofday (License): Likewise.
37255         * modules/glob (License): Likewise.
37256         * modules/inet_ntop (License): Likewise.
37257         * modules/malloc (License): Likewise.
37258         * modules/malloca (License): Likewise.
37259         * modules/memmem (License): Likewise.
37260         * modules/mempcpy (License): Likewise.
37261         * modules/memset (License): Likewise.
37262         * modules/minmax (License): Likewise.
37263         * modules/mktime (License): Likewise.
37264         * modules/netinet_in (License): Likewise.
37265         * modules/pathmax (License): Likewise.
37266         * modules/poll (License): Likewise.
37267         * modules/regex (License): Likewise.
37268         * modules/snprintf (License): Likewise.
37269         * modules/stdbool (License): Likewise.
37270         * modules/stdint (License): Likewise.
37271         * modules/stdio (License): Likewise.
37272         * modules/strcase (License): Likewise.
37273         * modules/strcasestr (License): Likewise.
37274         * modules/strdup (License): Likewise.
37275         * modules/string (License): Likewise.
37276         * modules/strndup (License): Likewise.
37277         * modules/strnlen (License): Likewise.
37278         * modules/strpbrk (License): Likewise.
37279         * modules/strptime (License): Likewise.
37280         * modules/strsep (License): Likewise.
37281         * modules/sys_select (License): Likewise.
37282         * modules/sys_socket (License): Likewise.
37283         * modules/sys_stat (License): Likewise.
37284         * modules/sys_time (License): Likewise.
37285         * modules/time (License): Likewise.
37286         * modules/time_r (License): Likewise.
37287         * modules/timegm (License): Likewise.
37288         * modules/unistd (License): Likewise.
37289         * modules/vsnprintf (License): Likewise.
37290         * modules/wctype (License): Likewise.
37291
37292 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37293
37294         * modules/argz (License): LGPLv2+.
37295
37296 2007-07-15  Karl Berry  <karl@gnu.org>
37297
37298         * doc/gnulib.texi: revise node structure per new fdl.texi.
37299
37300 2007-07-14  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37303         the output file.
37304         * lib/uniname/uninames.h: Regenerated.
37305
37306 2007-07-14  Karl Berry  <karl@gnu.org>
37307
37308         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37309         omitting sectioning and index commands.
37310
37311 2007-07-13  Bruno Haible  <bruno@clisp.org>
37312
37313         New gnulib-tool option --more-symlinks.
37314         * gnulib-tool (func_usage): Document --more-symlinks.
37315         (do_copyrights): New variable.
37316         Recognize option --more-symlinks.
37317         (func_import): Don't add a copyright notice transform to
37318         sed_transform_lib_file if do_copyrights is empty.
37319
37320 2007-07-13  Bruno Haible  <bruno@clisp.org>
37321
37322         * lib/vasnprintf.c (decimal_point_char): Define also if
37323         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37324         && !NEED_PRINTF_DIRECTIVE_A.
37325         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37326         Gary V. Vaughan <gary@gnu.org>.
37327
37328 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37329
37330         * lib/inttypes_.h: Undo previous change, since it was fixed
37331         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37332
37333 2007-07-13  Bruno Haible  <bruno@clisp.org>
37334
37335         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37336         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37337
37338 2007-07-13  Jim Meyering  <jim@meyering.net>
37339
37340         df: Don't fail for Tru64's "file-on-file mount".
37341         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37342         so we fall through and use statfs instead.  Details here:
37343         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37344         Reported by Albert Chin.
37345
37346 2007-07-13  Bruno Haible  <bruno@clisp.org>
37347
37348         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37349         * modules/configmake (License): Likewise.
37350         * modules/gettext (License): Likewise.
37351         * modules/gettext-h (License): Likewise.
37352         * modules/include_next (License): Likewise.
37353         * modules/link-warning (License): Likewise.
37354         * modules/localcharset (License): Likewise.
37355         * modules/localename (License): Likewise.
37356         * modules/lock (License): Likewise.
37357         * modules/relocatable-lib-lgpl (License): Likewise.
37358         * modules/size_max (License): Likewise.
37359         * modules/vasnprintf (License): Likewise.
37360         * modules/wchar (License): Likewise.
37361         * modules/xsize (License): Likewise.
37362
37363 2007-07-13  Bruno Haible  <bruno@clisp.org>
37364
37365         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37366         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37367
37368 2007-07-12  Bruno Haible  <bruno@clisp.org>
37369
37370         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37371         in the modules files.
37372
37373 2007-07-11  Karl Berry  <karl@gnu.org>
37374
37375         * MODULES.html.sh (func_module): use
37376          sed -e '\|^'"${includefile}"'$|d'
37377          instead of /.../d, to avoid errors on $includefile's containing /.
37378
37379 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37380
37381         * gnulib-tool (func_import): Avoid duplication of --avoid
37382         statements
37383         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37384         names to `_' in variable names.
37385
37386 2007-07-10  Eric Blake  <ebb9@byu.net>
37387
37388         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37389         * NEWS: Document this change.
37390
37391 2007-07-08  Bruno Haible  <bruno@clisp.org>
37392
37393         Update to Unicode 5.0.
37394         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37395         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37396         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37397         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37398         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37399         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37400         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37401         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37402         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
37403         U+10A3F, U+1D242..U+1D244.
37404         (nonspacing_table_ind): Update.
37405         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
37406         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
37407
37408 2007-07-08  Bruno Haible  <bruno@clisp.org>
37409
37410         Update to Unicode 5.0.
37411         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
37412         code transform. Extend the name index field of unicode_name_to_code and
37413         unicode_code_to_name from 16 to 24 bits.
37414         * lib/uniname/uniname.c (unicode_character_name,
37415         unicode_name_character): Add the range 0x12xxx to the code transform.
37416         * lib/uniname/uninames.h: Regenerated.
37417         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
37418
37419 2007-07-07  Bruno Haible  <bruno@clisp.org>
37420
37421         * modules/wcwidth-tests: New file.
37422         * tests/test-wcwidth.c: New file.
37423
37424         Work around MacOS X wcwidth() bug.
37425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
37426         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
37427         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
37428         original wcwidth in non-UTF-8 locales.
37429         * modules/wcwidth (Depends-on): Add localcharset, streq,
37430         uniwidth/width.
37431         * doc/functions/wcwidth.texi: Update.
37432
37433 2007-07-07  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
37436         (wcwidth): New declaration.
37437         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
37438         macros.
37439         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
37440         here. Prepare for creating <wchar.h> unconditionally.
37441         * modules/wchar (Depends-on): Add link-warning.
37442         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
37443         REPLACE_WCWIDTH, and GL_LINK_WARNING.
37444         * lib/wcwidth.h: Remove file.
37445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
37446         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
37447         * modules/wcwidth (Files): Remove lib/wcwidth.h.
37448         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
37449         (Include): Replace wcwidth.h with <wchar.h>.
37450         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
37451         * lib/mbchar.h: Don't include wcwidth.h.
37452         * lib/mbswidth.c: Likewise.
37453         * NEWS: Mention the change.
37454
37455 2007-07-07  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
37458         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
37459         definition with an external declaration.
37460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
37461         defined as a function. Remove AC_C_INLINE requirement.
37462         * modules/wcwidth (Files): Add lib/wcwidth.c.
37463         (Makefile.am): Remove redundant statement.
37464
37465 2007-07-07  Bruno Haible  <bruno@clisp.org>
37466
37467         * MODULES.html.sh (Unicode string functions): Add the new modules.
37468
37469         * tests/uniwidth/test-u32-strwidth.c: New file.
37470         * modules/uniwidth/u32-strwidth-tests: New file.
37471
37472         * lib/uniwidth/u32-strwidth.c: New file.
37473         * modules/uniwidth/u32-strwidth: New file.
37474
37475         * tests/uniwidth/test-u16-strwidth.c: New file.
37476         * modules/uniwidth/u16-strwidth-tests: New file.
37477
37478         * lib/uniwidth/u16-strwidth.c: New file.
37479         * modules/uniwidth/u16-strwidth: New file.
37480
37481         * tests/uniwidth/test-u8-strwidth.c: New file.
37482         * modules/uniwidth/u8-strwidth-tests: New file.
37483
37484         * lib/uniwidth/u8-strwidth.c: New file.
37485         * modules/uniwidth/u8-strwidth: New file.
37486
37487         * tests/uniwidth/test-u32-width.c: New file.
37488         * modules/uniwidth/u32-width-tests: New file.
37489
37490         * lib/uniwidth/u32-width.c: New file.
37491         * modules/uniwidth/u32-width: New file.
37492
37493         * tests/uniwidth/test-u16-width.c: New file.
37494         * modules/uniwidth/u16-width-tests: New file.
37495
37496         * lib/uniwidth/u16-width.c: New file.
37497         * modules/uniwidth/u16-width: New file.
37498
37499         * tests/uniwidth/test-u8-width.c: New file.
37500         * modules/uniwidth/u8-width-tests: New file.
37501
37502         * lib/uniwidth/u8-width.c: New file.
37503         * modules/uniwidth/u8-width: New file.
37504
37505         * tests/uniwidth/test-uc_width.c: New file.
37506         * modules/uniwidth/width-tests: New file.
37507
37508         * lib/uniwidth/width.c: New file, from GNU libiconv.
37509         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
37510         * modules/uniwidth/width: New file.
37511
37512         * lib/uniwidth.h: New file, from GNU libiconv.
37513         * modules/uniwidth/base: New file.
37514
37515 2007-07-07  Bruno Haible  <bruno@clisp.org>
37516
37517         * lib/uniname.h: New file, from GNU gettext.
37518         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
37519         * lib/uniname/uninames.h: New file, from GNU gettext.
37520         * lib/uniname/uniname.c: New file, from GNU gettext.
37521         * tests/uniname/test-uninames.sh: New file.
37522         * tests/uniname/test-uninames.c: New file, from GNU gettext.
37523         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
37524         * modules/uniname/base: New file.
37525         * modules/uniname/uniname: New file.
37526         * modules/uniname/uniname-tests: New file.
37527         * MODULES.html.sh (Unicode string functions): Add the new modules.
37528
37529 2007-07-06  Bruno Haible  <bruno@clisp.org>
37530
37531         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
37532
37533 2007-07-06  Bruno Haible  <bruno@clisp.org>
37534
37535         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
37536         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
37537         includes <cygwin/sys_time.h> which includes <sys/select.h> which
37538         include <sys/time.h>.
37539         Reported by Eric Blake.
37540
37541 2007-07-06  Eric Blake  <ebb9@byu.net>
37542
37543         Fix testing canonicalize on cygwin.
37544         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37545         Revert patch from 2007-06-19.
37546         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
37547         canonicalize module is also in use.
37548         * tests/test-canonicalize.c: New file.
37549         * tests/test-canonicalize.sh: Likewise.
37550         * modules/canonicalize-tests: Likewise.
37551
37552 2007-07-06  Jim Meyering  <jim@meyering.net>
37553
37554         * lib/getugroups.c (getugroups): Detect getgrent failure.
37555         Adjust comment to reflect reality: this function may return -1.
37556
37557 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37558
37559         * build-aux/bootstrap (TP_URL,get_translations): Update to use
37560         the new TP address.
37561         (usage): Fix typo
37562         (gnulib_mk): New variable.
37563
37564 2007-07-05  Jim Meyering  <jim@meyering.net>
37565
37566         Don't let endgrent clobber errno, no matter how improbable.
37567         * lib/getugroups.c (getugroups): Save and restore errno around
37568         endgrent call.
37569
37570         Close the group DB even when failing with 2^31 or more members.
37571         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
37572
37573 2007-07-04  Jim Meyering  <jim@meyering.net>
37574
37575         * lib/getugroups.h: New file.
37576         * lib/getugroups.c: Include "getugroups.h".
37577         Remove uses of "register" keyword.
37578         Move local variable, "cp", down into scope where used.
37579         Give "username" parameter the "const" attribute.
37580         * modules/getugroups (Files): Add lib/getugroups.h
37581
37582 2007-07-04  Karl Berry  <karl@gnu.org>
37583
37584         * MODULES.html.sh (func_all_modules): Complete rename of
37585         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
37586
37587 2007-07-02  Bruno Haible  <bruno@clisp.org>
37588
37589         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
37590         mode, when inttypes.h comes from gnulib.
37591         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37592
37593 2007-07-02  Simon Josefsson  <simon@josefsson.org>
37594
37595         * NEWS: Mention lgpl module name change.
37596
37597         * modules/lgpl-2.1: Renamed from lgpl.
37598
37599         * NEWS: Mention gpl module name change.
37600
37601         * modules/gpl-3.0: New file, based on gpl-2.0.
37602
37603         * modules/gpl-2.0: Renamed from gpl.
37604
37605         * modules/gpl: Fix filename, doc/gpl.texi is now found at
37606         doc/gpl-2.0.texi.
37607
37608 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37609
37610         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
37611         #define __STDC_LIMIT_MACROS temporarily while including
37612         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
37613         Problem reported by Joel E. Denny in
37614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
37615
37616 2007-07-01  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/unistdio.h: New file.
37619         * lib/unistdio/u-asnprintf.h: New file.
37620         * lib/unistdio/u-asprintf.h: New file.
37621         * lib/unistdio/u-printf-args.c: New file.
37622         * lib/unistdio/u-printf-args.h: New file.
37623         * lib/unistdio/u-printf-parse.h: New file.
37624         * lib/unistdio/u-snprintf.h: New file.
37625         * lib/unistdio/u-sprintf.h: New file.
37626         * lib/unistdio/u-vasprintf.h: New file.
37627         * lib/unistdio/u-vsnprintf.h: New file.
37628         * lib/unistdio/u-vsprintf.h: New file.
37629         * lib/unistdio/ulc-asnprintf.c: New file.
37630         * lib/unistdio/ulc-asprintf.c: New file.
37631         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
37632         * lib/unistdio/ulc-printf-parse.c: New file.
37633         * lib/unistdio/ulc-snprintf.c: New file.
37634         * lib/unistdio/ulc-sprintf.c: New file.
37635         * lib/unistdio/ulc-vasnprintf.c: New file.
37636         * lib/unistdio/ulc-vasprintf.c: New file.
37637         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
37638         * lib/unistdio/ulc-vsnprintf.c: New file.
37639         * lib/unistdio/ulc-vsprintf.c: New file.
37640         * lib/unistdio/u8-asnprintf.c: New file.
37641         * lib/unistdio/u8-asprintf.c: New file.
37642         * lib/unistdio/u8-printf-parse.c: New file.
37643         * lib/unistdio/u8-snprintf.c: New file.
37644         * lib/unistdio/u8-sprintf.c: New file.
37645         * lib/unistdio/u8-vasnprintf.c: New file.
37646         * lib/unistdio/u8-vasprintf.c: New file.
37647         * lib/unistdio/u8-vsnprintf.c: New file.
37648         * lib/unistdio/u8-vsprintf.c: New file.
37649         * lib/unistdio/u8-u8-asnprintf.c: New file.
37650         * lib/unistdio/u8-u8-asprintf.c: New file.
37651         * lib/unistdio/u8-u8-snprintf.c: New file.
37652         * lib/unistdio/u8-u8-sprintf.c: New file.
37653         * lib/unistdio/u8-u8-vasnprintf.c: New file.
37654         * lib/unistdio/u8-u8-vasprintf.c: New file.
37655         * lib/unistdio/u8-u8-vsnprintf.c: New file.
37656         * lib/unistdio/u8-u8-vsprintf.c: New file.
37657         * lib/unistdio/u16-asnprintf.c: New file.
37658         * lib/unistdio/u16-asprintf.c: New file.
37659         * lib/unistdio/u16-printf-parse.c: New file.
37660         * lib/unistdio/u16-snprintf.c: New file.
37661         * lib/unistdio/u16-sprintf.c: New file.
37662         * lib/unistdio/u16-vasnprintf.c: New file.
37663         * lib/unistdio/u16-vasprintf.c: New file.
37664         * lib/unistdio/u16-vsnprintf.c: New file.
37665         * lib/unistdio/u16-vsprintf.c: New file.
37666         * lib/unistdio/u16-u16-asnprintf.c: New file.
37667         * lib/unistdio/u16-u16-asprintf.c: New file.
37668         * lib/unistdio/u16-u16-snprintf.c: New file.
37669         * lib/unistdio/u16-u16-sprintf.c: New file.
37670         * lib/unistdio/u16-u16-vasnprintf.c: New file.
37671         * lib/unistdio/u16-u16-vasprintf.c: New file.
37672         * lib/unistdio/u16-u16-vsnprintf.c: New file.
37673         * lib/unistdio/u16-u16-vsprintf.c: New file.
37674         * lib/unistdio/u32-asnprintf.c: New file.
37675         * lib/unistdio/u32-asprintf.c: New file.
37676         * lib/unistdio/u32-printf-parse.c: New file.
37677         * lib/unistdio/u32-snprintf.c: New file.
37678         * lib/unistdio/u32-sprintf.c: New file.
37679         * lib/unistdio/u32-vasnprintf.c: New file.
37680         * lib/unistdio/u32-vasprintf.c: New file.
37681         * lib/unistdio/u32-vsnprintf.c: New file.
37682         * lib/unistdio/u32-vsprintf.c: New file.
37683         * lib/unistdio/u32-u32-asnprintf.c: New file.
37684         * lib/unistdio/u32-u32-asprintf.c: New file.
37685         * lib/unistdio/u32-u32-snprintf.c: New file.
37686         * lib/unistdio/u32-u32-sprintf.c: New file.
37687         * lib/unistdio/u32-u32-vasnprintf.c: New file.
37688         * lib/unistdio/u32-u32-vasprintf.c: New file.
37689         * lib/unistdio/u32-u32-vsnprintf.c: New file.
37690         * lib/unistdio/u32-u32-vsprintf.c: New file.
37691         * tests/unistdio/test-ulc-asnprintf1.c: New file.
37692         * tests/unistdio/test-ulc-asnprintf1.h: New file.
37693         * tests/unistdio/test-ulc-printf1.h: New file.
37694         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
37695         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
37696         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
37697         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
37698         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
37699         * tests/unistdio/test-ulc-vasprintf1.c: New file.
37700         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
37701         * tests/unistdio/test-ulc-vsprintf1.c: New file.
37702         * tests/unistdio/test-u8-asnprintf1.c: New file.
37703         * tests/unistdio/test-u8-asnprintf1.h: New file.
37704         * tests/unistdio/test-u8-printf1.h: New file.
37705         * tests/unistdio/test-u8-vasnprintf1.c: New file.
37706         * tests/unistdio/test-u8-vasnprintf2.c: New file.
37707         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
37708         * tests/unistdio/test-u8-vasnprintf3.c: New file.
37709         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
37710         * tests/unistdio/test-u8-vasprintf1.c: New file.
37711         * tests/unistdio/test-u8-vsnprintf1.c: New file.
37712         * tests/unistdio/test-u8-vsprintf1.c: New file.
37713         * tests/unistdio/test-u16-asnprintf1.c: New file.
37714         * tests/unistdio/test-u16-asnprintf1.h: New file.
37715         * tests/unistdio/test-u16-printf1.h: New file.
37716         * tests/unistdio/test-u16-vasnprintf1.c: New file.
37717         * tests/unistdio/test-u16-vasnprintf2.c: New file.
37718         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
37719         * tests/unistdio/test-u16-vasnprintf3.c: New file.
37720         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
37721         * tests/unistdio/test-u16-vasprintf1.c: New file.
37722         * tests/unistdio/test-u16-vsnprintf1.c: New file.
37723         * tests/unistdio/test-u16-vsprintf1.c: New file.
37724         * tests/unistdio/test-u32-asnprintf1.c: New file.
37725         * tests/unistdio/test-u32-asnprintf1.h: New file.
37726         * tests/unistdio/test-u32-printf1.h: New file.
37727         * tests/unistdio/test-u32-vasnprintf1.c: New file.
37728         * tests/unistdio/test-u32-vasnprintf2.c: New file.
37729         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
37730         * tests/unistdio/test-u32-vasnprintf3.c: New file.
37731         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
37732         * tests/unistdio/test-u32-vasprintf1.c: New file.
37733         * tests/unistdio/test-u32-vsnprintf1.c: New file.
37734         * tests/unistdio/test-u32-vsprintf1.c: New file.
37735         * modules/unistdio/base: New file.
37736         * modules/unistdio/u-printf-args: New file.
37737         * modules/unistdio/ulc-asnprintf: New file.
37738         * modules/unistdio/ulc-asprintf: New file.
37739         * modules/unistdio/ulc-fprintf: New file.
37740         * modules/unistdio/ulc-printf-parse: New file.
37741         * modules/unistdio/ulc-snprintf: New file.
37742         * modules/unistdio/ulc-sprintf: New file.
37743         * modules/unistdio/ulc-vasnprintf: New file.
37744         * modules/unistdio/ulc-vasprintf: New file.
37745         * modules/unistdio/ulc-vfprintf: New file.
37746         * modules/unistdio/ulc-vsnprintf: New file.
37747         * modules/unistdio/ulc-vsprintf: New file.
37748         * modules/unistdio/u8-asnprintf: New file.
37749         * modules/unistdio/u8-asprintf: New file.
37750         * modules/unistdio/u8-printf-parse: New file.
37751         * modules/unistdio/u8-snprintf: New file.
37752         * modules/unistdio/u8-sprintf: New file.
37753         * modules/unistdio/u8-vasnprintf: New file.
37754         * modules/unistdio/u8-vasprintf: New file.
37755         * modules/unistdio/u8-vsnprintf: New file.
37756         * modules/unistdio/u8-vsprintf: New file.
37757         * modules/unistdio/u8-u8-asnprintf: New file.
37758         * modules/unistdio/u8-u8-asprintf: New file.
37759         * modules/unistdio/u8-u8-snprintf: New file.
37760         * modules/unistdio/u8-u8-sprintf: New file.
37761         * modules/unistdio/u8-u8-vasnprintf: New file.
37762         * modules/unistdio/u8-u8-vasprintf: New file.
37763         * modules/unistdio/u8-u8-vsnprintf: New file.
37764         * modules/unistdio/u8-u8-vsprintf: New file.
37765         * modules/unistdio/u16-asnprintf: New file.
37766         * modules/unistdio/u16-asprintf: New file.
37767         * modules/unistdio/u16-printf-parse: New file.
37768         * modules/unistdio/u16-snprintf: New file.
37769         * modules/unistdio/u16-sprintf: New file.
37770         * modules/unistdio/u16-vasnprintf: New file.
37771         * modules/unistdio/u16-vasprintf: New file.
37772         * modules/unistdio/u16-vsnprintf: New file.
37773         * modules/unistdio/u16-vsprintf: New file.
37774         * modules/unistdio/u16-u16-asnprintf: New file.
37775         * modules/unistdio/u16-u16-asprintf: New file.
37776         * modules/unistdio/u16-u16-snprintf: New file.
37777         * modules/unistdio/u16-u16-sprintf: New file.
37778         * modules/unistdio/u16-u16-vasnprintf: New file.
37779         * modules/unistdio/u16-u16-vasprintf: New file.
37780         * modules/unistdio/u16-u16-vsnprintf: New file.
37781         * modules/unistdio/u16-u16-vsprintf: New file.
37782         * modules/unistdio/u32-asnprintf: New file.
37783         * modules/unistdio/u32-asprintf: New file.
37784         * modules/unistdio/u32-printf-parse: New file.
37785         * modules/unistdio/u32-snprintf: New file.
37786         * modules/unistdio/u32-sprintf: New file.
37787         * modules/unistdio/u32-vasnprintf: New file.
37788         * modules/unistdio/u32-vasprintf: New file.
37789         * modules/unistdio/u32-vsnprintf: New file.
37790         * modules/unistdio/u32-vsprintf: New file.
37791         * modules/unistdio/u32-u32-asnprintf: New file.
37792         * modules/unistdio/u32-u32-asprintf: New file.
37793         * modules/unistdio/u32-u32-snprintf: New file.
37794         * modules/unistdio/u32-u32-sprintf: New file.
37795         * modules/unistdio/u32-u32-vasnprintf: New file.
37796         * modules/unistdio/u32-u32-vasprintf: New file.
37797         * modules/unistdio/u32-u32-vsnprintf: New file.
37798         * modules/unistdio/u32-u32-vsprintf: New file.
37799         * modules/unistdio/ulc-asnprintf-tests: New file.
37800         * modules/unistdio/ulc-vasnprintf-tests: New file.
37801         * modules/unistdio/ulc-vasprintf-tests: New file.
37802         * modules/unistdio/ulc-vsnprintf-tests: New file.
37803         * modules/unistdio/ulc-vsprintf-tests: New file.
37804         * modules/unistdio/u8-asnprintf-tests: New file.
37805         * modules/unistdio/u8-vasnprintf-tests: New file.
37806         * modules/unistdio/u8-vasprintf-tests: New file.
37807         * modules/unistdio/u8-vsnprintf-tests: New file.
37808         * modules/unistdio/u8-vsprintf-tests: New file.
37809         * modules/unistdio/u16-asnprintf-tests: New file.
37810         * modules/unistdio/u16-vasnprintf-tests: New file.
37811         * modules/unistdio/u16-vasprintf-tests: New file.
37812         * modules/unistdio/u16-vsnprintf-tests: New file.
37813         * modules/unistdio/u16-vsprintf-tests: New file.
37814         * modules/unistdio/u32-asnprintf-tests: New file.
37815         * modules/unistdio/u32-vasnprintf-tests: New file.
37816         * modules/unistdio/u32-vasprintf-tests: New file.
37817         * modules/unistdio/u32-vsnprintf-tests: New file.
37818         * modules/unistdio/u32-vsprintf-tests: New file.
37819         * MODULES.html.sh (Unicode string functions): Add the new modules.
37820
37821 2007-07-01  Bruno Haible  <bruno@clisp.org>
37822
37823         * lib/sprintf.c (sprintf): Limit the available length estimation,
37824         to avoid address wraparound.
37825         * lib/vsprintf.c (vsprintf): Likewise.
37826         * modules/sprintf-posix (Dependencies): Add stdint.
37827         * modules/vsprintf-posix (Dependencies): Likewise.
37828
37829 2007-07-01  Bruno Haible  <bruno@clisp.org>
37830
37831         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
37832         Windows PATH as well. Conservative double-quoting. Comments.
37833
37834 2007-07-01  Bruno Haible  <bruno@clisp.org>
37835             Eric Blake  <ebb9@byu.net>
37836             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37837
37838         * gnulib-tool (self_abspathname): Fix algorithm to cope with
37839         empty components in $PATH, denoting '.'.
37840
37841 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37842
37843         * gnulib-tool: Fix indentation.
37844         (func_create_megatestdir): Likewise.
37845         Report by Bruno Haible.
37846
37847 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37848
37849         Sync from Automake.
37850         * build-aux/gnupload: Fix shell portability issues with for loops.
37851         Report by Karl Berry.
37852
37853 2007-06-29  Simon Josefsson  <simon@josefsson.org>
37854
37855         * build-aux/maint.mk (POURL): Use translationproject.org.
37856
37857 2007-06-27  Simon Josefsson  <simon@josefsson.org>
37858             Bruno Haible  <bruno@clisp.org>
37859
37860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
37861         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
37862         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
37863         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
37864         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
37865
37866 2007-06-27  Bruno Haible  <bruno@clisp.org>
37867
37868         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
37869         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
37870
37871 2007-06-26  Karl Berry  <karl@gnu.org>
37872
37873         * MODULES.html.sh: remove xreadlink-with-size.
37874
37875 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37876
37877         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
37878         method that I hope also handles the double-include problem noted
37879         by Bruno Haible in
37880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
37881
37882 2007-06-23  Bruno Haible  <bruno@clisp.org>
37883
37884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37885         Don't let the 'mostlyclean' target fail if the last subdirectory could
37886         not be removed.
37887         Reported by Karl Berry.
37888
37889 2007-06-23  Bruno Haible  <bruno@clisp.org>
37890
37891         * gnulib-tool (echo): Add a speedier workaround for ksh.
37892         * tests/test-echo.sh: Likewise.
37893
37894 2007-06-23  Bruno Haible  <bruno@clisp.org>
37895
37896         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
37897         * tests/test-echo.sh: Likewise.
37898
37899 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37900
37901         * gnulib-tool (IFS): Initialize early, so we don't set it to
37902         empty later.
37903         (self_abspathname): Rewrite algorithm to set it, reindent.
37904         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
37905         (func_create_megatestdir): Merge some sed scripts.
37906
37907 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37908
37909         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
37910         exposed by Sun Studio 11 cc on Solaris 8.
37911
37912 2007-06-22  Bruno Haible  <bruno@clisp.org>
37913
37914         * gnulib-tool (echo): Ensure the echo primitive does not interpret
37915         backslashes.
37916         * tests/test-echo.sh: New file.
37917
37918 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37919
37920         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
37921         simplify `sed_replace_build_aux' scripts, they are portable but
37922         echoing them with `echo' is not.
37923         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
37924
37925 2007-06-21  Karl Berry  <karl@gnu.org>
37926
37927         * config/srclist.txt: guess we can't handle the licenses via
37928         srclist at the moment.
37929
37930 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37931
37932         * MODULES.html.sh: Add include_next.
37933         * modules/include_next: New file.
37934
37935 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37936
37937         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
37938         INCLUDE_NEXT.
37939         (gl_CHECK_NEXT_HEADERS): New macro.
37940         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
37941         the obsolescent gl_ABSOLUTE_HEADER.
37942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
37943         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
37944         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37945         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37946         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37947         * m4/math_h.m4 (gl_MATH_H): Likewise.
37948         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37949         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37950         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37951         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37952         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37953         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37954         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37955         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37958         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37959         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37960         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
37961         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37962         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37963         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37964         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37965         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37966         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37967         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37968         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37969         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37970         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37971         * lib/float_.h: Likewise.
37972         * lib/inttypes_.h: Likewise.
37973         * lib/math_.h: Likewise.
37974         * lib/search_.h: Likewise.
37975         * lib/signal_.h: Likewise.
37976         * lib/stdint_.h: Likewise.
37977         * lib/stdio_.h: Likewise.
37978         * lib/stdlib_.h: Likewise.
37979         * lib/string_.h: Likewise.
37980         * lib/sys_stat_.h: Likewise.
37981         * lib/sys_time_.h: Likewise.
37982         * lib/time_.h: Likewise.
37983         * lib/unistd_.h: Likewise.
37984         * lib/wchar_.h: Likewise.
37985         * lib/wctype_.h: Likewise.
37986         * lib/dirent_.h: Likewise.
37987         * lib/iconv_.h: Likewise.
37988         * lib/locale_.h: Likewise.
37989         * lib/netinet_in_.h: Likewise.
37990         * lib/sys_select_.h: Likewise.
37991         * lib/sys_socket_.h: Likewise.
37992         * lib/sysexits_.h: Likewise.
37993         * modules/fcntl (Depends-on): Depend on include_next, not
37994         absolute_header.
37995         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37996         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37997         * modules/fchdir: Likewise.
37998         * modules/float: Likewise.
37999         * modules/iconv_open: Likewise.
38000         * modules/inttypes: Likewise.
38001         * modules/locale: Likewise.
38002         * modules/math: Likewise.
38003         * modules/netinet_in: Likewise.
38004         * modules/search: Likewise.
38005         * modules/signal: Likewise.
38006         * modules/stdint: Likewise.
38007         * modules/stdio: Likewise.
38008         * modules/stdlib: Likewise.
38009         * modules/string: Likewise.
38010         * modules/sys_select: Likewise.
38011         * modules/sys_socket: Likewise.
38012         * modules/sys_stat: Likewise.
38013         * modules/sys_time: Likewise.
38014         * modules/sysexits: Likewise.
38015         * modules/time: Likewise.
38016         * modules/unistd: Likewise.
38017         * modules/wchar: Likewise.
38018         * modules/wctype: Likewise.
38019         * modules/sys_stat: Change maintainer to "all".
38020         * modules/unistd: Likewise.
38021
38022 2007-06-20  Karl Berry  <karl@gnu.org>
38023
38024         * config/srclist.txt: track www changes in license files.
38025
38026 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38027
38028         * build-aux/bootstrap: Remove stray dot.
38029         Make sure build_aux settings are honored when linking
38030         gnulib_extra_files.
38031
38032 2007-06-19  Eric Blake  <ebb9@byu.net>
38033
38034         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38035         Allow compilation on cygwin.
38036
38037 2007-06-19  Jim Meyering  <jim@meyering.net>
38038
38039         xreadlink-with-size: Remove module.  No longer used.
38040         Ex-callers now use xreadlink or mreadlink-with-size.
38041         * modules/xreadlink-with-size: Remove module.
38042         * lib/xreadlink-with-size.c: Remove file.
38043         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38044         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38045         just before the function definition *is* accurate.
38046
38047         Eliminate one way canonicalize_filename_mode could exit.
38048         * lib/canonicalize.c (canonicalize_filename_mode):
38049         Use mreadlink_with_size, not xreadlink_with_size.
38050
38051 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38052
38053         Detect porting problems to FreeBSD/arm, which has time_t wider than
38054         long int.  Original problem reported for GNU diff by Xin Li in
38055         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38056         * modules/getdate (Depends-on): Add intprops, verify.
38057         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38058         is an integer type no wider than long int.
38059
38060 2007-06-18  Jim Meyering  <jim@meyering.net>
38061
38062         New module: mreadlink-with-size.
38063         * MODULES.html.sh: Add mreadlink-with-size.
38064         * modules/mreadlink-with-size: New module
38065         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38066         not xreadlink-with-size.
38067         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38068
38069 2007-06-16  Bruno Haible  <bruno@clisp.org>
38070
38071         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38072         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38073         Reported by Gary V. Vaughan <gary@gnu.org>.
38074
38075 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38076
38077         Revamp lchown so that it lives in unistd.h where it belongs.
38078         * lib/lchown.h: Remove.
38079         * lib/dirchownmod.c: Don't include lib/lchown.h.
38080         * lib/fchownat.c: Likewise.
38081         * lib/openat.c: Likewise.
38082         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38083         does not follow symlinks.
38084         (EOPNOTSUPP): Define if not defined.
38085         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38086         is defined to 0.
38087         (lchown): New decl.
38088         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38089         Do not check for lchown decl.
38090         Set REPLACE_LCHOWN.
38091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38092         REPLACE_LCHOWN.
38093         * modules/chown: Make it clear it follows symlinks.
38094         * modules/lchown: Make it clear it doesn't follow symlinks.
38095         (Files): Remove lib/lchown.h
38096         (Depends-on): Add unistd.
38097         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38098         (Include): Include <unistd.h>, not "lchown.h".
38099         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38100         REPLACE_LCHOWN.
38101
38102 2007-06-15  Jim Meyering  <jim@meyering.net>
38103
38104         Change license (GPL to LGPL) of fsusage and dependents.
38105         * modules/fsusage (License): Change to LGPL.
38106         * modules/full-read (License): Likewise.
38107         * modules/full-write (License): Likewise.
38108         * modules/safe-read (License): Likewise.
38109         * modules/safe-write (License): Likewise.
38110
38111 2007-06-14  Ben Pfaff  <blp@gnu.org>
38112
38113         Missing part of allocsa -> malloca transition.
38114         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38115         gl_MALLOCA.
38116
38117 2007-06-12  Bruno Haible  <bruno@clisp.org>
38118
38119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38120         to ia64, x86_64, i386.
38121         Reported by Eric Blake.
38122
38123 2007-06-12  Bruno Haible  <bruno@clisp.org>
38124
38125         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38126         cross-compiling to x86_64.
38127
38128 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38129
38130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38131         glitch reported by Ralf Wildenhues in
38132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38133
38134         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38135         Vin Shelton.
38136
38137 2007-06-11  Bruno Haible  <bruno@clisp.org>
38138
38139         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38140         replacement string.
38141         Reported by Eric Blake.
38142
38143 2007-06-10  Bruno Haible  <bruno@clisp.org>
38144
38145         Prepare vasnprintf code for use with Unicode strings.
38146         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38147         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38148         TYPE_U32_STRING.
38149         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38150         a_u32_string variants.
38151         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38152         * lib/printf-args.c: Don't include config.h and the specification
38153         header if PRINTF_FETCHARGS is already defined.
38154         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38155         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38156         TYPE_U16_STRING, TYPE_U32_STRING.
38157         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38158         u16_directive, u16_directives, u32_directive, u32_directives): New
38159         types.
38160         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38161         New declarations.
38162         * lib/printf-parse.c: Don't include config.h and the specification
38163         header if PRINTF_PARSE is already defined. Eliminate the set of
38164         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38165         them now. Include c-ctype.h.
38166         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38167         directive and CHAR_T_ONLY_ASCII.
38168         * lib/vasnprintf.c: Don't include config.h and the specification header
38169         if VASNPRINTF is already defined.
38170         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38171         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38172         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38173         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38174         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38175         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38176         code accordingly.
38177         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38178         pad_ourselves also in this case, with the 'c' and 's' directives, and
38179         with a different notion of "width".
38180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38181
38182 2007-06-10  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/unistr/u32-mbsnlen: New file.
38185         * lib/unistr/u32-mbsnlen.c: New file.
38186
38187         * modules/unistr/u16-mbsnlen: New file.
38188         * lib/unistr/u16-mbsnlen.c: New file.
38189
38190         * modules/unistr/u8-mbsnlen: New file.
38191         * lib/unistr/u8-mbsnlen.c: New file.
38192
38193         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38194         declarations.
38195
38196 2007-06-10  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/string_.h (mbsnlen): New declaration.
38199         * lib/mbsnlen.c: New file.
38200         * m4/mbsnlen.m4: New file.
38201         * modules/mbsnlen: New file.
38202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38203         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38204         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38205
38206 2007-06-10  Bruno Haible  <bruno@clisp.org>
38207
38208         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38209
38210 2007-06-10  Bruno Haible  <bruno@clisp.org>
38211
38212         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38213         * lib/mbuiter.h: Likewise.
38214
38215 2007-06-10  Bruno Haible  <bruno@clisp.org>
38216
38217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38218         declaration.
38219
38220 2007-06-10  Karl Berry  <karl@gnu.org>
38221
38222         * config/srclist.txt: remove gettext entries, Bruno prefers
38223         to update individually.
38224
38225 2007-06-10  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38228         'maxlen'. Ensure only length + width bytes are allocated, not
38229         length + 1 + width.
38230
38231 2007-06-09  Bruno Haible  <bruno@clisp.org>
38232
38233         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38234         (CHAR_T): Remove macro.
38235         (VASNPRINTF): Update.
38236
38237 2007-06-09  Bruno Haible  <bruno@clisp.org>
38238
38239         * MODULES.html.sh (Unicode string functions): Add the new modules.
38240
38241         * modules/uniconv/u32-conv-to-enc: New file.
38242         * lib/uniconv/u32-conv-to-enc.c: New file.
38243         * modules/uniconv/u32-conv-to-enc-tests: New file.
38244         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38245
38246         * modules/uniconv/u16-conv-to-enc: New file.
38247         * lib/uniconv/u16-conv-to-enc.c: New file.
38248         * lib/uniconv/u-conv-to-enc.h: New file.
38249         * modules/uniconv/u16-conv-to-enc-tests: New file.
38250         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38251
38252         * modules/uniconv/u8-conv-to-enc: New file.
38253         * lib/uniconv/u8-conv-to-enc.c: New file.
38254         * modules/uniconv/u8-conv-to-enc-tests: New file.
38255         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38256
38257         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38258         u32_conv_to_encoding): New declarations.
38259
38260 2007-06-09  Bruno Haible  <bruno@clisp.org>
38261
38262         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38263
38264 2007-06-09  Bruno Haible  <bruno@clisp.org>
38265
38266         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38267         * modules/malloca: Renamed from modules/allocsa, updated.
38268         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38269         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38270         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38271         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38272         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38273         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38274         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38275         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38276         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38277         * modules/c-strcasestr (Depends-on): Update.
38278         * lib/c-strcasestr.c: Update.
38279         * modules/c-strstr (Depends-on): Update.
38280         * lib/c-strstr.c: Update.
38281         * modules/canonicalize-lgpl (Depends-on): Update.
38282         * lib/canonicalize-lgpl.c: Update.
38283         * modules/clean-temp (Depends-on): Update.
38284         * lib/clean-temp.c: Update.
38285         * modules/csharpcomp (Depends-on): Update.
38286         * lib/csharpcomp.c: Update.
38287         * modules/csharpexec (Depends-on): Update.
38288         * lib/csharpexec.c: Update.
38289         * modules/javacomp (Depends-on): Update.
38290         * lib/javacomp.c: Update.
38291         * modules/javaexec (Depends-on): Update.
38292         * lib/javaexec.c: Update.
38293         * modules/mbscasestr (Depends-on): Update.
38294         * lib/mbscasestr.c: Update.
38295         * modules/mbsstr (Depends-on): Update.
38296         * lib/mbsstr.c: Update.
38297         * modules/setenv (Depends-on): Update.
38298         * lib/setenv.c: Update.
38299         * modules/strcasestr (Depends-on): Update.
38300         * lib/strcasestr.c: Update.
38301         * modules/striconveha (Depends-on): Update.
38302         * lib/striconveha.c: Update.
38303         * modules/relocatable-prog-wrapper (Files): Update.
38304         * lib/relocwrapper.c: Update.
38305         * build-aux/install-reloc: Update.
38306         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38307
38308 2007-06-08  Bruno Haible  <bruno@clisp.org>
38309
38310         Port to uClibc.
38311         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38312         * lib/fpurge.c (fpurge): Likewise.
38313         * lib/freading.c (freading): Likewise.
38314         * lib/fseeko.c (rpl_fseeko): Likewise.
38315         * lib/fseterr.c (fseterr): Likewise.
38316         * lib/fwriting.c (fwriting): Likewise.
38317         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38318
38319 2007-06-08  Bruno Haible  <bruno@clisp.org>
38320
38321         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38322         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38323         * modules/gettext (Files): Add m4/intlmacosx.m4.
38324
38325 2007-06-07  Bruno Haible  <bruno@clisp.org>
38326
38327         * modules/localename-tests: New file.
38328         * tests/test-localename.c: New file.
38329
38330         New module 'localename'.
38331         * lib/localename.h: New file.
38332         * lib/localename.c: New file, from GNU gettext.
38333         * m4/localename.m4: New file.
38334         * modules/localename: New file.
38335
38336 2007-06-07  Bruno Haible  <bruno@clisp.org>
38337
38338         Work around the lack of <wchar.h> on some builds of uClibc.
38339         * doc/headers/wchar.texi: Update.
38340         * lib/wchar_.h: Include <wchar.h> only if it exists.
38341         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38342         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38343         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38344         doesn't exist.
38345         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38346         * modules/mbfile (Depends-on): Add wchar.
38347         * modules/mbiter (Depends-on): Likewise.
38348         * modules/mbuiter (Depends-on): Likewise.
38349         Reported by Simon Josefsson.
38350
38351 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38352
38353         Work around problem reported by Steven M. Schweda in
38354         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38355         Tru64 5.1B with the Compaq compiler environment installed declares
38356         an 'isblank' function but does not define it in the C library.
38357         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38358         * lib/regex_internal.h (isblank): Likewise.
38359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38360         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38361
38362 2007-06-05  Bruno Haible  <bruno@clisp.org>
38363
38364         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38365         ia64.
38366         * modules/printf-safe: New file.
38367         * modules/fprintf-posix (Depends-on): Add printf-safe.
38368         * modules/printf-posix (Depends-on): Likewise.
38369         * modules/snprintf-posix (Depends-on): Likewise.
38370         * modules/sprintf-posix (Depends-on): Likewise.
38371         * modules/vasnprintf-posix (Depends-on): Likewise.
38372         * modules/vasprintf-posix (Depends-on): Likewise.
38373         * modules/vfprintf-posix (Depends-on): Likewise.
38374         * modules/vprintf-posix (Depends-on): Likewise.
38375         * modules/vsnprintf-posix (Depends-on): Likewise.
38376         * modules/vsprintf-posix (Depends-on): Likewise.
38377         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38378         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38379         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38380         "no" on i386, x86_64, ia64.
38381         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38382         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38383         on i386, x86_64, ia64.
38384         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38385         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38386         on i386, x86_64, ia64.
38387         * tests/test-vasnprintf-posix.c: Include float.h.
38388         (LDBL80_WORDS): New macro.
38389         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38390         on i386, x86_64, ia64.
38391         * tests/test-vasprintf-posix.c: Include float.h.
38392         (LDBL80_WORDS): New macro.
38393         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38394         on i386, x86_64, ia64.
38395         * tests/test-snprintf-posix.c: Include float.h.
38396         * tests/test-sprintf-posix.c: Likewise.
38397         * tests/test-vsnprintf-posix.c: Likewise.
38398         * tests/test-vsprintf-posix.c: Likewise.
38399
38400 2007-06-05  Bruno Haible  <bruno@clisp.org>
38401
38402         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
38403         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
38404         non-IEEE numbers on i386, x86_64, ia64.
38405         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
38406         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
38407         * tests/test-isnanl.h: Include float.h.
38408         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
38409
38410 2007-06-05  Bruno Haible  <bruno@clisp.org>
38411
38412         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
38413         also the %a / %A. Handle the %a / %A code before this extra handling.
38414
38415 2007-06-05  Bruno Haible  <bruno@clisp.org>
38416
38417         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
38418         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
38419
38420 2007-06-05  Bruno Haible  <bruno@clisp.org>
38421
38422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
38423         typo in variable name.
38424
38425 2007-06-05  Eric Blake  <ebb9@byu.net>
38426
38427         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
38428         Reported by Simon Josefsson.
38429
38430 2007-06-04  Bruno Haible  <bruno@clisp.org>
38431
38432         Avoid test failures on some PowerPC platforms.
38433         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
38434         Define differently for PowerPC.
38435         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
38436         Reported by Gary V. Vaughan <gary@gnu.org>.
38437
38438 2007-06-02  Bruno Haible  <bruno@clisp.org>
38439
38440         Fix test-stdint failure on FreeBSD/ia64.
38441         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
38442         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
38443         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
38444         * doc/headers/stdint.texi: Update.
38445
38446 2007-06-01  Bruno Haible  <bruno@clisp.org>
38447
38448         * tests/test-binary-io.c (main): Pass a third argument to open().
38449         Reported by Gary V. Vaughan <gary@gnu.org>.
38450
38451 2007-06-01  Bruno Haible  <bruno@clisp.org>
38452
38453         * doc/functions/frexpl.texi: Update for mingw.
38454
38455 2007-06-01  Bruno Haible  <bruno@clisp.org>
38456
38457         * tests/test-lseek.c (main): Disable test of errno for invalid third
38458         argument.
38459         * doc/functions/lseek.texi: Update.
38460         Reported by Gary V. Vaughan <gary@gnu.org>.
38461
38462 2007-05-28  Bruno Haible  <bruno@clisp.org>
38463
38464         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
38465
38466 2007-05-31  Eric Blake  <ebb9@byu.net>
38467
38468         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
38469         cross compiling.
38470
38471 2007-05-30  Eric Blake  <ebb9@byu.net>
38472         and Bruno Haible  <bruno@clisp.org>
38473
38474         Work around mingw test failures exposed by m4-1.4.9b.
38475         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
38476         * tests/test-unistd.c: Disable uid_t and git_t tests for the
38477         moment.
38478
38479 2007-05-30  Bruno Haible  <bruno@clisp.org>
38480
38481         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
38482         assuming that they are closed. Needed on HP-UX 11.
38483
38484 2007-05-29  Bruno Haible  <bruno@clisp.org>
38485
38486         Fix a problem with #include_next.
38487         * lib/dirent_.h: Split the double-inclusion guard.
38488         * lib/fcntl_.h: Likewise.
38489         * lib/float_.h: Likewise.
38490         * lib/iconv_.h: Likewise.
38491         * lib/inttypes_.h: Likewise.
38492         * lib/locale_.h: Likewise.
38493         * lib/math_.h: Likewise.
38494         * lib/netinet_in_.h: Likewise.
38495         * lib/search_.h: Likewise.
38496         * lib/signal_.h: Likewise.
38497         * lib/stdint_.h: Likewise.
38498         * lib/stdio_.h: Likewise.
38499         * lib/stdlib_.h: Likewise.
38500         * lib/string_.h: Likewise.
38501         * lib/sys_select_.h: Likewise.
38502         * lib/sys_socket_.h: Likewise.
38503         * lib/sys_stat_.h: Likewise.
38504         * lib/sys_time_.h: Likewise.
38505         * lib/sysexits_.h: Likewise.
38506         * lib/time_.h: Likewise.
38507         * lib/unistd_.h: Likewise.
38508         * lib/wchar_.h: Likewise.
38509         * lib/wctype_.h: Likewise.
38510
38511 2007-05-29  Bruno Haible  <bruno@clisp.org>
38512
38513         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
38514         for the moment.
38515
38516 2007-05-29  Bruno Haible  <bruno@clisp.org>
38517
38518         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
38519         invocation.
38520         Reported by Eric Blake.
38521
38522 2007-05-29  Bruno Haible  <bruno@clisp.org>
38523
38524         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
38525         compiling case.
38526
38527 2007-05-29  Eric Blake  <ebb9@byu.net>
38528             Bruno Haible  <bruno@clisp.org>
38529
38530         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
38531         cross compiles.
38532
38533 2007-05-28  Eric Blake  <ebb9@byu.net>
38534
38535         * modules/closein-tests (test_closein_LDADD): Support test on
38536         cygwin with libtool.
38537
38538 2007-05-28  Bruno Haible  <bruno@clisp.org>
38539
38540         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
38541         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38542         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38543         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38544         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38545         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38546         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38547         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38548         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38549
38550 2007-05-28  Eric Blake  <ebb9@byu.net>
38551
38552         Unconditionally include <config.h> in unit tests.
38553         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
38554         * tests/test-allocsa.c, tests/test-arcfour.c,
38555         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
38556         tests/test-array_list.c, tests/test-array_oset.c,
38557         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
38558         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
38559         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
38560         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
38561         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
38562         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
38563         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
38564         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
38565         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
38566         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
38567         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
38568         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
38569         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
38570         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
38571         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
38572         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
38573         test-md5.c, test-memmem.c, test-printf-posix.c,
38574         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
38575         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
38576         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
38577         test-strcasestr.c, test-striconv.c, test-striconveh.c,
38578         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
38579         test-vasnprintf-posix2.c, test-vasnprintf.c,
38580         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
38581         test-vfprintf-posix.c, test-vprintf-posix.c,
38582         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
38583         test-xvasprintf.c: Likewise.
38584
38585 2007-05-28  Bruno Haible  <bruno@clisp.org>
38586
38587         * gnulib-tool (func_import): Remember the --with-tests command-line
38588         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
38589         Reported by Eric Blake.
38590
38591 2007-05-28  Bruno Haible  <bruno@clisp.org>
38592
38593         * modules/ftell-tests: New file.
38594         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
38595         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
38596
38597         * lib/ftell.c: New file.
38598         * modules/ftell: New file.
38599         * m4/ftell.m4: New file.
38600         * doc/functions/ftell.texi: Update.
38601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
38602         REPLACE_FTELL.
38603         * lib/stdio_.h (rpl_ftell): New declaration.
38604         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
38605         REPLACE_FTELL.
38606
38607 2007-05-28  Eric Blake  <ebb9@byu.net>
38608
38609         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
38610
38611 2007-05-28  Bruno Haible  <bruno@clisp.org>
38612
38613         * modules/fseek-tests: New file.
38614         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
38615         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
38616
38617         * lib/fseek.c: New file.
38618         * modules/fseek: New file.
38619         * m4/fseek.m4: New file.
38620         * doc/functions/fseek.texi: Update.
38621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
38622         REPLACE_FSEEK.
38623         * lib/stdio_.h (rpl_fseek): New declaration.
38624         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
38625         REPLACE_FSEEK.
38626
38627 2007-05-28  Bruno Haible  <bruno@clisp.org>
38628
38629         * lib/stdio_.h (fflush): More comments.
38630
38631 2007-05-28  Bruno Haible  <bruno@clisp.org>
38632
38633         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
38634         runtime test.
38635
38636 2007-05-28  Eric Blake  <ebb9@byu.net>
38637
38638         Improve lseek module.
38639         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
38640         * lib/unistd_.h (lseek): Scale back link warning message.
38641         * tests/test-lseek.c: Beef up test.
38642         * tests/test-lseek.sh: Exercise more facets of lseek.
38643         Reported by Bruno Haible.
38644
38645 2007-05-28  Bruno Haible  <bruno@clisp.org>
38646
38647         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
38648         to define.
38649
38650 2007-05-27  Bruno Haible  <bruno@clisp.org>
38651
38652         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
38653
38654 2007-05-27  Bruno Haible  <bruno@clisp.org>
38655
38656         * modules/openmp: New file.
38657         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
38658         Noah Misch.
38659
38660 2007-05-26  Bruno Haible  <bruno@clisp.org>
38661
38662         * modules/chdir-long (Depends-on): Add fchdir.
38663         * modules/chdir-safer (Depends-on): Likewise.
38664         * modules/fts (Depends-on): Likewise.
38665         * modules/fts-lgpl (Depends-on): Likewise.
38666         * modules/openat (Depends-on): Likewise.
38667         * modules/savewd (Depends-on): Likewise.
38668
38669 2007-05-24  Eric Blake  <ebb9@byu.net>
38670
38671         Fix lseek on mingw.
38672         * modules/lseek: New module.
38673         * m4/lseek.m4: New file.
38674         * lib/lseek.c: New file.
38675         * modules/lseek-tests: New file.
38676         * tests/test-lseek.c: New file.
38677         * tests/test-lseek.sh: New file.
38678         * MODULES.html.sh: Document lseek module.
38679         * modules/fflush (Depends-on): Add lseek, fseeko.
38680         * modules/fseeko (Depends-on): Likewise.
38681         * modules/ftello (Depends-on): Likewise.
38682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
38683         broken.
38684         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
38685         broken.
38686         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
38687         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
38688         * lib/ftello.c (rpl_ftello): Likewise.
38689         * tests/test-fseeko.c (main): Test this.
38690         * tests/test-fseeko.sh: Likewise.
38691         * tests/test-ftello.c (main): Likewise.
38692         * tests/test-ftello.sh: Likewise.
38693         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
38694         implies replacing fseek.
38695         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
38696         HAVE_FTELLO.
38697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
38698         * modules/unistd (Makefile.am): Likewise.
38699         * lib/unistd_.h (lseek): Declare a replacement.
38700         * doc/functions/lseek.texi (lseek): Document this fix.
38701         * doc/functions/fseek.texi (fseek): Likewise.
38702         * doc/functions/ftell.texi (ftell): Likewise.
38703
38704 2007-05-24  Bruno Haible  <bruno@clisp.org>
38705
38706         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
38707         in the printed representation of a NaN.
38708         * tests/test-vasprintf-posix.c (test_function): Likewise.
38709         * tests/test-snprintf-posix.h (test_function): Likewise.
38710         * tests/test-sprintf-posix.h (test_function): Likewise.
38711         Reported by Eric Blake.
38712
38713 2007-05-23  Eric Blake  <ebb9@byu.net>
38714
38715         Fix fseeko/ftello on cygwin 1.5.24.
38716         * doc/functions/fseeko.texi (fseeko): Document the fix.
38717         * doc/functions/ftello.texi (ftello): Document the fix.
38718         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
38719         * doc/functions/stdout.text (stdout): New file.
38720         * doc/functions/stderr.text (stderr): New file.
38721         * doc/gnulib.texi (Function Substitutes): Use new files.
38722         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
38723         prior to 1.7.0.
38724         * tests/test-ftello.c (main): Likewise for ftello.
38725         * tests/test-fseeko.sh: New file.
38726         * tests/test-ftello.sh: New file.
38727         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
38728         with seekable stdin.
38729         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
38730         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
38731         (gl_REPLACE_FSEEKO): New macro.
38732         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
38733         * modules/fseeko (Files): Distribute fseeko.c.
38734         * modules/ftello (Files): Distribute ftello.c.
38735         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
38736         mode.
38737         * lib/ftello.c (rpl_ftello): New file.
38738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
38739         fseeko, ftello.
38740         (gl_STDIN_LARGE_OFFSET): New macro.
38741         * modules/stdio (Makefile.am): Perform the replacement.
38742         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
38743
38744 2007-05-23  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
38747         GNULIB_POSIXCHECK is defined.
38748
38749 2007-05-21  Bruno Haible  <bruno@clisp.org>
38750
38751         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
38752         Check also the output for NaN arguments. When cross-compiling, guess
38753         no on IRIX.
38754         * lib/vasnprintf.c: Update comments.
38755         * tests/test-vasnprintf-posix.c (strisnan): New function.
38756         (test_function): Use it.
38757         * tests/test-vasprintf-posix.c (strisnan): New function.
38758         (test_function): Use it.
38759         * tests/test-snprintf-posix.h (strisnan): New function.
38760         (test_function): Use it.
38761         * tests/test-sprintf-posix.h (strisnan): New function.
38762         (test_function): Use it.
38763         Reported by Eric Blake.
38764
38765 2007-05-20  Bruno Haible  <bruno@clisp.org>
38766
38767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
38768         numbers that fails on BeOS.
38769         * doc/functions/frexpl.texi: Update.
38770
38771 2007-05-20  Jim Meyering  <jim@meyering.net>
38772
38773         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
38774         forced upon us by glibc-2.6.
38775
38776 2007-05-20  Bruno Haible  <bruno@clisp.org>
38777
38778         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
38779         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
38780         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
38781         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
38782         NEED_PRINTF_INFINITE.
38783         (is_infinitel): New function.
38784         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
38785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
38786         gl_PREREQ_VASNPRINTF_INFINITE.
38787         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
38788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38789         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
38790         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
38791         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
38792         gl_PREREQ_VASNPRINTF_INFINITE.
38793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38797         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38800         * doc/functions/fprintf.texi: Update.
38801         * doc/functions/printf.texi: Update.
38802         * doc/functions/snprintf.texi: Update.
38803         * doc/functions/sprintf.texi: Update.
38804         * doc/functions/vfprintf.texi: Update.
38805         * doc/functions/vprintf.texi: Update.
38806         * doc/functions/vsnprintf.texi: Update.
38807         * doc/functions/vsprintf.texi: Update.
38808
38809 2007-05-20  Bruno Haible  <bruno@clisp.org>
38810
38811         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
38812         was not found in libc.
38813         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38814
38815 2007-05-20  Bruno Haible  <bruno@clisp.org>
38816
38817         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38818         printed as "-nan" 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         Needed for HP-UX 11.
38823
38824 2007-05-20  Jim Meyering  <jim@meyering.net>
38825
38826         Fix buggy test for the fchownat-deref bug.
38827         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
38828         symlink required for the run-test.  Without it, this test would
38829         always declare that fchownat doesn't work, and client code would
38830         unnecessarily use the replacement function with fixed libc.
38831         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
38832         Reported by Greg Schafer.
38833
38834 2007-05-19  Bruno Haible  <bruno@clisp.org>
38835
38836         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
38837         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
38838         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
38839         Needed for IRIX 6.5 and Solaris 2.5.1.
38840
38841 2007-05-19  Bruno Haible  <bruno@clisp.org>
38842
38843         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
38844         (test_function): Skip tests involving -0.0 on platforms where
38845         -0.0 = 0.0.
38846         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
38847         (test_function): Skip tests involving -0.0 on platforms where
38848         -0.0 = 0.0.
38849         * tests/test-snprintf-posix.h (have_minus_zero): New function.
38850         (test_function): Skip tests involving -0.0 on platforms where
38851         -0.0 = 0.0.
38852         * tests/test-sprintf-posix.h (have_minus_zero): New function.
38853         (test_function): Skip tests involving -0.0 on platforms where
38854         -0.0 = 0.0.
38855         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
38856         tests.
38857         * tests/test-printf-posix.h (test_function): Likewise.
38858         * tests/test-printf-posix.output: Remove all -0.0 related results.
38859         Needed for IRIX 6.5.
38860
38861 2007-05-19  Bruno Haible  <bruno@clisp.org>
38862
38863         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38864         printed as "nan0x7fffffff" instead of "nan".
38865         * tests/test-vasprintf-posix.c (test_function): Likewise.
38866         * tests/test-snprintf-posix.h (test_function): Likewise.
38867         * tests/test-sprintf-posix.h (test_function): Likewise.
38868         * tests/test-fprintf-posix.h (NaN): Remove macro.
38869         (test_function): Remove all NaN related tests.
38870         * tests/test-printf-posix.h (NaN): Remove macro.
38871         (test_function): Remove all NaN related tests.
38872         * tests/test-printf-posix.output: Remove all NaN related results.
38873         Needed for IRIX 6.5.
38874
38875 2007-05-19  Bruno Haible  <bruno@clisp.org>
38876
38877         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
38878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38879
38880 2007-05-19  Bruno Haible  <bruno@clisp.org>
38881
38882         * lib/float_.h: New file.
38883         * m4/float_h.m4: New file.
38884         * modules/float: New file.
38885         * modules/isnanl (Dependencies): Add float.
38886         * modules/isnanl-nolibm (Dependencies): Likewise.
38887         * modules/mathl (Dependencies): Likewise.
38888         * modules/printf-frexpl (Dependencies): Likewise.
38889         * modules/signbit (Dependencies): Likewise.
38890         * modules/vasnprintf (Dependencies): Likewise.
38891         * doc/headers/float.texi: Update.
38892
38893 2007-05-19  Jim Meyering  <jim@meyering.net>
38894
38895         * lib/utimens.c (gl_futimens): Rename from futimens,
38896         now that glibc-2.6 declares futimens.
38897         * lib/utimens.h: Likewise.
38898
38899 2007-05-19  Bruno Haible  <bruno@clisp.org>
38900
38901         Avoid test failures on mingw.
38902         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
38903         * tests/test-printf-posix.sh: Likewise.
38904         * tests/test-vfprintf-posix.sh: Likewise.
38905         * tests/test-vprintf-posix.sh: Likewise.
38906
38907 2007-05-19  Bruno Haible  <bruno@clisp.org>
38908
38909         Fix *printf result for NaN, Inf, -0.0 on mingw.
38910         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
38911         * lib/vasnprintf.c: Include math.h and isnan.h.
38912         (is_infinite_or_zero): New function.
38913         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
38914         values in the %f, %F, %e, %E, %g, %G directives.
38915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
38916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38917         gl_PRINTF_INFINITE and test its result. Invoke
38918         gl_PREREQ_VASNPRINTF_INFINITE.
38919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38920         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38922         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38923         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38925         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38926         * doc/functions/fprintf.texi: Update.
38927         * doc/functions/printf.texi: Update.
38928         * doc/functions/snprintf.texi: Update.
38929         * doc/functions/sprintf.texi: Update.
38930         * doc/functions/vfprintf.texi: Update.
38931         * doc/functions/vprintf.texi: Update.
38932         * doc/functions/vsnprintf.texi: Update.
38933         * doc/functions/vsprintf.texi: Update.
38934
38935 2007-05-19  Bruno Haible  <bruno@clisp.org>
38936
38937         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
38938         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
38939         Instead of multiplying with 10^k, set extra_zeroes to k.
38940         (scale10_round_long_double): Remove function.
38941
38942 2007-05-18  Bruno Haible  <bruno@clisp.org>
38943
38944         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
38945         introduced on 2007-05-06.
38946
38947 2007-05-18  Bruno Haible  <bruno@clisp.org>
38948
38949         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
38950         %g directives.
38951         * tests/test-vasprintf-posix.c (test_function): Likewise.
38952         * tests/test-snprintf-posix.h (test_function): Likewise.
38953         * tests/test-sprintf-posix.h (test_function): Likewise.
38954
38955 2007-05-18  Bruno Haible  <bruno@clisp.org>
38956
38957         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
38958         (strmatch): New function.
38959         (test_function): Test the %f directive on numbers of various exponents.
38960         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
38961         (strmatch): New function.
38962         (test_function): Test the %f directive on numbers of various exponents.
38963         * tests/test-snprintf-posix.h (strmatch): New function.
38964         (test_function): Test the %f directive on numbers of various exponents.
38965         * tests/test-sprintf-posix.h (strmatch): New function.
38966         (test_function): Test the %f directive on numbers of various exponents.
38967         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38968         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38969         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38970         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38971
38972 2007-05-18  Bruno Haible  <bruno@clisp.org>
38973
38974         Add support for 'long double' number output.
38975         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38976         * lib/vasnprintf.c: Include math.h and float+.h.
38977         (mp_limb_t): New type.
38978         (GMP_LIMB_BITS): New macro.
38979         (mp_twolimb_t): New type.
38980         (GMP_TWOLIMB_BITS): New macro.
38981         (mpn_t): New type.
38982         (multiply, divide, convert_to_decimal, decode_long_double,
38983         scale10_round_long_double, scale10_round_decimal_long_double,
38984         floorlog10l): New functions.
38985         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38986         for the %f, %F, %e, %E, %g, %G directives.
38987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38988         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38989         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38990         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38995         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38996         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38997         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38998         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38999         * modules/snprintf-posix (Depends-on): Likewise.
39000         * modules/sprintf-posix (Depends-on): Likewise.
39001         * modules/vasnprintf-posix (Depends-on): Likewise.
39002         * modules/vasprintf-posix (Depends-on): Likewise.
39003         * modules/vfprintf-posix (Depends-on): Likewise.
39004         * modules/vsnprintf-posix (Depends-on): Likewise.
39005         * modules/vsprintf-posix (Depends-on): Likewise.
39006         * modules/vasnprintf (Files): Add lib/float+.h.
39007         * doc/functions/fprintf.texi: Update.
39008         * doc/functions/printf.texi: Update.
39009         * doc/functions/snprintf.texi: Update.
39010         * doc/functions/sprintf.texi: Update.
39011         * doc/functions/vfprintf.texi: Update.
39012         * doc/functions/vprintf.texi: Update.
39013         * doc/functions/vsnprintf.texi: Update.
39014         * doc/functions/vsprintf.texi: Update.
39015
39016 2007-05-18  Bruno Haible  <bruno@clisp.org>
39017
39018         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39019
39020 2007-05-18  Bruno Haible  <bruno@clisp.org>
39021
39022         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39023         for printing 64-bit integers. Needed for mingw.
39024
39025 2007-05-18  Bruno Haible  <bruno@clisp.org>
39026
39027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39028         gl_FUNC_FREXPL_WORKS.
39029         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39030
39031 2007-05-18  Bruno Haible  <bruno@clisp.org>
39032
39033         * modules/frexpl-nolibm-tests: New file.
39034
39035         * modules/frexpl-nolibm: New file.
39036         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39037
39038 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39039
39040         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39041         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39042         GCC 4.2, which otherwise issues a lot of warnings.
39043         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39044         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39045         Likewise.
39046         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39047         * modules/iconv_open (iconv.h): Likewise.
39048         * modules/locale (locale.h): Likewise.
39049         * modules/netinet_in (netinet/in.h): Likewise.
39050         * modules/sys_select (sys_select.h): Likewise.
39051         * modules/sys_socket (sys/socket.h): Likewise.
39052         * modules/sys_stat (sys/stat.h): Likewise.
39053         * modules/sysexits (sysexits.h): Likewise.
39054         * modules/unistd (unistd.h): Likewise.
39055
39056 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39057
39058         * modules/closein-tests (Makefile.am): Distribute
39059         `test-closein.sh'.
39060
39061 2007-05-17  Bruno Haible  <bruno@clisp.org>
39062
39063         * tests/test-printf-posix.output: Renamed from
39064         tests/test-fprintf-posix.out.
39065         * modules/fprintf-posix-tests: Update.
39066         * modules/printf-posix-tests: Update.
39067         * modules/vfprintf-posix-tests: Update.
39068         * modules/vprintf-posix-tests: Update.
39069         * tests/test-fprintf-posix.sh: Update.
39070         * tests/test-printf-posix.sh: Update.
39071         * tests/test-vfprintf-posix.sh: Update.
39072         * tests/test-vprintf-posix.sh: Update.
39073         Reported by Ralf Wildenhues.
39074
39075 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39076
39077         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39078         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39079         GCC 4.2, which otherwise issues a lot of warnings.
39080         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39081         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39082         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39083         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39084         it should no longer be needed.
39085         * lib/string_.h: Likewise.
39086         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39087         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39088         * modules/inttypes (inttypes.h): Likewise.
39089         * modules/math (math.h): Likewise.
39090         * modules/search (search.h): Likewise.
39091         * modules/signal (signal.h): Likewise.
39092         * modules/stdint (stdint.h): Likewise.
39093         * modules/stdio (stdio.h): Likewise.
39094         * modules/stdlib (stdlib.h): Likewise.
39095         * modules/string (string.h): Likewise.
39096         * modules/sys_time (sys/time.h): Likewise.
39097         * modules/time (time.h): Likewise.
39098         * modules/wchar (wchar.h): Likewise.
39099         * modules/wctype (wtype.h): Likewise.
39100
39101 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39102
39103         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39104
39105 2007-05-13  Bruno Haible  <bruno@clisp.org>
39106
39107         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39108         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39109         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39110         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39111         (gl_PREREQ_STRTOK_R): Don't require it here.
39112
39113 2007-05-13  Bruno Haible  <bruno@clisp.org>
39114
39115         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39116         when used in C++ mode.
39117
39118 2007-05-12  Bruno Haible  <bruno@clisp.org>
39119
39120         * lib/linebuffer.h: Tweak doc.
39121         * lib/linebuffer.c: Likewise.
39122
39123 2007-05-12  James Youngman  <jay@gnu.org>
39124
39125         * lib/linebuffer.c (readlinebuffer_delim): New function,
39126         like readlinebuffer, but use a caller-specified delimiter.
39127         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39128         as the delimiter.
39129         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39130
39131 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39132
39133         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39134         * modules/openat (Files): Remove openat-die.c.
39135         (Depends-on): Add openat-die.
39136         * modules/openat-die: New module.
39137
39138 2007-05-06  Bruno Haible  <bruno@clisp.org>
39139
39140         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39141         Update with info about Cygwin.
39142         * doc/functions/fprintf.texi: Update.
39143         * doc/functions/printf.texi: Update.
39144         * doc/functions/snprintf.texi: Update.
39145         * doc/functions/sprintf.texi: Update.
39146         * doc/functions/vfprintf.texi: Update.
39147         * doc/functions/vprintf.texi: Update.
39148         * doc/functions/vsnprintf.texi: Update.
39149         * doc/functions/vsprintf.texi: Update.
39150         Reported by Eric Blake.
39151
39152 2007-05-06  Bruno Haible  <bruno@clisp.org>
39153
39154         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39155         padding ourselves for the floating-point directives.
39156         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39159         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39160         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39162         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39168         * tests/test-snprintf-posix.h (test_function): Also check the width
39169         and some flags in the %f directive.
39170         * tests/test-sprintf-posix.h (test_function): Likewise.
39171         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39172         * tests/test-vasprintf-posix.c (test_function): Likewise.
39173         * doc/functions/fprintf.texi: Update.
39174         * doc/functions/printf.texi: Update.
39175         * doc/functions/snprintf.texi: Update.
39176         * doc/functions/sprintf.texi: Update.
39177         * doc/functions/vfprintf.texi: Update.
39178         * doc/functions/vprintf.texi: Update.
39179         * doc/functions/vsnprintf.texi: Update.
39180         * doc/functions/vsprintf.texi: Update.
39181
39182 2007-05-06  Bruno Haible  <bruno@clisp.org>
39183
39184         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39185         pass the ' flag character to sprintf or snprintf.
39186         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39189         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39190         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39195         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39198         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39199         flag.
39200         * tests/test-sprintf-posix.h (test_function): Likewise.
39201         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39202         * tests/test-vasprintf-posix.c (test_function): Likewise.
39203         * doc/functions/fprintf.texi: Update.
39204         * doc/functions/printf.texi: Update.
39205         * doc/functions/snprintf.texi: Update.
39206         * doc/functions/sprintf.texi: Update.
39207         * doc/functions/vfprintf.texi: Update.
39208         * doc/functions/vprintf.texi: Update.
39209         * doc/functions/vsnprintf.texi: Update.
39210         * doc/functions/vsprintf.texi: Update.
39211
39212 2007-05-01  Bruno Haible  <bruno@clisp.org>
39213
39214         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39215
39216 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39217
39218         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39219         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39220
39221 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39222
39223         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39224         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39225         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39226
39227 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39228
39229         * lib/argp-help.c (struct hol_entry): New member `ord'.
39230         (HOL_ENTRY_PTRCMP): Use ord for comparison
39231         (hol_sort): Initialize ord.
39232
39233 2007-05-01  Bruno Haible  <bruno@clisp.org>
39234
39235         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39236         Reported by Eric Blake.
39237         * doc/gnulib.texi (Function Substitutes): Update.
39238
39239 2007-05-01  Bruno Haible  <bruno@clisp.org>
39240
39241         * doc/functions.texi: Remove file, now redundant through
39242         doc/functions/*.texi.
39243
39244 2007-05-01  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/argp (Depends-on): Add sleep.
39247
39248 2007-05-01  Bruno Haible  <bruno@clisp.org>
39249
39250         * modules/sleep-tests: New file.
39251         * tests/test-sleep.c: New file.
39252
39253         * modules/sleep: New file.
39254         * lib/sleep.c: New file.
39255         * m4/sleep.m4: New file.
39256         * lib/unistd_.h (sleep): New declaration.
39257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39258         HAVE_SLEEP.
39259         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39260         * doc/functions/sleep.texi: Document the sleep module.
39261
39262 2007-05-01  Bruno Haible  <bruno@clisp.org>
39263
39264         * lib/sigprocmask.h: Remove file.
39265         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39266         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39267         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39268         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39269         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39270         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39271         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39272         HAVE_SIGSET_T as a shell variable.
39273         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39274         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39275         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39276         (Depends-on): Add signal. Remove verify.
39277         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39278         (Include): Mention <signal.h> instead of sigprocmask.h.
39279         * NEWS: Mention the change.
39280         * lib/fatal-signal.c: Don't include sigprocmask.h.
39281
39282 2007-05-01  Bruno Haible  <bruno@clisp.org>
39283
39284         * modules/signal: New file.
39285         * lib/signal_.h: New file.
39286         * m4/signal_h.m4: New file.
39287
39288 2007-05-01  Bruno Haible  <bruno@clisp.org>
39289
39290         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39291         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39292         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39293         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39294
39295 2007-05-01  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39298         configure time.
39299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39300         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39301         * modules/sys_stat (Makefile.am): Substitute their values into
39302         sys/stat.h.
39303
39304 2007-05-01  Bruno Haible  <bruno@clisp.org>
39305
39306         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39307         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39308         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39309
39310 2007-05-01  Bruno Haible  <bruno@clisp.org>
39311
39312         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39313         'assert' module here.
39314
39315 2007-05-01  Bruno Haible  <bruno@clisp.org>
39316
39317         * doc/functions/*.texi: New files.
39318         * doc/functions/google-ranking.txt: New file.
39319         * doc/gnulib.texi (Function Substitutes): New chapter.
39320         (ctime, inet_ntoa): Remove sections.
39321         * doc/ctime.texi: Remove file.
39322         * doc/inet_ntoa.texi: Remove file.
39323         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39324         dependencies.
39325         (%.info): New rule, specifying a --reference-limit.
39326
39327 2007-05-01  Bruno Haible  <bruno@clisp.org>
39328
39329         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39330
39331 2007-05-01  Bruno Haible  <bruno@clisp.org>
39332
39333         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39334         the portability of 'mkdir' to mingw systems.
39335
39336 2007-05-01  Bruno Haible  <bruno@clisp.org>
39337
39338         * doc/headers/google-ranking.txt: New file.
39339
39340 2007-04-30  Eric Blake  <ebb9@byu.net>
39341
39342         Prefer fseeko to fseek.
39343         * modules/getpass (Depends-on): Add fseeko.
39344         * lib/getpass.c (getpass): Use fseeko, not fseek.
39345
39346 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39347
39348         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39349         assumes the sorting is stable, while most qsort implementations
39350         are not.  Use argument addresses to ensure they never compare as
39351         equal.
39352
39353         * tests/test-argp-2.sh (usage-indent test): Fix output
39354         (func_compare): Restore diff options
39355         * tests/test-argp.c: Restore #include "progname.h"
39356
39357 2007-04-29  Bruno Haible  <bruno@clisp.org>
39358
39359         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39361         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39363         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39364         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39365         (TESTS, check_PROGRAMS): Add test-snprintf.
39366         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39367         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39368         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39369         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39370         assertions that fail on HP-UX, OSF/1, or IRIX.
39371         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39372
39373 2007-04-29  Bruno Haible  <bruno@clisp.org>
39374
39375         * MODULES.html.sh (posix_functions): Remove 'contents'.
39376
39377 2007-04-29  Karl Berry  <karl@gnu.org>
39378
39379         * config/srclist.txt (gendocs_template_min): new entry.
39380
39381 2007-04-29  Bruno Haible  <bruno@clisp.org>
39382
39383         Work around fpurge bug on BSD systems.
39384         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39385         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39386         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39387         fpurge to rpl_fpurge if the system already has this function.
39388         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39389         the case where the system already has this function. Correct invariants
39390         on BSD systems.
39391         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39392         BSD systems.
39393
39394 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39395
39396         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39397         proposed by Sven Verdoolaege.
39398
39399         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39400         options.
39401         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39402         (usage and help tests): Update
39403
39404 2007-04-29  Bruno Haible  <bruno@clisp.org>
39405
39406         * tests/test-fflush.c (main): Use a file of size 17, not 10.
39407         Print more information in case of failure. Disable a test on BeOS.
39408
39409 2007-04-29  Bruno Haible  <bruno@clisp.org>
39410
39411         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
39412         This helps debugging on systems on which no gdb is available.
39413
39414 2007-04-29  Bruno Haible  <bruno@clisp.org>
39415
39416         * lib/freading.h: Improve comments.
39417         * lib/fwriting.h: Likewise.
39418         * tests/test-freading.c (main): Don't check freading immediately after
39419         repositioning. Needed for glibc.
39420
39421 2007-04-29  Bruno Haible  <bruno@clisp.org>
39422
39423         * lib/freading.c (freading): Trivial simplification.
39424
39425 2007-04-28  Bruno Haible  <bruno@clisp.org>
39426
39427         * tests/test-fwriting.c (main): Also test the interaction between
39428         fflush and fwriting.
39429         * modules/fwriting-tests (Depends-on): Add fflush.
39430
39431         * tests/test-freading.c (main): Also test the interaction between
39432         fflush and freading.
39433         * modules/freading-tests (Depends-on): Add fflush.
39434
39435 2007-04-28  Bruno Haible  <bruno@clisp.org>
39436
39437         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
39438         fseeko and ftello.
39439         Suggested by Eric Blake.
39440
39441 2007-04-28  Jim Meyering  <jim@meyering.net>
39442
39443         Avoid false-negative in gl_STDINT_H's C99 conformance test.
39444         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
39445         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
39446
39447 2007-04-27  Eric Blake  <ebb9@byu.net>
39448
39449         * doc/headers/assert.texi (assert.h): Document assert module use.
39450
39451 2007-04-27  Bruno Haible  <bruno@clisp.org>
39452
39453         * doc/headers/*.texi: New files.
39454         * doc/gnulib.texi (Header File Substitutes): New chapter.
39455         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
39456         dependencies.
39457         (standards.info ,standards.html, standards.dvi): Update dependencies.
39458         (mostlyclean, clean): New targets.
39459
39460 2007-04-27  Bruno Haible  <bruno@clisp.org>
39461
39462         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
39463         * modules/sysexits (Files, Makefile.am): Update.
39464
39465         * lib/sys_socket_.h: Renamed from lib/socket_.h.
39466         * modules/sys_socket (Files, Makefile.am): Update.
39467
39468         * lib/sys_stat_.h: Renamed from lib/stat_.h.
39469         * modules/sys_stat (Files, Makefile.am): Update.
39470
39471 2007-04-27  Eric Blake  <ebb9@byu.net>
39472
39473         * lib/freading.h: Improve comments.
39474         * lib/fwriting.h: Likewise.
39475         * lib/fflush.c: Likewise.
39476
39477         Fix closein for mingw.
39478         * modules/closein-tests: Add tests for closein.
39479         * tests/test-closein.c: New file.
39480         * tests/test-closein.sh: Likewise.
39481         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
39482         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
39483
39484 2007-04-27  Bruno Haible  <bruno@clisp.org>
39485
39486         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
39487         version is < 6.
39488         * lib/math_.h [__DECC]: Likewise.
39489         * lib/stdio_.h [__DECC]: Likewise.
39490         * lib/stdlib_.h [__DECC]: Likewise.
39491         * lib/string_.h [__DECC]: Likewise.
39492         * lib/time_.h [__DECC]: Likewise.
39493         * lib/wchar_.h [__DECC]: Likewise.
39494         * lib/wctype_.h [__DECC]: Likewise.
39495
39496 2007-04-27  Bruno Haible  <bruno@clisp.org>
39497
39498         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
39499
39500 2007-04-27  Bruno Haible  <bruno@clisp.org>
39501
39502         * lib/fflush.c: Add comments.
39503         * modules/fpurge-tests (Depends-on): Add fflush.
39504         * modules/freadable-tests (Depends-on): Likewise.
39505         * modules/fwritable-tests (Depends-on): Likewise.
39506
39507 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
39508
39509         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
39510         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
39511         Report by Bruno Haible <bruno@clisp.org>.
39512
39513 2007-04-26  Eric Blake  <ebb9@byu.net>
39514
39515         Fix fflush on mingw.
39516         * modules/fflush (Depends-on): Add freading.
39517         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
39518         but unread data.
39519
39520 2007-04-26  Eric Blake  <ebb9@byu.net>
39521         and Bruno Haible  <bruno@clisp.org>
39522
39523         Implement freading and fwriting.
39524         * lib/freading.c: New file.
39525         * lib/freading.h: Likewise.
39526         * m4/freading.m4: Likewise.
39527         * modules/freading: Likewise.
39528         * modules/freading-tests: Likewise.
39529         * tests/test-freading.c: Likewise.
39530         * lib/fwriting.c: New file.
39531         * lib/fwriting.h: Likewise.
39532         * m4/fwriting.m4: Likewise.
39533         * modules/fwriting: Likewise.
39534         * modules/fwriting-tests: Likewise.
39535         * tests/test-fwriting.c: Likewise.
39536         * MODULES.html.sh (File stream based Input/Output): Mention them.
39537
39538 2007-04-26  Bruno Haible  <bruno@clisp.org>
39539
39540         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
39541         'long' when we assume it.
39542         Suggested by Eric Blake.
39543
39544 2007-04-26  Bruno Haible  <bruno@clisp.org>
39545
39546         Ensure fseeko, ftello are declared on glibc systems.
39547         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
39548         * modules/fseeko (configure.ac-early): Likewise.
39549         * modules/ftello (configure.ac-early): Likewise.
39550         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
39551         AC_FUNC_FSEEKO for this.
39552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
39553         (gl_CHECK_FSEEKO): Remove macro.
39554
39555 2007-04-26  Bruno Haible  <bruno@clisp.org>
39556
39557         * tests/test-fflush.c (main): Also check the ftell result after
39558         fflush and fseek/fseeko.
39559         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
39560         file descriptor position cache in the stream.
39561         * lib/fseeko.c (rpl_fseeko): Likewise.
39562
39563 2007-04-26  Bruno Haible  <bruno@clisp.org>
39564
39565         * modules/fflush-tests (Depends-on): Add fseeko.
39566
39567 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
39568             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39569
39570         * lib/argz_.h: ensure error_t definition is obtained in same
39571         mechanism system argz.h would have.
39572         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
39573         argz facilities are known bad.  Err on the side of caution if
39574         cross-compiling.
39575
39576 2007-04-25  Eric Blake  <ebb9@byu.net>
39577
39578         * lib/fpurge.c (includes): Use stdlib.h for free.
39579         * tests/test-fflush.c (main): Also test fflush-fseeko.
39580
39581 2007-04-25  Bruno Haible  <bruno@clisp.org>
39582
39583         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
39584         * lib/fseeko.c: New file.
39585         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
39586         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
39587         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
39588         gl_FUNC_FSEEKO.
39589         (gl_FUNC_FSEEKO): Invoke it.
39590         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
39591         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
39592         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
39593
39594 2007-04-25  Bruno Haible  <bruno@clisp.org>
39595
39596         * modules/fflush (Depends-on): Add ftello.
39597
39598 2007-04-25  Bruno Haible  <bruno@clisp.org>
39599
39600         * modules/ftello-tests: New file.
39601         * tests/test-ftello.c: New file.
39602
39603         * modules/ftello: New file.
39604         * m4/ftello.m4: New file.
39605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
39606         HAVE_FTELLO.
39607         * lib/stdio_.h (ftello): New declaration.
39608         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
39609         HAVE_FTELLO.
39610
39611 2007-04-25  Bruno Haible  <bruno@clisp.org>
39612
39613         * modules/fseeko-tests: New file.
39614         * tests/test-fseeko.c: New file.
39615
39616         * modules/fseeko: New file.
39617         * m4/fseeko.m4: New file.
39618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
39619         HAVE_FSEEKO.
39620         * lib/stdio_.h (fseeko): New declaration.
39621         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
39622         HAVE_FSEEKO.
39623
39624 2007-04-25  Bruno Haible  <bruno@clisp.org>
39625
39626         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
39627
39628 2007-04-25  Bruno Haible  <bruno@clisp.org>
39629
39630         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
39631         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
39632         * tests/test-unistd.c: Likewise.
39633         * tests/test-fcntl.c: Likewise.
39634
39635 2007-04-23  Eric Blake  <ebb9@byu.net>
39636
39637         * lib/fflush.c: Fix missing include.
39638         Reported by Bruno Haible.
39639
39640 2007-04-23  Bruno Haible  <bruno@clisp.org>
39641
39642         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
39643         Reported by Eric Blake.
39644
39645 2007-04-23  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
39648
39649 2007-04-23  Bruno Haible  <bruno@clisp.org>
39650
39651         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
39652
39653 2007-04-23  Bruno Haible  <bruno@clisp.org>
39654
39655         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
39656         Needed on HP-UX 11.
39657
39658 2007-04-16  Eric Blake  <ebb9@byu.net>
39659
39660         Make fflush rely on fpurge.
39661         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
39662         open coding all variants.
39663         * modules/fflush (Depends-on): Add fpurge and unistd.
39664         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
39665         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
39666
39667         Fix --with-tests compilation on cygwin.
39668         * modules/argmatch-tests (Makefile.am): List gnulib library first
39669         in LDADD.
39670         * modules/argp-tests (Makefile.am): Likewise.
39671         * modules/array-list-tests (Makefile.am): Likewise.
39672         * modules/array-oset-tests (Makefile.am): Likewise.
39673         * modules/avltree-list-tests (Makefile.am): Likewise.
39674         * modules/avltree-oset-tests (Makefile.am): Likewise.
39675         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39676         * modules/carray-list-tests (Makefile.am): Likewise.
39677         * modules/dirname-tests (Makefile.am): Likewise.
39678         * modules/frexp-tests (Makefile.am): Likewise.
39679         * modules/isnanl-tests (Makefile.am): Likewise.
39680         * modules/linked-list-tests (Makefile.am): Likewise.
39681         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39682         * modules/lock-tests (Makefile.am): Likewise.
39683         * modules/rbtree-list-tests (Makefile.am): Likewise.
39684         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39685         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39686         * modules/tls-tests (Makefile.am): Likewise.
39687         * modules/tsearch-tests (Makefile.am): Likewise.
39688         * modules/xvasprintf-tests (Makefile.am): Likewise.
39689
39690         Fix fpurge for cygwin.
39691         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
39692         value.
39693         * modules/fpurge-tests (Depends-on): Clean up trash.
39694
39695 2007-04-16  Simon Josefsson  <simon@josefsson.org>
39696
39697         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
39698
39699         * m4/autobuild.m4: Re-indent.
39700
39701 2007-04-13  Bruno Haible  <bruno@clisp.org>
39702
39703         * modules/fpurge-tests: New file.
39704         * tests/test-fpurge.c: New file.
39705
39706         * modules/fpurge: New file.
39707         * lib/fpurge.h: New file.
39708         * lib/fpurge.c: New file.
39709         * m4/fpurge.m4: New file.
39710
39711 2007-04-13  Bruno Haible  <bruno@clisp.org>
39712
39713         * modules/fbufmode-tests: New file.
39714         * tests/test-fbufmode.c: New file.
39715
39716         * modules/fbufmode: New file.
39717         * lib/fbufmode.h: New file.
39718         * lib/fbufmode.c: New file.
39719         * m4/fbufmode.m4: New file.
39720
39721 2007-04-13  Bruno Haible  <bruno@clisp.org>
39722
39723         * modules/fwritable-tests: New file.
39724         * tests/test-fwritable.c: New file.
39725
39726         * modules/fwritable: New file.
39727         * lib/fwritable.h: New file.
39728         * lib/fwritable.c: New file.
39729         * m4/fwritable.m4: New file.
39730
39731 2007-04-13  Bruno Haible  <bruno@clisp.org>
39732
39733         * modules/freadable-tests: New file.
39734         * tests/test-freadable.c: New file.
39735
39736         * modules/freadable: New file.
39737         * lib/freadable.h: New file.
39738         * lib/freadable.c: New file.
39739         * m4/freadable.m4: New file.
39740
39741 2007-04-13  Bruno Haible  <bruno@clisp.org>
39742
39743         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
39744         MOSTLYCLEANFILES.
39745
39746 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39747
39748         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
39749         gzip bootstrap.conf to avoid dragging in i18n machinery.
39750         (gnulib_tool_option): Use it.
39751
39752 2007-04-13  Bruno Haible  <bruno@clisp.org>
39753
39754         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
39755         %F directives.
39756         * tests/test-vasprintf-posix.c (test_function): Likewise.
39757         * tests/test-snprintf-posix.h (test_function): Likewise.
39758         * tests/test-sprintf-posix.h (test_function): Likewise.
39759         * tests/test-fprintf-posix.h (test_function): Likewise.
39760         * tests/test-printf-posix.h (test_function): Likewise.
39761         * tests/test-fprintf-posix.out: Likewise.
39762
39763 2007-04-13  Bruno Haible  <bruno@clisp.org>
39764
39765         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
39766         * modules/tls-tests (configure.ac): Likewise.
39767         Reported by Arto C. Nirkko <anirkko@insel.ch>.
39768
39769 2007-04-13  Bruno Haible  <bruno@clisp.org>
39770
39771         * lib/tls.c (glthread_tls_get): Fix return type.
39772         Patch by Arto C. Nirkko <anirkko@insel.ch>.
39773
39774 2007-04-12  Eric Blake  <ebb9@byu.net>
39775
39776         * modules/gettime (Depends-on): Remove gettime.
39777         Reported by Dmitry V. Levin.
39778
39779 2007-04-12  Bruno Haible  <bruno@clisp.org>
39780
39781         * modules/fflush (Include): Mention <stdio.h>.
39782         * modules/strtoimax (Include): Mention <inttypes.h>.
39783         * modules/strtoumax (Include): Likewise.
39784
39785 2007-04-12  Eric Blake  <ebb9@byu.net>
39786
39787         * .cvsignore: New file.
39788         * .gitignore: Likewise.
39789
39790 2007-04-12  Bruno Haible  <bruno@clisp.org>
39791
39792         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
39793         not before, since $(LDADD) often contains libgnu.a.
39794         * modules/striconv-tests (test_striconv_LDADD): Likewise.
39795         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
39796         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
39797         Needed on Cygwin.
39798
39799 2007-04-12  Eric Blake  <ebb9@byu.net>
39800
39801         Work around glibc's failure to flush stdin on fclose.
39802         * lib/closein.c (close_stdin): Flush stdin before closing.
39803
39804         Work around glibc's failure to reset seekable stdin on exit.
39805         * modules/closein: New module.
39806         * lib/closein.c: New file.
39807         * lib/closein.h: Likewise.
39808         * m4/closein.m4: Likewise.
39809         * MODULES.html.sh (File stream based Input/Output): Document it.
39810
39811 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39812
39813         * gnulib-tool: Rename generated 'autobuild' script to
39814         'do-autobuild' in --create-megatestdir output.
39815
39816         * doc/gnulib.texi (Build robot for gnulib): Fix.
39817
39818 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39819
39820         * modules/sysexits (Depends-on): Add absolute-header.
39821
39822 2007-04-12  Eric Blake  <ebb9@byu.net>
39823
39824         No need to preserve errno on success.
39825         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
39826         Reported by Bruno Haible.
39827
39828 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39829
39830         * MODULES.html.sh (Support for maintaining and releasing
39831         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
39832
39833 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39834
39835         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
39836
39837 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39838
39839         * modules/autobuild: New module.
39840
39841         * m4/autobuild.m4: New file.
39842
39843 2007-04-11  Bruno Haible  <bruno@clisp.org>
39844
39845         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
39846         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
39847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
39848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
39849         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39850         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39851         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39852         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39853         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39854         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39855         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
39856         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39857         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
39859         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39860         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
39862         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39863         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
39865         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39866         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
39868         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39869         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
39871         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39872         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39873         Reported by Eric Blake.
39874
39875 2007-04-11  Bruno Haible  <bruno@clisp.org>
39876
39877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
39878
39879 2007-04-10  Bruno Haible  <bruno@clisp.org>
39880
39881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
39882         for NaN and Infinity. Needed on FreeBSD 6.1.
39883         * tests/test-vasnprintf-posix.c (test_function): Undo last change
39884         regarding results for "%010a" of Infinity and NaN.
39885         * tests/test-vasprintf-posix.c (test_function): Likewise.
39886         * tests/test-snprintf-posix.h (test_function): Likewise.
39887         * tests/test-sprintf-posix.h (test_function): Likewise.
39888         * tests/test-fprintf-posix.h (test_function): Likewise.
39889         * tests/test-printf-posix.h (test_function): Likewise.
39890         * tests/test-fprintf-posix.out: Likewise.
39891
39892 2007-04-10  Bruno Haible  <bruno@clisp.org>
39893
39894         * modules/locale-tests: New file.
39895         * tests/test-locale.c: New file.
39896
39897         * modules/locale: New file.
39898         * lib/locale_.h: New file.
39899         * m4/locale_h.m4: New file.
39900
39901 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
39902             Bruno Haible  <bruno@clisp.org>
39903
39904         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
39905         be determined, test for availability of the copysignf, copysign,
39906         copysignl functions.
39907         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
39908         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
39909         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
39910
39911 2007-04-09  Eric Blake  <ebb9@byu.net>
39912
39913         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
39914         * modules/stdio (Makefile.am): Support fflush.
39915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39916         * modules/fflush: New file.
39917         * lib/fflush.c: Likewise.
39918         * m4/fflush.m4: Likewise.
39919         * modules/fflush-tests: New test.
39920         * tests/test-fflush.c: Likewise.
39921         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
39922
39923 2007-04-06  Bruno Haible  <bruno@clisp.org>
39924
39925         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
39926         (VASNPRINTF): Use signbit for faster determination whether to print a
39927         minus sign.
39928         * modules/vasnprintf (Files): Remove lib/float+.h.
39929         * modules/fprintf-posix (Depends-on): Add signbit.
39930         * modules/snprintf-posix (Depends-on): Likewise.
39931         * modules/sprintf-posix (Depends-on): Likewise.
39932         * modules/vasnprintf-posix (Depends-on): Likewise.
39933         * modules/vasprintf-posix (Depends-on): Likewise.
39934         * modules/vfprintf-posix (Depends-on): Likewise.
39935         * modules/vsnprintf-posix (Depends-on): Likewise.
39936         * modules/vsprintf-posix (Depends-on): Likewise.
39937
39938 2007-04-06  Bruno Haible  <bruno@clisp.org>
39939
39940         * tests/test-frexp.c (main): Test also the sign bit of zero results.
39941         * tests/test-frexpl.c (main): Likewise.
39942         * tests/test-ldexpl.c (main): Likewise.
39943         * modules/frexp-tests (Depends-on): Add signbit.
39944         * modules/frexpl-tests (Depdends-on): Likewise.
39945         * modules/ldexpl-tests (Depdends-on): Likewise.
39946
39947 2007-04-06  Bruno Haible  <bruno@clisp.org>
39948
39949         * modules/signbit-tests: New file.
39950         * tests/test-signbit.c: New file.
39951
39952         * modules/signbit: New file.
39953         * lib/signbitf.c: New file.
39954         * lib/signbitd.c: New file.
39955         * lib/signbitl.c: New file.
39956         * m4/signbit.m4: New file.
39957         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
39958         (signbit): New macro.
39959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
39960         REPLACE_SIGNBIT.
39961         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
39962         REPLACE_FREXPL into math.h.
39963
39964 2007-04-06  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/isnanf-nolibm-tests: New file.
39967         * tests/test-isnanf.c: New file.
39968
39969         * modules/isnanf-nolibm: New file.
39970         * lib/isnanf.h: New file.
39971         * lib/isnanf.c: New file.
39972         * lib/isnan.c: Consider the USE_FLOAT macro.
39973         * m4/isnanf.m4: New file.
39974
39975 2007-04-06  Bruno Haible  <bruno@clisp.org>
39976
39977         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39978         (Link): New section.
39979
39980         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39981
39982 2007-04-06  Bruno Haible  <bruno@clisp.org>
39983
39984         Assume the 'long double' type.
39985         * m4/longdouble.m4: Remove file.
39986         * config/srclist.txt: Don't mention longdouble.m4.
39987         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39988         * lib/float+.h: Likewise.
39989         * lib/frexp.c: Likewise.
39990         * lib/printf-args.h: Likewise.
39991         * lib/printf-args.c: Likewise.
39992         * lib/printf-frexp.c: Likewise.
39993         * lib/printf-parse.c: Likewise.
39994         * lib/vasnprintf.c: Likewise.
39995         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39996         * m4/intl.m4: Likewise.
39997         * m4/isnanl.m4: Likewise.
39998         * m4/printf.m4: Likewise.
39999         * m4/printf-frexpl.m4: Likewise.
40000         * m4/vasnprintf.m4: Likewise.
40001         * modules/allocsa (Files): Remove m4/longdouble.m4.
40002         * modules/gettext (Files): Likewise.
40003         * modules/relocatable-prog-wrapper (Files): Likewise.
40004         * modules/vasnprintf (Files): Likewise.
40005         * modules/isnanl (Files): Likewise.
40006         (Include): Simplify.
40007         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40008         (Include): Simplify.
40009         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40010         (Include): Simplify.
40011         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40012         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40013         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40014         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40015         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40016         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40017         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40018         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40019         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40020         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40021         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40023         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40024         * tests/test-isnanl.c: Likewise.
40025         * tests/test-snprintf-posix.h: Likewise.
40026         * tests/test-sprintf-posix.h: Likewise.
40027         * tests/test-vasnprintf-posix.c: Likewise.
40028         * tests/test-vasnprintf-posix2.c: Likewise.
40029         * tests/test-vasprintf-posix.c: Likewise.
40030
40031 2007-04-06  Bruno Haible  <bruno@clisp.org>
40032
40033         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40034         * lib/math_.h [__DECC]: Include the overridden include file through
40035         #include_next, outside the double-inclusion guard.
40036         * lib/stdio_.h [__DECC]: Likewise.
40037         * lib/stdlib_.h [__DECC]: Likewise.
40038         * lib/string_.h [__DECC]: Likewise.
40039         * lib/time_.h [__DECC]: Likewise.
40040         * lib/wchar_.h [__DECC]: Likewise.
40041         * lib/wctype_.h [__DECC]: Likewise.
40042         * lib/inttypes_.h [__DECC]: Likewise.
40043         Reported by Albert Chin <china@thewrittenword.com> in
40044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40045
40046 2007-04-04  Eric Blake  <ebb9@byu.net>
40047
40048         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40049         1.5.x.
40050
40051 2007-04-04  Bruno Haible  <bruno@clisp.org>
40052
40053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40054         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40055
40056 2007-04-04  Bruno Haible  <bruno@clisp.org>
40057
40058         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40059         results for "%010a" of Infinity and NaN.
40060         * tests/test-vasprintf-posix.c (test_function): Likewise.
40061         * tests/test-snprintf-posix.h (test_function): Likewise.
40062         * tests/test-sprintf-posix.h (test_function): Likewise.
40063         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40064         * tests/test-printf-posix.h (test_function): Likewise.
40065         * tests/test-fprintf-posix.out: Update.
40066         Needed for FreeBSD 6.1.
40067
40068 2007-04-04  Bruno Haible  <bruno@clisp.org>
40069
40070         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40071         directly used by the gnulib modules nor by gnulib-tool.
40072
40073 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40074
40075         * DEPENDENCIES: Give overall description of version dependency
40076         desirability.  Use more-typical names for apps.
40077         Add shell, coreutils, diffutils, grep, tar, gzip.
40078
40079 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40080
40081         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40082
40083 2007-04-04  Karl Berry  <karl@gnu.org>
40084
40085         * MODULES.html.sh (func_module): missing '.
40086
40087 2007-04-03  Bruno Haible  <bruno@clisp.org>
40088
40089         * modules/argmatch-tests (Makefile.am): New variable
40090         test_argmatch_LDADD.
40091         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40092         * modules/array-list-tests (Makefile.am): New variable
40093         test_array_list_LDADD.
40094         * modules/array-oset-tests (Makefile.am): New variable
40095         test_array_oset_LDADD.
40096         * modules/avltree-list-tests (Makefile.am): New variable
40097         test_avltree_list_LDADD.
40098         * modules/avltree-oset-tests (Makefile.am): New variable
40099         test_avltree_oset_LDADD.
40100         * modules/avltreehash-list-tests (Makefile.am): New variable
40101         test_avltreehash_list_LDADD.
40102         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40103         test_canonicalize_lgpl_LDADD.
40104         * modules/carray-list-tests (Makefile.am): New variable
40105         test_carray_list_LDADD.
40106         * modules/dirname-tests (Makefile.am): New variable
40107         test_dirname_LDADD.
40108         * modules/linked-list-tests (Makefile.am): New variable
40109         test_linked_list_LDADD.
40110         * modules/linkedhash-list-tests (Makefile.am): New variable
40111         test_linkedhash_list_LDADD.
40112         * modules/rbtree-list-tests (Makefile.am): New variable
40113         test_rbtree_list_LDADD.
40114         * modules/rbtree-oset-tests (Makefile.am): New variable
40115         test_rbtree_oset_LDADD.
40116         * modules/rbtreehash-list-tests (Makefile.am): New variable
40117         test_rbtreehash_list_LDADD.
40118         * modules/xvasprintf-tests (Makefile.am): New variable
40119         test_xvasprintf_LDADD.
40120         Reported by Eric Blake.
40121
40122 2007-04-03  Eric Blake  <ebb9@byu.net>
40123
40124         * DEPENDENCIES: Weaken m4 requirements.
40125
40126 2007-04-03  Bruno Haible  <bruno@clisp.org>
40127
40128         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40129         * modules/isnanl-tests (configure.ac): Likewise.
40130
40131 2007-04-03  Ben Pfaff  <blp@gnu.org>
40132
40133         * modules/iconv_open: Add $(srcdir)/ to source directory
40134         references in Makefile fragments that call gperf, to fix VPATH
40135         builds.
40136
40137 2007-04-03  Bruno Haible  <bruno@clisp.org>
40138
40139         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40140         * lib/ldexpl.c: Undo last change.
40141
40142 2007-04-03  Bruno Haible  <bruno@clisp.org>
40143
40144         * modules/printf-frexpl (Depends-on): Undo last change.
40145         (Files): Add m4/ldexpl.m4.
40146
40147 2007-04-03  Bruno Haible  <bruno@clisp.org>
40148
40149         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40150         * modules/isnanl (Link): New section.
40151
40152         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40153         * modules/frexp (Link): New section.
40154
40155         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40156         * modules/frexpl (Link): New section.
40157
40158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40159         * modules/ldexpl (Link): New section.
40160
40161 2007-04-03  Bruno Haible  <bruno@clisp.org>
40162
40163         * modules/TEMPLATE-EXTENDED: New file.
40164         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40165
40166 2007-04-03  Bruno Haible  <bruno@clisp.org>
40167
40168         * DEPENDENCIES: New file.
40169         Suggested by Simon Josefsson.
40170
40171 2007-04-03  Bruno Haible  <bruno@clisp.org>
40172
40173         * doc/gnulib.texi: Escape @.
40174
40175 2007-04-03  James Youngman  <jay@gnu.org>
40176         and Paul Eggert  <eggert@cs.ucla.edu>
40177
40178         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40179         birthtime on all systems that have birthtime, not just those which
40180         use st_birthtimensec rather than st_birthtim.  Putting zero in
40181         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40182         that the birth time is not available for files on an NFS mount.
40183
40184 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40185
40186         * modules/memxor: Move back from crypto/, suggested by Bruno.
40187         * modules/crypto/hmac-sha1: Fix memxor dependency.
40188
40189         * modules/crypto/gc: Moved from ../.
40190
40191 2007-04-02  Eric Blake  <ebb9@byu.net>
40192
40193         * lib/ldexpl.c (includes): Avoid libm.
40194
40195         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40196
40197 2007-04-02  Bruno Haible  <bruno@clisp.org>
40198
40199         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40200         on IRIX.
40201
40202 2007-04-02  Bruno Haible  <bruno@clisp.org>
40203
40204         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40205         x86 or x86_64 platforms running MacOS X.
40206         Reported by Ryan Schmidt <@ryandesign.com>.
40207
40208 2007-04-02  Bruno Haible  <bruno@clisp.org>
40209
40210         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40211         i386.
40212
40213 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40214
40215         * modules/crypto/arcfour: Moved from ../.
40216         * modules/crypto/arcfour-tests: Moved from ../.
40217         * modules/crypto/arctwo: Moved from ../.
40218         * modules/crypto/arctwo-tests: Moved from ../.
40219         * modules/crypto/des: Moved from ../.
40220         * modules/crypto/des-tests: Moved from ../.
40221         * modules/crypto/gc-arcfour: Moved from ../.
40222         * modules/crypto/gc-arcfour-tests: Moved from ../.
40223         * modules/crypto/gc-arctwo: Moved from ../.
40224         * modules/crypto/gc-arctwo-tests: Moved from ../.
40225         * modules/crypto/gc-des: Moved from ../.
40226         * modules/crypto/gc-des-tests: Moved from ../.
40227         * modules/crypto/gc-hmac-md5: Moved from ../.
40228         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40229         * modules/crypto/gc-hmac-sha1: Moved from ../.
40230         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40231         * modules/crypto/gc-md2: Moved from ../.
40232         * modules/crypto/gc-md2-tests: Moved from ../.
40233         * modules/crypto/gc-md4: Moved from ../.
40234         * modules/crypto/gc-md4-tests: Moved from ../.
40235         * modules/crypto/gc-md5: Moved from ../.
40236         * modules/crypto/gc-md5-tests: Moved from ../.
40237         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40238         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40239         * modules/crypto/gc-random: Moved from ../.
40240         * modules/crypto/gc-rijndael: Moved from ../.
40241         * modules/crypto/gc-rijndael-tests: Moved from ../.
40242         * modules/crypto/gc-sha1: Moved from ../.
40243         * modules/crypto/gc-sha1-tests: Moved from ../.
40244         * modules/crypto/gc-tests: Moved from ../.
40245         * modules/crypto/hmac-md5: Moved from ../.
40246         * modules/crypto/hmac-md5-tests: Moved from ../.
40247         * modules/crypto/hmac-sha1: Moved from ../.
40248         * modules/crypto/hmac-sha1-tests: Moved from ../.
40249         * modules/crypto/md2: Moved from ../.
40250         * modules/crypto/md2-tests: Moved from ../.
40251         * modules/crypto/md4: Moved from ../.
40252         * modules/crypto/md4-tests: Moved from ../.
40253         * modules/crypto/md5: Moved from ../.
40254         * modules/crypto/md5-tests: Moved from ../.
40255         * modules/crypto/memxor: Moved from ../.
40256         * modules/crypto/rijndael: Moved from ../.
40257         * modules/crypto/rijndael-tests: Moved from ../.
40258         * modules/crypto/sha1: Moved from ../.
40259
40260 2007-03-30  James Youngman  <jay@gnu.org>
40261
40262         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40263         rename() to change the ctime of a file (because ctime is unaffected
40264         by rename on jfs2 on AIX 5.1).
40265         (main): Start by doing cleanup, in case a previous run failed leaving
40266         test files behind.
40267
40268 2007-03-31  Bruno Haible  <bruno@clisp.org>
40269
40270         Support old proprietary implementations of iconv.
40271         * modules/iconv_open: New file.
40272         * lib/iconv_.h: New file.
40273         * m4/iconv_h.m4: New file.
40274         * lib/iconv_open.c: New file.
40275         * lib/iconv_open-aix.gperf: New file.
40276         * lib/iconv_open-hpux.gperf: New file.
40277         * lib/iconv_open-irix.gperf: New file.
40278         * lib/iconv_open-osf.gperf: New file.
40279         * m4/iconv_open.m4: New file.
40280         * modules/linebreak (Depends-on): Add iconv_open.
40281         * modules/striconv (Depends-on): Likewise.
40282         * modules/striconveh (Depends-on): Likewise.
40283         * modules/unicodeio (Depends-on): Likewise.
40284         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40285         (iconv_t)(-1).
40286         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40287         conversion if cd is (iconv_t)(-1).
40288         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40289         is not possible.
40290
40291 2007-03-31  Bruno Haible  <bruno@clisp.org>
40292
40293         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40294         work on Solaris either. Protect also second use of "autodetect_jp".
40295
40296 2007-03-31  Bruno Haible  <bruno@clisp.org>
40297
40298         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40299         the function is not present.
40300
40301 2007-03-31  Bruno Haible  <bruno@clisp.org>
40302
40303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40304         the function is not present.
40305
40306 2007-03-31  Bruno Haible  <bruno@clisp.org>
40307
40308         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40309         a bug in HP-UX iconv_open().
40310
40311 2007-03-31  Bruno Haible  <bruno@clisp.org>
40312
40313         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40314         (Mathematics <math.h>): New section, add fpieee.
40315         (Input/output <stdio.h>): Add fseterr.
40316         (Mathematics <math.h>): New section, add printf-frexp.
40317         (Container data structures): Add sublist.
40318         (Core language properties): Add fpucw, inline.
40319         (Functions for greatest-width integer types <inttypes.h>): Add
40320         imaxabs, imaxdiv, inttypes.
40321         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40322         isnanl-nolibm, ldexp.
40323         (Mathematics <math.h>): New section, add printf-frexpl.
40324         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40325         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40326         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40327         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40328         (Unicode string functions): Add unistr/u*-mbtoucr.
40329         (Java): Add javacomp-script, javaexec-script.
40330         (C#): Add csharpcomp-script, csharpexec-script.
40331         (Support for building libraries and executables): Add havelib,
40332         relocatable-*.
40333         (Support for maintaining and releasing projects): Renamed from
40334         'Support for maintaining and release projects'. Add announce-gen.
40335
40336 2007-03-31  Bruno Haible  <bruno@clisp.org>
40337
40338         * README: Talk primarily about git.
40339         (git and CVS): Renamed from CVS.
40340         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40341         gnulib is available through git.
40342         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40343
40344 2007-03-30  Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40347         * lib/poll_.h: Likewise.
40348         * lib/stat_.h: Likewise.
40349         * lib/sys_time_.h: Likewise.
40350         * lib/sysexit_.h: Likewise.
40351         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40352         * lib/stdbool_.h: Likewise.
40353         * lib/byteswap_.h: Add double-inclusion guard.
40354
40355 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40356
40357         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40358
40359 2007-03-30  Karl Berry  <karl@gnu.org>
40360
40361         * config/srclist-update: double space after USA in the license
40362         substitution, since that's how it's usually (?) written.
40363
40364 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40365
40366         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40367         reported by Bruno Haible.
40368
40369 2007-03-29  Bruno Haible  <bruno@clisp.org>
40370
40371         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40372         a bug in AIX iconv().
40373
40374 2007-03-29  Bruno Haible  <bruno@clisp.org>
40375
40376         * modules/ldexpl-tests: New file.
40377         * tests/test-ldexpl.c: New file.
40378
40379 2007-03-29  Bruno Haible  <bruno@clisp.org>
40380
40381         * lib/ldexpl.c: Include fpucw.h.
40382         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40383         multiplication.
40384         * modules/ldexpl (Depends-on): Add fpucw.
40385
40386 2007-03-29  Bruno Haible  <bruno@clisp.org>
40387
40388         * modules/ldexpl: New file.
40389         * m4/ldexpl.m4: New file.
40390         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40391         set.
40392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40393         REPLACE_LDEXPL.
40394         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40395         REPLACE_LDEXPL.
40396         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40397         gl_FUNC_LDEXPL_WORKS.
40398         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40399         * modules/mathl (Files): Remove lib/ldexpl.c.
40400         (Depends-on): Add ldexpl.
40401
40402 2007-03-29  Bruno Haible  <bruno@clisp.org>
40403
40404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
40405
40406 2007-03-29  Bruno Haible  <bruno@clisp.org>
40407
40408         * tests/test-striconveh.c (main): Don't assume that a direct conversion
40409         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
40410         and possibly also HP-UX.
40411         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40412         work on AIX, IRIX, HP-UX, OSF/1.
40413         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40414         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40415         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40416         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40417         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
40418         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40419
40420 2007-03-29  Bruno Haible  <bruno@clisp.org>
40421
40422         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
40423
40424 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40425
40426         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
40427         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
40428
40429 2007-03-29  Eric Blake  <ebb9@byu.net>
40430
40431         * lib/acl-internal.h: Remove redundant include.
40432         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
40433         Cygwin when a file is locked.
40434
40435 2007-03-29  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
40438         file.
40439         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
40440
40441 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
40442
40443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
40444         try to remove a parent directory if the child couldn't be removed
40445         (except for the first rmdir, which could fail because the child
40446         doesn't exist).  Problem reported by Jeff Blaine in
40447         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
40448
40449 2007-03-28  Bruno Haible  <bruno@clisp.org>
40450
40451         * lib/striconveh.c (utf8conv_carefully): New function.
40452         (mem_cd_iconveh_internal): Invoke it.
40453
40454 2007-03-28  Bruno Haible  <bruno@clisp.org>
40455
40456         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
40457         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
40458         input.
40459         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
40460         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
40461         unistr/u8-uctomb.
40462
40463 2007-03-28  Bruno Haible  <bruno@clisp.org>
40464
40465         * modules/unistr/u8-mbtoucr: New file.
40466         * lib/unistr/u8-mbtoucr.c: New file.
40467         * modules/unistr/u16-mbtoucr: New file.
40468         * lib/unistr/u16-mbtoucr.c: New file.
40469         * modules/unistr/u16-mbtoucr: New file.
40470         * lib/unistr/u16-mbtoucr.c: New file.
40471         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
40472
40473 2007-03-27  Simon Josefsson  <simon@josefsson.org>
40474             Bruno Haible  <bruno@clisp.org>
40475
40476         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
40477         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
40478         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
40479
40480         * m4/stdio_h.m4: Add stubs for vasprintf too.
40481
40482         * modules/stdio: Support vasprintf in sed command.
40483
40484         * modules/vasprintf: Depend on stdio for prototypes.  Remove
40485         vasprintf.h.  Add stdio module indicator.
40486
40487         * lib/stdio_.h: Declare asprintf and vasprintf, based on
40488         vasprintf.h.
40489
40490         * lib/vasprintf.h: File removed.
40491
40492         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
40493         * lib/vasprintf.c: Ditto.
40494         * lib/xvasprintf.c: Ditto.
40495         * tests/test-vasprintf-posix.c: Ditto.
40496         * tests/test-vasprintf.c: Ditto.
40497
40498 2007-03-27  Bruno Haible  <bruno@clisp.org>
40499
40500         Make vasnprintf multithread-safe.
40501         * lib/vasnprintf.c (decimal_point_char): New function.
40502         (VASNPRINTF): Use it.
40503         Suggested by Simon Josefsson.
40504
40505 2007-03-27  Eric Blake  <ebb9@byu.net>
40506
40507         Support sub-second birthtime on cygwin.
40508         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
40509         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
40510         (get_stat_birthtime): Also work with st_birthtim.
40511
40512 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
40513
40514         * lib/stat-time.h (USE_BIRTHTIME): Remove.
40515         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
40516         (get_stat_birthtime_ns): Do not try to use "spare" fields.
40517         (get_stat_birthtime_ns): Simplify compile-time tests.
40518         (get_stat_birthtime): Change the API to look like
40519         get_stat_mtime etc., except return a negative tv_nsec on error.
40520         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
40521         Don't check for "spare" fields.
40522         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
40523         or for struct stat.st_birthtime, as these tests aren't used.
40524         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
40525
40526 2007-03-27  Bruno Haible  <bruno@clisp.org>
40527
40528         * lib/stat-time.h: Include <sys/stat.h>.
40529
40530 2007-03-27  James Youngman  <jay@gnu.org>
40531
40532         * lib/stat-time.h (get_stat_birthtime): New function for
40533           retrieving st_birthtime as provided by UFS2 (hence *BSD).
40534         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
40535           and its variants.
40536         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
40537         * modules/stat-time-test: New file.
40538         * tests/test-stat-time.c: New test, devised by Bruno Haible.
40539
40540 2007-03-26  Bruno Haible  <bruno@clisp.org>
40541
40542         Better support of signalling NaNs.
40543         * lib/atanl.c: Include isnanl.h.
40544         (atanl): Perform test for NaN at the beginning of the function and
40545         through a call to isnanl.
40546         * lib/cosl.c: Include isnanl.h.
40547         (cosl): Perform test for NaN at the beginning of the function and
40548         through a call to isnanl.
40549         * lib/ldexpl.c: Include isnanl.h.
40550         (ldexpl): Perform test for NaN through a call to isnanl.
40551         * lib/logl.c: Include isnanl.h.
40552         (logl): Perform test for NaN at the beginning of the function and
40553         through a call to isnanl.
40554         * lib/sinl.c: Include isnanl.h.
40555         (sinl): Perform test for NaN at the beginning of the function and
40556         through a call to isnanl.
40557         * lib/sqrtl.c: Include isnanl.h.
40558         (sqrtl): Perform test for NaN at the beginning of the function and
40559         through a call to isnanl.
40560         * lib/tanl.c: Include isnanl.h.
40561         (tanl): Perform test for NaN at the beginning of the function and
40562         through a call to isnanl.
40563         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
40564         * modules/mathl (Depends-on): Add isnanl.
40565
40566 2007-03-26  Eric Blake  <ebb9@byu.net>
40567
40568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
40569         regression in logic sense of previous patch.
40570
40571 2007-03-26  Bruno Haible  <bruno@clisp.org>
40572
40573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
40574         unportable shell command "if ! ...".
40575         Reported by Ralf Wildenhues.
40576
40577 2007-03-25  Bruno Haible  <bruno@clisp.org>
40578
40579         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
40580         <sysexits.h> file, and only add EX_CONFIG.
40581         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
40582         absolute file name and whether it is sufficient. Substitute also
40583         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
40584         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
40585         ABSOLUTE_SYSEXITS_H into sysexits.h.
40586
40587 2007-03-25  Bruno Haible  <bruno@clisp.org>
40588
40589         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
40590         hints is NULL.
40591
40592 2007-03-25  Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
40595         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
40596
40597 2007-03-25  Bruno Haible  <bruno@clisp.org>
40598
40599         * lib/vasnprintf.c: Include langinfo.h.
40600         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
40601         multithread-safe.
40602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
40603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
40604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
40610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40611         Reported by Simon Josefsson.
40612
40613 2007-03-25  Bruno Haible  <bruno@clisp.org>
40614
40615         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
40616         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
40617         * modules/vasnprintf (Depends-on): Add stdint.
40618
40619 2007-03-25  Bruno Haible  <bruno@clisp.org>
40620
40621         * modules/fpieee: New file.
40622         * m4/fpieee.m4: New file.
40623         * modules/isnan-nolibm (Depends-on): Add fpieee.
40624         * modules/isnanl-nolibm (Depends-on): Add fpieee.
40625         * modules/isnanl (Depends-on): Add fpieee.
40626
40627 2007-03-25  Bruno Haible  <bruno@clisp.org>
40628
40629         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
40630
40631 2007-03-25  Bruno Haible  <bruno@clisp.org>
40632
40633         Avoid test failures on IRIX 6.5.
40634         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
40635         (main): Use it.
40636         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
40637         macros.
40638         (main): Use them.
40639
40640 2007-03-25  Bruno Haible  <bruno@clisp.org>
40641
40642         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
40643         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
40644         exists but doesn't work.
40645         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
40646         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
40647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
40648         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
40649
40650 2007-03-25  Bruno Haible  <bruno@clisp.org>
40651
40652         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
40653         returns inf. Needed on IRIX 6.5.
40654
40655 2007-03-25  Bruno Haible  <bruno@clisp.org>
40656
40657         * tests/test-frexpl.c: Include isnanl-nolibm.h.
40658         (main): Use isnanl instead of x != x idiom.
40659         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
40660
40661         * tests/test-frexp.c: Include isnan.h.
40662         (main): Use isnan instead of x != x idiom.
40663         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
40664
40665 2007-03-25  Bruno Haible  <bruno@clisp.org>
40666
40667         * tests/test-frexp.c (NaN): New function/macro.
40668         (main): Use it instead of 0.0 / 0.0.
40669         * tests/test-isnan.c (NaN): New function/macro.
40670         (main): Use it instead of 0.0 / 0.0.
40671         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
40672         (test_function): Use it instead of 0.0 / 0.0.
40673         * tests/test-vasprintf-posix.c (NaN): New function/macro.
40674         (test_function): Use it instead of 0.0 / 0.0.
40675         * tests/test-snprintf-posix.h (NaN): New function/macro.
40676         (test_function): Use it instead of 0.0 / 0.0.
40677         * tests/test-sprintf-posix.h (NaN): New function/macro.
40678         (test_function): Use it instead of 0.0 / 0.0.
40679         * tests/test-fprintf-posix.h (NaN): New function/macro.
40680         (test_function): Use it instead of 0.0 / 0.0.
40681         * tests/test-printf-posix.h (NaN): New function/macro.
40682         (test_function): Use it instead of 0.0 / 0.0.
40683
40684         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
40685
40686 2007-03-25  Bruno Haible  <bruno@clisp.org>
40687
40688         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
40689
40690 2007-03-25  Bruno Haible  <bruno@clisp.org>
40691
40692         * lib/regexec.c (merge_state_with_log): Make static.
40693
40694 2007-03-25  Bruno Haible  <bruno@clisp.org>
40695
40696         * lib/trigl.c (kernel_rem_pio2): Make static.
40697
40698 2007-03-25  Bruno Haible  <bruno@clisp.org>
40699
40700         * lib/sincosl.c (sincosl_table): Make static.
40701
40702 2007-03-25  Bruno Haible  <bruno@clisp.org>
40703
40704         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
40705         if the compiler does not support C99.
40706
40707 2007-03-25  Bruno Haible  <bruno@clisp.org>
40708
40709         * modules/time (Makefile.am): Ensure all rule action lines start with a
40710         tab.
40711
40712 2007-03-24  Bruno Haible  <bruno@clisp.org>
40713
40714         * modules/tsearch-tests: New file.
40715         * tests/test-tsearch.sh: New file.
40716         * tests/test-tsearch.c: New file, mostly copied from glibc.
40717
40718         * modules/search-tests: New file.
40719         * tests/test-search.c: New file.
40720
40721         * modules/search: New file.
40722         * lib/search_.h: New file, incorporating lib/tsearch.h.
40723         * m4/search_h.m4: New file.
40724         * lib/tsearch.h: Remove file.
40725         * lib/tsearch.c: Include search.h instead of tsearch.h.
40726         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
40727         HAVE_TSEARCH.
40728         * modules/tsearch (Files): Remove lib/tsearch.h.
40729         (Depends-on): Add search.
40730         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
40731         (Include): Change tsearch.h into search.h.
40732
40733 2007-03-24  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/fpucw: New file.
40736         * lib/fpucw.h: New file.
40737         * lib/frexp.c: Include fpucw.h.
40738         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40739         (FUNC): Use them.
40740         * lib/printf-frexp.c: Include fpucw.h.
40741         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40742         (FUNC): Use them.
40743         * lib/vasnprintf.c: Include fpucw.h.
40744         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
40745         'long double' calculations.
40746         * tests/test-frexpl.c: Include fpucw.h.
40747         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40748         * tests/test-printf-frexpl.c: Include fpucw.h.
40749         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40750         * modules/frexpl (Depends-on): Add fpucw.
40751         * modules/printf-frexpl (Depends-on): Likewise.
40752         * modules/fprintf-posix (Depends-on): Likewise.
40753         * modules/snprintf-posix (Depends-on): Likewise.
40754         * modules/sprintf-posix (Depends-on): Likewise.
40755         * modules/vasnprintf-posix (Depends-on): Likewise.
40756         * modules/vasprintf-posix (Depends-on): Likewise.
40757         * modules/vfprintf-posix (Depends-on): Likewise.
40758         * modules/vsnprintf-posix (Depends-on): Likewise.
40759         * modules/vsprintf-posix (Depends-on): Likewise.
40760         * modules/frexpl-tests (Depends-on): Likewise.
40761         * modules/printf-frexpl-tests (Depends-on): Likewise.
40762
40763 2007-03-24  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/float+.h: New file.
40766         * lib/isnan.c: Include float+.h.
40767         (SIZE): New macro.
40768         (FUNC): Compare only SIZE bytes of the value.
40769         * lib/vasnprintf.c: Include float+.h.
40770         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
40771         SIZEOF_LDBL or SIZEOF_DBL bytes.
40772         * modules/isnan-nolibm (Files): Add lib/float+.h.
40773         * modules/isnanl-nolibm (Files): Add lib/float+.h.
40774         * modules/isnanl (Files): Add lib/float+.h.
40775         * modules/vasnprintf (Files): Add lib/float+.h.
40776
40777 2007-03-24  Bruno Haible  <bruno@clisp.org>
40778
40779         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
40780         include isnanl-nolibm.h.
40781
40782 2007-03-24  Bruno Haible  <bruno@clisp.org>
40783
40784         * tests/test-read-file.c (main): Don't produce spurious output for
40785         expected situations. Make the test fail if it encountered unexpected
40786         results.
40787
40788 2007-03-24  Bruno Haible  <bruno@clisp.org>
40789
40790         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
40791         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
40792
40793 2007-03-24  Bruno Haible  <bruno@clisp.org>
40794
40795         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
40796
40797 2007-03-24  Bruno Haible  <bruno@clisp.org>
40798
40799         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
40800         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
40801
40802         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
40803         * modules/utf8-ucs4: Turn into a symbolic link to module
40804         unistr/u8-mbtouc.
40805
40806         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
40807         utf8-ucs4-unsafe.
40808         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
40809         unistr/u8-mbtouc-unsafe.
40810
40811         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
40812         * modules/utf16-ucs4: Turn into a symbolic link to module
40813         unistr/u16-mbtouc.
40814
40815         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
40816         utf16-ucs4-unsafe.
40817         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
40818         unistr/u16-mbtouc-unsafe.
40819
40820         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
40821         * modules/ucs4-utf8: Turn into a symbolic link to module
40822         unistr/u8-ubtomb.
40823
40824         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
40825         * modules/ucs4-utf16: Turn into a symbolic link to module
40826         unistr/u16-ubtomb.
40827
40828 2007-03-24  Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
40831         Enable the function only if HAVE_INLINE.
40832         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
40833         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40834         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
40835         Enable the function only if HAVE_INLINE.
40836         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
40837         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40838         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
40839         Enable the function only if HAVE_INLINE.
40840         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
40841         Enable the function only if HAVE_INLINE.
40842         * modules/utf8-ucs4: Update.
40843         * modules/utf8-ucs4-unsafe: Update.
40844         * modules/utf16-ucs4: Update.
40845         * modules/utf16-ucs4-unsafe: Update.
40846         * modules/ucs4-utf8: Update.
40847         * modules/ucs4-utf16: Update.
40848
40849 2007-03-24  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/utf8-ucs4.h: Remove file.
40852         * lib/utf8-ucs4-unsafe.h: Remove file.
40853         * lib/utf16-ucs4.h: Remove file.
40854         * lib/utf16-ucs4-unsafe.h: Remove file.
40855         * lib/ucs4-utf8.h: Remove file.
40856         * lib/ucs4-utf16.h: Remove file.
40857         * lib/unistr.h: Include their previous contents.
40858         * m4/utf-ucs4.m4: Remove file.
40859         * m4/ucs4-utf.m4: Remove file.
40860         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
40861         (Depends-on): Add unistr/base.
40862         (configure.ac): Remove gl_UTF_UCS4.
40863         (Makefile.am): Update.
40864         (Include): Change to unistr.h.
40865         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
40866         (Depends-on): Add unistr/base.
40867         (configure.ac): Remove gl_UTF_UCS4.
40868         (Makefile.am): Update.
40869         (Include): Change to unistr.h.
40870         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
40871         (Depends-on): Add unistr/base.
40872         (configure.ac): Remove gl_UTF_UCS4.
40873         (Makefile.am): Update.
40874         (Include): Change to unistr.h.
40875         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
40876         (Depends-on): Add unistr/base.
40877         (configure.ac): Remove gl_UTF_UCS4.
40878         (Makefile.am): Update.
40879         (Include): Change to unistr.h.
40880         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
40881         (Depends-on): Add unistr/base.
40882         (configure.ac): Remove gl_UCS4_UTF.
40883         (Makefile.am): Update.
40884         (Include): Change to unistr.h.
40885         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
40886         (Depends-on): Add unistr/base.
40887         (configure.ac): Remove gl_UCS4_UTF.
40888         (Makefile.am): Update.
40889         (Include): Change to unistr.h.
40890         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
40891         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
40892         utf8-ucs4-unsafe.h.
40893         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
40894         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
40895         utf16-ucs4-unsafe.h.
40896         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
40897         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
40898         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
40899         * lib/unistr/u8-strchr.c: Likewise.
40900         * lib/unistr/u8-strrchr.c: Likewise.
40901         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
40902         * lib/unistr/u16-strchr.c: Likewise.
40903         * lib/unistr/u16-strrchr.c: Likewise.
40904         * lib/striconveh.c: Update.
40905         * lib/linebreak.c: Update.
40906
40907 2007-03-24  Bruno Haible  <bruno@clisp.org>
40908
40909         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
40910         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
40911
40912 2007-03-22  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
40915
40916 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40917
40918         * MODULES.html.sh (File system functions): New module write-any-file.
40919         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
40920         * m4/write-any-file.m4: New files.
40921
40922 2007-03-23  Eric Blake  <ebb9@byu.net>
40923
40924         * gnulib-tool: Rearrange space-tab sequences, since some editors
40925         like to eat them.
40926
40927 2007-03-23  Eric Blake  <ebb9@byu.net>
40928
40929         * lib/version-etc.c (version_etc_va): Update license wording to
40930         be more concise.  Recommended by Richard Stallman.
40931
40932 2007-03-22  Bruno Haible  <bruno@clisp.org>
40933
40934         * lib/poll.c (MSG_PEEK): New fallback definition.
40935
40936 2007-03-22  Bruno Haible  <bruno@clisp.org>
40937
40938         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
40939         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
40940         (main): Update.
40941         Fixes a compilation error on BeOS.
40942
40943 2007-03-22  Bruno Haible  <bruno@clisp.org>
40944
40945         * modules/frexpl-tests: New file.
40946         * tests/test-frexpl.c: New file.
40947
40948         * modules/frexpl: New file.
40949         * m4/frexpl.m4: New file.
40950         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
40951         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
40952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
40953         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
40954         (Depends-on): Add frexpl. Remove isnanl-nolibm.
40955         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
40956
40957 2007-03-22  Bruno Haible  <bruno@clisp.org>
40958
40959         * lib/frexpl.c: Share code with lib/frexp.c.
40960         * modules/mathl (Files): Add lib/frexp.c.
40961         (Depends-on): Add isnanl-nolibm.
40962
40963 2007-03-22  Bruno Haible  <bruno@clisp.org>
40964
40965         * modules/printf-frexp (Files): Add m4/frexp.m4.
40966         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40967         only if the found frexp function actually works.
40968
40969 2007-03-22  Bruno Haible  <bruno@clisp.org>
40970
40971         * lib/frexp.c: Remove older implementation that uses divisions.
40972
40973 2007-03-21  Bruno Haible  <bruno@clisp.org>
40974
40975         * modules/frexp-tests: New file.
40976         * tests/test-frexp.c: New file.
40977
40978         * modules/frexp: New file.
40979         * lib/frexp.c: New file.
40980         * m4/frexp.m4: New file.
40981         * lib/math_.h (frexp): New declaration.
40982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40983         REPLACE_FREXP.
40984         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40985
40986 2007-03-21  Bruno Haible  <bruno@clisp.org>
40987
40988         * modules/isnanl-tests: New file.
40989         * tests/test-isnanl.c: New file.
40990
40991         * modules/isnanl: New file.
40992         * lib/isnanl.h: New file.
40993         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40994         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40995         gl_FUNC_ISNANL_WORKS.
40996         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40997         New macros.
40998
40999 2007-03-21  Bruno Haible  <bruno@clisp.org>
41000
41001         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41002         lib/isnanl.h.
41003         (Include): Update.
41004         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41005         * lib/vasnprintf.c: Update.
41006         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41007         tests/test-isnanl.h, remove tests/test-isnanl.c.
41008         (Makefile.am): Update.
41009         * tests/test-isnanl-nolibm.c: New file.
41010         * tests/test-isnanl.h: New file.
41011         * tests/test-isnanl.c: Remove file.
41012
41013 2007-03-21  Jim Meyering  <jim@meyering.net>
41014
41015         When trying to open ".", treat ESTALE like EACCES.
41016         * lib/savewd.c (savewd_save): Resort to forking not just upon
41017         failure with EACCES, but also when errno is ESTALE.
41018
41019 2007-03-20  Bruno Haible  <bruno@clisp.org>
41020
41021         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41022         Needed on AIX 5.1. Reported by Matthew Woehlke.
41023
41024 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41025
41026         Suggestions by Bruno Haible:
41027         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41028         our own.
41029         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41030         * modules/acl (Depends-on): Add gettext.
41031
41032 2007-03-19  Bruno Haible  <bruno@clisp.org>
41033
41034         * modules/iconvme: Remove file.
41035         * lib/iconvme.h: Remove file.
41036         * lib/iconvme.c: Remove file.
41037         * m4/iconvme.m4: Remove file.
41038
41039 2007-03-19  Bruno Haible  <bruno@clisp.org>
41040
41041         * doc/relocatable-maint.texi: Break long shell script line.
41042         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41043
41044 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41045
41046         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41047         handle file_has_acl.
41048         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41049         * lib/acl.c: Move header inclusions and related macro defns into
41050         lib/acl-internal.h.
41051         (S_ISLNK): Remove defn, since that's now done for us.
41052         (file_has_acl): Move to lib/file-has-acl.c.
41053         Call acl_trivial if available.  This is the crucial part of the fix.
41054         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41055         shared within the library.  Rewrite a bit, partly to make it compatible
41056         with the GNU coding style.
41057         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41058         Remove unnecessary double-quotes.
41059         Don't test for acl_to_text; the build will catch that.
41060         Replace acl_entries if it doesn't exist and it is needed.
41061         Check for -lsec and acl_trivial (as used on Solaris 10).
41062         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41063         lib/file-has-acl.c.
41064         (Depends-on): Add sys_stat, for S_ISLNK.
41065
41066 2007-03-19  Ben Pfaff  <blp@gnu.org>
41067
41068         * doc/gnulib.texi: Fix typos.
41069         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41070
41071 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41072
41073         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41074         If size is zero here, buf must be zero.
41075
41076 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41077
41078         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41079         <bruno@clisp.org>.
41080
41081 2007-03-18  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41084         Suggested by Eric Blake.
41085
41086 2007-03-18  Ben Pfaff  <blp@gnu.org>
41087
41088         * doc/relocatable.texi: Recommend using as prefix a directory
41089         that does not exist and will never be created.  Based on
41090         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41091         and others.
41092
41093 2007-03-17  Bruno Haible  <bruno@clisp.org>
41094
41095         * lib/fchownat.c: Include lchown.h.
41096
41097 2007-03-17  Bruno Haible  <bruno@clisp.org>
41098
41099         Fix endless loop when the given allocated size was > INT_MAX.
41100         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41101         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41102         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41103         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41104         * lib/sprintf.c (sprintf): Likewise.
41105
41106 2007-03-17  Bruno Haible  <bruno@clisp.org>
41107
41108         * tests/test-argp-2.sh (func_compare): Output a context diff.
41109
41110 2007-03-17  Bruno Haible  <bruno@clisp.org>
41111
41112         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41113         locale's decimal-point character.
41114
41115 2007-03-17  Bruno Haible  <bruno@clisp.org>
41116
41117         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41118         before comparing it. Needed because on some platforms (e.g. x86) a
41119         'long double' occupies less bytes than sizeof (long double).
41120
41121 2007-03-17  Bruno Haible  <bruno@clisp.org>
41122
41123         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41124         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41125         * tests/test-getaddrinfo.c (simple): Likewise.
41126         * tests/test-read-file.c (main): Likewise.
41127
41128 2007-03-17  Bruno Haible  <bruno@clisp.org>
41129
41130         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41131
41132 2007-03-17  Bruno Haible  <bruno@clisp.org>
41133
41134         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41135         unused variable.
41136
41137 2007-03-17  Bruno Haible  <bruno@clisp.org>
41138
41139         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41140         * tests/test-c-strncasecmp.c: Likewise.
41141
41142 2007-03-17  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/stdlib (Depends-on): Add unistd.
41145         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41146         Needed for MacOS X 10.3.
41147
41148 2007-03-17  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41151
41152 2007-03-17  Bruno Haible  <bruno@clisp.org>
41153
41154         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41155
41156 2007-03-17  Bruno Haible  <bruno@clisp.org>
41157
41158         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41159         to reflect files copied from gnulib (with or without modifications).
41160         Suggested by Jim Meyering.
41161
41162 2007-03-17  Eric Blake  <ebb9@byu.net>
41163
41164         * NEWS: Document stdlib change from 2007-02-18.
41165
41166 2007-03-17  Jim Meyering  <jim@meyering.net>
41167
41168         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41169         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41170         someone uses a name containing shell meta-characters.
41171         Reported by Alfred M. Szmidt.
41172
41173         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41174
41175 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41176
41177         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41178         and copy gettext configuration files only if configure.ac contains
41179         a use of AM_GNU_GETTEXT_VERSION.
41180
41181 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41182
41183         * build-aux/bootstrap (gnulib_name): New variable.
41184         (gnulib_tool_options): Use it.
41185
41186 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41187
41188         * tests/test-des.c: Use new namespace.
41189
41190 2007-03-15  Bruno Haible  <bruno@clisp.org>
41191
41192         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41193         Reported by James Youngman <jay@gnu.org>.
41194
41195 2007-03-15  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41198         declared prototype. Needed with cc on OSF/1 5.1.
41199
41200 2007-03-15  Bruno Haible  <bruno@clisp.org>
41201
41202         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41203         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41204         (struct gl_list_implementation): Add dispose_fn argument to the
41205         'create_empty', 'create' methods.
41206         (struct gl_list_impl_base): Add field 'dispose_fn'.
41207         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41208         argument.
41209         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41210         dispose_fn argument.
41211         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41212         dispose_fn on the dropped values.
41213         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41214         dispose_fn argument.
41215         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41216         dropped values.
41217         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41218         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41219         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41220         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41221         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41222         argument.
41223         (gl_tree_list_free): Call dispose_fn on the dropped values.
41224         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41225         the dropped values.
41226         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41227         Add dispose_fn argument.
41228         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41229         Call dispose_fn on the dropped values.
41230         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41231         Add dispose_fn argument.
41232         (gl_sublist_create): Initialize the 'dispose_fn' field.
41233         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41234         * tests/test-array_list.c (main): Update.
41235         * tests/test-carray_list.c (main): Update.
41236         * tests/test-avltree_list.c (main): Update.
41237         * tests/test-rbtree_list.c (main): Update.
41238         * tests/test-avltreehash_list.c (main): Update.
41239         * tests/test-rbtreehash_list.c (main): Update.
41240         * tests/test-linked_list.c (main): Update.
41241         * tests/test-linkedhash_list.c (main): Update.
41242         * tests/test-array_oset.c (main): Update.
41243
41244 2007-03-15  Bruno Haible  <bruno@clisp.org>
41245
41246         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41247         (gl_oset_create_empty): Add dispose_fn argument.
41248         (struct gl_oset_implementation): Add dispose_fn argument to
41249         'create_empty' method.
41250         (struct gl_oset_impl_base): Add dispose_fn field.
41251         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41252         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41253         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41254         values.
41255         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41256         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41257         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41258         dropped value.
41259         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41260         dropped value.
41261         * tests/test-array_oset.c (main): Update.
41262         * tests/test-avltree_oset.c (main): Update.
41263         * tests/test-rbtree_oset.c (main): Update.
41264         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41265
41266 2007-03-13  Bruno Haible  <bruno@clisp.org>
41267
41268         * tests/test-stdbool.c (i): Update after last patch.
41269
41270 2007-03-12  Bruno Haible  <bruno@clisp.org>
41271
41272         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41273         the iswprint macro. Needed on Solaris 2.5.1.
41274
41275 2007-03-12  Bruno Haible  <bruno@clisp.org>
41276
41277         * tests/test-printf-frexp.c (main): Declare x as volatile.
41278
41279 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41280
41281         * doc/gnulib.texi (Build robot for gnulib): New section.
41282
41283 2007-03-12  Jim Meyering  <jim@meyering.net>
41284
41285         * build-aux/bootstrap: New file.
41286         * build-aux/bootstrap.conf: New file, from coreutils.
41287
41288 2007-03-11  Bruno Haible  <bruno@clisp.org>
41289
41290         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41291
41292 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41293
41294         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41295         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41296         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41297
41298 2007-03-11  Bruno Haible  <bruno@clisp.org>
41299
41300         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41301         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41302
41303 2007-03-11  Bruno Haible  <bruno@clisp.org>
41304
41305         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41306         formula. Needed for SunPRO C 5.0.
41307
41308 2007-03-11  Bruno Haible  <bruno@clisp.org>
41309
41310         * modules/long-options (Depends-on): Add getopt.
41311
41312 2007-03-11  Bruno Haible  <bruno@clisp.org>
41313
41314         * modules/modechange (Depends-on): Add stdbool.
41315
41316 2007-03-11  Bruno Haible  <bruno@clisp.org>
41317
41318         * modules/i-ring (Depends-on): Add stdbool.
41319
41320 2007-03-11  Bruno Haible  <bruno@clisp.org>
41321
41322         * modules/gc-des (Depends-on): Add stdbool.
41323
41324 2007-03-11  Bruno Haible  <bruno@clisp.org>
41325
41326         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41327
41328 2007-03-11  Bruno Haible  <bruno@clisp.org>
41329
41330         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41331
41332 2007-03-11  Bruno Haible  <bruno@clisp.org>
41333
41334         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41335
41336 2007-03-11  Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/vasnprintf.c (sprintf): Undefine.
41339
41340 2007-03-11  Bruno Haible  <bruno@clisp.org>
41341
41342         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41343         initializers in SunPRO C and Compaq C compilers.
41344
41345 2007-03-11  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41348         decrementing code ANSI C compliant.
41349
41350 2007-03-11  Bruno Haible  <bruno@clisp.org>
41351
41352         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41353         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41354
41355 2007-03-11  Bruno Haible  <bruno@clisp.org>
41356
41357         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41358         <stdbool.h> substitute doesn't pass.
41359
41360 2007-03-11  Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41363
41364 2007-03-11  Bruno Haible  <bruno@clisp.org>
41365
41366         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41367         script, for submission to autobuild.josefsson.org.
41368
41369 2007-03-10  Bruno Haible  <bruno@clisp.org>
41370
41371         * modules/canonicalize-lgpl-tests: New file.
41372         * tests/test-canonicalize-lgpl.sh: New file.
41373         * tests/test-canonicalize-lgpl.c: New file.
41374
41375         * modules/c-strcase-tests: New file.
41376         * tests/test-c-strcase.sh: New file.
41377         * tests/test-c-strcasecmp.c: New file.
41378         * tests/test-c-strncasecmp.c: New file.
41379
41380         * modules/atexit-tests: New file.
41381         * tests/test-atexit.sh: New file.
41382         * tests/test-atexit.c: New file.
41383
41384 2007-03-10  Bruno Haible  <bruno@clisp.org>
41385
41386         * tests/test-binary-io.sh: Use temporary filenames that are not so
41387         likely to clash with those of other tests (in a parallel make).
41388         * tests/test-binary-io.c: Likewise.
41389
41390 2007-03-10  Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41393         fallback; use #error instead.
41394         Suggested by Simon Josefsson.
41395
41396 2007-03-10  Bruno Haible  <bruno@clisp.org>
41397
41398         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41399         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41400         first and the last.
41401
41402 2007-03-10  Bruno Haible  <bruno@clisp.org>
41403
41404         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
41405
41406 2007-03-10  Bruno Haible  <bruno@clisp.org>
41407
41408         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
41409         "make distcheck".
41410         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
41411         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
41412         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
41413
41414 2007-03-10  Bruno Haible  <bruno@clisp.org>
41415
41416         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
41417         variable.
41418         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
41419         variable.
41420
41421 2007-03-09  Eric Blake  <ebb9@byu.net>
41422         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
41423
41424         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
41425         types are not being provided by gnulib.
41426         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
41427         types are supported.
41428
41429 2007-03-10  Bruno Haible  <bruno@clisp.org>
41430
41431         * lib/stdio_.h (__attribute__): New macro.
41432         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
41433         vsprintf): Specify __attribute__ __format__ for GCC.
41434         Suggested by Eric Blake.
41435
41436 2007-03-09  Bruno Haible  <bruno@clisp.org>
41437
41438         * modules/printf-posix-tests: New file.
41439         * tests/test-printf-posix.sh: New file.
41440         * tests/test-printf-posix.c: New file.
41441
41442         * modules/printf-posix: New file.
41443         * lib/printf.c: New file.
41444         * m4/printf-posix-rpl.m4: New file.
41445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
41446         REPLACE_PRINTF.
41447         * lib/stdio_.h (printf): New declaration.
41448         (format, __format__, ____printf____, ____scanf____, ____strftime____,
41449         ____strfmon____): New macros.
41450         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
41451         REPLACE_PRINTF.
41452
41453 2007-03-09  Bruno Haible  <bruno@clisp.org>
41454
41455         * tests/test-vasnprintf-posix2.sh: New file.
41456         * tests/test-vasnprintf-posix2.c: New file.
41457         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
41458         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41459         (Makefile.am): Activate test-vasnprintf-posix2.sh.
41460
41461         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
41462         a locale dependent decimal point, rather than always '.'.
41463
41464 2007-03-09  Eric Blake  <ebb9@byu.net>
41465
41466         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
41467         spite of platforms like Tandem/NSK that define it to -1.
41468
41469 2007-03-08  Bruno Haible  <bruno@clisp.org>
41470
41471         * modules/vprintf-posix-tests: New file.
41472         * tests/test-vprintf-posix.sh: New file.
41473         * tests/test-vprintf-posix.c: New file.
41474         * tests/test-printf-posix.h: New file.
41475
41476         * modules/vprintf-posix: New file.
41477         * lib/vprintf.c: New file.
41478         * m4/vprintf-posix.m4: New file.
41479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
41480         REPLACE_VPRINTF.
41481         * lib/stdio_.h (vprintf): New declaration.
41482         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
41483         REPLACE_VPRINTF.
41484
41485 2007-03-08  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/fprintf-posix-tests: New file.
41488         * tests/test-fprintf-posix.sh: New file.
41489         * tests/test-fprintf-posix.c: New file.
41490
41491         * modules/fprintf-posix: New file.
41492         * lib/fprintf.c: New file.
41493         * m4/fprintf-posix.m4: New file.
41494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
41495         REPLACE_FPRINTF.
41496         * lib/stdio_.h (fprintf): New declaration.
41497         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
41498         REPLACE_FPRINTF.
41499
41500 2007-03-08  Bruno Haible  <bruno@clisp.org>
41501
41502         * modules/vfprintf-posix-tests: New file.
41503         * tests/test-vfprintf-posix.sh: New file.
41504         * tests/test-vfprintf-posix.c: New file.
41505         * tests/test-fprintf-posix.h: New file.
41506         * tests/test-fprintf-posix.out: New file.
41507
41508         * modules/vfprintf-posix: New file.
41509         * lib/vfprintf.c: New file.
41510         * m4/vfprintf-posix.m4: New file.
41511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
41512         REPLACE_VFPRINTF.
41513         * lib/stdio_.h (vfprintf): New declaration.
41514         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
41515         REPLACE_VFPRINTF.
41516
41517 2007-03-08  Bruno Haible  <bruno@clisp.org>
41518
41519         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
41520
41521 2007-03-08  Bruno Haible  <bruno@clisp.org>
41522
41523         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
41524         instead of 'expr' invocations.
41525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41526         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41529         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41530         Suggested by Paul Eggert.
41531
41532 2007-03-08  Bruno Haible  <bruno@clisp.org>
41533
41534         * modules/fseterr-tests: New file.
41535         * tests/test-fseterr.c: New file.
41536
41537         * modules/fseterr: New file.
41538         * lib/fseterr.h: New file.
41539         * lib/fseterr.c: New file.
41540
41541 2007-03-08  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
41544         * lib/getopt_.h: Likewise.
41545         * lib/mbswidth.h: Likewise.
41546         * lib/setenv.h: Likewise.
41547         * lib/vasnprintf.h: Likewise.
41548         * lib/vasprintf.h: Likewise.
41549         * lib/verror.h: Likewise.
41550         * lib/xsetenv.h: Likewise.
41551         * lib/xvasprintf.h: Likewise.
41552
41553 2007-03-08  Jim Meyering  <jim@meyering.net>
41554
41555         * users.txt: Add parted.
41556
41557         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
41558
41559 2007-03-07  Bruno Haible  <bruno@clisp.org>
41560
41561         * m4/printf.m4: Make the shell script snippets copy&pastable.
41562
41563 2007-03-02  Bruno Haible  <bruno@clisp.org>
41564
41565         * lib/netinet_in_.h: New file.
41566         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
41567         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
41568         * modules/netinet_in (Files): Add lib/netinet_in_.h.
41569         (Depends-on): Add absolute-header.
41570         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
41571         into netinet/in.h.
41572
41573 2007-03-03  Bruno Haible  <bruno@clisp.org>
41574
41575         * lib/sys_select_.h: New file.
41576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
41577         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
41578         * modules/sys_select (Files): Add lib/sys_select_.h.
41579         (Depends-on): Add absolute-header.
41580         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
41581         into sys/select.h.
41582
41583 2007-03-02  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
41586         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
41587         values.
41588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
41589         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
41590         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
41591         * modules/sys_socket (Depends-on): Add absolute-header.
41592         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
41593         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
41594         (Include): Remove requirement of inclusion of <sys/types.h>.
41595
41596 2007-03-02  Bruno Haible  <bruno@clisp.org>
41597
41598         * lib/byteswap_.h (bswap_32): Fix formula.
41599
41600 2007-03-06  Bruno Haible  <bruno@clisp.org>
41601
41602         * modules/sprintf-posix-tests: New file.
41603         * tests/test-sprintf-posix.c: New file.
41604
41605         * modules/sprintf-posix: New file.
41606         * lib/sprintf.c: New file.
41607         * m4/sprintf-posix.m4: New file.
41608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
41609         REPLACE_SPRINTF.
41610         * lib/stdio_.h (sprintf): New declaration.
41611         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
41612         REPLACE_SPRINTF.
41613
41614 2007-03-06  Bruno Haible  <bruno@clisp.org>
41615
41616         * modules/vsprintf-posix-tests: New file.
41617         * tests/test-vsprintf-posix.c: New file.
41618         * tests/test-sprintf-posix.h: New file.
41619
41620         * modules/vsprintf-posix: New file.
41621         * lib/vsprintf.c: New file.
41622         * m4/vsprintf-posix.m4: New file.
41623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
41624         REPLACE_VSPRINTF.
41625         * lib/stdio_.h (vsprintf): New declaration.
41626         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
41627         REPLACE_VSPRINTF.
41628
41629 2007-03-06  Bruno Haible  <bruno@clisp.org>
41630
41631         * modules/vsnprintf (Depend-on): Remove minmax.
41632
41633 2007-03-06  Bruno Haible  <bruno@clisp.org>
41634
41635         * modules/snprintf-posix-tests: New file.
41636         * tests/test-snprintf-posix.c: New file.
41637
41638         * modules/snprintf-posix: New file.
41639         * m4/snprintf-posix.m4: New file.
41640         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
41641         gl_FUNC_SNPRINTF.
41642         (gl_FUNC_SNPRINTF): Invoke it.
41643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
41644         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
41645         is set.
41646         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
41647
41648 2007-03-06  Bruno Haible  <bruno@clisp.org>
41649
41650         * modules/vsnprintf-posix-tests: New file.
41651         * tests/test-vsnprintf-posix.c: New file.
41652         * tests/test-snprintf-posix.h: New file.
41653
41654         * modules/vsnprintf-posix: New file.
41655         * m4/vsnprintf-posix.m4: New file.
41656         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
41657         gl_FUNC_VSNPRINTF.
41658         (gl_FUNC_VSNPRINTF): Invoke it.
41659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
41660         * lib/stdio_.h (vsnprintf): Define as a replacement if
41661         REPLACE_VSNPRINTF is set.
41662         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
41663
41664 2007-03-06  Bruno Haible  <bruno@clisp.org>
41665
41666         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
41667         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
41668
41669 2007-03-06  Bruno Haible  <bruno@clisp.org>
41670
41671         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
41672         (asinl): Declare also if HAVE_DECL_ASINL is set.
41673         (atanl): Declare also if HAVE_DECL_ATANL is set.
41674         (ceill): Declare also if HAVE_DECL_CEILL is set.
41675         (cosl): Declare also if HAVE_DECL_COSL is set.
41676         (expl): Declare also if HAVE_DECL_EXPL is set.
41677         (floorl): Declare also if HAVE_DECL_FLOORL is set.
41678         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
41679         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
41680         (logl): Declare also if HAVE_DECL_LOGL is set.
41681         (sinl): Declare also if HAVE_DECL_SINL is set.
41682         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
41683         (tanl): Declare also if HAVE_DECL_TANL is set.
41684         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
41685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
41686         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
41687         declaration of frexpl, ldexpl.
41688         * modules/printf-frexpl (Depends-on): Add math.
41689         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
41690
41691 2007-03-05  Bruno Haible  <bruno@clisp.org>
41692
41693         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
41694         frexpl and ldexpl are declared.
41695         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
41696
41697 2007-03-05  Bruno Haible  <bruno@clisp.org>
41698
41699         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
41700         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
41701
41702 2007-03-05  Bruno Haible  <bruno@clisp.org>
41703
41704         * lib/stdio_.h: Include <stddef.h>.
41705
41706 2007-03-05  Bruno Haible  <bruno@clisp.org>
41707
41708         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
41709
41710 2007-03-05  Bruno Haible  <bruno@clisp.org>
41711
41712         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
41713         NetBSD 4, from Ralf Wildenhues.
41714
41715 2007-03-04  Bruno Haible  <bruno@clisp.org>
41716
41717         * lib/vasprintf.h: Update #if logic for the case when the functions
41718         exist but are overridden.
41719
41720 2007-03-04  Bruno Haible  <bruno@clisp.org>
41721
41722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
41723         implementations: glibc-2.4 and MacOS X 10.3.
41724         * tests/test-vasnprintf-posix.c (test_function): Test also the case
41725         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
41726         * tests/test-vasprintf-posix.c (test_function): Likewise.
41727
41728 2007-03-04  Bruno Haible  <bruno@clisp.org>
41729
41730         * modules/vasprintf-posix-tests: New file.
41731         * tests/test-vasprintf-posix.c: New file.
41732
41733         * modules/vasprintf-posix: New file.
41734         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
41735         defined.
41736         * m4/vasprintf-posix.m4: New file.
41737         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
41738         gl_FUNC_VASPRINTF.
41739         (gl_FUNC_VASPRINTF): Invoke it.
41740         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
41741         here.
41742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
41743
41744 2007-03-04  Bruno Haible  <bruno@clisp.org>
41745
41746         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
41747         REPLACE_GETTIMEOFDAY.
41748         * modules/sys_time (Makefile.am): Likewise.
41749         * m4/sys_time_h.m4: Likewise.
41750         * m4/gettimeofday.m4: Likewise.
41751
41752 2007-03-04  Bruno Haible  <bruno@clisp.org>
41753
41754         * modules/vasnprintf-posix-tests: New file.
41755         * tests/test-vasnprintf-posix.c: New file.
41756
41757         * modules/vasnprintf-posix: New file.
41758         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
41759         printf-frexpl.h.
41760         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
41761         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
41762         REPLACE_VASNPRINTF is defined.
41763         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
41764         gl_FUNC_VASNPRINTF.
41765         (gl_FUNC_VASNPRINTF): Invoke it.
41766         * m4/vasnprintf-posix.m4: New file.
41767         * m4/printf.m4: New file.
41768
41769 2007-03-04  Bruno Haible  <bruno@clisp.org>
41770
41771         Compile progreloc.c only if --enable-relocatable is specified.
41772         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
41773         if --enable-relocatable was specified.
41774         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
41775         lib_SOURCES.
41776
41777 2007-03-04  Jim Meyering  <jim@meyering.net>
41778
41779         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
41780         Use it consistently, rather than enumerating errno constants.
41781
41782 2007-03-04  Bruno Haible  <bruno@clisp.org>
41783
41784         * modules/xvasprintf-tests: New file.
41785         * tests/test-xvasprintf.c: New file.
41786
41787         * modules/vasprintf-tests: New file.
41788         * tests/test-vasprintf.c: New file.
41789
41790         * modules/vasnprintf-tests: New file.
41791         * tests/test-vasnprintf.c: New file.
41792
41793         * modules/vsnprintf-tests: New file.
41794         * tests/test-vsnprintf.c: New file.
41795
41796         * modules/snprintf-tests: New file.
41797         * tests/test-snprintf.c: New file.
41798
41799 2007-03-04  Bruno Haible  <bruno@clisp.org>
41800
41801         Compile relocatable.c only if --enable-relocatable is specified.
41802         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
41803         gl_RELOCATABLE_LIBRARY.
41804         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
41805         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
41806         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
41807         gl_RELOCATABLE_LIBRARY.
41808         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
41809         (Makefile.am): Remove lib_SOURCES.
41810         * modules/relocatable-lib-lgpl (configure.ac): Invoke
41811         gl_RELOCATABLE_LIBRARY.
41812         (Makefile.am): Remove lib_SOURCES.
41813         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
41814         always.
41815         * modules/relocatable-prog-wrapper (configure.ac): Invoke
41816         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
41817
41818 2007-03-04  Bruno Haible  <bruno@clisp.org>
41819
41820         * modules/argmatch-tests: New file.
41821         * tests/test-argmatch.c: New file.
41822
41823         * tests/test-allocsa.c (main): Halve the number of loop runs.
41824
41825         * modules/alloca-opt-tests: New file.
41826         * tests/test-alloca-opt.c: New file.
41827
41828 2007-03-04  Jim Meyering  <jim@meyering.net>
41829
41830         Work around difference between Linux ACLs and Solaris 10 ZFS.
41831         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
41832         for EINVAL.
41833
41834 2007-03-03  Bruno Haible  <bruno@clisp.org>
41835
41836         * modules/relocatable-prog (Depends-on): Add back progreloc's
41837         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
41838
41839 2007-03-03  Bruno Haible  <bruno@clisp.org>
41840
41841         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
41842         * modules/relocatable-lib: New file.
41843
41844 2007-03-03  Bruno Haible  <bruno@clisp.org>
41845
41846         * modules/relocatable-prog: Renamed from modules/relocatable.
41847         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
41848
41849 2007-03-03  Bruno Haible  <bruno@clisp.org>
41850
41851         * modules/relocatable-script (Files): Add doc/relocatable.texi,
41852         m4/relocatable-lib.m4.
41853         (Depends-on): Remove 'relocatable'.
41854         (configure.ac): Add gl_RELOCATABLE_NOP.
41855
41856 2007-03-03  Bruno Haible  <bruno@clisp.org>
41857
41858         * modules/relocatable-prog-wrapper: New file.
41859         * modules/relocatable (Depends-on): Add it. Remove all other
41860         dependencies except progname.
41861         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
41862
41863         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
41864         (gl_FUNC_STRERROR): Nop.
41865         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
41866
41867         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
41868         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
41869
41870         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
41871         (gl_FUNC_READLINK): Update.
41872
41873         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
41874
41875 2007-03-03  Bruno Haible  <bruno@clisp.org>
41876
41877         * lib/xreadlink.c: Include <unistd.h> unconditionally.
41878         * modules/xreadlink (Depends-on): Add unistd.
41879         * modules/xreadlink-with-size (Depends-on): Likewise.
41880
41881 2007-03-03  Bruno Haible  <bruno@clisp.org>
41882
41883         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
41884         extracted from gt_FUNC_SETENV.
41885         (gt_FUNC_SETENV): Remove macro.
41886         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
41887         remove gt_FUNC_SETENV.
41888
41889 2007-03-03  Bruno Haible  <bruno@clisp.org>
41890
41891         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
41892         ENABLE_RELOCATABLE here.
41893         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
41894
41895 2007-03-03  Bruno Haible  <bruno@clisp.org>
41896
41897         * modules/rbtreehash-list-tests (Depends-on): Add progname.
41898         * tests/test-rbtreehash_list.c: Include progname.h.
41899         (main): Call set_program_name.
41900
41901         * modules/rbtree-oset-tests (Depends-on): Add progname.
41902         * tests/test-rbtree_oset.c: Include progname.h.
41903         (main): Call set_program_name.
41904
41905         * modules/rbtree-list-tests (Depends-on): Add progname.
41906         * tests/test-rbtree_list.c: Include progname.h.
41907         (main): Call set_program_name.
41908
41909         * modules/linked-list-tests (Depends-on): Add progname.
41910         * tests/test-linked_list.c: Include progname.h.
41911         (main): Call set_program_name.
41912
41913 2007-03-03  Bruno Haible  <bruno@clisp.org>
41914
41915         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
41916         All uses of __restrict changed to _Restrict_.
41917         * lib/glob_.h (__restrict): Remove macro.
41918
41919 2007-03-02  Bruno Haible  <bruno@clisp.org>
41920
41921         * modules/gettext (configure.ac): Require gettext infrastructure
41922         from version 0.16.1.
41923
41924 2007-03-02  Bruno Haible  <bruno@clisp.org>
41925
41926         * modules/linkedhash-list-tests (Depends-on): Add progname.
41927         * tests/test-linkedhash_list.c: Include progname.h.
41928         (main): Call set_program_name.
41929
41930         * modules/carray-list-tests (Depends-on): Add progname.
41931         * tests/test-carray_list.c: Include progname.h.
41932         (main): Call set_program_name.
41933
41934         * modules/avltreehash-list-tests (Depends-on): Add progname.
41935         * tests/test-avltreehash_list.c: Include progname.h.
41936         (main): Call set_program_name.
41937
41938         * modules/avltree-oset-tests (Depends-on): Add progname.
41939         * tests/test-avltree_oset.c: Include progname.h.
41940         (main): Call set_program_name.
41941
41942         * modules/avltree-list-tests (Depends-on): Add progname.
41943         * tests/test-avltree_list.c: Include progname.h.
41944         (main): Call set_program_name.
41945
41946         * modules/array-oset-tests (Depends-on): Add progname.
41947         * tests/test-array_oset.c: Include progname.h.
41948         (main): Call set_program_name.
41949
41950         * modules/array-list-tests (Depends-on): Add progname.
41951         * tests/test-array_list.c: Include progname.h.
41952         (main): Call set_program_name.
41953
41954         * modules/argp-tests (Depends-on): Add progname.
41955         * tests/test-argp.c: Include argp.h first. Include progname.h.
41956         (main): Call set_program_name.
41957
41958 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
41959
41960         * doc/gnulib-tool.texi (Initial import): Reword description of
41961         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
41962         limited effect even if defined after the first system include.
41963
41964 2007-03-01  Bruno Haible  <bruno@clisp.org>
41965
41966         * build-aux/config.libpath: Update to libtool-1.5.22.
41967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41968
41969 2007-03-01  Bruno Haible  <bruno@clisp.org>
41970
41971         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41972         foo_CFLAGS.
41973         Reported by Ralf Wildenhues.
41974
41975 2007-03-01  Bruno Haible  <bruno@clisp.org>
41976
41977         * build-aux/install-reloc: Remove object files left over by some
41978         compilers.
41979         Reported by Ralf Wildenhues.
41980
41981 2007-03-01  Bruno Haible  <bruno@clisp.org>
41982
41983         * build-aux/install-reloc: Break long lines.
41984
41985 2007-03-01  Bruno Haible  <bruno@clisp.org>
41986
41987         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41988         Reported by Ralf Wildenhues.
41989
41990 2007-03-01  Bruno Haible  <bruno@clisp.org>
41991
41992         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41993         include ordering constraints.
41994
41995 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41996
41997         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41999         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42000         as another example.
42001         * lib/time_.h: Fix misspelling.
42002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42003         Require gl_HEADER_TIME_H_DEFAULTS.
42004         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42005         * m4/time_r.m4 (gl_TIME_R): Likewise.
42006         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42007
42008 2007-03-01  Bruno Haible  <bruno@clisp.org>
42009
42010         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42011         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42012
42013 2007-03-01  Jim Meyering  <jim@meyering.net>
42014
42015         * modules/xreadlink (Maintainer): Add my name.
42016         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42017
42018 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42019             Bruno Haible  <bruno@clisp.org>
42020
42021         * build-aux/install-reloc: Compile also c-ctype.c.
42022         * build-aux/relocatable.sh.in: New file.
42023         * doc/relocatable.texi: New file.
42024         * doc/relocatable-maint.texi: New file.
42025         * doc/gnulib.texi: Include relocatable-maint.texi.
42026         * lib/progreloc.c: Include unistd.h unconditionally.
42027         * lib/relocwrapper.c: Include unistd.h unconditionally.
42028         Include c-ctype.h.
42029         (add_dotbin): Use c_tolower.
42030         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42031         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42032         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42033         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42034         to m4/relocatable-lib.m4.
42035         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42036         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42037         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42038         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42039         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42040         * modules/relocatable: New file.
42041         * modules/relocatable-lib: New file.
42042         * modules/relocatable-script: New file.
42043
42044 2007-02-28  Bruno Haible  <bruno@clisp.org>
42045
42046         Import --enable-relocatable infrastructure.
42047         * build-aux/config.libpath: New file, from GNU gettext.
42048         * build-aux/install-reloc: New file, from GNU gettext.
42049         * build-aux/reloc-ldflags: New file, from GNU gettext.
42050         * lib/relocatable.h: New file, from GNU gettext.
42051         * lib/relocatable.c: New file, from GNU gettext.
42052         * lib/relocwrapper.c: New file, from GNU gettext.
42053         * m4/relocatable.m4: New file, from GNU gettext.
42054
42055 2007-02-28  Bruno Haible  <bruno@clisp.org>
42056
42057         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42058
42059         * modules/xreadlink: New file, from GNU gettext with modifications.
42060         * lib/xreadlink.c: New file, from GNU gettext.
42061         * lib/xreadlink.h: Add comments.
42062         (xreadlink): New declaration.
42063
42064         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42065         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42066         lib/xreadlink-with-size.c.
42067         (configure.ac): Remove gl_XREADLINK invocation.
42068         (Makefile.am): Augment lib_SOURCES.
42069         * m4/xreadlink.m4: Remove file.
42070         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42071         (xreadlink_with_size): Renamed from xreadink.
42072         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42073         * modules/canonicalize (Depends-on): Replace xreadlink with
42074         xreadlink-with-size.
42075         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42076
42077 2007-02-25  Jim Meyering  <jim@meyering.net>
42078
42079         * build-aux/announce-gen: When complaining about excess arguments,
42080         list them.
42081
42082 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42083
42084         * README: Document signed integer overflow situation more
42085         accurately.
42086
42087 2007-02-25  Bruno Haible  <bruno@clisp.org>
42088
42089         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42090         'a' or 'A' conversion.
42091
42092 2007-02-25  Bruno Haible  <bruno@clisp.org>
42093
42094         * modules/filename: Renamed from modules/pathname.
42095         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42096         lib/concatpath.c with lib/concat-filename.c.
42097         (Makefile.am): Update.
42098         (Include): Replace pathname.h with filename.h.
42099         * lib/filename.h: Renamed from lib/pathname.h.
42100         (concatenated_filename): Renamed from concatenated_pathname.
42101         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42102         (concatenated_filename): Renamed from concatenated_pathname.
42103         * lib/findprog.c: Include filename.h instead of pathname.h.
42104         (find_in_path): Update.
42105         * lib/javacomp.c: Include filename.h instead of pathname.h.
42106         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42107         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42108         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42109         is_oldgcj_14_13_usable, is_javac_usable): Update.
42110         * lib/javaexec.c: Include filename.h instead of pathname.h.
42111         (execute_java_class): Update.
42112         * modules/findprog: Update.
42113         * modules/javacomp: Update.
42114         * modules/javaexec: Update.
42115         * MODULES.html.sh (File system functions): Add 'filename', remove
42116         'pathname'.
42117
42118 2007-02-25  Bruno Haible  <bruno@clisp.org>
42119
42120         * modules/printf-frexpl-tests: New file.
42121         * tests/test-printf-frexpl.c: New file.
42122
42123         * modules/printf-frexpl: New file.
42124         * lib/printf-frexpl.h: New file.
42125         * lib/printf-frexpl.c: New file.
42126         * m4/printf-frexpl.m4: New file.
42127
42128 2007-02-25  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/printf-frexp-tests: New file.
42131         * tests/test-printf-frexp.c: New file.
42132
42133         * modules/printf-frexp: New file.
42134         * lib/printf-frexp.h: New file.
42135         * lib/printf-frexp.c: New file.
42136         * m4/printf-frexp.m4: New file.
42137
42138 2007-02-25  Bruno Haible  <bruno@clisp.org>
42139
42140         Assume automake >= 1.10 for the tests.
42141         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42142         * modules/arctwo-tests: Likewise.
42143         * modules/argp-tests: Likewise.
42144         * modules/avltree-list-tests: Likewise.
42145         * modules/avltree-oset-tests: Likewise.
42146         * modules/avltreehash-list-tests: Likewise.
42147         * modules/carray-list-tests: Likewise.
42148         * modules/crc-tests: Likewise.
42149         * modules/des-tests: Likewise.
42150         * modules/gc-arcfour-tests: Likewise.
42151         * modules/gc-arctwo-tests: Likewise.
42152         * modules/gc-des-tests: Likewise.
42153         * modules/gc-hmac-md5-tests: Likewise.
42154         * modules/gc-hmac-sha1-tests: Likewise.
42155         * modules/gc-md2-tests: Likewise.
42156         * modules/gc-md4-tests: Likewise.
42157         * modules/gc-md5-tests: Likewise.
42158         * modules/gc-pbkdf2-sha1-tests: Likewise.
42159         * modules/gc-rijndael-tests: Likewise.
42160         * modules/gc-sha1-tests: Likewise.
42161         * modules/gc-tests: Likewise.
42162         * modules/getaddrinfo-tests: Likewise.
42163         * modules/hmac-md5-tests: Likewise.
42164         * modules/hmac-sha1-tests: Likewise.
42165         * modules/linked-list-tests: Likewise.
42166         * modules/linkedhash-list-tests: Likewise.
42167         * modules/lock-tests: Likewise.
42168         * modules/md2-tests: Likewise.
42169         * modules/md4-tests: Likewise.
42170         * modules/md5-tests: Likewise.
42171         * modules/rbtree-list-tests: Likewise.
42172         * modules/rbtree-oset-tests: Likewise.
42173         * modules/rbtreehash-list-tests: Likewise.
42174         * modules/read-file-tests: Likewise.
42175         * modules/rijndael-tests: Likewise.
42176         * modules/stdint-tests: Likewise.
42177         * modules/tls-tests: Likewise.
42178
42179 2007-02-24  Bruno Haible  <bruno@clisp.org>
42180
42181         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42182         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42183         function; instead check whether isnan with a double argument links.
42184         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42185         function; instead check whether isnan with a 'long double' argument
42186         links.
42187         Reported by Eric Blake <ebb9@byu.net>.
42188
42189 2007-02-24  Bruno Haible  <bruno@clisp.org>
42190
42191         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42192         defined.
42193         * lib/isnanl.c: Remove all code. Just include isnan.c.
42194         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42195
42196 2007-02-25  Jim Meyering  <jim@meyering.net>
42197
42198         Avoid conflicting types for 'unsetenv' on FreeBSD.
42199         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42200         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42201         in stdlib.h.
42202
42203 2007-02-24  Bruno Haible  <bruno@clisp.org>
42204
42205         * modules/isnanl-nolibm-tests: New file.
42206         * tests/test-isnanl.c: New file.
42207
42208         * modules/isnanl-nolibm: New file.
42209         * lib/isnanl.h: New file.
42210         * lib/isnanl.c: New file.
42211         * m4/isnanl.m4: New file.
42212
42213 2007-02-24  Bruno Haible  <bruno@clisp.org>
42214
42215         * modules/isnan-nolibm-tests: New file.
42216         * tests/test-isnan.c: New file.
42217
42218         * modules/isnan-nolibm: New file.
42219         * lib/isnan.h: New file.
42220         * lib/isnan.c: New file.
42221         * m4/isnan.m4: New file.
42222
42223 2007-02-24  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42226         assume that an exponent fits in 20 bits.
42227
42228 2007-02-24  Jim Meyering  <jim@meyering.net>
42229
42230         * m4/regex.m4: Update the description of the configure-time option,
42231         --without-included-regex, to state accurately what the defaults are,
42232         and perhaps to give people an idea why using this option is risky.
42233
42234 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42235
42236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42237         loops on small arguments.  This attempts to avoid the problem
42238         Bruno Haible reported for AIX 4.3.2 in
42239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42240
42241 2007-02-23  Bruno Haible  <bruno@clisp.org>
42242
42243         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42244         Needed for help2man.
42245
42246 2007-02-23  Karl Berry  <karl@gnu.org>
42247
42248         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42249         exists, foo.h should be cvs-ignored, not committed.
42250
42251 2007-02-23  Eric Blake  <ebb9@byu.net>
42252
42253         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42254         * lib/stat-time.h (includes): Likewise.
42255         * lib/utimecmp.c (includes): Likewise.
42256         * lib/utimens.h (includes): Likewise.
42257         * lib/getdate.y (includes): Also include "timespec.h" for use
42258         internal to the module.
42259         * modules/utimens (Depends-on): Revert yesterday's patch.
42260         * modules/nanosleep (Depends-on): Add missing dependency.
42261
42262 2007-02-22  Bruno Haible  <bruno@clisp.org>
42263
42264         * lib/glob.c: Don't include getlogin_r.h.
42265
42266 2007-02-22  Jim Meyering  <jim@meyering.net>
42267
42268         * modules/utimens (Depends-on): Add timespec, required for
42269         utimens.h's inclusion of timespec.h.
42270
42271 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42272
42273         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42274         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42275         Schwab in
42276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42277         I'll try to think of a better way to fix the Solaris problem.
42278
42279         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42280         like glibc; on Solaris 10, it fails with errno == EINVAL.
42281         POSIX says the behavior is unspecified if the first argument is NULL,
42282         so play it safe and never pass NULL to the system getcwd.
42283
42284 2007-02-21  Jim Meyering  <jim@meyering.net>
42285
42286         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42287         of gettimeofday.  It would conflict with the one now always
42288         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42289         an IRIX 6.5 build failure.
42290
42291 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42292
42293         Minor fixups to port to Solaris 10 with Sun C 5.8.
42294         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42295         * modules/getcwd (Depends-on): Add dirfd.
42296         * lib/putenv.c (putenv): #undef it.
42297         (rpl_putenv): New decl.
42298         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42299
42300 2007-02-20  Bruno Haible  <bruno@clisp.org>
42301
42302         * modules/stdio-tests: New file.
42303         * tests/test-stdio.c: New file.
42304
42305         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42306         (Depends-on): Add stdio.
42307         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42308         (Include): Use <stdio.h> instead of vsnprintf.h.
42309         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42310         HAVE_DECL_VSNPRINTF.
42311         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42312
42313         * modules/snprintf (Files): Remove lib/snprintf.h.
42314         (Depends-on): Add stdio.
42315         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42316         (Include): Use <stdio.h> instead of snprintf.h.
42317         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42318         HAVE_DECL_SNPRINTF.
42319         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42320         * lib/getaddrinfo.c: Likewise.
42321
42322         * modules/stdio: New file.
42323         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42324         * lib/snprintf.h: Remove file.
42325         * lib/vsnprintf.h: Remove file.
42326         * lib/.cppi-disable: Remove snprintf.h.
42327         * m4/stdio_h.m4: New file.
42328         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42329
42330 2007-02-20  Jim Meyering  <jim@meyering.net>
42331
42332         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42333         used by e.g., mingw.  From Bruno Haible.
42334
42335 2007-02-19  Bruno Haible  <bruno@clisp.org>
42336
42337         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42338         warnings.
42339         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42340
42341 2007-02-19  Bruno Haible  <bruno@clisp.org>
42342
42343         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42344         from mingw users.
42345
42346 2007-02-19  Bruno Haible  <bruno@clisp.org>
42347
42348         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42349         warnings.
42350         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42351
42352 2007-02-19  Jim Meyering  <jim@meyering.net>
42353
42354         Don't use FD after a successful "fdopendir (fd)".
42355         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42356         Reset it by calling dirfd on the just-obtained DIR*.
42357
42358         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42359         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42360
42361 2007-02-18  Bruno Haible  <bruno@clisp.org>
42362
42363         * lib/readlink.c: Include <unistd.h>.
42364         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42365         HAVE_READLINK.
42366         * modules/readlink (Depends-on): Add unistd.
42367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42368         (Include): Add <unistd.h>.
42369
42370         * lib/getlogin_r.h: Remove file.
42371         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42372         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42373         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42374         HAVE_DECL_GETLOGIN_R.
42375         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42376         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42377         (Include): Use <unistd.h> instead of getlogin_r.h.
42378
42379         * lib/getcwd.h: Remove file.
42380         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42381         * lib/xgetcwd.c: Likewise.
42382         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42383         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42384         * modules/getcwd (Files): Remove lib/getcwd.h.
42385         (Depends-on): Add unistd.
42386         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42387         (Include): Use <unistd.h> instad of getcwd.h.
42388
42389         * lib/ftruncate.c: Include <unistd.h> first.
42390         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42391         Set HAVE_FTRUNCATE.
42392         * modules/ftruncate (Depends-on): Add unistd.
42393         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42394
42395         * lib/fchdir.c: Include <unistd.h> first.
42396         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42398         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42399         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42400         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42401
42402         * lib/dup2.c: Include <unistd.h> first.
42403         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
42404         HAVE_DUP2.
42405         * modules/dup2 (Depends-on): Add unistd.
42406         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42407
42408         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
42409         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
42410         REPLACE_CHOWN. Don't define chown as a macro here.
42411         * modules/chown (Depends-on): Add unistd.
42412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42413
42414         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
42415         Add definition for GL_LINK_WARNING.
42416         (chown, dup2): New declarations.
42417         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
42418         link warning.
42419         (ftruncate): New declaration.
42420         (getcwd): New declaration, taken from old getcwd.h.
42421         (getlogin_r): New declaration, taken from old getlogin_r.h.
42422         (readlink): New declaration.
42423         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
42424         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
42425         (gl_PREREQ_UNISTD): Remove macro.
42426         (gl_UNISTD_MODULE_INDICATOR): New macro.
42427         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
42428         many new variables. Don't set UNISTD_H.
42429         * modules/unistd (Description): Change.
42430         (Depends-on): Add link-warning.
42431         (configure.ac): Update.
42432         (Makefile.am): Create unistd.h always. Substitute many new variables
42433         into it.
42434
42435 2007-02-18  Bruno Haible  <bruno@clisp.org>
42436
42437         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
42438         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
42439         HAVE_GETSUBOPT.
42440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
42441         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
42442         * lib/getsubopt.h: Remove file.
42443         * modules/getsubopt (Files): Remove lib/getsubopt.h.
42444         (Depends-on): Add stdlib.
42445         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42446         (Includes): Use <stdlib.h> instead of getsubopt.h.
42447         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
42448         Set HAVE_GETSUBOPT.
42449         * lib/getsubopt.c: Don't include getsubopt.h.
42450
42451 2007-02-18  Bruno Haible  <bruno@clisp.org>
42452
42453         * modules/fchdir (Depends-on): Add dup2.
42454
42455 2007-02-18  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/stdlib_.h: Handle glibc's special invocation convention
42458         specially.
42459
42460 2007-02-18  Bruno Haible  <bruno@clisp.org>
42461
42462         * modules/stdlib-tests: New file.
42463         * tests/test-stdlib.c: New file.
42464
42465         * modules/mkstemp (Files): Remove lib/mkstemp.h.
42466         (Depends-on): Add stdlib.
42467         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42468         (Includes): Use <stdlib.h> instead of mkstemp.h.
42469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42470         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
42471         * lib/mkstemp.c: Don't include mkstemp.h.
42472         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
42473         * lib/stdlib--.h: Don't include mkstemp.h.
42474
42475         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
42476         (Depends-on): Add stdlib.
42477         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42478         (Includes): Use <stdlib.h> instead of mkdtemp.h.
42479         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
42480         HAVE_MKDTEMP.
42481         * lib/mkdtemp.c: Don't include mkdtemp.h.
42482         * lib/clean-temp.c: Don't include mkdtemp.h.
42483
42484         * modules/exit (Files): Remove lib/exit.h.
42485         (Depends-on): Add stdlib.
42486         (Makefile.am): Remove lib_SOURCES.
42487         (Include): Use <stdlib.h> instead of exit.h.
42488         * lib/argmatch.c: Don't include exit.h.
42489         * lib/execute.c: Likewise.
42490         * lib/pagealign_alloc.c: Likewise.
42491         * lib/pipe.c: Likewise.
42492         * lib/wait-process.c: Likewise.
42493         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
42494         * lib/exitfail.c: Likewise.
42495         * lib/savewd.c: Likewise.
42496         * lib/xsetenv.c: Likewise.
42497
42498         * modules/stdlib: New file.
42499         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
42500         and extra comments about mkstemp().
42501         * lib/exit.h: Remove file.
42502         * lib/mkdtemp.h: Remove file.
42503         * lib/mkstemp.h: Remove file.
42504         * m4/stdlib_h.m4: New file.
42505         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
42506
42507 2007-02-18  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/math-tests: New file.
42510         * tests/test-math.c: New file.
42511
42512         * modules/math: New file.
42513         * modules/mathl (Files): Remove lib/mathl.h.
42514         (Depends-on): Add math.
42515         (Makefile.am): Don't mention mathl.h.
42516         (Include): Use <math.h> instead of mathl.h.
42517         * lib/math_.h: New file.
42518         * lib/mathl.h: Remove file.
42519         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
42520         mathl.h.
42521         * lib/asinl.c: Likewise.
42522         * lib/atanl.c: Likewise.
42523         * lib/ceill.c: Likewise.
42524         * lib/cosl.c: Likewise.
42525         * lib/expl.c: Likewise.
42526         * lib/floorl.c: Likewise.
42527         * lib/frexpl.c: Likewise.
42528         * lib/ldexpl.c: Likewise.
42529         * lib/logl.c: Likewise.
42530         * lib/sincosl.c: Likewise.
42531         * lib/sinl.c: Likewise.
42532         * lib/sqrtl.c: Likewise.
42533         * lib/tanl.c: Likewise.
42534         * lib/trigl.c: Likewise.
42535         * m4/math_h.m4: New file.
42536         * MODULES.html.sh (Mathematics): Add math.
42537
42538 2007-02-17  Bruno Haible  <bruno@clisp.org>
42539
42540         * modules/wctype-tests: New file.
42541         * tests/test-wctype.c: New file.
42542
42543         * modules/wchar-tests: New file.
42544         * tests/test-wchar.c: New file.
42545
42546         * modules/unistd-tests: New file.
42547         * tests/test-unistd.c: New file.
42548
42549         * modules/time-tests: New file.
42550         * tests/test-time.c: New file.
42551
42552         * modules/sysexits-tests: New file.
42553         * tests/test-sysexits.c: New file.
42554
42555         * modules/sys_time-tests: New file.
42556         * tests/test-sys_time.c: New file.
42557
42558         * modules/sys_stat-tests: New file.
42559         * tests/test-sys_stat.c: New file.
42560
42561         * modules/sys_socket-tests: New file.
42562         * tests/test-sys_socket.c: New file.
42563
42564         * modules/sys_select-tests: New file.
42565         * tests/test-sys_select.c: New file.
42566
42567         * modules/string-tests: New file.
42568         * tests/test-string.c: New file.
42569
42570         * modules/stdbool-tests: New file.
42571         * tests/test-stdbool.c: New file.
42572
42573         * modules/netinet_in-tests: New file.
42574         * tests/test-netinet_in.c: New file.
42575
42576         * modules/inttypes-tests: New file.
42577         * tests/test-inttypes.c: New file.
42578
42579         * modules/fcntl-tests: New file.
42580         * tests/test-fcntl.c: New file.
42581
42582         * modules/byteswap-tests: New file.
42583         * tests/test-byteswap.c: New file.
42584
42585         * modules/arpa_inet-tests: New file.
42586         * tests/test-arpa_inet.c: New file.
42587
42588 2007-02-17  Bruno Haible  <bruno@clisp.org>
42589
42590         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
42591         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
42592         if the corresponding module is not enabled. Emit link warnings if
42593         the function is used nevertheless.
42594         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
42595         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
42596         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
42597         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
42598         * modules/inttypes (Depends-on): Add link-warning.
42599         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42600         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
42601         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
42602         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
42603         * modules/imaxdiv (configure.ac): Likewise.
42604         * modules/strtoimax (configure.ac): Likewise.
42605         * modules/strtoumax (configure.ac): Likewise.
42606
42607 2007-02-17  Bruno Haible  <bruno@clisp.org>
42608
42609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
42610         gl_STRING_MODULE_INDICATOR_DEFAULTS.
42611         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
42612         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
42613
42614 2007-02-17  Bruno Haible  <bruno@clisp.org>
42615
42616         * modules/link-warning: New file.
42617         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
42618         * lib/string_.h (GL_LINK_WARNING): Remove definition.
42619         * modules/string (Depends-on): Add link-warning.
42620         (Makefile.am): Copy the contents of build-aux/link-warning.h into
42621         string.h.
42622         * MODULES.html.sh (Support for building libraries and executables): Add
42623         link-warning.
42624
42625 2007-02-17  Bruno Haible  <bruno@clisp.org>
42626
42627         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
42628         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
42629         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
42630         long lines.
42631
42632 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
42633             Bruno Haible  <bruno@clisp.org>
42634
42635         * modules/tmpfile: New file.
42636         * lib/tmpfile.c: New file.
42637         * m4/tmpfile.m4: New file.
42638         * MODULES.html.sh (func_all_modules): New section "Input/output".
42639
42640 2007-02-15  Bruno Haible  <bruno@clisp.org>
42641
42642         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
42643         (supports_delete_on_close): New function.
42644         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
42645
42646 2007-02-14  Bruno Haible  <bruno@clisp.org>
42647
42648         * modules/mbspcasecmp-tests: New file.
42649         * tests/test-mbspcasecmp.sh: New file.
42650         * tests/test-mbspcasecmp.c: New file.
42651
42652         New module mbspcasecmp.
42653         * modules/mbspcasecmp: New file.
42654         * lib/mbspcasecmp.c: New file.
42655         * lib/string_.h (strncasecmp): Change warning message.
42656         (mbspcasecmp): New declaration.
42657         * m4/mbspcasecmp.m4: New file.
42658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42659         GNULIB_MBSPCASECMP.
42660         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
42661         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
42662
42663 2007-02-14  Bruno Haible  <bruno@clisp.org>
42664
42665         * modules/mbsncasecmp-tests: New file.
42666         * tests/test-mbsncasecmp.sh: New file.
42667         * tests/test-mbsncasecmp.c: New file.
42668
42669         New module mbsncasecmp.
42670         * modules/mbsncasecmp: New file.
42671         * lib/mbsncasecmp.c: New file.
42672         * lib/string_.h (mbsncasecmp): New declaration.
42673         * m4/mbsncasecmp.m4: New file.
42674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42675         GNULIB_MBSNCASECMP.
42676         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
42677         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
42678
42679 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
42680
42681         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
42682         Verify that it doesn't overlap with our flags.
42683         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
42684         do not have the desired effect in multibyte locales; instead, use
42685         mbscasecmp.
42686         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
42687         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
42688         we don't require GNU fnmatch ourselves (if our users require it, they
42689         should do so explicitly).
42690
42691         Fix regex code so it doesn't rely on strcasecmp.
42692         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
42693         Otherwise, include gnulib's langinfo.h.
42694         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
42695         undesirable behavior in non-C locales.  Instead, rely on localecharset.
42696         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
42697         * modules/regex (FILES): Remove m4/codeset.m4.
42698         (Depends-on): Add localcharset.  Remove strcase.
42699
42700 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42701
42702         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
42703         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42704
42705 2007-02-13  Bruno Haible  <bruno@clisp.org>
42706
42707         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
42708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42709
42710 2007-02-12  Bruno Haible  <bruno@clisp.org>
42711
42712         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42713         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
42714         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
42715         time warning rather than a link error.
42716
42717 2007-02-12  Bruno Haible  <bruno@clisp.org>
42718
42719         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
42720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42721         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42722
42723 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42724
42725         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
42726         args, not 2.
42727
42728 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42729
42730         New module 'time', so that apps can include <time.h> as per
42731         POSIX and GNU instead of separate include files like time_r.h
42732         and timegm.h.  This implementation tries out a simpler approach
42733         for replacing decls in standard include files (as compared to
42734         the string module), somewhat as an experiment.
42735
42736         * config/srclist.txt: Comment out mktime.c for now.
42737         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
42738         since it doesn't apply any more.  Use generic wording instead.
42739         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
42740         'time'.
42741         * lib/time_.h, m4/time_h.m4, modules/time: New files.
42742         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
42743         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
42744         Don't include <sys/types.h>; no longer needed since we assume C89.
42745         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
42746         * lib/strftime.c: Likewise.
42747         * lib/time_r.c: Likewise.
42748         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
42749         * lib/nanosleep.c: Include <time.h> first, to check interface.
42750         * lib/strptime.c: Likewise.
42751         * lib/time_r.c: Likewise.
42752         * lib/timegm.c: Likewise.
42753         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
42754         needed.
42755         * lib/timegm.c: Don't include timegm.h; no longer needed.
42756         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
42757         time.h now handles any problems in that area.
42758         (struct timespec, nanosleep): Remove; time.h now arranges for these.
42759         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
42760         that time.h defines struct timespec.
42761         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
42762         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
42763         handles that.
42764         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
42765         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
42766         needed.  Set REPLACE_LOCALTIME.
42767         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
42768         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
42769         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
42770         nanosleep; time_h.m4 now does that.  Don't require
42771         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
42772         module handles this now.
42773         * modules/getdate (Depends-on): Remove timespec.  Add time.
42774         * modules/nanosleep (Depends-on): Likewise.
42775         * modules/stat-time (Depends-on): Likewise.
42776         * modules/nanosleep (Include): Include time.h, not timespec.h.
42777         * modules/strptime (Files): Remove lib/strptime.h.
42778         (Depends-on): Add extensions, time.
42779         (Include): Include time.h, not strptime.h.
42780         * modules/time_r (Files): Remove lib/time_r.h.
42781         (Depends-on): Add time.
42782         (Include): Include time.h, not time_r.h.
42783         * modules/timegm: Likewise.
42784         * modules/timespec (Description): Now does timespec-related decls
42785         of our own, instead of struct timespec itself.
42786         (Depends-on): Add time; remove extensions.
42787         (Maintainer): Add self.
42788         * modules/utimecmp (Depends-on): Add time; remove timespec.
42789         * modules/utimens (Depends-on): Likewise.
42790         * modules/xnanosleep (Depends-on): Likewise.
42791
42792 2007-02-11  Bruno Haible  <bruno@clisp.org>
42793
42794         * lib/c-strstr.c: Include allocsa.h.
42795         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42796         * lib/c-strcasestr.c: Include allocsa.h.
42797         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42798         * lib/strcasestr.c: Include allocsa.h.
42799         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42800         * lib/mbsstr.c: Include allocsa.h.
42801         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42802         allocsa/freesa instead of malloc/free.
42803         * lib/mbscasestr.c: Include allocsa.h.
42804         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42805         allocsa/freesa instead of malloc/free.
42806         * modules/c-strstr (Depends-on): Add allocsa.
42807         * modules/c-strcasestr (Depends-on): Likewise.
42808         * modules/strcasestr (Depends-on): Likewise.
42809         * modules/mbsstr (Depends-on): Likewise.
42810         * modules/mbscasestr (Depends-on): Likewise.
42811
42812 2007-02-11  Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
42815
42816         * modules/mbsspn-tests: New file.
42817         * tests/test-mbsspn.sh: New file.
42818         * tests/test-mbsspn.c: New file.
42819
42820 2007-02-11  Bruno Haible  <bruno@clisp.org>
42821
42822         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
42823
42824         * modules/mbspbrk-tests: New file.
42825         * tests/test-mbspbrk.sh: New file.
42826         * tests/test-mbspbrk.c: New file.
42827
42828 2007-02-11  Bruno Haible  <bruno@clisp.org>
42829
42830         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
42831         unneeded cast.
42832
42833         * modules/mbscspn-tests: New file.
42834         * tests/test-mbscspn.sh: New file.
42835         * tests/test-mbscspn.c: New file.
42836
42837 2007-02-11  Bruno Haible  <bruno@clisp.org>
42838
42839         * modules/mbscasecmp-tests: New file.
42840         * tests/test-mbscasecmp.sh: New file.
42841         * tests/test-mbscasecmp.c: New file.
42842
42843 2007-02-11  Bruno Haible  <bruno@clisp.org>
42844
42845         Ensure O(n) worst-case complexity of mbscasestr.
42846         * lib/mbscasestr.c: Include stdbool.h.
42847         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42848         functions.
42849         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
42850         the bookkeeping indicates that it's worth it.
42851         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
42852
42853         * modules/mbscasestr-tests: New file.
42854         * tests/test-mbscasestr1.c: New file.
42855         * tests/test-mbscasestr2.sh: New file.
42856         * tests/test-mbscasestr2.c: New file.
42857         * tests/test-mbscasestr3.sh: New file.
42858         * tests/test-mbscasestr3.c: New file.
42859         * tests/test-mbscasestr4.sh: New file.
42860         * tests/test-mbscasestr4.c: New file.
42861         * m4/locale-tr.m4: New file.
42862
42863 2007-02-11  Bruno Haible  <bruno@clisp.org>
42864
42865         Ensure O(n) worst-case complexity of mbsstr.
42866         * lib/mbsstr.c: Include stdbool.h.
42867         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42868         functions.
42869         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
42870         bookkeeping indicates that it's worth it.
42871         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
42872
42873         * modules/mbsstr-tests: New file.
42874         * tests/test-mbsstr1.c: New file.
42875         * tests/test-mbsstr2.sh: New file.
42876         * tests/test-mbsstr2.c: New file.
42877         * tests/test-mbsstr3.sh: New file.
42878         * tests/test-mbsstr3.c: New file.
42879         * m4/locale-fr.m4: New file.
42880
42881 2007-02-11  Bruno Haible  <bruno@clisp.org>
42882
42883         * lib/mbsrchr.c (mbsrchr): Fix bug.
42884
42885         * modules/mbsrchr-tests: New file.
42886         * tests/test-mbsrchr.sh: New file.
42887         * tests/test-mbsrchr.c: New file.
42888
42889 2007-02-11  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/mbschr.c (mbschr): Fix bug.
42892
42893         * modules/mbschr-tests: New file.
42894         * tests/test-mbschr.sh: New file.
42895         * tests/test-mbschr.c: New file.
42896         * m4/locale-zh.m4: New file.
42897
42898 2007-02-11  Bruno Haible  <bruno@clisp.org>
42899
42900         Support for copying multibyte string iterators.
42901         * lib/mbiter.h: Include <string.h>.
42902         (mbiter_multi_copy): New function.
42903         (mbi_copy): New macro.
42904         * lib/mbuiter.h: Include <string.h>.
42905         (mbuiter_multi_copy): New function.
42906         (mbui_copy): New macro.
42907
42908 2007-02-11  Bruno Haible  <bruno@clisp.org>
42909
42910         New module mbslen.
42911         * modules/mbslen: New file.
42912         * lib/mbslen.c: New file.
42913         * lib/string_.h (mbslen): New declaration.
42914         * m4/mbslen.m4: New file.
42915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42916         GNULIB_MBSLEN.
42917         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
42918         * MODULES.html.sh (Internationalization functions): Add mbslen.
42919
42920 2007-02-11  Bruno Haible  <bruno@clisp.org>
42921
42922         Ensure O(n) worst-case complexity of strcasestr substitute.
42923         * lib/strcasestr.c: Include stdbool.h.
42924         (knuth_morris_pratt): New function.
42925         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42926         bookkeeping indicates that it's worth it.
42927         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
42928
42929         * modules/strcasestr-tests: New file.
42930         * tests/test-strcasestr.c: New file.
42931
42932 2007-02-11  Bruno Haible  <bruno@clisp.org>
42933
42934         Ensure O(n) worst-case complexity of c_strcasestr.
42935         * lib/c-strcasestr.c: Include stdbool.h, string.h.
42936         (knuth_morris_pratt): New function.
42937         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
42938         the bookkeeping indicates that it's worth it.
42939         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
42940
42941         * modules/c-strcasestr-tests: New file.
42942         * tests/test-c-strcasestr.c: New file.
42943
42944 2007-02-11  Bruno Haible  <bruno@clisp.org>
42945
42946         Ensure O(n) worst-case complexity of c_strstr.
42947         * lib/c-strstr.c: Include stdbool.h, string.h.
42948         (knuth_morris_pratt): New function.
42949         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42950         bookkeeping indicates that it's worth it.
42951         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
42952
42953         * lib/c-strstr.c: Complete rewrite for maintainability.
42954
42955         * modules/c-strstr-tests: New file.
42956         * tests/test-c-strstr.c: New file.
42957
42958 2007-02-11  Bruno Haible  <bruno@clisp.org>
42959
42960         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
42961         5.2.1 and earlier, whereby \055 was treated just like the range
42962         delimiter '-'.
42963         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42964
42965 2007-02-08  Bruno Haible  <bruno@clisp.org>
42966
42967         * modules/regex (Depends-on): Add stdbool.
42968         Reported by Dalibor Topic <robilad@kaffe.org>.
42969
42970 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42971
42972         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42973         Prefer returning from main to exiting from it.
42974         Remove unnecessary parens after sizeof.
42975
42976 2007-02-05  Bruno Haible  <bruno@clisp.org>
42977
42978         New module mbssep.
42979         * modules/mbssep: New file.
42980         * lib/mbssep.c: New file.
42981         * lib/string_.h (strsep): Add a conditional link warning.
42982         (mbssep): New declaration.
42983         * m4/mbssep.m4: New file.
42984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42985         GNULIB_MBSSEP.
42986         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42987         * MODULES.html.sh (Internationalization functions): Add mbssep.
42988
42989 2007-02-05  Bruno Haible  <bruno@clisp.org>
42990
42991         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42992         Optimize search in case of 1 delimiter.
42993
42994 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42995
42996         * lib/acl.h: Include sys/types.h before sys/acl.h.
42997
42998 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42999
43000         Merge upstream fix for glibc bugzilla #3957:
43001
43002         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43003
43004         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43005         bit for RE_HAT_LISTS_NOT_NEWLINE.
43006         (build_charclass_op): Remove bogus comment.
43007
43008 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43009
43010         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43011
43012 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43013
43014         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43015         * lib/memmem.c [!defined _LIBC]: Include config.h.
43016
43017 2007-02-04  Bruno Haible  <bruno@clisp.org>
43018
43019         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43020         warning message.
43021
43022 2007-02-04  Bruno Haible  <bruno@clisp.org>
43023
43024         New module mbstok_r.
43025         * modules/mbstok_r: New file.
43026         * lib/mbstok_r.c: New file.
43027         * lib/string_.h (strtok_r): Change argument names to match the
43028         comments. Add a conditional link warning.
43029         (mbstok_r): New declaration.
43030         * m4/mbstok_r.m4: New file.
43031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43032         GNULIB_MBSTOK_R.
43033         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43034         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43035
43036 2007-02-04  Bruno Haible  <bruno@clisp.org>
43037
43038         New module mbsspn.
43039         * modules/mbsspn: New file.
43040         * lib/mbsspn.c: New file.
43041         * lib/string_.h (strspn): Add a conditional link warning.
43042         (mbsspn): New declaration.
43043         * m4/mbsspn.m4: New file.
43044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43045         GNULIB_MBSSPN.
43046         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43047         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43048
43049 2007-02-04  Bruno Haible  <bruno@clisp.org>
43050
43051         New module mbspbrk.
43052         * modules/mbspbrk: New file.
43053         * lib/mbspbrk.c: New file.
43054         * lib/string_.h (strpbrk): Add a conditional link warning.
43055         (mbspbrk): New declaration.
43056         * m4/mbspbrk.m4: New file.
43057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43058         GNULIB_MBSPBRK.
43059         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43060         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43061
43062 2007-02-04  Bruno Haible  <bruno@clisp.org>
43063
43064         New module mbscspn.
43065         * modules/mbscspn: New file.
43066         * lib/mbscspn.c: New file.
43067         * lib/string_.h (strcspn): Add a conditional link warning.
43068         (mbscspn): New declaration.
43069         * m4/mbscspn.m4: New file.
43070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43071         GNULIB_MBSCSPN.
43072         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43073         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43074
43075 2007-02-04  Bruno Haible  <bruno@clisp.org>
43076
43077         New module mbscasestr, reduced goal of strcasestr.
43078         * modules/mbscasestr: New file.
43079         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43080         (mbscasestr): Renamed from strcasestr.
43081         * lib/strcasestr.c: Don't include mbuiter.h.
43082         (strcasestr): Remove support for multibyte locales.
43083         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43084         Change the conditional link warning.
43085         (mbscasestr): New declaration.
43086         * m4/mbscasestr.m4: New file.
43087         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43088         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43089         REPLACE_STRCASESTR.
43090         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43092         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43093         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43094         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43095         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43096         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43097         (Depends-on): Remove mbuiter.
43098         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43099
43100 2007-02-04  Bruno Haible  <bruno@clisp.org>
43101
43102         Simplify handling of strncasecmp.
43103         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43104         the conditional link warning.
43105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43106         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43107         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43108         * modules/strcase (configure.ac): Don't invoke
43109         gl_STRING_MODULE_INDICATOR.
43110         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43111
43112 2007-02-04  Bruno Haible  <bruno@clisp.org>
43113
43114         New module mbscasecmp, reduced goal of strcasecmp.
43115         * modules/mbscasecmp: New file.
43116         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43117         (mbscasecmp): Renamed from strcasecmp.
43118         * lib/strcasecmp.c: Don't include mbuiter.h.
43119         (strcasecmp): Remove support for multibyte locales.
43120         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43121         Change the conditional link warning.
43122         (mbscasecmp): New declaration.
43123         * m4/mbscasecmp.m4: New file.
43124         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43125         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43126         REPLACE_STRCASECMP.
43127         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43129         GNULIB_MBSCASECMP.
43130         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43131         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43132         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43133         (Depends-on): Remove mbuiter.
43134         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43135
43136 2007-02-04  Bruno Haible  <bruno@clisp.org>
43137
43138         New module mbsstr. Remove module strstr.
43139         * modules/mbsstr: New file.
43140         * modules/strstr: Remove file.
43141         * lib/mbsstr.c: Renamed from lib/strstr.c.
43142         (mbsstr): Renamed from strstr.
43143         * lib/string_.h (strstr): Remove declaration. Change the conditional
43144         link warning.
43145         (mbsstr): New declaration.
43146         * m4/mbsstr.m4: New file.
43147         * m4/strstr.m4: Remove file.
43148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43149         REPLACE_STRSTR.
43150         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43151         Don't initialize GNULIB_STRSTR.
43152         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43153         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43154         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43155         (Support for systems lacking ANSI C 89): Remove strstr.
43156
43157 2007-02-04  Bruno Haible  <bruno@clisp.org>
43158
43159         New module mbsrchr.
43160         * modules/mbsrchr: New file.
43161         * lib/mbsrchr.c: New file.
43162         * lib/string_.h (strrchr): Add a conditional link warning.
43163         (mbsrchr): New declaration.
43164         * m4/mbsrchr.m4: New file.
43165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43166         GNULIB_MBSRCHR.
43167         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43168         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43169
43170 2007-02-04  Bruno Haible  <bruno@clisp.org>
43171
43172         New module mbschr.
43173         * modules/mbschr: New file.
43174         * lib/mbschr.c: New file.
43175         * lib/string_.h (strchr): Add a conditional link warning.
43176         (mbschr): New declaration.
43177         * m4/mbschr.m4: New file.
43178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43179         GNULIB_MBSCHR.
43180         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43181         * MODULES.html.sh (Internationalization functions): Add mbschr.
43182
43183 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43184
43185         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43186
43187         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43188
43189 2007-02-04  Bruno Haible  <bruno@clisp.org>
43190
43191         New module description section 'configure.ac-early'.
43192         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43193         (func_get_autoconf_early_snippet): New function.
43194         (func_import, func_create_testdir): Use it. Remove special cases for
43195         modules 'extensions' and 'lock'.
43196         * modules/extensions (configure.ac-early): Require
43197         gl_USE_SYSTEM_EXTENSIONS.
43198         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43199
43200 2007-02-04  Bruno Haible  <bruno@clisp.org>
43201
43202         Make use of gcj-4.3's -fsource and -ftarget option.
43203         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43204         and if so try the options -fsource and -ftarget.
43205         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43206         source_version, ftarget_option, target_version arguments.
43207         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43208         (is_envjavac_oldgcj_14_14_usable): Renamed from
43209         is_envjavac_gcj_14_14_usable.
43210         (is_envjavac_oldgcj_14_13_usable): Renamed from
43211         is_envjavac_gcj_14_13_usable.
43212         (is_gcj_present): Update.
43213         (is_gcj_43, is_gcj43_usable): New functions.
43214         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43215         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43216         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43217         try the options -fsource and -ftarget.
43218
43219 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43220
43221         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43222         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43223         larger value.
43224
43225 2007-02-03  Jim Meyering  <jim@meyering.net>
43226
43227         Give tools a better chance to allocate space for very large buffers.
43228         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43229
43230         Make pwd and readlink work also when run with an unreadable parent dir
43231         on systems with openat support.
43232         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43233         provided getcwd function, even when we have openat support.
43234         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43235
43236 2007-02-02  Bruno Haible  <bruno@clisp.org>
43237
43238         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43239         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43240         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43241         portability problems if one of these functions is only used on specific
43242         platforms.
43243         Reported by Paul Eggert.
43244
43245 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43246
43247         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43248         is causing more trouble than it's curing.
43249         * lib/regex_internal.h (__mempcpy): Remove.
43250         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43251         (and make the code a tad smaller to boot).
43252         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43253
43254 2007-02-02  Jim Meyering  <jim@meyering.net>
43255
43256         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43257         section, not in the Makefile.am: one.
43258
43259 2007-02-02  Eric Blake  <ebb9@byu.net>
43260
43261         * lib/strchrnul.c: Always include config.h first.
43262
43263         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43264         gnulib strstr is not necessary here.
43265
43266 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43267
43268         * m4/socklen.m4: Fix typo.
43269
43270 2007-02-02  Eric Blake  <ebb9@byu.net>
43271
43272         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43273         * modules/netinet_in (Makefile.am): Likewise.
43274
43275 2007-02-01  Bruno Haible  <bruno@clisp.org>
43276
43277         * lib/string_.h (GL_LINK_WARNING): New macro.
43278         (strcasecmp, strstr, strcasestr): If provided by the system,
43279         conditionally define as a macro that leads to a warning instead of to
43280         an error.
43281         (strncasecmp): Conditionally define as a macro that leads to a warning.
43282
43283 2007-02-01  Karl Berry  <karl@gnu.org>
43284
43285         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43286
43287 2007-02-01  Bruno Haible  <bruno@clisp.org>
43288
43289         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43290         renamings.
43291
43292 2007-02-01  Eric Blake  <ebb9@byu.net>
43293
43294         * modules/regex (Depends-on): Revert dependence on mempcpy.
43295         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43296         module's definition of mempcpy.
43297         Reported by Paul Eggert.
43298
43299 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43300
43301         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43302         the symbol XYZ before redefining it.  This fixes a problem with
43303         programs that don't use XYZ, when compiled on systems that define
43304         XYZ to something else.
43305
43306 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43307
43308         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43309         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43310         writeable to group or other and (2) is intended to have a special
43311         mode bit that is set or cleared.  In such a case, the directory
43312         should be neither group- nor other-writeable until the special
43313         mode bits are right.
43314
43315 2007-01-31  Eric Blake  <ebb9@byu.net>
43316
43317         * modules/mountlist (Depends-on): Add strstr.
43318
43319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43320         bug.
43321         * modules/string (Makefile.am): Remove redundant replacement.
43322         * modules/regex (Depends-on): Add mempcpy.
43323
43324 2007-01-31  Bruno Haible  <bruno@clisp.org>
43325
43326         New module description field 'Link'.
43327         * gnulib-tool (func_usage): Document --extract-link-directive.
43328         (sed_extract_prog): Recognize 'Link' directive.
43329         (func_get_link_directive): New function.
43330         (func_import): Show summary of link directives.
43331         Handle --extract-link-directive option.
43332         * modules/acl (Link): New section.
43333         * modules/clock-time (Link): New section.
43334         * modules/euidaccess (Link): New section.
43335         * modules/gettext (Link): New section.
43336         * modules/iconv (Link): New section.
43337         * modules/lock (Link): New section.
43338         * modules/nanosleep (Link): New section.
43339         * modules/readline (Link): New section.
43340
43341 2007-01-27  Bruno Haible  <bruno@clisp.org>
43342
43343         Enforce the use of gnulib modules for unportable <string.h> functions.
43344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43345         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43346         (gl_HEADER_STRING_H_BODY): Require it.
43347         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43348         the symbol XYZ to one that gives a link error.
43349         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43350         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43351         * modules/mempcpy (configure.ac): Likewise.
43352         * modules/memrchr (configure.ac): Likewise.
43353         * modules/stpcpy (configure.ac): Likewise.
43354         * modules/stpncpy (configure.ac): Likewise.
43355         * modules/strcase (configure.ac): Likewise.
43356         * modules/strcasestr (configure.ac): Likewise.
43357         * modules/strchrnul (configure.ac): Likewise.
43358         * modules/strdup (configure.ac): Likewise.
43359         * modules/strndup (configure.ac): Likewise.
43360         * modules/strnlen (configure.ac): Likewise.
43361         * modules/strpbrk (configure.ac): Likewise.
43362         * modules/strsep (configure.ac): Likewise.
43363         * modules/strstr (configure.ac): Likewise.
43364         * modules/strtok_r (configure.ac): Likewise.
43365
43366 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43367
43368         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43369
43370 2007-01-30  Jim Meyering  <jim@meyering.net>
43371
43372         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43373
43374 2007-01-29  Bruno Haible  <bruno@clisp.org>
43375
43376         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43377         * lib/execute.c: Likewise.
43378         * lib/pipe.c: Likewise.
43379         * lib/printf-args.h: Likewise.
43380         * lib/printf-args.c: Likewise.
43381         * lib/printf-parse.c: Likewise.
43382         * lib/vasnprintf.c: Likewise.
43383
43384 2007-01-29  Eric Blake  <ebb9@byu.net>
43385
43386         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43387         declaration.
43388
43389 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43390
43391         * lib/strptime.h (strptime): Use 'restrict' for args where
43392         POSIX requires this.
43393         * lib/strptime.c (strptime): Likewise.
43394         Change license notice from LGPL to GPL, since gnulib-tool will
43395         change this as needed.
43396         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43397         defined.
43398         Include "strptime.h" first, to check interface.
43399         Do not #undef _LIBC and _NL_CURRENT.
43400         Do not include <stdlib.h>; no longer needed.
43401         Include "time_r.h" and declare ptime_locale_status
43402         only if _LIBC is not defined.
43403         (__P): Remove unused macro.
43404         (match_string): Bring back glibc version, but use it only if _LIBC
43405         is defined.
43406         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
43407         Remove unnecessary assertion and abort() call.
43408         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
43409         * m4/strptime.m4: Fix serial number comment.
43410         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
43411         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
43412         (Depends-on): Add time_r.
43413
43414 2007-01-29  Bruno Haible  <bruno@clisp.org>
43415
43416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43417         strptime.
43418         * modules/strptime (Depends-on): Add stdbool.
43419         * lib/strptime.h: Include <time.h> always. Add comments.
43420
43421 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43422
43423         * modules/strptime: New file.
43424         * lib/strptime.h: New file.
43425         * lib/strptime.c: New file.
43426         * m4/strptime.m4: New file.
43427
43428 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43429
43430         * MODULES.html.sh: New module mpsort.
43431         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
43432
43433         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
43434         a circularity problem with HP-UX ia64 reported by Bob Proulx in
43435         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
43436         All uses changed.
43437         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
43438         All uses changed.
43439         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
43440         to _Restrict_.
43441         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
43442         the parameter matches the prototype.
43443
43444 2007-01-28  Jim Meyering  <jim@meyering.net>
43445
43446         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
43447         sys/time.h here, reverting that part of the previous patch:
43448         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
43449
43450 2007-01-28  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
43453         value of $(SYS_TIME_H).
43454         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
43455         remove it conditionally, too. [added by Jim Meyering]
43456         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
43457         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43458         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
43459         GETTIMEOFDAY_REPLACEMENT to 1.
43460
43461 2007-01-28  Bruno Haible  <bruno@clisp.org>
43462
43463         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
43464         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
43465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
43466         Set UNISTD_H instead of UNISTD_H2.
43467         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
43468
43469 2007-01-28  Bruno Haible  <bruno@clisp.org>
43470
43471         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
43472         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
43473
43474 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43475
43476         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
43477         (func_create_testdir): Ensure C locale for `grep' and `tr'
43478         character ranges.
43479         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
43480         ACLOCAL_AMFLAGS parsing state machine.
43481
43482 2007-01-27  Bruno Haible  <bruno@clisp.org>
43483
43484         * modules/unistr/base: Update.
43485
43486 2007-01-27  Bruno Haible  <bruno@clisp.org>
43487
43488         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
43489         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
43490         * modules/unistr/u32-mbtouc-unsafe: Renamed from
43491         modules/unistr/u32-mbtouc.
43492         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
43493         * lib/unistr.h: Update.
43494         * lib/linebreak.c: Update.
43495         * modules/unistr/u32-mbtouc: Renamed from
43496         modules/unistr/u32-mbtouc-safe.
43497         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
43498         * lib/unistr.h: Update.
43499         * lib/unistr/u32-to-u8.c: Update.
43500         * lib/unistr/u32-to-u16.c: Update.
43501
43502 2007-01-27  Bruno Haible  <bruno@clisp.org>
43503
43504         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
43505         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
43506         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
43507         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
43508         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
43509         * modules/unistr/u16-mbtouc-unsafe: Renamed from
43510         modules/unistr/u16-mbtouc.
43511         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
43512         * lib/unistr.h: Update.
43513         * lib/linebreak.c: Update.
43514         * modules/linebreak: Update.
43515         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
43516         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
43517         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
43518         * modules/unistr/u16-mbtouc: Renamed from
43519         modules/unistr/u16-mbtouc-safe.
43520         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
43521         * lib/unistr.h: Update.
43522         * lib/unistr/u16-to-u8.c: Update.
43523         * modules/unistr/u16-to-u8: Update.
43524         * lib/unistr/u16-to-u32.c: Update.
43525         * modules/unistr/u16-to-u32: Update.
43526
43527 2007-01-27  Bruno Haible  <bruno@clisp.org>
43528
43529         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
43530         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
43531         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
43532         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
43533         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
43534         * modules/unistr/u8-mbtouc-unsafe: Renamed from
43535         modules/unistr/u8-mbtouc.
43536         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
43537         * lib/unistr.h: Update.
43538         * lib/striconveh.c: Update.
43539         * modules/striconveh: Update.
43540         * lib/linebreak.c: Update.
43541         * modules/linebreak: Update.
43542         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
43543         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
43544         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
43545         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
43546         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
43547         * lib/unistr.h: Update.
43548         * lib/striconveh.c: Update.
43549         * modules/striconveh: Update.
43550         * lib/unistr/u8-to-u16.c: Update.
43551         * modules/unistr/u8-to-u16: Update.
43552         * lib/unistr/u8-to-u32.c: Update.
43553         * modules/unistr/u8-to-u32: Update.
43554
43555 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43556
43557         Sync from Libtool.
43558         * lib/argz.c: Do not include strings.h nor memory.h, include
43559         string.h unconditionally.  Patch by Simon Josefsson.
43560
43561 2007-01-27  Bruno Haible  <bruno@clisp.org>
43562
43563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
43564         from gl_HEADER_STRING_H_BODY.
43565         (gl_HEADER_STRING_H_BODY): Require it.
43566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
43567         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43568         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43569         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43571         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
43572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43573         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43574         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
43575         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43576         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43577         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
43578         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43579         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43580         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43581
43582 2007-01-27  Bruno Haible  <bruno@clisp.org>
43583
43584         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
43585         check_PROGRAMS into noinst_PROGRAMS.
43586         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
43587         check_PROGRAMS in this case.
43588         (func_import): Set for_test to false.
43589         (func_create_testdir): Set for_test to true.
43590
43591 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43592             Bruno Haible  <bruno@clisp.org>
43593
43594         * modules/strcasestr (Files): Remove lib/strcasestr.h.
43595         (Depends-on): Add string.
43596         (Includes): Use <string.h> instead of strcasestr.h.
43597         * modules/string (Makefile.am): Also substitute the value of
43598         REPLACE_STRCASESTR.
43599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
43600         assume strcasestr is declared in <string.h> not <strings.h>. Also
43601         set REPLACE_STRCASESTR.
43602         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
43603         REPLACE_STRCASESTR.
43604         * lib/strcasestr.h: Remove file.
43605         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
43606         * lib/string_.h (strcasestr): New declaration.
43607
43608 2007-01-27  Bruno Haible  <bruno@clisp.org>
43609
43610         * lib/string_.h: Use 'extern'.
43611
43612 2007-01-27  Jim Meyering  <jim@meyering.net>
43613
43614         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
43615         of set-but-not-used local, "q".
43616
43617         * lib/mempcpy.c: Include <config.h> before <string.h>.
43618         This fixes a compilation error on HP-UX, due to the system's
43619         "restrict"-using mempcpy prototype.
43620
43621 2007-01-26  Bruno Haible  <bruno@clisp.org>
43622
43623         Small optimization.
43624         * lib/javacomp.c: Include c-strstr.h.
43625          (is_envjavac_gcj): Use c_strstr instead of strstr.
43626         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
43627
43628 2007-01-26  Bruno Haible  <bruno@clisp.org>
43629
43630         * MODULES.html.sh (Unicode string functions): Add the new modules.
43631
43632         * modules/uniconv/u32-strconv-to-locale: New file.
43633         * lib/uniconv/u32-strconv-to-locale.c: New file.
43634
43635         * modules/uniconv/u16-strconv-to-locale: New file.
43636         * lib/uniconv/u16-strconv-to-locale.c: New file.
43637
43638         * modules/uniconv/u8-strconv-to-locale: New file.
43639         * lib/uniconv/u8-strconv-to-locale.c: New file.
43640
43641         * modules/uniconv/u32-strconv-from-locale: New file.
43642         * lib/uniconv/u32-strconv-from-locale.c: New file.
43643
43644         * modules/uniconv/u16-strconv-from-locale: New file.
43645         * lib/uniconv/u16-strconv-from-locale.c: New file.
43646
43647         * modules/uniconv/u8-strconv-from-locale: New file.
43648         * lib/uniconv/u8-strconv-from-locale.c: New file.
43649
43650         * modules/uniconv/u32-strconv-to-enc: New file.
43651         * lib/uniconv/u32-strconv-to-enc.c: New file.
43652         * modules/uniconv/u32-strconv-to-enc-tests: New file.
43653         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
43654
43655         * modules/uniconv/u16-strconv-to-enc: New file.
43656         * lib/uniconv/u16-strconv-to-enc.c: New file.
43657         * lib/uniconv/u-strconv-to-enc.h: New file.
43658         * modules/uniconv/u16-strconv-to-enc-tests: New file.
43659         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
43660
43661         * modules/uniconv/u8-strconv-to-enc: New file.
43662         * lib/uniconv/u8-strconv-to-enc.c: New file.
43663         * modules/uniconv/u8-strconv-to-enc-tests: New file.
43664         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
43665
43666         * modules/uniconv/u32-strconv-from-enc: New file.
43667         * lib/uniconv/u32-strconv-from-enc.c: New file.
43668         * modules/uniconv/u32-strconv-from-enc-tests: New file.
43669         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
43670
43671         * modules/uniconv/u16-strconv-from-enc: New file.
43672         * lib/uniconv/u16-strconv-from-enc.c: New file.
43673         * modules/uniconv/u16-strconv-from-enc-tests: New file.
43674         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
43675
43676         * modules/uniconv/u8-strconv-from-enc: New file.
43677         * lib/uniconv/u8-strconv-from-enc.c: New file.
43678         * lib/uniconv/u-strconv-from-enc.h: New file.
43679         * modules/uniconv/u8-strconv-from-enc-tests: New file.
43680         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
43681
43682         * modules/uniconv/u32-conv-from-enc: New file.
43683         * lib/uniconv/u32-conv-from-enc.c: New file.
43684         * modules/uniconv/u32-conv-from-enc-tests: New file.
43685         * tests/uniconv/test-u32-conv-from-enc.c: New file.
43686
43687         * modules/uniconv/u16-conv-from-enc: New file.
43688         * lib/uniconv/u16-conv-from-enc.c: New file.
43689         * lib/uniconv/u-conv-from-enc.h: New file.
43690         * modules/uniconv/u16-conv-from-enc-tests: New file.
43691         * tests/uniconv/test-u16-conv-from-enc.c: New file.
43692
43693         * modules/uniconv/u8-conv-from-enc: New file.
43694         * lib/uniconv/u8-conv-from-enc.c: New file.
43695         * modules/uniconv/u8-conv-from-enc-tests: New file.
43696         * tests/uniconv/test-u8-conv-from-enc.c: New file.
43697
43698         * modules/uniconv/base: New file.
43699         * lib/uniconv.h: New file.
43700
43701 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
43702
43703         * doc/gnulib-tool.texi (Initial import): Update to match current
43704         behavior with strdup module.
43705         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
43706         * lib/memmem.h: Remove; all uses removed.  This is now done
43707         by <string.h>.
43708         * lib/mempcpy.h: Likewise.
43709         * lib/memrchr.h: Likewise.
43710         * lib/stpcpy.h: Likewise.
43711         * lib/stpncpy.h: Likewise.
43712         * lib/strcase.h: Likewise.
43713         * lib/strchrnul.h: Likewise.
43714         * lib/strdup.h: Likewise.
43715         * lib/strndup.h: Likewise.
43716         * lib/strnlen.h: Likewise.
43717         * lib/strpbrk.h: Likewise.
43718         * lib/strsep.h: Likewise.
43719         * lib/strstr.h: Likewise.
43720         * lib/strtok_r.h: Likewise.
43721         * lib/string_.h: New file.
43722         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
43723         Rely on <string.h> instead.
43724         * lib/canon-host.c: Likewise.
43725         * lib/chdir-long.c: Likewise.
43726         * lib/concatpath.c: Likewise.
43727         * lib/exclude.c: Likewise.
43728         * lib/fchdir.c: Likewise.
43729         * lib/getaddrinfo.c: Likewise.
43730         * lib/getcwd.c: Likewise.
43731         * lib/getsubopt.c: Likewise.
43732         * lib/glob.c: Likewise.
43733         * lib/hard-locale.c: Likewise.
43734         * lib/iconvme.c: Likewise.
43735         * lib/javacomp.c: Likewise.
43736         * lib/mempcpy.c: Likewise.
43737         * lib/memrchr.c: Likewise.
43738         * lib/regex_internal.h: Likewise.
43739         * lib/stpncpy.c: Likewise.
43740         * lib/strcasecmp.c: Likewise.
43741         * lib/strchrnul.c: Likewise.
43742         * lib/strdup.c: Likewise.
43743         * lib/striconv.c: Likewise.
43744         * lib/striconveh.c: Likewise.
43745         * lib/striconveha.c: Likewise.
43746         * lib/strncasecmp.c: Likewise.
43747         * lib/strndup.c: Likewise.
43748         * lib/strnlen.c: Likewise.
43749         * lib/strsep.c: Likewise.
43750         * lib/strstr.c: Likewise.
43751         * lib/strtok_r.c: Likewise.
43752         * lib/userspec.c: Likewise.
43753         * lib/w32spawn.h: Likewise.
43754         * lib/xstrndup.c: Likewise.
43755         * lib/mountlist.c (strstr): Remove decl.
43756         * m4/string_h.m4: New file.
43757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
43758         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
43759         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
43760         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
43761         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
43762         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
43763         Set REPLACE_STRCASECMP if necessary.
43764         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
43765         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
43766         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
43767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
43768         HAVE_DECL_STRDUP if necessary.
43769         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
43770         since gl_FUNC_STRNDUP does that now.
43771         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
43772         Check for decl here...
43773         (gl_PREREQ_STRNLEN): ... not here.
43774         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
43775         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
43776         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
43777         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
43778         necessary.
43779         * modules/string: New file.
43780         * modules/memmem (Files): Remove special-purpose include file.
43781         (Depends-on): Add string.
43782         (Include): Include <string.h>, not the removed file.
43783         * modules/mempcpy: Likewise.
43784         * modules/memrchr: Likewise.
43785         * modules/stpcpy: Likewise.
43786         * modules/stpncpy: Likewise.
43787         * modules/strcase: Likewise.
43788         * modules/strchrnul: Likewise.
43789         * modules/strdup: Likewise.
43790         * modules/strndup: Likewise.
43791         * modules/strnlen: Likewise.
43792         * modules/strpbrk: Likewise.
43793         * modules/strsep: Likewise.
43794         * modules/strstr: Likewise.
43795         * modules/strtok_r: Likewise.
43796         * tests/test-dirname.c: Don't include "strdup.h", since
43797         <string.h> now suffices.
43798         * tests/test-memmem.c: Don't include "memmem.h", since
43799         <string.h> now suffices.
43800
43801 2007-01-25  Bruno Haible  <bruno@clisp.org>
43802
43803         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
43804         *resultp is 0.
43805
43806         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
43807         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
43808         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
43809         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
43810
43811         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
43812         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
43813         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
43814         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
43815         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
43816         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
43817
43818 2007-01-24  Bruno Haible  <bruno@clisp.org>
43819
43820         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
43821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
43822         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
43823         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
43824         gl_FUNC_FTS_CORE.
43825         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
43826         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
43827         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43828         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
43829         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
43830         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
43831         gl_FUNC_FCHOWNAT.
43832         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
43833         gl_FUNC_STRFTIME.
43834         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
43835         Reported by Ralf Wildenhues.
43836
43837 2007-01-24  Bruno Haible  <bruno@clisp.org>
43838
43839         Drop AC_REQUIRE calls that are redundant with the module dependencies.
43840         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
43841         gl_GETADDRINFO.
43842         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
43843         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
43844         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
43845
43846 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
43847
43848         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
43849         Don't use 'exit'; just return from 'main'.
43850         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
43851
43852         * lib/fnmatch_.h: Readjust white space and comments to match
43853         glibc, to avoid spurious diffs.
43854
43855 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43856
43857         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
43858         2004-12-01 change by Jakub Jelinek, since this code won't compile
43859         if !LIBC.  Problem reported by Bob Proulx.
43860
43861 2007-01-23  Bruno Haible  <bruno@clisp.org>
43862
43863         * lib/striconveh.c: Include c-strcaseeq.h.
43864         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
43865         * modules/striconveh (Depends-on): Add c-strcaseeq.
43866
43867 2007-01-23  Bruno Haible  <bruno@clisp.org>
43868
43869         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
43870
43871         * modules/c-strcaseeq: New file.
43872         * lib/c-strcaseeq.h: New file.
43873
43874         * modules/streq: New file.
43875         * lib/streq.h: New file.
43876
43877 2007-01-23  Bruno Haible  <bruno@clisp.org>
43878
43879         * modules/striconveha-tests: New file.
43880         * tests/test-striconveha.c: New file.
43881
43882         * lib/striconveha.h: Include <stdbool.h>.
43883         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
43884         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
43885         (mem_iconveha_notranslit): Renamed from mem_iconveha.
43886         (mem_iconveha): New function.
43887         (str_iconveha_notranslit): Renamed from str_iconveha.
43888         (str_iconveha): New function.
43889         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
43890         c-strcase.
43891
43892 2007-01-23  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
43895         encodings without forgiving before trying any encoding with handler.
43896         (str_iconveha): Try all encodings without forgiving before trying any
43897         encoding with handler.
43898
43899 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43900
43901         Import the following changes from libc.
43902
43903         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43904
43905         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
43906
43907         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43908
43909         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
43910         normal_bracket label.
43911
43912         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
43913
43914         [BZ #361]
43915         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
43916         to normal_bracket after fetching the next character.
43917
43918 2007-01-22  Bruno Haible  <bruno@clisp.org>
43919
43920         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
43921         argument.
43922         * lib/striconveh.c (iconv_carefully_1): New function.
43923         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
43924         argument.
43925         (str_cd_iconveh): Update.
43926         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
43927         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
43928         * tests/test-striconveh.c (MAGIC): New macro.
43929         (new_offsets): New function.
43930         (main): Test call with and without offsets.
43931
43932 2007-01-22  Bruno Haible  <bruno@clisp.org>
43933
43934         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
43935         * modules/sys_select (Makefile.am): Likewise.
43936         * modules/sys_socket (Makefile.am): Likewise.
43937         * modules/sys_time (Makefile.am): Likewise.
43938
43939 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43940
43941         * modules/gettimeofday (License): Change from GPL to LGPL, since
43942         gettimeofday is a library function.
43943
43944 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43945
43946         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
43947
43948 2007-01-21  Bruno Haible  <bruno@clisp.org>
43949
43950         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
43951
43952 2007-01-21  Bruno Haible  <bruno@clisp.org>
43953
43954         * modules/striconveha: New file.
43955         * lib/striconveha.h: New file.
43956         * lib/striconveha.c: New file.
43957         * MODULES.html.sh (Internationalization functions): Add striconveha.
43958         * lib/striconv.c (str_iconv): Optimize the case of an empty input
43959         string.
43960         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
43961
43962 2007-01-21  Bruno Haible  <bruno@clisp.org>
43963
43964         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43965         * lib/striconveh.c (str_iconveh): Likewise.
43966
43967 2007-01-21  Bruno Haible  <bruno@clisp.org>
43968
43969         * lib/striconveh.h (mem_iconveh): New declaration.
43970         * lib/striconveh.c (mem_iconveh): New function.
43971         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43972
43973 2007-01-21  Bruno Haible  <bruno@clisp.org>
43974
43975         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43976
43977         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43978         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43979         original result buffer.
43980         (str_cd_iconveh): Update.
43981         * tests/test-striconveh.c (main): Update.
43982
43983         * lib/striconv.h (mem_cd_iconv): Change specification.
43984         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43985         result buffer.
43986         (str_cd_iconv): Update.
43987         * tests/test-striconv.c (main): Update.
43988
43989 2007-01-21  Bruno Haible  <bruno@clisp.org>
43990
43991         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43992
43993 2007-01-20  Jim Meyering  <jim@meyering.net>
43994
43995         * lib/userspec.c (parse_with_separator): If a user or group string
43996         starts with "+", skip the corresponding name-to-ID look-up, since
43997         such a look-up must fail: user and group names may not include "+".
43998
43999 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44000
44001         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44002         since we now assume the sys_time module.
44003         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44004         check for sys/time.h; no longer needed.
44005         * modules/poll (Depends-on): Depend on sys_time.
44006
44007 2007-01-18  Bruno Haible  <bruno@clisp.org>
44008
44009         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44011
44012         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44013         gettimeofday.
44014
44015         * tests/test-gettimeofday.c: Include <time.h>.
44016         (dummy): Remove variable.
44017
44018         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44019         gl_HEADER_SYS_TIME_H.
44020         (gl_HEADER_SYS_TIME_H): New macro.
44021
44022         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44023         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44024         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44025         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44026         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44028         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44029         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44030         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44031         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44032         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44033
44034         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44035         last change; it caused a compilation error when cross-compiling to
44036         Cygwin.
44037
44038 2007-01-18  Jim Meyering  <jim@meyering.net>
44039
44040         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44041         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44042         than the race-prone "test -d sys || mkdir sys".
44043         (configure.ac): Use AC_PROG_MKDIR_P.
44044         * modules/sys_select: Likewise.
44045         * modules/sys_socket: Likewise.
44046         * modules/sys_time: Likewise.
44047
44048 2007-01-18  Eric Blake  <ebb9@byu.net>
44049
44050         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44051         replace gettimeofday.
44052         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44053         name, to avoid infinite recursion.
44054
44055 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44056
44057         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44058         module sys_time.
44059         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44060         assume timespec.h defines struct timeval.
44061         * lib/settime.c: Likewise.
44062         * lib/utimens.c: Likewise.
44063         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44064         since we now assume the gettimeofday module.
44065         * lib/tempname.c (__gen_tempname): Likewise.
44066         * lib/gettimeofday.h: Remove.
44067         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44068         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44069         Include <time.h>, for 'time()'.
44070         (localtime_buffer_addr): Also use this workaround if
44071         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44072         to simplify the uses.  All uses changed.
44073         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44074         that #undef is inside {}, and 'const' follows type name consistently.
44075         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44076         (gettimeofday): Do not use the maximum possible value for
44077         tv->tv_usec, since that might break usages other than ls.c.
44078         Instead, we'll leave ls.c alone.  This undoes today's patch
44079         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44080         we've never observed the problem but might as well keep the
44081         canary.
44082         * lib/nanosleep.c: Include timespec.h first, for interface check.
44083         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44084         now assume the sys_time module.
44085         * lib/tempname.c: Likewise.
44086         * lib/timespec.h: Likewise.
44087         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44088         needed.
44089         * lib/strftime.c: Likewise.
44090         * lib/timespec.h: Likewise.
44091         * lib/posixtm.c: Include posixtm.h first, for interface check.
44092         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44093         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44094         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44095         * lib/sys_time_.h: New file.
44096         * lib/timespec.h (struct timespec): Use long int, not long.
44097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44098         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44099         Remove obsolescent call to AC_HEADER_TIME.
44100         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44102         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44103         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44104         Likewise.
44105         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44106         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44108         into the sys_time module.  Check for gettimeofday just once.
44109         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44110         for gettimeofday signature to just check the signature.  Merely
44111         compile it, since linking doesn't test signature.  Improve test for
44112         whether gettimeofday.o is actually needed.
44113         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44114         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44115         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44116         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44117         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44118         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44119         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44120         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44121         than worrying about sys/time.h.
44122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44123         Don't bother worrying about TIME_WITH_SYS_TIME.
44124         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44125         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44126         * m4/sys_time_h.m4: New file.
44127         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44128         Don't include sys/time.h.  Return from main rather than exiting.
44129         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44130         all uses changed.
44131         * modules/gethrxtime (Depends-on): Add sys_time.
44132         * modules/gettime (Depends-on): Likewise.
44133         * modules/gettimeofday (Depends-on): Likewise.
44134         * modules/nanosleep (Depends-on): Likewise.
44135         * modules/settime (Depends-on): Likewise.
44136         * modules/tempname (Depends-on): Likewise.
44137         * modules/utimens (Depends-on): Likewise.
44138         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44139         (Include:) Change back to <sys/time.h>.
44140         (Maintainer:) Add self.
44141         * modules/sys_time: New file.
44142         * modules/tempname (Depends-on): Add gettimeofday.
44143         * tests/test-gettimeofday.c: Include <sys/time.h>
44144         rather than gettimeofday.h.
44145
44146 2007-01-17  Bruno Haible  <bruno@clisp.org>
44147
44148         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44149         the license default to GPL.
44150         (func_create_testdir): Don't complain if a module is LGPL and its
44151         tests module depends on GPLed modules.
44152
44153 2007-01-17  Bruno Haible  <bruno@clisp.org>
44154
44155         * lib/gettimeofday.c (gettimeofday): Add code for the case
44156         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44157         maximum possible value for tv->tv_usec, rather than the minimum one.
44158
44159 2005-10-08  Martin Lambers  <marlam@marlam.de>
44160 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44161 2007-01-16  Bruno Haible  <bruno@clisp.org>
44162
44163         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44164         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44165         gl_FUNC_GETTIMEOFDAY.
44166         (Include): Add gettimeofday.h.
44167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44168         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44169         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44170         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44171         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44172         * lib/gettimeofday.h: New file.
44173         * lib/gettimeofday.c: Include <sys/timeb.h>.
44174         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44175         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44176         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44177         fall back on time().
44178
44179         * tests/test-gettimeofday.c: New file.
44180         * modules/gettimeofday-tests: New file.
44181
44182 2007-01-16  Eric Blake  <ebb9@byu.net>
44183
44184         * modules/fnmatch (Depends-on): Depend on wchar.
44185         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44186         * m4/fnmatch.m4: Likewise.
44187         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44188         * m4/mbchar.m4: Likewise.
44189         * modules/mbswidth (Depends-on): Depend on wchar.
44190         * lib/mbswidth.c: Assume <wchar.h>.
44191         * m4/mbswidth.m4: Likewise.
44192         * modules/quotearg (Depends-on): Depend on wchar.
44193         * lib/quotearg.c: Assume <wchar.h>.
44194         * m4/quotearg.m4: Likewise.
44195         * modules/regex (Depends-on): Depend on wchar.
44196         * lib/regex_internal.h: Assume <wchar.h>.
44197         * m4/regex.m4: Likewise.
44198         * modules/stdint (Depends-on): Depend on wchar.
44199         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44200         * m4/stdint.m4: Likewise.
44201         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44202         * modules/strftime (Depends-on): Depend on wchar.
44203         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44204         * modules/strtol (Depends-on): Depend on wchar.
44205         * lib/strtol.c: Assume <wchar.h>.
44206         * modules/wcwidth (Depends-on): Depend on wchar.
44207         * lib/wcwidth.h: Assume <wchar.h>.
44208         * m4/wcwidth.m4: Likewise.
44209
44210 2007-01-16  Bruno Haible  <bruno@clisp.org>
44211
44212         * modules/csharpexec-script: New, created from...
44213         * modules/csharpexec: ... this.
44214
44215 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44216
44217         * modules/javaexec-script: New, created from...
44218         * modules/javaexec: ... this.
44219
44220 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44221
44222         * modules/poll (Dependencies): Add sys_select.
44223
44224 2007-01-15  Jim Meyering  <jim@meyering.net>
44225
44226         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44227         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44228         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44229         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44230
44231 2007-01-15  Bruno Haible  <bruno@clisp.org>
44232
44233         * modules/striconveh: New file.
44234         * lib/striconveh.h: New file.
44235         * lib/striconveh.c: New file.
44236         * MODULES.html.sh (Internationalization functions): Add striconveh.
44237
44238         * modules/striconveh-tests: New file.
44239         * tests/test-striconveh.c: New file.
44240
44241 2007-01-15  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44244         not from GNU libiconv or GNU libc.
44245
44246 2007-01-15  Bruno Haible  <bruno@clisp.org>
44247
44248         * doc/gnulib-intro.texi (Copyright): Explain the different license
44249         terms for module descriptions, autoconf macros, tests, documentation.
44250
44251 2007-01-14  Bruno Haible  <bruno@clisp.org>
44252
44253         * modules/striconv-tests: New file.
44254         * tests/test-striconv.c: New file.
44255
44256 2007-01-14  Bruno Haible  <bruno@clisp.org>
44257
44258         * modules/iconv-tests: New file.
44259         * tests/test-iconv.c: New file.
44260
44261 2007-01-14  Bruno Haible  <bruno@clisp.org>
44262
44263         * gnulib-tool (func_get_license): For test modules, use the license of
44264         the main module.
44265
44266 2007-01-14  Bruno Haible  <bruno@clisp.org>
44267
44268         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44269         if iconv is found to exist.
44270
44271 2007-01-14  Bruno Haible  <bruno@clisp.org>
44272
44273         * modules/c-ctype-tests: New file.
44274         * tests/test-c-ctype.c: New file.
44275
44276 2007-01-14  Bruno Haible  <bruno@clisp.org>
44277
44278         * modules/binary-io-tests: New file.
44279         * tests/test-binary-io.sh: New file.
44280         * tests/test-binary-io.c: New file.
44281
44282 2007-01-14  Bruno Haible  <bruno@clisp.org>
44283
44284         * modules/array-oset-tests: New file.
44285         * tests/test-array_oset.c: New file.
44286
44287 2007-01-14  Bruno Haible  <bruno@clisp.org>
44288
44289         * modules/array-list-tests: New file.
44290         * tests/test-array_list.c: New file.
44291
44292 2007-01-14  Bruno Haible  <bruno@clisp.org>
44293
44294         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44295         and make.
44296         Reported by Simon Josefsson in
44297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44298
44299 2007-01-14  Bruno Haible  <bruno@clisp.org>
44300
44301         * modules/allocsa-tests: New file.
44302         * tests/test-allocsa.c: New file.
44303
44304 2007-01-14  Bruno Haible  <bruno@clisp.org>
44305
44306         * modules/fchdir (Depends-on): Add absolute-header.
44307         * modules/unistd (Depends-on): Likewise.
44308
44309 2006-12-30  Bruno Haible  <bruno@clisp.org>
44310
44311         * modules/fchdir: New file.
44312         * modules/unistd (Files): Add lib/unistd_.h.
44313         (Makefile.am): Generate unistd.h from unistd_.h.
44314         * lib/fchdir.c: New file.
44315         * lib/dirent_.h: New file.
44316         * lib/unistd_.h: New file.
44317         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44318         * m4/fchdir.m4: New file.
44319         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44320         (gl_HEADER_UNISTD): Invoke it.
44321         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44322         function.
44323         * lib/backupfile.c (opendir, closedir): Undefine.
44324         * lib/chown.c (open, close): Undefine.
44325         * lib/clean-temp.c (open, close): Undefine.
44326         * lib/copy-file.c (open, close): Undefine.
44327         * lib/execute.c (open, close): Undefine.
44328         * lib/fsusage.c (open, close): Undefine.
44329         * lib/gc-gnulib.c (open, close): Undefine.
44330         * lib/getcwd.c (opendir, closedir): Undefine.
44331         * lib/glob.c (opendir, closedir): Undefine.
44332         * lib/javacomp.c (open, close): Undefine.
44333         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44334         * lib/openat-proc.c (open, close): Undefine.
44335         * lib/pagealign_alloc.c (open, close): Undefine.
44336         * lib/pipe.c (open, close): Undefine.
44337         * lib/progreloc.c (open, close): Undefine.
44338         * lib/savedir.c (opendir, closedir): Undefine.
44339         * lib/utime.c (open, close): Undefine.
44340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44341
44342 2007-01-10  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44345
44346 2007-01-12  Eric Blake  <ebb9@byu.net>
44347
44348         Provide a robust <wchar.h>.  Further simplifications are now
44349         possible in other modules, but not included here.
44350         * modules/wchar: New module.
44351         * m4/wchar.m4: New file.
44352         * lib/wchar_.h: Likewise.
44353         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44354         of the new module.
44355         * MODULES.html.sh (Extended multibyte and wide character utilities):
44356         New section.
44357
44358 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44359
44360         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44361         to a reasonable default for memory allocation.
44362         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44363         file system that reports garbage st_size values for symlinks.
44364         Problem reported by Liyang Hu.
44365
44366 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44367
44368         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44369         Emacs .#* auto-save files).
44370
44371 2007-01-11  Bruno Haible  <bruno@clisp.org>
44372
44373         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44374         directory.
44375
44376 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44377
44378         Use @...@ consistently in lib/wctype_.h.
44379         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44380         on it being set to 1 or 0.
44381         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44382         go back to AC_SUBSTing it.
44383         * modules/wctype (Makefile.am): Undo previous change.
44384
44385 2007-01-10  Eric Blake  <ebb9@byu.net>
44386
44387         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44388         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44389         * modules/wctype (Makefile.am): Likewise.
44390         Reported by Chris McGuire.
44391
44392 2007-01-10  Jim Meyering  <jim@meyering.net>
44393
44394         fts.c: a small readability/maintainability improvement
44395         * lib/fts.c (fts_read): Make this code slightly more readable and
44396         maintainable by hoisting the "sp->fts_cur = p" assignments to
44397         immediately follow the statements that set P.  Derived from
44398         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44399
44400 2007-01-10  Eric Blake  <ebb9@byu.net>
44401
44402         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
44403         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
44404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44405         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44406         Reported by Chris McGuire.
44407
44408 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44409
44410         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
44411         in sed script.
44412
44413 2007-01-09  Bruno Haible  <bruno@clisp.org>
44414
44415         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
44416         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
44417         variables.
44418         (func_module): Use them.
44419
44420 2007-01-09  Bruno Haible  <bruno@clisp.org>
44421
44422         * modules/unistr/base: New file.
44423         * lib/unistr.h: New file.
44424
44425         * modules/unistr/u8-to-u16: New file.
44426         * lib/unistr/u8-to-u16.c: New file.
44427
44428         * modules/unistr/u8-to-u32: New file.
44429         * lib/unistr/u8-to-u32.c: New file.
44430
44431         * modules/unistr/u16-to-u8: New file.
44432         * lib/unistr/u16-to-u8.c: New file.
44433
44434         * modules/unistr/u16-to-u32: New file.
44435         * lib/unistr/u16-to-u32.c: New file.
44436
44437         * modules/unistr/u32-to-u8: New file.
44438         * lib/unistr/u32-to-u8.c: New file.
44439
44440         * modules/unistr/u32-to-u16: New file.
44441         * lib/unistr/u32-to-u16.c: New file.
44442
44443         * modules/unistr/u8-check: New file.
44444         * modules/unistr/u16-check: New file.
44445         * modules/unistr/u32-check: New file.
44446         * lib/unistr/u8-check.c: New file.
44447         * lib/unistr/u16-check.c: New file.
44448         * lib/unistr/u32-check.c: New file.
44449
44450         * modules/unistr/u8-chr: New file.
44451         * modules/unistr/u16-chr: New file.
44452         * modules/unistr/u32-chr: New file.
44453         * lib/unistr/u8-chr.c: New file.
44454         * lib/unistr/u16-chr.c: New file.
44455         * lib/unistr/u32-chr.c: New file.
44456
44457         * modules/unistr/u8-cmp: New file.
44458         * modules/unistr/u16-cmp: New file.
44459         * modules/unistr/u32-cmp: New file.
44460         * lib/unistr/u8-cmp.c: New file.
44461         * lib/unistr/u16-cmp.c: New file.
44462         * lib/unistr/u32-cmp.c: New file.
44463
44464         * modules/unistr/u8-cpy: New file.
44465         * modules/unistr/u16-cpy: New file.
44466         * modules/unistr/u32-cpy: New file.
44467         * lib/unistr/u8-cpy.c: New file.
44468         * lib/unistr/u16-cpy.c: New file.
44469         * lib/unistr/u32-cpy.c: New file.
44470         * lib/unistr/u-cpy.h: New file.
44471
44472         * modules/unistr/u8-cpy-alloc: New file.
44473         * modules/unistr/u16-cpy-alloc: New file.
44474         * modules/unistr/u32-cpy-alloc: New file.
44475         * lib/unistr/u8-cpy-alloc.c: New file.
44476         * lib/unistr/u16-cpy-alloc.c: New file.
44477         * lib/unistr/u32-cpy-alloc.c: New file.
44478         * lib/unistr/u-cpy-alloc.h: New file.
44479
44480         * modules/unistr/u8-endswith: New file.
44481         * modules/unistr/u16-endswith: New file.
44482         * modules/unistr/u32-endswith: New file.
44483         * lib/unistr/u8-endswith.c: New file.
44484         * lib/unistr/u16-endswith.c: New file.
44485         * lib/unistr/u32-endswith.c: New file.
44486         * lib/unistr/u-endswith.h: New file.
44487
44488         * modules/unistr/u8-mblen: New file.
44489         * modules/unistr/u16-mblen: New file.
44490         * modules/unistr/u32-mblen: New file.
44491         * lib/unistr/u8-mblen.c: New file.
44492         * lib/unistr/u16-mblen.c: New file.
44493         * lib/unistr/u32-mblen.c: New file.
44494
44495         * modules/unistr/u8-mbtouc: New file.
44496         * modules/unistr/u16-mbtouc: New file.
44497         * modules/unistr/u32-mbtouc: New file.
44498         * lib/unistr/u8-mbtouc.c: New file.
44499         * lib/unistr/u16-mbtouc.c: New file.
44500         * lib/unistr/u32-mbtouc.c: New file.
44501
44502         * modules/unistr/u8-mbtouc-safe: New file.
44503         * modules/unistr/u16-mbtouc-safe: New file.
44504         * modules/unistr/u32-mbtouc-safe: New file.
44505         * lib/unistr/u8-mbtouc-safe.c: New file.
44506         * lib/unistr/u16-mbtouc-safe.c: New file.
44507         * lib/unistr/u32-mbtouc-safe.c: New file.
44508
44509         * modules/unistr/u8-move: New file.
44510         * modules/unistr/u16-move: New file.
44511         * modules/unistr/u32-move: New file.
44512         * lib/unistr/u8-move.c: New file.
44513         * lib/unistr/u16-move.c: New file.
44514         * lib/unistr/u32-move.c: New file.
44515         * lib/unistr/u-move.h: New file.
44516
44517         * modules/unistr/u8-next: New file.
44518         * modules/unistr/u16-next: New file.
44519         * modules/unistr/u32-next: New file.
44520         * lib/unistr/u8-next.c: New file.
44521         * lib/unistr/u16-next.c: New file.
44522         * lib/unistr/u32-next.c: New file.
44523
44524         * modules/unistr/u8-prev: New file.
44525         * modules/unistr/u16-prev: New file.
44526         * modules/unistr/u32-prev: New file.
44527         * lib/unistr/u8-prev.c: New file.
44528         * lib/unistr/u16-prev.c: New file.
44529         * lib/unistr/u32-prev.c: New file.
44530
44531         * modules/unistr/u8-set: New file.
44532         * modules/unistr/u16-set: New file.
44533         * modules/unistr/u32-set: New file.
44534         * lib/unistr/u8-set.c: New file.
44535         * lib/unistr/u16-set.c: New file.
44536         * lib/unistr/u32-set.c: New file.
44537         * lib/unistr/u-set.h: New file.
44538
44539         * modules/unistr/u8-startswith: New file.
44540         * modules/unistr/u16-startswith: New file.
44541         * modules/unistr/u32-startswith: New file.
44542         * lib/unistr/u8-startswith.c: New file.
44543         * lib/unistr/u16-startswith.c: New file.
44544         * lib/unistr/u32-startswith.c: New file.
44545         * lib/unistr/u-startswith.h: New file.
44546
44547         * modules/unistr/u8-stpcpy: New file.
44548         * modules/unistr/u16-stpcpy: New file.
44549         * modules/unistr/u32-stpcpy: New file.
44550         * lib/unistr/u8-stpcpy.c: New file.
44551         * lib/unistr/u16-stpcpy.c: New file.
44552         * lib/unistr/u32-stpcpy.c: New file.
44553         * lib/unistr/u-stpcpy.h: New file.
44554
44555         * modules/unistr/u8-stpncpy: New file.
44556         * modules/unistr/u16-stpncpy: New file.
44557         * modules/unistr/u32-stpncpy: New file.
44558         * lib/unistr/u8-stpncpy.c: New file.
44559         * lib/unistr/u16-stpncpy.c: New file.
44560         * lib/unistr/u32-stpncpy.c: New file.
44561         * lib/unistr/u-stpncpy.h: New file.
44562
44563         * modules/unistr/u8-strcat: New file.
44564         * modules/unistr/u16-strcat: New file.
44565         * modules/unistr/u32-strcat: New file.
44566         * lib/unistr/u8-strcat.c: New file.
44567         * lib/unistr/u16-strcat.c: New file.
44568         * lib/unistr/u32-strcat.c: New file.
44569         * lib/unistr/u-strcat.h: New file.
44570
44571         * modules/unistr/u8-strchr: New file.
44572         * modules/unistr/u16-strchr: New file.
44573         * modules/unistr/u32-strchr: New file.
44574         * lib/unistr/u8-strchr.c: New file.
44575         * lib/unistr/u16-strchr.c: New file.
44576         * lib/unistr/u32-strchr.c: New file.
44577
44578         * modules/unistr/u8-strcmp: New file.
44579         * modules/unistr/u16-strcmp: New file.
44580         * modules/unistr/u32-strcmp: New file.
44581         * lib/unistr/u8-strcmp.c: New file.
44582         * lib/unistr/u16-strcmp.c: New file.
44583         * lib/unistr/u32-strcmp.c: New file.
44584
44585         * modules/unistr/u8-strcpy: New file.
44586         * modules/unistr/u16-strcpy: New file.
44587         * modules/unistr/u32-strcpy: New file.
44588         * lib/unistr/u8-strcpy.c: New file.
44589         * lib/unistr/u16-strcpy.c: New file.
44590         * lib/unistr/u32-strcpy.c: New file.
44591         * lib/unistr/u-strcpy.h: New file.
44592
44593         * modules/unistr/u8-strcspn: New file.
44594         * modules/unistr/u16-strcspn: New file.
44595         * modules/unistr/u32-strcspn: New file.
44596         * lib/unistr/u8-strcspn.c: New file.
44597         * lib/unistr/u16-strcspn.c: New file.
44598         * lib/unistr/u32-strcspn.c: New file.
44599         * lib/unistr/u-strcspn.h: New file.
44600
44601         * modules/unistr/u8-strdup: New file.
44602         * modules/unistr/u16-strdup: New file.
44603         * modules/unistr/u32-strdup: New file.
44604         * lib/unistr/u8-strdup.c: New file.
44605         * lib/unistr/u16-strdup.c: New file.
44606         * lib/unistr/u32-strdup.c: New file.
44607         * lib/unistr/u-strdup.h: New file.
44608
44609         * modules/unistr/u8-strlen: New file.
44610         * modules/unistr/u16-strlen: New file.
44611         * modules/unistr/u32-strlen: New file.
44612         * lib/unistr/u8-strlen.c: New file.
44613         * lib/unistr/u16-strlen.c: New file.
44614         * lib/unistr/u32-strlen.c: New file.
44615         * lib/unistr/u-strlen.h: New file.
44616
44617         * modules/unistr/u8-strmblen: New file.
44618         * modules/unistr/u16-strmblen: New file.
44619         * modules/unistr/u32-strmblen: New file.
44620         * lib/unistr/u8-strmblen.c: New file.
44621         * lib/unistr/u16-strmblen.c: New file.
44622         * lib/unistr/u32-strmblen.c: New file.
44623
44624         * modules/unistr/u8-strmbtouc: New file.
44625         * modules/unistr/u16-strmbtouc: New file.
44626         * modules/unistr/u32-strmbtouc: New file.
44627         * lib/unistr/u8-strmbtouc.c: New file.
44628         * lib/unistr/u16-strmbtouc.c: New file.
44629         * lib/unistr/u32-strmbtouc.c: New file.
44630
44631         * modules/unistr/u8-strncat: New file.
44632         * modules/unistr/u16-strncat: New file.
44633         * modules/unistr/u32-strncat: New file.
44634         * lib/unistr/u8-strncat.c: New file.
44635         * lib/unistr/u16-strncat.c: New file.
44636         * lib/unistr/u32-strncat.c: New file.
44637         * lib/unistr/u-strncat.h: New file.
44638
44639         * modules/unistr/u8-strncmp: New file.
44640         * modules/unistr/u16-strncmp: New file.
44641         * modules/unistr/u32-strncmp: New file.
44642         * lib/unistr/u8-strncmp.c: New file.
44643         * lib/unistr/u16-strncmp.c: New file.
44644         * lib/unistr/u32-strncmp.c: New file.
44645
44646         * modules/unistr/u8-strncpy: New file.
44647         * modules/unistr/u16-strncpy: New file.
44648         * modules/unistr/u32-strncpy: New file.
44649         * lib/unistr/u8-strncpy.c: New file.
44650         * lib/unistr/u16-strncpy.c: New file.
44651         * lib/unistr/u32-strncpy.c: New file.
44652         * lib/unistr/u-strncpy.h: New file.
44653
44654         * modules/unistr/u8-strnlen: New file.
44655         * modules/unistr/u16-strnlen: New file.
44656         * modules/unistr/u32-strnlen: New file.
44657         * lib/unistr/u8-strnlen.c: New file.
44658         * lib/unistr/u16-strnlen.c: New file.
44659         * lib/unistr/u32-strnlen.c: New file.
44660         * lib/unistr/u-strnlen.h: New file.
44661
44662         * modules/unistr/u8-strpbrk: New file.
44663         * modules/unistr/u16-strpbrk: New file.
44664         * modules/unistr/u32-strpbrk: New file.
44665         * lib/unistr/u8-strpbrk.c: New file.
44666         * lib/unistr/u16-strpbrk.c: New file.
44667         * lib/unistr/u32-strpbrk.c: New file.
44668         * lib/unistr/u-strpbrk.h: New file.
44669
44670         * modules/unistr/u8-strrchr: New file.
44671         * modules/unistr/u16-strrchr: New file.
44672         * modules/unistr/u32-strrchr: New file.
44673         * lib/unistr/u8-strrchr.c: New file.
44674         * lib/unistr/u16-strrchr.c: New file.
44675         * lib/unistr/u32-strrchr.c: New file.
44676
44677         * modules/unistr/u8-strspn: New file.
44678         * modules/unistr/u16-strspn: New file.
44679         * modules/unistr/u32-strspn: New file.
44680         * lib/unistr/u8-strspn.c: New file.
44681         * lib/unistr/u16-strspn.c: New file.
44682         * lib/unistr/u32-strspn.c: New file.
44683         * lib/unistr/u-strspn.h: New file.
44684
44685         * modules/unistr/u8-strstr: New file.
44686         * modules/unistr/u16-strstr: New file.
44687         * modules/unistr/u32-strstr: New file.
44688         * lib/unistr/u8-strstr.c: New file.
44689         * lib/unistr/u16-strstr.c: New file.
44690         * lib/unistr/u32-strstr.c: New file.
44691         * lib/unistr/u-strstr.h: New file.
44692
44693         * modules/unistr/u8-strtok: New file.
44694         * modules/unistr/u16-strtok: New file.
44695         * modules/unistr/u32-strtok: New file.
44696         * lib/unistr/u8-strtok.c: New file.
44697         * lib/unistr/u16-strtok.c: New file.
44698         * lib/unistr/u32-strtok.c: New file.
44699         * lib/unistr/u-strtok.h: New file.
44700
44701         * modules/unistr/u8-uctomb: New file.
44702         * modules/unistr/u16-uctomb: New file.
44703         * modules/unistr/u32-uctomb: New file.
44704         * lib/unistr/u8-uctomb.c: New file.
44705         * lib/unistr/u16-uctomb.c: New file.
44706         * lib/unistr/u32-uctomb.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         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
44713         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
44714         subdirectories.
44715
44716 2007-01-08  Karl Berry  <karl@gnu.org>
44717
44718         * doc/error.texi: mention that main() fns must set program_name
44719         when progname is used.
44720
44721 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
44722
44723         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
44724         WCTYPE_H is empty, for the benefit of builds from non-distclean
44725         directories.  Problem reported by Eric Blake in
44726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
44727
44728 2007-01-08  Bruno Haible  <bruno@clisp.org>
44729
44730         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
44731         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
44732         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
44733         PROVIDE_CANONICALIZE_FILENAME_MODE.
44734         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
44735
44736 2007-01-08  Bruno Haible  <bruno@clisp.org>
44737
44738         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
44739         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
44740         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
44741         * lib/fts.c: Likewise.
44742         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
44743
44744 2006-12-25  Bruno Haible  <bruno@clisp.org>
44745
44746         * modules/utf8-ucs4-safe: New file.
44747         * lib/utf8-ucs4-safe.h: New file.
44748         * lib/unistr/utf8-ucs4-safe.c: New file.
44749
44750         * modules/utf16-ucs4-safe: New file.
44751         * lib/utf16-ucs4-safe.h: New file.
44752         * lib/unistr/utf16-ucs4-safe.c: New file.
44753
44754         * MODULES.html.sh (Unicode string functions): Add the new modules.
44755
44756 2007-01-08  Bruno Haible  <bruno@clisp.org>
44757
44758         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
44759         (Depends-on): Add unitypes.
44760         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44761         (u8_mbtouc_aux): Move out to separate file.
44762         (u8_mbtouc): Use ucs4_t, uint8_t types.
44763         * lib/unistr/utf8-ucs4.c: New file.
44764
44765         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
44766         (Depends-on): Add unitypes.
44767         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44768         (u16_mbtouc_aux): Move out to separate file.
44769         (u16_mbtouc): Use ucs4_t, uint16_t types.
44770         * lib/unistr/utf16-ucs4.c: New file.
44771
44772         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
44773         (Depends-on): Add unitypes.
44774         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
44775         (u8_uctomb_aux): Move out to separate file.
44776         (u8_uctomb): Use ucs4_t, uint8_t types.
44777         * lib/unistr/ucs4-utf8.c: New file.
44778
44779         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
44780         (Depends-on): Add unitypes.
44781         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
44782         (u16_uctomb_aux): Move out to separate file.
44783         (u16_uctomb): Use ucs4_t, uint16_t types.
44784         * lib/unistr/ucs4-utf16.c: New file.
44785
44786 2006-12-25  Bruno Haible  <bruno@clisp.org>
44787
44788         * modules/unitypes: New file.
44789         * lib/unitypes.h: New file.
44790         * MODULES.html.sh (func_all_modules): New section "Unicode string
44791         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
44792         this section. Add unitypes.
44793
44794 2007-01-08  Bruno Haible  <bruno@clisp.org>
44795
44796         Avoid variable names that conflict with those from libtool.
44797         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
44798         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
44799         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
44800         library_names_spec to acl_library_names_spec, hardcode_* to
44801         acl_hardcode_*.
44802         Reported by Ralf Wildenhues.
44803
44804 2007-01-08  Bruno Haible  <bruno@clisp.org>
44805
44806         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
44807         definition.
44808         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
44809         definition.
44810         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
44811         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
44812         definition.
44813         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
44814         definition.
44815         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
44816         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
44817         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
44818         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
44819         definition.
44820         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
44821         definition.
44822         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
44823         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
44824         GC_USE_<algorithm>.
44825         * lib/gc-libgcrypt.c: Likewise.
44826         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
44827         * modules/gc-arctwo (configure.ac): Likewise.
44828         * modules/gc-des (configure.ac): Likewise.
44829         * modules/gc-hmac-md5 (configure.ac): Likewise.
44830         * modules/gc-hmac-sha1 (configure.ac): Likewise.
44831         * modules/gc-md2 (configure.ac): Likewise.
44832         * modules/gc-md4 (configure.ac): Likewise.
44833         * modules/gc-md5 (configure.ac): Likewise.
44834         * modules/gc-random (configure.ac): Likewise.
44835         * modules/gc-rijndael (configure.ac): Likewise.
44836         * modules/gc-sha1 (configure.ac): Likewise.
44837
44838 2007-01-08  Bruno Haible  <bruno@clisp.org>
44839
44840         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
44841         macro definition.
44842         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
44843         definition.
44844         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
44845         definition.
44846         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
44847         * modules/fcntl-safer (configure.ac): Likewise.
44848         * modules/fopen-safer (configure.ac): Likewise.
44849         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
44850         GNULIB_FWRITEERROR macro definition.
44851
44852 2007-01-08  Bruno Haible  <bruno@clisp.org>
44853
44854         * m4/gnulib-common.m4: New file.
44855         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
44856         (func_get_filelist): Add m4/gnulib-common.m4.
44857
44858 2007-01-08  Bruno Haible  <bruno@clisp.org>
44859
44860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
44861         command.
44862
44863 2007-01-08  Jim Meyering  <jim@meyering.net>
44864
44865         Use a more robust test for a "can't happen" condition.
44866         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
44867         narrowed the st_size value.  Presuming the "can't happen" condition
44868         is true, that narrowing could conceivably convert an invalid st_size
44869         value into a valid one.  Instead, use a change based on Matthew
44870         Woehlke's original patch.
44871
44872         Slight readability improvement: use an assert-like macro
44873         in place of literal "abort ()" uses.
44874         * lib/fts.c (fts_assert): Define.
44875         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
44876         Use this macro instead of a bare 'abort'.
44877
44878 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44879
44880         Don't worry about using IRIX 5.3's wctype.h broken definitions;
44881         simply work around them.
44882         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
44883         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
44884         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
44885         declaring.
44886         Don't bother to define as macros, since the standard doesn't require it.
44887         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
44888         longer worry about IRIX 5.3.
44889         (HAVE_WCTYPE_CTMP_BUG): Remove.
44890
44891 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44892
44893         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
44894         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
44895         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44896         Problems reported by Georg Schwarz for IRIX 5.3.
44897
44898         * gnulib-tool (autoconf_minversion): Take the maximum version number
44899         found, not the minimum.  Problem reported by James Youngman.
44900
44901 2007-01-03  Karl Berry  <karl@gnu.org>
44902
44903         * doc/error.texi: new file, explaining interaction with progname.
44904         * doc/gnulib.texi: include it.  Update copyright.
44905
44906 2007-01-03  Simon Josefsson  <simon@josefsson.org>
44907
44908         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
44909         AC_CANONICAL_HOST, to improve autobuild outputs.
44910
44911 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
44912             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44913
44914         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
44915         sockets, server sockets, and other file descriptors.  Count errors
44916         to compute the return value.  Reorder the code a bit to be easier
44917         to follow.  Don't set event bits that were not requested (except
44918         POLLERR and POLLHUP).
44919
44920 2007-01-01  Bruno Haible  <bruno@clisp.org>
44921
44922         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
44923
44924 2007-01-03  Jim Meyering  <jim@meyering.net>
44925
44926         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
44927
44928 2007-01-02  Bruno Haible  <bruno@clisp.org>
44929
44930         * modules/settime (Include): Require timespec.h.
44931         * modules/nanosleep (Include): Likewise.
44932
44933 2007-01-01  Bruno Haible  <bruno@clisp.org>
44934
44935         * gnulib-tool (func_emit_copyright_notice): Bump year.
44936         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
44937
44938 2007-01-01  Bruno Haible  <bruno@clisp.org>
44939
44940         Improve support for OpenBSD.
44941         * build-aux/config.rpath (libname_spec): Export.
44942         (library_names_spec): New variable. Export.
44943         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
44944         library_names_spec from the config.rpath output. Locate shared library
44945         through the name pattern in library_names_spec.
44946
44947 2007-01-01  Eric Blake  <ebb9@byu.net>
44948
44949         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
44950
44951 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
44952
44953         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
44954         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
44955         assume the C locale, and avoid an "eval" that could cause trouble.
44956         Problem with SORT reported by Bob Proulx.
44957
44958         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
44959         Define.  Trivial patch from Henning Nielsen Lund, originally
44960         sent to bug-grep@gnu.org today.
44961
44962 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44963
44964         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44965         struct stat.  Problem reported by Henning Nielsen Lund.
44966         * lib/acl.c: Include acl.h first, to check interface.  Don't
44967         bother to include sys/types.h and sys/stat.h again.
44968
44969 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44970
44971         Import the following change from libc; problem reported by
44972         Sven Verdoolaege.
44973
44974         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44975
44976         [BZ #1373]
44977         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44978
44979 2006-12-28  Jim Meyering  <jim@meyering.net>
44980
44981         * build-aux/announce-gen: Do not assume that the package
44982         builds any of tar.gz, tar.bz2, and .xdelta files.
44983         Suggestion from Simon Josefsson.
44984
44985 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44986
44987         * modules/announce-gen: New file.
44988
44989 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44990
44991         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44992         handles its gotchas now.
44993         * lib/mbswidth.c: Likewise.
44994         * lib/wcwidth.h: Likewise.
44995         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44996         and iswcntrl; the wctype module does this stuff now.
44997         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44999         * modules/mbchar (Depends-on): Add wctype.
45000         * modules/mbswidth (Depends-on): Likewise.
45001         * modules/wcwidth (Depends-on): Likewise.
45002
45003 2006-12-27  Eric Blake  <ebb9@byu.net>
45004
45005         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45006         module uses more than what <wctype.h> is required to provide.
45007
45008 2006-12-26  Eric Blake  <ebb9@byu.net>
45009
45010         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45011
45012 2006-12-26  Eric Blake  <ebb9@byu.net>
45013
45014         * modules/absolute-header: New module.
45015         * modules/fcntl (Depends-on): Depend on it.
45016         * modules/inttypes (Depends-on): Likewise.
45017         * modules/stdint (Depends-on): Likewise.
45018         * modules/sys_stat (Depends-on): Likewise.
45019         * modules/wctype (Depends-on): Likewise.
45020         * MODULES.html.sh (Support for building libraries and
45021         executables): Document it.
45022
45023 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45024
45025         * gnulib-tool (SED): Remove, undoing previous change.
45026         The problem was that it broke coreutils on Solaris, because
45027         "sed --posix" leaked into a makefile.
45028         (sed): New alias, if 'alias' and GNU sed.
45029
45030 2006-12-24  Jim Meyering  <jim@meyering.net>
45031
45032         Work around an fchownat bug in glibc-2.4:
45033         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45034         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45035         in spite of the -P option.
45036         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45037         New macros.
45038         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45039         * modules/openat (Files): Add lib/fchownat.c.
45040         * lib/openat.c (fchownat): Don't define here.  Move to...
45041         * lib/fchownat.c: ...this new file.
45042
45043 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45044
45045         Fix bug reported by Bruno Haible in
45046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45047         where quotearg.c didn't compile on Mac OS X 10.2 because it
45048         lacks <wchar.h> and wint_t.
45049         * lib/wctype_.h (__wctype_wint_t): New type.
45050         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45051         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45052         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45053         Arg is now of type __wctype_wint_t, not wint_t.
45054         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45055         substitute HAVE_WINT_T.
45056         * modules/wctype (Files): Add m4/wint_t.m4.
45057         (wctype.h): Substitute HAVE_WINT_T.
45058
45059 2006-12-23  Bruno Haible  <bruno@clisp.org>
45060
45061         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45062
45063 2006-12-23  Bruno Haible  <bruno@clisp.org>
45064
45065         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45066         S_ISLNK.
45067         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45068         mingw.
45069
45070 2006-12-22  Bruno Haible  <bruno@clisp.org>
45071
45072         * lib/copy-file.c: Include acl.h.
45073         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45074         Close the file descriptors only after being done with copy_acl.
45075         * modules/copy-file (Depends-on): Add acl.
45076
45077 2006-12-22  Bruno Haible  <bruno@clisp.org>
45078
45079         * gnulib-tool (SED): New variable.
45080         Use $SED instead of sed everywhere.
45081
45082 2006-12-22  Bruno Haible  <bruno@clisp.org>
45083
45084         * modules/no-c++: New file.
45085         * m4/no-c++.m4: New file.
45086         * MODULES.html.sh (Support for building libraries and executables):
45087         Add no-c++.
45088
45089 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45090
45091         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45092         Include <limits.h>, and use its INT_MAX to rewrite the
45093         j loop so that it does not overflow 'int'.  Problem reported by
45094         Ralf Wildenhues in
45095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45096         Play it safe by shifting left by 1 rather than multiplying by 2,
45097         as GCC is less likely to optimize this away when the value
45098         is signed (when it assumes overflow leads to undefined behavior).
45099         Also, don't assume time_t uses two's complement.
45100
45101 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         * MODULES.html.sh: New module wctype.
45104         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45105         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45106         <wctype.h>, since the new wctype module should fix this.
45107         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45108         the wctype module should arrange for it.
45109         * lib/regex_internal.h: Likewise.
45110         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45111         since the wctype module should handle this now.
45112         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45113         * modules/fnmatch (Depends-on): Add wctype.
45114         * modules/quotearg (Depends-on): Likewise.
45115         * modules/regex (Depends-on): Likewise.
45116
45117 2006-12-19  Bruno Haible  <bruno@clisp.org>
45118
45119         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45120         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45121
45122 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45123
45124         * modules/savewd (Depends-on): Fix dependency on fcntl.
45125
45126 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45129         conforms to C99, rather than relying on the user's environment
45130         setting of STDINT_H.
45131
45132 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45133         and Eric Blake  <ebb9@byu.net>
45134
45135         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45136         This is more consistent with the other defines here.
45137         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45138         Port to z/OS.  Problem reported by Paul Gilmartin.
45139         Change local vars to use gl_ prefix rather than ac_.
45140         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45141         with other defines.
45142         * modules/double-slash-root: New module.
45143         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45144         (Depends-on): Add double-slash-root.
45145         * MODULES.html.sh (File system functions): Mention new module.
45146
45147 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45148
45149         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45150         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45151         This is for the benefit of gzip, which doesn't do i18n.
45152
45153 2006-12-12  Jim Meyering  <jim@meyering.net>
45154
45155         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45156         Reported by Andreas Schwab <schwab@suse.de>.
45157
45158 2006-12-12  Bruno Haible  <bruno@clisp.org>
45159
45160         Merge these changes.
45161         2006-09-05  Bruno Haible  <bruno@clisp.org>
45162         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45163         iconv_alloc succeeded.
45164         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45165         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45166         test for " && dest " at the end - dest is always != NULL there. Call
45167         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45168         with 2xNULL arguments, also to flush the state storage. Handle the
45169         IRIX iconv behaviour. Realloc the final result, to throw away unused
45170         memory.
45171
45172 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45173
45174         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45175         and fchmodat unconditionally, since glibc 2.4 has them.
45176         Problem reported by Arkadiusz Miskiewicz.
45177
45178 2006-12-10  Bruno Haible  <bruno@clisp.org>
45179
45180         * gnulib-tool (func_import): Show the include files only for those
45181         modules that are copied and specified.
45182         Reported by Karl Berry.
45183
45184 2006-12-08  Jim Meyering  <jim@meyering.net>
45185
45186         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45187         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45188
45189         * build-aux/announce-gen: Add two new options, both optional:
45190         --bootstrap-tools=TOOL_LIST
45191               a comma-separated list of tools, e.g.,
45192               autoconf,automake,bison,gnulib
45193         --gnulib-snapshot-date=DATE
45194               if gnulib is in the bootstrap tool list,
45195               then report this as the snapshot date.
45196               If not specified, use the current date/time.
45197               If you specify a date here, be sure it's UTC.
45198
45199 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45200
45201         * tests/test-argp-2.sh: Fix test to match actual output.
45202         (func_compare): Fix sed script to be portable.
45203
45204 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45205
45206         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45207         workaround for this case.  It is not autoconfigured now; offhand
45208         it's hard to see how to autoconfigure it.
45209
45210 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45211
45212         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45213         a directory that is about to be chowned.  Such a directory's
45214         initial file permissions should permit the owner only and this
45215         should not be changed until after the chown, since the group and
45216         other bits would be incorrect if they granted permission before
45217         the chown.
45218
45219         Fix porting problem for iswctype reported by Georg Schwarz in:
45220         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45221         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45222         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45223         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45224         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45225
45226 2006-12-03  Jim Meyering  <jim@meyering.net>
45227
45228         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45229         p->fts_statp may not yet be defined.
45230         (fts_read): Instead, set it in the caller, once p->fts_statp is
45231         sure to be defined, and corresponds to a top-level directory.
45232         This bug made du -x fail.  Here's the coreutils test case:
45233         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45234         Reported by Mike Frysinger.
45235
45236 2006-12-01  Jim Meyering  <jim@meyering.net>
45237
45238         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45239         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45240         Reported by Simon Josefsson.
45241
45242 2006-11-30  Jim Meyering  <jim@meyering.net>
45243
45244         * m4/warning.m4: Use the all-permissive copyright notice
45245         recommended by RMS (rather than LGPL).
45246         * m4/vararrays.m4: Likewise.
45247         * m4/flexmember.m4: Likewise.
45248
45249 2006-11-29  Bruno Haible  <bruno@clisp.org>
45250
45251         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45252         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45253         using +=.
45254         Reported by Simon Josefsson <simon@josefsson.org>.
45255
45256 2006-11-28  James Youngman <jay@gnu.org>
45257
45258         * README: Advise users that they might find the bug-gnulib@gnu.org
45259         and autotools-announce@gnu.org mailing lists useful.
45260
45261 2006-11-28  Bruno Haible  <bruno@clisp.org>
45262
45263         * m4/ptrdiff_max.m4: Remove file.
45264
45265 2006-11-21  Bruno Haible  <bruno@clisp.org>
45266
45267         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45268         _AC_COMPUTE_INT.
45269         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45270         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45271         _AC_COMPUTE_INT.
45272         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45273         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45274         _AC_COMPUTE_INT.
45275         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45276
45277 2006-11-28  Jim Meyering  <jim@meyering.net>
45278
45279         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45280         warning from "gcc -Wshadow" about shadowing the builtin.
45281
45282 2006-11-27  Bruno Haible  <bruno@clisp.org>
45283
45284         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45285         _AC_COMPUTE_INT.
45286         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45287
45288 2006-11-27  Bruno Haible  <bruno@clisp.org>
45289             Paul Eggert  <eggert@cs.ucla.edu>
45290
45291         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45292
45293 2006-11-26  Bruno Haible  <bruno@clisp.org>
45294
45295         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45296         noinst_LTLIBRARIES.
45297
45298 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45299             Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45302         if compiling with "gcc -ansi".
45303
45304 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45305
45306         Fix some incompatibilities with gcc -ansi -pedantic.
45307         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45308         if compiling pedantically with GCC, unless it's C99 or later.
45309         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45310         it mishandles gcc -ansi -pedantic as well.
45311         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45312         if gcc -pedantic.
45313         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45314         initializers for struct if -pedantic, unless it's C99 or later.
45315
45316 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45317
45318         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45319         Don't close an fd more than once. Identical atimes indicate
45320         success, not failure.
45321
45322 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45323
45324         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45325
45326 2006-11-23  Jim Meyering  <jim@meyering.net>
45327
45328         * build-aux/announce-gen: New file.  From coreutils.
45329
45330 2006-11-22  Jim Meyering  <jim@meyering.net>
45331
45332         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45333         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45334         (fts_read): Use a temporary to narrow the overused st_size member
45335         before using it in a switch statement.  Reported by Matthew Woehlke.
45336
45337         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45338         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45339
45340 2006-11-20  Bruno Haible  <bruno@clisp.org>
45341
45342         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45343         changequote instead of pairs of brackets.
45344         Reported by Andreas Schwab <schwab@suse.de>.
45345
45346 2006-11-21  Jim Meyering  <jim@meyering.net>
45347
45348         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45349         so as to remain compatible with older compilers.
45350         Patch from Michael Deutschmann.
45351
45352 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45353
45354         * MODULES.html.sh (File system functions): Add openat.
45355
45356         * lib/openat.h (rpl_fstatat): New macro, if
45357         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45358         (fstatat): Define to rpl_fstatat under the same conditions,
45359         unless COMPILING_FSTATAT.
45360         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45361         seems to have the bug.
45362         * lib/fstatat.c: New file.
45363         * modules/openat (Files): Add it.
45364
45365 2006-11-20  Bruno Haible  <bruno@clisp.org>
45366
45367         * Makefile: New file.
45368
45369 2006-11-20  Jim Meyering  <jim@meyering.net>
45370
45371         The beginnings of syntax-related checks for gnulib.
45372         * lib/Makefile: New file.
45373         * lib/t-idcache: New script.  Ensure that the two halves of
45374         idcache.c stay in sync.
45375
45376         * lib/idcache.c: Adjust comments in user- and group- portions to
45377         be more accurate, and to be consistent with one another.
45378
45379 2006-11-20  Jim Meyering  <jim@meyering.net>
45380
45381         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45382         continue using the flexible array member (thus, this module performs
45383         half as many malloc calls), with the addition that...
45384         (getgroup, getuser): Consistently record a non-match via an empty
45385         "name" string, and map an empty string match to a NULL return value.
45386         * modules/idcache (Depends-on): Re-add flexmember.
45387
45388         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45389         (getuidbyname, getgroup, getgidbyname): Likewise.
45390
45391         Use cleaner syntax: NULL rather than 0.
45392         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45393
45394 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45395
45396         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45397         It mishandled the case where the group was missing.
45398         Problem reported by Greg Schafer.
45399         * modules/idcache: Likewise.
45400
45401 2006-11-18  Jim Meyering  <jim@meyering.net>
45402
45403         * check-module (%exempt_header): Add exception for some
45404         conditionally-included headers.
45405
45406         * modules/i-ring (Depends-on): Add verify.
45407         (License): Change to LGPL.
45408
45409 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45410
45411         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
45412         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
45413         and inttostr.h.  Use snprintf rather than uinttostr, so that
45414         LGPLed code doesn't depend on GPLed.
45415
45416 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45417
45418         * modules/inline (License): Change from GPL to LGPL.
45419
45420 2006-11-17  Jim Meyering  <jim@meyering.net>
45421
45422         * modules/d-type (License): Switch to LGPL.
45423
45424 2006-11-15  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
45427
45428 2006-11-15  Eric Blake  <ebb9@byu.net>
45429
45430         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
45431         the module dependency.
45432
45433 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45434             Bruno Haible  <bruno@clisp.org>
45435
45436         * gnulib-tool (func_create_testdir): Add license consistency check.
45437
45438 2006-11-15  Eric Blake  <ebb9@byu.net>
45439
45440         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
45441         random "(cached)" in configure output.
45442
45443 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45444
45445         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
45446         test for conforming inttypes.h is both announced and cached.
45447
45448         * MODULES.html.sh (seen_modules, seen_files): New variables.
45449         (func_module): Rewrite to use a few less gnulib-tool and sed
45450         invocations.  Avoid a couple of quadratic algorithms for ...
45451         (missed_modules, missed_files): ... these, with ...
45452         (func_append, func_tmpdir): ... these new functions, from
45453         gnulib-tool.  Analogously, install traps for cleanup.
45454
45455         * tests/test-gc.c (main): Remove unused variables.
45456         * tests/test-read-file.c: Include stdlib.h, for 'free'.
45457
45458 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
45459
45460         * modules/inttostr (License): Change to LGPL.
45461
45462 2006-11-14  Eric Blake  <ebb9@byu.net>
45463
45464         * modules/tempname (License): Change to LGPL.
45465
45466 2006-11-14  Eric Blake  <ebb9@byu.net>
45467
45468         * doc/functions.texi (Function Portability): *printf functions on
45469         Cygwin now understand all POSIX size specifiers.
45470
45471 2006-11-14  Bruno Haible  <bruno@clisp.org>
45472
45473         * modules/c-ctype (License): Change to LGPL.
45474
45475 2006-11-12  Bruno Haible  <bruno@clisp.org>
45476
45477         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45478         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
45479         for GNOME libraries, for which the include files are installed in
45480         subdirectories of $prefix/include.
45481
45482 2006-11-12  Bruno Haible  <bruno@clisp.org>
45483
45484         * m4/lib-link.m4: Require at least autoconf-2.54.
45485         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
45486         name to underscores for the --with option.
45487
45488 2006-11-13  Bruno Haible  <bruno@clisp.org>
45489
45490         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
45491         the tests directory.
45492         Reported by Ralf Wildenhues.
45493
45494 2006-11-13  Bruno Haible  <bruno@clisp.org>
45495
45496         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
45497         (func_emit_initmacro_end): Undo the override here.
45498         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
45499         Works around the famous automake error in coreutils.
45500
45501 2006-11-13  Eric Blake  <ebb9@byu.net>
45502
45503         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
45504         element, not its node.
45505
45506 2006-11-12  Bruno Haible  <bruno@clisp.org>
45507
45508         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
45509         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
45510
45511 2006-11-12  Bruno Haible  <bruno@clisp.org>
45512
45513         * gnulib-tool: New option --local-symlink.
45514         (func_usage): Document it.
45515         (lsymbolic): New variable.
45516         (func_import, func_create_testdir): If --symlink was not specified,
45517         test whether --local-symlink was specified and the file comes from
45518         the local_gnulib_dir.
45519
45520 2006-11-12  Bruno Haible  <bruno@clisp.org>
45521
45522         * gnulib-tool (func_ln): New function.
45523         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
45524
45525 2006-11-12  Bruno Haible  <bruno@clisp.org>
45526
45527         Finish support for source files in subdirectories.
45528         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
45529         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
45530         AUTOMAKE_OPTIONS.
45531         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
45532
45533 2006-11-12  Bruno Haible  <bruno@clisp.org>
45534
45535         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45536         EXTRA_lib_SOURCES augmentation.
45537         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
45538
45539 2006-11-12  Jim Meyering  <jim@meyering.net>
45540
45541         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
45542         file descriptors.  This also averts a failure on systems with
45543         native openat support when a traversed directory lacks "x" access.
45544         * lib/fts_.h: Include "i-ring.h"
45545         (struct FTS) [fts_fd_ring]: New member.
45546         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
45547         (FCHDIR): Add parentheses.
45548         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
45549         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
45550         When descending, rather than simply closing the previous
45551         fts_cwd_fd value, push that file descriptor onto the ring.
45552         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
45553         (fts_open): Initialize the new fd_ring member.
45554         (fts_close): Clear the ring.
45555         (fts_safe_changedir): When possible, use our new fd_ring to skip
45556         the diropen and fstat and dev/ino comparison that would normally
45557         accompany a virtual `chdir ("..")'.
45558
45559         * modules/fts (Depends-on): Add i-ring.
45560         * modules/i-ring: New module.
45561         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
45562         * m4/i-ring.m4: New file.
45563
45564 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45565
45566         * gnulib-tool (func_create_testdir): Fix replacement of
45567         `build-aux' in configure.ac.  Run autotools in gltests
45568         subdirectory.
45569         (func_create_testdir, func_create_megatestdir, test): There is
45570         no need for '--force' in most autotool invocations in a new
45571         tree.  Actually fail the whole test if any of the tools, or the
45572         configure or make stages fail.
45573
45574         Sync from Automake.
45575         * build-aux/gnupload: Revert last change.  Add pointer to upload
45576         instructions of the GNU Maintenance Instructions.
45577         Suggestion by Karl Berry.
45578
45579 2006-11-10  Jim Meyering  <jim@meyering.net>
45580
45581         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
45582
45583 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45584
45585         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
45586         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
45587         (bind_textdomain_codeset) [! ENABLE_NLS]:
45588         Evaluate all the arguments.  That way, callers get compatible behavior
45589         if the arguments have side effects.  Also, it avoids some GCC
45590         diagnostics in some cases; Joel E. Denny reported problems when Bison
45591         was configured with --enable-gcc-warnigs.
45592
45593 2006-11-10  Jim Meyering  <jim@meyering.net>
45594
45595         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
45596         relevant options in CFLAGS (like -O, -fno-inline) are taken into
45597         account.
45598
45599 2006-11-10  Jim Meyering  <jim@meyering.net>
45600
45601         * modules/inline: New file/module.
45602         * modules/xalloc (Files): Remove m4/inline.m4.
45603         (Depends-on): Add inline, instead.
45604         * modules/oset: Likewise.
45605         * modules/list: Likewise.
45606
45607 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45608
45609         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
45610         Problem reported by Matthew Woehlke.
45611
45612 2006-11-09  Bruno Haible  <bruno@clisp.org>
45613
45614         * lib/tempname.c (gen_tempname): Remove variant that invokes
45615         __gen_tempname.
45616         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
45617         __gen_tempname.
45618
45619 2006-11-08  Bruno Haible  <bruno@clisp.org>
45620
45621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
45622         to 'yes' instead of 'cross-compiling'.
45623
45624 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
45625
45626         * lib/quotearg.h (quotearg_free): New decl.
45627         * lib/quotearg.c (quotearg_free): New function.
45628         (slot0, nslots, slotvec0, slotvec):
45629         Now file-scope so that quotearg_free can get at them.
45630
45631 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45632
45633         Sync from Automake.
45634         * build-aux/gnupload: Add missing 'gnu' to example URL.
45635         Report by Karl Berry.
45636
45637 2006-11-08  Bruno Haible  <bruno@clisp.org>
45638
45639         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
45640         Suggested by Paul Eggert.
45641
45642 2006-11-08  Jim Meyering  <jim@meyering.net>
45643
45644         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
45645         It's already included if !_LIBC.
45646         (fts_safe_changedir): Add a comment.
45647
45648 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45649
45650         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
45651         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
45652         Matthew Woehlke.
45653
45654         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
45655         definitions up, to avoid colliding with change below.
45656         (static_inline) [HAVE_INLINE]: New macro.
45657         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
45658         Provide extern decls when !HAVE_INLINE.  Do not define unless
45659         static_inline is defined, either by us or by xmalloc.c.  Use
45660         static_inline rather than static inline.
45661         (XCALLOC): Optimize sizeof(T) = 1 case.
45662         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
45663
45664 2006-11-07  Bruno Haible  <bruno@clisp.org>
45665
45666         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
45667         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
45668         AC_C_INLINE.
45669         * modules/xalloc (Files): Add m4/inline.m4.
45670
45671 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45672
45673         * README: Fix typo.
45674         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
45675         (Miscellanous Notes): ...from this.
45676
45677 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45678
45679         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
45680         Mention that offsetof should be used instead of sizeof.
45681         From Bruno Haible.
45682
45683 2006-11-07  Bruno Haible  <bruno@clisp.org>
45684
45685         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
45686
45687 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45688
45689         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45690         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
45691         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45692         (gl_tree_add_before, gl_tree_add_after):
45693         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
45694         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
45695         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45696         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
45697         (gl_linked_add_after, gl_linked_add_at): Likewise.
45698         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
45699         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45700         (gl_tree_add_before, gl_tree_add_after): Likewise.
45701         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
45702         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
45703         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
45704
45705 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45706
45707         * lib/gl_oset.h: Use C comment style, not C++ comment style.
45708
45709 2006-11-06  Bruno Haible  <bruno@clisp.org>
45710
45711         * m4/inline.m4: New file.
45712         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
45713         * modules/list (Files): Add m4/inline.m4.
45714         * modules/oset (Files): Likewise.
45715
45716 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45717
45718         * lib/idcache.c: Include <stddef.h>, for offsetof.
45719         (struct userid.name): Change from char * to a flexible array member.
45720         All uses changed.
45721         * modules/idcache (Depends-on): Add flexmember.
45722
45723         * MODULES.html.sh (Core language properties): New module flexmember.
45724         * modules/flexmember, m4/flexmember.m4: New files.
45725
45726         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
45727         inline functions that are identical with the old xnmalloc_inline,
45728         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
45729         that we can avoid some unnecessary integer multiplications and
45730         divisions in the common case where the element size is known at
45731         compile time.
45732         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
45733         needed.
45734         (xnboundedmalloc): Remove.
45735         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
45736         arguments, for consistency with rest of this header.
45737         (xcharalloc): Rewrite using XNMALLOC.
45738         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
45739         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
45740         versions have been moved to lib/xalloc.h and renamed to be the
45741         non-*_inline versions.
45742         (xmalloc, xrealloc): Implement without reference to the xnmalloc
45743         and xnrealloc functions, since those functions are now inline and
45744         now call us.
45745         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
45746         renaming described above.
45747         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
45748         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
45749         captures the dependency in AC_C_INLINE.
45750
45751         New module canonicalize-lgpl, proposed by Charles Wilson in
45752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
45753         with a few small changes afterwards.
45754         * MODULES.html.sh (File system functions): New module
45755         canonicalize-lgpl.
45756         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
45757         and canonicalize_file_name.
45758         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
45759         * modules/canonicalize-lgpl: New files.
45760
45761 2006-11-05  Bruno Haible  <bruno@clisp.org>
45762
45763         * gnulib-tool (func_import, func_create_testdir): Create directories
45764         also for files in subdirectories of lib/.
45765
45766 2006-11-05  Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
45769         ANSI C compliant.
45770
45771 2006-11-03  Bruno Haible  <bruno@clisp.org>
45772
45773         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45774         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
45775         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
45776         (xnboundedmalloc): New inline function.
45777         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
45778         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
45779         xmalloc.
45780         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
45781         xmalloc.
45782         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
45783         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
45784         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
45785         xmalloc.
45786         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45787         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
45788         xmalloc.
45789         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
45790         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45791         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
45792         xmalloc.
45793         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45794         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
45795         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45796         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
45797         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
45798         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
45799         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
45800
45801 2006-11-03  Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/c-ctype.h [C++]: Define functions without name mangling.
45804         * lib/fwriteerror.h [C++]: Likewise.
45805         * lib/gcd.h [C++]: Likewise.
45806         * lib/linebreak.h [C++]: Likewise.
45807
45808 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45809
45810         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
45811         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
45812         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
45813         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45814         Check for functions and headers just once.
45815         Check for declaration of canonicalize_file_name.
45816         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
45817
45818 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45819
45820         * gnulib-tool (func_import): Fix typo in actioncmd.
45821
45822 2006-11-02  Bruno Haible  <bruno@clisp.org>
45823
45824         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
45825         newline sequence in the Makefile.am snippet as a space, like "make"
45826         does.
45827         Reported by Roger Persson <perrog@gmail.com>.
45828
45829 2006-11-01  Bruno Haible  <bruno@clisp.org>
45830
45831         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
45832         already declared in <string.h>.
45833         * lib/strcase.h (strncasecmp): Don't declare it if yes.
45834
45835 2006-11-01  Bruno Haible  <bruno@clisp.org>
45836
45837         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
45838         * lib/strcase.h: Include <string.h>.
45839         (strcasecmp): Define to rpl_strcasecmp here.
45840
45841 2006-11-01  Bruno Haible  <bruno@clisp.org>
45842
45843         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
45844
45845 2006-11-01  Eric Blake  <ebb9@byu.net>
45846
45847         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
45848
45849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
45850
45851 2006-10-29  Bruno Haible  <bruno@clisp.org>
45852
45853         Make it compile in C++ mode.
45854         * lib/full-write.c (full_rw): Add a cast.
45855
45856 2006-11-01  Bruno Haible  <bruno@clisp.org>
45857
45858         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
45859         be POSIX compliant.
45860         Reported by Roger Persson <perrog@gmail.com>.
45861
45862 2006-11-01  Eric Blake  <ebb9@byu.net>
45863
45864         * lib/getopt_.h: Fix comments.
45865
45866 2006-10-31  Eric Blake  <ebb9@byu.net>
45867
45868         * modules/tmpdir (Depends-on): Add sys_stat.
45869         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
45870         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
45871         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
45872         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
45873         tempname.
45874
45875 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45876
45877         Avoid some C++ diagnostics reported by Bruno Haible.
45878         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
45879         xmalloc.
45880         (quotearg_alloc): Use xcharalloc rather than xmalloc.
45881         (struct slotvec): Move to top level.
45882         (quotearg_n_options): Rewrite to avoid xmalloc.
45883         * lib/xalloc.h (xcharalloc): New function.
45884         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
45885         [defined __cplusplus]: Add function template that provides result
45886         type propagation.  This part of the change is from Bruno Haible.
45887
45888 2006-10-29  Bruno Haible  <bruno@clisp.org>
45889
45890         Make it compile in C++ mode.
45891         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
45892         * lib/strnlen1.c (strnlen1): Cast memchr result.
45893         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
45894         * lib/clean-temp.c (string_equals, string_hash): Add casts.
45895         (create_temp_dir): Rename local variable 'template'.
45896         (compile_csharp_using_sscli): Add cast.
45897         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
45898         * lib/findprog.c (find_in_path): Likewise.
45899         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
45900         * lib/wait-process.c (register_slave_subprocess): Likewise.
45901
45902 2006-10-22  Bruno Haible  <bruno@clisp.org>
45903
45904         * modules/tsearch: New file.
45905         * lib/tsearch.h: New file.
45906         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
45907         * m4/tsearch.m4: New file.
45908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
45909
45910 2006-10-29  Eric Blake  <ebb9@byu.net>
45911
45912         * lib/arcfour.c: Assume config.h.
45913         * lib/arctwo.c: Likewise.
45914         * lib/base64.c: Likewise.
45915         * lib/check-version.c: Likewise.
45916         * lib/crc.c: Likewise.
45917         * lib/des.c: Likewise.
45918         * lib/gc-gnulib.c: Likewise.
45919         * lib/gc-libgcrypt.c: Likewise.
45920         * lib/gc-pbkdf2-sha1.c: Likewise.
45921         * lib/getaddrinfo.c: Likewise.
45922         * lib/getdelim.c: Likewise.
45923         * lib/getline.c: Likewise.
45924         * lib/hmac-md5.c: Likewise.
45925         * lib/hmac-sha1.c: Likewise.
45926         * lib/iconvme.c: Likewise.
45927         * lib/md2.c: Likewise.
45928         * lib/md4.c: Likewise.
45929         * lib/memxor.c: Likewise.
45930         * lib/read-file.c: Likewise.
45931         * lib/readline.c: Likewise.
45932         * lib/rijndael-alg-fst.c: Likewise.
45933         * lib/rijndael-api-fst.c: Likewise.
45934         * lib/xgetdomainname.c: Likewise.
45935
45936 2006-10-28  Eric Blake  <ebb9@byu.net>
45937
45938         * lib/xstrndup.c: Assume config.h.
45939
45940 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45941
45942         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
45943         stat-macros.h is now for our own macros, whereas stat_h is for
45944         macros in the <sys/stat.h> name space.
45945         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
45946         (STAT_MACROS_H): Remove.
45947         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
45948         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
45949         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
45950         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
45951         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
45952         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
45953         Move these macros to ...
45954         * lib/stat_.h: here.  Don't include stat-macros.h.
45955         * lib/canonicalize.c: Don't include stat-macros.h.
45956         * lib/chown.c: Likewise.
45957         * lib/euidaccess.c: Likewise.
45958         * lib/file-type.c: Likewise.
45959         * lib/filemode.c: Likewise.
45960         * lib/glob.c: Likewise.
45961         * lib/isapipe.c: Likewise.
45962         * lib/lchown.c: Likewise.
45963         * lib/lstat.c: Likewise.
45964         * lib/mkdir-p.c: Likewise.
45965         * lib/rmdir.c: Likewise.
45966         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45968         unless mkdir isn't declared, to speed up 'configure'.
45969         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45970         would define all the S_* symbols.
45971         * modules/canonicalize (Depends-on):
45972         Depend on sys_stat, not stat-macros.
45973         * modules/chown: Likewise.
45974         * modules/euidaccess: Likewise.
45975         * modules/filemode: Likewise.
45976         * modules/file-type: Likewise.
45977         * modules/glob: Likewise.
45978         * modules/isapipe: Likewise.
45979         * modules/lchown: Likewise.
45980         * modules/lstat: Likewise.
45981         * modules/mkancesdirs: Likewise.
45982         * modules/rmdir: Likewise.
45983         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45984         * modules/modechange: Likewise.
45985         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45986         (configure.ac): Remove gl_STAT_MACROS.
45987         * modules/sys_stat (Depends-on): Remove stat-macros.
45988
45989 2006-10-27  Bruno Haible  <bruno@clisp.org>
45990
45991         * m4/signed.m4: Remove file.
45992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45993         invocation.
45994         * modules/vasnprintf (Files): Remove m4/signed.m4.
45995
45996 2006-10-27  Bruno Haible  <bruno@clisp.org>
45997
45998         Update to GNU gettext 0.16.
45999         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46000         m4/inttypes-h.m4, m4/signed.m4.
46001         * m4/gettext.m4: Update to GNU gettext 0.16.
46002         * m4/intl.m4: New file, from GNU gettext.
46003         * m4/intldir.m4: New file, from GNU gettext.
46004         * config/srclist.txt: Update
46005
46006 2006-10-27  Eric Blake  <ebb9@byu.net>
46007
46008         * MODULES.html.sh: Document tempname.
46009         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46010         dependencies.
46011         (Files): Move lib/tempname.c...
46012         * modules/tempname: ...to this new module.
46013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46014         (gl_PREREQ_TEMPNAME): Move...
46015         * m4/tempname.m4: ...to this new file.
46016         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46017         * modules/sys_stat (Depends-on): Add stat-macros.
46018         * lib/stat_.h (includes): Pick up stat macros.
46019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46020         if stat macros are broken.
46021         * lib/tempname.c (includes): No need to include "stat-macros.h".
46022         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46023         (direxists, __path_search) [!_LIBC]: Don't compile these in
46024         gnulib; the tmpdir module covers that.
46025         * lib/tempname.h: New file.
46026
46027 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46028
46029         * COPYING: Explain how gnulib-tool converts licence headers.
46030         Almost all wording by Eric Blake.
46031
46032 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46033
46034         * lib/mbchar.h (is_basic_table): Make read-only.
46035         * lib/mbchar.c (is_basic_table): Likewise.
46036         Reported by John Darrington.
46037
46038 2006-10-25  Bruno Haible  <bruno@clisp.org>
46039
46040         * lib/progname.h (set_program_name): Undefine before defining.
46041
46042 2006-10-25  Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46045         false for non-gcc C++ compilers.
46046         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46047
46048 2006-10-24  Bruno Haible  <bruno@clisp.org>
46049
46050         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46051         iconv implementations like Irix iconv.
46052
46053 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46054
46055         * modules/vararrays: New file.
46056         * m4/vararrays.m4: New file, taken from diffutils.
46057         * MODULES.html.sh: New module vararrays.
46058
46059 2006-10-24  Karl Berry  <karl@gnu.org>
46060
46061         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46062         Don't call GNU Unix.
46063
46064 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46065
46066         * users.txt: Add Libtool.
46067
46068         Sync from Libtool:
46069
46070         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46071
46072         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46073         to gnulib's policy of including config.h unconditionally.
46074
46075 2006-10-24  Bruno Haible  <bruno@clisp.org>
46076
46077         * modules/wcwidth (Files): Add m4/wint_t.m4.
46078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46079         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46080
46081 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46082
46083         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46084         to pacify GCC with some -W flags enabled.  Problem reported by
46085         Bruno Haible.
46086
46087 2006-10-24  Jim Meyering  <jim@meyering.net>
46088
46089         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46090         Reported by Karl Berry.
46091
46092 2006-10-23  Bruno Haible  <bruno@clisp.org>
46093
46094         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46095
46096 2006-10-24  Bruno Haible  <bruno@clisp.org>
46097
46098         * lib/gl_list.h: Use C comment style, not C++ comment style.
46099
46100 2006-10-23  Eric Blake  <ebb9@byu.net>
46101
46102         * lib/getaddrinfo.c (includes): Add missing include.
46103
46104 2006-10-23  Bruno Haible  <bruno@clisp.org>
46105             Paul Eggert  <eggert@cs.ucla.edu>
46106
46107         Ability to rename obstack_free.
46108         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46109         obstack_free.
46110         (obstack_free): Invoke the __obstack_free macro.
46111         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46112
46113 2006-10-23  Bruno Haible  <bruno@clisp.org>
46114             Paul Eggert  <eggert@cs.ucla.edu>
46115
46116         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46117         __argc, __argv from the declaration. (They are defined as macros on
46118         mingw.)
46119
46120 2006-10-22  Bruno Haible  <bruno@clisp.org>
46121
46122         * doc/gnulib-intro.texi: New file.
46123         * doc/gnulib.texi: Include it.
46124
46125 2006-10-21  Bruno Haible  <bruno@clisp.org>
46126
46127         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46128         "Introduction", "Miscellanous Notes", "Particular Modules".
46129
46130 2006-10-21  Bruno Haible  <bruno@clisp.org>
46131
46132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46133         Change mostlyclean-local rule to avoid sh syntax error from bash
46134         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46135
46136 2006-10-23  Jim Meyering  <jim@meyering.net>
46137
46138         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46139         in place of snprintf.
46140
46141         * modules/inttostr (Files): Add lib/uinttostr.c.
46142         * lib/uinttostr.c (inttostr): New file/function.
46143         * lib/inttostr.h (uinttostr): Declare.
46144         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46145         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46146         Add uinttostr.
46147         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46148
46149 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * lib/canonicalize.c (ELOOP): Define if not already defined.
46152         Problem reported by Bruno Haible in
46153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46154
46155 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46156
46157         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46158         Problem reported by Perry Smith and Ville Laurikari.
46159
46160         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46161         uses.
46162
46163 2006-10-19  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46166         for mingw.
46167
46168 2006-10-19  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46171         Needed for mingw.
46172
46173 2006-10-19  Bruno Haible  <bruno@clisp.org>
46174
46175         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46176
46177 2006-10-19  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46180         it.
46181
46182 2006-10-19  Bruno Haible  <bruno@clisp.org>
46183
46184         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46185         invocation.
46186
46187 2006-10-19  Bruno Haible  <bruno@clisp.org>
46188
46189         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46190         mountlist by default.
46191
46192 2006-10-16  Bruno Haible  <bruno@clisp.org>
46193
46194         * lib/c-strstr.c: Include c-strstr.h.
46195
46196 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46197
46198         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46199         in a slash.
46200
46201 2006-10-18  Bruno Haible  <bruno@clisp.org>
46202
46203         * lib/lock.h [C++]: Wrap definitions in extern "C".
46204
46205 2006-10-18  Bruno Haible  <bruno@clisp.org>
46206
46207         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46208         gl_LIBOBJS list.
46209
46210 2006-10-18  Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46213
46214 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46215
46216         * lib/xstrtol.h: Include gettext.h.
46217         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46218         Problem reported by Eric Blake.
46219         * modules/xstrtol (Depends-on): Add gettext-h.
46220
46221 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46222
46223         * lib/strftime.c (advance): New macro.
46224         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46225         incomplete type, so you can't add 0 to it.  Problem and patch
46226         reported by Eelco Dolstra for dietlibc.
46227
46228 2006-10-18  Jim Meyering  <jim@meyering.net>
46229
46230         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46231         type for a local, and rename it: s/up/user_proc/.
46232
46233 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46234
46235         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46236         READ_UTMP_USER_PROCESS.
46237         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46238
46239 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46240
46241         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46242         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46243
46244 2006-10-17  Eric Blake  <ebb9@byu.net>
46245
46246         * lib/sigprocmask.c (sigprocmask): Fix typo.
46247
46248         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46249
46250         * modules/clean-temp (Makefile.am): Don't add to make output...
46251         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46252         config.h.
46253
46254 2006-10-17  Bruno Haible  <bruno@clisp.org>
46255
46256         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46257         differently if DEFAULT_TEXT_DOMAIN is set.
46258
46259 2006-10-16  Bruno Haible  <bruno@clisp.org>
46260
46261         * lib/clean-temp.c: Include fwriteerror.h.
46262
46263 2006-10-16  Bruno Haible  <bruno@clisp.org>
46264
46265         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46266
46267 2006-10-16  Bruno Haible  <bruno@clisp.org>
46268
46269         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46270         * lib/sigprocmask.h: Include <sys/types.h>.
46271         (sigset_t): Use the system's definition if present.
46272
46273 2006-10-17  Eric Blake  <ebb9@byu.net>
46274
46275         * lib/xvasprintf.c (includes): Assume config.h.
46276         * lib/xasprintf.c (includes): Likewise.
46277
46278 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46279
46280         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46281         at least as wide as intmax_t.
46282
46283 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46284
46285         (Imported from Automake.)
46286         * build-aux/gnupload: Update to version 1.1 of directive file.
46287
46288 2006-10-16  Eric Blake  <ebb9@byu.net>
46289
46290         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46291         match Automake 1.10a.
46292
46293 2006-10-14  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/sigprocmask: New file.
46296         * lib/sigprocmask.h: New file.
46297         * lib/sigprocmask.c: New file.
46298         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46299         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46300         request sigprocmask.o.
46301         (gl_PREREQ_SIGPROCMASK): New macro.
46302         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46303         (Depends-on): Add sigprocmask.
46304         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46305         gt_SIGNALBLOCKING. Test for 'raise' only once.
46306         * lib/fatal-signal.c: Include sigprocmask.h.
46307         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46308         unblock_fatal_signals): Define always.
46309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46310         sigprocmask.
46311
46312 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46313
46314         Sync from Automake.
46315         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46316         which incorrectly sets the mode of an existing destination
46317         directory.  In some cases the unpatched install-sh could do the
46318         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46319         system.  We hope this is rare in practice, but it's clearly worth
46320         fixing.  Problem reported by Alex Unleashed in
46321         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46322         Also, don't bother to check for -m bugs unless we're using -m;
46323         suggested by Stepan Kasal.
46324
46325 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46326
46327         Sync from Automake.
46328         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46329         `-c' flag, so they appear at the same position as in %FASTDEP%
46330         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46331         which ignores unknown options only after the first non-option.
46332         Bug report against M4 by Nelson H. F. Beebe.
46333
46334 2006-10-13  Jim Meyering  <jim@meyering.net>
46335
46336         Fix a bug in yesterday's change.
46337         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46338         p->fts_statp->st_dev would be used uninitialized.
46339         Ensures that we always call fts_stat on the very first entry.
46340         Miklos Szeredi reported that find -xdev stopped working.
46341
46342 2006-10-12  Bruno Haible  <bruno@clisp.org>
46343
46344         * gnulib-tool (func_get_automake_snippet): Append an automatically
46345         computed EXTRA_DIST augmentation.
46346         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46347         * modules/alloca-opt (Makefile.am): Likewise.
46348         * modules/allocsa (Makefile.am): Likewise.
46349         * modules/arcfour (Makefile.am): Likewise.
46350         * modules/arctwo (Makefile.am): Likewise.
46351         * modules/argmatch (Makefile.am): Likewise.
46352         * modules/argz (Makefile.am): Likewise.
46353         * modules/atexit (Makefile.am): Likewise.
46354         * modules/backupfile (Makefile.am): Likewise.
46355         * modules/byteswap (Makefile.am): Likewise.
46356         * modules/c-strtod (Makefile.am): Likewise.
46357         * modules/c-strtold (Makefile.am): Likewise.
46358         * modules/calloc (Makefile.am): Likewise.
46359         * modules/canon-host (Makefile.am): Likewise.
46360         * modules/canonicalize (Makefile.am): Likewise.
46361         * modules/chdir-long (Makefile.am): Likewise.
46362         * modules/chdir-safer (Makefile.am): Likewise.
46363         * modules/check-version (Makefile.am): Likewise.
46364         * modules/chown (Makefile.am): Likewise.
46365         * modules/cloexec (Makefile.am): Likewise.
46366         * modules/close-stream (Makefile.am): Likewise.
46367         * modules/closeout (Makefile.am): Likewise.
46368         * modules/crc (Makefile.am): Likewise.
46369         * modules/csharpexec (Makefile.am): Likewise.
46370         * modules/cycle-check (Makefile.am): Likewise.
46371         * modules/des (Makefile.am): Likewise.
46372         * modules/dev-ino (Makefile.am): Likewise.
46373         * modules/dirfd (Makefile.am): Likewise.
46374         * modules/dirname (Makefile.am): Likewise.
46375         * modules/dup2 (Makefile.am): Likewise.
46376         * modules/eealloc (Makefile.am): Likewise.
46377         * modules/error (Makefile.am): Likewise.
46378         * modules/euidaccess (Makefile.am): Likewise.
46379         * modules/exclude (Makefile.am): Likewise.
46380         * modules/exitfail (Makefile.am): Likewise.
46381         * modules/fcntl-safer (Makefile.am): Likewise.
46382         * modules/fcntl (Makefile.am): Likewise.
46383         * modules/file-type (Makefile.am): Likewise.
46384         * modules/fileblocks (Makefile.am): Likewise.
46385         * modules/filemode (Makefile.am): Likewise.
46386         * modules/filenamecat (Makefile.am): Likewise.
46387         * modules/fnmatch (Makefile.am): Likewise.
46388         * modules/fopen-safer (Makefile.am): Likewise.
46389         * modules/fpending (Makefile.am): Likewise.
46390         * modules/fprintftime (Makefile.am): Likewise.
46391         * modules/free (Makefile.am): Likewise.
46392         * modules/fsusage (Makefile.am): Likewise.
46393         * modules/ftruncate (Makefile.am): Likewise.
46394         * modules/fts (Makefile.am): Likewise.
46395         * modules/gc-arcfour (Makefile.am): Likewise.
46396         * modules/gc-des (Makefile.am): Likewise.
46397         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46398         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46399         * modules/gc-md4 (Makefile.am): Likewise.
46400         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46401         * modules/gc-sha1 (Makefile.am): Likewise.
46402         * modules/gc (Makefile.am): Likewise.
46403         * modules/getaddrinfo (Makefile.am): Likewise.
46404         * modules/getcwd (Makefile.am): Likewise.
46405         * modules/getdelim (Makefile.am): Likewise.
46406         * modules/getdomainname (Makefile.am): Likewise.
46407         * modules/getgroups (Makefile.am): Likewise.
46408         * modules/gethostname (Makefile.am): Likewise.
46409         * modules/gethrxtime (Makefile.am): Likewise.
46410         * modules/getline (Makefile.am): Likewise.
46411         * modules/getloadavg (Makefile.am): Likewise.
46412         * modules/getlogin_r (Makefile.am): Likewise.
46413         * modules/getndelim2 (Makefile.am): Likewise.
46414         * modules/getopt (Makefile.am): Likewise.
46415         * modules/getpagesize (Makefile.am): Likewise.
46416         * modules/getpass-gnu (Makefile.am): Likewise.
46417         * modules/getpass (Makefile.am): Likewise.
46418         * modules/getsubopt (Makefile.am): Likewise.
46419         * modules/gettime (Makefile.am): Likewise.
46420         * modules/gettimeofday (Makefile.am): Likewise.
46421         * modules/getugroups (Makefile.am): Likewise.
46422         * modules/getusershell (Makefile.am): Likewise.
46423         * modules/glob (Makefile.am): Likewise.
46424         * modules/group-member (Makefile.am): Likewise.
46425         * modules/hard-locale (Makefile.am): Likewise.
46426         * modules/hash (Makefile.am): Likewise.
46427         * modules/hmac-md5 (Makefile.am): Likewise.
46428         * modules/hmac-sha1 (Makefile.am): Likewise.
46429         * modules/human (Makefile.am): Likewise.
46430         * modules/idcache (Makefile.am): Likewise.
46431         * modules/imaxabs (Makefile.am): Likewise.
46432         * modules/imaxdiv (Makefile.am): Likewise.
46433         * modules/inet_ntop (Makefile.am): Likewise.
46434         * modules/inet_pton (Makefile.am): Likewise.
46435         * modules/intprops (Makefile.am): Likewise.
46436         * modules/inttostr (Makefile.am): Likewise.
46437         * modules/inttypes (Makefile.am): Likewise.
46438         * modules/isapipe (Makefile.am): Likewise.
46439         * modules/javaversion (Makefile.am): Likewise.
46440         * modules/lchmod (Makefile.am): Likewise.
46441         * modules/lchown (Makefile.am): Likewise.
46442         * modules/localcharset (Makefile.am): Likewise.
46443         * modules/long-options (Makefile.am): Likewise.
46444         * modules/lstat (Makefile.am): Likewise.
46445         * modules/malloc (Makefile.am): Likewise.
46446         * modules/mathl (Makefile.am): Likewise.
46447         * modules/mbchar (Makefile.am): Likewise.
46448         * modules/md2 (Makefile.am): Likewise.
46449         * modules/md4 (Makefile.am): Likewise.
46450         * modules/md5 (Makefile.am): Likewise.
46451         * modules/memcasecmp (Makefile.am): Likewise.
46452         * modules/memchr (Makefile.am): Likewise.
46453         * modules/memcmp (Makefile.am): Likewise.
46454         * modules/memcoll (Makefile.am): Likewise.
46455         * modules/memcpy (Makefile.am): Likewise.
46456         * modules/memmem (Makefile.am): Likewise.
46457         * modules/memmove (Makefile.am): Likewise.
46458         * modules/mempcpy (Makefile.am): Likewise.
46459         * modules/memrchr (Makefile.am): Likewise.
46460         * modules/memset (Makefile.am): Likewise.
46461         * modules/memxor (Makefile.am): Likewise.
46462         * modules/mkancesdirs (Makefile.am): Likewise.
46463         * modules/mkdir-p (Makefile.am): Likewise.
46464         * modules/mkdir (Makefile.am): Likewise.
46465         * modules/mkdtemp (Makefile.am): Likewise.
46466         * modules/mkstemp (Makefile.am): Likewise.
46467         * modules/mktime (Makefile.am): Likewise.
46468         * modules/modechange (Makefile.am): Likewise.
46469         * modules/mountlist (Makefile.am): Likewise.
46470         * modules/nanosleep (Makefile.am): Likewise.
46471         * modules/obstack (Makefile.am): Likewise.
46472         * modules/openat (Makefile.am): Likewise.
46473         * modules/pagealign_alloc (Makefile.am): Likewise.
46474         * modules/pathmax (Makefile.am): Likewise.
46475         * modules/physmem (Makefile.am): Likewise.
46476         * modules/poll (Makefile.am): Likewise.
46477         * modules/posixtm (Makefile.am): Likewise.
46478         * modules/posixver (Makefile.am): Likewise.
46479         * modules/putenv (Makefile.am): Likewise.
46480         * modules/quote (Makefile.am): Likewise.
46481         * modules/quotearg (Makefile.am): Likewise.
46482         * modules/raise (Makefile.am): Likewise.
46483         * modules/read-file (Makefile.am): Likewise.
46484         * modules/readline (Makefile.am): Likewise.
46485         * modules/readlink (Makefile.am): Likewise.
46486         * modules/readtokens (Makefile.am): Likewise.
46487         * modules/readutmp (Makefile.am): Likewise.
46488         * modules/realloc (Makefile.am): Likewise.
46489         * modules/regex (Makefile.am): Likewise.
46490         * modules/rename-dest-slash (Makefile.am): Likewise.
46491         * modules/rename (Makefile.am): Likewise.
46492         * modules/rijndael (Makefile.am): Likewise.
46493         * modules/rmdir (Makefile.am): Likewise.
46494         * modules/rpmatch (Makefile.am): Likewise.
46495         * modules/safe-read (Makefile.am): Likewise.
46496         * modules/safe-write (Makefile.am): Likewise.
46497         * modules/same-inode (Makefile.am): Likewise.
46498         * modules/same (Makefile.am): Likewise.
46499         * modules/save-cwd (Makefile.am): Likewise.
46500         * modules/savedir (Makefile.am): Likewise.
46501         * modules/setenv (Makefile.am): Likewise.
46502         * modules/settime (Makefile.am): Likewise.
46503         * modules/sha1 (Makefile.am): Likewise.
46504         * modules/sig2str (Makefile.am): Likewise.
46505         * modules/snprintf (Makefile.am): Likewise.
46506         * modules/stat-macros (Makefile.am): Likewise.
46507         * modules/stat-time (Makefile.am): Likewise.
46508         * modules/stdbool (Makefile.am): Likewise.
46509         * modules/stdint (Makefile.am): Likewise.
46510         * modules/stdlib-safer (Makefile.am): Likewise.
46511         * modules/stpcpy (Makefile.am): Likewise.
46512         * modules/stpncpy (Makefile.am): Likewise.
46513         * modules/strcase (Makefile.am): Likewise.
46514         * modules/strcasestr (Makefile.am): Likewise.
46515         * modules/strchrnul (Makefile.am): Likewise.
46516         * modules/strcspn (Makefile.am): Likewise.
46517         * modules/strdup (Makefile.am): Likewise.
46518         * modules/strerror (Makefile.am): Likewise.
46519         * modules/strftime (Makefile.am): Likewise.
46520         * modules/strndup (Makefile.am): Likewise.
46521         * modules/strnlen (Makefile.am): Likewise.
46522         * modules/strpbrk (Makefile.am): Likewise.
46523         * modules/strsep (Makefile.am): Likewise.
46524         * modules/strstr (Makefile.am): Likewise.
46525         * modules/strtod (Makefile.am): Likewise.
46526         * modules/strtoimax (Makefile.am): Likewise.
46527         * modules/strtok_r (Makefile.am): Likewise.
46528         * modules/strtol (Makefile.am): Likewise.
46529         * modules/strtoll (Makefile.am): Likewise.
46530         * modules/strtoul (Makefile.am): Likewise.
46531         * modules/strtoull (Makefile.am): Likewise.
46532         * modules/strtoumax (Makefile.am): Likewise.
46533         * modules/strverscmp (Makefile.am): Likewise.
46534         * modules/sys_socket (Makefile.am): Likewise.
46535         * modules/sys_stat (Makefile.am): Likewise.
46536         * modules/sysexits (Makefile.am): Likewise.
46537         * modules/time_r (Makefile.am): Likewise.
46538         * modules/timegm (Makefile.am): Likewise.
46539         * modules/timespec (Makefile.am): Likewise.
46540         * modules/tmpfile-safer (Makefile.am): Likewise.
46541         * modules/trim (Makefile.am): Likewise.
46542         * modules/unistd-safer (Makefile.am): Likewise.
46543         * modules/unlinkdir (Makefile.am): Likewise.
46544         * modules/unlocked-io (Makefile.am): Likewise.
46545         * modules/userspec (Makefile.am): Likewise.
46546         * modules/utime (Makefile.am): Likewise.
46547         * modules/utimecmp (Makefile.am): Likewise.
46548         * modules/utimens (Makefile.am): Likewise.
46549         * modules/vasnprintf (Makefile.am): Likewise.
46550         * modules/vasprintf (Makefile.am): Likewise.
46551         * modules/vsnprintf (Makefile.am): Likewise.
46552         * modules/xalloc (Makefile.am): Likewise.
46553         * modules/xgetcwd (Makefile.am): Likewise.
46554         * modules/xnanosleep (Makefile.am): Likewise.
46555         * modules/xreadlink (Makefile.am): Likewise.
46556         * modules/xstrtod (Makefile.am): Likewise.
46557         * modules/xstrtol (Makefile.am): Likewise.
46558         * modules/xstrtold (Makefile.am): Likewise.
46559         * modules/yesno (Makefile.am): Likewise.
46560         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
46561
46562 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46563
46564         * modules/error (Makefile.am): Distribute files through
46565         EXTRA_DIST, not lib_SOURCES.
46566
46567 2006-10-12  Eric Blake  <ebb9@byu.net>
46568
46569         * modules/error (Makefile.am): Distribute files in /lib.
46570         * modules/obstack (Makefile.am): Likewise.
46571
46572 2006-10-12  Bruno Haible  <bruno@clisp.org>
46573
46574         * modules/acl (Makefile.am): Distribute all files in lib/ through
46575         EXTRA_DIST.
46576         * modules/arcfour (Makefile.am): Likewise.
46577         * modules/arctwo (Makefile.am): Likewise.
46578         * modules/argmatch (Makefile.am): Likewise.
46579         * modules/argz (Makefile.am): Likewise.
46580         * modules/atexit (Makefile.am): Likewise.
46581         * modules/backupfile (Makefile.am): Likewise.
46582         * modules/c-strtod (Makefile.am): Likewise.
46583         * modules/c-strtold (Makefile.am): Likewise.
46584         * modules/calloc (Makefile.am): Likewise.
46585         * modules/canon-host (Makefile.am): Likewise.
46586         * modules/canonicalize (Makefile.am): Likewise.
46587         * modules/chdir-long (Makefile.am): Likewise.
46588         * modules/chdir-safer (Makefile.am): Likewise.
46589         * modules/check-version (Makefile.am): Likewise.
46590         * modules/chown (Makefile.am): Likewise.
46591         * modules/cloexec (Makefile.am): Likewise.
46592         * modules/close-stream (Makefile.am): Likewise.
46593         * modules/closeout (Makefile.am): Likewise.
46594         * modules/crc (Makefile.am): Likewise.
46595         * modules/cycle-check (Makefile.am): Likewise.
46596         * modules/des (Makefile.am): Likewise.
46597         * modules/dirfd (Makefile.am): Likewise.
46598         * modules/dirname (Makefile.am): Likewise.
46599         * modules/dup2 (Makefile.am): Likewise.
46600         * modules/euidaccess (Makefile.am): Likewise.
46601         * modules/exclude (Makefile.am): Likewise.
46602         * modules/exitfail (Makefile.am): Likewise.
46603         * modules/fcntl-safer (Makefile.am): Likewise.
46604         * modules/file-type (Makefile.am): Likewise.
46605         * modules/fileblocks (Makefile.am): Likewise.
46606         * modules/filemode (Makefile.am): Likewise.
46607         * modules/filenamecat (Makefile.am): Likewise.
46608         * modules/fnmatch (Makefile.am): Likewise.
46609         * modules/fopen-safer (Makefile.am): Likewise.
46610         * modules/fpending (Makefile.am): Likewise.
46611         * modules/fprintftime (Makefile.am): Likewise.
46612         * modules/free (Makefile.am): Likewise.
46613         * modules/fsusage (Makefile.am): Likewise.
46614         * modules/ftruncate (Makefile.am): Likewise.
46615         * modules/fts (Makefile.am): Likewise.
46616         * modules/gc (Makefile.am): Likewise.
46617         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46618         * modules/getaddrinfo (Makefile.am): Likewise.
46619         * modules/getcwd (Makefile.am): Likewise.
46620         * modules/getdelim (Makefile.am): Likewise.
46621         * modules/getdomainname (Makefile.am): Likewise.
46622         * modules/getgroups (Makefile.am): Likewise.
46623         * modules/gethostname (Makefile.am): Likewise.
46624         * modules/gethrxtime (Makefile.am): Likewise.
46625         * modules/getline (Makefile.am): Likewise.
46626         * modules/getloadavg (Makefile.am): Likewise.
46627         * modules/getlogin_r (Makefile.am): Likewise.
46628         * modules/getopt (Makefile.am): Likewise.
46629         * modules/getpass (Makefile.am): Likewise.
46630         * modules/getpass-gnu (Makefile.am): Likewise.
46631         * modules/getsubopt (Makefile.am): Likewise.
46632         * modules/gettime (Makefile.am): Likewise.
46633         * modules/gettimeofday (Makefile.am): Likewise.
46634         * modules/getugroups (Makefile.am): Likewise.
46635         * modules/getusershell (Makefile.am): Likewise.
46636         * modules/glob (Makefile.am): Likewise.
46637         * modules/group-member (Makefile.am): Likewise.
46638         * modules/hard-locale (Makefile.am): Likewise.
46639         * modules/hash (Makefile.am): Likewise.
46640         * modules/hmac-md5 (Makefile.am): Likewise.
46641         * modules/hmac-sha1 (Makefile.am): Likewise.
46642         * modules/human (Makefile.am): Likewise.
46643         * modules/idcache (Makefile.am): Likewise.
46644         * modules/imaxabs (Makefile.am): Likewise.
46645         * modules/imaxdiv (Makefile.am): Likewise.
46646         * modules/inet_ntop (Makefile.am): Likewise.
46647         * modules/inet_pton (Makefile.am): Likewise.
46648         * modules/inttostr (Makefile.am): Likewise.
46649         * modules/isapipe (Makefile.am): Likewise.
46650         * modules/lchown (Makefile.am): Likewise.
46651         * modules/long-options (Makefile.am): Likewise.
46652         * modules/lstat (Makefile.am): Likewise.
46653         * modules/malloc (Makefile.am): Likewise.
46654         * modules/mathl (Makefile.am): Likewise.
46655         * modules/mbchar (Makefile.am): Likewise.
46656         * modules/md2 (Makefile.am): Likewise.
46657         * modules/md4 (Makefile.am): Likewise.
46658         * modules/md5 (Makefile.am): Likewise.
46659         * modules/memcasecmp (Makefile.am): Likewise.
46660         * modules/memchr (Makefile.am): Likewise.
46661         * modules/memcmp (Makefile.am): Likewise.
46662         * modules/memcoll (Makefile.am): Likewise.
46663         * modules/memcpy (Makefile.am): Likewise.
46664         * modules/memmem (Makefile.am): Likewise.
46665         * modules/memmove (Makefile.am): Likewise.
46666         * modules/mempcpy (Makefile.am): Likewise.
46667         * modules/memrchr (Makefile.am): Likewise.
46668         * modules/memset (Makefile.am): Likewise.
46669         * modules/memxor (Makefile.am): Likewise.
46670         * modules/mkancesdirs (Makefile.am): Likewise.
46671         * modules/mkdir (Makefile.am): Likewise.
46672         * modules/mkdir-p (Makefile.am): Likewise.
46673         * modules/mkdtemp (Makefile.am): Likewise.
46674         * modules/mkstemp (Makefile.am): Likewise.
46675         * modules/mktime (Makefile.am): Likewise.
46676         * modules/modechange (Makefile.am): Likewise.
46677         * modules/mountlist (Makefile.am): Likewise.
46678         * modules/nanosleep (Makefile.am): Likewise.
46679         * modules/openat (Makefile.am): Likewise.
46680         * modules/pagealign_alloc (Makefile.am): Likewise.
46681         * modules/physmem (Makefile.am): Likewise.
46682         * modules/poll (Makefile.am): Likewise.
46683         * modules/posixtm (Makefile.am): Likewise.
46684         * modules/posixver (Makefile.am): Likewise.
46685         * modules/putenv (Makefile.am): Likewise.
46686         * modules/quote (Makefile.am): Likewise.
46687         * modules/quotearg (Makefile.am): Likewise.
46688         * modules/raise (Makefile.am): Likewise.
46689         * modules/read-file (Makefile.am): Likewise.
46690         * modules/readline (Makefile.am): Likewise.
46691         * modules/readlink (Makefile.am): Likewise.
46692         * modules/readtokens (Makefile.am): Likewise.
46693         * modules/readutmp (Makefile.am): Likewise.
46694         * modules/realloc (Makefile.am): Likewise.
46695         * modules/regex (Makefile.am): Likewise.
46696         * modules/rename (Makefile.am): Likewise.
46697         * modules/rename-dest-slash (Makefile.am): Likewise.
46698         * modules/rijndael (Makefile.am): Likewise.
46699         * modules/rmdir (Makefile.am): Likewise.
46700         * modules/rpmatch (Makefile.am): Likewise.
46701         * modules/safe-read (Makefile.am): Likewise.
46702         * modules/safe-write (Makefile.am): Likewise.
46703         * modules/same (Makefile.am): Likewise.
46704         * modules/save-cwd (Makefile.am): Likewise.
46705         * modules/savedir (Makefile.am): Likewise.
46706         * modules/setenv (Makefile.am): Likewise.
46707         * modules/settime (Makefile.am): Likewise.
46708         * modules/sha1 (Makefile.am): Likewise.
46709         * modules/sig2str (Makefile.am): Likewise.
46710         * modules/snprintf (Makefile.am): Likewise.
46711         * modules/stdlib-safer (Makefile.am): Likewise.
46712         * modules/stpcpy (Makefile.am): Likewise.
46713         * modules/stpncpy (Makefile.am): Likewise.
46714         * modules/strcase (Makefile.am): Likewise.
46715         * modules/strcasestr (Makefile.am): Likewise.
46716         * modules/strchrnul (Makefile.am): Likewise.
46717         * modules/strcspn (Makefile.am): Likewise.
46718         * modules/strdup (Makefile.am): Likewise.
46719         * modules/strerror (Makefile.am): Likewise.
46720         * modules/strftime (Makefile.am): Likewise.
46721         * modules/strndup (Makefile.am): Likewise.
46722         * modules/strnlen (Makefile.am): Likewise.
46723         * modules/strpbrk (Makefile.am): Likewise.
46724         * modules/strsep (Makefile.am): Likewise.
46725         * modules/strstr (Makefile.am): Likewise.
46726         * modules/strtod (Makefile.am): Likewise.
46727         * modules/strtoimax (Makefile.am): Likewise.
46728         * modules/strtok_r (Makefile.am): Likewise.
46729         * modules/strtol (Makefile.am): Likewise.
46730         * modules/strtoll (Makefile.am): Likewise.
46731         * modules/strtoul (Makefile.am): Likewise.
46732         * modules/strtoull (Makefile.am): Likewise.
46733         * modules/strtoumax (Makefile.am): Likewise.
46734         * modules/strverscmp (Makefile.am): Likewise.
46735         * modules/time_r (Makefile.am): Likewise.
46736         * modules/timegm (Makefile.am): Likewise.
46737         * modules/tmpfile-safer (Makefile.am): Likewise.
46738         * modules/unistd-safer (Makefile.am): Likewise.
46739         * modules/unlinkdir (Makefile.am): Likewise.
46740         * modules/userspec (Makefile.am): Likewise.
46741         * modules/utime (Makefile.am): Likewise.
46742         * modules/utimecmp (Makefile.am): Likewise.
46743         * modules/utimens (Makefile.am): Likewise.
46744         * modules/vasnprintf (Makefile.am): Likewise.
46745         * modules/vasprintf (Makefile.am): Likewise.
46746         * modules/vsnprintf (Makefile.am): Likewise.
46747         * modules/xalloc (Makefile.am): Likewise.
46748         * modules/xgetcwd (Makefile.am): Likewise.
46749         * modules/xnanosleep (Makefile.am): Likewise.
46750         * modules/xreadlink (Makefile.am): Likewise.
46751         * modules/xstrtod (Makefile.am): Likewise.
46752         * modules/xstrtol (Makefile.am): Likewise.
46753         * modules/xstrtold (Makefile.am): Likewise.
46754         * modules/yesno (Makefile.am): Likewise.
46755
46756 2006-10-12  Jim Meyering  <jim@meyering.net>
46757
46758         * m4/getloadavg.m4: Revert the change below.
46759
46760         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
46761         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
46762         fail with a symlink, which is what coreutils' ./bootstrap now
46763         creates by default.
46764
46765 2006-10-12  Bruno Haible  <bruno@clisp.org>
46766
46767         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
46768         mingw.
46769         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
46770         MSVC and mingw explicitly.
46771
46772 2006-10-11  Simon Josefsson  <jas@extundo.com>
46773             Bruno Haible  <bruno@clisp.org>
46774
46775         Add support for multiple gnulib-tool invocations in the scope of a
46776         single configure.ac file.
46777         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
46778         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
46779         with the same contents as the _LIBADD variable.
46780         (func_emit_initmacro_start, func_emit_initmacro_end,
46781         func_emit_initmacro_done): New functions.
46782         (func_import, func_create_testdir): Invoke them. Allow the identifiers
46783         gl_LIBOBJS and gl_LTLIBOBJS.
46784
46785 2006-10-11  Bruno Haible  <bruno@clisp.org>
46786
46787         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
46788         (func_create_testdir): Don't create po/Makefile.am, don't invoke
46789         autoreconf. Instead, invoke autopoint explicitly but move back the
46790         *.m4 files from gnulib.
46791
46792 2006-10-11  Bruno Haible  <bruno@clisp.org>
46793
46794         * gnulib-tool (func_usage): Make module names after --create-testdir
46795         optional.
46796         (func_create_testdir): If no module was specified, use nearly all
46797         modules.
46798
46799 2006-10-12  Jim Meyering  <jim@meyering.net>
46800
46801         Big performance improvement for fts-based tools that use FTS_NOSTAT.
46802         Avoid spurious inode-mismatch problems on non-POSIX file systems.
46803         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
46804         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
46805         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
46806         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
46807         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
46808         (fts_set_stat_required): New function.
46809         (fts_open): Defer the calls to fts_stat, if possible or requested.
46810         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
46811         into fts_stat itself.
46812         (fts_read): Perform any required (deferred) fts_stat call.
46813         (fts_build): Likewise, for the directory we're about to open and read.
46814         In the readdir loop, carefully decide whether each entry will require
46815         an eventual call to fts_stat, using dirent.d_type info if available.
46816         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
46817         a command line argument into this function.  Update all callers.
46818         Map a return value of FTS_DOT to FTS_D for a command line argument.
46819         * modules/fts (Depends-on): Add d-type.  Alphabetize.
46820         Thanks to Miklos Szeredi for his tenacity and for the initial
46821         bug report about "find" failing on a FUSE-based file system.
46822
46823         * lib/fts.c (fts_open): Use consistent indentation.
46824
46825 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46826
46827         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
46828         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
46829         reported by Jim Meyering.  All uses of cache variables renamed
46830         to match Autoconf's.
46831         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
46832         the other one.
46833
46834         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46835         Fix misspelling in diagnostic.
46836
46837 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46838
46839         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
46840         defined.  Problem reported by Matthew Woehlke.
46841
46842         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
46843         Add support for Tandem NonStop R series.
46844         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
46845         Use new macro.
46846
46847         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
46848         (has_trailing_slash): Omit size arg; all callers changed.
46849         Omit 'inline', since it doesn't help performance and we'd
46850         need to configure it.
46851         Don't count //, ///, etc. as having a trailing slash.
46852         As a side effect, this removes a C99ism reported by Matthew Woehlke.
46853         (rpl_rename_dest_slash): On failure, use rename's errno rather
46854         than (in some cases) an incorrect or junk errno.
46855         Simplify code by removing need to compute length; this does
46856         cause it to make two passes instead of one over the file name,
46857         but it's worth it.
46858
46859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
46860         change, since Autoconf's version may no longer be appropriate now
46861         that we are using CVS Autoconf's version.  Add support for Tandem.
46862
46863 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46864             Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
46867         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
46868         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
46869         gl_AC_TYPE_LONG_LONG.
46870
46871         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
46872         instead of HAVE_LONG_LONG.
46873         * lib/printf-args.c (printf_fetchargs): Likewise.
46874         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46875         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46876         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
46877         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
46878         gl_AC_TYPE_LONG_LONG.
46879
46880 2006-10-11  Bruno Haible  <bruno@clisp.org>
46881
46882         * m4/longlong.m4: Add comments.
46883         * m4/ulonglong.m4: Likewise.
46884
46885 2006-10-10  Bruno Haible  <bruno@clisp.org>
46886
46887         Make it possible to #define stpcpy, strdup to aliases.
46888         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
46889         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
46890
46891 2006-10-10  Bruno Haible  <bruno@clisp.org>
46892
46893         Make it possible to #define gcd to an alias.
46894         * lib/gcd.c: Include config.h.
46895
46896 2006-10-10  Bruno Haible  <bruno@clisp.org>
46897
46898         Make it possible to #define c_isascii to an alias.
46899         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
46900         defined. Undefine the macros before defining them, to avoid gcc
46901         warnings.
46902         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
46903         define NO_C_CTYPE_MACROS early.
46904
46905 2006-10-10  Bruno Haible  <bruno@clisp.org>
46906
46907         Make it possible to #define set_program_name to an alias.
46908         * lib/progname.c: Don't undefine set_program_name; instead, undefine
46909         ENABLE_RELOCATABLE early.
46910
46911 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46912
46913         Port to Tandem NSK OSS, which has 64-bit signed int but at most
46914         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
46915         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
46916         More generally, don't assume that 64-bit signed int is available
46917         if unsigned int is, and vice versa.
46918         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
46919         unsigned symbols, not on their signed counterparts.
46920         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
46921         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
46922         (UINT64_C, UINTMAX_C):
46923         Likewise.
46924         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
46925         unsigned counterparts.
46926         (Have_long_long, Unsigned): New macros.
46927         (Int): Renamed from INT.
46928         (strtoimax): Use the new macros.
46929         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
46930         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
46931         * modules/inttypes (inttypes.h): Substitute
46932         HAVE_UNSIGNED_LONG_LONG_INT.
46933         * modules/stdint (stdint.h): Likewise.
46934         (Files): Add m4/ulonglong.m4.
46935
46936 2006-10-10  Bruno Haible  <bruno@clisp.org>
46937
46938         Fix a gcc -Wshadow warning.
46939         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46940         to 'bucket'.
46941         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
46942         gl_linked_indexof_from_to): Likewise.
46943         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
46944         Likewise.
46945         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
46946         Likewise.
46947         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
46948         Reported by Eric Blake.
46949
46950 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
46951
46952         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
46953         for NetBSD.  Problem reported by Bruno Haible.
46954
46955 2006-10-09  Jim Meyering  <jim@meyering.net>
46956
46957         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
46958         Patch from Bruno Haible.
46959
46960 2006-10-09  Jim Meyering  <jim@meyering.net>
46961
46962         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
46963         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
46964         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46965
46966 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46967
46968         Don't include <config.h> twice; this doesn't work in some cases,
46969         e.g., when config.h has "#define intmax_t long long int" and
46970         we include <config.h>, <inttypes.h>, <config.h> in that order.
46971         Problem reported by Matthew Woehlke in:
46972         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46973         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46974         * lib/fts-cycle.c: Don't include config.h.
46975         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46976         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46977         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46978         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46979         inttypes.h.
46980         * lib/xstrtoumax.c: Likewise.
46981         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46982         __strtol and the like, so that this module is more like its siblings.
46983         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46984         Remove; no longer needed now that we assume gnulib inttypes.h.
46985
46986 2006-10-08  Bruno Haible  <bruno@clisp.org>
46987
46988         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46989         option.
46990
46991 2006-10-07  Jim Meyering  <jim@meyering.net>
46992
46993         * modules/inttypes (inttypes.h): Revert what seems to have been
46994         an inadvertent part of today's change: use "|", not "/" in the
46995         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46996
46997 2006-10-07  Bruno Haible  <bruno@clisp.org>
46998
46999         * modules/sublist: New file.
47000
47001 2006-10-07  Bruno Haible  <bruno@clisp.org>
47002
47003         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47004         * modules/argz (argz.h): Likewise.
47005         * modules/arpa_inet (arpa/inet.h): Likewise.
47006         * modules/byteswap (byteswap.h): Likewise.
47007         * modules/configmake (configmake.h): Likewise.
47008         * modules/fcntl (fcntl.h): Likewise.
47009         * modules/fnmatch (fnmatch.h): Likewise.
47010         * modules/getopt (getopt.h): Likewise.
47011         * modules/glob (glob.h): Likewise.
47012         * modules/inttypes (inttypes.h): Likewise.
47013         * modules/netinet_in (netinet/in.h): Likewise.
47014         * modules/poll (poll.h): Likewise.
47015         * modules/stdbool (stdbool.h): Likewise.
47016         * modules/stdint (stdint.h): Likewise.
47017         * modules/sys_select (sys/select.h): Likewise.
47018         * modules/sys_socket (sys/socket.h): Likewise.
47019         * modules/sys_stat (sys/stat.h): Likewise.
47020         * modules/sysexits (sysexits.h): Likewise.
47021         * modules/unistd (unistd.h): Likewise.
47022         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47023         Add a "DO NOT EDIT" comment to the generated file.
47024         (func_import): Likewise for gnulib-comp.m4.
47025
47026 2006-10-07  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/gl_sublist.h: New file.
47029         * lib/gl_sublist.c: New file.
47030
47031 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47032
47033         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47034         name (relative to the original working directory) and the file
47035         name component (relative to the temporary working directory).  All
47036         callers changed.
47037         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47038         * lib/mkdir-p.c (make_dir_parents): Likewise.
47039         * lib/mkdir-p.h (make_dir_parents): Likewise.
47040
47041 2006-10-06  Eric Blake  <ebb9@byu.net>
47042
47043         Define several macros for use by the clean-temp module.
47044         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47045         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47046         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47047
47048         * lib/clean-temp.h (close_stream_temp): New declaration.
47049         * lib/clean-temp.c (includes): Pull in headers according to what
47050         other modules are in use.
47051         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47052
47053 2006-10-06  Bruno Haible  <bruno@clisp.org>
47054
47055         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47056         instead of fopen, fwriteerror.
47057
47058 2006-10-06  Bruno Haible  <bruno@clisp.org>
47059
47060         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47061         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47062         int.
47063         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47064         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47065         Return an error indicator.
47066         Suggested by Eric Blake.
47067
47068 2006-10-06  Bruno Haible  <bruno@clisp.org>
47069
47070         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47071         Reported by Eric Blake.
47072
47073 2006-10-06  Bruno Haible  <bruno@clisp.org>
47074
47075         * modules/closeout (Description): Mention stderr too.
47076
47077 2006-10-06  Bruno Haible  <bruno@clisp.org>
47078         and Paul Eggert  <eggert@cs.ucla.edu>
47079
47080         * lib/closeout.c (close_stdout): Also close stderr.
47081         * lib/closeout.h: Update comment.
47082
47083 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47084
47085         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47086         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47087         * lib/dirchownmod.c: Include lchown.h.
47088         * lib/lchown.c: Don't include files that lchown.h now includes.
47089         Don't declare chown, since lchown.h now does that.
47090         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47091         (lchown): Define to rpl_chown if lchown is declared but
47092         does not exist.  Declare using a prototype if lchown is not
47093         declared.  Add a copyright notice.
47094         * lib/mkstemp.h: Include <unistd.h>.
47095         * lib/openat.c: Include lchown.h.
47096
47097         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47098         we now test for that separately.
47099         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47100         rather than O_NOFOLLOW, when testing whether it's possible to
47101         avoid a race condition reliably.
47102         * lib/savewd.c (savewd_chdir): Likewise.
47103
47104         Remove macros that are no longer needed now that stdint.h is
47105         reliable.
47106         * lib/fsusage.c (UINTMAX_MAX): Remove.
47107         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47108         * lib/utimecmp.c (SIZE_MAX): Remove.
47109
47110         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47111
47112         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47113         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47114         O_NOATIME works.
47115
47116 2006-10-05  Bruno Haible  <bruno@clisp.org>
47117
47118         * lib/gl_list.h (gl_sortedlist_search_from_to,
47119         gl_sortedlist_indexof_from_to): New declarations.
47120         (gl_list_implementation): New fields sortedlist_search_from_to,
47121         sortedlist_indexof_from_to.
47122         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47123         inline functions.
47124         * lib/gl_list.c (gl_sortedlist_search_from_to,
47125         gl_sortedlist_indexof_from_to): New functions.
47126         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47127         function.
47128         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47129         (gl_array_sortedlist_search_from_to): New function.
47130         (gl_array_list_implementation): Update.
47131         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47132         function.
47133         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47134         (gl_carray_sortedlist_search_from_to): New function.
47135         (gl_carray_list_implementation): Update.
47136         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47137         gl_linked_sortedlist_indexof_from_to): New functions.
47138         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47139         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47140         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47141         gl_tree_sortedlist_indexof_from_to): New functions.
47142         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47143         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47144         Update.
47145         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47146         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47147         Update.
47148
47149 2006-10-05  Bruno Haible  <bruno@clisp.org>
47150
47151         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47152         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47153         (struct gl_list_implementation): Add fields search_from_to,
47154         indexof_from_to. Remove fields search, indexof.
47155         (gl_list_search): Use the search_from_to method.
47156         (gl_list_search_from, gl_list_search_from_to): New functions.
47157         (gl_list_indexof): Use the indexof_from_to method.
47158         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47159         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47160         (gl_list_search_from, gl_list_search_from_to): New functions.
47161         (gl_list_indexof): Use the indexof_from_to method.
47162         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47163         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47164         gl_array_indexof. Add start_index, end_index arguments.
47165         (gl_array_search_from_to): Renamed from gl_array_search. Add
47166         start_index, end_index arguments.
47167         (gl_array_remove, gl_array_list_implementation): Update.
47168         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47169         gl_carray_indexof. Add start_index, end_index arguments.
47170         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47171         start_index, end_index arguments.
47172         (gl_carray_remove, gl_carray_list_implementation): Update.
47173         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47174         gl_linked_search. Add start_index, end_index arguments.
47175         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47176         start_index, end_index arguments.
47177         (gl_linked_remove): Update.
47178         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47179         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47180         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47181         field to 'size_t'.
47182         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47183         gl_tree_search. Add start_index, end_index arguments.
47184         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47185         start_index, end_index arguments.
47186         (gl_tree_remove): Update.
47187         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47188         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47189         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47190         function.
47191         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47192         gl_tree_search. Add start_index, end_index arguments.
47193         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47194         start_index, end_index arguments.
47195         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47196         Update.
47197         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47198
47199 2006-10-05  Bruno Haible  <bruno@clisp.org>
47200
47201         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47202
47203         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47204         fwriteerror_temp): New declarations.
47205         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47206         (descriptors): New variable.
47207         (cleanup): First, close the descriptors.
47208         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47209         fclose_temp, fwriteerror_temp): New functions.
47210
47211 2006-10-04  Jim Meyering  <jim@meyering.net>
47212
47213         * lib/fts.c (fts_open): Tiny comment change.
47214
47215 2006-10-04  Bruno Haible  <bruno@clisp.org>
47216
47217         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47218         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47219         gl_LOCK_BODY.
47220         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47221         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47222         gl_LOCK_EARLY_BODY.
47223         (gl_LOCK): Require gl_LOCK_BODY.
47224
47225 2006-10-04  Bruno Haible  <bruno@clisp.org>
47226
47227         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47228         (gl_oset_search_atleast): New declaration.
47229         (struct gl_oset_implementation): Add field 'search_atleast'.
47230         (gl_oset_search_atleast): New inline function.
47231         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47232         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47233         (gl_array_oset_implementation): Update.
47234         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47235         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47236         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47237
47238 2006-10-04  Bruno Haible  <bruno@clisp.org>
47239
47240         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47241
47242 2006-10-03  Bruno Haible  <bruno@clisp.org>
47243
47244         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47245         from gl_avltreehash_list_implementation.
47246
47247 2006-10-03  Bruno Haible  <bruno@clisp.org>
47248
47249         * lib/gl_oset.c (gl_oset_add): Fix return type.
47250
47251 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47252
47253         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47254
47255 2006-10-02  Eric Blake  <ebb9@byu.net>
47256
47257         * modules/strnlen (Depends-on): Add extensions.
47258
47259 2006-10-02  Eric Blake  <ebb9@byu.net>
47260
47261         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47262         definition in 2.60+.
47263
47264 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47265
47266         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47267         checks.
47268
47269 2006-10-02  Bruno Haible  <bruno@clisp.org>
47270
47271         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47272         to the AUTOMAKE_OPTIONS.
47273         Reported by Jim Meyering.
47274
47275 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47276
47277         Work around bug in Solaris 10 /proc file system:
47278         /proc/self/fd/NNN/.. isn't the parent directory of
47279         the directory whose file descriptor is NNN.  This needs to
47280         be worked around at run time, not compile time, since a
47281         program might be built on Solaris 8, where things work, and
47282         run on Solaris 10.
47283         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47284         to use the following interface instead:
47285         (OPENAT_BUFFER_SIZE): New macro.
47286         (openat_proc_name): New function.
47287         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47288         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47289         Likewise.
47290         * lib/openat-proc.c: New file.
47291         * modules/openat (Files): Add lib/openat-proc.c.
47292         (Depends-on): Add same-inode, stdbool.
47293         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47294
47295 2006-09-29  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47298         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47299         argument. Set stdout_closed before testing for ferror, not after.
47300         (fwriteerror, fwriteerror_no_ebadf): New functions.
47301
47302 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47303
47304         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47305
47306 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47307
47308         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47309         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47310
47311 2006-09-28  Jim Meyering  <jim@meyering.net>
47312
47313         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47314         Include <unistd.h>.
47315
47316 2006-09-28  Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47319         * modules/linkedhash-list (Depends-on): Likewise.
47320         * modules/rbtreehash-list (Depends-on): Likewise.
47321
47322 2006-09-28  Bruno Haible  <bruno@clisp.org>
47323
47324         * lib/strndup.h: Simplify the redefinition of strndup.
47325         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47326         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47327
47328 2006-09-28  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47331         * lib/gl_linkedhash_list.c: Likewise.
47332         * lib/gl_rbtreehash_list.c: Likewise.
47333
47334 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47335
47336         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47337         getaddrinfo.
47338
47339         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47340         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47341         it causes <stdio_ext.h> to cause a compile-time error.
47342         Problem reported by Nelson H. F. Beebe.
47343         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47344         of HAVE_DECL___PENDING.
47345
47346         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47347         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47348         declaration.
47349
47350 2006-09-27  Jim Meyering  <jim@meyering.net>
47351
47352         This file could end up with a definition for a function
47353         named __strndup, rather than rpl_strndup on a system with
47354         incomplete weak_alias support.
47355         * lib/strndup.c (strndup): Rename from __strndup.
47356         Remove #defines that used to map __strndup to strndup.
47357         Don't use K&R prototypes.
47358         Remove LIBC-related code, since this file is not sync'd with glibc.
47359         * lib/strndup.h: Revamp, accordingly.
47360         * m4/strndup.m4: Modernize.
47361
47362 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47363
47364         * modules/savewd (Depends-on): Add 'raise'.
47365         * lib/savewd.c: Include <signal.h>, for 'raise'.
47366
47367 2006-09-26  Jim Meyering  <jim@meyering.net>
47368
47369         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47370         when we detect Darwin 8.7.0's acl_get_file bug.
47371         Rearrange to perform the new (below) run-test while $LIBS
47372         contains any acl-related library.  Set USE_ACL at the end.
47373         (gl_ACL_GET_FILE): New function.
47374
47375 2006-09-26  Eric Blake  <ebb9@byu.net>
47376
47377         * lib/verror.c: Include <config.h> unconditionally.
47378
47379 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47380
47381         * modules/clock-time (Maintainer): Add self.
47382         * modules/getlogin_r (Depends-on): Add extensions.
47383
47384 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47385
47386         * modules/clock-time: New module.
47387         * modules/nanosleep (Depends-on): Add clock-time.
47388         * modules/gethrxtime (Depends-on): Likewise.
47389         * modules/gettime (Depends-on): Likewise.
47390         * modules/settime (Depends-on): Likewise.
47391
47392         * modules/fts-lgpl: Depend on openat.
47393         * modules/mkancesdirs: Depend on savewd.
47394         * modules/mkdir-p: Likewise.
47395
47396 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47397
47398         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47399
47400         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47401         `gl_have_arbitrary_file_name_length_limit' to
47402         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
47403         actually works between configure runs.
47404
47405 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47406             Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
47409
47410 2006-09-25  Jim Meyering  <jim@meyering.net>
47411
47412         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
47413         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
47414
47415 2006-09-25  Eric Blake  <ebb9@byu.net>
47416
47417         * gnulib-tool (func_import, func_create_testdir): Fix typos in
47418         exec's in 2006-09-18 patch when shuffling fds.
47419
47420 2006-09-25  Bruno Haible  <bruno@clisp.org>
47421
47422         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
47423         Reported by Jim Meyering.
47424
47425 2006-09-24  Jim Meyering  <jim@meyering.net>
47426
47427         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
47428         compare a pointer against a literal "0".  That caused failures with
47429         at least HP-UX's hpcc.
47430
47431 2006-09-22  Simon Josefsson  <jas@extundo.com>
47432
47433         * modules/gc-sha1:
47434         * modules/gc-md4:
47435         * modules/gc-hmac-sha1:
47436         * modules/gc-hmac-md5:
47437         * modules/gc-des:
47438         * modules/gc-arcfour: Distribute more files.
47439
47440 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47441
47442         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
47443         (gl_linked_iterator_from_to): Initialize struct completely.
47444         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
47445         (gl_tree_iterator_from_to): Likewise
47446         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
47447         * lib/gl_array_list.c [lint] (gl_array_iterator)
47448         (gl_array_iterator_from_to): Likewise.
47449         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
47450         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
47451         (gl_carray_iterator_from_to): Likewise.
47452
47453         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
47454         * lib/md4.c (md4_process_block): Remove unused variable.
47455         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
47456         parentheses for clarity.
47457
47458 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47459
47460         * modules/bison-i18n (Depends-on): Add gettext.
47461
47462 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47463
47464         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
47465         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
47466         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
47467         also add missing comma that caused broken test.
47468         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
47469         stdlib.h, for `abort'.
47470         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
47471         variables.
47472         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
47473         include unistd.h if present, for `rmdir'.
47474         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
47475         variables.
47476         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
47477         in the process include standard headers for prototypes.
47478         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
47479         gets declared on GNU/Linux.
47480         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
47481         unistd.h, for `rmdir'.
47482         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
47483
47484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
47485         always true.
47486         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
47487
47488         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
47489
47490 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47491
47492         * gnulib-tool (func_version): Create output all at once.  This
47493         may help avoid triggering unnecessary SIGPIPEs, and at any
47494         rate it doesn't hurt.
47495
47496 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47497             Bruno Haible  <bruno@clisp.org>
47498
47499         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
47500         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47501         * m4/signed.m4 (bh_C_SIGNED): Likewise.
47502
47503         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
47504         (gl_FUNC_VASPRINTF): Invoke it.
47505
47506 2006-09-22  Bruno Haible  <bruno@clisp.org>
47507
47508         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
47509         getloadavg.c as first argument.
47510
47511 2006-09-22  Bruno Haible  <bruno@clisp.org>
47512
47513         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
47514         at the beginning of the gl_INIT macro.
47515         * modules/getloadavg (configure.ac): Pass $gl_source_base to
47516         gl_GETLOADAVG.
47517
47518 2006-09-22  Bruno Haible  <bruno@clisp.org>
47519
47520         * gnulib-tool (func_create_megatestdir): Don't include the config-h
47521         module.
47522         Suggested by Ralf Wildenhues.
47523
47524 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
47525
47526         Import this patch from libc:
47527
47528         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
47529
47530         * lib/regex_internal.c (re_string_reconstruct): Handle
47531         offset < pstr->valid_raw_len && pstr->offsets_needed case.
47532         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
47533         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
47534         re_string_context_at.
47535
47536         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
47537         now requires it.
47538         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
47539         gl_REGEX now does it for us.
47540         (gl_REGEX): Add test taken from
47541         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
47542
47543         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
47544         Check that large offsets work.  Modernize Autoconf usages.
47545         Prefer "yes" to mean a good thing rather than a bad.
47546         Don't put "#define mkstemp" in config.h, as this might interfere
47547         with standard system headers that "#define mkstemp mkstemp64".
47548
47549         * modules/mkstemp (Depends-on): Add extensions, so that
47550         mkstemp is visible on some platforms.
47551         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
47552         (Include): Change to "mkstemp.h" from <stdlib.h>.
47553         (Files): Add mkstemp.h.
47554
47555         * lib/mkstemp.h: New file, since some standard headers
47556         #define mkstemp.
47557         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
47558         Include "mkstemp.h".
47559         Make the _LIBC code resemble glibc original more,
47560         e.g., use K&R style.
47561         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
47562         (mkstemp): Remove, since mkstemp.h does this for us.
47563         * lib/stdlib--.h: Include mkstemp.h.
47564
47565         Import this patch from libc:
47566
47567         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47568
47569         * lib/tempname.c (__gen_tempname): Change attempts_min
47570         into a macro.  Use preprocessor to decide how to initialize
47571         attempts [Coverity CID 67].
47572
47573 2006-09-20  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/mkdtemp.c: Import from libc.
47576         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
47577                 * sysdeps/posix/tempname.c (__gen_tempname): Change
47578                 attempts_min into a macro.  Use preprocessor to decide how to
47579                 initialize attempts [Coverity CID 67].
47580         2001-11-27  Paul Eggert  <eggert@twinsun.com>
47581                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
47582                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
47583
47584 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47585
47586         * gnulib-tool (func_exit): New function, to allow to pass the
47587         exit status portably through the trap.  Use everywhere.
47588         (--help, --version): Signal a write error.
47589         (trap): catch SIGPIPE, for write errors.
47590         Exit at the end of the trap, with the correct exit status.
47591
47592 2006-09-19  Karl Berry  <karl@gnu.org>
47593
47594         * doc/gnulib.texi: note about the license texinfo files.
47595
47596 2006-09-19  Eric Blake  <ebb9@byu.net>
47597
47598         * gnulib-tool: Avoid space-tab.
47599
47600 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47601
47602         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
47603         that prevented coreutils 6.1 from building.  Problem reported
47604         by Petter Reinholdtsen.
47605
47606 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47607
47608         * gnulib-tool (avoidlist): Fix typo that broke options like
47609         --avoid=lock that are used by coreutils bootstrap.
47610
47611 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
47612
47613         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
47614         more systematically.
47615
47616 2006-09-18  Jim Meyering  <jim@meyering.net>
47617
47618         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
47619
47620 2006-09-18  Bruno Haible  <bruno@clisp.org>
47621
47622         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
47623
47624 2006-09-18  Bruno Haible  <bruno@clisp.org>
47625
47626         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
47627         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
47628         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
47629         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
47630         * m4/gettext.m4: Require autoconf >= 2.52.
47631         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
47632         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
47633         of gl_cv_header_inttypes_h.
47634
47635 2006-09-18  Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/javaversion.c: Include configmake.h.
47638
47639 2006-09-18  Bruno Haible  <bruno@clisp.org>
47640
47641         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
47642         avoid that the while loops be executed in a subshell.
47643
47644 2006-09-18  Bruno Haible  <bruno@clisp.org>
47645
47646         * MODULES.html.sh (func_module): Break long lines.
47647         Suggested by Bruce Korb <bkorb@gnu.org>.
47648
47649 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47650
47651         Speed up by a factor of 1.12.
47652         * gnulib-tool (nl): New variable.
47653         (func_import): Rewrite include directive extraction to only read each
47654         directive once.
47655
47656 2006-09-17  Bruno Haible  <bruno@clisp.org>
47657
47658         * modules/javaversion (Makefile.am): Remove DEFS setting.
47659         (Depends-on): Add configmake, for PKGDATADIR definition.
47660
47661 2006-09-17  Bruno Haible  <bruno@clisp.org>
47662
47663         * gnulib-tool (func_create_testdir): Rewrite all files at once.
47664
47665 2006-09-17  Bruno Haible  <bruno@clisp.org>
47666
47667         * gnulib-tool (func_append): New function, stolen from libtool.m4.
47668         (func_modules_transitive_closure, func_modules_add_dummy,
47669         func_modules_to_filelist, func_import, func_create_testdir,
47670         func_create_megatestdir, ...): Use it wherever possible.
47671         Suggested by Ralf Wildenhues.
47672
47673 2006-09-16  Karl Berry  <karl@gnu.org>
47674
47675         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
47676         to avoid sectioning errors.
47677         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
47678         [ifinfo]: blank line after @center-ed titles.
47679         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
47680         Spell FSF address consistently with others.
47681         (These changes approved by rms.)
47682
47683 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47684
47685         Speed up by a factor of 1.61.
47686         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
47687         already checked module names again.
47688
47689 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47690
47691         Speed up by a factor of 1.13.
47692         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
47693         for new_files, and the input to func_add_or_update.
47694
47695 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47696
47697         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
47698         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
47699
47700 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47701
47702         * modules/mkancesdirs (Depends-on): Add fcntl.
47703         * modules/savewd: New file.
47704         * MODULES.html.sh (File system functions): Add savewd.
47705
47706         * modules/configmake (Makefile.am): Add support for the
47707         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
47708
47709 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47710
47711         * m4/savewd.m4: New file.
47712
47713 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47714
47715         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
47716         (dirchownmod): New arg FD.  All callers changed.
47717         Use FD rather than opening the directory ourself, as opening is
47718         now the caller's responsibility.
47719         * lib/dirchownmod.h: Likewise.
47720         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
47721         hosts that require <sys/types.h> before <sys/stat.h>.  Include
47722         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
47723         (test_dir): Remove.
47724         (mkancesdirs): Return length of prefix of FILE that has already
47725         been made, or -2 if there is a child doing the work.  Redo
47726         algorithm so that it is O(N) rather than O(N**2).  Optimize away
47727         ".", and treat ".." specially since it might stray back into
47728         already-created areas.  Use a subprocess if necessary.  New arg
47729         WD; all users changed.  MAKE_DIR function should now return 1
47730         if it creates a directory that is not readable.  Return -2 if
47731         a child process is spun off.
47732         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
47733         Adjust signature to match code.
47734         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
47735         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
47736         all users changed.
47737         * lib/savewd.c, lib/savewd.h: New files.
47738
47739 2006-09-15  Jim Meyering  <jim@meyering.net>
47740
47741         * modules/rename-dest-slash: New module.
47742         * MODULES.html.sh (posix_compat): Add it here.
47743
47744         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
47745
47746 2006-09-15  Jim Meyering  <jim@meyering.net>
47747
47748         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
47749         file.
47750
47751         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
47752
47753 2006-09-15  Jim Meyering  <jim@meyering.net>
47754
47755         * lib/rename-dest-slash.c (has_trailing_slash): Use
47756         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
47757         (rpl_rename_dest_slash): Perform the cheaper trailing slash
47758         test before testing whether SRC is a directory.
47759         Suggestions from Bruno Haible.
47760
47761         Avoid a warning about an unused variable.
47762         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
47763         into the #ifdef block where it's used.
47764
47765         * lib/rename-dest-slash.c: New file.
47766
47767 2006-09-14  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/allocsa.c: Include <config.h> unconditionally.
47770         * lib/asnprintf.c: Likewise.
47771         * lib/asprintf.c: Likewise.
47772         * lib/c-strcasecmp.c: Likewise.
47773         * lib/c-strcasestr.c: Likewise.
47774         * lib/c-strncasecmp.c: Likewise.
47775         * lib/c-strstr.c: Likewise.
47776         * lib/classpath.c: Likewise.
47777         * lib/clean-temp.c: Likewise.
47778         * lib/concatpath.c: Likewise.
47779         * lib/copy-file.c: Likewise.
47780         * lib/csharpcomp.c: Likewise.
47781         * lib/csharpexec.c: Likewise.
47782         * lib/execute.c: Likewise.
47783         * lib/fatal-signal.c: Likewise.
47784         * lib/findprog.c: Likewise.
47785         * lib/fwriteerror.c: Likewise.
47786         * lib/gl_array_list.c: Likewise.
47787         * lib/gl_array_oset.c: Likewise.
47788         * lib/gl_avltree_list.c: Likewise.
47789         * lib/gl_avltree_oset.c: Likewise.
47790         * lib/gl_avltreehash_list.c: Likewise.
47791         * lib/gl_carray_list.c: Likewise.
47792         * lib/gl_linked_list.c: Likewise.
47793         * lib/gl_linkedhash_list.c: Likewise.
47794         * lib/gl_list.c: Likewise.
47795         * lib/gl_oset.c: Likewise.
47796         * lib/gl_rbtree_list.c: Likewise.
47797         * lib/gl_rbtree_oset.c: Likewise.
47798         * lib/gl_rbtreehash_list.c: Likewise.
47799         * lib/imaxabs.c: Likewise.
47800         * lib/imaxdiv.c: Likewise.
47801         * lib/javacomp.c: Likewise.
47802         * lib/javaexec.c: Likewise.
47803         * lib/javaversion.c: Likewise.
47804         * lib/linebreak.c: Likewise.
47805         * lib/localcharset.c: Likewise.
47806         * lib/lock.c: Likewise.
47807         * lib/mbchar.c: Likewise.
47808         * lib/mbswidth.c: Likewise.
47809         * lib/mkdtemp.c: Likewise.
47810         * lib/pipe.c: Likewise.
47811         * lib/printf-args.c: Likewise.
47812         * lib/printf-parse.c: Likewise.
47813         * lib/progname.c: Likewise.
47814         * lib/progreloc.c: Likewise.
47815         * lib/readlink.c: Likewise.
47816         * lib/sh-quote.c: Likewise.
47817         * lib/stpcpy.c: Likewise.
47818         * lib/stpncpy.c: Likewise.
47819         * lib/strcasecmp.c: Likewise.
47820         * lib/strcasestr.c: Likewise.
47821         * lib/strcspn.c: Likewise.
47822         * lib/striconv.c: Likewise.
47823         * lib/strncasecmp.c: Likewise.
47824         * lib/strnlen1.c: Likewise.
47825         * lib/strstr.c: Likewise.
47826         * lib/strtok_r.c: Likewise.
47827         * lib/tls.c: Likewise.
47828         * lib/tmpdir.c: Likewise.
47829         * lib/unicodeio.c: Likewise.
47830         * lib/unsetenv.c: Likewise.
47831         * lib/vasnprintf.c: Likewise.
47832         * lib/vasprintf.c: Likewise.
47833         * lib/wait-process.c: Likewise.
47834         * lib/xallocsa.c: Likewise.
47835         * lib/xsetenv.c: Likewise.
47836         * lib/xstriconv.c: Likewise.
47837
47838 2006-09-13  Simon Josefsson  <jas@extundo.com>
47839
47840         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
47841         that internally, suggested by Ralf Wildenhues
47842         <Ralf.Wildenhues@gmx.de>.
47843
47844 2006-09-13  Simon Josefsson  <jas@extundo.com>
47845
47846         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
47847         @LIBOBJS@.
47848         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47849
47850 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47851
47852         * lib/_fpending.c: Include <config.h> unconditionally, since we no
47853         longer worry about uses that don't define HAVE_CONFIG_H.
47854         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
47855         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
47856         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
47857         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
47858         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
47859         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
47860         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
47861         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
47862         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
47863         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
47864         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
47865         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
47866         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
47867         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
47868         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
47869         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
47870         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
47871         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
47872         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
47873         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
47874         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
47875         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
47876         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
47877         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
47878         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
47879         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
47880         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
47881         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
47882         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
47883         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
47884         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
47885         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
47886         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
47887         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
47888         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
47889         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
47890         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
47891         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
47892         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
47893         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
47894         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
47895         Likewise.
47896
47897 2006-09-13  Eric Blake  <ebb9@byu.net>
47898
47899         * lib/getopt.c: Fix typo in last commit.
47900
47901 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47902
47903         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
47904         dgettext.
47905
47906 2006-09-12  Jim Meyering  <jim@meyering.net>
47907
47908         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
47909         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
47910         Reported by Nelson H. F. Beebe.
47911
47912 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47913
47914         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
47915         program_invocation_name and program_invocation_short_name are
47916         initialized.
47917         * lib/argp-namefrob.h: Move declarations of program_invocation_name
47918         and program_invocation_short_name to argp.h, so they are visible
47919         to user programs.
47920         * lib/argp.h: Likewise
47921
47922 2006-09-10  Bruno Haible  <bruno@clisp.org>
47923
47924         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47925         m4/inttypes_h.m4, m4/uintmax_t.m4.
47926
47927 2006-09-10  Bruno Haible  <bruno@clisp.org>
47928
47929         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
47930         gl_AC_TYPE_UINTMAX_T.
47931
47932 2006-09-10  Bruno Haible  <bruno@clisp.org>
47933
47934         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
47935
47936 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47937
47938         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
47939         convention.  Text proposed by Bruno Haible.
47940         (struct argp_option): Document the use of N_() wrappers.
47941
47942         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
47943         '\v', and translate the two parts separately, instead of feeding
47944         the whole string to gettext.  This allows to exclude
47945         '\v' from the strings visible to the translator by writing doc
47946         strings as N_("..") "\v" N_("..").
47947
47948 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
47949
47950         * config/srclist.txt: Undo latest change; the bug was fixed.
47951
47952 2006-09-09  Bruno Haible  <bruno@clisp.org>
47953
47954         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
47955         assignments if building a library without libtool.
47956         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
47957         in func_emit_lib_Makefile_am.
47958         (func_import): When building a static library libfoo.a, arrange to
47959         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
47960         (func_create_testdir): Likewise.
47961         * modules/gc (configure.ac, Makefile.am): If building statically,
47962         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
47963         * modules/iconvme (configure.ac, Makefile.am): Likewise.
47964         * modules/striconv (configure.ac, Makefile.am): Likewise.
47965         Based on a suggestion by Ralf Wildenhues.
47966
47967 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47968
47969         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47970         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47971         Also:
47972
47973         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47974         Add year_2050_test to catch glibc bug 2821
47975         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47976
47977         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47978         Prefer #ifdef to #if.
47979
47980         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47981         Return from 'main' instead of calling 'exit'.
47982
47983 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47984
47985         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47986         returned the maximum time_t value rather than (time_t) -1.
47987         Problem originally reported by William Bardwell
47988         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47989
47990         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47991         Moved to here ...
47992         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47993         ... from here.
47994
47995 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47996
47997         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47998         2821 is fixed.
47999
48000 2006-09-08  Jim Meyering  <jim@meyering.net>
48001
48002         Don't make generated files read-only.  That would bother too many
48003         people.  However, do retain the ability to work when targets are
48004         read-only: remove the destination and temporary files before writing
48005         them (when generated via sed or echo), or by using the -f option for
48006         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48007         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48008         * modules/byteswap, modules/configmake, modules/fcntl:
48009         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48010         * modules/localcharset, modules/netinet_in, modules/poll:
48011         * modules/stdbool, modules/stdint, modules/sys_select:
48012         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48013
48014 2006-09-08  Jim Meyering  <jim@meyering.net>
48015
48016         Avoid new build failure on FreeBSD 6.0.
48017         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48018         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48019         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48020
48021 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48022
48023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48024
48025 2006-09-07  Jim Meyering  <jim@meyering.net>
48026
48027         Fix global typo in last change: use chmod u-w, not chmod u-x.
48028         Spotted by Paul Eggert and Bruce Korb.
48029         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48030         * modules/byteswap, modules/configmake, modules/fcntl:
48031         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48032         * modules/localcharset, modules/netinet_in, modules/poll:
48033         * modules/stdbool, modules/stdint, modules/sys_select:
48034         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48035
48036 2006-09-06  Jim Meyering  <jim@meyering.net>
48037
48038         Make generated files be read-only.
48039         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48040         Ensure that each generated file is now read-only.
48041         * modules/argz: Likewise.
48042         * modules/arpa_inet: Likewise.
48043         * modules/byteswap: Likewise.
48044         * modules/configmake: Likewise.
48045         * modules/fcntl: Likewise.
48046         * modules/fnmatch: Likewise.
48047         * modules/getopt: Likewise.
48048         * modules/glob: Likewise.
48049         * modules/inttypes: Likewise.
48050         * modules/netinet_in: Likewise.
48051         * modules/poll: Likewise.
48052         * modules/stdbool: Likewise.
48053         * modules/stdint: Likewise.
48054         * modules/sys_select: Likewise.
48055         * modules/sys_socket: Likewise.
48056         * modules/sys_stat: Likewise.
48057         * modules/sysexits: Likewise.
48058         * modules/localcharset: Same as above, but continue using temporary
48059         file named "t-$@" (why different?) rather than the "$@-t" used
48060         everywhere else.
48061
48062         * modules/sysexits (Makefile.am): Replace literal occurrences
48063         of "sysexit.h" more readable, and more consistent, "$@".
48064
48065 2006-09-06  Bruno Haible  <bruno@clisp.org>
48066
48067         * modules/striconv: New file.
48068         * modules/xstriconv: New file.
48069         * MODULES.html.sh (Internationalization functions): Add striconv,
48070         xstriconv.
48071
48072 2006-09-06  Bruno Haible  <bruno@clisp.org>
48073
48074         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48075         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48076         not using libtool correctly.
48077
48078 2006-09-06  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/striconv.h: New file.
48081         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48082         iconvstring.c.
48083         * lib/xstriconv.h: New file.
48084         * lib/xstriconv.c: New file.
48085
48086 2006-09-06  Bruno Haible  <bruno@clisp.org>
48087
48088         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48089         lib_..._LDFLAGS.
48090
48091 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48092
48093         * lib/argz_.h: Sync from Libtool.
48094
48095         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48096                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48097
48098         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48099
48100 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48101
48102         * modules/trim: New file.
48103
48104 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48105
48106         * lib/trim.h: New file.
48107         * lib/trim.c: New file.
48108
48109 2006-09-05  Bruno Haible  <bruno@clisp.org>
48110
48111         * MODULES.html.sh (String handling): Add trim.
48112
48113 2006-09-04  Karl Berry  <karl@gnu.org>
48114
48115         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48116         until next release.
48117
48118 2006-09-03  Bruno Haible  <bruno@clisp.org>
48119
48120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48121         correctly.
48122
48123 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48124
48125         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48126         not gl_GETLOADAVG.  Omit unneeded semicolons.
48127         Problems reported by Ralf Wildenhues in
48128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48129         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48130         at the end, which is the usual gnulib style.
48131
48132         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48133         of doing all the work ourselves.
48134         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48135         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48136
48137 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48138
48139         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48140         Problem reported by Ralf Wildenhues in
48141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48142
48143         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48144         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48145
48146 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48147
48148         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48149         yesterday's patch by changing test -n to test -z.
48150
48151 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48152
48153         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48154         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48155         the former is now obsolescent.
48156
48157         * modules/chdir-long (Depends-on): Add fcntl.
48158
48159 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48160
48161         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48162         obsolescent, and programs should use gnulib instead.
48163         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48164         but with prefixes changed.
48165
48166 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48167
48168         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48169         or stdbool.h, because they might not exist while configuring.
48170
48171         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48172         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48173         does that for us.
48174         (O_DIRECTORY): Remove.
48175
48176 2006-08-31  Eric Blake  <ebb9@byu.net>
48177
48178         * gnulib-tool: Don't let emacs change spaces to TAB.
48179
48180 2006-08-31  Bruno Haible  <bruno@clisp.org>
48181
48182         * gnulib-tool: When calling func_import more than once, do it in a
48183         subshell.
48184         Reported by Eric Blake <ebb9@byu.net>.
48185
48186 2006-08-31  Bruno Haible  <bruno@clisp.org>
48187
48188         * gnulib-tool (nl): Remove variable.
48189         (sed_transform_lib_file): Use more robust test for config-h module.
48190         (func_import): Fix typo in 2006-08-25 patch.
48191
48192 2006-08-31  Bruno Haible  <bruno@clisp.org>
48193
48194         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48195         specified, augment Makefile.am variables instead of assigning them.
48196
48197 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48198
48199         Work around a bug in both the Linux and SunOS 64-bit kernels:
48200         nanosleep mishandles sleeps for longer than 2**31 seconds.
48201         Problem reported by Frank v Waveren in
48202         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48204         Check for nanosleep bug.
48205         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48206
48207 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48208
48209         Work around a bug in both the Linux and SunOS 64-bit kernels:
48210         nanosleep mishandles sleeps for longer than 2**31 seconds.
48211         Problem reported by Frank v Waveren in
48212         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48213         * lib/nanosleep.c (BILLION): New constant.
48214         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48215         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48216         implementation.
48217
48218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * modules/nanosleep (Depends-on): Add gettime.
48221
48222 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48223         and Simon Josefsson  <jas@extundo.com>
48224         and Oskar Liljeblad  <oskar@osk.mine.nu>
48225
48226         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48227         * gnulib-tool (func_import): New license type 'unmodifiable license
48228         text'.
48229         * modules/fdl: Use it.  Longer description.
48230         * module/gpl, module/lgpl: New files.
48231
48232 2006-08-30  Jim Meyering  <jim@meyering.net>
48233
48234         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48235         shadowing the parameter.
48236
48237 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48238
48239         Sync from Libtool:
48240
48241         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48242
48243         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48244         sharing with gnulib.  Report by Eric Blake.
48245
48246 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         * modules/isapipe: New file.
48249         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48250
48251 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48252
48253         * modules/configmake (Makefile.am): Add a comment, and omit
48254         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48255         by Bruno Haible.
48256
48257 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48258
48259         * m4/isapipe.m4: New file.
48260
48261 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         * lib/isapipe.c, lib/isapipe.h: New files.
48264
48265 2006-08-29  Jim Meyering  <jim@meyering.net>
48266
48267         * modules/configmake (Makefile.am): Make configmake.h depend on
48268         Makefile.  Otherwise, a stale configmake.h could hang around.
48269
48270 2006-08-29  Eric Blake  <ebb9@byu.net>
48271
48272         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48273         resolution of upstream bug 3044.
48274
48275 2006-08-29  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/localcharset (Depends-on): Add configmake.
48278         (Makefile.am): Remove setting of LIBDIR through DEFS.
48279
48280 2006-08-29  Bruno Haible  <bruno@clisp.org>
48281
48282         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48283         defined.
48284
48285 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * modules/fcntl: New file.
48288         * modules/chdir-safer (Depends-on): Add fcntl.
48289         * modules/fts: Likewise.
48290         * modules/mkdir-p: Likewise.
48291
48292         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48293         This undoes the most recent change, since we're now addressing the
48294         problem in a different way.
48295
48296         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48297         into output, since the output might be called Makefile.am even
48298         if $makefile_name is something different.
48299         (func_import): Use $makefile_am rather than
48300         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48301         empty.
48302
48303         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48304
48305 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48306
48307         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48308         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48309         recent change to stdint.m4, since we're now addressing the problem in a
48310         different way.
48311
48312 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48313
48314         * m4/fcntl_h.m4: New file.
48315
48316 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         * lib/fcntl_.h: New file.
48319         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48320         the fcntl module.
48321         * lib/dirchownmod.c: Likewise.
48322         * lib/fts.c: Likewise.
48323
48324         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48325         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48326         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48327         just before including <inttypes.h>, to avoid circular inclusion.
48328
48329 2006-08-28  Jim Meyering  <jim@meyering.net>
48330
48331         * doc/visibility.texi: Actually read and correct the grammar of the
48332         sentence affected by yesterday's change.
48333
48334 2006-08-28  Eric Blake  <ebb9@byu.net>
48335
48336         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48337         needs wrapper.
48338
48339 2006-08-28  Eric Blake  <ebb9@byu.net>
48340
48341         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48342
48343 2006-08-28  Eric Blake  <ebb9@byu.net>
48344
48345         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48346
48347 2006-08-28  Bruno Haible  <bruno@clisp.org>
48348
48349         * modules/c-strstr: New file, from GNU gettext.
48350         * MODULES.html.sh (String handling): Add c-strstr.
48351
48352 2006-08-28  Bruno Haible  <bruno@clisp.org>
48353
48354         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48355         macros.
48356         Reported by Eric Blake.
48357
48358 2006-08-28  Bruno Haible  <bruno@clisp.org>
48359
48360         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48361         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48362         * lib/vasprintf.c: Include errno.h, limits.h.
48363         (EOVERFLOW): New fallback definition.
48364         (vasprintf): Test here whether the string length is > INT_MAX.
48365         * lib/vsnprintf.c: Include errno.h, limits.h.
48366         (EOVERFLOW): New fallback definition.
48367         (vsnprintf): Fix bug when generated string was too long for the buffer.
48368         Test here whether the string length is > INT_MAX.
48369
48370 2006-08-28  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/inttypes_.h (SCNX*): Remove definitions.
48373         Reported by Eric Blake.
48374
48375 2006-08-28  Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/c-strstr.h: New file, from GNU gettext.
48378         * lib/c-strstr.c: New file, from GNU gettext.
48379
48380 2006-08-28  Bruno Haible  <bruno@clisp.org>
48381
48382         * gnulib-tool: Reorder some statements.
48383
48384 2006-08-28  Bruno Haible  <bruno@clisp.org>
48385
48386         * gnulib-tool: New option --makefile-name.
48387         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48388         $makefile_name.
48389         (func_import): Write $makefile_name to the cache file, and read it from
48390         there unless explicitly specified. Use $makefile_name as file name
48391         instead of Makefile.am. Adjust the recommendations accordingly.
48392
48393 2006-08-28  Bruno Haible  <bruno@clisp.org>
48394
48395         * gnulib-tool (func_verify_module): Check against misapplying patch.
48396
48397 2006-08-28  Bruno Haible  <bruno@clisp.org>
48398
48399         * gnulib-tool (func_relativize, func_relconcat): New functions.
48400         Give an error if --local-dir is given with --update.
48401         Remove trailing slashes from $local_gnulib_dir.
48402         (func_import): Store the relativized $local_gnulib_dir in
48403         gnulib-cache.m4, and read it from there if not specified explicitly.
48404
48405 2006-08-28  Bruno Haible  <bruno@clisp.org>
48406
48407         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
48408         is the current directory. Respect also $local_gnulib_dir.
48409
48410 2006-08-28  Bruno Haible  <bruno@clisp.org>
48411             Simon Josefsson  <jas@extundo.com>
48412
48413         BeOS portability.
48414         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
48415
48416 2006-08-27  Jim Meyering  <jim@meyering.net>
48417
48418         * doc/visibility.texi: Remove duplicate word: "pointer".
48419
48420 2006-08-26  Bruno Haible  <bruno@clisp.org>
48421
48422         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
48423         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
48424         (Makefile.am): Create inttypes.h from inttypes_.h.
48425         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
48426
48427         * modules/imaxabs: New file.
48428
48429         * modules/imaxdiv: New file.
48430
48431 2006-08-26  Bruno Haible  <bruno@clisp.org>
48432
48433         * m4/inttypes.m4: New file.
48434         * m4/_inttypes_h.m4: Remove file.
48435         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
48436         PRI_MACROS_BROKEN.
48437         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
48438
48439         * m4/imaxabs.m4: New file.
48440
48441         * m4/imaxdiv.m4: New file.
48442
48443 2006-08-26  Bruno Haible  <bruno@clisp.org>
48444
48445         * lib/inttypes_.h: New file.
48446         * lib/inttypes.h: Remove file.
48447         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
48448
48449         * lib/imaxabs.c: New file.
48450
48451         * lib/imaxdiv.c: New file.
48452
48453 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48454
48455         New config-h module, so that "make" output needn't be cluttered
48456         by -DHAVE_CONFIG_H.
48457         * MODULES.html.sh (Support for building libraries and executables):
48458         Add config-h.
48459         * modules/config-h: New file.
48460         * gnulib-tool (nl, sed_transform_lib_file): New vars.
48461         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
48462         the config-h module is used.
48463
48464         New configmake module, so that "make" output needn't be cluttered
48465         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
48466         * MODULES.html.sh (Support for building libraries and executables):
48467         Add configmake.
48468         * modules/configmake: New file.
48469
48470 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48471
48472         * m4/config-h.m4: New file.
48473
48474 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48475
48476         * config/srclist.txt: Add elisp-comp.
48477
48478 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48479
48480         * MODULES.html.sh (Support for building libraries and executables):
48481         Add elisp-comp.
48482         * build-aux/elisp-comp: New file.
48483         * modules/elisp-comp: New file.
48484
48485 2006-08-24  Bruno Haible  <bruno@clisp.org>
48486
48487         * gnulib-tool (func_create_testdir): Use non-default values of
48488         sourcebase and m4base.
48489
48490 2006-08-24  Bruno Haible  <bruno@clisp.org>
48491
48492         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
48493         HTML structure.
48494
48495 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48496
48497         * modules/openat (Depends-on): Add lchown.
48498
48499 2006-08-23  Bruno Haible  <bruno@clisp.org>
48500
48501         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
48502         of gl_LOCK_EARLY instead of gl_LOCK.
48503
48504 2006-08-23  Bruno Haible  <bruno@clisp.org>
48505
48506         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
48507         on OSF/1 to no.
48508         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
48509
48510 2006-08-23  Bruno Haible  <bruno@clisp.org>
48511
48512         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
48513         as unusable.
48514
48515         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
48516         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
48517         (gl_LOCK): New macro.
48518
48519 2006-08-22  Simon Josefsson  <jas@extundo.com>
48520
48521         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
48522         to md5 module.
48523
48524 2006-08-22  Simon Josefsson  <jas@extundo.com>
48525
48526         * MODULES.html.sh: Add "Support for maintaining and release
48527         projects".
48528
48529         * build-aux/gnupload: New file, from coreutils.
48530
48531 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48532
48533         Avoid the need for AC_LIBSOURCES in m4 macros.
48534         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
48535         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
48536         * modules/check-version (EXTRA_DIST): Add check-version.h.
48537         * modules/crc (EXTRA_DIST): Add crc.h.
48538         * modules/des (EXTRA_DIST): Add des.h.
48539         * modules/gc (EXTRA_DIST): Add gc.h.
48540         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
48541         * modules/getline (EXTRA_DIST): Add getline.h.
48542         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
48543         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
48544         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
48545         * modules/md2 (EXTRA_DIST): Add md2.h.
48546         * modules/md4 (EXTRA_DIST): Add md4.h.
48547         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
48548         * modules/read-file (EXTRA_DIST): Add read-file.h.
48549         * modules/readline (EXTRA_DIST): Add readline.h.
48550         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
48551         rijndael-api-fst.h.
48552
48553 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48554
48555         * m4/rijndael.m4 (gl_ARCFOUR):
48556         * m4/arctwo.m4 (gl_ARCTWO):
48557         * m4/check-version.m4 (gl_CHECK_VERSION):
48558         * m4/crc.m4 (gl_CRC):
48559         * m4/des.m4 (gl_DES):
48560         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
48561         * m4/gc.m4 (gl_GC):
48562         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
48563         * m4/getline.m4 (gl_FUNC_GETLINE):
48564         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
48565         * m4/hmac-md5.m4 (gl_HMAC_MD5):
48566         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
48567         * m4/md2.m4 (gl_MD2):
48568         * m4/md4.m4 (gl_MD4):
48569         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
48570         * m4/read-file.m4 (gl_FUNC_READ_FILE):
48571         * m4/readline.m4 (gl_FUNC_READLINE):
48572         * m4/rijndael.m4 (gl_RIJNDAEL):
48573         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48574         to get the necessary .h files and whatnot.
48575
48576 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
48577
48578         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
48579         gnulib rather than the other way around.
48580         * config/srclistvars.sh (COREUTILS): Remove.
48581
48582 2006-08-22  Jim Meyering  <jim@meyering.net>
48583
48584         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
48585
48586         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
48587
48588 2006-08-22  Eric Blake  <ebb9@byu.net>
48589
48590         * modules/regexprops-generic: New file.
48591         * MODULES.html.sh (Support for building documentation): List it.
48592
48593 2006-08-22  Eric Blake  <ebb9@byu.net>
48594
48595         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
48596         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48597         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
48598         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
48599
48600 2006-08-22  Bruno Haible  <bruno@clisp.org>
48601
48602         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
48603         and lib_LTLIBRARIES like the other lib_* variables.
48604
48605 2006-08-22  Bruno Haible  <bruno@clisp.org>
48606
48607         * build-aux/x-to-1.in: New file, from GNU gettext.
48608
48609 2006-08-22  Bruno Haible  <bruno@clisp.org>
48610
48611         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
48612         <utmpx.h> exists.
48613
48614 2006-08-22  Bruno Haible  <bruno@clisp.org>
48615
48616         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
48617         <utmpx.h> exists.
48618
48619 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48620
48621         BeOS portability.
48622         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
48623         exist.
48624         Problem reported by Bruno Haible.
48625
48626 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48627
48628         Avoid the need for AC_LIBSOURCES in m4 macros.
48629         * modules/acl (EXTRA_DIST): Add acl.h.
48630         * modules/argmatch (Files): Add m4/argmatch.m4.
48631         (configure.ac): Add gl_ARGMATCH.
48632         (EXTRA_DIST): Renamed from lib_SOURCES, for
48633         consistency with the other modules.  Remove argmatch.c.
48634         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
48635         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
48636         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
48637         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
48638         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
48639         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
48640         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
48641         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
48642         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
48643         * modules/closeout (EXTRA_DIST): Add closeout.h.
48644         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
48645         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
48646         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
48647         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
48648         dirname.h; remove basename.c and stripslash.c.
48649         * modules/exclude (EXTRA_DIST): Add exclude.h.
48650         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
48651         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
48652         * modules/file-type (EXTRA_DIST): Add file-type.h.
48653         * modules/filemode (EXTRA_DIST): Add filemode.h.
48654         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
48655         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48656         * modules/fpending (EXTRA_DIST): Add __fpending.h.
48657         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
48658         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
48659         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
48660         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
48661         * modules/getdate (EXTRA_DIST): Add getdate.c.
48662         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
48663         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
48664         * modules/getpass (EXTRA_DIST): Add getpass.h.
48665         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
48666         * modules/group-member (EXTRA_DIST): Add group-member.h.
48667         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
48668         * modules/hash (EXTRA_DIST): Add hash.h.
48669         * modules/human (EXTRA_DIST): Add human.h.
48670         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
48671         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
48672         * modules/lchown (EXTRA_DIST): Add lchown.h.
48673         * modules/long-options (EXTRA_DIST): Add long-options.h.
48674         * modules/lstat (EXTRA_DIST): Add lstat.h.
48675         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
48676         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
48677         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
48678         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
48679         * modules/memxor (EXTRA_DIST): Add memxor.h.
48680         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
48681         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
48682         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
48683         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
48684         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
48685         * modules/physmem (EXTRA_DIST): Add physmem.h.
48686         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
48687         * modules/posixver (EXTRA_DIST): Add posixver.h.
48688         * modules/quote (EXTRA_DIST): Add quote.h.
48689         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
48690         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
48691         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
48692         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
48693         regex_internal.h regexec.c.
48694         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
48695         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
48696         * modules/same (EXTRA_DIST): Add same.h.
48697         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
48698         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
48699         * modules/savedir (EXTRA_DIST): Add savedir.h.
48700         * modules/sha1 (EXTRA_DIST): Add sha1.h.
48701         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
48702         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
48703         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
48704         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
48705         * modules/strdup (EXTRA_DIST): Add strdup.h.
48706         * modules/strftime (EXTRA_DIST): Add strftime.h.
48707         * modules/strndup (EXTRA_DIST): Add strndup.h.
48708         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
48709         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
48710         * modules/time_r (EXTRA_DIST): Add time_r.h.
48711         * modules/timespec (EXTRA_DIST): Add timespec.h.
48712         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48713         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
48714         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
48715         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
48716         * modules/userspec (EXTRA_DIST): Add userspec.h.
48717         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
48718         * modules/utimens (EXTRA_DIST): Add utimens.h.
48719         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
48720         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
48721         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
48722         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
48723         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
48724         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
48725         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
48726         * modules/yesno (EXTRA_DIST): Add yesno.h.
48727
48728 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48729
48730         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
48731
48732         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
48733         * m4/dev-ino.m4, same-inode.m4: Remove.
48734
48735         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
48736         * m4/acl.m4 (AC_FUNC_ACL):
48737         * m4/backupfile.m4 (gl_BACKUPFILE):
48738         * m4/c-strtod.m4 (gl_C99_STRTOLD):
48739         * m4/canon-host.m4 (gl_CANON_HOST):
48740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
48742         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
48743         * m4/cloexec.m4 (gl_CLOEXEC):
48744         * m4/close-stream.m4 (gl_CLOSE_STREAM):
48745         * m4/closeout.m4 (gl_CLOSEOUT):
48746         * m4/dirfd.m4 (gl_FUNC_DIRFD):
48747         * m4/dirname.m4 (gl_DIRNAME):
48748         * m4/exclude.m4 (gl_EXCLUDE):
48749         * m4/exitfail.m4 (gl_EXITFAIL):
48750         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
48751         * m4/file-type.m4 (gl_FILE_TYPE):
48752         * m4/filemode.m4 (gl_FILEMODE):
48753         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
48754         * m4/fpending.m4 (gl_FUNC_FPENDING):
48755         * m4/fprintftime.m4 (gl_FPRINTFTIME):
48756         * m4/fts.m4 (gl_FUNC_FTS):
48757         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
48758         * m4/getdate.m4 (gl_GETDATE):
48759         * m4/gethrxtime.m4 (gl_GETHRXTIME):
48760         * m4/getpagesize.m4 (gl_GETPAGESIZE):
48761         * m4/getpass.m4 (gl_FUNC_GETPASS):
48762         * m4/gettime.m4 (gl_GETTIME):
48763         * m4/getugroups.m4 (gl_GETUGROUPS):
48764         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
48765         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
48766         * m4/hard-locale.m4 (gl_HARD_LOCALE):
48767         * m4/hash.m4 (gl_HASH):
48768         * m4/idcache.m4 (gl_IDCACHE):
48769         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
48770         * m4/lchown.m4 (gl_FUNC_LCHOWN):
48771         * m4/long-options.m4 (gl_LONG_OPTIONS):
48772         * m4/lstat.m4 (gl_FUNC_LSTAT):
48773         * m4/md5.m4 (gl_MD5):
48774         * m4/memcasecmp.m4 (gl_MEMCASECMP):
48775         * m4/memcoll.m4 (gl_MEMCOLL):
48776         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
48777         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
48778         * m4/memxor.m4 (gl_MEMXOR):
48779         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
48780         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
48781         * m4/modechange.m4 (gl_MODECHANGE):
48782         * m4/mountlist.m4 (gl_MOUNTLIST):
48783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48784         * m4/openat.m4 (gl_FUNC_OPENAT):
48785         * m4/pathmax.m4 (gl_PATHMAX):
48786         * m4/physmem.m4 (gl_PHYSMEM):
48787         * m4/posixtm.m4 (gl_POSIXTM):
48788         * m4/posixver.m4 (gl_POSIXVER):
48789         * m4/quote.m4 (gl_QUOTE):
48790         * m4/quotearg.m4 (gl_QUOTEARG):
48791         * m4/readtokens.m4 (gl_READTOKENS):
48792         * m4/readutmp.m4 (gl_READUTMP):
48793         * m4/regex.m4 (gl_REGEX):
48794         * m4/safe-read.m4 (gl_SAFE_READ):
48795         * m4/safe-write.m4 (gl_SAFE_WRITE):
48796         * m4/same.m4 (gl_SAME):
48797         * m4/save-cwd.m4 (gl_SAVE_CWD):
48798         * m4/savedir.m4 (gl_SAVEDIR):
48799         * m4/settime.m4 (gl_SETTIME):
48800         * m4/sha1.m4 (gl_SHA1):
48801         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
48802         * m4/stat-macros.m4 (gl_STAT_MACROS):
48803         * m4/stat-time.m4 (gl_STAT_TIME):
48804         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
48805         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
48806         * m4/strdup.m4 (gl_FUNC_STRDUP):
48807         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
48808         * m4/strndup.m4 (gl_FUNC_STRNDUP):
48809         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
48810         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
48811         * m4/time_r.m4 (gl_TIME_R):
48812         * m4/timespec.m4 (gl_TIMESPEC):
48813         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
48814         * m4/unlinkdir.m4 (gl_UNLINKDIR):
48815         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
48816         * m4/userspec.m4 (gl_USERSPEC):
48817         * m4/utimecmp.m4 (gl_UTIMECMP):
48818         * m4/utimens.m4 (gl_UTIMENS):
48819         * m4/xalloc.m4 (gl_XALLOC):
48820         * m4/xgetcwd.m4 (gl_XGETCWD):
48821         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
48822         * m4/xreadlink.m4 (gl_XREADLINK):
48823         * m4/xstrtod.m4 (gl_XSTRTOD):
48824         * m4/yesno.m4 (gl_YESNO):
48825         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48826         to get the necessary .h files and whatnot.
48827
48828 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
48829             Bruno Haible  <bruno@clisp.org>
48830
48831         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
48832         /bin/sh understanding of '!' conditional negation.
48833
48834 2006-08-21  Jim Meyering  <jim@meyering.net>
48835
48836         * modules/openat (Depends-on): Really alphabetize.
48837
48838         * modules/acl (Depends-on): Add error and quote.
48839
48840         * check-module (find_included_lib_files): Add at-func.c to the
48841         ok-to-include-more-than-once white list.
48842
48843         * modules/openat (Depends-on): Add lstat.  Alphabetize.
48844
48845 2006-08-21  Bruno Haible  <bruno@clisp.org>
48846
48847         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48848         Emit a pkgdata_DATA variable only if some snippets add contents to it.
48849         Reported by Martin Lambers <marlam@marlam.de>.
48850
48851 2006-08-21  Bruno Haible  <bruno@clisp.org>
48852
48853         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
48854         specify an installation location, don't emit a noinst_LIBRARIES or
48855         noinst_LTLIBRARIES assignment.
48856
48857 2006-08-21  Bruno Haible  <bruno@clisp.org>
48858
48859         BeOS portability.
48860         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
48861         BeOS has mbrtowc() but no <wctype.h>.
48862
48863 2006-08-21  Bruno Haible  <bruno@clisp.org>
48864
48865         BeOS portability.
48866         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
48867         exist.
48868
48869 2006-08-21  Bruno Haible  <bruno@clisp.org>
48870
48871         BeOS portability.
48872         * lib/mbchar.h: Include <wctype.h> only if it exists.
48873
48874 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48875
48876         Remove files that are no longer needed by their respective modules.
48877         * m4/obstack.m4: Remove.
48878         * m4/strerror_r.m4: Remove.
48879         * m4/uint32_t.m4: Remove.
48880         * m4/uintptr_t.m4: Remove.
48881         * m4/ullong_max.m4: Remove.
48882         * m4/xstrtoimax.m4: Remove.
48883         * m4/xstrtoumax.m4: Remove.
48884
48885         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
48886         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
48887         dependencies now capture this.
48888
48889         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
48890         Do not use AC_LIBSOURCES, since gnulib modules now do this.
48891         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
48892         * m4/human.m4 (gl_HUMAN): Likewise.
48893         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
48894         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
48895
48896         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
48897
48898         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
48899         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
48900         stdint.
48901         * m4/human.m4 (gl_HUMAN): Likewise.
48902         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
48903         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
48904         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48905         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48906         * m4/xstrtol (gl_XSTRTOL): Likewise.
48907
48908         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
48909         AC_TYPE_LONG_LONG_INT.
48910         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48911         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
48912         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
48913         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48914
48915         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
48916         on stdbool.
48917
48918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
48919         (gl_PREREQ_XSTRTOUL): Remove.
48920
48921         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
48922
48923         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
48924         mode.
48925
48926 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48927
48928         Add and change modules to make it easier for coreutils to use
48929         gnulib-tool.
48930         * modules/backupfile (Files): Remove m4/d-ino.m4.
48931         (Depends-on): Add d-ino.
48932         * modules/cycle-check (Depends-on): Add stdint.
48933         (lib_SOURCES): Add cycle-check.h.
48934         * modules/d-ino: New module.
48935         * modules/d-type: New module.
48936         * modules/error (Files): Remove m4/strerror_r.m4.
48937         * modules/filemode (Files): Add m4/st_dm_mode.m4.
48938         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48939         m4/inttypes_h.m4, m4/uintmax_t.m4.
48940         (Depends-on): Add stdint.
48941         (lib_SOURCES): Add fsusage.h.
48942         * modules/getcwd (Files): Remove d-ino.m4.
48943         (Depends-on): Add d-ino.
48944         * modules/getndelim2 (Depends-on): Add stdint.
48945         * modules/glob (Files): Remove m4/d-type.m4.
48946         (Depends-on): Add d-type.
48947         * modules/host-os: New module.
48948         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
48949         m4/inttypes_h.m4, m4/uintmax_t.m4.
48950         * Depends-on: Add stdint.
48951         (lib_SOURCES): Add human.h.
48952         * modules/inttostr (Files): Remove m4/intmax_t.m4,
48953         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
48954         m4/uintmax_t.m4, m4/ulonglong.m4.
48955         (Depends-on): Add stdint.
48956         (EXTRA_DIST): Add inttostr.h.
48957         * modules/lchmod: New module.
48958         * modules/link-follow: New module.
48959         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
48960         (Depends-on): Add lchmod.
48961         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
48962         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
48963         (Depends-on): Add stdint.
48964         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48965         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48966         (Depends-on): Add stdint.
48967         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48968         * modules/perl: New module.
48969         * modules/regex (Depends-on): Add stdint.
48970         * modules/rmdir-errno: New module.
48971         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48972         m4/intmax_t.m4.
48973         (Depends-on): Add stdint.
48974         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48975         m4/uintmax_t.m4.
48976         (Depends-on): Add stdint.
48977         * modules/unlink-busy: New module.
48978         * modules/utimecmp (Depends-on): Add stdint.
48979         * modules/uptime: New module.
48980         * modules/winsz-ioctl: New module.
48981         * modules/winsz-termios: New module.
48982         * modules/xnanosleep (Depends-on): Add nanosleep.
48983         * modules/ullong_max: Remove.
48984         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48985         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48986         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48987         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48988         (Depends-on): Add inttypes.
48989         (lib_SOURCES): Add xstrtol.h.
48990         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48991         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48992         * MODULES.html.sh: Move 'assert' into the assert section.
48993         Move 'dummy' into the linking section.
48994         Remove ullong_max.
48995         Add section for compatibility checks for POSIX:2001 functions,
48996         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48997         winsz-ioctl, and winsz-termios into it.
48998         Add lchmod.
48999         Add top-level Misc section and put host-os, perl, and uptime
49000         into it.
49001
49002 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49003
49004         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49005         now assume the stdint module.  Do not include inttypes.h.
49006         * lib/fsusage.h: Likewise.
49007         * lib/getndelim2.c: Likewise.
49008         * lib/human.h: Likewise.
49009         * lib/inttostr.h: Likewise.
49010         * lib/obstack.c: Likewise.
49011         * lib/regex_internal.h: Likewise.
49012         * lib/tempname.c: Likewise.
49013         * lib/utimecmp.c: Likewise.
49014         * lib/xstrtol.h: Likewise.
49015
49016         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49017
49018         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49019         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49020         * lib/xtime.h: Likewise.
49021
49022 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * modules/openat (Files): Add lib/fchmodat.c.
49025         Fixes problem reported by Jay Youngman.
49026
49027 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49028
49029         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49030         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49031
49032 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49033             Bruno Haible  <bruno@clisp.org>
49034
49035         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49036         and is a script that invokes bison. Tighten the code. Add comments.
49037
49038 2006-08-18  Jim Meyering  <jim@meyering.net>
49039
49040         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49041         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49042         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49043         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49044
49045 2006-08-18  Bruno Haible  <bruno@clisp.org>
49046
49047         * modules/bison-i18n: New file.
49048         * MODULES.html.sh (Internationalization functions): Add it.
49049
49050 2006-08-18  Bruno Haible  <bruno@clisp.org>
49051
49052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49053         sys/statvfs.h. When getmntinfo was found, check its declaration and
49054         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49055
49056 2006-08-18  Bruno Haible  <bruno@clisp.org>
49057
49058         * m4/bison-i18n.m4: New file, from bison.
49059
49060 2006-08-18  Bruno Haible  <bruno@clisp.org>
49061
49062         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49063         (ME_DUMMY): Treat "kernfs" as a dummy.
49064         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49065
49066 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49067
49068         Update from coreutils.
49069
49070         2006-08-15  Jim Meyering  <jim@meyering.net>
49071
49072         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49073
49074         2006-01-17  Jim Meyering  <jim@meyering.net>
49075
49076         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49077
49078         2006-01-11  Jim Meyering  <jim@meyering.net>
49079
49080         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49081         Check for the lchmod function.
49082
49083 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49084
49085         Update from coreutils.
49086
49087         * lib/__fpending.h: Add copyright notice.
49088         * lib/fprintftime.h: Likewise.
49089         * lib/savedir.c: Use (C) in copyright notice.
49090         * lib/savedir.h: Likewise.
49091
49092         2006-08-15  Jim Meyering  <jim@meyering.net>
49093
49094         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49095         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49096         in support of the EXPECTED_ERRNO macro.
49097         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49098         definitions.  Instead, define the appropriate symbols and include
49099         "at-func.c".
49100         * lib/mkdirat.c (mkdirat): Likewise.
49101         * lib/fchmodat.c (fchmodat): Likewise.
49102         (ENOSYS): Remove definition.
49103         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49104         it.  Don't include "unistd--.h" -- it wasn't ever used.
49105
49106         2006-01-17  Jim Meyering  <jim@meyering.net>
49107
49108         Rewrite fts.c not to change the current working directory,
49109         by using openat, fstatat, fdopendir, etc..
49110
49111         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49112         (HAVE_OPENAT_SUPPORT): Define.
49113         [_LIBC] (fchdir): Don't undef or define; no longer used.
49114         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49115         Now, this `function' always succeeds, and consumes its file descriptor
49116         parameter -- so callers must not close such FDs.  Update callers.
49117         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49118         (diropen): Add parameter, SP.  Adjust all callers.
49119         Implement using diropen_fd, rather than open.
49120         (fts_open): Initialize new member, fts_cwd_fd.
49121         Remove fts_rft-setting code.
49122         (fts_close): Close fts_cwd_fd, if necessary.
49123         (__opendir2): Define in terms of opendir or opendirat,
49124         depending on whether the FST_NOCHDIR flag is set.
49125         (fts_build): Since fts_safe_changedir consumes its FD, and since
49126         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49127         and close the dup'd file descriptor upon failure.
49128         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49129         (fts_safe_changedir): Tweak semantics to reflect that this function
49130         now calls cwd_advance_fd and hence consumes its FD argument.
49131         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49132         [struct FTS] (fts_rft): Remove now-unused member.
49133         [struct FTS] (fts_cycle.state): Improve comment.
49134
49135         * lib/openat.c (openat_needs_fchdir): New function.
49136         * lib/openat.h (openat_needs_fchdir): Declare it.
49137
49138 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49139
49140         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49141         Problem and fix reported by Pádraig Brady in
49142         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49143
49144 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49145
49146         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49147
49148 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49149
49150         * lib/memcoll.c (memcoll): Optimize for the common case where the
49151         arguments are bytewise equal.
49152
49153 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49154
49155         * doc/regexprops-generic.texi: Add a copyright notice.
49156
49157 2006-08-15  Bruno Haible  <bruno@clisp.org>
49158
49159         * modules/tmpdir (License): Change to LGPL.
49160
49161 2006-08-15  Bruno Haible  <bruno@clisp.org>
49162
49163         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49164         module.
49165
49166 2006-08-14  Simon Josefsson  <jas@extundo.com>
49167
49168         * config/srclist.txt: Add gnupload.
49169
49170 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49171
49172         Change copyright notice from LGPL 2 to GPL 2, since that's the
49173         standard form used in the gnulib repository.
49174         * tests/test-lock.c: Likewise.
49175         * tests/test-stdint.c: Likewise.
49176         * tests/test-tls.c: Likewise.
49177
49178         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49179         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49180         Add copyright notice.
49181
49182         * check-module: Add copyright notice.  Output a copyright
49183         notice if "--version" is specified.
49184         * modules/COPYING: New file.
49185         * tests/test-getaddrinfo.c: Add copyright notice.
49186         * tests/test-verify.c: Likewise.
49187
49188 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49189
49190         Change copyright notice from LGPL 2 to GPL 2, since that's the
49191         standard form used in the gnulib repository.
49192         * lib/lock.c: LGPL -> GPL.
49193         * lib/lock.h: Likewise.
49194         * lib/strnlen1.c: Likewise.
49195         * lib/strnlen1.h: Likewise.
49196         * lib/tls.c: Likewise.
49197         * lib/tls.h: Likewise.
49198         * lib/tmpdir.c: Likewise.
49199
49200         * lib/TODO: Remove; this belongs only in coreutils.
49201
49202 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49203
49204         Add copyright notices to long-enough files that lack them, since
49205         otherwise the files aren't clearly free.  Use the same notice that
49206         getdate.texi already uses.
49207         * doc/alloca-opt.texi: Add copyright notice.
49208         * doc/alloca.texi: Likewise.
49209         * doc/ctime.texi: Likewise.
49210         * doc/functions.texi: Likewise.
49211         * doc/gcd.texi: Likewise.
49212         * doc/gnulib-tool.texi: Likewise.
49213         * doc/inet_ntoa.texi: Likewise.
49214         * doc/visibility.texi: Likewise.
49215
49216         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49217         * doc/quote.texi: Add copyright notice.
49218
49219         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49220         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49221         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49222         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49223         is now obsolete, and give a pointer to the Sun list.
49224         Add copyright notice.
49225
49226 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         * config/srclistvars.sh: Add copyright notice.
49229
49230 2006-08-14  Eric Blake  <ebb9@byu.net>
49231
49232         Import the following change from libc:
49233
49234         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49235
49236         Upstream bug 2997.
49237         * lib/misc/error.c: Add space between program name and message if file
49238         name is missing.
49239
49240 2006-08-12  Karl Berry  <karl@gnu.org>
49241
49242         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49243         remove, these originate in gnulib now.
49244
49245 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49246
49247         * doc/Makefile (standards.info standards.html standards.dvi):
49248         Also depend on make-stds.texi.
49249
49250 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49251
49252         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49253         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49254
49255         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49256         in wchar_t.  Problem reported by Eric Blake.
49257
49258         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49259         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49260         Also, help the compiler to keep LEN in a register.
49261
49262 2006-08-11  Eric Blake  <ebb9@byu.net>
49263
49264         * users.txt: Sort.  Add tar.
49265
49266 2006-08-11  Bruno Haible  <bruno@clisp.org>
49267
49268         * users.txt: New file.
49269
49270 2006-08-11  Bruno Haible  <bruno@clisp.org>
49271
49272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49273         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49274
49275 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49276
49277         * modules/snprintf (Depends-on): Remove minmax.
49278         (Maintainer): Add self and Bruno.
49279
49280 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49281
49282         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49283         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49284         (EOVERFLOW): Define if the system does not.
49285         Do not include "minmax.h"; it wasn't used.
49286         (snprintf): Don't assume size_t promotes to an unsigned type.
49287         Fix bug when generated string was too long for the buffer: the
49288         buffer's contents are supposed to be the initial prefix of the
49289         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49290         exceeds INT_MAX; do the check ourselves.
49291
49292         Import the following changes from libc:
49293
49294         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49295
49296         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49297         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49298         set wc to the byte which couldn't be converted.
49299         (re_string_reconstruct): Don't clear valid_raw_len before calling
49300         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49301         tip_context using re_string_context_at.
49302
49303         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49304
49305         * lib/posix/regex.h: g++ still cannot handled [restrict].
49306
49307         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49308
49309         * lib/posix/regex.h: Remove special handling for VMS.
49310
49311 2006-08-10  Jim Meyering  <jim@meyering.net>
49312
49313         * modules/same-inode: New module.
49314         * modules/dev-ino: New module.
49315         * modules/cycle-check: Depend on these modules, rather than simply
49316         including their .h files.
49317         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49318         required via m4/cycle-check.m4.
49319         * modules/same: Depend on new same-inode module, rather than
49320         including same-inode.h.
49321         * modules/chdir-safer: New file.
49322
49323         * modules/chown (Depends-on): Add stat-macros.
49324
49325 2006-08-10  Jim Meyering  <jim@meyering.net>
49326
49327         * m4/cycle-check.m4: New file.
49328         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49329         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49330
49331 2006-08-10  Eric Blake  <ebb9@byu.net>
49332
49333         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49334         in from original proposal.
49335
49336 2006-08-10  Eric Blake  <ebb9@byu.net>
49337         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49338
49339         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49340         namespace.
49341
49342 2006-08-10  Bruno Haible  <bruno@clisp.org>
49343
49344         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49345         as well.
49346
49347 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         Sync from coreutils.
49350
49351         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49352
49353         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49354         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49355
49356 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49357
49358         * modules/restrict: Remove; no longer needed now that we assume
49359         Autoconf 2.59 or later.
49360         * MODULES.html.sh: Remove 'restrict'.
49361         * modules/argp (Depends-on): Remove 'restrict'.
49362         * modules/base64 (Depends-on): Likewise.
49363         * modules/gc (Depends-on): Likewise.
49364         * modules/getaddrinfo (Depends-on): Likewise.
49365         * modules/glob (Depends-on): Likewise.
49366         * modules/inet_ntop (Depends-on): Likewise.
49367         * modules/inet_pton (Depends-on): Likewise.
49368         * modules/memxor (Depends-on): Likewise.
49369         * modules/regex (Depends-on): Likewise.
49370         * modules/strtok_r (Depends-on): Likewise.
49371         * modules/time_r (Depends-on): Likewise.
49372
49373 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49374
49375         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49376         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49377         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49378         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49379         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49380         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49381         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49382         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49383
49384         Merge from coreutils.
49385         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49386         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49387         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49388         * m4/time_r.m4 (gl_TIME_R): Likewise.
49389
49390 2006-08-09  Karl Berry  <karl@gnu.org>
49391
49392         * config/srclist.txt: no more gettext-tools, per Bruno.
49393
49394 2006-08-08  Eric Blake  <ebb9@byu.net>
49395
49396         * modules/verror: New module.
49397         * MODULES.html.sh: Document it.
49398
49399 2006-08-08  Eric Blake  <ebb9@byu.net>
49400
49401         * lib/verror.h, lib/verror.c: New files.
49402
49403 2006-08-08  Eric Blake  <ebb9@byu.net>
49404
49405         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
49406         verror_at_line output complies with GNU Coding Standards even when
49407         file is NULL.
49408
49409 2006-08-07  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
49412         versions of AIX.
49413         Reported by Ralf Wildenhues.
49414
49415 2006-08-07  Bruno Haible  <bruno@clisp.org>
49416
49417         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
49418         in an AC_DEFUN. Needed so that the autoconf snippets can use
49419         AC_REQUIRE.
49420
49421 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49422
49423         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49424         Initialize pkgdata_DATA.
49425         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
49426         overriding it.
49427
49428 2006-08-06  Eric Blake  <ebb9@byu.net>
49429
49430         * lib/error.h: Fold in some upstream changes from glibc.
49431         * lib/error.c: Likewise.
49432
49433 2006-08-04  Bruno Haible  <bruno@clisp.org>
49434
49435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49436         Make the mostlyclean-local rule depend on mostlyclean-generic.
49437         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
49438
49439 2006-07-31  Bruno Haible  <bruno@clisp.org>
49440
49441         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
49442         <stdlib.h>, <string.h>.
49443
49444 2006-07-30  Bruno Haible  <bruno@clisp.org>
49445
49446         * modules/readlink (License): Change to LGPL.
49447
49448 2006-07-30  Bruno Haible  <bruno@clisp.org>
49449
49450         * modules/javaversion (Makefile.am): Distribute javaversion.java and
49451         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
49452         set PKGDATADIR to point to it.
49453
49454 2006-07-30  Bruno Haible  <bruno@clisp.org>
49455
49456         * modules/csharpexec (configure.ac): Comment out macro invocation.
49457         * modules/javaexec (configure.ac): Likewise.
49458         * modules/javacomp-script (configure.ac): Likewise.
49459
49460         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
49461
49462 2006-07-30  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
49465         linked-list.
49466
49467 2006-07-30  Bruno Haible  <bruno@clisp.org>
49468
49469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
49470
49471 2006-07-30  Bruno Haible  <bruno@clisp.org>
49472
49473         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49474         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
49475         get removed.
49476
49477 2006-07-29  Bruno Haible  <bruno@clisp.org>
49478
49479         Make it possible for gnulib-tool to work with locally modified or
49480         augmented gnulib repositories.
49481         * gnulib-tool (func_usage): Document --local-dir option.
49482         (local_gnulib_dir): New variable.
49483         Handle --local-dir option.
49484         (func_lookup_file): New function.
49485         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
49486         (func_get_description, func_get_filelist, func_get_description,
49487         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
49488         func_get_automake_snippet, func_get_include_directive,
49489         func_get_license, func_get_maintainer): Use func_lookup_file.
49490         (func_import, func_create_testdir): Use func_lookup_file.
49491
49492 2006-07-29  Bruno Haible  <bruno@clisp.org>
49493
49494         * modules/setenv (Depends-on): Add unistd.
49495
49496 2006-07-29  Bruno Haible  <bruno@clisp.org>
49497
49498         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
49499
49500 2006-07-29  Bruno Haible  <bruno@clisp.org>
49501
49502         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
49503
49504 2006-07-29  Bruno Haible  <bruno@clisp.org>
49505
49506         * gnulib-tool (import, update): If there is no Makefile.am, look at
49507         aclocal.m4, instead of bailing out.
49508
49509 2006-07-29  Bruno Haible  <bruno@clisp.org>
49510
49511         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
49512         Categorize the options by when they are useful.
49513
49514 2006-07-29  Bruno Haible  <bruno@clisp.org>
49515
49516         * gnulib-tool (func_usage): Document option --no-libtool.
49517         Handle option --no-libtool.
49518         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
49519         for changed semantics of $libtool variable.
49520         (func_import): Likewise. If libtool is not used, show this through
49521         an option --no-libtool.
49522         (func_create_testdir): Update.
49523
49524 2006-07-29  Bruno Haible  <bruno@clisp.org>
49525
49526         * gnulib-tool (func_import): Extend error message about missing
49527         --doc-base.
49528
49529 2006-07-29  Bruno Haible  <bruno@clisp.org>
49530
49531         * gnulib-tool (func_import): Don't create the $docbase directory if
49532         there is no file to store there.
49533
49534 2006-07-29  Bruno Haible  <bruno@clisp.org>
49535
49536         * gnulib-tool (autoconf_minversion): If a --dir option is given and
49537         relevant, look for configure.ac there, not in the current directory.
49538         Also use a simple search for AC_PREREQ, not "autoconf --trace".
49539
49540 2006-07-29  Bruno Haible  <bruno@clisp.org>
49541
49542         * gnulib-tool (SORT): New variable.
49543         (func_usage): Undocument --assume-autoconf option.
49544         Remove --assume-autoconf option handling.
49545         (autoconf_minversion): Determine from the contents of configure.ac.
49546         (func_import): Remove autoconf_minversion handling.
49547         Suggested by Eric Blake.
49548
49549 2006-07-29  Bruno Haible  <bruno@clisp.org>
49550
49551         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
49552
49553 2006-07-29  Bruno Haible  <bruno@clisp.org>
49554
49555         * config/srclist.txt (*setenv.[ch]): Remove rules.
49556
49557 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49558
49559         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
49560
49561 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49562
49563         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
49564         arpa/inet.h.
49565
49566 2006-07-28  Simon Josefsson  <jas@extundo.com>
49567
49568         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
49569         * modules/inet_pton (Depends-on): Likewise.
49570
49571 2006-07-28  Simon Josefsson  <jas@extundo.com>
49572
49573         * m4/netinet_in_h.m4: New file.
49574
49575 2006-07-28  Simon Josefsson  <jas@extundo.com>
49576
49577         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
49578         #include's.
49579
49580 2006-07-28  Simon Josefsson  <jas@extundo.com>
49581
49582         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
49583         #include's.
49584
49585 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
49586
49587         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
49588         setgid on directories only if they set these bits.
49589         * lib/modechange.h: Remove obsolete comment about masks.
49590
49591 2006-07-28  Eric Blake  <ebb9@byu.net>
49592
49593         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
49594         macro expansion.
49595
49596 2006-07-28  Bruno Haible  <bruno@clisp.org>
49597
49598         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
49599
49600 2006-07-28  Bruno Haible  <bruno@clisp.org>
49601
49602         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
49603
49604 2006-07-28  Bruno Haible  <bruno@clisp.org>
49605
49606         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49607         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49608         Define fallbacks.
49609         Avoids link error on FreeBSD 4.x.
49610         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49611
49612         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
49613         encoding.
49614         * lib/mbswidth.c (iswcntrl): Likewise.
49615
49616 2006-07-27  Bruno Haible  <bruno@clisp.org>
49617
49618         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
49619         test.
49620
49621 2006-07-27  Bruno Haible  <bruno@clisp.org>
49622
49623         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
49624         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
49625         defined.
49626
49627 2006-07-26  Eric Blake  <ebb9@byu.net>
49628
49629         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
49630
49631 2006-07-26  Eric Blake  <ebb9@byu.net>
49632
49633         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
49634         like mingw that lack mkstemp.
49635         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
49636         avoid compilation warning on mingw.
49637
49638 2006-07-26  Bruno Haible  <bruno@clisp.org>
49639
49640         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
49641         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
49642         INT_FAST*_MIN, INTPTR_MIN.
49643
49644 2006-07-25  Bruno Haible  <bruno@clisp.org>
49645
49646         * modules/version-etc (Depends-on): Add stdarg.
49647
49648 2006-07-25  Bruno Haible  <bruno@clisp.org>
49649
49650         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
49651         complex commands.
49652
49653 2006-07-25  Bruno Haible  <bruno@clisp.org>
49654
49655         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
49656         defined in <stdarg.h> or config.h.
49657
49658 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
49661         (gl_STDIO_SAFER): Remove.
49662
49663 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49664
49665         * MODULES.html.sh (File stream based Input/Output):
49666         Add fopen-safer, tmpfile-safer; remove stdio-safer.
49667         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
49668         * modules/fopen-safer, modules/tmpfile-safer: New files.
49669         * modules/stdio-safer: Remove.
49670
49671 2006-07-24  Bruno Haible  <bruno@clisp.org>
49672
49673         * modules/tmpdir: New file.
49674         * MODULES.html.sh (File system functions): Add it.
49675
49676 2006-07-24  Bruno Haible  <bruno@clisp.org>
49677
49678         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
49679         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
49680
49681 2006-07-24  Bruno Haible  <bruno@clisp.org>
49682
49683         * modules/clean-temp: New file.
49684
49685 2006-07-24  Bruno Haible  <bruno@clisp.org>
49686
49687         * m4/tmpdir.m4: New file, from GNU gettext.
49688
49689 2006-07-24  Bruno Haible  <bruno@clisp.org>
49690
49691         * lib/tmpdir.h: New file, from GNU gettext.
49692         * lib/tmpdir.c: New file, from GNU gettext.
49693
49694 2006-07-24  Bruno Haible  <bruno@clisp.org>
49695
49696         * lib/clean-temp.h: New file, from GNU gettext.
49697         * lib/clean-temp.c: New file, from GNU gettext.
49698
49699 2006-07-23  Eric Blake  <ebb9@byu.net>
49700
49701         * modules/stdio-safer (Files): Add tmpfile-safer.c.
49702         (Depends-on): Add binary-io.
49703
49704 2006-07-23  Eric Blake  <ebb9@byu.net>
49705
49706         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
49707
49708 2006-07-23  Eric Blake  <ebb9@byu.net>
49709
49710         * lib/tmpfile-safer.c: New file.
49711         * lib/stdio-safer.h (fopen_safer): Add prototype.
49712         * lib/stdio--.h (tmpfile): Make safer.
49713
49714 2006-07-23  Bruno Haible  <bruno@clisp.org>
49715
49716         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
49717         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
49718         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
49719         gl_linked_remove_at): Use it.
49720
49721 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49722         and Simon Josefsson <jas@extundo.com>
49723
49724         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
49725
49726         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
49727
49728 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49729
49730         * modules/close-stream: New file.
49731         * modules/closeout (Description): Make it clear that it exits
49732         with a diagnostic on error.
49733         (Depends-on): Add close-stream.  Remove fpending, stdbool.
49734         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
49735
49736 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49737
49738         * m4/close-stream.m4: New file.
49739
49740 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49741
49742         * lib/close-stream.c, lib/close-stream.h: New files.
49743
49744 2006-07-22  Bruno Haible  <bruno@clisp.org>
49745
49746         Merge from GNU gettext 0.15.
49747
49748         2006-05-01  Bruno Haible  <bruno@clisp.org>
49749
49750                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
49751
49752         2006-07-22  Bruno Haible  <bruno@clisp.org>
49753
49754                 * modules/javaversion: New file.
49755                 * MODULES.html.sh (Java): Add javaversion.
49756
49757         2006-03-12  Bruno Haible  <bruno@clisp.org>
49758
49759                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
49760
49761         2005-12-04  Bruno Haible  <bruno@clisp.org>
49762
49763                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
49764                 (untested).
49765
49766         2006-06-21  Bruno Haible  <bruno@clisp.org>
49767
49768                 Avoid warnings from recent versions of mcs.
49769                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
49770                 -o, -L, -r any more. Use options documented since mcs-1.0
49771                 instead. Similarly for -g.
49772
49773         2005-12-04  Bruno Haible  <bruno@clisp.org>
49774
49775                 * build-aux/csharpcomp.sh.in: Suffix for resources is
49776                 .resources, not .resource.
49777
49778         2005-07-09  Bruno Haible  <bruno@clisp.org>
49779
49780                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
49781                 add a .dll suffix.
49782                 Reported by Mark Junker <mjscod@gmx.de>.
49783
49784         2006-07-22  Bruno Haible  <bruno@clisp.org>
49785
49786                 * modules/gettext: Upgrade to gettext-0.15.
49787                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
49788                 m4/visibility.m4.
49789                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
49790
49791 2006-07-22  Bruno Haible  <bruno@clisp.org>
49792
49793         Merge from GNU gettext 0.15.
49794
49795         2006-03-25  Bruno Haible  <bruno@clisp.org>
49796
49797                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
49798
49799         2006-07-21  Bruno Haible  <bruno@clisp.org>
49800
49801                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
49802                 "1.1".
49803
49804         2006-05-09  Bruno Haible  <bruno@clisp.org>
49805
49806                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
49807                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
49808                 for the conftestver execution.
49809
49810         2006-05-01  Bruno Haible  <bruno@clisp.org>
49811
49812                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
49813                 optional target-version argument. Verify that the compiler
49814                 groks source of the specified source-version, or add -source
49815                 option as necessary. Verify that the compiler produces
49816                 bytecode in the specified target-version, or add -target and
49817                 -source options as necessary. Make the result of the test
49818                 available as variable CONF_JAVAC. Also log error output in
49819                 config.log.
49820
49821         2006-03-11  Bruno Haible  <bruno@clisp.org>
49822
49823                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
49824
49825         2006-05-09  Bruno Haible  <bruno@clisp.org>
49826
49827                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
49828                 CLASSPATH_SEPARATOR to a semicolon.
49829
49830         2006-03-12  Bruno Haible  <bruno@clisp.org>
49831
49832                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
49833                 available as variable CONF_JAVA, for subsequent autoconf
49834                 tests. Also log error output in config.log.
49835
49836         2006-07-19  Bruno Haible  <bruno@clisp.org>
49837
49838                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
49839                 that getline works on glibc2 systems. Needed to avoid trouble
49840                 in relocatable.c.
49841                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
49842
49843         2005-12-04  Bruno Haible  <bruno@clisp.org>
49844
49845                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
49846                 launcher (untested).
49847
49848         2005-12-04  Bruno Haible  <bruno@clisp.org>
49849
49850                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
49851
49852         2006-07-22  Bruno Haible  <bruno@clisp.org>
49853
49854                 * gettext.m4: Update from GNU gettext-0.15.
49855                 * nls.m4: Likewise.
49856                 * po.m4: Likewise.
49857                 * inttypes-pri.m4: Likewise.
49858                 * inttypes-h.m4: Renamed from inttypes.m4.
49859                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
49860
49861 2006-07-22  Bruno Haible  <bruno@clisp.org>
49862
49863         Merge from GNU gettext 0.15.
49864
49865         2005-07-05  Bruno Haible  <bruno@clisp.org>
49866
49867                 * printf-args.c (printf_fetchargs): Work around broken
49868                 definition of wint_t on mingw.
49869
49870         2005-02-12  Bruno Haible  <bruno@clisp.org>
49871
49872                 * xallocsa.h: Add extern "C" for C++.
49873
49874         2006-05-17  Bruno Haible  <bruno@clisp.org>
49875
49876                 Cygwin portability.
49877                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
49878
49879         2006-04-30  Bruno Haible  <bruno@clisp.org>
49880
49881                 * progreloc.c: Include <mach-o/dyld.h> if available.
49882                 (find_executable): Use _NSGetExecutablePath when possible.
49883
49884         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49885
49886                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
49887                 function.
49888
49889         2005-12-29  Bruno Haible  <bruno@clisp.org>
49890
49891                 * progreloc.c (set_program_name_and_installdir): Fix
49892                 compilation error.
49893
49894         2005-12-04  Bruno Haible  <bruno@clisp.org>
49895
49896                 Cygwin portability.
49897                 * progreloc.c: Include <windows.h> also on Cygwin.
49898                 (find_executable): Add support for Cygwin.
49899                 (set_program_name_and_installdir): Handle also platforms with
49900                 nonempty EXEEXT.
49901
49902         2006-07-11  Bruno Haible  <bruno@clisp.org>
49903
49904                 * javacomp.c: Fix a comment.
49905                 Reported by Jim Meyering.
49906
49907         2006-04-30  Bruno Haible  <bruno@clisp.org>
49908
49909                 * javacomp.h (compile_java_class): Add source_version,
49910                 target_version arguments.
49911                 * javacomp.c: Rewritten to choose only a compiler that
49912                 respects the specified source_version and target_version.
49913
49914         2006-06-27  Bruno Haible  <bruno@clisp.org>
49915
49916                 Assume correct S_ISDIR macro.
49917                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
49918
49919         2006-07-22  Bruno Haible  <bruno@clisp.org>
49920
49921                 * javaversion.h: New file, from GNU gettext.
49922                 * javaversion.c: New file, from GNU gettext.
49923                 * javaversion.java: New file, from GNU gettext.
49924                 * javaversion.class: New file, from GNU gettext.
49925
49926         2006-05-17  Bruno Haible  <bruno@clisp.org>
49927
49928                 Cygwin portability.
49929                 * javaexec.c (execute_java_class): Test for jview program
49930                 also on Cygwin.
49931
49932         2006-04-09  Bruno Haible  <bruno@clisp.org>
49933
49934                 * fatal-signal.c: Don't include string.h.
49935                 (at_fatal_signal): Use a copying loop instead of memcpy.
49936
49937         2005-12-04  Bruno Haible  <bruno@clisp.org>
49938
49939                 * csharpexec.c: Add support for 'clix' launcher (untested).
49940                 (execute_csharp_using_sscli): New function.
49941                 (execute_csharp_program): Call it.
49942
49943         2006-06-21  Bruno Haible  <bruno@clisp.org>
49944
49945                 Avoid warnings from recent versions of mcs.
49946                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
49947                 -o, -L, -r any more. Use options documented since mcs-1.0
49948                 instead. Similarly for -g.
49949
49950         2005-07-09  Bruno Haible  <bruno@clisp.org>
49951
49952                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
49953                 add a .dll suffix.
49954                 Reported by Mark Junker <mjscod@gmx.de>.
49955
49956         2006-06-17  Bruno Haible  <bruno@clisp.org>
49957
49958                 * config.charset: Update for NetBSD 3.0.
49959
49960         2006-05-17  Bruno Haible  <bruno@clisp.org>
49961
49962                 Cygwin portability.
49963                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
49964
49965         2006-05-16  Bruno Haible  <bruno@clisp.org>
49966
49967                 * localcharset.c [CYGWIN]: Include <windows.h>.
49968                 (get_charset_aliases): For Cygwin, return the same CPxxx
49969                 aliases list as under WIN32.
49970                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49971                 the environment variables. Fall back to GetACP().
49972
49973         2006-04-05  Bruno Haible  <bruno@clisp.org>
49974
49975                 * config.charset: Update Juan Manuel Guerrero's address.
49976
49977         2005-02-12  Bruno Haible  <bruno@clisp.org>
49978
49979                 * allocsa.h: Add extern "C" for C++.
49980
49981         2005-02-10  Bruno Haible  <bruno@clisp.org>
49982
49983                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49984                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49985
49986         2006-07-22  Bruno Haible  <bruno@clisp.org>
49987
49988                 * gettext.h: Update to GNU gettext-0.15.
49989
49990 2006-07-22  Bruno Haible  <bruno@clisp.org>
49991
49992         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49993         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49994         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49995
49996 2006-07-21  Eric Blake  <ebb9@byu.net>
49997
49998         * modules/stdlib-safer: New file.
49999         * MODULES.html.sh (File stream based Input/Output): Add
50000         stdlib-safer.
50001
50002 2006-07-21  Eric Blake  <ebb9@byu.net>
50003
50004         * lib/stdlib-safer.h: New file from coreutils, required by
50005         stdlib--.h.
50006
50007 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50008
50009         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50010
50011 2006-07-20  Bruno Haible  <bruno@clisp.org>
50012
50013         * gnulib-tool: Recognize new option --assume-autoconf.
50014         (autoconf_minversion): New variable.
50015         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50016
50017 2006-07-20  Bruno Haible  <bruno@clisp.org>
50018
50019         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50020
50021 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50022
50023         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50024         Reindent and repaginate.
50025
50026 2006-07-19  Derek Price  <derek@ximbiot.com>
50027
50028         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50029         Correct grammar.
50030
50031 2006-07-17  Bruno Haible  <bruno@clisp.org>
50032
50033         * modules/list: New file.
50034         * modules/array-list: New file.
50035         * modules/carray-list, modules/carray-list-tests: New files.
50036         * modules/linked-list, modules/linked-list-tests: New files.
50037         * modules/avltree-list, modules/avltree-list-tests: New files.
50038         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50039         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50040         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50041         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50042         * modules/oset: New file.
50043         * modules/array-oset: New file.
50044         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50045         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50046         * tests/test-carray_list.c: New file.
50047         * tests/test-linked_list.c: New file.
50048         * tests/test-avltree_list.c: New file.
50049         * tests/test-rbtree_list.c: New file.
50050         * tests/test-linkedhash_list.c: New file.
50051         * tests/test-avltreehash_list.c: New file.
50052         * tests/test-rbtreehash_list.c: New file.
50053         * tests/test-avltree_oset.c: New file.
50054         * tests/test-rbtree_oset.c: New file.
50055         * MODULES.html.sh (Container data structures): New section.
50056
50057 2006-07-17  Bruno Haible  <bruno@clisp.org>
50058
50059         * m4/gl_list.m4: New file.
50060
50061 2006-07-17  Bruno Haible  <bruno@clisp.org>
50062
50063         * lib/gl_list.h: New file.
50064         * lib/gl_list.c: New file.
50065         * lib/gl_array_list.h: New file.
50066         * lib/gl_array_list.c: New file.
50067         * lib/gl_carray_list.h: New file.
50068         * lib/gl_carray_list.c: New file.
50069         * lib/gl_linked_list.h: New file.
50070         * lib/gl_linked_list.c: New file.
50071         * lib/gl_anylinked_list1.h: New file.
50072         * lib/gl_anylinked_list2.h: New file.
50073         * lib/gl_avltree_list.h: New file.
50074         * lib/gl_avltree_list.c: New file.
50075         * lib/gl_anyavltree_list1.h: New file.
50076         * lib/gl_anyavltree_list2.h: New file.
50077         * lib/gl_rbtree_list.h: New file.
50078         * lib/gl_rbtree_list.c: New file.
50079         * lib/gl_anyrbtree_list1.h: New file.
50080         * lib/gl_anyrbtree_list2.h: New file.
50081         * lib/gl_anytree_list1.h: New file.
50082         * lib/gl_anytree_list2.h: New file.
50083         * lib/gl_linkedhash_list.h: New file.
50084         * lib/gl_linkedhash_list.c: New file.
50085         * lib/gl_anyhash_list1.h: New file.
50086         * lib/gl_anyhash_list2.h: New file.
50087         * lib/gl_avltreehash_list.h: New file.
50088         * lib/gl_avltreehash_list.c: New file.
50089         * lib/gl_rbtreehash_list.h: New file.
50090         * lib/gl_rbtreehash_list.c: New file.
50091         * lib/gl_anytreehash_list1.h: New file.
50092         * lib/gl_anytreehash_list2.h: New file.
50093
50094         * lib/gl_oset.h: New file.
50095         * lib/gl_oset.c: New file.
50096         * lib/gl_array_oset.h: New file.
50097         * lib/gl_array_oset.c: New file.
50098         * lib/gl_avltree_oset.h: New file.
50099         * lib/gl_avltree_oset.c: New file.
50100         * lib/gl_rbtree_oset.h: New file.
50101         * lib/gl_rbtree_oset.c: New file.
50102         * lib/gl_anytree_oset.h: New file.
50103
50104 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50105
50106         * m4/mkancesdirs.m4: New file.
50107         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50108         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50109         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50110         it.
50111
50112 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50115         * lib/mkancesdirs.h: New files.
50116         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50117         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50118         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50119         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50120         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50121         callers changed.  Revamp internals significantly, by not
50122         attempting to create directories that are temporarily more
50123         permissive than the final results.  Do not attempt to use
50124         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50125         This removes some race conditions, fixes some bugs, and simplifies
50126         things.  Use new dirchownmod function to do owner and mode changes.
50127         * lib/mkdir-p.h: Likewise.
50128         * lib/modechange.c (octal_to_mode): New function.
50129         (struct mode_change): New member mentioned.
50130         (make_node_op_equals): New arg mentioned.  All callers changed.
50131         (mode_compile): Keep track of which mode bits the user has explicitly
50132         mentioned.
50133         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50134         New arg PMODE_BITS, to keep track of which mode bits the user
50135         mentioned; it treats S_ISUID and S_ISGID speciall.
50136         All callers changed.
50137         * lib/modechange.h: Likewise.
50138
50139 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50140
50141         * MODULES.html.sh: Add mkancestors.
50142         * modules/mkancesdirs: New module.
50143         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50144         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50145         The chdir-safer and afs files are now orphans; I'll remove them
50146         unless someone speaks up.
50147         Add lib/dirchownmod.c, lib/dirchownmod.h.
50148         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50149         Add lchown, mkancesdirs.
50150         (Maintainer): Add self.
50151
50152 2006-07-15  Karl Berry  <karl@gnu.org>
50153
50154         * gnulib-tool: help message wording/arrangement.
50155
50156 2006-07-14  Simon Josefsson  <jas@extundo.com>
50157
50158         * doc/gnulib.texi (Libtool and Windows): New section.
50159
50160 2006-07-12  Simon Josefsson  <jas@extundo.com>
50161
50162         * modules/gendocs (License): Fix license, approved by Karl.
50163
50164 2006-07-12  Eric Blake  <ebb9@byu.net>
50165
50166         * MODULES.html.sh: Add gendocs.
50167
50168 2006-07-11  Eric Blake  <ebb9@byu.net>
50169
50170         * modules/fdl: New module, to install doc/fdl.texi.
50171         * MODULES.html.sh: Add new section for documentation modules.
50172         * gnulib-tool: Avoid space-tab.
50173         (--doc-base): New option, to manage files from doc.
50174
50175 2006-07-11  Eric Blake  <ebb9@byu.net>
50176
50177         * m4/absolute-header.m4: Fix comments to match recent change.
50178
50179 2006-07-11  Eric Blake  <ebb9@byu.net>
50180
50181         * gnulib-tool: List --doc-base before --tests-base.
50182
50183 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50184
50185         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50186
50187 2006-07-11  Bruno Haible  <bruno@clisp.org>
50188
50189         * README: Mention where to put documentation.
50190
50191 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50192
50193         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50194
50195 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50196
50197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50198         to stdint.m4.
50199
50200 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50201
50202         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50203         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50204         "no/such/file/stdint.h" when there is no such file, so that
50205         the resulting C code can be parsed by dodgy compilers.
50206         Problems reported by Bob Proulx.
50207
50208 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50209
50210         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50211         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50212         macros into the GNU _D_EXACT_NAMLEN.
50213         * lib/savedir.c:  Likewise.
50214         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50215
50216 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50217         and Paul Eggert  <eggert@cs.ucla.edu>
50218
50219         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50220         * m4/savedir.m4:
50221         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50222         macros into the GNU _D_EXACT_NAMLEN.
50223
50224 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50225
50226         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50227         around the absolute name, to work around a problem with the HP-UX
50228         11.23 native C compiler, reported by Bob Proulx.
50229
50230 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50231
50232         * doc/maintain.texi, make-stds.texi: Sync from
50233         <http://savannah.gnu.org/projects/gnustandards>.
50234
50235 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50236
50237         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50238
50239 2006-07-09  Jim Meyering  <jim@meyering.net>
50240
50241         * m4/glob.m4: Remove a doubled word in a comment.
50242
50243 2006-07-09  Jim Meyering  <jim@meyering.net>
50244
50245         * lib/argp-pv.c: Remove a doubled word in a comment.
50246         * lib/check-version.c (check_version): Likewise.
50247         * lib/javacomp.c (compile_java_class): Likewise.
50248
50249 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50252         for the benefit of people using Autoconf 2.60.  If you want to
50253         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50254         (or m4/onceonly.m4, if pre-2.57) manually.
50255
50256 2006-07-08  Jim Meyering  <jim@meyering.net>
50257
50258         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50259         comment.
50260         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50261         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50262         comment.
50263
50264 2006-07-08  Jim Meyering  <jim@meyering.net>
50265
50266         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50267
50268 2006-07-07  Simon Josefsson  <jas@extundo.com>
50269
50270         * tests/test-crc.c: Change expected crc value, the test vector
50271         were probably computed using the old broken crc.c?
50272
50273 2006-07-06  Simon Josefsson  <jas@extundo.com>
50274
50275         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50276         now the canonical place for the M4 file).
50277
50278         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50279         from the sys_socket dependency now.
50280
50281         * modules/inet_pton (Files): Ditto.
50282
50283         * modules/inet_ntop (Files): Ditto.
50284
50285 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50286
50287         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50288         not gl_PREREQ_GETUSERSHELL.
50289
50290 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50291
50292         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50293         with only one argument, for Autoconf 2.60.
50294         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50295         expand to nothing, so add a shell command to avoid syntax error.
50296         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50297
50298 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50299
50300         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50301
50302 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50303
50304         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50305         no longer needed.  Check for isblank decl.
50306         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50307         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50308         of existence.
50309
50310 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50311
50312         * lib/getloadavg.c: Use __VMS, not VMS.
50313         * lib/getopt.c: Likewise.
50314         * lib/getpagesize.h: Likewise.
50315         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50316         and probably does not work.
50317
50318 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50319
50320         * lib/.cppi-disable: Add wcwidth.
50321         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50322         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50323         (ISGRAPH): Remove.  All uses changed to isgraph.
50324         (FOLD) [!defined _LIBC]: Remove special case.
50325         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50326         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50327         HAVE_ISBLANK.
50328         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50329         case.
50330
50331 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50332
50333         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50334         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50335         brackets.  Other minor changes to suppress some compiler
50336         warnings.
50337
50338 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50339         and Paul Eggert  <eggert@cs.ucla.edu>
50340
50341         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50342         of invoking obsolescent AC_HEADER_DIRENT macro.
50343         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50344         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50345         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50346         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50347         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50348         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50349         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50350         * m4/readdir.m4: Remove; no longer needed.
50351
50352 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50353         and Paul Eggert  <eggert@cs.ucla.edu>
50354
50355         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50356         Don't worry about this obsolete case any more.
50357         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50358         directories.
50359         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50360         worry about this obsolete case any more.
50361         * lib/fts.c: Likewise.
50362         * lib/getcwd.c: Likewise.
50363         * lib/glob.h: Likewise.
50364         * lib/savedir.c: Likewise.
50365
50366 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50367
50368         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50369         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50370         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50371         needed.
50372         All uses removed.
50373         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50374         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50375         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50376         needed.
50377         * m4/getdate.m4 (gl_GETDATE): Likewise.
50378         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50379         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50380         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50381         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50382         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50383         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50384         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50385         needed.
50386
50387 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50388
50389         * lib/memcasecmp.c: Include <limits.h>.
50390         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50391         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50392         Don't assume isdigit succeeds only on '0' through '9'.
50393
50394 2006-07-05  Eric Blake  <ebb9@byu.net>
50395
50396         * modules/getaddrinfo (Depends-on): Add snprintf.
50397
50398 2006-07-05  Eric Blake  <ebb9@byu.net>
50399
50400         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50401         to avoid 'header present but could not be compiled' on cygwin.
50402
50403 2006-07-05  Eric Blake  <ebb9@byu.net>
50404
50405         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
50406         missing from netdb.h.
50407         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
50408
50409 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50410
50411         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
50412         no longer needed.
50413         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
50414         * m4/getdate.m4 (gl_GETDATE): Likewise.
50415         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50416         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50417         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50418         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50419         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50420
50421 2006-07-05  Derek R. Price  <derek@ximbiot.com>
50422
50423         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
50424         All uses of is_space replaced by isspace.
50425         * lib/exit.h: Don't talk about STDC_HEADERS.
50426         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
50427         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
50428         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
50429         replaced by isprint etc.
50430         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
50431         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50432         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
50433         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
50434         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
50435         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
50436
50437 2006-07-05  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
50440         the function exists, before testing against AIX.
50441         Reported by Martin Lambers <marlam@marlam.de>.
50442
50443 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50444
50445         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
50446         From Mark D. Baushke.
50447
50448 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
50449
50450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
50451         to the absolute name, not just one, to bypass Sun C 5.8's
50452         "warning: #include of /usr/include/... may be non-portable".
50453
50454 2006-07-04  Eric Blake  <ebb9@byu.net>
50455
50456         * modules/dirname-tests: New test module.
50457         * tests/test-dirname.c: New file, replacing dirname.c
50458         TEST_DIRNAME section that was recently deleted.
50459
50460 2006-07-04  Bruno Haible  <bruno@clisp.org>
50461
50462         Assume ANSI C header files and <ctype.h> functions.
50463         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
50464         (mbsnwidth): Use isprint, iscntrl instead.
50465
50466 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50467
50468         Merge from coreutils.
50469         * MODULES.html.sh: Add xstrtold.
50470         * modules/xstrtold: New file.
50471         * modules/cycle-check (Files): Add lib/same-inode.h.
50472         * modules/dirname (Files): Add m4/double-slash-root.m4.
50473         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
50474         * modules/mkdir-p (Files): Add lib/same-inode.h.
50475         * modules/same (Files): Add lib/same-inode.h.
50476
50477 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         * m4/absolute-header.m4: Renamed from full-header-path.m4.
50480         This is to keep the terminology clean; POSIX talks about
50481         "absolute pathnames", not "full pathnames", but the GNU
50482         Coding Standards say to use "path" for something else;
50483         so use "absolute" to keep both sides happy.
50484         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
50485         Set gl_absolute_header, not gl_full_header_path.
50486         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
50487         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
50488         All uses changed.
50489
50490         Merge from coreutils.
50491
50492         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
50495         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
50496         want to require the building of c-strtod.o.
50497         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
50498         needs -lm directly.
50499         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
50500
50501         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
50504         --as-needed option if available.  Problem reported by Albert Chin in
50505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
50506         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
50507         cc merely issues a bunch of annoying warnings for --as-needed
50508         (this problem was reported by Bob Proulx).  Also, try linking with
50509         -lm to detect a bug in binutils 2.16 (this problem was reported
50510         by Ralf Wildenhues).
50511
50512         2006-06-18  Jim Meyering  <jim@meyering.net>
50513
50514         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
50515         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
50516         macro.
50517         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
50518         also check for glibc-2.4's abort-inducing bug.
50519
50520         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
50521         Low-probability clean-up should be to use rmdir to get rid of
50522         the just-created directory, not unlink.
50523
50524         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
50525         configure fail, and request a bug report to inform us about it.
50526         Add a comment that, barring reports to the contrary, in 2007 we'll
50527         assume ftruncate is universally available.
50528
50529         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50530
50531         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
50532
50533         2006-03-12  Jim Meyering  <jim@meyering.net>
50534
50535         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
50536         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
50537         * m4/same.m4 (gl_SAME): Likewise.
50538         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
50539
50540         2006-03-11  Eric Blake  <ebb9@byu.net>
50541
50542         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
50543         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
50544         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
50545         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
50546
50547 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50548
50549         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
50550         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
50551         reported by Mark D. Baushke, one in
50552         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
50553
50554         Merge from coreutils.
50555
50556         * lib/.cppi-disable: Add stdint_.h.
50557         * lib/.cvsignore: Add stdint.h.
50558
50559         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50560
50561         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
50562         both double and long double versions.
50563         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
50564         * lib/xstrtold.c: New file.
50565         * lib/xstrtod.h (xstrtold): New decl.
50566
50567         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50568
50569         * lib/filemode.c (setst): Remove.
50570         (strmode): Rewrite to avoid setst.  This makes the code shorter,
50571         (arguably) clearer, and the generated code is a bit smaller on my
50572         Debian GNU/Linux stable x86 host.
50573
50574         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         * lib/filemode.c: Include "filemode.h" first, to test the interface.
50577         Assume that filemode.h includes sys/types.h and sys/stat.h.
50578         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
50579         (ftypelet): Reorder to put common cases first, for efficiency.
50580         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
50581         to do 'M'.
50582         (strmode): Renamed from mode_string, and now stores 12 bytes instead
50583         of 10, for compatibility with FreeBSD.  All callers changed.
50584         (filemodestring): Now stores 12 bytes instead of 10, and sets file
50585         types that can't be deduced solely from st_mode.  First arg is now a
50586         const pointer.
50587         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
50588         (strmode): Renamed from mode_string.
50589         (filemodestring): New decl.
50590         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
50591         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
50592         needed.
50593         (S_ISPORT, S_ISWHT): New macros, if not already defined.
50594
50595         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
50598         fsusage.h now does that.  Include fsusage.h first, to test interface.
50599         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
50600         at most one method (the old code could have generated decls that
50601         didn't conform to C89, not that this was ever exercised).
50602         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
50603
50604         2006-03-19  Jim Meyering  <jim@meyering.net>
50605
50606         Work even in a chroot where d_ino values for entries in "/"
50607         don't match the stat.st_ino values for the same names.
50608         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
50609         number, iterate through all entries again, using lstat instead.
50610         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
50611         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
50612
50613         * lib/getcwd.c (__getcwd): Clarify a comment.
50614         Use memcpy in place of a call to strcpy.
50615
50616         2006-03-12  Jim Meyering  <jim@meyering.net>
50617
50618         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
50619         matches that of the current directory (which we're about to chdir ".."
50620         out of), then save the dev-ino of the parent, instead.
50621
50622         * lib/same-inode.h (SAME_INODE): New file/macro.
50623         * lib/chdir-safer.c (SAME_INODE): Remove definition.
50624         Include "same-inode.h", instead.
50625         * lib/same.c: Likewise.
50626         * lib/cycle-check.h: Include "same-inode.h".
50627         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
50628         * lib/cycle-check.c (SAME_INODE): Remove definition.
50629         * lib/root-dev-ino.h: Include "same-inode.h".
50630
50631         2006-03-11  Eric Blake  <ebb9@byu.net>
50632
50633         * lib/same.c (same_name): s/base_name/last_component/
50634         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
50635         * lib/filenamecat.c (file_name_concat): Likewise.
50636
50637         2006-03-11  Eric Blake  <ebb9@byu.net>,
50638                     Paul Eggert  <eggert@cs.ucla.edu>
50639
50640         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
50641         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
50642         drive prefix.
50643         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
50644         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
50645         (last_component): New method.
50646         * lib/dirname.c (dir_len): Determine when drive letters need a
50647         subsequent slash.  Preserve // when it is special.
50648         (dir_name): Don't append dot when drive letter is absolute.
50649         [TEST_DIRNAME]: Move into a full-blown gnulib test.
50650         * lib/basename.c (base_name): New semantics - malloc the result.
50651         Preserve // when it is special.  Preserve relative files that look
50652         like drive letters.
50653         (base_len): Preserve // when it is special.
50654         (last_component): New method, similar to old base_name semantics.
50655         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
50656         base_name.  Strip redundant slashes from ///.
50657
50658 2006-07-03  Jim Meyering  <jim@meyering.net>
50659
50660         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
50661         macro is used before the first cycle_check call.
50662
50663 2006-07-03  Eric Blake  <ebb9@byu.net>
50664
50665         * modules/dirname (Depends-on): Add xstrndup.
50666
50667 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
50670         test cases, so that config.log is a bit easier to follow.
50671
50672 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50673
50674         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
50675         both are 64 bits, since this seems to be the tradition, and this
50676         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
50677         we ever run into a host that prefers long long to long in this
50678         case, we'll need another configure-time test.  Problem reported by
50679         Jim Meyering.
50680
50681 2006-07-02  Eric Blake  <ebb9@byu.net>
50682
50683         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
50684
50685 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * modules/inttypes (Depends-on): No longer depends on stdint.
50688         * modules/stdint (Description): Say more about assumptions.
50689         Say that the fast types might differ.  Say macros are used.
50690         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
50691         (Makefile.am): Revise list of substituted symbols to match
50692         new stdint.m4.
50693         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
50694         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
50695         * tests/test-stdint.c (verify_same_types)
50696         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
50697         the code conforms to C99/C89.
50698         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
50699         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
50700
50701 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50702
50703         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
50704         but fix a bug, by requiring at least 64 bits.
50705         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50706         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
50707         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
50708         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
50709
50710         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
50711         changes.  Make 2.59 a prerequisite.  Check and substitute for
50712         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
50713         inttypes.h.  Do not use special include files; just use the
50714         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
50715         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
50716         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
50717         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
50718         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
50719         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
50720         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
50721         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
50722         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
50723         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
50724         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
50725         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
50726         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
50727         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
50728         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
50729         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
50730         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
50731         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
50732         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
50733         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
50734         WINT_MAX.  Check for C99 conformance more strictly, by detecting
50735         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
50736         not check for things that C99 does not require, e.g., int8_t.  If
50737         a test isn't needed unless <stdint.h> isn't working, and is
50738         unlikely to be needed for any other reason, then don't do it
50739         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
50740         size_t, since we assume C89 freestanding at least.  Do not check
50741         for sig_atomic_t, wchar_t, or wint_t, since the code now does
50742         the right thing even if the types are not defined.  Instead use:
50743         (gl_STDINT_TYPE_PROPERTIES): New macro.
50744         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
50745         testing whether <sys/types.h> clashes, as Autoconf does this for
50746         us now.  All uses removed.
50747         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
50748         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
50749         (gl_CHECK_TYPE_SAME):
50750         Remove; no longer needed.
50751         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
50752         exists, since we'll return 0 anyway in that case.
50753         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
50754
50755 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50756
50757         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
50758         possible collision with system files.
50759         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
50760         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
50761         WCHAR_MIN and WCHAR_MAX in this case.
50762         (<stddef.h>): Do not include; no longer needed.
50763         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
50764         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
50765         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
50766         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
50767         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
50768         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
50769         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
50770         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
50771         !defined(__c99))]: Include in this case too, since it's harmless
50772         now.
50773         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
50774         dangerous to do so.
50775         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
50776         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
50777         (_STDINT_MIN, _STDINT_MAX): New macros.
50778         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
50779         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
50780         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
50781         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
50782         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
50783         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
50784         macros, not typedefs; this simplifies things quite a bit.
50785         Use long int for all types narrower than int64_t.
50786         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
50787         Define in terms of long long int or int64_t or long int,
50788         not int64_t or int32_t.  This saves some compile-time testing.
50789         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
50790         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
50791         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
50792         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
50793         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
50794         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
50795         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
50796         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
50797         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
50798         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
50799         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50800         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50801         undef any previous version and define our own version, for
50802         simplicity and consistency with the new macros for types.
50803         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50804         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50805         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
50806         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
50807         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
50808         @WINT_T_SUFFIX@ to keep things simple here.
50809         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
50810         Simplify by assuming typical 8/16/32/64 host, since we're
50811         already doing that elsewhere anyway.
50812         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
50813         and assume long long int is 64 bits if available.  This
50814         speeds up 'configure'.
50815
50816 2006-07-01  Eric Blake  <ebb9@byu.net>
50817
50818         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
50819         Reported by Andreas Buening.
50820
50821 2006-07-01  Eric Blake  <ebb9@byu.net>
50822
50823         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
50824
50825 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50826
50827         * lib/getaddrinfo.c: fixed typo
50828
50829 2006-06-29  Jim Meyering  <jim@meyering.net>
50830
50831         * modules/strftime (Maintainer): Add my name, since with the
50832         FPRINTFTIME changes strftime.c has forked from glibc.
50833
50834 2006-06-29  Eric Blake  <ebb9@byu.net>
50835
50836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
50837
50838 2006-06-29  Eric Blake  <ebb9@byu.net>
50839
50840         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
50841
50842 2006-06-29  Eric Blake  <ebb9@byu.net>
50843
50844         * lib/stat_.h: New file.
50845
50846 2006-06-29  Eric Blake  <ebb9@byu.net>
50847
50848         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
50849         unused static function.
50850
50851 2006-06-29  Eric Blake  <ebb9@byu.net>
50852
50853         * doc/functions.texi (Function Portability): Document missing lstat
50854         on mingw.
50855
50856 2006-06-29  Eric Blake  <ebb9@byu.net>
50857
50858         * MODULES.html.sh: Add sys_stat.
50859         * modules/sys_stat: New module.
50860         * modules/mkstemp (Depends-on): Add sys_stat.
50861
50862 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50863
50864         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
50865
50866 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50867
50868         * m4/c-bs-a.m4: Removed.
50869
50870 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50871
50872         * lib/strftime.c: Assume strftime() exists.
50873
50874 2006-06-29  Derek Price  <derek@ximbiot.com>
50875
50876         * modules/c-bs-a: Removed - \a is C89.
50877         * MODULES.html.sh: Remove c-bs-a.
50878
50879 2006-06-29  Bruno Haible  <bruno@clisp.org>
50880
50881         * modules/wcwidth (License): Change to LGPL.
50882
50883 2006-06-28  Simon Josefsson  <jas@extundo.com>
50884
50885         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
50886         on _WIN32.
50887
50888         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
50889         getnameinfo.
50890
50891 2006-06-28  Simon Josefsson  <jas@extundo.com>
50892
50893         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
50894
50895 2006-06-28  Simon Josefsson  <jas@extundo.com>
50896
50897         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
50898         functions there.  It will succeed on Windows XP, but on Windows
50899         2000 and (presumably) earlier, it will fail, and use the internal
50900         re-implementation.
50901         (use_win32_p): New function.
50902         (getaddrinfo): Use strtoul on servname, to support numeric ports.
50903         Support AI_NUMERICSERV to disable getservbyname.
50904         (getnameinfo): New function, only supports
50905         NI_NUMERICHOST|NI_NUMERICSERV for now.
50906
50907         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
50908         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
50909         getnameinfo.
50910
50911 2006-06-28  Eric Blake  <ebb9@byu.net>
50912
50913         * modules/wcwidth: New file.
50914         * modules/mbchar (Depends-on): Add wcwidth.
50915         * modules/mbswidth (Depends-on): Add wcwidth.
50916         * MODULES.html.sh: Add wcwidth.
50917
50918 2006-06-28  Eric Blake  <ebb9@byu.net>
50919
50920         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
50921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
50922
50923 2006-06-28  Eric Blake  <ebb9@byu.net>
50924
50925         * lib/xvasprintf.h: Fix comments.
50926
50927 2006-06-28  Eric Blake  <ebb9@byu.net>
50928
50929         * lib/mbchar.h (wcwidth): Include wcwidth.h.
50930         * lib/mbswidth.c (wcwidth): Move from here...
50931         * lib/wcwidth.h: ...to this new file.
50932
50933 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50934
50935         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
50936
50937         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
50938         it's obsolete.
50939         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
50940
50941 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50942
50943         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
50944         Autoconf 2.60 says this stuff was obsolete.
50945
50946 2006-06-28  Bruno Haible  <bruno@clisp.org>
50947
50948         * modules/wcwidth (Files): Add m4/wchar_t.m4.
50949
50950 2006-06-28  Bruno Haible  <bruno@clisp.org>
50951
50952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
50953         gt_TYPE_WCHAR_T.
50954
50955 2006-06-28  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
50958         declaration for wcwidth.
50959         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
50960
50961 2006-06-28  Bruno Haible  <bruno@clisp.org>
50962
50963         * lib/mkdtemp.c [MINGW]: Include <io.h>.
50964         (mkdir): Define using _mkdir.
50965
50966 2006-06-28  Bruno Haible  <bruno@clisp.org>
50967
50968         * lib/getaddrinfo.h: Fix POSIX URL.
50969         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50970         _WIN32.
50971         (use_win32_p): Make static.
50972         (getaddrinfo): Reject service name if it is empty or does not consist
50973         solely of decimal digits, or if its value is > 65535.
50974         (getnameinfo): Remove useless casts.
50975
50976 2006-06-27  Simon Josefsson  <jas@extundo.com>
50977
50978         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50979         Eggert and Martin Lambers.
50980
50981 2006-06-27  Simon Josefsson  <jas@extundo.com>
50982
50983         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50984         Eggert and Martin Lambers.
50985
50986 2006-06-27  Bruno Haible  <bruno@clisp.org>
50987
50988         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50989         result to 0, not to empty.
50990         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50991
50992 2006-06-27  Bruno Haible  <bruno@clisp.org>
50993
50994         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50995
50996 2006-06-26  Simon Josefsson  <jas@extundo.com>
50997
50998         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50999         present.
51000
51001 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51002
51003         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51004         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51006
51007 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51008
51009         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51010
51011 2006-06-26  Bruno Haible  <bruno@clisp.org>
51012
51013         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51014
51015 2006-06-26  Bruno Haible  <bruno@clisp.org>
51016
51017         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51018
51019 2006-06-26  Bruno Haible  <bruno@clisp.org>
51020
51021         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51022         SGI C compiler in pre-C99 mode.
51023         Suggested by Mark D. Baushke and Larry Jones.
51024
51025 2006-06-26  Bruno Haible  <bruno@clisp.org>
51026
51027         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51028         WCHAR_MAX.
51029         Reported by Mark D. Baushke and Larry Jones.
51030
51031 2006-06-26  Bruno Haible  <bruno@clisp.org>
51032
51033         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51034         in pre-C99 mode.
51035         Suggested by Mark D. Baushke and Larry Jones.
51036
51037 2006-06-23  Simon Josefsson  <jas@extundo.com>
51038             Bruno Haible  <bruno@clisp.org>
51039
51040         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51041         Emit mostlyclean-local rule.
51042         (func_emit_tests_Makefile_am): Likewise.
51043         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51044
51045 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51046
51047         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51048
51049 2006-06-23  Bruno Haible  <bruno@clisp.org>
51050
51051         * tests/test-stdint.c: Update to match ISO C 99 Technical
51052         Corrigendum 1.
51053
51054 2006-06-23  Bruno Haible  <bruno@clisp.org>
51055
51056         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51057
51058 2006-06-23  Bruno Haible  <bruno@clisp.org>
51059
51060         * lib/stdint_.h: Treat IRIX like OpenBSD.
51061
51062 2006-06-23  Bruno Haible  <bruno@clisp.org>
51063
51064         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51065         ISO C 99 Technical Corrigendum 1.
51066
51067 2006-06-22  Simon Josefsson  <jas@extundo.com>
51068
51069         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51070         MinGW.
51071
51072 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51073
51074         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51075         needed.  Some compiler complained about some of them.  Problem reported
51076         by Larry Jones in
51077         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51078
51079 2006-06-21  Simon Josefsson  <jas@extundo.com>
51080
51081         * tests/test-getaddrinfo.c: New file.
51082
51083         * modules/getaddrinfo-tests: New file.
51084
51085         * MODULES.html.sh: Add inet_pton.
51086
51087         * modules/inet_pton: New file.
51088
51089 2006-06-21  Simon Josefsson  <jas@extundo.com>
51090
51091         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51092         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51093         of using the (limited) gnulib implementation on Windows XP.
51094
51095         * m4/inet_pton.m4: New file.
51096
51097 2006-06-21  Simon Josefsson  <jas@extundo.com>
51098
51099         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51100         variable.
51101
51102         * lib/socket_.h: Don't define WINVER.
51103
51104         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51105         slightly modified to work in gnulib.
51106
51107 2006-06-21  Simon Josefsson  <jas@extundo.com>
51108
51109         * doc/gnulib.texi (Windows sockets): Add.
51110
51111 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * lib/read-file.c (fread_file): Start with buffer allocation of
51114         0 bytes rather than 1 byte; this simplifies the code.
51115         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51116         code to free buffer and save/restore errno.
51117         (internal_read_file): Remove unused local.
51118
51119 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51122         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51123         Problem reported by Denis Excoffier in
51124         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51125
51126 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51127
51128         * modules/sys_socket, modules/socklen: Include sys/types since
51129         FreeBSD 4.x's sys/socket.h needs it.
51130
51131 2006-06-19  Simon Josefsson  <jas@extundo.com>
51132
51133         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51134
51135 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51136
51137         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51138
51139 2006-06-19  Bruno Haible  <bruno@clisp.org>
51140
51141         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51142         and FULL_PATH_INTTYPES_H in angle brackets.
51143         Reported by Mark D. Baushke <mdb@gnu.org>.
51144
51145 2006-06-17  Eric Blake  <ebb9@byu.net>
51146
51147         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51148         errno.
51149
51150 2006-06-17  Bruno Haible  <bruno@clisp.org>
51151
51152         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51153         <sys/inttypes.h>.
51154
51155 2006-06-17  Bruno Haible  <bruno@clisp.org>
51156
51157         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51158         whether errno is declared. Assume <errno.h> declares errno.
51159
51160 2006-06-17  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51163
51164 2006-06-17  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51167         problem on Solaris 2.5.1.
51168
51169 2006-06-16  Eric Blake  <ebb9@byu.net>
51170
51171         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51172         * lib/unicodeio.c [!defined errno]: Likewise.
51173         * lib/strtol.c [!defined errno]: Likewise.
51174         * lib/strtod.c [!defined errno]: Likewise.
51175
51176 2006-06-15  Eric Blake  <ebb9@byu.net>
51177
51178         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51179
51180 2006-06-15  Eric Blake  <ebb9@byu.net>
51181
51182         * config/srclist.txt (ssize_t.m4): Lose sync.
51183
51184 2006-06-15  Bruno Haible  <bruno@clisp.org>
51185
51186         * modules/stdint (Files): Include m4/full-header-path.m4,
51187         m4/size_max.m4, m4/wchar_t.m4.
51188         (Makefile.am): Many more substitutions.
51189         * modules/stdint-tests: New file.
51190         * tests/test-stdint.c: New file.
51191
51192 2006-06-15  Bruno Haible  <bruno@clisp.org>
51193
51194         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51195         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51196         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51197         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51198         gl_CHECK_TYPE_SAME): New macros.
51199
51200 2006-06-15  Bruno Haible  <bruno@clisp.org>
51201
51202         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51203
51204 2006-06-15  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/stdint_.h: Rewritten to be fully auto-configured.
51207         Fixes bug on HP-UX/IA64.
51208
51209 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51210
51211         * lib/getdate.y (__attribute__): Don't define if already defined.
51212         Problem reported by Larry Jones.
51213         * lib/utimens.c (__attribute__): Likewise.
51214
51215 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51216
51217         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51218         reported by Andreas Schwab.
51219
51220 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51221             Bruno Haible  <bruno@clisp.org>
51222
51223         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51224         check for the declaration of strnlen and a run test that exposes the
51225         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51226         rpl_strndup.
51227
51228 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51229             Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51232
51233 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51234
51235         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51236         compile test, for Tru64 4.0D.
51237
51238 2006-05-28  Karl Berry  <karl@gnu.org>
51239
51240         * config/srclist.txt (printf-args.c): lose sync.
51241
51242 2006-05-26  Martin Lambers  <marlam@marlam.de>
51243
51244         * lib/getpass.c: Updates the test for the native W32 API, and adds
51245         missing includes, thus fixing compilation warnings.
51246
51247 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51248
51249         * lib/exclude.c (exclude_fnmatch): New function.
51250         (excluded_file_name): Call exclude_fnmatch.
51251         * lib/exclude.h (excluded_file_name): New prototype
51252
51253 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51254
51255         * lib/tempname.c (small_open, large_open): New macros.
51256         (__open, __open64) [!_LIBC]: Remove.
51257         (__gen_tempname): Use small_open and large_open instead of __open
51258         and __open64.  This fixes a portability bug on HP-UX 11.11i
51259         reported by Simon Wing-Tang in
51260         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51261
51262 2006-05-24  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51265         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51266         Reported by Thorsten Maerz <torte@netztorte.de> via
51267         Aaron Stone <aaron@serendipity.cx>.
51268
51269 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51270
51271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51272         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51273         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51274         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51275         not really conditional on the cache.
51276         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51277
51278 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51281         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51282         (my_usleep): Don't mishandle maximum value.
51283
51284 2006-05-19  Jim Meyering  <jim@meyering.net>
51285
51286         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51287
51288 2006-05-17  Bruno Haible  <bruno@clisp.org>
51289
51290         Cygwin portability.
51291         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51292
51293 2006-05-17  Bruno Haible  <bruno@clisp.org>
51294
51295         * lib/stdint_.h: Fix recognition of Cygwin.
51296
51297 2006-05-15  Bruno Haible  <bruno@clisp.org>
51298
51299         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51300         on libtool patch by Ralf Wildenhues.
51301
51302 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51305         test for C99 conformance; (bool) 0.5 is an integer constant
51306         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51307         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51308
51309 2006-05-11  Simon Josefsson  <jas@extundo.com>
51310
51311         * m4/xvasprintf.m4: Fix obvious typo.
51312
51313 2006-05-11  Jim Meyering  <jim@meyering.net>
51314
51315         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51316         James Lemley.
51317
51318 2006-05-10  Simon Josefsson  <jas@extundo.com>
51319
51320         * lib/md4.c: Typo fix, update copyright years.
51321         (K1, K2): Don't use L because it turn computations into 64-bit on
51322         64-bit platforms.
51323
51324 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51327         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51328         unwanted sign propagation, e.g., on hosts with 64-bit int.
51329         There still are some problems with reeelly weird theoretical hosts
51330         (e.g., 33-bit int) but it's not worth worrying about now.
51331         * lib/sha1.c (rol): Likewise.
51332         (K1, K2, K3, K4): Remove unnecessary L suffix.
51333
51334 2006-05-10  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/des.c: Cast to avoid warnings.
51337
51338 2006-05-09  Bruno Haible  <bruno@clisp.org>
51339
51340         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51341         (Depends-on): Depend also on xsize, stdarg.
51342         (configure.ac): Add gl_XVASPRINTF.
51343
51344 2006-05-09  Bruno Haible  <bruno@clisp.org>
51345
51346         * m4/xvasprintf.m4: New file.
51347
51348 2006-05-09  Bruno Haible  <bruno@clisp.org>
51349
51350         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51351         (EOVERFLOW): Define fallback value.
51352         (xstrcat): New function.
51353         (xvasprintf): Recognize the special case of a string concatenation.
51354
51355 2006-05-08  Eric Blake  <ebb9@byu.net>
51356
51357         * gnulib-tool (func_version): Base copyright year on CVS date.
51358         (func_emit_copyright_notice): New function.
51359         (func_emit_lib_Makefile_am): Use it.
51360         (func_emit_tests_Makefile_am): Likewise.
51361         (func_import): Likewise.
51362
51363 2006-05-08  Bruno Haible  <bruno@clisp.org>
51364
51365         * modules/stdarg: New file.
51366         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51367
51368 2006-05-08  Bruno Haible  <bruno@clisp.org>
51369
51370         * m4/stdarg.m4: New file, from GNU gettext.
51371
51372 2006-05-08  Bruno Haible  <bruno@clisp.org>
51373
51374         * config/srclist.txt (build-aux/config.rpath): different from latest
51375         release.
51376
51377 2006-05-08  Bruno Haible  <bruno@clisp.org>
51378
51379         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51380
51381 2006-05-05  Jim Meyering  <jim@meyering.net>
51382
51383         * m4/warning.m4: New file, derived from bison's file by the same name.
51384
51385 2006-05-03  Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/stdint_.h: Shorter URL.
51388         * lib/inttypes.h: Likewise.
51389
51390 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51391
51392         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51393
51394 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51395
51396         * lib/verify.h: Document the internals better.  Most of this change
51397         was written by Bruno Haible.
51398
51399 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51400
51401         * doc/verify.texi: New file, partly based on a proposal by
51402         Bruno Haible.
51403
51404 2006-05-02  Bruno Haible  <bruno@clisp.org>
51405
51406         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
51407         test from here...
51408         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
51409
51410 2006-04-29  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
51413         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
51414
51415 2006-04-29  Bruno Haible  <bruno@clisp.org>
51416
51417         * gnulib-tool: Make --update option actually work.
51418
51419 2006-04-29  Bruno Haible  <bruno@clisp.org>
51420
51421         * doc/gcd.texi: New file.
51422         * doc/gnulib.texi: Include it.
51423
51424 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
51425
51426         * lib/getdate.y (get_date): When adding relative date, start with the
51427         initial time, not with the result of the first mktime call.
51428
51429 2006-04-25  Bruno Haible  <bruno@clisp.org>
51430
51431         * gnulib-tool (func_import): Output the include directives in three
51432         blocks, sorted separately.
51433         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51434
51435 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51436
51437         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
51438         to define main with arguments, for C++.  Reported by Eric Blake.
51439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51440         Prefer 'int main ()' to 'int main (void)', for C++.
51441         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
51442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
51443         for 'main', for C99 and C++.
51444
51445 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
51446
51447         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
51448         Don't assume that exit status -1 is valid.
51449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51450         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51451         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
51452         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
51453         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
51454         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
51455         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
51456         functions can be used without declaring them, or that you can
51457         exit with status -1.
51458         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
51459
51460 2006-04-24  Karl Berry  <karl@gnu.org>
51461
51462         * config/srclist.txt (longdouble.m4): sync lost.
51463
51464 2006-04-24  Eric Blake  <ebb9@byu.net>
51465
51466         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
51467
51468 2006-04-24  Bruno Haible  <bruno@clisp.org>
51469
51470         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
51471         poll() implementation in AIX.
51472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51473
51474 2006-04-24  Bruno Haible  <bruno@clisp.org>
51475
51476         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
51477         assigned exactly once.
51478
51479 2006-04-23  Claudio Fontana  <claudio@gnu.org>
51480             Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
51483         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
51484         for AM_CPPFLAGS.
51485
51486 2006-04-23  Bruno Haible  <bruno@clisp.org>
51487
51488         * modules/copy-file: Depend on unistd.
51489         * modules/execute: Likewise.
51490         * modules/fatal-signal: Likewise.
51491         * modules/findprog: Likewise.
51492         * modules/mkdtemp : Likewise.
51493         * modules/pipe: Likewise.
51494         * modules/wait-process: Likewise.
51495
51496 2006-04-23  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
51499         condition was already detected.
51500         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51501
51502 2006-04-23  Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/copy-file.c: Include <unistd.h> unconditionally.
51505         * lib/execute.c: Likewise.
51506         * lib/fatal-signal.c: Likewise.
51507         * lib/findprog.c: Likewise.
51508         * lib/mkdtemp.c: Likewise.
51509         * lib/pipe.h: Likewise.
51510         * lib/pipe.c: Likewise.
51511         * lib/wait-process.h: Likewise.
51512
51513 2006-04-23  Bruno Haible  <bruno@clisp.org>
51514
51515         * gnulib-tool (func_usage): Fix --import description. Document
51516         --update.
51517         (func_import): Create temporary file in a temporary directory, if
51518         --dry-run is specified. Silence errors from 'grep' when there are no
51519         m4 files in $m4dir.
51520         (func_create_testdir): Silence errors from 'grep' when there are no
51521         m4 files in $m4dir.
51522         Reported by Karl Berry <karl@freefriends.org>.
51523
51524 2006-04-20  Bruno Haible  <bruno@clisp.org>
51525
51526         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
51527         one argument, so that the code will be portable to Autoconf 2.60.
51528         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
51529         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51530         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
51531
51532 2006-04-19  Derek Price  <derek@ximbiot.com>
51533             Eric Blake  <ebb9@byu.net>
51534
51535         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
51536         rather than "/full/path.h".  Update comment to match.  Shorten &
51537         generalize m4_translit call via AS_TR_CPP.
51538
51539 2006-04-19  Derek Price  <derek@ximbiot.com>
51540             Eric Blake  <ebb9@byu.net>
51541
51542         * lib/inttypes.h: Correct grammar in comment.
51543
51544 2006-04-18  Derek Price  <derek@ximbiot.com>
51545             Paul Eggert  <eggert@cs.ucla.edu>
51546
51547         * modules/inttypes: New file.
51548         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
51549
51550 2006-04-18  Derek Price  <derek@ximbiot.com>
51551             Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
51554         New files.
51555
51556 2006-04-18  Derek Price  <derek@ximbiot.com>
51557             Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         * lib/inttypes.h: New file.
51560         * lib/strtoimax.c: Assume <inttypes.h>.
51561
51562 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
51563
51564         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
51565         isn't mounted.  Problem reported by Kir Kolyshkin.
51566
51567 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51568
51569         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
51570         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
51571         Derek R. Price.
51572         * lib/regex.h (RE_DUP_MAX): Update comment to match current
51573         implementation.
51574
51575 2006-04-12  Eric Blake  <ebb9@byu.net>
51576
51577         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
51578         is now done automatically by the corresponding Autoconf macro.
51579
51580 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
51581
51582         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
51583         time_r.h.
51584
51585 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51586
51587         Merge regex changes from libc, removing some of our
51588         POSIX-conformance changes that were rejected and redoing them in a
51589         less-intrusive way.
51590
51591         * lib/regcomp.c (re_compile_internal, init_dfa):
51592         Length arg is now size_t, not Idx.  All uses changed.
51593         (peek_token): Forward decl now says internal_function.
51594         (__re_error_msgid, __re_error_msgid_idx):
51595         Now static rather than extern with attribute_hidden.
51596         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
51597         For some reason libc prefers K&R style defns for external functions.
51598         (regerror) [!defined _LIBC]: Likewise.
51599         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
51600         (seek_collating_symbol_entry, lookup_collation_sequence_value):
51601         (build_range_exp, build_collating_symbol):
51602         Use K&R-style defn.
51603         (re_compile_fastmap): Use '\0' to memset, not 0.
51604         (utf8_sb_map): Make the calculations more obvious.
51605         (init_dfa, parse_bracket_exp, build_charclass_op):
51606         Call calloc and cast result, as glibc does.
51607         (init_word_char, fetch_token, peek_token, peek_token_bracket):
51608         (build_range_exp, build_collating_symbol):
51609         Now internal functions.
51610
51611         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
51612
51613         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
51614         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
51615         Don't depend on VMS; depend on __VMS instead, for POSIX
51616         namespace cleanness.
51617         (regoff_t): Define to ssize_t, not long int.
51618
51619         Remove the REG_ macros named below.  Instead, make the old names
51620         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
51621         __USE_GNU_REGEX.
51622         (REG_BACKSLASH_ESCAPE_IN_LISTS):
51623         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
51624         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
51625         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
51626         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
51627         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
51628         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
51629         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
51630         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
51631         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
51632         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
51633         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
51634         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
51635         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
51636         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
51637         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
51638         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
51639         (REG_NREGS):
51640         Remove.  All uses replaced by the old RE_* names.
51641         (RE_BACKSLASH_ESCAPE_IN_LISTS):
51642         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
51643         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
51644         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
51645         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
51646         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
51647         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
51648         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
51649         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
51650         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
51651         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
51652         Don't bother having these macros be independent of each others'
51653         values, since they no longer exist in the POSIX name space.
51654
51655         Rename the following member names back to their old names,
51656         unless !__USE_GNU_REGEX.  All uses changed back.
51657         (buffer): Renamed from re_buffer.
51658         (allocated): Renamed from re_allocated.
51659         (used): Renamed from re_used.
51660         (syntax): Renamed from re_syntax.
51661         (fastmap): Renamed from re_fastmap.
51662         (translate): Renamed from re_translate.
51663         (can_be_null): Renamed from re_can_be_null.
51664         (regs_allocated): Renamed from re_regs_allocated.
51665         (fastmap_accurate): Renamed from re_fastmap_accurate.
51666         (no_sub): Renamed from re_no_sub.
51667         (not_bol): Renamed from re_not_bol.
51668         (not_eol): Renamed from re_not_eol.
51669         (newline_anchor): Renamed from re_newline_anchor.
51670         (num_regs): Renamed from rm_num_regs.
51671         (start): Renamed from rm_start.
51672         (end): Renamed from rm_end.
51673
51674         (free_state): Move up a bit.
51675
51676         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
51677         #define to be empty.
51678         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
51679         when that is what is intended.
51680         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
51681         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
51682         (MAX): New macro.
51683         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
51684         All uses changed back to re_malloc, etc.  It's now the caller's
51685         responsibility to check for overflow; all callers changed.
51686         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
51687         (re_x2nrealloc): Remove.
51688         (free_state): Remove decl.
51689
51690         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
51691         (re_set_registers, re_exec):
51692         Use K&R-style defn.
51693
51694         2006-01-31  Roland McGrath  <roland@redhat.com>
51695
51696         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
51697         Reported by Mike Frysinger <vapier@gentoo.org>.
51698
51699         2006-01-15  Andreas Jaeger  <aj@suse.de>
51700
51701         [BZ #1950]
51702         * lib/regex_internal.c (re_string_reconstruct): Adjust for
51703         build_wcs_upper_buffer change.
51704         (build_wcs_upper_buffer): Change return type.
51705
51706         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
51707
51708         * lib/regex_internal.h: Include <stdint.h> if available.
51709
51710         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
51711
51712         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
51713
51714         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51715
51716         * lib/regcomp.c: Adjust for changed secondary hash function.
51717
51718         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
51719
51720         * lib/regex.h: Pretty printing.
51721         Clean up namespace a bit.
51722
51723         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
51724
51725         * lib/regexec.c (update_cur_sifted_state, check_arrival,
51726         check_arrival_add_next_nodes): Avoid using uninitialized variable.
51727
51728         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51729                     Ulrich Drepper  <drepper@redhat.com>
51730
51731         [BZ #1302]
51732         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
51733         changed.
51734         (bitset_word_t): Renamed from bitset_word.  All uses changed.
51735
51736         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
51737
51738         [BZ #281]
51739         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
51740         * lib/regcomp.c: Remove unnecessary uses of
51741         unsigned RE_TRANSLATE_TYPE.
51742         * lib/regex_internal.h: Likewise.
51743         * lib/regex_internal.c: Likewise.
51744         * lib/regexec.c: Likewise.
51745         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
51746
51747         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
51748
51749         * lib/regexec.c (find_recover_state): Remove unnecessary
51750         initialization.
51751         (transit_state_bkref): Make DFA a const pointer.
51752         (get_subexp): Likewise.
51753         (check_arrival): Likewise.
51754         (update_cur_sifted_state): Likewise.
51755         (re_search_internal): Likewise.
51756         (prune_impossible_nodes): Likewise.
51757         (acquire_init_state_context): Likewise.
51758         (proceed_next_node): Likewise.
51759         (set_regs): Likewise.
51760         (free_fail_stack_return): Likewise.
51761         (check_arrival_expand_ecl): Mark DFA parameter as const.
51762         (check_arrival_expand_ecl_sub): Likewise.
51763         (check_subexp_limits): Likewise.
51764         (sub_epsilon_src_nodes):  Likewise.
51765         (add_epsilon_src_nodes):  Likewise.
51766         (merge_state_array): Likewise.
51767         (update_regs): Likewise.
51768         (build_trtable): Likewise.
51769         (sift_states_backward): Mark MCTX parameter as const.
51770         (build_sifted_states): Likewise.
51771         (update_cur_sifted_state): Likewise.
51772         (sift_states_mkref): Likewise.
51773         (check_arrival_expand_ecl): Mark eclosure as const.
51774         (check_dst_limits_calc_pos_1): Likewise.
51775         * lib/regex_internal.h (re_match_context_t): Make dfa a const
51776         pointer.
51777
51778         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
51779
51780         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
51781         (transit_state_sb): Likewise.
51782         (transit_state_mb): Likewise.
51783         (sift_states_iter_mb): Likewise.
51784         (check_arrival_add_next_nodes): Likewise.
51785         (check_node_accept_bytes): Change first parameter to pointer-to-const.
51786         [_LIBC] (re_search_2_stub): Use mempcpy.
51787
51788         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
51789         mbrtowc for very simple UTF-8 case.
51790
51791         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
51792         a pointer-to-const.
51793         (re_acquire_state_context): Likewise.
51794         * lib/regex_internal.h: Adjust prototypes.
51795
51796         * lib/regex.c: Prevent using C++ compilers.
51797
51798         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
51799         (re_acquire_state_context): Likewise.
51800
51801 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         * modules/regex (Depends-on): Add ssize_t.
51804
51805 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51806
51807         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
51808         translation table.
51809
51810 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51811
51812         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
51813
51814 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
51815             Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
51818         <sys/types.h> and <inttypes.h>.
51819
51820 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51821
51822         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
51823         `__error_t_defined', so argp.h will not typedef the former.
51824
51825 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
51826
51827         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
51828         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
51829         glibc names.  Even if glibc is changed to conform to POSIX, the
51830         traditional names will be available anyway, since regex depends on
51831         the extensions module.  Also, fix a longstanding typo in the
51832         implementation of Spencer ERE test #75 from grep 2.3.  Problems
51833         reported by Emanuele Giaquinta.  Also, change sense of cached
51834         variable, so that the message makes sense.
51835
51836 2006-03-24  Simon Josefsson  <jas@extundo.com>
51837
51838         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
51839         including some doc fixes.
51840         (base64_encode_alloc): Fix +1 bug on allocation failures.
51841
51842 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51843
51844         * lib/base64.c (base64_encode): Do not read past end of array with
51845         unsanitized input on systems with CHAR_BIT > 8.
51846
51847 2006-03-24  Eric Blake  <ebb9@byu.net>
51848
51849         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
51850
51851 2006-03-22  Karl Berry  <karl@gnu.org>
51852
51853         * config/srclist.txt (*setenv.[ch]): get from coreutils.
51854         * config/srclistvars.sh (COREUTILS): new var.
51855
51856 2006-03-17  Jim Meyering  <jim@meyering.net>
51857
51858         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
51859         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
51860
51861 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51862
51863         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
51864         no longer needs it.  Instead, check that regoff_t is as least
51865         as wide as ptrdiff_t.
51866
51867         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
51868         so that our regex.h stays compatible with the installed regex.
51869         This is helpful for installers who configure --without-included-regex.
51870         Problem reported by Emanuele Giaquinta.
51871
51872 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
51875         Typedef to long int, not to off_, as POSIX will likely change
51876         in that direction.
51877
51878 2006-03-15  Eric Blake  <ebb9@byu.net>
51879
51880         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
51881
51882 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51883
51884         * lib/argp-help.c (validate_uparams): Fix typo
51885         * lib/argp-parse.c (argp_default_options): Consistently begin help
51886         messages with a lowercase letter.
51887
51888 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
51891         overrun buffers and shouldn't be used (much as gets shouldn't be
51892         used).
51893         * lib/time_r.c (asctime_r, ctime_r): Likewise.
51894
51895 2006-03-08  Simon Josefsson  <jas@extundo.com>
51896
51897         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
51898         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51899
51900 2006-03-08  Simon Josefsson  <jas@extundo.com>
51901
51902         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
51903         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51904
51905 2006-03-08  Simon Josefsson  <jas@extundo.com>
51906
51907         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
51908         signal that configure disabled the device.
51909
51910 2006-03-08  Simon Josefsson  <jas@extundo.com>
51911
51912         * build-aux/maint.mk: Fix refresh-po, to handle no translated
51913         languages.
51914
51915 2006-03-07  Simon Josefsson  <jas@extundo.com>
51916
51917         * modules/getopt (Depends-on): Add unistd.
51918
51919         * modules/unistd: New file.
51920
51921 2006-03-07  Simon Josefsson  <jas@extundo.com>
51922
51923         * modules/gc-random: New file.
51924
51925 2006-03-07  Simon Josefsson  <jas@extundo.com>
51926
51927         * m4/unistd_h.m4: New file.
51928
51929 2006-03-07  Simon Josefsson  <jas@extundo.com>
51930
51931         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
51932         test to be side-effect free by storing the result in the cache
51933         variable gl_cv_lib_readline, and moving the assignment of
51934         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
51935         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51936
51937 2006-03-07  Simon Josefsson  <jas@extundo.com>
51938
51939         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
51940         error on missing devices (the functions will return an error).
51941
51942         * m4/gc.m4: Move random stuff to gc-random.m4
51943
51944 2006-03-07  Simon Josefsson  <jas@extundo.com>
51945
51946         * lib/unistd_.h: New file.
51947
51948 2006-03-07  Simon Josefsson  <jas@extundo.com>
51949
51950         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
51951
51952 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51953
51954         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
51955         Problem reported by Juan Manuel Guerrero.
51956
51957 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51958
51959         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
51960         the unistd module.
51961         * lib/getlogin_r.c: Likewise.
51962         * lib/getlogin_r.h: Likewise.
51963         * lib/glob.c: Likewise.
51964         * lib/pagealign_alloc.c: Likewise.
51965         * lib/unistd_.h: Remove; no longer needed.
51966
51967 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51968
51969         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51970         Add unistd.
51971         * modules/c-stack (Depends-on): Add unistd.
51972         * modules/getlogin_r: Likewise.
51973         * modules/glob: Likewise.
51974         * modules/pagealign_alloc: Likewise.
51975         * modules/unistd (Files): Remove lib/unistd_.h.
51976         (EXTRA_DIST): Remove.
51977         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51978         need unistd_.h.
51979         (MOSTLYCLEANFILES): Remove unistd.h-t.
51980
51981 2006-03-03  Simon Josefsson  <jas@extundo.com>
51982
51983         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51984
51985 2006-03-03  Simon Josefsson  <jas@extundo.com>
51986
51987         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51988         libidn and bison.
51989
51990 2006-03-03  Simon Josefsson  <jas@extundo.com>
51991
51992         * build-aux/maint.mk: Add indent target.
51993
51994 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51995
51996         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51997         our replacement poll.h in any case, to avoid a differing
51998         declaration from a system header.  Seen on AIX.
51999
52000 2006-03-01  Simon Josefsson  <jas@extundo.com>
52001
52002         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52003         <kasal@ucw.cz>.
52004
52005 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52006
52007         * modules/gettime (Depends-on): Add extensions module.
52008         * modules/nanosleep (Depends-on): Likewise.
52009         * modules/settime (Depends-on): Likewise.
52010
52011 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52014         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52015         pedantically.
52016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52017         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52018
52019         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52020         not "==".  Reported by Ralf Wildenhues.
52021
52022 2006-03-01  Karl Berry  <karl@gnu.org>
52023
52024         * doc/Copyright/request-*: new files, synced from gnuorg.
52025
52026 2006-03-01  Karl Berry  <karl@gnu.org>
52027
52028         * config/srclist.txt (Copyright/*): new entries.
52029
52030 2006-02-28  Simon Josefsson  <jas@extundo.com>
52031
52032         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52033
52034 2006-02-27  Simon Josefsson  <jas@extundo.com>
52035
52036         * lib/base64.h: Indent #define's.  From Jim Meyering
52037         <jim@meyering.net>.
52038
52039 2006-02-27  Jim Meyering  <jim@meyering.net>
52040
52041         Revert the change of 2006-02-24, so these files can continue
52042         to be sync'd from gettext.
52043         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52044         of `config.h'.
52045
52046 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52047
52048         * modules/intprops: New file.
52049         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52050         Add intprops.
52051         * modules/getloadavg (Files): Remove lib/intprops.h.
52052         (Depends-on): Add intprops.
52053         * modules/human: Likewise.
52054         * modules/inttostr: Likewise.
52055         * modules/openat: Likewise.
52056         * modules/sig2str: Likewise.
52057         * modules/userspec: Likewise.
52058         * modules/utimecmp: Likewise.
52059         * modules/xnanosleep: Likewise.
52060         * modules/xstrtol: Likewise.
52061
52062 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52063
52064         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52065         * modules/lock-tests (TESTS): Use $(EXEEXT).
52066         * modules/tls-tests: Likewise.
52067         * modules/argp-tests: Likewise.
52068         (check_PROGRAMS): New var, replacing...
52069         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52070
52071 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52072
52073         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52074         `config.h'.
52075
52076 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52079
52080 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52081
52082         Sync from coreutils.
52083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52084         gl_CHDIR_SAFER.
52085
52086 2006-02-22  Jim Meyering  <jim@meyering.net>
52087
52088         Sync from coreutils.
52089         * m4/chdir-safer.m4: New file.
52090
52091 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52092
52093         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52094         AT_FDCWD exceeds INT_MAX.
52095         * lib/openat.h (AT_FDCWD): Likewise.
52096
52097 2006-02-17  Eric Blake  <address@hidden>
52098
52099         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52100
52101 2006-02-16  Simon Josefsson  <jas@extundo.com>
52102
52103         * modules/getaddrinfo (Depends-on): Add sys_socket.
52104
52105 2006-02-15  Simon Josefsson  <jas@extundo.com>
52106
52107         * build-aux/maint.mk: Add dsyntax-check rule.
52108
52109 2006-02-15  Eric Blake  <ebb9@byu.net>
52110
52111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52112         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52113         'present but cannot compile' warnings on cygwin.
52114         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52115         use ws2tcpip.h if sys/socket.h works.
52116         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52117         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52118
52119 2006-02-14  Simon Josefsson  <jas@extundo.com>
52120
52121         * modules/maintainer-makefile (Files): Rename.
52122
52123         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52124         and (the local) Makefile.cfg to maint-cfg.mk.
52125
52126         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52127         to the latter.
52128
52129         * modules/maintainer-makefile: New module.
52130
52131         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52132         severaly stripped to make it possible to build it up from scratch
52133         with reliable tests.
52134
52135         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52136         fixes to permit overriding the default actions when configure and
52137         makefile are not available.
52138
52139 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52140
52141         Sync from coreutils.
52142         * modules/lstat (Depends-on): Don't depend on xalloc.
52143         (License): Change from GPL to LGPL, since this is now simply a
52144         replacement for a libc function.
52145
52146 2006-02-14  Jim Meyering  <jim@meyering.net>
52147
52148         Sync from coreutils.
52149
52150         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52151         failure on deficient systems, and simplify gnulib lgpl dependencies.
52152         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52153         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52154
52155         * lib/xalloc-die.c: Remove unused definition of N_.
52156
52157 2006-02-14  Jim Meyering  <jim@meyering.net>
52158
52159         Sync from coreutils.
52160         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52161         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52162         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52163         double-quote uses of that variable, to accommodate the rare case in
52164         which getmntent is available in none of the libraries checked.  This
52165         happens at least on FreeBSD 5.0.
52166
52167 2006-02-13  Simon Josefsson  <jas@extundo.com>
52168
52169         * gnulib-tool (Usage): Fix --import, from
52170         karl@freefriends.org (Karl Berry).
52171
52172 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52173
52174         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52175
52176 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52177
52178         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52179         "autoupdate" on 2005-12-12.
52180
52181 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52182
52183         * modules/closeout (Depends-on): Remove atexit.
52184
52185 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52186
52187         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52188         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52189
52190 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52191
52192         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52193         __EXTENSIONS__ if this causes compilation to fail.  Problem
52194         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52195         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52196
52197 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52198
52199         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52200         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52202         All uses changed.
52203
52204 2006-01-26  Simon Josefsson  <jas@extundo.com>
52205
52206         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52207         prototype is visible on mingw32.
52208
52209         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52210         for mingw32.
52211
52212         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52213         mingw32).
52214
52215 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52216
52217         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52218         attempt to open for write; this always fails, at least on POSIX
52219         hosts.  This reinstates the 2006-01-09 change, which was
52220         inadvertently removed.
52221
52222 2006-01-26  Bruno Haible  <bruno@clisp.org>
52223
52224         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52225         Reported by Paul Eggert.
52226
52227 2006-01-26  Bruno Haible  <bruno@clisp.org>
52228             Paul Eggert  <eggert@cs.ucla.edu>
52229
52230         * lib/stdbool_.h (_Bool)
52231         [(! (defined __cplusplus || defined __BEOS__)
52232           && !defined __GNUC__
52233           && !(defined __HP_cc || defined __xlc__
52234                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52235                || defined __sgi))]:
52236         #define to signed char in these cases too; this simplifies
52237         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52238         etc., separately) and makes it more conservative.
52239
52240 2006-01-25  Simon Josefsson  <jas@extundo.com>
52241
52242         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52243         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52244         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52245
52246 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52247
52248         * lib/argp-namefrob.h: Bugfix. Remove stray #
52249
52250 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52251
52252         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52253         so that we test the test.
52254         Check for yet another HP-UX cc bug involving *bool |= bool.
52255
52256 2006-01-25  Karl Berry  <karl@gnu.org>
52257
52258         * config/srclist.txt (vasnprintf.c): sync lost.
52259
52260 2006-01-25  Jim Meyering  <jim@meyering.net>
52261
52262         Sync from the stable (b5) branch of coreutils:
52263
52264         * lib/fts.c (fts_children): Don't let close() clobber errno from
52265         failed fchdir().
52266
52267         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52268         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52269         a dangling symlink.  That can also happen at least for ELOOP.
52270         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52271         FYI, this bug predates the inclusion of fts.c in coreutils.
52272
52273         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52274         in their own block, so pre-c99 compilers don't object.
52275
52276         Avoid the double-free (first in fts_read, second in fts_close) that
52277         would occur when an `active' directory is made inaccessible (e.g.,
52278         via chmod a-x) during a traversal.
52279         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52280         before returning.  Reproduce this failure by
52281         mkdir -p a/b; cd a; chmod a-x . b
52282         Reported by Stavros Passas.
52283
52284 2006-01-25  Jim Meyering  <jim@meyering.net>
52285
52286         * lib/fileblocks.c: Remove more useless parentheses.
52287         * lib/readutmp.h: Likewise.
52288
52289 2006-01-25  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52292         warnings.
52293         Reported by Paul Eggert.
52294
52295 2006-01-25  Bruno Haible  <bruno@clisp.org>
52296
52297         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52298         rid of a trap command. For Solaris sh.
52299         Reported by Mark D. Baushke <mdb@gnu.org>.
52300
52301 2006-01-24  Simon Josefsson  <jas@extundo.com>
52302
52303         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52304         Bruno.
52305
52306 2006-01-24  Karl Berry  <karl@gnu.org>
52307
52308         * config/srclist.txt (argp-namefrob.h): sync lost.
52309
52310 2006-01-24  Jim Meyering  <jim@meyering.net>
52311
52312         * modules/openat (Files): Add lib/intprops.h.
52313         From Mark D. Baushke.
52314
52315 2006-01-24  Jim Meyering  <jim@meyering.net>
52316
52317         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52318         Reported by Mark D. Baushke.
52319
52320 2006-01-24  Jim Meyering  <jim@meyering.net>
52321
52322         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52323
52324 2006-01-24  Bruno Haible  <bruno@clisp.org>
52325
52326         * modules/strnlen (Maintainer): Change from glibc to all.
52327
52328 2006-01-24  Bruno Haible  <bruno@clisp.org>
52329
52330         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52331         Patch by Paul Eggert.
52332
52333 2006-01-24  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52336         already has it.
52337         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52338         2005-11-26.
52339
52340         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52341         'signed char' to avoid problems with the built-in _Bool type.
52342         Reported by Paul Eggert on 2005-11-26.
52343
52344 2006-01-24  Bruno Haible  <bruno@clisp.org>
52345
52346         * gnulib-tool (func_import): Avoid constructing complicated sed
52347         expressions inside backquote.
52348         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52349
52350 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52351
52352         These changes imported from libc.
52353         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52354         test and two separate function calls.
52355         * lib/strndup.c (__strndup): Add libc_hidden_def.
52356
52357 2006-01-23  Simon Josefsson  <jas@extundo.com>
52358
52359         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52360         Remove the test_*_SOURCES variable: automake infers it by default.
52361         * modules/tls-tests: Likewise.
52362
52363 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52364
52365         Work around porting bugs reported by Dieter in
52366         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52367         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52368         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52369         Include "getopt.h" first, to check interface.
52370         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52371         !HAVE_DECL_GETENV.
52372         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52373         (__strndup): Revert to K&R-style function dfns, the glibc style.
52374         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52375         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52376         Include strnlen.h first, to get prototype properly.
52377         (strnlen): Renamed from __strnlen.
52378         Remove weak alias.
52379
52380 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52381
52382         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52383
52384 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52385
52386         * config/srclist.txt: Adjust to reflect glibc reorganization.
52387         This affects only comments.
52388
52389 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52390
52391          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52392          Reported by Bruce Korb <bkorb@gnu.org>.
52393
52394 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52397         to pacify gcc -Wswitch-default.
52398
52399 2006-01-22  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52402         temporary buffer for sprintf, take into account the precision also
52403         for 'd', 'i', 'u', 'o', 'x', 'X'.
52404
52405 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52406
52407         * modules/argp-tests: New module
52408         * tests/test-argp.c: New file
52409         * tests/test-argp-2.sh: New file
52410
52411 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
52412
52413         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
52414         (__argp_base_name): Removed
52415         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
52416         typo.
52417         (__argp_base_name): Provide macro definition or extern declaration
52418         depending on the configuration
52419
52420 2006-01-20  Simon Josefsson  <jas@extundo.com>
52421
52422         * modules/inet_ntop (Depends-on): Depend on sys_socket.
52423
52424 2006-01-20  Simon Josefsson  <jas@extundo.com>
52425
52426         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
52427
52428 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52429
52430         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
52431         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
52432         Suggested by Bruno Haible.
52433
52434 2006-01-20  Karl Berry  <karl@gnu.org>
52435
52436         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
52437         until changes propagate, I guess.
52438
52439 2006-01-19  Simon Josefsson  <jas@extundo.com>
52440
52441         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
52442
52443 2006-01-19  Simon Josefsson  <jas@extundo.com>
52444
52445         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
52446
52447 2006-01-19  Simon Josefsson  <jas@extundo.com>
52448
52449         * gnulib-tool: Set check_PROGRAMS.
52450
52451         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52452         modules/des-tests, modules/gc-arcfour-tests,
52453         modules/gc-arctwo-tests, modules/gc-des-tests,
52454         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52455         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52456         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52457         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52458         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52459         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
52460         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
52461         test_*_SOURCES.
52462
52463 2006-01-18  Simon Josefsson  <jas@extundo.com>
52464
52465         * modules/socklen (Depends-on): Depend on sys_socket.
52466
52467 2006-01-18  Simon Josefsson  <jas@extundo.com>
52468
52469         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
52470         modules/des-tests, modules/gc-arcfour-tests,
52471         modules/gc-arctwo-tests, modules/gc-des-tests,
52472         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
52473         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
52474         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
52475         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
52476         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
52477         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
52478         $(EXEEXT) to automake TESTS variable, for mingw32.
52479
52480 2006-01-17  Simon Josefsson  <jas@extundo.com>
52481
52482         * modules/socklen (Include): Need sys/socket.h.
52483
52484 2006-01-17  Bruno Haible  <bruno@clisp.org>
52485
52486         * modules/ssize_t (Include): Add <sys/types.h>.
52487
52488 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
52491         it's not portable and it doesn't work with cross-compiles.
52492         Problem reported by Bruno Haible.  Fix missing-$ typo in
52493         'test "gl_cv_ignore_unused_libraries" ...' that prevented
52494         -zignore from being used with Sun's C compiler.
52495
52496 2006-01-12  Simon Josefsson  <jas@extundo.com>
52497
52498         * lib/base64.c: Fix warning, reported by Bruno Haible
52499         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
52500
52501 2006-01-12  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/ldd: New file.
52504         * build-aux/ldd.sh.in: New file.
52505         * MODULES.html.sh (Support for building libraries and executables): Add
52506         ldd.
52507
52508 2006-01-12  Bruno Haible  <bruno@clisp.org>
52509
52510         * m4/ldd.m4: New file.
52511
52512 2006-01-12  Bruno Haible  <bruno@clisp.org>
52513
52514         * gnulib-tool (func_import, func_create_testdir): Don't go into an
52515         endless loop while replacing $auxdir with build-aux.
52516
52517 2006-01-11  Simon Josefsson  <jas@extundo.com>
52518
52519         * lib/stdint_.h (SIZE_MAX): Add missing (.
52520
52521 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         Sync from coreutils.
52524         * lib/md5.c: Fix commentary typos.
52525         (alignof, UNALIGNED_P): No need for a GCC-specific version.
52526         * lib/md5.h (__attribute__): Remove; unused.
52527         * lib/sha1.c: Fix commentary to match md5 better.
52528         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
52529         so that we don't need to worry about alignment.  All uses changed.
52530         This merges the 2005-10-28 md5 change into sha1.
52531
52532 2006-01-11  Jim Meyering  <jim@meyering.net>
52533
52534         Sync from coreutils.
52535         * lib/md5.c (OP): Fix spacing.
52536
52537 2006-01-11  Bruno Haible  <bruno@clisp.org>
52538
52539         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52540         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
52541         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
52542
52543 2006-01-11  Bruno Haible  <bruno@clisp.org>
52544
52545         Ensure automatic ordering between gl_LOCK and gl_ARGP.
52546         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
52547         the "early" section as well.
52548
52549 2006-01-11  Bruno Haible  <bruno@clisp.org>
52550
52551         Avoid "ar: no archive members specified" error on MacOS X.
52552         * gnulib-tool (func_modules_add_dummy): New function.
52553         (func_import, func_create_testdir): Invoke it.
52554
52555 2006-01-11  Bruno Haible  <bruno@clisp.org>
52556
52557         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
52558         with $auxdir in AC_CONFIG_FILES statements.
52559
52560 2006-01-11  Bruno Haible  <bruno@clisp.org>
52561
52562         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52563         Initialize also noinst_HEADERS to empty.
52564
52565 2006-01-11  Bruno Haible  <bruno@clisp.org>
52566
52567         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
52568         variables.
52569         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
52570         autoreconf.
52571
52572 2006-01-11  Bruno Haible  <bruno@clisp.org>
52573
52574         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
52575         overridable by the user.
52576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52577
52578 2006-01-10  Simon Josefsson  <jas@extundo.com>
52579
52580         * modules/sys_socket: New file.
52581
52582 2006-01-10  Simon Josefsson  <jas@extundo.com>
52583
52584         * m4/sys_socket_h.m4: New file.
52585
52586 2006-01-10  Simon Josefsson  <jas@extundo.com>
52587
52588         * lib/socket_.h: New file.
52589
52590 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52591
52592         * modules/readutmp (Maintainer): Add myself.
52593
52594 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
52597         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
52598         People who are still concerned with buggy memcmp implementations
52599         can invoke gl_FUNC_MEMCMP themselves.
52600
52601 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * lib/regex_internal.h (BITSET_WORD_BITS):
52604         Work around a bug in 64-bit PGC (before version 6.1-2), where the
52605         preprocessor mishandles large unsigned values as if they were signed.
52606         Problem reported by Claudio Fontana in
52607         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
52608
52609 2006-01-10  Jim Meyering  <jim@meyering.net>
52610
52611         Avoid the double-free (first in fts_read, second in fts_close) that
52612         would occur when an `active' directory is made inaccessible (e.g.,
52613         via chmod a-x) during a traversal.
52614         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52615         before returning.  Reproduce this failure by
52616         mkdir -p a/b; cd a; chmod a-x . b
52617         Reported by Stavros Passas.
52618
52619         Sync from coreutils.
52620         * lib/sha1.c: Tweak grammar in a comment.
52621
52622 2006-01-10  Jim Meyering  <jim@meyering.net>
52623
52624         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
52625         Patch by Joerg Sonnenberger.
52626
52627 2006-01-10  Bruno Haible  <bruno@clisp.org>
52628
52629         * modules/readutmp: Depend on module free.
52630         * modules/strtok_r: Depend on module restrict.
52631
52632 2006-01-10  Bruno Haible  <bruno@clisp.org>
52633
52634         * modules/gettext (configure.ac): Add an invocation of
52635         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
52636
52637 2006-01-10  Bruno Haible  <bruno@clisp.org>
52638
52639         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
52640         Reported by Werner Lemberg <wl@gnu.org>.
52641
52642 2006-01-10  Bruno Haible  <bruno@clisp.org>
52643
52644         * lib/localcharset.c: Update from GNU gettext.
52645
52646 2006-01-10  Bruno Haible  <bruno@clisp.org>
52647
52648         * lib/argp.h (__const): Remove macro. Use const instead.
52649         * lib/argp-fmtstream.h (__const): Likewise.
52650         * lib/glob_.h (__const): Remove macro.
52651         * lib/glob-libc.h: Use const instead of __const.
52652
52653 2006-01-10  Bruno Haible  <bruno@clisp.org>
52654
52655         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
52656         variable.
52657         Needed to avoid an automake error regarding the 'gettext' module.
52658
52659 2006-01-09  Simon Josefsson  <jas@extundo.com>
52660
52661         * modules/inet_ntop (Depends-on): Add restrict.
52662
52663 2006-01-09  Simon Josefsson  <jas@extundo.com>
52664
52665         * modules/gc-rijndael-tests (License): Put under LGPL.
52666
52667         * modules/gc-des-tests (License): Likewise.
52668
52669         * modules/gc-arcfour-tests (License): Likewise.
52670
52671         * modules/gc-arctwo-tests (License): Likewise.
52672
52673         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
52674
52675         * modules/gc-hmac-sha1-tests (Files): Likewise.
52676
52677         * modules/gc-hmac-md5-tests (License): Likewise.
52678
52679         * modules/gc-sha1-tests (License): Likewise.
52680
52681         * modules/gc-md5-tests (License): Likewise.
52682
52683         * modules/gc-md4-tests (License): Likewise.
52684
52685         * modules/gc-md2-tests (License): Likewise.
52686
52687         * modules/gc-tests (License): Likewise.
52688
52689         * modules/des-tests (License): Likewise.
52690
52691         * modules/md4-tests (License): Likewise.
52692
52693         * modules/md2-tests (License): Likewise.
52694
52695 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52696
52697         Sync from coreutils:
52698
52699         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
52700         * modules/lib-ignore: New file.
52701         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
52702         chdir-safer.m4, lchmod.m4.
52703         * modules/openat: Add mkdirat.c, openat-priv.h.
52704
52705 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52706
52707         Sync from coreutils.
52708         * m4/lib-ignore.m4: New file.
52709         * m4/lchmod.m4: New file.
52710
52711 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52712
52713         Sync from coreutils.
52714         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
52715         for write access: POSIX says that must fail.
52716         * lib/fts.c (diropen): Likewise.
52717         * lib/save-cwd.c (save_cwd): Likewise.
52718         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
52719         well, for minor improvements on hosts that lack O_DIRECTORY.
52720         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
52721         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
52722         Fall back on chown if open failed with EACCES.
52723
52724         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
52725         Report an error at compile-time if only a 1-second nominal clock
52726         resolution is found.
52727
52728         * lib/lchmod.h: New file.
52729         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
52730         (make_dir_parents): Use lchown rather than chown, and
52731         lchmod rather than chmod.
52732
52733         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
52734         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
52735         "proc" reported by n0dalus.
52736
52737         * lib/mountlist.c: Include <limits.h>.
52738         (dev_from_mount_options)
52739         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
52740         New function.  It no longer assumes "dev=" has the System V meaning
52741         on Linux (since it doesn't).  It also parses "dev=" more carefully.
52742         (read_file_system_list)
52743         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
52744         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
52745         dev= in that case.
52746
52747         * lib/posixtm.h (PDS_PRE_2000): New macro.
52748         * lib/posixtm.c (year): Arg is now syntax_bits rather than
52749         allow_century.  All usages changed.  Reject dates outside the range
52750         1969-1999 if PDS_PRE_2000 is used.
52751
52752 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52753
52754         Sync from coreutils.
52755         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
52756         (Time of day items): Mention the possibility of leap seconds.
52757         Problem reported by Dr. David Alan Gilbert.
52758
52759 2006-01-09  Jim Meyering  <jim@meyering.net>
52760
52761         Sync from coreutils.
52762
52763         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
52764
52765         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
52766
52767         * lib/modechange.c (mode_compile): Reject an invalid mode string
52768         that starts with an octal digit.  From Andreas Gruenbacher.
52769
52770         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
52771         and dup to open_safer and dup_safer, respectively.
52772         (openat_permissive): Fix typo in comment.
52773
52774         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
52775         "gettext.h"; either no longer needed or are guaranteed by openat.h.
52776         (_): Remove; no longer needed.
52777         (openat): Renamed from rpl_openat; no need for rpl_openat
52778         since openat.h renames openat for us.
52779         Replace most of the body with a call to openat_permissive,
52780         to avoid duplicate code.
52781         Port to (probably hypothetical) environments were mode_t is
52782         wider than int.
52783         (openat_permissive): Require mode arg, so that we can check
52784         types better.  Put it just after flags.  Change cwd failure
52785         indicator from pointer-to-bool to pointer-to-errno-value.
52786         All callers changed.
52787         Invoke openat_save_fail and/or openat_restore_fail if
52788         cwd_errno is null, so that openat can call us.
52789         (openat_permissive, fdopendir, fstatat, unlinkat):
52790         Simplify errno handling to avoid some duplicate code,
52791         as it's OK to set errno on success.
52792         * lib/openat.h: Revamp code so that function macros depend on
52793         __OPENAT_PREFIX only, not also on AT_FDCWD.
52794         (openat_ro): Remove.  Caller changed to use openat_permissive.
52795         (openat_permissive): Now a macro, if not a function.
52796         (openat_restore_fail, openat_save_fail): Now always functions,
52797         since mkdirat needs them even if __OPENAT_PREFIX is defined.
52798
52799         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
52800         and openat.c.
52801         * lib/mkdirat.c: Include openat-priv.h.
52802         Remove definitions of macros defined therein.
52803         * lib/openat.c: Likewise.
52804
52805         * lib/mkdirat.c (mkdirat): New file and function.
52806         * lib/openat.h (mkdirat): Declare.
52807
52808         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
52809
52810         * lib/openat.h (openat_permissive): Declare.
52811         (openat_ro): Define.
52812
52813         * lib/openat.c (EXPECTED_ERRNO): New macro.
52814         (openat_permissive): New function -- used in remove.c rewrite.
52815         (all functions): Set errno just before returning, only if there
52816         was an actual failure.
52817         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
52818
52819         Emulate openat-family functions using Linux's procfs, if possible.
52820         Idea and some code based on Ulrich Drepper's glibc changes.
52821
52822         * lib/openat.c: (BUILD_PROC_NAME): New macro.
52823         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
52824         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
52825         before falling back on save_cwd and restore_cwd.
52826         (fdopendir, fstatat, unlinkat): Likewise.
52827
52828         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
52829         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
52830
52831         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
52832         as second argument to va_arg.  Otherwise, some versions of gcc
52833         warn that `if this code is reached, the program will abort'.
52834
52835 2006-01-09  Jim Meyering  <jim@meyering.net>
52836
52837         Sync from coreutils.
52838         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
52839         Require openat-priv.h.
52840
52841 2006-01-09  Bruno Haible  <bruno@clisp.org>
52842
52843         * modules/strnlen (Include): Use strnlen.h.
52844
52845 2006-01-09  Bruno Haible  <bruno@clisp.org>
52846
52847         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
52848
52849 2006-01-09  Bruno Haible  <bruno@clisp.org>
52850
52851         * lib/sysexit_.h (EX_OK): New macro.
52852         Suggested by Martin Lambers <marlam@marlam.de>.
52853
52854 2006-01-09  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
52857         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
52858
52859 2006-01-09  Bruno Haible  <bruno@clisp.org>
52860
52861         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
52862         numbers.
52863
52864 2006-01-09  Bruno Haible  <bruno@clisp.org>
52865
52866         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
52867         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
52868         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
52869         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
52870
52871 2006-01-09  Bruno Haible  <bruno@clisp.org>
52872
52873         * build-aux/javacomp.sh.in: New file, moved from lib/.
52874         * modules/javacomp-script (Files): Update.
52875         (configure.ac): Add AC_CONFIG_FILES invocation.
52876         (EXTRA_DIST): Remove variable.
52877
52878         * build-aux/javaexec.sh.in: New file, moved from lib/.
52879         * modules/javaexec (Files): Update.
52880         (configure.ac): Add AC_CONFIG_FILES invocation.
52881         (EXTRA_DIST): Remove javaexec.sh.in.
52882
52883         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
52884         * modules/csharpcomp-script (Files): Update.
52885         (configure.ac): Add AC_CONFIG_FILES invocation.
52886         (EXTRA_DIST): Remove variable.
52887
52888         * build-aux/csharpexec.sh.in: New file, moved from lib/.
52889         * modules/csharpexec (Files): Update.
52890         (configure.ac): Add AC_CONFIG_FILES invocation.
52891         (EXTRA_DIST): Remove csharpexec.sh.in.
52892
52893 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52894
52895         Sync from coreutils.
52896
52897         Add POSIX ACL support
52898         * lib/acl.h (copy_acl, set_acl): Add declarations.
52899         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
52900         systems other than Linux.
52901         (chmod_or_fchmod): New function: use fchmod when possible,
52902         and chmod otherwise.
52903         (file_has_acl): Add a POSIX ACL implementation, with a
52904         Linux-specific subcase.
52905         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
52906         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
52907         acls are unsupported.
52908         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
52909         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
52910         are unsupported.
52911
52912 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52913
52914         Sync from coreutils.
52915         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
52916
52917 2006-01-07  Bruno Haible  <bruno@clisp.org>
52918
52919         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
52920         gl_EARLY.
52921
52922 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52923
52924         * lib/strftime.c (tzname): Don't declare if it is already #defined.
52925         Problem reported for Mingw by Mark Junker.
52926
52927 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         * README: Gnulib normally doesn't generate a tarball.
52930
52931 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
52932
52933         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
52934         long int, not int, for nanosecond counts, so that people who are
52935         used to POSIX struct timespec won't be surprised.  Reported by Jim
52936         Meyering.
52937
52938 2005-12-28  Bruno Haible  <bruno@clisp.org>
52939
52940         * build-aux/config.rpath: Update from GNU gettext.
52941
52942 2005-12-16  Jim Meyering  <jim@meyering.net>
52943
52944         * modules/fprintftime: New module.
52945         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
52946
52947 2005-12-16  Jim Meyering  <jim@meyering.net>
52948
52949         * m4/fprintftime.m4: New file.
52950
52951 2005-12-16  Jim Meyering  <jim@meyering.net>
52952
52953         * lib/fprintftime.c, lib/fprintftime.h: New files.
52954
52955 2005-12-15  Simon Josefsson  <jas@extundo.com>
52956
52957         * modules/socklen (configure.ac): Fix M4 macro name, to align with
52958         new m4/socklen.m4.
52959
52960 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52961
52962         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
52963         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
52964
52965 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52966
52967         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52968         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52969         struct uparams is valid. Fall back to the default values if it is
52970         not.
52971
52972 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52973
52974         * modules/argp (Files): Add argp-pin.c
52975         (Depends-on): dirname
52976         (lib_SOURCES): Add argp-pin.c
52977
52978 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52979
52980         * m4/argp.m4:  Check if program_invocation_name and
52981         program_invocation_short_name are declared and define appropriate
52982         macros if they are not.
52983
52984 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52985
52986         * lib/argp-help.c (__argp_base_name): New function
52987         (__argp_short_program_name): Rewrite using __argp_base_name
52988         * lib/argp-namefrob.h: Define program_invocation_name and
52989         program_invocation_short_name if requested
52990         (__argp_base_name): Add prototype
52991         * lib/argp-parse.c (argp_def): Use gettext wrappers
52992         (argp_default_parser): Use __argp_base_name
52993         * lib/argp-pin.c: New file. Defines program_invocation_name and
52994         program_invocation_short_name on systems that lack them.
52995
52996 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52997
52998         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52999         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53000         porting problem reported by Georg Schwarz in
53001         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53002
53003 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53006         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53007         porting problem reported by Georg Schwarz in
53008         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53009
53010 2005-12-05  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53013         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53014         Reported by Mark Junker <mjscod@gmx.de>.
53015
53016 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53017
53018         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53019         Use implementation from Albert Chin, with some
53020         comments/corrections by Stepan Kasal and myself.
53021
53022 2005-12-02  Bruno Haible  <bruno@clisp.org>
53023
53024         * gnulib-tool (func_import): Accept GPLed build tool modules when
53025         --lgpl is given.
53026         * modules/csharpcomp-script: New file.
53027         * modules/csharpcomp: Depend on it.
53028         * modules/javacomp-script: New file.
53029         * modules/javacomp: Depend on it.
53030         Suggested by Simon Josefsson.
53031
53032 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53035         statement, to work around an HP-UX 10.20 compiler bug reported by
53036         Peter O'Gorman.
53037
53038 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53039
53040         * modules/savedir (Depends-on): Add openat.
53041
53042 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53043
53044         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53045         (uintmax_t) [defined uintmax_t]: Do not declare.
53046         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53047         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53048         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53049         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53050         sake of portability to weird hosts that C allows (though we don't
53051         know of any practical examples).
53052
53053         * lib/savedir.h (fdsavedir): New decl.
53054         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53055         contains most of the former guts of savedir.
53056         (savedir): Use savedirstream.
53057         Include "openat.h".
53058
53059 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         * modules/obstack (Files): Add m4/ulonglong.m4.
53062         Problem reported by Davide Angelocola.
53063
53064 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53067         coreutils no longer futzes with rounding modes.
53068
53069 2005-11-14  Jim Meyering  <jim@meyering.net>
53070
53071         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53072         replacement of mkstemp.
53073
53074 2005-11-10  Simon Josefsson  <jas@extundo.com>
53075
53076         * lib/readline.c: Remove EOL.
53077
53078 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         * modules/gethrxtime (Depends-on): Add gettime.
53081
53082 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53083
53084         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53085         or gettimeofday; no longer needed.
53086
53087 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53088
53089         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53090         time business.
53091         (gethrxtime) [! (HAVE_NANOUPTIME
53092         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53093         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53094         our own approximation.
53095
53096 2005-11-08  Eric Blake  <ebb9@byu.net>
53097
53098         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53099
53100 2005-11-08  Eric Blake  <ebb9@byu.net>
53101
53102         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53103
53104 2005-11-04  Bruno Haible  <bruno@clisp.org>
53105
53106         * gnulib-tool: Implement --update mode.
53107
53108 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         Fix porting problem reported by Theodoros V. Kalamatianos.
53111         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53112         Don't assume that futimes failing means we must fail.
53113
53114 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53115
53116         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53117         variables to suggest the intended function of the PATH_MAX check.
53118
53119 2005-10-30  Kean Johnston  <jkj@sco.com>
53120
53121         Trivial changes to support SCO systems.
53122         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53123         as PATH_MAX.
53124         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53125         where __ptr is null when no I/O is pending.
53126
53127 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53128
53129         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53130         leave errno alone.  Problem reported by Dmitry V. Levin.
53131
53132 2005-10-28  Simon Josefsson  <jas@extundo.com>
53133
53134         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53135         Test more.
53136
53137         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53138
53139         * modules/md2, modules/md2-tests: New files.
53140
53141 2005-10-28  Simon Josefsson  <jas@extundo.com>
53142
53143         * m4/inet_ntop.m4: More tests.
53144
53145         * m4/gc-md2.m4, md2.m4: New file.
53146
53147 2005-10-28  Simon Josefsson  <jas@extundo.com>
53148
53149         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53150         "restrict" keywords, as per POSIX.  Protect the function
53151         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53152         Don't use K&R prototypes.  Check the sprintf return values.
53153         Re-define EAFNOSUPPORT if not present.  Indent.
53154
53155         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53156         suggested by Bruno Haible <bruno@clisp.org>.
53157
53158         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53159
53160         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53161
53162         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53163         libgcrypt).
53164
53165         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53166
53167         * lib/md2.h, lib/md2.c: New files.
53168
53169 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53170
53171         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53172         errno alone.  Problem reported by Frederic Jolliton.
53173
53174 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53175
53176         * modules/verify (License): Change from GPL to LGPL.  This is a
53177         tiny module and there are apparently near-equivalents that are
53178         under the BSD license.
53179
53180 2005-10-24  Simon Josefsson  <jas@extundo.com>
53181
53182         * modules/sha1: Relicense to LGPL.
53183
53184 2005-10-24  Simon Josefsson  <jas@extundo.com>
53185
53186         * lib/md4.h: Shrink buffer size, now that we changed the type.
53187
53188 2005-10-23  Simon Josefsson  <jas@extundo.com>
53189
53190         * gnulib-tool (func_import): Fix --tests-base.
53191
53192 2005-10-22  Simon Josefsson  <jas@extundo.com>
53193
53194         * modules/arcfour (Depends-on): Need stdint.
53195
53196 2005-10-22  Simon Josefsson  <jas@extundo.com>
53197
53198         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53199         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53200
53201 2005-10-22  Simon Josefsson  <jas@extundo.com>
53202
53203         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53204         suggested by Bruno Haible <bruno@clisp.org>.
53205
53206 2005-10-22  Simon Josefsson  <jas@extundo.com>
53207
53208         * lib/crc.h: Include stddef.h, for size_t.
53209
53210 2005-10-22  Simon Josefsson  <jas@extundo.com>
53211
53212         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53213         arcfour_context struct (simplify test vector testing in GNU
53214         Shishi).
53215
53216 2005-10-21  Simon Josefsson  <jas@extundo.com>
53217
53218         * modules/des, modules/des-tests: New files.
53219
53220         * modules/gc-des, modules/gc-des-tests: New files.
53221
53222         * tests/test-des.c, tests/test-gc-des.c: New file.
53223
53224 2005-10-21  Simon Josefsson  <jas@extundo.com>
53225
53226         * modules/arctwo, modules/arctwo-tests: New files.
53227
53228         * tests/test-arctwo.c: New file.
53229
53230         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53231
53232         * tests/test-gc-arctwo.c: New file.
53233
53234 2005-10-21  Simon Josefsson  <jas@extundo.com>
53235
53236         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53237         Bruno Haible <bruno@clisp.org>.
53238
53239         * m4/gc-des.m4: New file.
53240
53241 2005-10-21  Simon Josefsson  <jas@extundo.com>
53242
53243         * m4/arctwo.m4: New file.
53244
53245         * m4/gc-arctwo.m4: New file.
53246
53247 2005-10-21  Simon Josefsson  <jas@extundo.com>
53248
53249         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53250         block.
53251
53252 2005-10-21  Simon Josefsson  <jas@extundo.com>
53253
53254         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53255         <bruno@clisp.org>.
53256
53257         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53258
53259         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53260         Bruno Haible <bruno@clisp.org>.
53261
53262         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53263         <bruno@clisp.org>.
53264
53265 2005-10-21  Simon Josefsson  <jas@extundo.com>
53266
53267         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53268
53269 2005-10-21  Simon Josefsson  <jas@extundo.com>
53270
53271         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53272
53273 2005-10-21  Simon Josefsson  <jas@extundo.com>
53274
53275         * lib/des.h, lib/des.c: New files.
53276
53277         * lib/gc-gnulib.c: Support DES.c
53278
53279 2005-10-21  Simon Josefsson  <jas@extundo.com>
53280
53281         * lib/arctwo.h, lib/arctwo.c: New files.
53282
53283         * lib/gc-gnulib.c: Support ARCTWO.
53284
53285 2005-10-21  Simon Josefsson  <jas@extundo.com>
53286
53287         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53288         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53289
53290 2005-10-21  Simon Josefsson  <jas@extundo.com>
53291
53292         * gnulib-tool (func_import, func_create_testdir): Define automake
53293         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53294         Makefile.am snippet),
53295         suggested by Bruno Haible <bruno@clisp.org>.
53296
53297         * modules/gc (Makefile.am): Use it.
53298
53299 2005-10-21  Bruno Haible  <bruno@clisp.org>
53300
53301         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53302         patch.
53303
53304 2005-10-19  Simon Josefsson  <jas@extundo.com>
53305
53306         * tests/test-gc-rijndael.c: New file.
53307
53308         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53309
53310 2005-10-19  Simon Josefsson  <jas@extundo.com>
53311
53312         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53313         interface too.
53314
53315 2005-10-19  Simon Josefsson  <jas@extundo.com>
53316
53317         * tests/test-gc-arcfour.c: New file.
53318
53319         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53320
53321 2005-10-19  Simon Josefsson  <jas@extundo.com>
53322
53323         * modules/gc-md4, modules/gc-md4-tests: New file.
53324
53325         * tests/test-gc-md4.c: New file.
53326
53327 2005-10-19  Simon Josefsson  <jas@extundo.com>
53328
53329         * m4/gc-md4.m4: New file.
53330
53331 2005-10-19  Simon Josefsson  <jas@extundo.com>
53332
53333         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53334         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53335         <kasal@ucw.cz>.
53336
53337 2005-10-19  Simon Josefsson  <jas@extundo.com>
53338
53339         * m4/gc-arcfour.m4: New file.
53340
53341         * m4/gc-rijndael.m4: New file.
53342
53343 2005-10-19  Simon Josefsson  <jas@extundo.com>
53344
53345         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53346
53347 2005-10-19  Simon Josefsson  <jas@extundo.com>
53348
53349         * lib/gc-gnulib.c: Support ARCFOUR.
53350
53351 2005-10-19  Simon Josefsson  <jas@extundo.com>
53352
53353         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53354         support.
53355
53356         * lib/gc.h: Add ECB enum type.
53357
53358         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53359
53360 2005-10-18  Simon Josefsson  <jas@extundo.com>
53361
53362         * tests/test-md5.c: New file.
53363
53364         * modules/md5-tests: New file.
53365
53366 2005-10-18  Simon Josefsson  <jas@extundo.com>
53367
53368         * tests/test-md4.c: New file.
53369
53370         * modules/md4, modules/md4-tests: New files.
53371
53372 2005-10-18  Simon Josefsson  <jas@extundo.com>
53373
53374         * m4/md4.m4: New file.
53375
53376 2005-10-18  Simon Josefsson  <jas@extundo.com>
53377
53378         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53379
53380 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53381
53382         * gnulib-tool (func_create_testdir): Omit the second check whether
53383         BUILT_SOURCES in nonempty.
53384
53385 2005-10-17  Simon Josefsson  <jas@extundo.com>
53386
53387         * tests/test-rijndael.c: New file.
53388
53389 2005-10-17  Simon Josefsson  <jas@extundo.com>
53390
53391         * modules/sha1: Depend on stdint instead of md5.
53392
53393         * modules/md5: Depend on stdint, remove uint32_t.
53394
53395 2005-10-17  Simon Josefsson  <jas@extundo.com>
53396
53397         * modules/gc-sha1-tests: New file.
53398
53399         * tests/test-gc-sha1.c: New file.
53400
53401 2005-10-17  Simon Josefsson  <jas@extundo.com>
53402
53403         * m4/md5.m4: Remove call to uint32_t.m4.
53404
53405 2005-10-17  Simon Josefsson  <jas@extundo.com>
53406
53407         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
53408
53409         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
53410         md5.h.
53411
53412         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
53413
53414         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
53415
53416 2005-10-17  Simon Josefsson  <jas@extundo.com>
53417
53418         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
53419
53420 2005-10-17  Simon Josefsson  <jas@extundo.com>
53421
53422         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
53423
53424 2005-10-17  Simon Josefsson  <jas@extundo.com>
53425
53426         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
53427
53428         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
53429
53430 2005-10-17  Bruno Haible  <bruno@clisp.org>
53431
53432         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
53433         that it can also be used in a test.
53434
53435 2005-10-16  Bruno Haible  <bruno@clisp.org>
53436
53437         * gnulib-tool (func_emit_tests_Makefile_am): Also define
53438         TESTS_ENVIRONMENT, so that individual tests can augment it.
53439
53440         * gnulib-tool (func_create_testdir): Use an intermediate target for
53441         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
53442         macros, like $(ALLOCA_H), which cannot be passed through the command
53443         line.
53444
53445 2005-10-15  Simon Josefsson  <jas@extundo.com>
53446
53447         * modules/rijndael-tests: New file.
53448
53449         * modules/rijndael: New file.
53450
53451 2005-10-15  Simon Josefsson  <jas@extundo.com>
53452
53453         * m4/rijndael.m4: New file.
53454
53455 2005-10-15  Simon Josefsson  <jas@extundo.com>
53456
53457         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
53458
53459         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
53460
53461 2005-10-14  Simon Josefsson  <jas@extundo.com>
53462
53463         * tests/test-arcfour.c: New file.
53464
53465         * modules/arcfour, modules/arcfour-tests: New files.
53466
53467 2005-10-14  Simon Josefsson  <jas@extundo.com>
53468
53469         * m4/arcfour.m4: New file.
53470
53471 2005-10-14  Simon Josefsson  <jas@extundo.com>
53472
53473         * lib/arcfour.h, lib/arcfour.c: New files.
53474
53475 2005-10-14  Roland McGrath  <roland@redhat.com>
53476
53477         Import from libc.  [BZ #1331]
53478         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
53479         macro argument.
53480         Reported by Matej Vela <vela@debian.org>.
53481
53482 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53483
53484         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
53485         include <wchar.h>; no longer needed.
53486
53487 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53488
53489         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
53490
53491 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
53492         and  Ulrich Drepper  <drepper@redhat.com>
53493
53494         Import from libc.
53495         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
53496         instead of inline stream orientation test and two separate
53497         function calls.  Pay no attention to USE_IN_LIBIO.
53498
53499 2005-10-13  Simon Josefsson  <jas@extundo.com>
53500
53501         * modules/gc-hmac-md5-tests: New file.
53502
53503         * tests/test-gc-hmac-sha1.c: New file.
53504
53505         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
53506
53507         * modules/gc-hmac-md5-tests: New file.
53508
53509         * tests/test-gc-md5.c: New file.
53510
53511         * modules/gc-md5-tests: New file.
53512
53513 2005-10-13  Simon Josefsson  <jas@extundo.com>
53514
53515         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
53516         Move memory allocation outside of loop.
53517
53518 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
53521         intermediate directory is in a read-only file system.  Problem
53522         reported by Eric Blake.
53523
53524 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
53525
53526         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
53527
53528 2005-10-12  Simon Josefsson  <jas@extundo.com>
53529
53530         * tests/test-hmac-sha1.c: New file.
53531
53532         * modules/hmac-sha1-tests: New file.
53533
53534         * modules/hmac-sha1: New file.
53535
53536 2005-10-12  Simon Josefsson  <jas@extundo.com>
53537
53538         * modules/gc-sha1: New file.
53539
53540 2005-10-12  Simon Josefsson  <jas@extundo.com>
53541
53542         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
53543
53544         * tests/test-gc-pbkdf2-sha1.c: New file.
53545
53546 2005-10-12  Simon Josefsson  <jas@extundo.com>
53547
53548         * modules/gc-md5, modules/gc-hmac-md5: New files.
53549
53550         * modules/gc (Files): Remove md5, memxor and hmac files.
53551
53552 2005-10-12  Simon Josefsson  <jas@extundo.com>
53553
53554         * m4/gc-pbkdf2-sha1.m4: New file.
53555
53556         * m4/gc-hmac-sha1.m4: New file.
53557
53558         * m4/gc-sha1: New file.
53559
53560         * m4/hmac-sha1.m4: New file.
53561
53562 2005-10-12  Simon Josefsson  <jas@extundo.com>
53563
53564         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
53565
53566         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
53567
53568 2005-10-12  Simon Josefsson  <jas@extundo.com>
53569
53570         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
53571         suggested by Bruno Haible <bruno@clisp.org>.
53572
53573 2005-10-12  Simon Josefsson  <jas@extundo.com>
53574
53575         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
53576
53577 2005-10-12  Simon Josefsson  <jas@extundo.com>
53578
53579         * lib/gc-pbkdf2-sha1.c: New file.
53580
53581         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
53582
53583 2005-10-12  Simon Josefsson  <jas@extundo.com>
53584
53585         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
53586
53587         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
53588
53589 2005-10-12  Simon Josefsson  <jas@extundo.com>
53590
53591         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
53592         GC_USE_HMAC_MD5, respectively.
53593
53594         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
53595         (gc_md5): Fix typo.
53596
53597         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
53598
53599         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
53600
53601         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
53602
53603 2005-10-12  Bruno Haible  <bruno@clisp.org>
53604
53605         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
53606         Reported by Stepan Kasal <kasal@ucw.cz>.
53607
53608 2005-10-11  Simon Josefsson  <jas@extundo.com>
53609
53610         * tests/test-crc.c: New file.
53611
53612         * modules/crc, modules/crc-tests: New files.
53613
53614 2005-10-11  Simon Josefsson  <jas@extundo.com>
53615
53616         * m4/crc.m4: New file.
53617
53618 2005-10-11  Simon Josefsson  <jas@extundo.com>
53619
53620         * lib/gc.h: Add gc_hash and gc_hash_buffer.
53621
53622         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
53623
53624         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
53625
53626 2005-10-11  Simon Josefsson  <jas@extundo.com>
53627
53628         * lib/crc.h, lib/crc.c: New files.
53629
53630         * lib/gc.h (gc_hash_buffer): Add doc.
53631
53632 2005-10-11  Bruno Haible  <bruno@clisp.org>
53633
53634         * modules/c-strcasestr: New file.
53635         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
53636
53637 2005-10-11  Bruno Haible  <bruno@clisp.org>
53638
53639         * modules/c-strcase: New file.
53640         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
53641
53642 2005-10-11  Bruno Haible  <bruno@clisp.org>
53643
53644         * lib/strcasecmp.c: Include limits.h.
53645         (strcasecmp): Avoid integer overflow on exotic platforms.
53646         * lib/strncasecmp.c: Include limits.h.
53647         (strncasecmp): Avoid integer overflow on exotic platforms.
53648         Reported by Paul Eggert.
53649
53650 2005-10-11  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/c-strcasestr.h: New file, from GNU gettext.
53653         * lib/c-strcasestr.c: New file, from GNU gettext.
53654
53655 2005-10-11  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/c-strcase.h: New file, from GNU gettext.
53658         * lib/c-strcasecmp.c: New file, from GNU gettext.
53659         * lib/c-strncasecmp.c: New file, from GNU gettext.
53660
53661 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * modules/mempcpy (License): GPL -> LGPL.
53664         * modules/strchrnul (License): Likewise.
53665         * modules/sysexits (License): Likewise.
53666
53667 2005-10-08  Simon Josefsson  <jas@extundo.com>
53668
53669         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
53670
53671 2005-10-07  Simon Josefsson  <jas@extundo.com>
53672
53673         * m4/memxor.m4: Remove gl_C_RESTRICT call.
53674
53675 2005-10-06  Simon Josefsson  <jas@extundo.com>
53676
53677         * tests/test-hmac-md5.c: New file.
53678
53679         * modules/hmac-md5-tests: New file.
53680
53681         * modules/hmac-md5: New file.
53682
53683 2005-10-06  Simon Josefsson  <jas@extundo.com>
53684
53685         * m4/hmac-md5.m4: New file.
53686
53687         * m4/memxor.m4: Require gl_C_RESTRICT.
53688
53689 2005-10-06  Simon Josefsson  <jas@extundo.com>
53690
53691         * lib/memxor.c (memxor): Avoid casts and warnings.
53692
53693 2005-10-06  Simon Josefsson  <jas@extundo.com>
53694
53695         * lib/hmac-md5.c: New file.
53696
53697         * lib/hmac.h: New file.
53698
53699 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
53702         promotes to int, not unsigned int, to catch the AIX 5.3
53703         compiler bug.
53704
53705 2005-10-05  Simon Josefsson  <jas@extundo.com>
53706
53707         * modules/memxor: New file.
53708
53709         * modules/iconv (Files): Move config.rpath to havelib, it is used
53710         there.
53711
53712         * modules/havelib (Files): Add config.rpath.
53713
53714 2005-10-05  Simon Josefsson  <jas@extundo.com>
53715
53716         * m4/memxor.m4: New file.
53717
53718 2005-10-05  Simon Josefsson  <jas@extundo.com>
53719
53720         * lib/memxor.c (memxor): Fix compiler error.
53721
53722         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
53723         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
53724
53725         * lib/memxor.h, lib/memxor.c: New files.
53726
53727         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
53728         we assume all systems have it, suggested by Jim Meyering
53729         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
53730         any systems lack sys/socket.h; mingw32 is known to lack it, but we
53731         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
53732         same reasons.
53733
53734 2005-10-05  Simon Josefsson  <jas@extundo.com>
53735
53736         * config/srclist.txt: Add glibc bug 1423 for md5.h.
53737
53738 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53739
53740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
53741         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
53742         needed, since the source code now assumes these .h files.
53743
53744 2005-10-05  Derek Price  <derek@ximbiot.com>
53745
53746         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
53747
53748 2005-10-05  Bruno Haible  <bruno@clisp.org>
53749
53750         * modules/stdint (License): Change to LGPL.
53751
53752 2005-10-04  Simon Josefsson  <jas@extundo.com>
53753
53754         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
53755         D. Baushke" <mdb@gnu.org>.
53756
53757 2005-10-04  Bruno Haible  <bruno@clisp.org>
53758
53759         * lib/verify.h (verify_true): Provide alternative definition for C++.
53760
53761 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
53764         (SSIZE_MAX): New macro, if not already defined.
53765         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
53766         than 2 GiB.
53767
53768 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         Sync from coreutils.
53771         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
53772         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
53773         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
53774         ULLONG_MAX doesn't work with 2.7.2.1.
53775
53776 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53777
53778         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
53779         From Ben Pfaff.
53780
53781         * modules/exclude (Depends-on): Depend on verify.
53782         * modules/strtoimax (Depends-on): Likewise.
53783         * modules/utimecmp (Depends-on): Likewise.
53784
53785 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53786
53787         * lib/exclude.c: Include verify.h.
53788         (verify): Remove.  All callers changed to use verify.h's version.
53789         * lib/strtoimax.c: Likewise.
53790         * lib/utimecmp.c: Likewis.e
53791
53792         Sync from coreutils.
53793         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
53794         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
53795         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
53796         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
53797         bother returning ENOSYS if settimeofday or stime fails; just let
53798         them return whatever errno they want to return.
53799         * lib/utimens.c: Include unistd.h, for dup2.
53800         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
53801         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
53802
53803 2005-10-02  Jim Meyering  <jim@meyering.net>
53804
53805         Sync from coreutils.
53806         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
53807         from glibc-2.2.5 that fails for read-only files.
53808
53809 2005-10-02  Jim Meyering  <jim@meyering.net>
53810
53811         Sync from coreutils.
53812         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
53813         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
53814         `#if HAVE_CONFIG_H'.
53815         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
53816         Remove AT_FDCWD test.
53817         Do not consume the fd unless successful.
53818         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
53819         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
53820         block, so that we don't even try to compile it if settimeofday is
53821         available.  This works around a compilation failure on OSF1 V5.1,
53822         due to stime requiring a `long int*' while tv_sec is `int'.
53823
53824 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
53825
53826         Sync from coreutils.
53827         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
53828         against `yes', rather than just testing for nonempty.
53829
53830 2005-10-01  Simon Josefsson  <jas@extundo.com>
53831
53832         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
53833         and Darwin.
53834
53835         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
53836         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
53837         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
53838         freeaddrinfo and gai_strerror are declared by the POSIX headers.
53839         Check if struct addrinfo is declared.
53840
53841 2005-10-01  Simon Josefsson  <jas@extundo.com>
53842
53843         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
53844         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
53845         AI_* and EAI_* definitions.  Protect function declarations.
53846
53847 2005-10-01  Jim Meyering  <jim@meyering.net>
53848
53849         Sync from coreutils.
53850
53851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
53852         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
53853         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
53854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53855         in the inet and nsl libraries.  Required on Solaris 5.7.
53856
53857 2005-10-01  Jim Meyering  <jim@meyering.net>
53858
53859         Sync from coreutils.
53860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53861         in the inet and nsl libraries.  Required on Solaris 5.7.
53862
53863 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
53864
53865         * lib/getdelim.c (getdelim): Remove unused variables.
53866
53867 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
53870         so that the code works even with ancient cpp.  Portability problem
53871         with GCC 2.7.2.1 reported by Thomas M.Ott.
53872
53873 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53874
53875         * modules/regex (Depends-on): Add strcase.
53876
53877         * modules/gethostname (Licence): Change from GPL to LGPL, since
53878         gethostname.c is a trivial implementation of a standard library
53879         function.
53880         * modules/poll (License): Change from GPL to LGPL, since it's
53881         derived from LGPL code.
53882
53883 2005-09-27  Jim Meyering  <jim@meyering.net>
53884
53885         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
53886         HAVE_CONFIG_H.
53887
53888         * lib/intprops.h (signed_type_or_expr__): Define.
53889         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
53890         for unsigned types.
53891
53892 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         * lib/verify.h (verify_expr): Remove, replacing with:
53895         (verify_true): New macro that returns true instead of void.
53896         (verify_type__): Remove.
53897         (verify): Use verify_true rather than verify_type__.
53898
53899 2005-09-26  Bruno Haible  <bruno@clisp.org>
53900
53901         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
53902         is necessary.
53903         (lib_SOURCES): Remove mbchar.c.
53904         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
53905         (Files): Add m4/mbrtowc.m4.
53906         * modules/mbiter: Likewise.
53907         * modules/mbuiter: Likewise.
53908
53909 2005-09-26  Bruno Haible  <bruno@clisp.org>
53910
53911         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
53912         compile mbchar.c if they are not both present.
53913         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
53914         * m4/mbiter.m4 (gl_MBITER): Likewise.
53915         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
53916         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
53917         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
53918
53919 2005-09-25  Jim Meyering  <jim@meyering.net>
53920
53921         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
53922         also uses socklen_t.
53923
53924 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
53925
53926         * lib/utimens.c (ENOSYS): Define if not already defined.
53927         (futimens): Support having a null PATH if the file descriptor
53928         is nonnegative.
53929
53930         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
53931         Remove.
53932         (__attribute): Define to empty unless GCC 3.1 or later.
53933         This works around a core dump on OpenBSD 3.4, which has GCC
53934         2.95.3, which dumps core when given __attribute__(()).  It also
53935         simplifies other tests, since we really don't want to bother with
53936         worrying about which ancient version of GCC supported what.
53937         Original problem reported by Yoann Vandoorselaere, with part of
53938         the fix suggested by Derek Price.
53939
53940 2005-09-24  Jim Meyering  <jim@meyering.net>
53941
53942         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
53943         so we can once again use a positive bitfield width of 1 -- now we
53944         don't have to explain why we were using a bitfield width of 2.
53945
53946 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53947
53948         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
53949         and similarly for the other external symbols.  Problem reported
53950         by James Gallager.
53951
53952         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
53953         bug reported by Jim Meyering.
53954
53955         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
53956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
53957         not needed, since socklen is a prerequisite module.
53958
53959 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
53962         Problem reported by Eric Blake.
53963         (getaddrinfo): Initialize se so that it's not garbage.
53964         Redo internal storage allocation so that it doesn't make unportable
53965         assumptions about alignment.
53966         Fix a memory leak.
53967
53968         * lib/utimens.c (futimens): Use futimesat if available.
53969         Prefer it to futimes since it doesn't have the futimes bug.
53970
53971         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53972         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53973         Instead, declare a function that returns a pointer to an array,
53974         and use verify_type__ to declare the size of the array.
53975         Problem and germ of a solution reported by Bruno Haible.
53976         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53977         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53978
53979 2005-09-23  Jim Meyering  <jim@meyering.net>
53980
53981         Sync from coreutils.
53982         Correct build failure (socklen_t not defined) on at least
53983         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53984         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53985
53986 2005-09-23  Jim Meyering  <jim@meyering.net>
53987
53988         * modules/getaddrinfo (Depends-on): Add socklen.
53989
53990 2005-09-23  Bruno Haible  <bruno@clisp.org>
53991
53992         * tests/test-verify.c: New file.
53993
53994 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         Sync from coreutils.
53997
53998         * modules/argmatch (Depends-on): Add verify.
53999         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54000         unistd-safer.
54001         * modules/save-cwd (Depends-on): Likewise.
54002
54003         * modules/openat (Files): Add lib/openat-die.c.
54004         (Depends-on): Remove error, exitfail.
54005         Add dirname.
54006
54007         * modules/verify: New file.
54008         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54009         with "verify" module.
54010
54011 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54012
54013         Sync from coreutils.
54014
54015         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54016         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54017         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54018         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54019         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54020         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54021         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54022         Don't bother checking for string.h, stdlib.h, unistd.h.
54023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54024         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54025         module's job.
54026         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54027         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54028
54029         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54030         (gl_GETDATE): Use it.
54031
54032         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54033
54034 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54035
54036         Sync from coreutils.
54037
54038         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54039         stat-time.h.
54040         * lib/argmatch.h: Include verify.h
54041         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54042         (ARGMATCH_ASSERT): Remove; unused.
54043         * lib/canonicalize.c: Assume STDC_HEADERS.
54044         * lib/exclude.c: Include "strcase.h".
54045         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54046         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54047         and stdio-safer.h.
54048         (getusershell): Call fopen, not fopen_safer.
54049         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54050         Do not include unistd-safer.h.
54051         (save_cwd): Don't call fd_safer; no longer needed
54052         now that we include fcntl--.h.
54053
54054         * lib/getdate.y (relative_time): New type.
54055         (RELATIVE_TIME_0): New constant.
54056         (parser_control): Use relative_time instead of doing it ourselves.
54057         (%union): Add new relative_time rel member.
54058         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54059         Now typeless.
54060         (relunit, relunit_snumber): Now of type rel.
54061         (zone, rel, relunit, get_date): Adjust to above changes.
54062
54063         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54064         Do not include unistd-safer.h.
54065         (getloadavg): Don't call fd_safer; no longer needed
54066         now that we include fcntl--.h.
54067
54068         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54069         (make_dir_parents): Treat ENOSYS like EEXIST.
54070
54071         Improve quality of diagnostics on restore_cwd failure.
54072         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54073         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54074         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54075         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54076         each time through the loop.  Do not diagnose restore_cwd failure;
54077         that is the caller's job (and perhaps the caller does not care).
54078
54079         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54080         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54081         If the file already exists but is not a directory, don't bother
54082         to try to make its parents.
54083         Close potential file descriptor leak if we can't chdir("/") (!).
54084         Don't always return true if chdir($PWD) fails; return true only
54085         if the requested action was done successfully (except for the
54086         chdir($PWD)).
54087         Don't log final directory unless we actually made it.
54088         Refactor to avoid duplicate code to fix up permissions.
54089         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54090
54091         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54092         to make it a bit faster and (I hope) clearer.
54093         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54094         Fix bug in formats like %2N.
54095
54096         * lib/verify.h: New file.
54097
54098 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54099
54100         Sync from coreutils.
54101         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54102
54103 2005-09-22  Jim Meyering  <jim@meyering.net>
54104
54105         Sync from coreutils.
54106
54107         * m4/lstat.m4 (gl_FUNC_LSTAT):
54108         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54109         Remove obsolete comment.
54110         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54111         * m4/xstrtod.m4: Likewise.
54112
54113         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54114
54115 2005-09-22  Jim Meyering  <jim@meyering.net>
54116
54117         Sync from coreutils.
54118
54119         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54120
54121         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54122         the .tm_year member, since otherwise gcc-4.0 would now warn about
54123         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54124
54125         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54126         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54127
54128         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54129         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54130         when run in a time zone for which daylight savings time is in effect
54131         for the starting date.
54132
54133         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54134         stop us from restricting permissions of just-created absolute-named
54135         directories.
54136         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54137         to restore initial working directory.
54138         * lib/mkdir-p.c (make_dir_parents): New parameter:
54139         different_working_dir, to tell caller if/when we change the working
54140         directory and are unable to return to the initial one.
54141         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54142         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54143         `return false'.  This fixes a bug introduced on 2004-07-30.
54144
54145         * lib/openat.c (fdopendir): Be sure to close the supplied
54146         file descriptor before returning.  This makes our replacement
54147         implementation a little closer to Solaris's, where fdopendir
54148         ties the file descriptor to the returned DIR* pointer.
54149         * lib/openat.c (unlinkat): New function.
54150         * lib/openat.h (unlinkat): Add prototype.
54151         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54152         (openat_restore_fail): Rename from openat_restore_die.
54153         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54154
54155         Provide an alternative to exiting immediately upon save_cwd or
54156         restore_cwd failure.  Now, an application can arrange e.g.,
54157         to perform a longjump in that case.
54158         * lib/openat.c: Include dirname.h.
54159         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54160         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54161         and openat_restore_die rather than calling error directly.
54162         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54163
54164         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54165         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54166         define.
54167
54168         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54169         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54170                             int utc, int nanoseconds);
54171         Background:
54172         date should not have to allocate a megabyte of virtual memory to
54173         handle a format argument like +%1048575T.  When implemented with
54174         strftime, it must allocate such a buffer, use strftime to fill it
54175         in, print it, then free it.
54176         With fprintftime, it simply prints everything and exits.
54177         With no need for memory allocation, that's one fewer way to fail.
54178         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54179         optional field width, not before, so we accept %9:z, not %:9z.
54180         (my_strftime): Be sure to use L_('x') for literals.
54181
54182         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54183         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54184         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54185         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54186         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54187         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54188         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54189         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54190         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54191         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54192         * lib/xgethostname.c, lib/xreadlink.c:
54193         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54194
54195         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54196         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54197         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54198         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54199         and don't include <sys/file.h>).
54200
54201 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54202
54203         Sync from coreutils.
54204
54205         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54206         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54207         [!LDAV_DONE]: Avoid unused variable warning.
54208
54209 2005-09-21  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/unicodeio.h (unicode_to_mb): New declaration.
54212
54213 2005-09-20  Derek Price  <derek@ximbiot.com>
54214
54215         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54216         getaddrinfo.h.
54217
54218 2005-09-20  Bruno Haible  <bruno@clisp.org>
54219
54220         * gnulib-tool: Remove trailing slashes from the values specified for
54221         --source-base, --m4-base, --tests-base, --aux-dir.
54222         Suggested by Simon Josefsson <jas@extundo.com>.
54223
54224 2005-09-20  Bruno Haible  <bruno@clisp.org>
54225
54226         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54227         func_modules_to_filelist, func_import, func_create_testdir): Make all
54228         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54229         change when gnulib-tool is invoked in a different locale.
54230
54231 2005-09-19  Simon Josefsson  <jas@extundo.com>
54232
54233         * m4/socklen.m4: Fix typo.
54234
54235 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54236
54237         Use a consistent style for including <config.h>.
54238         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54239         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54240         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54241         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54242         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54243         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54244         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54245         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54246         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54247         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54248         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54249         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54250         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54251         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54252         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54253         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54254         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54255         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54256         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54257         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54258         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54259         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54260         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54261         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54262         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54263         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54264         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54265         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54266         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54267         lib/xstrtoumax.c, lib/yesno.c:
54268         Standardize inclusion of config.h.
54269         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54270         lib/inttostr.h:  Removed inclusion of config.h from header files.
54271         * lib/inttostr.c:  Adjusted in-tree users.
54272         * lib/timespec.h: Remove superfluous warning to include config.h.
54273         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54274         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54275         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54276         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54277         config.h with HAVE_CONFIG_H.
54278
54279 2005-09-19  Jim Meyering  <jim@meyering.net>
54280
54281         * modules/pathmax (License): Change to LGPL.
54282
54283 2005-09-19  Derek Price  <derek@ximbiot.com>
54284
54285         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54286
54287 2005-09-19  Bruno Haible  <bruno@clisp.org>
54288
54289         * gnulib-tool (import): Provide default for --tests-base.
54290
54291 2005-09-19  Bruno Haible  <bruno@clisp.org>
54292
54293         * doc/quote.texi: New file, extracted from gnulib.texi.
54294         * doc/ctime.texi: New file, extracted from gnulib.texi.
54295         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54296         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54297         * doc/gnulib.texi: Include them.
54298
54299 2005-09-18  Bruno Haible  <bruno@clisp.org>
54300
54301         Portability fix.
54302         * gnulib-tool (func_readlink): New function.
54303         (func_ln_if_changed): Use it.
54304
54305 2005-09-18  Bruno Haible  <bruno@clisp.org>
54306
54307         * gnulib-tool: Support --with-tests also with --import.
54308         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54309         (func_import): Use variables $testsbase and $inctests. Emit a
54310         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54311         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54312         SUBDIRS += $testsdir.
54313         (func_create_testdir): Update.
54314
54315 2005-09-18  Bruno Haible  <bruno@clisp.org>
54316
54317         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54318         instead of $dry_run.
54319         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54320         (func_ln_if_changed): Don't handle dry-run here.
54321         (func_import): In dry-run mode, detect more precisely which actions
54322         would be performed, and don't use "...ing" verbs.
54323
54324 2005-09-18  Bruno Haible  <bruno@clisp.org>
54325
54326         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54327         (func_import): Use join on two temporary files instead of three nested
54328         loops, in order to determine which files are new or old.
54329
54330 2005-09-18  Bruno Haible  <bruno@clisp.org>
54331
54332         * gnulib-tool (func_import): Comment out code that spits out the
54333         new files with --dry-run.
54334
54335 2005-09-18  Bruno Haible  <bruno@clisp.org>
54336
54337         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54338
54339 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * lib/stat-time.h: New file.
54342         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54343         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54344         in a different way.
54345         (timespec_cmp): New function.
54346         * lib/utimecmp.c: Include stat-time.h.
54347         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54348         members exist, not on the obsolescent ST_MTIM_NSEC.
54349         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54350
54351 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54352
54353         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54354
54355 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54356
54357         * MODULES.html.sh (File system functions): Add stat-time.
54358         * modules/stat-time: New file.
54359         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54360         is now done in a different way, by the stat-time module.
54361         * modules/utimecmp (Depends-on): Add stat-time.
54362
54363 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54364
54365         * m4/st_mtim.m4: Remove.  Superseded by...
54366         * m4/stat-time.m4: New file.
54367         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54368         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54369
54370 2005-09-15  Derek Price  <derek@ximbiot.com>
54371
54372         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54373
54374 2005-09-15  Derek Price  <derek@ximbiot.com>
54375
54376         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54377         * lib/regex_internal.c: Ditto, using this...
54378         (__GNUC_PREREQ): ...new macro.
54379         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54380         using...
54381         (__GNUC_PREREQ): ...this new macro.
54382
54383         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54384
54385 2005-09-15  Derek Price  <derek@ximbiot.com>
54386             Paul Eggert  <eggert@cs.ucla.edu>
54387
54388         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54389         changes, consolidating in...
54390         * lib/regex_internal.h: ...this file.
54391
54392 2005-09-13  Jim Meyering  <jim@meyering.net>
54393
54394         * lib/canon-host.c: Filter through gnu indent and reword comments
54395         slightly.
54396         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54397
54398 2005-09-13  Derek Price  <derek@ximbiot.com>
54399
54400         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54401         failure.
54402         Reported by Jim Meyering  <jim@meyering.net>.
54403
54404 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54405
54406         * lib/base64.c: Typo.
54407         (base64_encode): Put b64str in initialized data section.
54408
54409 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
54410
54411         Merge glibc and coreutils changes into gnulib, plus a few
54412         extra fixes.
54413         * lib/md5.c: Use #error rather than a string.
54414         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
54415         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
54416         (__attribute__): Define to empty for non recent-GCC.
54417         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
54418         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
54419         Renamed from their non-__ counterparts, with new macros replacing
54420         them if not _LIBC.  Add __THROW attribute.
54421         (rol): Remove.
54422         (struct md5_ctx): Align buffer if using GCC.
54423         * lib/sha1.h (struct sha1_ctx): Likewise.
54424         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
54425         The old name was backwards.
54426         (NOTSWAP): Remove; not used.
54427         (rol): New macro, moved here from md5.h.
54428         (sha1_process_block): Remove a FIXME that doesn't make sense.
54429
54430 2005-09-12  Derek Price  <derek@ximbiot.com>
54431
54432         Return usable errors from canon-host.
54433         * lib/canon-host.h: New file.
54434         * lib/canon-host.c (canon_host): Wrap...
54435         (canon_host_r): ...this new function, which now relies exclusively on
54436         getaddrinfo.
54437         (ch_strerror): New function.
54438         (last_cherror): New global.
54439         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
54440         interface.
54441         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
54442         void *.
54443         (freeaddrinfo): Free ai->ai_canonname when set.
54444
54445 2005-09-12  Derek Price  <derek@ximbiot.com>
54446
54447         Make canon-host require getaddrinfo.
54448         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
54449         AC_LIBSOURCE canon-host.h.  Call...
54450         (gl_PREREQ_CANON_HOST): ...this new function, which requires
54451         gl_GETADDRINFO.
54452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
54453
54454 2005-09-12  Derek Price  <derek@ximbiot.com>
54455
54456         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
54457         LGPL.
54458         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
54459
54460 2005-09-12  Derek Price  <derek@ximbiot.com>
54461
54462         * lib/gai_strerror.c: Include config.h when available.  Include
54463         getaddrinfo.h before other headers to test interface.
54464         Reported by Larry Jones <lawrence.jones@ugs.com>.
54465
54466 2005-09-12  Derek Price  <derek@ximbiot.com>
54467             Paul Eggert  <eggert@cs.ucla.edu>
54468
54469         * modules/glob (Files): Add glob-libc.h.
54470
54471 2005-09-12  Derek Price  <derek@ximbiot.com>
54472             Paul Eggert  <eggert@cs.ucla.edu>
54473
54474         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
54475         glob_.h, glob-libc.h.
54476         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
54477
54478 2005-09-12  Derek Price  <derek@ximbiot.com>
54479             Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
54482         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
54483         protecting things that should be done only in gnulib contexts.
54484         * lib/glob_.h: New file, containing only the glob things needed for
54485         gnulib.
54486         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
54487         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
54488         (glob, globfree, glob_pattern_p): Now defined simply in terms of
54489         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
54490         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
54491         and to respect the namespace rules better.
54492
54493 2005-09-08  Simon Josefsson  <jas@extundo.com>
54494
54495         * modules/socklen: New file.
54496
54497 2005-09-08  Simon Josefsson  <jas@extundo.com>
54498
54499         * m4/socklen.m4: New file.
54500
54501 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         * modules/utimens (Files): Add m4/utimbuf.m4, since
54504         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
54505         Reported by Sergey Poznyakoff.
54506
54507 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
54510         definitions, since that's the preferred style in glibc.
54511         Fix a minor spacing issue, and update copyright notice to match
54512         glibc's.
54513
54514 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
54517
54518 2005-09-06  Simon Josefsson  <jas@extundo.com>
54519
54520         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
54521         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
54522
54523 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
54526         warning.
54527
54528 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54529
54530         * config/srclist.txt: Add glibc bug 1302.
54531
54532 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         Change bitset word type from unsigned int to unsigned long int,
54535         as this has better performance on typical 64-bit hosts.
54536         Port bitset code to hosts with unusual word sizes.
54537         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
54538         (build_collating_symbol):
54539         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
54540         argument is a bitset.  This is merely a style issue, but it makes
54541         it clearer that an entire array is expected.
54542         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
54543         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
54544         Port to the case where bitset_word is not the same as unsigned int.
54545         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54546         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
54547         Likewise.
54548         * lib/regexec.c (check_dst_limits_calc_pos_1,
54549         check_subexp_matching_top):
54550         (build_trtable, group_nodes_into_DFAstates):
54551         Likewise.
54552         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
54553         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
54554         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
54555         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
54556         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
54557         * lib/regcomp.c (optimize_subexps, lower_subexp):
54558         Work even if bitset_word has holes in its bitwise representation.
54559         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
54560         * lib/regexec.c (check_dst_limits_calc_pos_1,
54561         check_subexp_matching_top):
54562         Likewise.
54563         * lib/regex_internal.c (re_string_reconstruct):
54564         Don't assume UCHAR_MAX == 255.
54565         * lib/regex_internal.h (bitset_set_all): Likewise.
54566         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
54567         All uses changed.
54568         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
54569         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
54570         All uses changed.
54571         (BITSET_WORD_MAX): New macro.
54572         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
54573         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
54574         (bitset_empty, bitset_copy):
54575         Prefer sizeof (bitset) to multiplying it out ourselves.
54576         (bitset_not_merge): Remove; unused.
54577         (bitset_contain): Return bool, not unsigned int with one bit on.
54578         All callers changed.
54579         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
54580         alignment than re_node_set; do this by defining a new internal
54581         type struct dests_alloc and using it to allocate memory.
54582
54583 2005-09-05  Bruno Haible  <bruno@clisp.org>
54584
54585         * gnulib-tool (func_import): Fix comparison in handling of symbolic
54586         links.
54587
54588 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
54589
54590         * modules/size_max (Makefile.am): Add size_max.h
54591
54592 2005-09-04  Derek Price  <derek@ximbiot.com>
54593
54594         * gnulib-tool (func_import): Fix reversed $symbolic logic.
54595
54596 2005-09-03  Simon Josefsson  <jas@extundo.com>
54597
54598         * gnulib-tool: Fix typo.
54599
54600 2005-09-03  Simon Josefsson  <jas@extundo.com>
54601
54602         * config/srclist.txt: Add glibc bug 1293.
54603
54604 2005-09-03  Derek Price  <derek@ximbiot.com>
54605
54606         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
54607         From Larry Jones <lawrence.jones@ugs.com>.
54608
54609 2005-09-02  Simon Josefsson  <jas@extundo.com>
54610
54611         * modules/socklen: New file.
54612
54613 2005-09-02  Simon Josefsson  <jas@extundo.com>
54614
54615         * modules/havelib: New module.
54616
54617         * modules/gettext, modules/iconv, modules/lock, modules/readline:
54618         Use havelib.
54619
54620 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54621
54622         Check for arithmetic overflow when calculating sizes, to prevent
54623         some buffer-overflow issues.  These patches are conservative, in the
54624         sense that when I couldn't determine whether an overflow was possible,
54625         I inserted a run-time check.
54626         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
54627         macros.
54628         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
54629         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
54630         (re_xnrealloc, re_x2nrealloc): New inline functions.
54631         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
54632         parse_bracket_exp):
54633         (build_equiv_class, build_charclass): Check for arithmetic overflow
54634         in size expression calculations.
54635         * lib/regex_internal.c (re_string_realloc_buffers):
54636         (build_wcs_upper_buffer, re_node_set_add_intersect):
54637         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
54638         (re_dfa_add_node, register_state): Likewise.
54639         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
54640         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
54641         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
54642         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
54643
54644 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54645
54646         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54647         m4/ulonglong.m4.  Problem reported by Martin Lambers.
54648
54649 2005-09-02  Bruno Haible  <bruno@clisp.org>
54650
54651         Support for lib vs. lib64 distinction on biarch platforms.
54652         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
54653         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
54654         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
54655
54656 2005-09-02  Bruno Haible  <bruno@clisp.org>
54657
54658         * gnulib-tool (import): In the other first-use case, provide defaults
54659         as well.
54660
54661 2005-09-02  Bruno Haible  <bruno@clisp.org>
54662
54663         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
54664         patches not yet found in the latest gettext release.
54665
54666 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
54669         to avoid a collision with bits/local_lim.h in glibc.
54670         All uses changed.  Problem reported by Dmitry V. Levin in
54671         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
54672
54673         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
54674         bugs in int versus size_t comparisons.
54675         (re_string_context_at): Fix bug where the code assumed that
54676         Idx is signed.
54677
54678         Use bool where appropriate.
54679         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
54680         All callers changed.
54681         (calc_eclosure_iter): Likewise, for ROOT arg.
54682         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
54683         (build_charclass_op): Likewise, for NON_MATCH arg.
54684         * lib/regex_internal.c (re_string_allocate, re_string_construct):
54685         (re_string_construct_common): Likewise, for ICASE arg.
54686         * lib/regexec.c (re_search_2_stub, re_search_stub):
54687         Likewise, for RET_LEN arg.
54688         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
54689         (set_regs): Likewise, for FL_BACKTRACK arg.
54690         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
54691         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
54692         (calc_eclosure_iter, parse_bracket_exp):
54693         Use bool for internal variables that are booleans.
54694         * lib/regexec.c (re_search_internal, check_matching,
54695         proceed_next_node):
54696         (set_regs, build_sifted_states, sift_states_bkref):
54697         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
54698         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54699         (find_collation_sequence_value):
54700         Likewise.
54701         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
54702         (re_node_set_compare):
54703         Return bool, not int. All callers changed.
54704         * lib/regexec.c (check_halt_node_context, check_dst_limits):
54705         (build_trtable, check_node_accept): Likewise.
54706         * lib/regex_internal.h: Include stdbool.h.
54707
54708         Fix bugs uncovered when converting to bool.
54709         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
54710         failure instead of charging ahead blindly.
54711         * lib/regex_internal.c (register_state): Likewise.
54712         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
54713         for freeing internal storage.
54714         (group_nodes_into_DFA_states): Use unsigned int, not int, for
54715         bitset pieces used as boolean, to avoid undefined behavior
54716         on hosts that do int overflow checking.
54717
54718 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54719
54720         * config/srclist.txt: Add glibc bugs 1285-1287.
54721
54722 2005-09-01  Jim Meyering  <jim@meyering.net>
54723
54724         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
54725         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
54726         Require gl_STAT_MACROS, too.
54727
54728 2005-09-01  Bruno Haible  <bruno@clisp.org>
54729
54730         * gnulib-tool (import): In the first-use case, provide defaults.
54731
54732 2005-09-01  Bruno Haible  <bruno@clisp.org>
54733
54734         * gnulib-tool (func_import): Remove the .tmp files.
54735
54736 2005-09-01  Bruno Haible  <bruno@clisp.org>
54737
54738         * gnulib-tool (func_import): Fix handling of symbolic links.
54739
54740 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
54743         old glibc regex code mishandles strings longer than 2**31 bytes.
54744         This patch fixes this when the regex code is used in gnulib
54745         (i.e., outside glibc).
54746
54747         This patch should not affect the use of the regex code inside
54748         glibc.  No doubt this problem also needs to be handled for glibc
54749         as well, but the result will be an incompatible change to the
54750         glibc ABI, and the old ABI will have to be supported too.  That
54751         can be the the subject for another patch.
54752
54753         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
54754         governing whether the rest of this patch is active.  By default,
54755         the macro is disabled and the patch has no effect.
54756         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
54757         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
54758         (struct re_pattern_buffer, re_search, re_search_2, re_match):
54759         (re_match_2, re_set_registers): Use the new types.
54760         * lib/regex_internal.h (Idx, re_hashval_t): New types.
54761         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
54762         New macros.
54763         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
54764         (re_string_context_at, bin_tree_t, re_dfastate_t):
54765         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
54766         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
54767         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
54768         (re_string_char_size_at, re_string_wchar_at):
54769         (re_string_elem_size_at):
54770         Use the new types and macros to port to 64-bit hosts.
54771         Use unsigned types for internal values, so that the code
54772         mostly works even for arrays larger than SSIZE_MAX.
54773         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
54774         (search_duplicated_node, calc_eclosure_iter, fetch_number):
54775         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
54776         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
54777         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
54778         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
54779         (calc_inveclosure, parse_dup_op, build_range_exp):
54780         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
54781         (fetch_number, create_token_tree, mark_opt_subexp):
54782         Likewise.
54783         * lib/regex_internal.c (re_string_construct_common,
54784         create_ci_newstate):
54785         (create_cd_newstate, re_string_allocate, re_string_construct):
54786         (re_string_realloc_buffers, build_wcs_upper_buffer):
54787         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54788         (re_string_reconstruct, re_string_peek_byte_case):
54789         (re_string_fetch_byte_case, re_string_context_at):
54790         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54791         (re_node_set_init_copy, re_node_set_add_intersect):
54792         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54793         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54794         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54795         (re_acquire_state, re_acquire_state_context, register_state):
54796         Likewise.
54797         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
54798         search_cur_bkref_entry):
54799         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
54800         (re_search_internal, re_search_2_stub, re_search_stub)
54801         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
54802         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
54803         (update_cur_sifted_state, check_dst_limits):
54804         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54805         (check_subexp_limits, sift_states_bkref, merge_state_array):
54806         (check_subexp_matching_top, get_subexp, get_subexp_sub):
54807         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
54808         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54809         (expand_bkref_cache, check_node_accept_bytes):
54810         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
54811         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
54812         (acquire_init_state_context, check_halt_node_context):
54813         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
54814         (sift_states_backward, clean_state_log_if_needed):
54815         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
54816         (find_recover_state, transit_state_sb, transit_state_mb):
54817         (transit_state_bkref, build_trtable, match_ctx_clean):
54818         Likewise.
54819         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
54820         to work around an assumption that REG_MISSING is negative.
54821
54822         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
54823         (seek_collating_symbol_entry) [defined _LIBC]:
54824         (lookup_collation_sequence_value) [defined _LIBC]:
54825         (build_range_exp, build_collating_symbol) [defined _LIBC]:
54826         Use prototypes rather than old-style function definitions.
54827         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
54828         (transit_state_sb) [0]:
54829         (find_collation_sequence_value) [defined _LIBC]: Likewise.
54830
54831         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
54832         rm_eo.
54833
54834         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
54835         (optimize_subexps, lower_subexp):
54836         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
54837         since the signed shift might overflow.  Use 1u<<31 instead.
54838         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54839         Likewise.
54840         * lib/regexec.c (check_dst_limits_calc_pos_1,
54841         check_subexp_matching_top): Likewise.
54842
54843         * lib/regcomp.c (optimize_subexps, lower_subexp):
54844         Use CHAR_BIT rather than 8, for clarity.
54845         * lib/regexec.c (check_dst_limits_calc_pos_1):
54846         (check_subexp_matching_top): Likewise.
54847         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
54848         have to worry about portability issues when shifting it left.
54849         Remove no-longer-needed test for table_size > 0.
54850         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
54851         in a word, as the resulting behavior is undefined.
54852         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
54853         in one case, a <= should have been an <, and in another case the
54854         whole test was missing.
54855         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
54856         the standard name CHAR_BIT.
54857         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
54858         this is not true on one's complement and signed-magnitude hosts.
54859
54860         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
54861         next_last_offset.
54862         (struct re_dfa_t): Remove unused member states_alloc.
54863         * lib/regcomp.c (init_dfa): Don't initialize unused members.
54864
54865 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54866
54867         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
54868         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
54869         and large-file glibc and in 32-bit large-file Solaris.
54870
54871 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54872
54873         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
54874         lengths fit in regoff_t; this isn't true if regoff_t is the same
54875         width as size_t.
54876         * lib/regex.c (re_search_internal): 5th arg is LAST_START
54877         (= START + RANGE) instead of RANGE.  This avoids overflow
54878         problems when regoff_t is the same width as size_t.
54879         All callers changed.
54880         (re_search_2_stub): Check for overflow when adding the
54881         sizes of the two strings.
54882         (re_search_stub): Check for overflow when adding START
54883         to RANGE; if it occurs, substitute the extreme value.
54884
54885 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54886
54887         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
54888
54889 2005-08-31  Jim Meyering  <jim@meyering.net>
54890
54891         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
54892         a pointer-to-const.
54893         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
54894         (register_state): Likewise.
54895         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
54896         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54897         (group_nodes_into_DFAstates): Likewise.
54898
54899 2005-08-31  Jim Meyering  <jim@meyering.net>
54900
54901         * check-module: Add a FIXME comment.
54902
54903 2005-08-31  Eric Blake  <ebb9@byu.net>
54904
54905         * modules/unistd-safer (Files): Add unistd--.h.
54906         * modules/stdio-safer (Files): Add stdio--.h.
54907
54908 2005-08-31  Derek Price  <derek@ximbiot.com>
54909
54910         * lib/getdelim.c (getdelim): Return EOF on EOF.
54911         Reported by Larry Jones <lawrence.jones@ugs.com>.
54912
54913 2005-08-31  Bruno Haible  <bruno@clisp.org>
54914
54915         Avoid unnecessary diffs in the generated lib/Makefile.am.
54916         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
54917         the generated files.
54918         (func_import): Don't set cmd.
54919
54920 2005-08-31  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/strstr.c: Include <stddef.h>, for NULL.
54923         * lib/strcasestr.c: Likewise.
54924         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54925
54926 2005-08-31  Bruno Haible  <bruno@clisp.org>
54927
54928         * gnulib-tool: New option --macro-prefix.
54929         (func_import): Use macro_prefix.
54930         (import): Handle option --macro-prefix.
54931
54932 2005-08-31  Bruno Haible  <bruno@clisp.org>
54933
54934         * gnulib-tool (import): Rename most ac_* variables to cached_*.
54935         Also use new variables cached_lgpl, cached_libtool.
54936
54937 2005-08-31  Bruno Haible  <bruno@clisp.org>
54938
54939         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
54940         always instantiating them.
54941
54942 2005-08-31  Bruno Haible  <bruno@clisp.org>
54943
54944         * gnulib-tool (func_import): Read the previous cached settings
54945         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
54946         earlier added by gnulib but are now dropped. Warn when a gnulib file
54947         overwrites a non-gnulib file.
54948
54949 2005-08-31  Bruno Haible  <bruno@clisp.org>
54950
54951         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
54952         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
54953         projects that don't keep autogenerated files in CVS. Put into
54954         actioncmd only the specified modules, not the transitive closure.
54955
54956 2005-08-31  Bruno Haible  <bruno@clisp.org>
54957
54958         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
54959         Create directories that shall be filled.
54960         (import): Don't look for gl_* macros in configure.ac. Recurse across
54961         all directories containing a gnulib-cache.m4 files, if meaningful.
54962
54963 2005-08-31  Bruno Haible  <bruno@clisp.org>
54964
54965         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54966         (import): Set seen_libtool when we see gl_LIBTOOL.
54967
54968 2005-08-31  Bruno Haible  <bruno@clisp.org>
54969
54970         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54971         declaration macro definitions from generated gnulib.m4.
54972
54973 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54974
54975         * lib/iconvme.h: Add prototype for iconv_alloc.
54976
54977 2005-08-29  Simon Josefsson  <jas@extundo.com>
54978
54979         * lib/iconvme.c: Fix errno.
54980
54981 2005-08-29  Bruno Haible  <bruno@clisp.org>
54982
54983         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54984         that it works when the directory contains spaces.
54985
54986 2005-08-29  Bruno Haible  <bruno@clisp.org>
54987
54988         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54989
54990 2005-08-29  Bruno Haible  <bruno@clisp.org>
54991
54992         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54993         Emit more advice.
54994
54995 2005-08-29  Bruno Haible  <bruno@clisp.org>
54996         and Stepan Kasal  <kasal@ucw.cz>
54997
54998         * check-module: If more parameters are given, check each of them
54999         separately; add more exceptions, as noted by Jim Meyering.
55000         (check_module): New procedure.
55001         (%exempt_header): Now contains all exceptions.
55002
55003 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55004
55005         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55006
55007 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55008
55009         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55010
55011 2005-08-28  Bruno Haible  <bruno@clisp.org>
55012
55013         * m4/gnulib-tool.m4: New file.
55014
55015 2005-08-27  Jim Meyering  <jim@meyering.net>
55016
55017         * modules/unistd-safer (Files): Add pipe-safer.c.
55018         * modules/fcntl-safer (Files): Add creat-safer.c.
55019
55020 2005-08-27  Jim Meyering  <jim@meyering.net>
55021
55022         * m4/stdlib-safer.m4: New file.  From coreutils.
55023         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55024         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55025         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55026         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55027         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55028
55029 2005-08-27  Jim Meyering  <jim@meyering.net>
55030
55031         * lib/fopen-safer.c: Merge minor changes from coreutils.
55032         * lib/dup-safer.c: Likewise.
55033         * lib/fd-safer.c: Likewise.
55034
55035         Merge from coreutils.
55036         * lib/stdio--.h: New file.
55037         * lib/stdlib--.h: New file.
55038         * lib/mkstemp-safer.c: New file.
55039
55040         GNU tar needs these.
55041         * lib/pipe-safer.c: New file.
55042         * lib/creat-safer.c: New file.
55043         * lib/fcntl--.h (creat): Define to creat_safer.
55044         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55045         * lib/unistd--.h (pipe): Define to pipe_safer.
55046         * lib/unistd-safer.h: Declare pipe_safer.
55047
55048 2005-08-26  Simon Josefsson  <jas@extundo.com>
55049
55050         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55051         Haible <bruno@clisp.org>.
55052
55053 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55054
55055         * lib/regex_internal.h: Remove all references to
55056         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55057         or better.
55058         (bitset_not, bitset_merge, bitset_not_merge):
55059         (bitset_mask, re_string_allocate, re_string_construct):
55060         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55061         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55062         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55063         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55064         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55065         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55066         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55067         (re_acquire_state_context):
55068         Remove unnecessary forward decls.
55069         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55070         Put __attribute at function definition,
55071         now that the function decl has been removed.
55072         * lib/regex_internal.c (re_string_peek_byte_case):
55073         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55074         Likewise.
55075
55076 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55077
55078         * m4/regex.m4: Add AC_PREREQ(2.50).
55079         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55080
55081 2005-08-25  Simon Josefsson  <jas@extundo.com>
55082
55083         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55084         __fsetlocking.
55085
55086 2005-08-25  Simon Josefsson  <jas@extundo.com>
55087
55088         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55089         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55090         GLIBC specific code.
55091
55092 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55093
55094         Make regex safe for g++.  This fixes one real bug (an "err"
55095         that should have been "*err").  g++ problem reported by
55096         Sam Steingold.
55097         * lib/regex_internal.h (re_calloc): New macro, consistent with
55098         re_malloc etc.  All callers of calloc changed to use re_calloc.
55099         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55100         not int.  All callers changed.
55101         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55102         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55103         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55104         (find_recover_state): Change "err" to "*err"; this fixes what
55105         appears to be a real bug.
55106         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55107         versus int.
55108
55109 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * modules/regex (Depends-on): Add malloc, since the code
55112         assumes that !malloc(0) means failure.
55113
55114 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55115
55116         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55117
55118         alloca modernization/simplification for regex.
55119         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55120         needs to be at the start of the file, and can be moved into
55121         regex_internal.h and simplified.
55122         * lib/regex_internal.h: Include <alloca.h>.
55123         (__libc_use_alloca) [!defined _LIBC]: New macro.
55124         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55125         now works outside glibc.
55126
55127 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * config/srclist.txt: Add glibc bugs 1241, 1245.
55130
55131 2005-08-25  Jim Meyering  <jim@meyering.net>
55132
55133         * lib/open-safer.c: Include <config.h>.
55134         Otherwise, we'd lose LARGEFILE support in any file using
55135         e.g. "fcntl--.h"
55136
55137 2005-08-25  Bruno Haible  <bruno@clisp.org>
55138
55139         * m4/minmax.m4: Require autoconf 2.52.
55140         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55141         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55142         alternatives of translit over the alphabet.
55143         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55144
55145 2005-08-24  Simon Josefsson  <jas@extundo.com>
55146
55147         * tests/test-getpass.c: New file.
55148
55149 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55150
55151         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55152         for GNU regex features.
55153
55154 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55155
55156         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55157         * lib/regex.h (regerror): Likewise.
55158
55159         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55160         requires this.  (The code never needed it.)
55161
55162         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55163         All uses of recently-renamed identifiers changed to use the new,
55164         POSIX-compliant names.  The code will build and run just fine
55165         without these changes, but it's better to eat our own dog food
55166         and use the standard-conforming names.
55167
55168         * lib/regex.h: Fix a multitude of POSIX name space violations.
55169         These changes have an effect only for programs that define
55170         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55171         do not change anything for programs compiled in the normal way.
55172         Also, there is no effect on the ABI.
55173
55174         (_REGEX_SOURCE): New macro.
55175         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55176         defined and _GNU_SOURCE is not; this fixes a name space violation.
55177
55178         Rename the following macros to obey POSIX requirements.
55179         The old names are still visible as macros if _REGEX_SOURCE is defined.
55180         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55181         RE_BACKSLASH_ESCAPE_IN_LISTS.
55182         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55183         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55184         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55185         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55186         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55187         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55188         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55189         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55190         (REG_INTERVALS): renamed from RE_INTERVALS.
55191         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55192         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55193         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55194         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55195         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55196         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55197         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55198         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55199         RE_UNMATCHED_RIGHT_PAREN_ORD.
55200         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55201         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55202         (REG_DEBUG): renamed from RE_DEBUG.
55203         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55204         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55205         unusual, since we can't clash with the POSIX REG_ICASE.
55206         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55207         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55208         (REG_NO_SUB): renamed from RE_NO_SUB.
55209         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55210         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55211         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55212         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55213         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55214         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55215         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55216         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55217         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55218         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55219         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55220         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55221         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55222         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55223         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55224         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55225         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55226         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55227         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55228         (REG_FIXED): Renamed from REGS_FIXED.
55229         (REG_NREGS): Renamed from RE_NREGS.
55230
55231         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55232         of other REG_* macros, since POSIX says the user is allowed to
55233         #undef these macros selectively.
55234
55235         (reg_errcode_t): Update comment stating what other tables need
55236         to be consistent.
55237
55238         Rename the following enum values to obey POSIX requirements.
55239         The old names are still visible as macros.
55240         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55241         is not defined, since GNU is supposed to be a superset of POSIX as
55242         much as possible, and since we want reg_errcode_t to be a signed
55243         type for implementation consistency.
55244         (_REG_NOERROR): Renamed from REG_NOERROR.
55245         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55246         (_REG_BADPAT): Renamed from REG_BADPAT.
55247         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55248         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55249         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55250         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55251         (_REG_EBRACK): Renamed from REG_EBRACK.
55252         (_REG_EPAREN): Renamed from REG_EPAREN.
55253         (_REG_EBRACE): Renamed from REG_EBRACE.
55254         (_REG_BADBR): Renamed from REG_BADBR.
55255         (_REG_ERANGE): Renamed from REG_ERANGE.
55256         (_REG_ESPACE): Renamed from REG_ESPACE.
55257         (_REG_BADRPT): Renamed from REG_BADRPT.
55258         (_REG_EEND): Renamed from REG_EEND.
55259         (_REG_ESIZE): Renamed from REG_ESIZE.
55260         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55261         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55262         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55263         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55264         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55265
55266         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55267         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55268         changed.  But support the old name if the new one is not defined
55269         and if _REGEX_SOURCE.
55270
55271         Change the following member names in struct re_pattern_buffer.
55272         The old names are still supported if !_REGEX_SOURCE.
55273         The new names are always supported, regardless of _REGEX_SOURCE.
55274         (re_buffer): Renamed from buffer.
55275         (re_allocated): Renamed from allocated.
55276         (re_used): Renamed from used.
55277         (re_syntax): Renamed from syntax.
55278         (re_fastmap): Renamed from fastmap.
55279         (re_translate): Renamed from translate.
55280         (re_can_be_null): Renamed from can_be_null.
55281         (re_regs_allocated): Renamed from regs_allocated.
55282         (re_fastmap_accurate): Renamed from fastmap_accurate.
55283         (re_no_sub): Renamed from no_sub.
55284         (re_not_bol): Renamed from not_bol.
55285         (re_not_eol): Renamed from not_eol.
55286         (re_newline_anchor): Renamed from newline_anchor.
55287
55288         Change the following member names in struct re_registers.
55289         The old names are still supported if !_REGEX_SOURCE.
55290         The new names are always supported, regardless of _REGEX_SOURCE.
55291         (rm_num_regs): Renamed from num_regs.
55292         (rm_start): Renamed from start.
55293         (rm_end): Renamed from end.
55294
55295         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55296         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55297         Prepend __ to parameter names.
55298
55299         Undo yesterday's changes.
55300
55301 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55302
55303         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55304         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55305         lib/regex.c.
55306
55307 2005-08-24  Jim Meyering  <jim@meyering.net>
55308
55309         Sync from coreutils.
55310         * m4/fcntl-safer.m4: New file.
55311
55312         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55313         and object files for this module.
55314
55315 2005-08-24  Jim Meyering  <jim@meyering.net>
55316
55317         Sync from coreutils.
55318         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55319
55320 2005-08-24  Jim Meyering  <jim@meyering.net>
55321
55322         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55323         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55324
55325 2005-08-24  Jim Meyering  <jim@meyering.net>
55326
55327         * modules/fcntl-safer: New module.
55328         * modules/fts (Depends-on): Add fcntl-safer.
55329         * MODULES.html.sh (File descriptor based Input/Output):
55330         Add fcntl-safer.
55331
55332 2005-08-24  Bruno Haible  <bruno@clisp.org>
55333
55334         Support for unit test modules.
55335         * modules/README: Mention tests modules.
55336         * modules/TEMPLATE-TESTS: New file.
55337         * gnulib-tool: New options --extract-tests-module, --with-tests and
55338         --tests-base (unused for the moment).
55339         (testsbase, inctests): New variables.
55340         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55341         (func_verify_module): Exclude TEMPLATE-TESTS.
55342         (func_verify_nontests_module, func_verify_tests_module): New functions.
55343         (func_get_dependencies): Add implicit dependency for tests modules.
55344         (func_get_tests_module): New function.
55345         (func_modules_transitive_closure): When --with-tests was specified,
55346         include the unit tests as well, unless explicitly avoided.
55347         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55348         (func_emit_tests_Makefile_am): New function.
55349         (func_create_testdir): When --with-tests was specified, emit a
55350         tests/ directory.
55351         * MODULES.html.sh (Future developments): Update.
55352
55353 2005-08-24  Bruno Haible  <bruno@clisp.org>
55354
55355         * modules/tls-tests: New file.
55356         * tests/test-tls.c: New file, from GNU gettext.
55357
55358 2005-08-24  Bruno Haible  <bruno@clisp.org>
55359
55360         * modules/lock-tests: New file.
55361         * tests/test-lock.c: New file, from GNU gettext.
55362
55363 2005-08-24  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/lock.h: Add multiple inclusion guard.
55366         * lib/tls.h: Add multiple inclusion guard.
55367
55368 2005-08-24  Bruno Haible  <bruno@clisp.org>
55369
55370         * gnulib-tool: Add support for the --aux-dir option to
55371         --create-testdir, --create-megatestdir, --test, --megatest.
55372         (func_create_testdir, func_create_megatestdir): Optionally emit a
55373         AC_CONFIG_AUX_DIR directive.
55374         (create-testdir, create-megatestdir, test, megatest): Provide a
55375         default value for $auxdir.
55376
55377 2005-08-24  Bruno Haible  <bruno@clisp.org>
55378
55379         * gnulib-tool (import): Use compound statement instead of subshell
55380         where possible.
55381
55382 2005-08-24  Bruno Haible  <bruno@clisp.org>
55383
55384         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55385
55386 2005-08-24  Bruno Haible  <bruno@clisp.org>
55387
55388         * gnulib-tool (func_version): Update.
55389
55390 2005-08-24  Bruno Haible  <bruno@clisp.org>
55391
55392         * gnulib-tool (func_import, func_create_testdir,
55393         func_create_megatestdir): Quote all autoconf macro arguments.
55394
55395 2005-08-24  Bruno Haible  <bruno@clisp.org>
55396
55397         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55398         option --force, because --force causes the aclocal.m4 of each
55399         subdirectory to be newer than the corresponding config.h.in.
55400
55401 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55402
55403         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
55404         All contents moved to gl_REGEX.
55405         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
55406         assume that it does.
55407
55408 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55409
55410         * lib/regex.h (REG_NOSYS)
55411         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
55412         Define, since POSIX requires it as of 2001.
55413         (_REG_ENOSYS)
55414         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
55415         New private symbol, used to keep the enum signed in all cases.
55416         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
55417         Youngman in
55418         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
55419
55420         * lib/regex_internal.c (re_string_skip_chars, register_state):
55421         (calc_state_hash):
55422         Remove forward decls; no longer needed now that we use prototypes.
55423         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
55424         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
55425         (clean_state_log_if_needed): Likewise.
55426
55427 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55428
55429         * config/srclist.txt: Add glibc bugs 1231-1233.
55430
55431 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55432
55433         Fix problems reported by Sam Steingold in
55434         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
55435         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
55436         assumed that reg_errcode_t is a signed type, which is not
55437         necessarily true if _XOPEN_SOURCE is not defined.
55438         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
55439         since some compilers warn about it otherwise.
55440
55441 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
55444         (init_word_char, create_initial_state, duplicate_node_closure):
55445         (fetch_token, peek_token_bracket, build_range_exp):
55446         (build_collating_symbol): Remove forward decls; no longer needed
55447         now that we use prototypes.
55448
55449         * lib/regcomp.c:
55450         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
55451         (re_compile_fastmap_iter, regcomp, regerror, regfree):
55452         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
55453         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
55454         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
55455         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
55456         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
55457         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
55458         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
55459         (build_range_exp, build_collating_symbol, parse_bracket_exp):
55460         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
55461         (build_charclass, build_charclass_op, fetch_number, create_tree):
55462         (create_token_tree, mark_opt_subexp, duplicate_tree):
55463         Use prototypes rather than old-style definitions.
55464
55465         * lib/regex_internal.c:
55466         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
55467         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
55468         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55469         (re_string_reconstruct, re_string_peek_byte_case):
55470         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
55471         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55472         (re_node_set_init_copy, re_node_set_add_intersect):
55473         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55474         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55475         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55476         (re_acquire_state, re_acquire_state_context, register_state):
55477         (create_ci_newstate, create_cd_newstate, free_state):
55478         Likewise.
55479         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
55480         re_search_2):
55481         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
55482         (re_search_internal, prune_impossible_nodes):
55483         (acquire_init_state_context, check_matching, static):
55484         (check_halt_node_context, check_halt_state_context, proceed_next_node):
55485         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
55486         (update_regs, sift_states_backward, build_sifted_states):
55487         (clean_state_log_if_needed, merge_state_array):
55488         (update_cur_sifted_state, add_epsilon_src_nodes):
55489         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
55490         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
55491         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
55492         (find_recover_state, check_subexp_matching_top, transit_state_mb):
55493         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
55494         (check_arrival, check_arrival_add_next_nodes):
55495         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55496         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55497         (check_node_accept_bytes, check_node_accept, extend_buffers):
55498         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
55499         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
55500         (sift_ctx_init):
55501         Likewise.
55502
55503         * lib/regex_internal.h:
55504         (re_string_allocate, re_string_construct, re_string_reconstruct):
55505         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
55506         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
55507         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
55508         (re_string_context_at, re_string_peek_byte_case):
55509         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
55510         is defined, since we now use prototypes always.
55511
55512         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
55513         C89 or better.  All uses removed.
55514
55515 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55516
55517         * config/srclist.txt: Add glibc bugs 1220-1227.
55518
55519 2005-08-20  Jim Meyering  <jim@meyering.net>
55520
55521         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
55522         of unused local, dfa.
55523
55524 2005-08-20  Bruno Haible  <bruno@clisp.org>
55525
55526         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
55527
55528 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55529
55530         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
55531         (re_node_set_insert_last, re_dfa_add_node):
55532         Rename local variables to avoid GCC shadowing warnings.
55533
55534 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55535
55536         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
55537         [defined lint]: Suppress bogus uninitialized-variable warnings.
55538
55539         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
55540         and let the caller return REG_ESPACE if out of space.  This
55541         removes an uninitialied-variable warning with GCC 4.0.1, and also
55542         avoids taking the address of a local variable.  All callers
55543         changed.
55544
55545 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
55548         $LIBCSRC/posix/regexec.c.
55549         Add glibc bug 1217 for regcomp.c.
55550
55551 2005-08-19  Jim Meyering  <jim@meyering.net>
55552
55553         * lib/regexec.c (proceed_next_node): Redo local variables to
55554         avoid GCC shadowing warnings.
55555
55556 2005-08-18  Bruno Haible  <bruno@clisp.org>
55557
55558         * lib/strstr.c (strstr): Fix return value in multibyte case.
55559         * lib/strcasestr.c (strcasestr): Likewise.
55560
55561 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
55564
55565 2005-08-17  Jim Meyering  <jim@meyering.net>
55566
55567         Make the %s format (seconds since the epoch) work for a negative
55568         number and when used with a zero-padded field width, e.g. %015s.
55569
55570         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
55571         label so that it precedes the code to set `digits'.  Otherwise,
55572         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
55573         print `00-22'.  Now, it prints `-0022', as it should.
55574
55575 2005-08-17  Bruno Haible  <bruno@clisp.org>
55576
55577         * modules/strstr (Files): Add m4/mbrtowc.m4.
55578         (Depends-on): Add mbuiter.
55579
55580 2005-08-17  Bruno Haible  <bruno@clisp.org>
55581
55582         * modules/strcasestr: New file.
55583         * MODULES.html.sh (String handling, based on ANSI C 89): Add
55584         strcasestr.
55585
55586 2005-08-17  Bruno Haible  <bruno@clisp.org>
55587
55588         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
55589
55590 2005-08-17  Bruno Haible  <bruno@clisp.org>
55591
55592         * modules/mbuiter: New file.
55593         * MODULES.html.sh (Extended multibyte and wide character utilities):
55594         Add mbuiter.
55595
55596 2005-08-17  Bruno Haible  <bruno@clisp.org>
55597
55598         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
55599         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
55600
55601 2005-08-17  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/strcasestr.m4: New file.
55604
55605 2005-08-17  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
55608         * lib/strstr.c: Completely rewritten, with multibyte locale support.
55609
55610 2005-08-17  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/strcasestr.h: New file.
55613         * lib/strcasestr.c: New file.
55614
55615 2005-08-17  Bruno Haible  <bruno@clisp.org>
55616
55617         * lib/strcasecmp.c: Use mbuiter.h.
55618
55619 2005-08-17  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/mbuiter.h: New file.
55622
55623 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55624
55625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
55626         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
55627         and gl_GETOPT are both invoked via different paths (as happens
55628         with GNU tar CVS because it uses both argp and getopt), the former
55629         wins.
55630
55631 2005-08-16  Bruno Haible  <bruno@clisp.org>
55632
55633         * modules/tls: New file.
55634         * MODULES.html.sh (Multithreading): Add tls.
55635
55636 2005-08-16  Bruno Haible  <bruno@clisp.org>
55637
55638         * modules/strnlen1: New file.
55639         * MODULES.html.sh (String handling): Add strnlen1.
55640
55641 2005-08-16  Bruno Haible  <bruno@clisp.org>
55642
55643         * modules/strcase (Files): Add m4/mbrtowc.m4.
55644         (Depends-on): Add strnlen1, mbchar.
55645
55646 2005-08-16  Bruno Haible  <bruno@clisp.org>
55647
55648         * modules/mbiter: New file.
55649         * MODULES.html.sh (Extended multibyte and wide character utilities):
55650         Add mbiter.
55651
55652 2005-08-16  Bruno Haible  <bruno@clisp.org>
55653
55654         * modules/mbfile: New file.
55655         * MODULES.html.sh (Extended multibyte and wide character utilities):
55656         Add mbfile.
55657
55658 2005-08-16  Bruno Haible  <bruno@clisp.org>
55659
55660         * modules/mbchar: New file.
55661         * MODULES.html.sh (Extended multibyte and wide character utilities):
55662         New section.
55663
55664 2005-08-16  Bruno Haible  <bruno@clisp.org>
55665
55666         * m4/tls.m4: New file, from GNU gettext.
55667
55668 2005-08-16  Bruno Haible  <bruno@clisp.org>
55669
55670         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
55671         always.
55672         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
55673
55674 2005-08-16  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/mbiter.m4: New file.
55677
55678 2005-08-16  Bruno Haible  <bruno@clisp.org>
55679
55680         * m4/mbfile.m4: New file.
55681
55682 2005-08-16  Bruno Haible  <bruno@clisp.org>
55683
55684         * m4/mbchar.m4: New file.
55685
55686 2005-08-16  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/tls.h: New file, from GNU gettext.
55689         * lib/tls.c: New file, from GNU gettext.
55690
55691 2005-08-16  Bruno Haible  <bruno@clisp.org>
55692
55693         * lib/strnlen1.h: New file.
55694         * lib/strnlen1.c: New file.
55695
55696 2005-08-16  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
55699         (mbi_init): Update.
55700         (mbi_avail, mbi_advance): Let the iteration end before the terminating
55701         NUL byte, not after it.
55702
55703 2005-08-16  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/strcase.h (strcasecmp): Add note in comments.
55706         * lib/strncasecmp.c: Use code from strcasecmp.c.
55707         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
55708         (strcasecmp): Work correctly in multibyte locales.
55709
55710 2005-08-16  Bruno Haible  <bruno@clisp.org>
55711
55712         * lib/mbiter.h: New file.
55713
55714 2005-08-16  Bruno Haible  <bruno@clisp.org>
55715
55716         * lib/mbfile.h: New file.
55717
55718 2005-08-16  Bruno Haible  <bruno@clisp.org>
55719
55720         * lib/mbchar.h: New file.
55721         * lib/mbchar.c: New file.
55722
55723 2005-08-16  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
55726         the valid ones. Makes the comparison operations transitive:
55727         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
55728         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
55729
55730 2005-08-15  Simon Josefsson  <jas@extundo.com>
55731
55732         * modules/ssize_t (License): Change to 'unlimited'.
55733
55734         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
55735
55736 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55737
55738         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
55739         Add comments for each pending glibc patch.
55740
55741 2005-08-15  Bruno Haible  <bruno@clisp.org>
55742
55743         * lib/regex.h (__restrict_arr): Don't define to __restrict if
55744         __cplusplus is defined.
55745
55746 2005-08-14  Jim Meyering  <jim@meyering.net>
55747
55748         Sync from coreutils.
55749
55750         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
55751         Use the hash-table-based cycle-detection code not just when
55752         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
55753         Reported by James Youngman in
55754         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
55755         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
55756         FTS_TIGHT_CYCLE_CHECK.
55757         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
55758         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
55759         once again.
55760         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
55761         * lib/fts.c (fd_safer): Remove decl.
55762         Include fcntl--.h rather than unistd-safer.h
55763         (fts_safe_changedir): Don't call fd_safer; no longer needed
55764         now that we include fcntl--.h.
55765
55766 2005-08-12  Simon Josefsson  <jas@extundo.com>
55767
55768         * modules/getndelim2: Use ssize_t module.
55769         * modules/getnline: Likewise.
55770         * modules/safe-read: Likewise.
55771         * modules/xreadlink: Likewise.
55772
55773         * modules/ssize_t: New file.
55774
55775 2005-08-12  Simon Josefsson  <jas@extundo.com>
55776
55777         * m4/readline.m4: Look for termcap, curses or ncurses if required.
55778
55779 2005-08-12  Simon Josefsson  <jas@extundo.com>
55780
55781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55782         ssize_t.
55783
55784 2005-08-12  Simon Josefsson  <jas@extundo.com>
55785
55786         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
55787         readline, getdelim and check_version.
55788         (Support for systems lacking ISO C 99: Sizes of integer types):
55789         Add size_max.
55790
55791 2005-08-12  Bruno Haible  <bruno@clisp.org>
55792
55793         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
55794
55795 2005-08-11  Simon Josefsson  <jas@extundo.com>
55796
55797         * modules/readline: New file.
55798
55799         * modules/strnlen (Files): Add strnlen.h.
55800
55801 2005-08-11  Simon Josefsson  <jas@extundo.com>
55802
55803         * m4/readline.m4: New file.
55804
55805 2005-08-11  Simon Josefsson  <jas@extundo.com>
55806
55807         * lib/readline.h, readline.c: New file.
55808
55809 2005-08-11  Simon Josefsson  <jas@extundo.com>
55810
55811         * doc/gnulib.texi (Initial import, Finishing touches): Mention
55812         gl_AVOID.
55813
55814 2005-08-11  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/strnlen.h (strnlen): Change parameter name to match comment.
55817
55818 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
55819
55820         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
55821
55822 2005-08-10  Simon Josefsson  <jas@extundo.com>
55823
55824         * tests/test-iconvme.c: New file.
55825
55826 2005-08-10  Simon Josefsson  <jas@extundo.com>
55827
55828         * m4/strnlen.m4: New file.
55829
55830         * m4/strndup.m4: Don't check for strnlen declaration, done in
55831         strnlen.m4.
55832
55833 2005-08-10  Simon Josefsson  <jas@extundo.com>
55834
55835         * lib/strndup.c: Use strnlen.h.
55836
55837         * lib/strnlen.h: New file.
55838
55839 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55840
55841         * README: Typos.
55842
55843 2005-08-02  Simon Josefsson  <jas@extundo.com>
55844
55845         * modules/readline: New file.
55846
55847 2005-08-02  Simon Josefsson  <jas@extundo.com>
55848
55849         * modules/getdelim: New file.
55850
55851         * modules/getline: Rewrite, don't use getndelim2.
55852
55853 2005-08-02  Simon Josefsson  <jas@extundo.com>
55854
55855         * m4/getline.m4: Separate out getdelim stuff into separate module.
55856
55857         * m4/getdelim.m4: New file.
55858
55859 2005-08-02  Simon Josefsson  <jas@extundo.com>
55860
55861         * lib/getline.h, getline.c: Rewrite.
55862
55863         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
55864
55865 2005-07-31  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/lock.h (gl_lock_initializer): New macro.
55868         (gl_lock_define_initialized): Use it.
55869         (gl_rwlock_initializer): New macro.
55870         (gl_rwlock_define_initialized): Use it.
55871         (gl_recursive_lock_initializer): New macro.
55872         (gl_recursive_lock_define_initialized): Use it.
55873
55874 2005-07-30  Karl Berry  <karl@gnu.org>
55875
55876         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
55877         Report from Ben Pfaff, regarding getopt.
55878
55879 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
55880
55881         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
55882         normal way.
55883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
55884         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
55885         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
55886         (gl_GETOPT): Use the new macros.  Most of the implementation
55887         is moved to the new macros.  This is for programs like Emacs
55888         that don't want all the functionality of gl_GETOPT.
55889
55890 2005-07-26  Bruno Haible  <bruno@clisp.org>
55891
55892         * m4/lock.m4: Update from GNU gettext.
55893
55894 2005-07-26  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/lock.h: Update from GNU gettext.
55897         * lib/lock.c: Update from GNU gettext.
55898
55899 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
55902         obsolescent AC_TRY_RUN.  Include the default includes files, for
55903         'exit'.
55904
55905 2005-07-24  Bruno Haible  <bruno@clisp.org>
55906
55907         * modules/visibility: New file.
55908         * MODULES.html.sh (Misc): Add visibility.
55909
55910 2005-07-24  Bruno Haible  <bruno@clisp.org>
55911
55912         * m4/visibility.m4: New file.
55913
55914 2005-07-24  Bruno Haible  <bruno@clisp.org>
55915
55916         * doc/visibility.texi: New file.
55917
55918 2005-07-22  Bruno Haible  <bruno@clisp.org>
55919
55920         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
55921         $(ALLOCA_H), redundant through BUILT_SOURCES.
55922         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
55923         redundant through BUILT_SOURCES.
55924         * modules/byteswap (Makefile.am): Remove explicit dependency on
55925         $(BYTESWAP_H), redundant through BUILT_SOURCES.
55926         * modules/fnmatch (Makefile.am): Remove explicit dependency on
55927         $(FNMATCH_H), redundant through BUILT_SOURCES.
55928         * modules/getopt (Makefile.am): Remove explicit dependency on
55929         $(GETOPT_H), redundant through BUILT_SOURCES.
55930         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
55931         redundant through BUILT_SOURCES.
55932         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
55933         redundant through BUILT_SOURCES.
55934         * modules/stdbool (Makefile.am): Remove explicit dependency on
55935         $(STDBOOL_H), redundant through BUILT_SOURCES.
55936         * modules/stdint (Makefile.am): Remove explicit dependency on
55937         $(STDINT_H), redundant through BUILT_SOURCES.
55938         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
55939         Remove explicit dependency on $(SYSEXITS_H).
55940         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
55941
55942 2005-07-18  Simon Josefsson  <jas@extundo.com>
55943
55944         * lib/check-version.c (check_version): Accept identical versions too.
55945
55946 2005-07-18  Bruno Haible  <bruno@clisp.org>
55947
55948         * modules/lock: New file.
55949         * MODULES.html.sh (Multithreading): New section.
55950
55951 2005-07-18  Bruno Haible  <bruno@clisp.org>
55952
55953         * m4/lock.m4: New file, from GNU gettext.
55954
55955 2005-07-18  Bruno Haible  <bruno@clisp.org>
55956
55957         * lib/lock.h: New file, from GNU gettext.
55958         * lib/lock.c: New file, from GNU gettext.
55959
55960 2005-07-18  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/lock.h (gl_once_t): New type.
55963         (gl_once_define, gl_once): New macros.
55964         * lib/lock.c (fresh_once): New variable.
55965         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55966         functions.
55967
55968 2005-07-16  Simon Josefsson  <jas@extundo.com>
55969
55970         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55971         workaround, suggested by Bruno.
55972
55973 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55974
55975         * modules/xalloc (Depends-on): Add xalloc-die.
55976         * modules/xvasprintf (Depends-on): Add xalloc-die.
55977
55978 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55979
55980         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55981         with a minor change.
55982
55983 2005-07-15  Bruno Haible  <bruno@clisp.org>
55984
55985         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55986         When using lib/poll.c, define poll as rpl_poll.
55987
55988 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55989
55990         * modules/argp (Depends-on): Remove unlocked-io.
55991
55992 2005-07-14  Derek Price  <derek@ximbiot.com>
55993
55994         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55995         for glob symlink bug.
55996
55997 2005-07-14  Bruno Haible  <bruno@clisp.org>
55998
55999         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56000         Instead, test for *_unlocked function declarations directly.
56001
56002 2005-07-11  Simon Josefsson  <jas@extundo.com>
56003
56004         * modules/size_max: New file.
56005
56006         * modules/xsize: Depend on size_max module for size_max.m4.
56007
56008 2005-07-11  Simon Josefsson  <jas@extundo.com>
56009
56010         * lib/size_max.h: New file.
56011
56012 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56013
56014         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56015         copyright symbol and the year.
56016         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56017         (version_etc_va): Use parameterized copyright notice.
56018         Reword to conform to the current GNU coding standards.
56019
56020 2005-07-11  Karl Berry  <karl@gnu.org>
56021
56022         * doc/gnulib.texi (Quoting): new node.
56023         (Initial import): more info, from Patrice.
56024
56025 2005-07-11  Bruno Haible  <bruno@clisp.org>
56026
56027         * gnulib-tool (func_usage): Document option --avoid.
56028         (Command line options): Handle --avoid.
56029         (func_acceptable): New function.
56030         (func_modules_transitive_closure): Use it.
56031
56032 2005-07-11  Bruno Haible  <bruno@clisp.org>
56033
56034         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56035         Reported by Jim Meyering.
56036
56037 2005-07-10  Bruno Haible  <bruno@clisp.org>
56038
56039         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56040         Needed when size_t is smaller than 'unsigned int'.
56041         Reported by Paul Eggert.
56042
56043 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56044
56045         * modules/argp (Depends-on): Add unlocked-io
56046
56047 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56048
56049         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56050         block of defines.
56051
56052 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56053
56054         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56055         fix now.
56056
56057 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56058         and Paul Eggert  <eggert@cs.ucla.edu>
56059
56060         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56061         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56062
56063 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56064
56065         * modules/regex (Files): Add lib/regex_internal.c,
56066         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56067         (Depends-on): Add extensions.
56068         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56069
56070 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56071
56072         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56073         pathconf.
56074         * m4/same.m4 (gl_SAME): Likewise.
56075         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56076
56077         * m4/regex.m4: Adjust to new libc regex implementation.
56078         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56079         all the .c and .h parts of (the new) regex.
56080         Quote the m4 stuff better.
56081         Check for RE_ICASE bug of old gnulib.
56082         Check for REG_STARTEND of recent libc.
56083         Rename local variables from jm_* to gl_*.
56084         Quote operand of "test -f".
56085         Say "recent enough" version of libc, not "version 2".
56086         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56087         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56088         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56089         Remove check for btowc, isascii.
56090         Require AM_LANGINFO_CODESET.
56091
56092 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56093
56094         * lib/regex.c, regex.h: Sync from libc.
56095         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56096         * lib/regexec.c:
56097         New files, synced from libc, except that regex_internal.h
56098         currently has a small porting fix.
56099
56100 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56103         regex_internal.c, regexec.c.
56104         Add regex_internal.h too, but as a comment, since the libc version
56105         is currently broken in gnulib mode.
56106
56107 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56108
56109         Support programs like Emacs that use gnulib but not gettext.
56110         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56111         * modules/gettext-h: New file.
56112         * modules/gettext (Files): Remove lib/gettext.h.
56113         (Depends-on): Add gettext-h.
56114         (Makefile.am): Remove lib_SOURCES.
56115         * modules/argmatch, modules/c-stack, modules/closeout:
56116         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56117         * modules/execute, modules/file-type, modules/getaddrinfo:
56118         * modules/getopt, modules/human, modules/javacomp:
56119         * modules/javaexec, modules/mkdir-p, modules/obstack:
56120         * modules/openat, modules/pagealign_alloc, modules/pipe:
56121         * modules/quotearg, modules/regex, modules/rpmatch:
56122         * modules/unicodeio, modules/userspec, modules/version-etc:
56123         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56124         * modules/xsetenv:
56125         Depend on gettext-h, not gettext.
56126
56127 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         * gnulib-tool (func_import): Add support for 'public domain' license.
56130         * modules/alloca, modules/atexit, modules/memmove:
56131         Now public domain, not GPL.
56132         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56133         * modules/realloc, modules/strerror, modules/strtod:
56134         Now LGPL, not GPL.
56135
56136 2005-07-05  Bruno Haible  <bruno@clisp.org>
56137
56138         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56139         autoconf CVS. Needed for mingw.
56140
56141 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56142
56143         Remove the dependency of the strftime module on the tzset module.
56144         * modules/strftime (Depends-on): Remove dependency on tzset.
56145
56146 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56147
56148         Remove the dependency of the strftime module on the tzset module.
56149         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56150         gl_FUNC_TZSET_CLOBBER.
56151
56152 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56153
56154         Remove the dependency of the strftime module on the tzset module.
56155         * lib/strftime.c (my_strftime)
56156         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56157         Copy the input structure, to work around some of the bug with
56158         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56159         Solaris releases, you should also use the tzset module, but we won't
56160         require it as a dependency any more since we don't want LGPLed code
56161         to depend on GPLed code.
56162
56163 2005-07-02  Jim Meyering  <jim@meyering.net>
56164
56165         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56166         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56167         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56168         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56169
56170 2005-07-02  Jim Meyering  <jim@meyering.net>
56171
56172         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56173
56174 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56175
56176         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56177         declares only 'struct timespec;' (!).
56178
56179 2005-07-01  Jim Meyering  <jim@meyering.net>
56180
56181         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56182         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56183         * lib/save-cwd.c, tempname.c:
56184         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56185         and don't include <sys/file.h>).
56186
56187 2005-06-29  Jim Meyering  <jim@meyering.net>
56188
56189         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56190         type name.  Use the variable name instead.
56191         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56192         Likewise.
56193
56194 2005-06-28  Simon Josefsson  <jas@extundo.com>
56195
56196         * modules/check-version (Files): Add check-version.m4.
56197
56198 2005-06-28  Simon Josefsson  <jas@extundo.com>
56199
56200         * m4/check-version.m4: New file, suggested by Jim Meyering
56201         <jim@meyering.net>.
56202
56203 2005-06-28  Simon Josefsson  <jas@extundo.com>
56204
56205         * lib/check-version.h, lib/check-version.c: New files.
56206
56207 2005-06-28  Simon Josefsson  <jas@extundo.com>
56208
56209         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56210         collision with global variable.  Better indentation.  Don't
56211         increment buffer pointer beyond buffer end.  Based on comments
56212         from Paul Eggert <eggert@cs.ucla.edu>.
56213
56214         * lib/base64.h: Indent.
56215
56216 2005-06-28  Simon Josefsson  <jas@extundo.com>
56217
56218         * doc/gnulib.texi (Library version handling): New section.
56219
56220 2005-06-28  Jim Meyering  <jim@meyering.net>
56221
56222         * check-module (find_included_lib_files): Hard-code another
56223         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56224         but modules/fts-lgpl (correctly) does not list those files.
56225
56226         * modules/canonicalize (Files): Add lib/pathmax.h.
56227
56228 2005-06-25  Simon Josefsson  <jas@extundo.com>
56229
56230         * modules/check-version: New file.
56231
56232 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56233
56234         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56235         initializer of struct addrinfo, as an indication that we don't
56236         care how many members the structure has.
56237
56238 2005-06-24  Derek Price  <derek@ximbiot.com>
56239         and Bruno Haible  <bruno@clisp.org>
56240
56241         Remove stat module & update lstat.
56242         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56243         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56244         * m4/stat.m4: Remove this file.
56245
56246 2005-06-24  Derek Price  <derek@ximbiot.com>
56247         and Bruno Haible  <bruno@clisp.org>
56248
56249         Remove stat module & update lstat.
56250         * lib/stat.c: Remove this file...
56251         (slash_aware_lstat): ...moving this content and its support...
56252         * lib/lstat.c (rpl_lstat): ...into here.
56253         * lib/lstat.h: New file.
56254
56255 2005-06-24  Derek Price  <derek@ximbiot.com>
56256         and Bruno Haible  <bruno@clisp.org>
56257
56258         Remove stat module & update lstat.
56259         * config/srclist.txt (libc sources): Remove stat.
56260
56261 2005-06-24  Derek Price  <derek@ximbiot.com>
56262         and Bruno Haible  <bruno@clisp.org>
56263
56264         Remove stat module & update lstat.
56265         * MODULES.html.sh (stat): Remove.
56266         * MODULES.html: Regenerated.
56267         * modules/lstat (Description): Correct function name.
56268         (Files): Add "lstat.h".
56269         (Depends-on): Remove stat, add xalloc, stat-macros.
56270         * modules/stat: Remove this file.
56271         (Include): Add "lstat.h", remove <sys/stat.h>.
56272
56273 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56274
56275         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56276         (ranged_convert): Don't save conversion in a temporary struct.
56277         This causes a warning with GCC 4.0.0, and anyway in the typical
56278         case it's not worth the extra 100 bytes or so of code.
56279         (ranged_convert, __mktime_internal): When calling a function via a
56280         pointer P, use P () rather than (*P) (), as we now assume C89 or
56281         better.
56282
56283 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56284
56285         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56286         "who -r" failed to give output.  Problem reported by Tim Waugh.
56287
56288         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56289         (xcalloc): Use it to avoid needless tests.
56290         Problem reported by Jim Meyering.
56291
56292 2005-06-20  Derek Price  <derek@ximbiot.com>
56293
56294         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56295         unnecessary for Autoconfs > 2.59c.
56296
56297 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56298
56299         * lib/argp.h (__option_is_short): Check upper limit of
56300         __key. Isprint() requires its argument to have the value
56301         of an unsigned char or EOF.
56302
56303 2005-06-16  Jim Meyering  <jim@meyering.net>
56304
56305         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56306         when either N or S is zero.
56307
56308 2005-06-16  Derek Price  <derek@ximbiot.com>
56309
56310         * m4/bison.m4: Declare YACC & YFLAGS precious.
56311
56312 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56313
56314         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56315         multibyte string or pattern, fall back on unibyte matching.
56316         Problem reported by James Youngman.
56317
56318 2005-06-08  Bruno Haible  <bruno@clisp.org>
56319
56320         * modules/csharpcomp: New file.
56321         * MODULES.html.sh (C#): Add csharpcomp.
56322
56323 2005-06-08  Bruno Haible  <bruno@clisp.org>
56324
56325         * m4/csharpcomp.m4: New file, from GNU gettext.
56326
56327 2005-06-08  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/csharpcomp.h: New file, from GNU gettext.
56330         * lib/csharpcomp.c: New file, from GNU gettext.
56331         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56332
56333 2005-06-08  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56336         warning on mingw.
56337
56338 2005-06-07  Derek Price  <derek@ximbiot.com>
56339
56340         Sync from CVS.
56341         * lib/glob_.h: Indent nested #ifdef.
56342
56343 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56344
56345         Sync from coreutils.
56346         Use "file name" when talking about file names, instead of "filename"
56347         or "path", as per the GNU coding standards.
56348         * lib/mkdir-p.c: Renamed from makepath.c.
56349         (make_dir_parents): Renamed from make_path.  All callers changed.
56350         * lib/mkdir-p.h: Likewise.  All includers changed.
56351         * lib/filenamecat.c: Renamed from path-concat.c.
56352         (file_name_concat): Renamed from path_concat.  All callers changed.
56353         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56354         * lib/filenamecat.h: Likewise.  All includers changed.
56355         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56356         in comments or local variable names.
56357         * lib/basename.c: Likewise.
56358         * lib/canonicalize.c, canonicalize.h: Likewise.
56359         * lib/dirname.c, dirname.h: Likewise.
56360         * lib/euidaccess.c: Likewise.
56361         * lib/exclude.c: Likewise
56362         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56363         * lib/fsusage.c, fsuage.h: Likewise.
56364         * lib/fts.c, fts_.h: Likewise.
56365         * lib/getcwd.c: Likewise.
56366         * lib/getloadavg.c: Likewise.
56367         * lib/mkstemp.c: Likewise.
56368         * lib/mountlist.c, mountlist.h: Likewise.
56369         * lib/openat.c, openat.h: Likewise.
56370         * lib/readlink-stub.c: Likewise.
56371         * lib/readutmp.c, readutmp.h: Likewise.
56372         * lib/rename.c: Likewise.
56373         * lib/rmdir.c: Likewise.
56374         * lib/same.c: Likewise.
56375         * lib/savedir.c: Likewise.
56376         * lib/stripslash.c: Likewise.
56377         * lib/tempname.c: Likewise.
56378         * lib/xreadlink.c: Likewise.
56379         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56380         All uses changed.
56381         * lib/exclude.h: Likewise.
56382
56383         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56384         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56385         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56386         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56387         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56388         files have been getting away with it for years (MORE/BSD 4.3
56389         is extinct now).
56390         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56391         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56392
56393         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56394         Define to 256, not 255, as per modern POSIX.
56395
56396 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56397
56398         Sync from coreutils.
56399         Use "file name" when talking about file names, instead of "filename"
56400         or "path", as per the GNU coding standards.
56401         * MODULES.html.sh: mkdir-p renamed from makepath.
56402         filenamecat renamed from path-concat.
56403         * modules/filenamecat: Renamed from modules/path-concat.
56404         (Files): filenamecat.h and filenamecat.c renamed from
56405         path-concat.h and path-concat.c.
56406         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
56407         (Include): filenamecat.h, not path-concat.h.
56408         * modules/mkdir-p: Renamed from modules/makepath.
56409         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
56410         makepath.c.
56411         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
56412         (Include): mkdir-p.h, not makepath.h.
56413
56414 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56415
56416         Sync from coreutils.
56417         * m4/mkdir-p.m4: Renamed from makepath.m4.
56418         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
56419         Rename files from makepath.c to mkdir-p.c, and from
56420         makepath.h to mkdir-p.h.
56421         * m4/filenamecat.m4: Renamed from path-concat.m4.
56422         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
56423         Rename files from path-concat.c to filenamecat.c,
56424         and from path-concat.h to filenamecat.h.
56425         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
56426         "file name" in local variables or comments.
56427         * m4/rename.m4: Likewise.
56428
56429 2005-06-01  Bruno Haible  <bruno@clisp.org>
56430
56431         * modules/csharpexec: New file.
56432         * MODULES.html.sh (C#): New section.
56433
56434 2005-06-01  Bruno Haible  <bruno@clisp.org>
56435
56436         * m4/csharp.m4: New file, from GNU gettext.
56437         * m4/csharpexec.m4: New file, from GNU gettext.
56438
56439 2005-06-01  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/csharpexec.h: New file, from GNU gettext.
56442         * lib/csharpexec.c: New file, from GNU gettext.
56443         * lib/csharpexec.sh.in: New file, from GNU gettext.
56444
56445 2005-05-31  Derek Price  <derek@ximbiot.com>
56446             Paul Eggert  <eggert@cs.ucla.edu>
56447
56448         Sync from cvs.
56449         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56450
56451 2005-05-31  Derek Price  <derek@ximbiot.com>
56452             Paul Eggert  <eggert@cs.ucla.edu>
56453
56454         Sync from cvs.
56455         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
56456
56457 2005-05-29  Derek Price  <derek@ximbiot.com>
56458
56459         * config/srclist.txt (glob_.h, glob.c): Add these files.
56460
56461 2005-05-29  Derek Price  <derek@ximbiot.com>
56462
56463         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
56464         * modules/glob: New file.
56465         * modules/getlogin_r: Add link to POSIX spec in description.
56466
56467 2005-05-29  Derek Price  <derek@ximbiot.com>
56468             Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         * m4/glob.m4: New file.
56471
56472 2005-05-29  Derek Price  <derek@ximbiot.com>
56473             Paul Eggert  <eggert@cs.ucla.edu>
56474
56475         * lib/glob_.h, lib/glob.c: New files.
56476
56477 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56478
56479         * modules/fts (Files): Remove m4/inttypes-pri.m4.
56480         * modules/fts-lgpl (Depends-on): Remove gettext.
56481
56482 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56483
56484         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
56485         and don't require gt_INTTYPES_PRI.
56486
56487 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
56488
56489         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
56490
56491         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
56492         the configuration hassle isn't worth it.
56493         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
56494         (LONGEST_MODIFIER, PRIuMAX): Remove.
56495
56496 2005-05-27  Bruno Haible  <bruno@clisp.org>
56497
56498         * lib/getlogin_r.h: Remove second include of <stddef.h>.
56499
56500 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
56501
56502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
56503         _POSIX_PTHREAD_SEMANTICS for Solaris.
56504
56505 2005-05-25  Derek Price  <derek@ximbiot.com>
56506
56507         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
56508
56509 2005-05-25  Derek Price  <derek@ximbiot.com>
56510             Paul Eggert  <eggert@cs.ucla.edu>
56511
56512         * modules/getlogin_r, m4/getlogin_r.m4: New files.
56513         * lib/getlogin_r.c, getlogin_r.h: New files.
56514
56515 2005-05-25  Bruno Haible  <bruno@clisp.org>
56516             Derek Price  <derek@ximbiot.com>
56517
56518         * lib/getlogin_r.h: Simplify API documentation.
56519
56520 2005-05-23  Derek Price  <derek@ximbiot.com>
56521
56522         * modules/minmax (Files): Add m4/minmax.m4.
56523         (configure.ac): Add gl_MINMAX.
56524
56525 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56526
56527         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
56528         so that unistd-safer.h (GPL'ed code) need not be included.
56529
56530 2005-05-22  Bruno Haible  <bruno@clisp.org>
56531
56532         * m4/minmax.m4: New file.
56533         Based on a patch by Derek Price <derek@ximbiot.com>.
56534
56535 2005-05-22  Bruno Haible  <bruno@clisp.org>
56536
56537         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
56538         (INT64_MIN): Fix definition.
56539         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
56540
56541         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
56542         NEED_SIGNED_INT_TYPES.
56543
56544         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
56545         HAVE_SYSTEM_INTTYPES.
56546
56547 2005-05-22  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
56550         Also include <sys/param.h> if it defines MIN, MAX.
56551         Based on a patch by Derek Price <derek@ximbiot.com>.
56552
56553 2005-05-21  Jim Meyering  <jim@meyering.net>
56554
56555         * modules/fts (Files): Add m4/inttypes-pri.m4.
56556         (Depends-on): Add lstat and remove gettext.  Alphabetize.
56557
56558 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56559
56560         New fts module.
56561         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
56562         (setup_dir, free_dir): New functions.
56563         (enter_dir, leave_dir): Define trivial
56564         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
56565         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
56566         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
56567         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
56568         Move to fts-cycle.c.
56569         (fts_open): Use setup_dir.
56570         (fts_close): Use free_dir.
56571         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
56572         This adds a label and some gotos, but the alternatives were messier.
56573         Check for memory allocation failure when entering a dir.
56574         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
56575         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
56576         (FTS): New member fts_cycle, that is a union that contains the
56577         old active_dir_ht and cycle_state.  All uses changed to mention
56578         fts_cycle.ht and fts_cycle.state.
56579         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
56580         fts.c, with the following changes:
56581         (setup_dir, free_dir): New functions.
56582         (enter_dir): Now returns bool.  Return true if successful, false
56583         if memory exhausted.  All callers changed.
56584         Do not bother partly cleaning up on
56585         memory allocation failure; that is free_dir's job.
56586         However, free ad if hash_insert fails, to avoid memory leak.
56587         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
56588         fts->fts_options to see which union member to use.
56589
56590 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56591
56592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
56593         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
56594
56595 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
56598
56599 2005-05-20  Jim Meyering  <jim@meyering.net>
56600
56601         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
56602         Now a macro, to pacify GCC.
56603
56604 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56605
56606         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
56607         of -1.
56608
56609 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
56610
56611         * lib/chown.c (rpl_chown): Return -1 on failure.
56612
56613 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56614
56615         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
56616         Don't check for stddef.h.
56617         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
56618         don't use its results.
56619         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
56620         since we include them unconditionally.  Don't require
56621         AM_STDBOOL_H, since stdbool is a prerequisite.
56622         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
56623         since we assume C89 or better.
56624         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
56625         as we don't use their results.
56626         Don't check for fchdir, memmove, memset, strrchr, as we use
56627         them unconditionally.
56628         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
56629         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
56630
56631 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
56632
56633         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
56634         Include <stddef.h> unconditionally, since we assume C89 now.
56635         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
56636         * lib/fts.c: Include fts_.h first, to check interface.
56637         Do not include intprops.h; no longer needed.
56638         Include cycle-check.h and hash.h, since fts_.h no longer does.
56639         Remove unnecessary casts of closedir to void.
56640         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
56641         decide whether to decrement nlinks.
56642         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
56643         (FTS): Use struct hash_table * instead of Hash_table, so that
56644         we no longer need to include hash.h here.
56645
56646 2005-05-18  Jim Meyering  <jim@meyering.net>
56647
56648         * modules/dirfd (License): Change to LGPL.  Most of the code
56649         is already in the public domain.
56650
56651 2005-05-18  Jim Meyering  <jim@meyering.net>
56652
56653         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
56654         Reported by Yoann Vandoorselaere.
56655
56656 2005-05-17  Jim Meyering  <jim@meyering.net>
56657
56658         * m4/fts.m4: New file, from coreutils.
56659
56660 2005-05-17  Jim Meyering  <jim@meyering.net>
56661
56662         * lib/fts.c, lib/fts_.h: New files, from coreutils.
56663
56664 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56665
56666         Sync from coreutils.
56667         * m4/unlinkdir.m4: New file.
56668
56669 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         Sync from coreutils.
56672         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
56673         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
56674         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
56675         White space changes only.
56676         * lib/makepath.c (make_path): Port to hosts where leading "//" is
56677         special.
56678         * lib/yesno.c: Include getline.h, not ctype.h.
56679         (yesno): Don't remove leading white space; POSIX doesn't allow it.
56680         Use getline to remove arbitrary restriction on response length.
56681
56682 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56683
56684         * config/srclist-update: Spell out "Street" in FSF postal
56685         mail address; this is the style the FSF seems to prefer.
56686
56687         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
56688         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
56689         this updates FSF postal mail address.
56690
56691         Sync from coreutils.
56692         * modules/unlinkdir: New file.
56693         * modules/yesno (Depends-on): Add getline.
56694         * MODULES.html.sh (File system functions): Add unlinkdir.
56695
56696 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56697
56698         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
56699         lib/strsep.h:
56700         Change the initial comment to refer to GPL, not LGPL.
56701         gnulib-tool will change it to LGPL as needed.
56702
56703         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
56704         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
56705         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
56706         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
56707         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
56708         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
56709         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
56710         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
56711         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
56712         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
56713         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
56714         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
56715         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
56716         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
56717         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
56718         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
56719         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
56720         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
56721         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
56722         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
56723         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
56724         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
56725         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
56726         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
56727         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
56728         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
56729         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
56730         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
56731         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
56732         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
56733         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
56734         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
56735         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
56736         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
56737         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
56738         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
56739         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
56740         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
56741         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
56742         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
56743         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
56744         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
56745         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
56746         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
56747         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
56748         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
56749         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
56750         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
56751         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
56752         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
56753         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56754         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
56755         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
56756         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
56757         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
56758         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
56759         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
56760         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
56761         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
56762         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
56763         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
56764         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
56765         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
56766         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
56767         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
56768         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
56769         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
56770         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
56771         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
56772         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
56773         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
56774         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
56775         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
56776         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
56777         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
56778         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
56779         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
56780         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
56781         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
56782         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
56783         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
56784         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
56785         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
56786         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
56787         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
56788         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
56789         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
56790         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
56791         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
56792         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
56793         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
56794         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
56795         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
56796         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
56797         lib/yesno.c, lib/yesno.h:
56798         Update FSF postal mail address.
56799
56800 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56801
56802         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
56803         tests/test-memmem.c, tests/test-stpncpy.c:
56804         Update FSF postal mail address.
56805
56806 2005-05-13  Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
56809         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
56810         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
56811         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
56812         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
56813         Add support for 64-bit integers in the MSVC compiler.
56814
56815 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56816
56817         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
56818
56819 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
56820
56821         * gnulib-tool (func_import): Sort and uniquify recommended includes.
56822
56823 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
56824
56825         * doc/getdate.texi (General date syntax): Don't say that date
56826         date --iso-8601=ns generates acceptable dates; it doesn't yet.
56827         Problem reported by Nic Ferrier.
56828
56829 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56830
56831         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
56832         specified in ai_socktype. Fix invalid ai_protocol
56833         check. ai_protocol is usually set to 0 or depending on
56834         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
56835         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
56836         ai_socktype / ai_protocol in the returned addrinfo structure.
56837
56838 2005-05-10  Simon Josefsson  <jas@extundo.com>
56839
56840         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
56841         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56842
56843 2005-05-10  Karl Berry  <karl@gnu.org>
56844
56845         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
56846         (from http://www.gnu.org/licenses).
56847         * doc/COPYING.LIB: also rename to COPYING.LESSER.
56848         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
56849         fdl.texi suffices.
56850
56851 2005-05-10  Karl Berry  <karl@gnu.org>
56852
56853         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
56854         (COPYING.DOC): remove.
56855
56856         * config/srclist-update: new FSF address.
56857
56858 2005-05-10  Derek Price  <derek@ximbiot.com>
56859
56860         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
56861         possible.
56862
56863 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56864             Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/inet_ntop: New file.
56867         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56868         inet_ntop.
56869
56870 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56871             Bruno Haible  <bruno@clisp.org>
56872
56873         * m4/inet_ntop.m4: New file.
56874
56875 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56876             Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/inet_ntop.h: New file.
56879         * lib/inet_ntop.c: New file, from glibc with modifications.
56880
56881 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
56882
56883         * modules/time_r (License): Change to LGPL.
56884         * modules/extensions (License): Change to LGPL.  Actually,
56885         the license is more permissive than that, but currently gnulib-tool
56886         doesn't know how to handle more-permissive licenses.
56887
56888         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
56889         Problem reported by Dave Love.
56890
56891 2005-05-08  Jim Meyering  <jim@meyering.net>
56892
56893         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
56894         blank.
56895
56896 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56897
56898         * modules/argmatch (Depends-on): Add stdbool.
56899         * modules/backupfile (Depends-on): Likewise.
56900         * modules/chdir-long (Depends-on): Likewise.
56901         * modules/closeout (Depends-on): Likewise.
56902         * modules/cycle-check (Depends-on): Likewise.
56903         * modules/dirname (Depends-on): Likewise.
56904         * modules/fnmatch (Depends-on): Likewise.
56905         * modules/fsusage (Depends-on): Likewise.
56906         * modules/fwriteerror (Depends-on): Likewise.
56907         * modules/getcwd (Depends-on): Likewise.
56908         * modules/getloadavg (Depends-on): Likewise.
56909         * modules/hard-locale (Depends-on): Likewise.
56910         * modules/makepath (Depends-on): Likewise.
56911         * modules/mountlist (Depends-on): Likewise.
56912         * modules/nanosleep (Depends-on): Likewise.
56913         * modules/posixtm (Depends-on): Likewise.
56914         * modules/quotearg (Depends-on): Likewise.
56915         * modules/readtokens (Depends-on): Likewise.
56916         * modules/readtokens0 (Depends-on): Likewise.
56917         * modules/readutmp (Depends-on): Likewise.
56918         * modules/save-cwd (Depends-on): Likewise.
56919         * modules/strftime (Depends-on): Likewise.
56920         * modules/userspec (Depends-on): Likewise.
56921         * modules/utimecmp (Depends-on): Likewise.
56922         * modules/xgetcwd (Depends-on): Likewise.
56923         * modules/xnanosleep (Depends-on): Likewise.
56924         * modules/xstrtod (Depends-on): Likewise.
56925         * modules/yesno (Depends-on): Likewise.
56926
56927 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56928
56929         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
56930         needless checks.
56931
56932 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56933
56934         Merge from coreutils.  Among other things,
56935         add bulletproofing for cases where stdin, stdout, or stderr are closed.
56936         * lib/fd-safer.c: New file.
56937         * lib/fcntl-safer.h, open-safer.c: Remove.
56938         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
56939         * lib/dup-safer.c: Include unistd-safer.h first.
56940         Don't include errno.h.
56941         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
56942         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
56943         * lib/file-type.c: Rely on file-type.h change.
56944         * lib/getloadavg.c: Include unistd-safer.h.
56945         (getloadavg): Use safer open.
56946         * lib/getusershell.c: Include "stdio-safer.h".
56947         (getusershell): Use safer fopen.
56948         * lib/long-options.c (long_options): Use NULL rather than 0.
56949         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
56950         'free'.
56951         * lib/modechange.c: Likewise.
56952         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
56953         (MODE_DONE): New constant.
56954         (struct mode_change): Remove 'next' member.
56955         (make_node_op_equals): New function; like the old one of the
56956         same name, except it allocates an array.
56957         (mode_compile, mode_create_from_ref): Use it.
56958         (mode_compile): Allocate result as an array, not a linked list.
56959         Parse octal string ourself, so that we catch mistakes like "+0".
56960         (mode_adjust): Arg is an array, not a linked list.
56961         * lib/modechange.c: Include stat-macros.h, xalloc.h.
56962         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
56963         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
56964         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56965         Remove.  This is now stat-macros.h's job.
56966         (talloc): Remove.  All callers replaced by xalloc, so that
56967         our invokers don't have to worry about reporting memory failures.
56968         (make_node_op_equals): Remove.
56969         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56970         New constants.
56971         (struct mode_change): Moved here from modechange.h.
56972         (mode_append_entry): Remove.
56973         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56974         apps to have incorrect behavior.  Use simpler algorithm for head
56975         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56976         Detect more invalid usages rather than having somewhat-random behavior.
56977         Don't insert an "a=" action, as that leads to incorrect behavior.
56978         (mode_compile, mode_create_from_ref): Return NULL on error instead
56979         of an enum, since now there's only one way to have an error.  All
56980         callers changed.
56981         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56982         at the correct time.  Simplify calculation of "+u" and its ilk.
56983         Don't mishandle "+X".
56984         (mode_free): Remove "register" and localize decls.
56985         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56986         (struct mode_change): Move to modechange.c; callers don't
56987         need to see this stuff.
56988         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56989         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56990         (mode_change, mode_adjust): Reflect the new signatures noted above.
56991         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56992         that might redefine system include files.
56993         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56994         (my_usleep): Use NULL rather than (void *) 0.
56995         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56996         Use siginterrupt to specify that system calls should be interrupted.
56997         (rpl_nanosleep): Move initialization of suspended closer to call of
56998         my_usleep.
56999         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57000         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57001         (desirable_utmp_entry): New function.
57002         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57003         using x2nrealloc, to simplify logic.
57004         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57005         size calculation.  Do not assume utmp file is a regular file.
57006         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57007         (READ_UTMP_CHECK_PIDS): New constant.
57008         * lib/save-cwd.c: Include unistd-safer.h.
57009         (save_cwd): Use fd_safer.
57010         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57011         [!_LIBC] Include "stat-macros.h" instead.
57012         * lib/unistd-safer.h (fd_safer): New decl.
57013
57014 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57015
57016         * modules/getloadavg (Depends-on): Add unistd-safer.
57017         * modules/getusershell (Depends-on): Add stdio-safer.
57018         * modules/lstat (Depends-on): Remove xalloc.
57019         * modules/mkstemp (Depends-on): Add stat-macros.
57020         * modules/modechange (Depends-on): Remove xstrtol.
57021         Add stat-macros, xalloc.
57022         * modules/save-cwd (Depends-on): Add unistd-safer.
57023         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57024         * modules/unistd-safer (Files): Add lib/fd-safer.c
57025         (Makefile.am): Remove lib_SOURCES.
57026
57027         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57028         Remove fcntl-safer; unistd-safer supersedes it.
57029
57030 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57031
57032         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57033         AC_HEADER_STAT.
57034         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57035         (gl_PREREQ_CHOWN): Remove.
57036         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57037         it.  Don't require AC_HEADER_STAT.
57038         (gl_PREREQ_LSTAT): Remove.
57039         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57040         Don't require AC_HEADER_STAT.
57041         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57042         (gl_PREREQ_RMDIR): Remove.
57043         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57044         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57045         the stat-macros module a prerequisite.
57046         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57047         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57048         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57049         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57050         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57051         variable names.
57052         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57053         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57054         variable prefixes.
57055         * m4/fcntl-safer.m4: Remove.
57056         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57057         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57058         Invoke gl_PREREQ_FD_SAFER.
57059         (gl_PREREQ_FD_SAFER): New macro.
57060         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57061         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57062         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57063         Remove duplicate call to AC_LIBOBJ(readutmp).
57064         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57065
57066         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57067         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57068
57069 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57070
57071         * MODULES.html.sh (Misc): Add byteswap.
57072
57073 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57074
57075         * modules/getcwd (Depends-on): Add extensions.
57076         * modules/openat (Depends-on): Likewise.
57077
57078 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57079
57080         * modules/byteswap: New file.
57081
57082 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57083
57084         * m4/byteswap.m4: New file.
57085
57086 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57087
57088         * lib/byteswap_.h: New file.
57089
57090 2005-04-25  Karl Berry  <karl@gnu.org>
57091
57092         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57093
57094 2005-04-25  Albert Chin  <china@thewrittenword.com>
57095
57096         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57097         Toolkit C bug.
57098
57099 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57100
57101         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57102         (func_ln_if_changed) Remove forcibly for no error message
57103         in case file does not exist.
57104
57105 2005-04-19  Simon Josefsson  <jas@extundo.com>
57106
57107         * gnulib-tool (Options): Make --symlink mean --symbolic.
57108
57109 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57110
57111         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57112
57113 2005-04-16  Simon Josefsson  <jas@extundo.com>
57114
57115         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57116
57117 2005-04-15  Simon Josefsson  <jas@extundo.com>
57118
57119         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57120
57121 2005-04-15  Simon Josefsson  <jas@extundo.com>
57122
57123         * gnulib-tool: Rename --symlink to --symbolic.
57124
57125 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57126
57127         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57128         symbolic links to files instead of copying/moving.  Add --aux-dir,
57129         specifying directory relative --dir where auxiliary build tools
57130         are placed.
57131
57132 2005-04-14  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/allocsa (License): Change to LGPL.
57135         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57136
57137 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57138
57139         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57140         that "UTC +1 second" continues to work.  Problem reported
57141         by Dmitry V. Levin.
57142         (relunit_snumber): New rule.
57143         (relunit): Use it.
57144
57145 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57146
57147         * lib/getdate.y (universal_time_zone_table): New constant.
57148         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57149         universal_time_zone_table.
57150         (lookup_zone): Prefer universal_time_zone_table to
57151         local_time_zone_table, so that "GMT" time stamps are allowed in
57152         London during the summer.  Problem reported by Ian Abbott.
57153
57154 2005-04-12  Jim Meyering  <jim@meyering.net>
57155
57156         * lib/human.c (humblock): Set *options even when returning due to
57157         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57158         warning from gcc-4.
57159
57160 2005-04-09  Jim Meyering  <jim@meyering.net>
57161
57162         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57163         -Wuninitialized: initialize tm0.tm_year.
57164
57165 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57166
57167         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57168         count, since there's no maximum.  All uses changed.
57169         Add member dsts_seen.
57170         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57171         not being INT_MAX.
57172         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57173         Use pc_rels_seen to decide whther a date is absolute.
57174
57175         * lib/getdate.y (number): Don't overwrite year.
57176         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57177         check.
57178
57179 2005-04-02  Simon Josefsson  <jas@extundo.com>
57180
57181         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57182         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57183
57184 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57185
57186         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57187         where no absolute path name can be longer than PATH_MAX.
57188
57189 2005-03-27  Jim Meyering  <jim@meyering.net>
57190
57191         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57192
57193 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57194
57195         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57196         "one's complement" -> "ones' complement" in comment, as per Knuth.
57197         "value of type" -> "type or expression" in comment.
57198         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57199
57200 2005-03-26  Jim Meyering  <jim@meyering.net>
57201
57202         Comment nits.
57203         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57204         Correct typos: s/or/of/.
57205
57206 2005-03-26  Jim Meyering  <jim@meyering.net>
57207
57208         * modules/check-include-files: Move to ../ and rename to...
57209         * check-module: ...this.
57210
57211 2005-03-25  Jim Meyering  <jim@meyering.net>
57212
57213         * modules/xvasprintf (Files): Add xalloc.h.
57214
57215 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57216
57217         * modules/gettext (Files): config/config.rpath ->
57218         build-aux/config.rpath
57219         * modules/iconv (Files): Likewise.
57220         Problem reported by Oskar Liljeblad.
57221
57222 2005-03-23  Jim Meyering  <jim@meyering.net>
57223
57224         * modules/check-include-files: New script to check for
57225         missing dependencies, multiple includes, etc.
57226
57227         * modules/c-strtold (Depends-on): Add xalloc.
57228         * modules/c-strtod (Depends-on): Add xalloc.
57229         * modules/hash (Depends-on): Add xalloc.
57230         (Files): Remove lib/xalloc.h.
57231
57232         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57233         * modules/userspec (Files): Add lib/inttostr.h.
57234
57235 2005-03-23  Jim Meyering  <jim@meyering.net>
57236
57237         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57238
57239 2005-03-22  Jim Meyering  <jim@meyering.net>
57240
57241         * modules/stat-macros: New module.
57242         * modules/canonicalize, modules/euidaccess, modules/file-type,
57243         * modules/filemode, modules/lchown, modules/makepath,
57244         * modules/rmdir, modules/stat: Depend on new stat-macros module
57245         rather than listing lib/stat-macros.h manually.
57246         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57247
57248 2005-03-22  Jim Meyering  <jim@meyering.net>
57249
57250         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57251
57252 2005-03-22  Bruno Haible  <bruno@clisp.org>
57253
57254         * config/srclist.txt: Replace target directory 'config' with
57255         'build-aux'.
57256         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57257         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57258         ../build-aux/.
57259
57260 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57261
57262         * modules/chdir-long (Depends-on): Add mempcpy.
57263
57264         * modules/acl, modules/backupfile, modules/c-strtod,
57265         modules/c-strtold, modules/canon-host, modules/canonicalize,
57266         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57267         modules/exclude, modules/exitfail, modules/file-type,
57268         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57269         modules/getdate, modules/getline, modules/getpagesize,
57270         modules/getpass, modules/getugroups, modules/group-member,
57271         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57272         modules/inttostr, modules/long-options, modules/makepath,
57273         modules/md5, modules/memcasecmp, modules/memcoll,
57274         modules/modechange, modules/mountlist, modules/path-concat,
57275         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57276         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57277         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57278         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57279         modules/strftime, modules/strndup, modules/strverscmp,
57280         modules/timespec, modules/unlocked-io, modules/userspec,
57281         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57282         modules/yesno:
57283         Remove lib_SOURCES line from Makefile.am section, as this is now
57284         done automatically by the corresponding Autoconf macro.
57285
57286 2005-03-21  Jim Meyering  <jim@meyering.net>
57287
57288         Changes imported from coreutils.
57289
57290         * lib/cycle-check.c: Don't include xalloc.h.
57291
57292         * lib/path-concat.c: Don't include assert.h.
57293         (path_concat): Remove assertion that would have triggered
57294         for ABASE starting with more than one slash.
57295         Reported by Andreas Schwab.
57296
57297         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57298         properly when ABASE is an absolute file name.
57299         Correct the description of this function.
57300         Include <assert.h>.
57301         Add an assertion and a test driver.
57302         This fixes a bug introduced on 2004-07-02.
57303         Andreas Schwab reported the resulting failure of cp --parents:
57304         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57305
57306 2005-03-21  Jim Meyering  <jim@meyering.net>
57307
57308         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57309         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57310
57311 2005-03-21  Jim Meyering  <jim@meyering.net>
57312         and  Paul Eggert  <eggert@cs.ucla.edu>
57313
57314         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57315         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57316         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57317         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57318         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57319         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57320         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57321         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57322         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57323         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57324         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57325         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57326         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57327         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57328         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57329         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57330         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57331         for these modules.
57332
57333 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57334
57335         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57336         (which shouldn't happen), generate nothing instead of returning 0
57337         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57338
57339 2005-03-16  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57342         HAVE_LONGLONG_64BIT.
57343
57344 2005-03-16  Bruno Haible  <bruno@clisp.org>
57345
57346         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57347         HAVE_LONGLONG_64BIT.
57348
57349 2005-03-16  Bruno Haible  <bruno@clisp.org>
57350
57351         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57352         HAVE_LONGLONG_64BIT.
57353
57354 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57357         reliably distinguish strftime failure from empty output on POSIX
57358         hosts.
57359
57360 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57361
57362         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57363         (iconv_string): Don't guess a size-zero buffer, as that might cause
57364         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57365         result would be 'too large', where 'too large' is (heuristically)
57366         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57367         overflow concerns.  This will prevent some unwanted malloc failures
57368         when the inputs are very large.
57369
57370 2005-03-15  Karl Berry  <karl@gnu.org>
57371
57372         * config/srclist.txt (config.rpath): from gettext.
57373         * config/config.rpath: update.
57374
57375 2005-03-15  Bruno Haible  <bruno@clisp.org>
57376
57377         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57378         to 'negate'.
57379
57380         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57381         variable.
57382
57383         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57384         results.
57385
57386 2005-03-14  Simon Josefsson  <jas@extundo.com>
57387
57388         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57389         <fx@gnu.org>.
57390
57391 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57392
57393         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57394         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57395         intprops.h.
57396         * lib/strtol.c: Likewise.
57397
57398 2005-03-14  Jim Meyering  <jim@meyering.net>
57399
57400         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57401         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57402         to be nonzero so that we (and caller) can detect the difference
57403         between a valid zero-length expansion and an error return, even
57404         when the underlying strftime fails before writing anything into
57405         that location.
57406
57407 2005-03-14  Bruno Haible  <bruno@clisp.org>
57408
57409         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
57410         Update from GNU gettext 0.14.3.
57411
57412 2005-03-10  Jim Meyering  <jim@meyering.net>
57413
57414         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
57415
57416 2005-03-10  Jim Meyering  <jim@meyering.net>
57417
57418         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
57419         so that this module works on systems without fchdir.
57420
57421 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         Factor int-properties macros into a single file, except for
57424         glibc-related files.
57425         * lib/intprops.h: New file.
57426         * lib/getloadavg.c: Include it instead of limits.h.
57427         (INT_STRLEN_BOUND): Remove.
57428         * lib/human.c: Include intprops.h.
57429         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
57430         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
57431         302/1000.
57432         * lib/inttostr.h: Include intprops.h instead of limits.h.
57433         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
57434         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
57435         for consistency with intprops.h.
57436         (time_t_is_integer, twos_complement_arithmetic): Use them.
57437         * lib/sig2str.h: Include <signal.h>, intprops.h.
57438         (INT_STRLEN_BOUND): Remove.
57439         * lib/strftime.c (TYPE_SIGNED): Remove.
57440         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
57441         * lib/strtol.c: Adjust comments to match intprops.h.
57442         * lib/userspec.c: Include intprops.h.
57443         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
57444         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
57445         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
57446         instead of rolling our own expressions.
57447         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
57448
57449         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
57450         instead of int.
57451         (my_strftime): Do not mishandle years close to INT_MAX, by doing
57452         the right thing even if adding 1900 would overflow.  Similarly
57453         for tm_mon + 1 and tm_yday + 1.
57454         Make %Y always equivalent to %C%y, and similarly for %G and %g.
57455         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
57456         (DO_SIGNED_NUMBER): New macro.
57457         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
57458
57459 2005-03-07  Bruno Haible  <bruno@clisp.org>
57460
57461         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
57462
57463 2005-03-07  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
57466
57467 2005-03-04  Derek R. Price  <derek@ximbiot.com>
57468
57469         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
57470         (func_import): Only replace files via --import when they have actually
57471         changed.
57472
57473 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57474
57475         * m4/mmap-anon.m4: New file.
57476         * m4/pagealign_alloc.m4: New file.
57477
57478 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57479             Bruno Haible  <bruno@clisp.org>
57480
57481         * modules/pagealign_alloc: New file.
57482         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
57483
57484 2005-03-03  Derek R. Price  <derek@ximbiot.com>
57485             Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/pagealign_alloc.h: New file.
57488         * lib/pagealign_alloc.c: New file.
57489
57490 2005-03-03  Bruno Haible  <bruno@clisp.org>
57491
57492         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
57493         Use an all-permissive copyright notice, recommended by RMS.
57494
57495 2005-03-02  Bruno Haible  <bruno@clisp.org>
57496
57497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
57498         of AIX, the replacement has to be done only after <string.h> is
57499         included, therefore not in config.h. stpncpy.h does the replacement,
57500         and stpncpy.c uses it.
57501
57502 2005-03-02  Bruno Haible  <bruno@clisp.org>
57503
57504         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
57505         stpncpy.c uses it.
57506
57507 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57508
57509         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
57510         The workaround isn't strictly needed for POSIX conformance, and
57511         it's too much of a pain to configure and maintain.  We'll ask
57512         people to fix their kernels instead.
57513         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
57514         (NANOSLEEP_BUG_WORKAROUND): Remove.
57515         (xnanosleep): Remove the workaround.
57516
57517 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
57520         Reported by Derek Price.
57521         (Include): Add "timespec.h".
57522
57523         * modules/xnanosleep (Depends-on): Remove gethrxtime.
57524
57525 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
57528         to detect nanosleep bug.
57529
57530 2005-03-01  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
57533
57534 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         * modules/gethrxtime: New file.
57537         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
57538         (Depends-on): Add gethrxtime.
57539         (configure.ac): Add gl_XNANOSLEEP.
57540         (Makefile.am): Remove lib_SOURCES line.
57541
57542 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57543
57544         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
57545         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
57546
57547 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
57550         * lib/timespec.h (gettime): Return void, since it always
57551         succeeds now.  All uses changed.
57552         * lib/gettime.c (gettime) Likewise.
57553         [HAVE_NANOTIME]: Prefer nanotime.
57554         Assume gettimeofday succeeds, as POSIX requires.
57555         Assime time () succeeds, since other code already does.
57556         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
57557         (timespec_subtract): Remove.
57558         (NANOSLEEP_BUG_WORKAROUND): New constant.
57559         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
57560         things considerably.  Use it only on GNU/Linux hosts, since the
57561         workaround shouldn't be needed elsewhere.
57562
57563 2005-02-24  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/gettext (Files): Add m4/glibc2.m4.
57566
57567 2005-02-24  Bruno Haible  <bruno@clisp.org>
57568
57569         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
57570         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
57571         * m4/progtest.m4:
57572         Update from GNU gettext 0.14.2.
57573         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
57574
57575 2005-02-24  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/localcharset.c: Update from GNU gettext 0.14.2.
57578         * lib/config.charset: Update from GNU gettext 0.14.2.
57579
57580 2005-02-24  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/gettext.h: Update from GNU gettext 0.14.2.
57583
57584 2005-02-23  Simon Josefsson  <jas@extundo.com>
57585
57586         * m4/iconvme.m4: New file.
57587
57588 2005-02-23  Jim Meyering  <jim@meyering.net>
57589
57590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
57591         change.
57592         Thanks to Bruno Haible for catching it.
57593
57594 2005-02-22  Simon Josefsson  <jas@extundo.com>
57595
57596         * modules/iconvme: New file.
57597
57598         * MODULES.html.sh: Add iconvme.
57599
57600 2005-02-22  Simon Josefsson  <jas@extundo.com>
57601
57602         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
57603
57604 2005-02-22  Simon Josefsson  <jas@extundo.com>
57605
57606         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
57607
57608 2005-02-22  Jim Meyering  <jim@meyering.net>
57609
57610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
57611         s/ifndef/ifdef/.
57612
57613 2005-02-20  Neil Conway  <neilc@samurai.com>
57614
57615         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
57616         returned by OSX/Darwin if the specified buffer is not large
57617         enough for the hostname.
57618
57619 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57620
57621         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
57622         pass it to _help, otherwise the latter coredumps trying to
57623         dereference state.root_argp.
57624
57625 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57626
57627         * modules/chdir-long (Depends-on): Add memrchr.
57628         * modules/memrchr (Files): Add lib/memrchr.h.
57629         (Include): "memrchr.h".
57630
57631 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57632
57633         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
57634
57635 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57636
57637         * lib/memrchr.h: New file.
57638         * lib/chdir-long.c: Include it.
57639         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
57640         Don't bother including stddef.h.
57641
57642 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
57645         inclusion.
57646         Include <sys/types.h>, for dev_t.
57647         (ME_DUMMY, ME_REMOTE): Move from here....
57648         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
57649         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
57650         Dmitry V. Levin.
57651         Include mountlist.h first, to test the interface.
57652
57653 2005-01-29  Bruno Haible  <bruno@clisp.org>
57654
57655         * lib/progname.c (program_name): Initialize.
57656         Needed when linking statically on MacOS X.
57657
57658 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57659
57660         Sync from coreutils.
57661         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
57662         (Depends-on): Add c-strtod.
57663         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
57664
57665 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         Sync from coreutils.
57668         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
57669
57670         Remove files that are specific to coreutils.
57671         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
57672
57673 2005-01-28  Bruno Haible  <bruno@clisp.org>
57674
57675         * modules/javacomp: New file.
57676         * MODULES.html.sh (Java): Add javacomp.
57677
57678 2005-01-28  Bruno Haible  <bruno@clisp.org>
57679
57680         * m4/javacomp.m4: New file, from GNU gettext.
57681
57682 2005-01-28  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/javacomp.sh.in: New file, from GNU gettext.
57685         * lib/javacomp.h: New file, from GNU gettext.
57686         * lib/javacomp.c: New file, from GNU gettext.
57687
57688 2005-01-26  Simon Josefsson  <jas@extundo.com>
57689
57690         * lib/gai_strerror.c: Use GPL in header.
57691
57692 2005-01-26  Bruno Haible  <bruno@clisp.org>
57693
57694         * modules/javaexec: New file.
57695         * MODULES.html.sh (Java): Add javaexec.
57696
57697 2005-01-26  Bruno Haible  <bruno@clisp.org>
57698
57699         * m4/javaexec.m4: New file, from GNU gettext.
57700
57701 2005-01-26  Bruno Haible  <bruno@clisp.org>
57702
57703         * lib/javaexec.sh.in: New file, from GNU gettext.
57704         * lib/javaexec.h: New file, from GNU gettext.
57705         * lib/javaexec.c: New file, from GNU gettext.
57706
57707 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57708
57709         * modules/lchown (Depends-on): Remove lchown.h
57710
57711 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57712
57713         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
57714         must be defined if the header file was not found, in order
57715         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
57716
57717 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57718
57719         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
57720         initializers for struct pentry_state.
57721         (__argp_error): Check return value of __asprintf
57722         (__argp_failure): Translate error message
57723
57724         * lib/argp-parse.c: Removed braces around the expansion of N_()
57725
57726 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57727
57728         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
57729         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
57730         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
57731         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
57732         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
57733         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
57734         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
57735         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
57736         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
57737         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
57738         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
57739         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
57740         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
57741         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
57742         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
57743         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
57744         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
57745         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
57746         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
57747         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
57748         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
57749         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
57750         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
57751         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
57752         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
57753         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
57754         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
57755         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
57756         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
57757         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
57758         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
57759         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
57760         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
57761         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
57762         xstrtol.m4, xstrtoumax.m4, yesno.m4:
57763         Use an all-permissive copyright notice, recommended by RMS.
57764
57765 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57766
57767         * modules/chdir-long (Depends-on): Remove mempcpy.
57768
57769 2005-01-21  Jim Meyering  <jim@meyering.net>
57770
57771         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
57772         same value as for Solaris 9.
57773
57774         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
57775         component length.  This included changing the parameter to be
57776         of type `char *' rather than `char const *'.
57777         * lib/chdir-long.h (chdir_long): Update prototype.
57778
57779         * lib/openat.c (fdopendir, fstatat): New functions.
57780         * lib/openat.h: Include headers required for use of DIR and struct
57781         stat.
57782         [AT_SYMLINK_NOFOLLOW]: Define.
57783         (fdopendir, fstatat): Add prototypes.
57784
57785 2005-01-21  Bruno Haible  <bruno@clisp.org>
57786
57787         * modules/classpath: New file.
57788         * MODULES.html.sh (Java): Add classpath.
57789
57790 2005-01-21  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/classpath.h: New file, from GNU gettext.
57793         * lib/classpath.c: New file, from GNU gettext.
57794
57795 2005-01-20  Simon Josefsson  <jas@extundo.com>
57796
57797         * modules/version-etc-fsf: New file.
57798
57799 2005-01-20  Simon Josefsson  <jas@extundo.com>
57800
57801         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
57802         * lib/version-etc.c: Remove version_etc_copyright.
57803         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
57804         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
57805
57806 2005-01-20  Simon Josefsson  <jas@extundo.com>
57807
57808         * lib/base64.h (isbase64): Add.
57809
57810         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
57811         using a unsigned prototype, don't inline.
57812         (base64_decode): Use it.
57813
57814 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57815
57816         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
57817         it.
57818
57819 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57820
57821         * lib/save-cwd.c (save_cwd): Remove code to support the case
57822         where fchdir is missing or flaky.
57823
57824 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57825
57826         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
57827
57828 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57829
57830         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
57831         AC_LIBSOURCES now does this.
57832         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
57833         with new ullong_max module.
57834
57835 2005-01-19  Bruno Haible  <bruno@clisp.org>
57836
57837         * modules/sh-quote: New file.
57838         * MODULES.html.sh (Executing programs): Add sh-quote.
57839
57840 2005-01-19  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/sh-quote.h: New file, from GNU gettext.
57843         * lib/sh-quote.c: New file, from GNU gettext.
57844
57845 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57846
57847         Merge from coreutils.
57848         * m4/ullong_max.m4: New file.
57849         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
57850         (gl_MACROS): Assume localeconv exists.
57851
57852 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57853
57854         Merge changes from coreutils, as described below in several
57855         changelogs dated today.
57856
57857         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
57858         (O_DIRECTORY): Remove; not needed here, since "." must be
57859         a directory.  All uses removed.
57860         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
57861         universal on Suns, and we also need to test for IRIX.
57862         Revamp code to use 'if' rather than '#if'.
57863         Avoid unnecessary comparison of cwd->desc to 0.
57864
57865         * lib/utimens.c (futimens): Robustify the previous patch, by checking
57866         for known valid error numbers rather than observed invalid ones.
57867
57868 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57869
57870         * modules/ullong_max: New file.
57871
57872         * modules/chdir-long, modules/openat: New files.
57873         * modules/save-cwd (Depends-on): Depend on chdir-long.
57874         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
57875
57876 2005-01-18  Jim Meyering  <jim@meyering.net>
57877
57878         Merge from coreutils.
57879         * m4/chdir-long.m4, m4/openat.m4: New files.
57880         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
57881         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
57882         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
57883         is sane and DOES follow symlinks.  Besides, testing 20 different
57884         systems found no broken chown implementations.
57885         Prompted by a change in rsync's copy of this macro.
57886         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
57887
57888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
57889
57890         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
57891         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
57892         NULL-means-set-to-current-time semantics.
57893         Remove temporary file immediately, rather than waiting
57894         for configure's at-exit trap code to do it.
57895
57896 2005-01-18  Jim Meyering  <jim@meyering.net>
57897
57898         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57899
57900         * lib/utimens.c (futimens): Account for the fact that futimes
57901         can also fail with errno == ENOSYS or errno == ENOENT.
57902         Patch from Dmitry V. Levin.
57903
57904         Change the name of the robust chdir function from chdir to chdir_long.
57905         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
57906         (restore_cwd): Use chdir_long, not chdir.
57907         * lib/chdir-long.c: Renamed from chdir.c.
57908         * lib/chdir-long.h: Renamed from chdir.h.
57909         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
57910         Hurd.
57911
57912 2005-01-18  Bruno Haible  <bruno@clisp.org>
57913
57914         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
57915         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
57916         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
57917         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
57918         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
57919         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
57920         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
57921         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
57922         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
57923         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
57924         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
57925         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
57926         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
57927         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
57928         Use an all-permissive copyright notice, recommended by RMS.
57929
57930 2005-01-18  Bob Proulx  <bob@proulx.com>
57931
57932         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
57933         simplify offsetof() macro construct to avoid compile failure with
57934         native HP-UX 11.0 ANSI C compiler.
57935
57936 2005-01-17  Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
57939         redundant because stpncpy.m4 takes care of it.
57940
57941 2005-01-17  Bruno Haible  <bruno@clisp.org>
57942
57943         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
57944
57945 2005-01-17  Bruno Haible  <bruno@clisp.org>
57946
57947         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
57948         used.
57949
57950 2005-01-17  Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/fwriteerror.h (fwriteerror): Change specification to include
57953         fclose.
57954         * lib/fwriteerror.c: Include <stdbool.h>.
57955         (fwriteerror): At the end, close the file stream. Record whether
57956         stdout was already closed.
57957
57958 2005-01-17  Bruno Haible  <bruno@clisp.org>
57959
57960         * lib/execute.c (environ): Declare if needed.
57961         * lib/pipe.c (environ): Likewise.
57962         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
57963
57964 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57965
57966         * modules/argp: Depend on vsnprintf
57967
57968 2005-01-10  Jim Meyering  <jim@meyering.net>
57969
57970         * modules/closeout (Depends-on): Add atexit.
57971
57972 2005-01-06  Bruno Haible  <bruno@clisp.org>
57973
57974         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57975
57976 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57977
57978         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57979         definitions to be after all include files, to avoid collisions.
57980         Problem reported by Bob Proulx.
57981
57982 2005-01-04  Jim Meyering  <jim@meyering.net>
57983
57984         Changes imported from coreutils.
57985         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57986         as the mkstemp template, use a temporary directory and an
57987         8.3-friendly template to avoid trouble on systems like DJGPP.
57988         Reported by Juan M. Guerrero via Stepan Kasal.
57989         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57990         close. Remove the temporary directory right away, rather than waiting
57991         for configure's at-exit trap code to do it.
57992         Suggestion from Stepan Kasal.
57993
57994 2005-01-01  Simon Josefsson  <jas@extundo.com>
57995
57996         * gnulib-tool: Print #include directives when --import'ing.
57997
57998 2004-12-28  Simon Josefsson  <jas@extundo.com>
57999
58000         * tests/test-base64.c: Include required header files.  Remove
58001         unused variables.
58002
58003 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58004
58005         * modules/error (Depends-on): Remove gettext.
58006
58007 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58008
58009         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58010         not needed.  This removes a dependency on the gettext module.
58011         [defined _LIBC]: Do not include <libintl.h>; not needed.
58012
58013 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58016         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58017
58018 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58021         HAVE_DECL_STRTOLD.
58022
58023 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58024
58025         * modules/getdate (Depends-on): Remove alloca-opt.
58026
58027 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58028
58029         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58030
58031 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58032
58033         * lib/argp-parse.c: Include <stddef.h>.
58034         (alignof, alignto): New macros.
58035         (parser_init): Don't assume that void * is aligned sufficiently
58036         for struct option.
58037
58038         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58039         need to extend the stack.
58040         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58041         large.
58042
58043 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58044
58045         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58046
58047 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58048
58049         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58050         (2004-10-24) change.  Apparently this was a false alarm.
58051
58052         * modules/getdate: Depend on alloca-opt, not alloca.
58053
58054 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58057         Remove now-obsolete comment about AIX.
58058         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58059         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58060         (YYMAXDEPTH): New macro.
58061
58062 2004-12-18  Simon Josefsson  <jas@extundo.com>
58063
58064         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58065
58066 2004-12-18  Bruno Haible  <bruno@clisp.org>
58067
58068         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58069
58070 2004-12-18  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/fatal-signal.c (fatal_signals): Make non-const.
58073         (init_fatal_signals): New function.
58074         (uninstall_handlers, install_handlers): Ignore signals that were set to
58075         SIG_IGN.
58076         (at_fatal_signal): Call init_fatal_signals.
58077         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58078         SIG_IGN.
58079         Reported by Paul Eggert.
58080
58081 2004-12-18  Bruno Haible  <bruno@clisp.org>
58082
58083         * doc/alloca.texi: New file.
58084         * doc/alloca-opt.texi: New file.
58085
58086 2004-12-17  Jim Meyering  <jim@meyering.net>
58087
58088         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58089         Otherwise, install-sh could exit with improper exit status when
58090         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58091
58092 2004-12-16  Simon Josefsson  <jas@extundo.com>
58093
58094         * tests/test-base64.c: Add license.
58095
58096 2004-12-15  Stepan Kasal  <address@hidden>
58097
58098         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58099
58100 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         * modules/getcwd (Files): Add m4/d-ino.m4.
58103         Suggested by Mark D. Baushke.
58104
58105 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * lib/getdate.y (textint): New member "negative".
58108         (time_zone_hhmm): New function.
58109         Expect 14 shift-reduce conflicts, not 13.
58110         (o_colon_minutes): New rule.
58111         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58112         (yylex): Set the "negative" member of signed numbers.
58113
58114 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58115
58116         * doc/getdate.texi (Time of day items, Time zone items):
58117         Describe new formats +00:00, UTC+00:00.
58118
58119 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58122         spurious "-l"s.  Problem reported by Stepan Kasal.
58123
58124 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58125
58126         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58127         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58128
58129 2004-12-04  Simon Josefsson  <jas@extundo.com>
58130
58131         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58132         Vandoorselaere <yoann@prelude-ids.org>.
58133
58134 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58135
58136         Changes imported from coreutils.
58137         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58138         exist.
58139         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58140
58141 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58142
58143         Changes imported from coreutils.
58144         * lib/hard-locale.c: Assume <locale.h> exists.
58145         Include "strdup.h".
58146         (GLIBC_VERSION): New macro.
58147         (hard_locale): Assume setlocale exists.
58148         Rewrite to avoid #ifdef.
58149         Use strdup rather than malloc + strcpy.
58150         * lib/human.c: Assume <locale.h> exists.
58151         (human_readable): Assume localeconv exists.
58152
58153 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58154
58155         * modules/hard-locale (Depends-on): Add strdup.
58156
58157 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58158
58159         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58160         convert T2, not T.  (Imported from libc.)
58161
58162 2004-11-30  Simon Josefsson  <jas@extundo.com>
58163
58164         * modules/restrict (License): Change to LGPL.
58165
58166 2004-11-30  Simon Josefsson  <jas@extundo.com>
58167
58168         * m4/restrict.m4: Add copyright and copying conditions.
58169
58170 2004-11-30  Simon Josefsson  <jas@extundo.com>
58171
58172         * m4/base64.m4: New file.
58173
58174 2004-11-30  Simon Josefsson  <jas@extundo.com>
58175
58176         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58177         base64.
58178
58179         * tests/test-base64.c: New file.
58180
58181         * modules/base64: New file.
58182
58183 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58184
58185         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58186         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58187
58188         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58189
58190 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58191
58192         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58193         (__getcwd.c): Don't restore errno; glibc doesn't.
58194         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58195         first, falling back to our code only if its results look suspicious.
58196         Ensure that the resulting buffer is only as large as necessary.
58197
58198         * lib/readutmp.c: Include readutmp.h first.
58199         Include <errno.h>, since readutmp.h no longer does that.
58200         * lib/readutmp.h: Don't include <errno.h>,
58201         <sys/param.h>, <time.h>; not needed to establish interface.
58202         (errno): Remove decl.
58203         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58204         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58205         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58206
58207 2004-11-28  Simon Josefsson  <jas@extundo.com>
58208
58209         * lib/base64.h, base64.c: New file.
58210
58211 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58212
58213         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58214
58215 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58216
58217         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58218         (Depends-on): Remove pathmax, same.  Add mempcpy.
58219         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58220         (Makefile.am): Append getcwd.h to lib_SOURCES.
58221         (Include): Add getcwd.h.
58222         (Maintainer): Change from Jim Meyering to "all, glibc",
58223         since getdate now uses intended-for-glibc code.
58224         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58225         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58226
58227 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58230         HP's ANSI C compiler.
58231         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58232         Declaring int functions causes warnings on some modern systems and
58233         shouldn't be needed to compile on ancient ones.
58234         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58235         defined.
58236
58237         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58238         with the following changes.
58239         (__set_errno): Parenthesize properly.
58240         Include <stdbool.h>.
58241         (MIN, MAX, MATCHING_INO): New macros.
58242         (__getcwd): Define with prototype, not K&R form.
58243         Use heuristics to allocate default buffer on stack if possible.
58244         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58245         behavior, and to avoid the PATH_MAX limit when computing
58246         ../../../../...
58247         Use MATCHING_INO to compare inode number to file.
58248         Check for arithmetic overflow in size calculations.
58249         Fix bug in reallocation of dot array that caused getcwd to fail
58250         on directories nested deeper than 75.
58251         Be more careful about saving errno on error.
58252         Do not use realloc; use only free+malloc, as this is a bit
58253         more flexible and avoids a needless copy operation.
58254         Do not inspect st_dev and st_ino for symbolic links; POSIX
58255         doesn't specify the latter.
58256         Check for closedir errors.
58257         Avoid needless casts.
58258         Use "#ifdef weak_alias" around weak_alias, to be like other
58259         glibc code.
58260         The following changes to getcwd.c have effect only when used in
58261         gnulib; they have no effect inside glibc proper.
58262         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58263         as alloca isn't used.
58264         (alloca, __alloca): Likewise.
58265         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58266         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58267         unconditionally, as gnulib assumes C89 or better.
58268         Do not include <sys/param.h>.
58269         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58270         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58271         better.
58272         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58273         Include <dirent.h> in a way that is compatible with modern Autoconf.
58274         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58275         New macros, if not already defined.
58276         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58277         Use "_LIBC", not "defined _LIBC", for consistency.
58278         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58279         a mempcpy module.
58280         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58281         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58282         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58283         credit only to Jim Meyering and adjust the copyright dates.
58284         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58285         <stdlib.h>, <unistd.h>, "pathmax.h".
58286         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58287         (INITIAL_BUFFER_SIZE): Remove.
58288         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58289
58290 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58291
58292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58293         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58294         Use the _ONCE methods, for efficiency.
58295         Check for fcntl.h.  In test program, include <errno.h>
58296         and <fcntl.h> if available.  Remove old K&R cruft from
58297         test program.  Check for common errors in GNU/Linux,
58298         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58299         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58300         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58301         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58302         name accordingly.
58303         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58304         accommodate new getcwd.c.
58305         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58306         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58307         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58308         that's all we need now.
58309
58310 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58311
58312         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58313         argp-parse.c depends on getopt internals, that means we should
58314         always use our getopt, to be on the safe side.
58315         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58316         order not to spoil the result of an eventual previous invocation
58317         of gl_GETOPT_SUBSTITUTE.
58318
58319 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58320
58321         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58322         redefinition warnings. To avoid them, include the defines
58323         in `#if !defined __need_getopt ... #endif'. The only place
58324         where __getopt_argv_const is used is in definitions
58325         of getopt_long and getopt_long_only below, which are as well
58326         protected by `#ifndef __need_getopt'.
58327         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58328         __need_getopt after including <stdio.h> and <unistd.h> These
58329         headers might have defined it.
58330
58331 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58332
58333         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58334
58335 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58336
58337         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58338         (futimens): New function, which uses futimes if available.
58339         (futimens, utimens): Support timespec==NULL, with same semantics
58340         as utime and utimens.
58341         * lib/utimens.h (futimens): New decl.
58342
58343 2004-11-23  Jim Meyering  <jim@meyering.net>
58344
58345         * lib/getopt_.h: Remove trailing blanks.
58346
58347 2004-11-23  Jim Meyering  <jim@meyering.net>
58348
58349         * lib/__fpending.c: Add comment.
58350
58351 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58352
58353         * modules/canonicalize (Depends-on): Add xreadlink.
58354         Problem reported by James Youngman.
58355
58356 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58357
58358         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58359         New macros.
58360         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58361         optopt): Use them instead of invoking ## directly; otherwise, the
58362         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58363
58364 2004-11-19  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/strtok_r.c: Move comments from here...
58367         * lib/strtok_r.h: ... to here.
58368
58369 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58370
58371         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58372         implementations that mishandle size_t overflow.
58373
58374 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58375
58376         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58377         might fail.  Problem reported by Yoann Vandoorselaere.
58378         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58379         implementations that mishandle size_t overflow.
58380
58381 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58382
58383         * modules/canon-host (Depends-on): Add strdup.
58384
58385 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58386
58387         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58388
58389 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58390
58391         * lib/canon-host.c: Include "strdup.h".
58392         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58393         Use strdup instead of malloc/strcpy to duplicate strings.
58394
58395         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58396         (human_space_before_unit): New constant.
58397         * lib/human.c (human_readable): Support it.
58398
58399         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58400         (xgetcwd): Set errno correctly when failing.
58401         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58402         the failure is actually due to a PATH_MAX problem.
58403
58404         Further getopt changes to make it more likely that glibc will
58405         buy the changes back.
58406         * lib/getopt.c (POSIXLY_CORRECT): New constant.
58407         (getopt): Use it, so to preserve glibc semantic
58408         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
58409         when compiling for libc.
58410         * lib/getopt_.h (__getopt_argv_const): Bring it back.
58411         (getopt_long, getopt_long_only): Use it.
58412
58413         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58414         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
58415         (getopt): Argv is now char * const *, as per standard.
58416         (_getopt_internal_r, _getopt_internal): Argv is now char **,
58417         not char *__getopt_argv_const *.
58418         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58419         _getopt_long_only_r): Likewise.
58420         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
58421         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58422         _getopt_long_r, _getopt_long_only_r): Likewise.
58423         * lib/getopt_.h (__getopt_argv_const): Remove.
58424         (getopt): Argv is now char * const *, as per standard.
58425
58426         * lib/getdate.y (tORDINAL): New token.
58427         (day, relunit): Allow it for relative times.
58428         (relative_time_table): Use tORDINAL for ordinals.
58429
58430 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58431
58432         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
58433         Document that "second" isn't allowed as an ordinal number.
58434
58435 2004-11-16  Jim Meyering  <jim@meyering.net>
58436
58437         * modules/closeout (Depends-on): Add fpending.
58438
58439 2004-11-15  Jim Meyering  <jim@meyering.net>
58440
58441         * lib/closeout.c: Include "__fpending.h" once again.
58442         Include <stdbool.h>.
58443         (close_stdout): Don't fail just because stdout was closed initially,
58444         since some programs don't write to stdout in the normal course of
58445         operation (other than --version and --help), and we don't want this
58446         function to make e.g. `touch file >&-' fail.
58447         But do fail if it was closed and someone has tried to write to it.
58448         E.g., `printf foo >&-' must fail.
58449
58450 2004-11-13  Jim Meyering  <jim@meyering.net>
58451
58452         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
58453
58454 2004-11-12  Simon Josefsson  <jas@extundo.com>
58455
58456         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
58457         small doc fix is still pending.
58458
58459 2004-11-11  Simon Josefsson  <jas@extundo.com>
58460
58461         * modules/strtok_r: New file.
58462
58463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58464         strtok_r.
58465
58466 2004-11-11  Simon Josefsson  <jas@extundo.com>
58467
58468         * m4/strtok_r.m4: New file.
58469
58470         * m4/getopt.m4: Replace opterr.
58471
58472 2004-11-11  Simon Josefsson  <jas@extundo.com>
58473
58474         * lib/strtok_r.h, strtok_r.c: New file.
58475
58476 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58477
58478         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
58479         of replacing opterr, getopt, etc.  This should handle the
58480         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
58481
58482 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58483
58484         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
58485         we can stop lying to compilers about the constness of argv when we
58486         are compiled outside glibc.
58487         (getopt, getopt_long, getopt_long_only): Use it.
58488         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
58489         _getopt_internal, getopt): Likewise.
58490         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
58491         _getopt_long_only_r): Likewise.
58492         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
58493         _getopt_long_r, _getopt_long_only_r): Likewise.
58494
58495         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
58496         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
58497         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
58498         the other external symbols.
58499         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
58500         declaration, since the above renaming now works around collisions.
58501
58502 2004-11-11  Jim Meyering  <jim@meyering.net>
58503
58504         * lib/linebreak.c: Remove trailing blanks.
58505         * lib/alloca_.h: Likewise.
58506         * lib/acosl.c: Likewise.
58507         * lib/euidaccess.c: Likewise.
58508         * lib/allocsa.h: Likewise.
58509
58510 2004-11-10  Simon Josefsson  <jas@extundo.com>
58511
58512         * m4/getaddrinfo.m4: New file.
58513
58514 2004-11-10  Simon Josefsson  <jas@extundo.com>
58515
58516         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
58517
58518 2004-11-10  Simon Josefsson  <jas@extundo.com>
58519
58520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58521         getaddrinfo.
58522
58523         * modules/getaddrinfo: New file.
58524
58525 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
58528
58529 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * lib/mktime.c (SHR): New macro, which is a portable
58532         substitute for >> that should work even on Crays.
58533         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
58534         Problem reported by Mark D. Baushke in
58535         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
58536         * lib/getdate.y (SHR): Likewise.
58537         (tm_diff): Use it.
58538         * lib/strftime.c (SHR): Likewise.
58539         (tm_diff): Use it.
58540         * lib/quotearg.c (struct quoting_options): Use unsigned int for
58541         quote_these_too, so that right shifts are well defined.  All uses
58542         changed.
58543
58544 2004-11-10  Jim Meyering  <jim@meyering.net>
58545
58546         Ensure that no close failure goes unreported.
58547         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
58548         return early when it seems there's nothing to flush.
58549         Don't include __fpending.h.
58550
58551 2004-11-10  Jim Meyering  <jim@meyering.net>
58552
58553         * modules/closeout (Depends-on): Remove fpending.
58554
58555 2004-11-10  Jim Meyering  <jim@meyering.net>
58556
58557         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
58558
58559 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
58562         gl_FUNC_STRFTIME.
58563         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
58564         and AC_REQUIRE when possible, to avoid duplicate checks.
58565         Check for <wchar.h>.
58566
58567 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
58570
58571 2004-11-09  Bruno Haible  <bruno@clisp.org>
58572
58573         * m4/sockpfaf.m4: New file.
58574
58575 2004-11-05  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
58578         Reported by Mark D. Baushke <mdb@cvshome.org>.
58579
58580 2004-11-04  Bruno Haible  <bruno@clisp.org>
58581
58582         2004-09-11  Bruno Haible  <bruno@clisp.org>
58583                 * allocsa.valgrind: New file.
58584         2004-02-06  Bruno Haible  <bruno@clisp.org>
58585                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
58586                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
58587                 Reported by Christopher Seip <chris.seip@hp.com>.
58588
58589 2004-11-04  Bruno Haible  <bruno@clisp.org>
58590
58591         * modules/allocsa (Files): Add lib/allocsa.valgrind.
58592         (Makefile.am): Distribute it.
58593
58594 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
58597         with errno == ERANGE if the buffer is too small.
58598         Problem reported by Mark D. Baushke.
58599
58600 2004-11-03  Albert Chin  <china@thewrittenword.com>
58601             Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
58604         equivalent, substitute $ac_type for equivalent type rather than
58605         blindly using uint32_t *always* which won't work if uint32_t is not
58606         available.  Define _UINT32_T to work around typedef of uint32_t if
58607         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
58608         2.5.1.
58609
58610 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * m4/jm-macros.m4: Sync from coreutils.
58613         (gl_MACROS): Check for mbrlen, for pathchk.
58614         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
58615
58616 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58617
58618         * lib/xreadlink.c (MAXSIZE): New macro.
58619         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
58620         size does not exceed MAXSIZE.  Avoid cast.
58621         As suggested by Mark D. Baushke in
58622         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
58623         if readlink fails with buffer size just under MAXSIZE, try again
58624         with MAXSIZE.
58625
58626 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58627
58628         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
58629
58630 2004-11-02  Derek R. Price  <derek@ximbiot.com>
58631         and  Paul Eggert  <eggert@cs.ucla.edu>
58632
58633         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
58634         (get_date): Overparenthesize to avoid GCC warning.
58635
58636 2004-11-02  Bruno Haible  <bruno@clisp.org>
58637
58638         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
58639         returns void.
58640
58641 2004-11-02  Bruno Haible  <bruno@clisp.org>
58642
58643         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
58644         function returns void.
58645
58646 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58647
58648         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
58649         fflush_unlocked, flockfile, funlockfile, funlockfile,
58650         fputs_unlocked, putc_unlocked.
58651
58652 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58653
58654         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58655         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
58656         already declared.
58657
58658 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58659
58660         * modules/getdate (Files): Add doc/getdate.texi.
58661         (Depends-on): Add setenv, xalloc.
58662
58663 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58664
58665         * lib/getdate.y: Add support for TZ="foo" within a date string.
58666         Fix some bugs near time_t boundaries.  Reject dates with
58667         out-of-range components, e.g., "Sept 31".
58668         Include <stdlib.h>, "setenv.h", "xalloc.h".
58669         (ISDIGIT_LOCALE): Remove; unused.
58670         Note that the TZ and time functions used here are not reentrant.
58671         (mktime_ok, get_tz): New functions.
58672         (TZBUFSIZE): New constant.
58673         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
58674         This requires that we sometimes generate our own TZ="XXX..." setting.
58675
58676 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58677
58678         * doc/getdate.texi: New file, from coreutils with modifications for
58679         the new TZ parsing.
58680
58681 2004-10-27  Derek R. Price  <derek@ximbiot.com>
58682
58683         * lib/mktime.c (not_equal_tm): Remove redundant check.
58684
58685 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58686
58687         * modules/regex (lib_SOURCES): Add regex.c.
58688         Reported by James Youngman in
58689         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
58690
58691 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58692
58693         * lib/getdate.y: Use Bison 1.875 features, and some minor
58694         code cleanups.  This change does not affect semantics.
58695         Don't include <stdlib.h>; no longer needed.
58696         Don't include unlocked-io.h; only the "#if TEST" code uses
58697         stdio, and performance isn't crucial there.
58698         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
58699         Bison 1.875 features as described below.
58700         All uses of "PC." replaced by "pc->".
58701         (YYSTYPE): Add a forward declaration.
58702         (yylex, yyerror): Use full prototypes in forward decls.
58703         Use "%pure-parser" rather than obsolescent "%pure_parser".
58704         Use %parse-param and %lex-param instead of obsolescent
58705         YYPARSE_PARAM and YYLEX_PARAM.
58706         (meridian_table, month_and_day_table, time_units_table,
58707         relative_time_table, time_zone_table, military_table,
58708         lookup_zone, lookup_word, get_date):
58709         Use NULL instead of 0 where appropriate.
58710         (to_hour): Avoid abort (), to avoid a dependency on
58711         stdlib.h.
58712         (yyerror, yylex): Now accepts parser_control * arg.
58713         (main) [TEST]: Use '\0' rather than 0 for char.
58714
58715 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
58718
58719 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58720
58721         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
58722         It's now the caller's responsibility to handle the case where
58723         !HAVE_GETPAGESIZE && !defined getpagesize.
58724
58725         * lib/mktime.c (leapyear): Arg is long int, not int.
58726
58727 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
58728
58729         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
58730
58731 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
58734         missing.  Problem reported by James Youngman.
58735
58736 2004-10-16  Simon Josefsson  <jas@extundo.com>
58737
58738         * gnulib-tool: Fix comments.  Fix parse problem.
58739         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
58740
58741 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
58742
58743         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
58744         implementation of getopt_long.  Problem reported by Alexander Taler in:
58745         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
58746
58747 2004-10-15  Bruno Haible  <bruno@clisp.org>
58748
58749         * gnulib-tool: Untabify. Initialize supplied_libname.
58750         (func_usage): More homogenous output.
58751         (func_modules_transitive_closure, func_modules_to_filelist,
58752         func_emit_lib_Makefile_am): New functions.
58753         (func_import): New function, extracted from big case statement. Use
58754         func_get_license, func_modules_transitive_closure,
58755         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
58756         opt_lgpl. Don't use test -a, as it's not portable.
58757         (func_create_testdir): Use func_modules_transitive_closure,
58758         func_modules_to_filelist, func_emit_lib_Makefile_am.
58759
58760 2004-10-15  Bruno Haible  <bruno@clisp.org>
58761
58762         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
58763
58764 2004-10-15  Bruno Haible  <bruno@clisp.org>
58765
58766         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
58767         the portions belonging to each module.
58768         Suggested by Derek Robert Price <derek@ximbiot.com>.
58769
58770 2004-10-12  Simon Josefsson  <jas@extundo.com>
58771
58772         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58773         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
58774         to real functions.
58775
58776 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58777
58778         * modules/vsnprintf: New file.
58779
58780 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58781
58782         * m4/vsnprintf.m4: New file.
58783
58784 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58785
58786         * lib/vsnprintf.h: New file.
58787         * lib/vsnprintf.c: New file.
58788
58789 2004-10-11  Bruno Haible  <bruno@clisp.org>
58790
58791         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
58792         vsnprintf.
58793
58794 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58795
58796         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
58797
58798 2004-10-07  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
58801         fits into the provided buffer.
58802
58803 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58804
58805         * lib/diacrit.c, diacrit.h: Add GPL notice.
58806
58807         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
58808         notice.
58809         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
58810         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
58811         This avoids a potential constant-folding bug.
58812
58813 2004-10-05  Bruno Haible  <bruno@clisp.org>
58814
58815         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
58816         for the declaration of strsep.
58817
58818 2004-10-05  Bruno Haible  <bruno@clisp.org>
58819
58820         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
58821
58822 2004-10-04  Simon Josefsson  <jas@extundo.com>
58823
58824         * modules/memmem: New file.
58825         * tests/test-memmem.c: New file.
58826         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
58827
58828 2004-10-04  Simon Josefsson  <jas@extundo.com>
58829
58830         * m4/memmem.m4: New file.
58831
58832 2004-10-04  Simon Josefsson  <jas@extundo.com>
58833
58834         * lib/memmem.h: New file.
58835         * lib/memmem.c: New file, taken from glibc.
58836
58837 2004-10-04  Simon Josefsson  <jas@extundo.com>
58838
58839         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
58840         '#ifdef USE_UNLOCKED_IO'.
58841
58842 2004-10-04  Simon Josefsson  <jas@extundo.com>
58843
58844         * config/srclist.txt: Add memmem from glibc.
58845
58846 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58847
58848         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
58849
58850         * modules/argmatch, modules/argp, modules/closeout, modules/error,
58851         modules/exclude, modules/getdate, modules/getline,
58852         modules/getndelim2, modules/getpass, modules/getpass-gnu,
58853         modules/getusershell, modules/linebuffer, modules/md5,
58854         modules/mountlist, modules/posixtm, modules/readtokens,
58855         modules/readutmp, modules/regex, modules/sha1,
58856         modules/version-etc, modules/yesno:
58857         Remove dependency on unlocked-io.
58858
58859 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58860
58861         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
58862
58863         * m4/unlocked-io.m4: Add copyright notice.
58864         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
58865
58866 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58867
58868         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
58869         * lib/xmalloc.c (xmemdup): Likewise.
58870         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
58871         XFREE): Remove these long-obsolescent macros.
58872         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
58873         * lib/xstrdup.c: Remove.
58874
58875         * lib/regex.c (re_comp): Cast gettext return value to char *,
58876         Problem reported by Martin Neitzel via Mark D. Baushke.
58877
58878 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58879
58880         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
58881         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
58882         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
58883         regex.c, sha1.c, version-etc.c, yesno.c:
58884         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
58885         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
58886         the includer's responsibility.
58887
58888         Sync from coreutils.
58889
58890         * lib/modechange.c (mode_compile): Don't decrement a pointer that
58891         points to the start of a string, as the C Standard says the
58892         resulting behavior is undefined.
58893
58894         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
58895         simple -> simple_backups, numbered_existing ->
58896         numbered_existing_backups, numbered -> numbered_backups
58897         to avoid shadowing problems.  All uses changed.
58898         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
58899         * lib/backupfile.c (check_extension, numbered_backup):
58900         Rename locals to avoid shadowing 'basename'.
58901         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
58902         once.
58903
58904         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
58905         * lib/.cvsignore: Add getopt.h.
58906
58907 2004-10-04  Bruno Haible  <bruno@clisp.org>
58908
58909         * modules/README: New file.
58910         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
58911         not a module.
58912
58913 2004-10-02  Jim Meyering  <jim@meyering.net>
58914
58915         * lib/dirfd.h, getpagesize.h: Add copyright notice.
58916
58917 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58918
58919         * modules/strsep: New file.
58920
58921 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58922
58923         * m4/strsep.m4: New file.
58924
58925 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58926
58927         * lib/strsep.h: New file.
58928         * lib/strsep.c: New file.
58929
58930 2004-10-01  Simon Josefsson  <jas@extundo.com>
58931
58932         * lib/snprintf.c (snprintf): Handle size==0.
58933
58934 2004-10-01  Simon Josefsson  <jas@extundo.com>
58935             Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
58938         (snprintf): Declare 'args'.
58939
58940 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
58941
58942         * lib/snprintf.c: Remove comments as to why each header is needed.
58943
58944 2004-10-01  Bruno Haible  <bruno@clisp.org>
58945
58946         * MODULES.html.sh: Add strsep.
58947
58948 2004-09-30  Simon Josefsson  <jas@extundo.com>
58949
58950         * modules/snprintf: New file.
58951
58952 2004-09-30  Simon Josefsson  <jas@extundo.com>
58953
58954         * m4/snprintf.m4: New file.
58955
58956 2004-09-30  Simon Josefsson  <jas@extundo.com>
58957
58958         * lib/snprintf.h, lib/snprintf.c: New files.
58959
58960 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58961
58962         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
58963         (hol_entry_help): Never translate an empty string.
58964         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58965         * lib/argp.h (OPTION_NO_TRANS): New option.
58966
58967 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * modules/argp (Maintainer): Replace Simon Josefsson
58970         by Sergey Poznyakoff.
58971
58972 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58973
58974         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58975         changes merged back into glibc.
58976
58977 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58980
58981 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58982
58983         * lib/xvasprintf.c: Include xalloc.h.
58984         (xvasprintf): Use xalloc_die, not xmalloc_die.
58985
58986 2004-09-29  Bruno Haible  <bruno@clisp.org>
58987
58988         * modules/alloca-opt: New file, derived from modules/alloca.
58989         * modules/allocsa: Depend on alloca-opt instead of alloca.
58990         * modules/setenv: Likewise.
58991         * modules/vasnprintf: Likewise.
58992         * MODULES.html.sh: Add alloca-opt.
58993
58994 2004-09-28  Simon Josefsson  <jas@extundo.com>
58995
58996         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58997         LGPL, and to replace license template from GPL to LGPL.
58998
58999 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59000
59001         * modules/dummy: Change license to LGPL.
59002
59003 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59006
59007 2004-09-24  Simon Josefsson  <jas@extundo.com>
59008
59009         * modules/minmax (License): Change from GPL to LGPL.
59010
59011 2004-09-23  Simon Josefsson  <jas@extundo.com>
59012
59013         * gnulib-tool (--import): Typo.
59014
59015 2004-09-23  Simon Josefsson  <jas@extundo.com>
59016
59017         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59018
59019 2004-09-22  Bruno Haible  <bruno@clisp.org>
59020
59021         * modules/*: Add 'License' field.
59022         * gnulib-tool: Accept --extract-license option.
59023         (func_get_license): New function.
59024
59025 2004-09-21  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59028         Reported by Simon Josefsson.
59029
59030 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59031
59032         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59033         gl_AC_TYPE_LONG_LONG.
59034
59035 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59036
59037         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59038
59039 2004-09-18  Simon Josefsson  <jas@extundo.com>
59040         and  Paul Eggert  <eggert@cs.ucla.edu>
59041
59042         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59043         calls with autoreconf.  Define GL_LIB.
59044
59045 2004-09-14  Karl Berry  <karl@gnu.org>
59046
59047         * config/srclist.txt: unsync setenv.c, sigh.
59048
59049 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59050
59051         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59052         Problem reported by Bruno Haible in:
59053         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59054
59055 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59056
59057         * config/srclist.txt: Comment out argp-pvh.c.
59058
59059 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59060
59061         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59062         in case some system header has #define'd it.  Problem reported by
59063         Soeren D. Schulze in
59064         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59065
59066 2004-09-09  Karl Berry  <karl@gnu.org>
59067
59068         * regex.[ch]: delete from the root.  These were supposed to be
59069                 synced with emacs cvs, but this has not happened for about
59070                 a year, and anyway nothing else uses emacs regex.[ch].
59071                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59072                 lib/regex[.ch] is untouched.
59073
59074 2004-09-09  Bruno Haible  <bruno@clisp.org>
59075
59076         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59077
59078 2004-09-09  Bruno Haible  <bruno@clisp.org>
59079
59080         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59081         modifications.
59082         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59083
59084 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59085
59086         * modules/xvasprintf: New file.
59087         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59088
59089 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59090
59091         * lib/xvasprintf.h: New file.
59092         * lib/xvasprintf.c: New file.
59093         * lib/xasprintf.c: New file.
59094
59095 2004-09-08  Bruno Haible  <bruno@clisp.org>
59096
59097         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59098
59099 2004-09-08  Bruno Haible  <bruno@clisp.org>
59100
59101         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59102         length is > INT_MAX.
59103         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59104         more.
59105
59106 2004-09-08  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/stdint_.h: New file, taken from GNU clisp.
59109
59110 2004-09-08  Bruno Haible  <bruno@clisp.org>
59111             Oskar Liljeblad  <oskar@osk.mine.nu>
59112
59113         * modules/stdint: New file.
59114         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59115
59116 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59117
59118         Import from coreutils.
59119         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59120         strings on unbounded length.  alloca's performance benefits aren't
59121         that important here.
59122         (V_STRDUP): Remove.
59123         (parse_with_separator): New function, with most of the internals
59124         of the old parse_user_spec.  Allow user to omit both user and group,
59125         for compatibility with FreeBSD.
59126         Clone only the user name, not the entire spec.
59127         Do not set *uid, *gid unless entirely successful.
59128         Avoid memory leak in some failing cases.
59129         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59130         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59131         (parse_user_spec): Rewrite to use parse_with_separator.
59132
59133 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59134
59135         * modules/userspec: Don't depend on alloca.
59136
59137 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59140
59141 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59142
59143         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59144         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59145         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59146
59147 2004-08-16  Simon Josefsson  <jas@extundo.com>
59148
59149         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59150         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59151         Add --dry-run for --import.
59152         Let user provided command line parameters override configure.ac
59153         settings.
59154
59155 2004-08-12  Simon Josefsson  <jas@extundo.com>
59156
59157         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59158         as discussed with Paul Eggert in threads rooted at
59159         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59160         and
59161         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59162         Before, the test was empty, and relied on ELIDE_CODE in source
59163         code.)
59164         (gl_PREREQ_GETOPT): New macro.
59165         (gl_GETOPT): Use them.
59166
59167 2004-08-12  Simon Josefsson  <jas@extundo.com>
59168
59169         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59170         * lib/getopt_.h: Renamed from getopt.h.
59171
59172 2004-08-12  Simon Josefsson  <jas@extundo.com>
59173
59174         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59175         Change default library name from libfoo to libgnu.
59176         Now, if you have a configure.ac that says:
59177                 gl_SOURCE_BASE(gl)
59178                 gl_M4_BASE(gl/m4)
59179                 gl_MODULES(error getopt etcetera)
59180                 gl_INIT
59181         you can import all you need by running:
59182                 ../gnulib/gnulib-tool --import
59183
59184         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59185         (Makefile.am): Rewrite, use logic from argz.
59186         (Include): Use <getopt.h> instead of "getopt.h".
59187
59188 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59189
59190         * modules/argp (Files): Add m4/unlocked-io.m4.
59191         (Depends-on): Add extensions.
59192
59193 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59194
59195         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59196         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59197         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59198         Check for program_invocation_name, program_invocation_short_name,
59199         flockfile, funlockfile, features.h, _getopt_long_only_r.
59200
59201 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59204         its complicated substitute.
59205         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59206         and program_invocation_name.
59207         (__argp_basename) [!_LIBC]: Remove; the only use was
59208         replaced by its body.
59209         (__argp_short_program_name): Change condition from
59210         !defined __argp_short_program_name to
59211         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59212         to match argp-namefrob.h.
59213         (__argp_failure): Don't assume strerror_r returns char *.
59214         * lib/argp-parse.c (N_): Define unconditionally.
59215         (argp_default_options): Fill out initializers with 0 to avoid
59216         gcc warnings.
59217
59218 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59219
59220         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59221         getopt1.c.
59222
59223 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         Merge from coreutils.
59226
59227         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59228
59229         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59230         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59231
59232 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59233
59234         Merge from coreutils.
59235
59236         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59237         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59238         for Reliant Unix 5.43.
59239
59240         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59241         (union fooround): Use uintmax_t, not long int.
59242         The rest is a merge from libc:
59243         [defined _LIBC]: Include <shlib-compat.h>.
59244         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59245
59246         * lib/settime.c (settime): Recode to avoid warning with
59247         Sun Forte C 6U2.
59248
59249         * lib/strverscmp.c: Convert to UTF-8.
59250
59251 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59252
59253         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59254         m4/uintmax_t.m4.
59255
59256 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59257
59258         * modules/xalloc-die: New file.
59259         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59260
59261         * modules/md5 (Files): Add m4/uint32_t.m4.
59262         * modules/sha1: Renamed from modules/sha.
59263         (Files):
59264         Rename lib/sha.h to lib/sha1.h.
59265         Rename lib/sha.c to lib/sha1.c.
59266         Rename m4/sha.m4 to m4/sha1.m4.
59267         (lib_SOURCES): Likewise.
59268         (configure.ac): Rename gl_SHA to gl_SHA1.
59269         (Include): sha.h -> sha1.h.
59270
59271 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59272
59273         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59274         * m4/sha1.m4: Renamed from sha.m4.
59275         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59276
59277 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         * lib/obstack.h (obstack_empty_p):
59280         Don't assume that chunk->contents is suitably aligned.
59281         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59282         Likewise. Problem reported by Benno in
59283         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59284
59285         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59286         readable.  This could be improved further but it'd take some work.
59287
59288 2004-08-08  Simon Josefsson  <jas@extundo.com>
59289
59290         * modules/xgethostname (Depends-on): Remove exit and error (not
59291         used).
59292
59293         * modules/getpass-gnu: Add getpass.h.
59294         (Depends-on): Add stdbool.
59295         * modules/getpass: Add getpass.h.
59296
59297 2004-08-08  Simon Josefsson  <jas@extundo.com>
59298
59299         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59300         Check getpass declaration.
59301
59302 2004-08-08  Simon Josefsson  <jas@extundo.com>
59303
59304         * lib/xgethostname.c: Don't include error.h (not used).
59305
59306         * lib/getpass.h: Add.
59307         * lib/getpass.c: Include getpass.h first.
59308
59309 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59310
59311         * lib/xalloc-die.c: New file.
59312         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59313         All uses removed.
59314         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59315         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59316         xalloc-die.c.
59317         (_, N_, xalloc_die): Move to xalloc-die.c.
59318         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59319         so that we needn't mess with xalloc_msg_memory_exhausted.
59320
59321         * lib/sha1.h: Renamed from sha.h.
59322         (SHA1_H): Renamed from _SHA_H.
59323         (sha1_ctx): Renamed from sha_ctx.
59324         (sha1_init_ctx): Renamed from sha_init_ctx.
59325         (sha1_process_block): Renamed from sha_process_block.
59326         (sha1_process_bytes): Renamed from sha_process_bytes.
59327         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59328         (sha1_read_ctx): Renamed from sha_read_ctx.
59329         (sha1_stream): Renamed from sha_stream.
59330         (sha1_buffer): Renamed from sha_buffer.
59331         * lib/sha1.c: Likewise; renamed from sha.c.
59332         Do not include <sys/types.h>.
59333         Include <stddef.h> rather than <stdlib.h>.
59334
59335 2004-08-08  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59338         FILESYSTEM_PREFIX_LEN.
59339         * lib/progreloc.c: Likewise.
59340         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59341
59342 2004-08-06  Simon Josefsson  <jas@extundo.com>
59343
59344         * modules/progname (Depends-on): Don't depend on stdbool.
59345
59346 2004-08-06  Simon Josefsson  <jas@extundo.com>
59347
59348         * modules/getsubopt: New file.
59349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59350         getsubopt.
59351
59352 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         More merge from coreutils.
59355
59356         * m4/utimens.m4, m4/utimecmp.m4: New files.
59357         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59358         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59359         prereq.m4, sha.m4: Import changes from coreutils.
59360
59361 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         More merge from coreutils.
59364         * modules/raise, modules/readtokens0, modules/utimens:
59365         * modules/utimecmp, module/xnanosleep: New files.
59366         * modules/strftime: Add lib/strftime.h.
59367         Change include from <time.h> to "strftime.h".
59368         * modules/yesno: Add lib/yesno.h.
59369         * modules/backupfile: Remove lib/addext.c.
59370         * modules/euidaccess: Add stat-macros.h.
59371         * modules/canonicalize, modules/euidaccess,
59372         modules/filemode, modules/lchown, modules/makepath,
59373         modules/rmdir, modules/stat: Likewise.
59374
59375 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59376
59377         Merge from tar.
59378         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59379         SIZE_MAX is a valid preprocessor constant.
59380         (__argp_basename): Change from "#ifndef _LIBC"
59381         to "#ifndef __argp_short_program_name", so that
59382         we don't compile these functions for tar.
59383
59384         More merges from coreutils.
59385         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59386         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59387         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59388         * lib/addext.c: Remove; no longer needed.
59389         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59390         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59391         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59392         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59393         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59394         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59395         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59396         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59397         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59398         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59399         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59400         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59401         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59402         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
59403         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
59404         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
59405         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
59406         Import changes from coreutils.
59407
59408 2004-08-05  Simon Josefsson  <jas@extundo.com>
59409
59410         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
59411
59412 2004-08-05  Simon Josefsson  <jas@extundo.com>
59413
59414         * m4/getsubopt.m4: New file.
59415
59416 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         Merge from coreutils.
59419
59420         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
59421         * m4/getcwd-path-max.m4: New files.
59422
59423         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
59424         FILESYSTEM_PREFIX_LEN ->
59425         FILE_SYSTEM_PREFIX_LEN.
59426         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
59427         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
59428         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
59429         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
59430
59431         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
59432         prerequisite modules now handle the DOS stuff.
59433         Don't check for unistd.h.
59434
59435 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59436
59437         Merge from coreutils.
59438
59439         * lib/.gdb-history: Remove; this doesn't belong here.
59440
59441         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
59442         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
59443         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
59444         * lib/getcwd.c: New files.
59445
59446         * lib/dirname.h: Include <stdbool.h>.
59447         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
59448         for consistency with POSIX terminology.  All uses changed.
59449         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
59450         (strip_trailing_slashes): Use bool for booleans.
59451         * lib/stripslash.c (strip_trailing_slashes): Likewise.
59452
59453         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
59454         sometimes returns a positive errno value even when it succeeds.
59455         (print_errno_message) [!LIBC]: Fall back on strerror if
59456         __strerror_r fails.
59457
59458         * lib/path-concat.c (mempcpy): Don't define if a system header defines
59459         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
59460         (longest_relative_suffix): New function.
59461         (path_concat): Use it.  Assume first argument is not NULL.
59462         Port to DOS.  Omit redundant separators.
59463         Report an error instead of returning NULL.
59464         Use mempcpy instead of memcpy.
59465         (xpath_concat): Remove: not declared or used.
59466
59467         * lib/same.h: Include <stdbool.h>
59468         (same_name): Return bool, not int.
59469         * lib/same.c (same_name): Likewise.
59470         (errno): Don't declare; we assume C89 or better now.
59471
59472         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
59473         if not already defined.
59474
59475         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
59476         * lib/dup-safer.c (errno): Likewise.
59477
59478 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         Merge from coreutils.
59481         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
59482         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
59483         * modules/path-concat: Don't depend on strdup.
59484
59485 2004-08-03  Simon Josefsson  <jas@extundo.com>
59486
59487         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
59488         * lib/progname.h: Don't include stdbool.h.
59489
59490 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59491
59492         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
59493         * MODULES.html.sh (func_all_modules): Remove fatal.
59494
59495 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59496
59497         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
59498
59499 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
59502         working.
59503
59504 2004-08-02  Simon Josefsson  <jas@extundo.com>
59505
59506         * lib/getsubopt.h: New file, with comments from Bruno Haible.
59507         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
59508         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
59509
59510 2004-08-01  Simon Josefsson  <jas@extundo.com>
59511
59512         * lib/xgetdomainname.c: Include stdlib.h, for free().
59513
59514 2004-07-19  Bruno Haible  <bruno@clisp.org>
59515
59516         * MODULES.html.sh (func_all_modules): Add dummy.
59517
59518 2004-07-16  Simon Josefsson  <jas@extundo.com>
59519
59520         * modules/dummy: New file.
59521
59522 2004-07-16  Simon Josefsson  <jas@extundo.com>
59523
59524         * lib/dummy.c: New file.
59525
59526 2004-07-16  Bruno Haible  <bruno@clisp.org>
59527
59528         * lib/backupfile.h: Add extern "C" for C++.
59529         * lib/closeout.h: Likewise.
59530         * lib/copy-file.h: Likewise.
59531         * lib/findprog.h: Likewise.
59532         * lib/full-write.h: Likewise.
59533         * lib/pathname.h: Likewise.
59534         * lib/progname.h: Likewise.
59535         * lib/stpcpy.h: Likewise.
59536         * lib/stpncpy.h: Likewise.
59537         * lib/strcase.h: Likewise.
59538         * lib/strstr.h: Likewise.
59539         * lib/xalloc.h: Likewise.
59540
59541         * lib/mbswidth.h: Add extern "C" for C++.
59542         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
59543
59544 2004-07-13  Robert Millan  <robertmh@gnu.org>
59545
59546         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
59547
59548 2004-07-09  Simon Josefsson  <jas@extundo.com>
59549
59550         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
59551         failed without this.)
59552
59553 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59554
59555         * modules/chown (Files): Add lib/fchown-stub.c, since
59556         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
59557
59558 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         * lib/fchown-stub.c: New file.
59561
59562 2004-06-24  Jim Meyering  <jim@meyering.net>
59563
59564         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
59565
59566 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59567
59568         * modules/argz: Omit "#include".
59569
59570         * MODULES.html.sh (func_all_modules): Add calloc, to match
59571         2004-06-01 addition of calloc module.
59572
59573 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59574
59575         * m4/argz.m4: New file, which is autoupdated from libtool.
59576
59577 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59578
59579         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
59580         libtool.
59581
59582 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59583
59584         * config/srclist-update: Don't insist on "USA." before the
59585         close-comment, as libtool omits the period and puts the */ on a
59586         separate line.
59587         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
59588         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
59589
59590 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
59591
59592         * modules/argz: New file.
59593         * MODULES.html.sh (func_all_modules): Add argz.
59594
59595 2004-06-12  Jim Meyering  <jim@meyering.net>
59596         and  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * modules/hash (Files): Add lib/xalloc.h.
59599         * modules/pipe (Depends-on): Add wait-process.
59600         * modules/stat (Depends-on): Add xalloc.
59601         * modules/userspec (Files): Add lib/userspec.h.
59602         * modules/xstrto
59603
59604         Upgrade from gettext-0.13.
59605         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
59606         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
59607         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
59608
59609 2004-06-10  Jim Meyering  <jim@meyering.net>
59610
59611         * lib/calloc.c: New file.
59612
59613 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59614
59615         * lib/getdate.y (yylex): Allow space between sign and number.
59616         Problem reported by Dan Jacobson.
59617
59618 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59619
59620         Merge from coreutils CVS.
59621
59622         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
59623         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
59624         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
59625         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
59626         xstrtol.m4: Fix copyright date and/or serial number.
59627
59628         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
59629         See if we need an fchown replacement.
59630         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
59631         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
59632         and use the replacement function if we detect either defect.
59633
59634         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
59635         gl_UTIMECMP.
59636
59637 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
59638         and  Jim Meyering  <jim@meyering.net>
59639
59640         Merge from coreutils CVS.
59641
59642         * lib/stat-macros.h: New file, with contents from file-type.h
59643         and coreutils' system.h.
59644         * lib/file-type.c: Include "stat-macros.h".
59645         * lib/file-type.h (file_type): Move all macro definitions to new file,
59646         stat-macros.h.
59647
59648         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
59649         Wrap old code with this conditional.
59650         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
59651         function that does not dereference symlinks.
59652         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
59653
59654         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
59655         dependency problems.
59656         (xreadlink): Accept new arg SIZE, for efficiency.
59657         All decls and uses changed.
59658         * lib/xreadlink.h: Include <stddef.h>, for size_t.
59659
59660         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
59661         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
59662
59663         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
59664         sysexits.h.
59665
59666 2004-06-01  Jim Meyering  <jim@meyering.net>
59667
59668         * m4/calloc.m4: New file.
59669
59670 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
59671
59672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
59673         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
59674         Also, fix a typo in a diagnostic.
59675
59676 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59677
59678         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
59679         or AC_FUNC_REALLOC.
59680
59681 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59682
59683         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
59684         macros to be defined.
59685         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
59686         the allocator returns NULL because the requested size is zero.
59687
59688 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59689
59690         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
59691         var.  Add comment explaining why libc still defines it.  This
59692         merges the following patch from glibc:
59693         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
59694
59695 2004-05-20  Andreas Schwab  <schwab@suse.de>
59696
59697         * m4/free.m4: Replace free if it not known to work, not the other
59698         way round.
59699
59700 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59701
59702         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
59703         present in glibc since revision 1.1 of this file.
59704         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
59705         obstack_alignment_mask, obstack_alloc, obstack_base,
59706         obstack_blank, obstack_blank_fast, obstack_chunk_size,
59707         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
59708         obstack_grow0, obstack_init, obstack_int_grow,
59709         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
59710         obstack_next_free, obstack_object_size, obstack_ptr_grow,
59711         obstack_ptr_grow_fast, obstack_room): Remove declarations of
59712         nonexistent functions.
59713
59714 2004-05-18  Karl Berry  <karl@gnu.org>
59715
59716         * config/srclist.txt: break link for vasnprintf.c.
59717
59718 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59719
59720         Port obstack to the AS/400, where pointers are 16 bytes wide and
59721         you cannot cast an integer to a valid pointer.  This patch is
59722         currently waiting to be integrated into glibc; see
59723         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
59724
59725         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
59726         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
59727         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
59728         (struct obstack): temp member is now a union of a pointer and
59729         an integer, instead of an integer.  All integer uses changed.
59730         This does not affect the physical layout of struct obstack,
59731         except on hosts (like the AS/400) where the size or alignment of
59732         void * is greater than that of ptrdiff_t.
59733         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
59734         __STDC__)]: Store temporary in pointer member of union, not
59735         integer member.
59736         * lib/obstack.c: Include <stddef.h>, for offsetof.
59737         (struct fooalign): Remove; it doesn't need a name.
59738         (union fooround): Change double to long double, and add void *.
59739         (DEFAULT_ALIGNMENT): Use offsetof to compute.
59740         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
59741         not a macro.  Hence the values are always int; so remove all
59742         casts-to-int in uses.
59743
59744 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59745
59746         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
59747         we can get this patch merged into glibc.
59748
59749 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59750             Paul Eggert  <eggert@cs.ucla.edu>
59751
59752         * m4/argp: Depend on alloca.
59753
59754 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59755             Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
59758         freecoding.
59759
59760 2004-05-17  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
59763         precision that consists of a '.' followed by an empty digit string.
59764         Patch by Tor Lillqvist <tml@iki.fi>.
59765
59766 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59767
59768         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
59769         for backward compatibility with older code.  We need our own
59770         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
59771         it under some other name, and our alloca.h will define it.
59772
59773 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59774             Derek Price  <derek@ximbiot.com>
59775
59776         * lib/alloca.c: Include <alloca.h>, to get our interface.
59777         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
59778         include <alloca.h> first.  Use C89 prototype for alloca; this
59779         requires including <stddef.h> for size_t.  Use extern "C" if C++.
59780         Use #elif for simplicity, since we can assume C89 now.
59781         Don't try to source the system alloca.h since it will not be found
59782         and to prevent recursively including its replacement.
59783         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
59784         * lib/regex.c: Likewise.
59785
59786 2004-05-16  Derek Price  <derek@ximbiot.com>
59787             Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         getline cleanup.  This changes the getndelim2 API: both order of
59790         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
59791         no delimiter).
59792
59793         * lib/getline.c: Don't include stddef.h or stdio.h, since our
59794         interface does that.
59795         (getline): Always use getdelim, so that we don't have two
59796         copies of this code.
59797         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
59798         if available.
59799         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
59800         (GETNDELIM2_MAXIMUM): New macro.
59801         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
59802         instead of the old practice of delim2==0.  All callers changed.
59803         Return -1 on overflow, instead of returning junk.
59804         Do not set *linesize unless allocation succeeds.
59805         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
59806         that we include sys/types.h.
59807         * lib/getnline.h: Likewise.
59808         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
59809         (getndelim2): Reorder arguments.
59810         * lib/getnline.c (getnline, getndelim):
59811         Don't discard the NMAX argument.
59812         (getnline): Invoke getndelim, to avoid code duplication.
59813         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
59814         of (size_t) -1 by callers of the getnline family.
59815
59816 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
59819         Check for gettimeofday.
59820         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
59821         Check for settimeofday, stime.
59822
59823 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         * lib/nanosleep.c (suspended): Change its type from int to
59826         sig_atomic_t volatile.
59827         (first_call): Make it private to rpl_nanosleep, and have it
59828         be zero initially as that's a bit faster.
59829         (my_usleep): Round up fractional times instead of truncating them,
59830         as this is the usual meaning for 'sleep'.
59831
59832         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
59833         doesn't work.
59834         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
59835         (ENOSYS): Define if not defined.
59836         (settime): Fall back on stime if it exists and settimeofday fails.
59837         But don't bother with fallbacks if a method fails with errno == EPERM.
59838
59839 2004-05-11  Jim Meyering  <jim@meyering.net>
59840
59841         Prior to this change, the save_cwd caller required read access to the
59842         current directory on most systems (ones with the fchdir function).
59843
59844         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
59845         fails, try write-only, and finally, resort to using xgetcwd.
59846
59847 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59848
59849         * lib/obstack.c, obstack.h: Import changes from libc.
59850
59851 2004-04-28  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
59854         also implicitly appends .exe to executables.
59855         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
59856         accepts Windows pathnames.
59857         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59858         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59859         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59860         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59861         Reported by Derek Robert Price <derek@ximbiot.com>.
59862
59863 2004-04-21  Karl Berry  <karl@gnu.org>
59864
59865         * config/srclist.txt (localcharset.c): break sync.
59866
59867 2004-04-20  Paul Eggert  <eggert@twinsun.com>
59868
59869         * m4/host-os.m4: Add a copyright notice.
59870
59871 2004-04-20  Jim Meyering  <jim@meyering.net>
59872
59873         Change UTILS_ to gl_ in AC_DEFINE'd names.
59874         Change utils_- and jm_-prefixed variables, too.
59875         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
59876         UTILS_FUNC_MKDIR_TRAILING_SLASH.
59877         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
59878
59879         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
59880         Don't emit trailing blanks.
59881         Also rename jm_-prefixed variables to have gl_ prefix.
59882
59883         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
59884         Also rename jm_-prefixed variables to have gl_ prefix.
59885
59886         * m4/jm-macros.m4: Reflect the renamings.
59887         * m4/prereq.m4: Likewise.
59888
59889 2004-04-20  Jim Meyering  <jim@meyering.net>
59890
59891         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
59892         memory.
59893
59894 2004-04-20  Jim Meyering  <jim@meyering.net>
59895             Bruno Haible  <bruno@clisp.org>
59896
59897         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
59898         memory when realloc fails.
59899
59900 2004-04-19  Jim Meyering  <jim@meyering.net>
59901
59902         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
59903         now that readutmp.c may call `free (0)'.
59904
59905 2004-04-19  Bruno Haible  <bruno@clisp.org>
59906
59907         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
59908         * m4/inttypes_h.m4: Likewise.
59909         * m4/stdint_h.m4: Likewise.
59910         * m4/intmax_t.m4: Likewise.
59911         * m4/uintmax_t.m4: Likewise.
59912
59913 2004-04-18  Jim Meyering  <jim@meyering.net>
59914
59915         * m4/prereq.m4: Don't forbid jm_ prefix.
59916
59917         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
59918         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
59919         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
59920         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
59921         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
59922         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
59923         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
59924         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
59925         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
59926         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
59927         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
59928         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
59929         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
59930         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
59931         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
59932         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
59933         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
59934         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
59935         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
59936
59937 2004-04-18  Jim Meyering  <jim@meyering.net>
59938
59939         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
59940         failure, don't leak memory and do call END_UTMP_ENT.
59941
59942 2004-04-16  Jim Meyering  <jim@meyering.net>
59943
59944         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
59945         coreutils' stat program.
59946         (gl_PREREQ): Don't require jm_PREREQ_STAT.
59947
59948 2004-04-11  Paul Eggert  <eggert@twinsun.com>
59949
59950         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
59951         C89.
59952         (CHAR_BIT): Remove, since we assume C89.
59953         Include <stdint.h> if available, as per current Autoconf CVS advice.
59954
59955 2004-03-31  Jim Meyering  <jim@meyering.net>
59956
59957         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
59958         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
59959         * m4/xalloc.m4: Likewise.
59960
59961 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59962
59963         Merge from coreutils.
59964
59965         * m4/inttostr.m4: New file.
59966         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59967         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59968         Require gl_CLOCK_TIME.
59969         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59970
59971 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59972
59973         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59974         not bool, to be more consistent with Unix conventions.
59975         Suggested by Bruno Haible.
59976
59977         Merge from coreutils.
59978
59979         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59980         * lib/umaxtostr.c: New files.
59981
59982         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59983         the usual <time.h> dance.
59984         (get_date): Change signature to support fractional time stamps.
59985         All callers changed.
59986         * lib/getdate.y: Include "getdate.h" first, as we can now
59987         assume C89 and don't need to worry about 'const'.
59988         Similarly, include "unlocked-io.h" near start, not in middle.
59989         Include <limits.h>.
59990         (textint.value): Use long int rather than int.
59991         (textint.digits): Use size_t rather than int.
59992         (BILLION, LOG10_BILLION): New constants.
59993         (parser_control): New member rel_ns.  Members day_ordinal,
59994         time_zone, month, day, hour, minutes, rel_year, rel_month,
59995         rel_day, rel_hour, rel_minutes, rel_seconds
59996         are now long int, not int.  Member seconds is now struct timespec,
59997         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59998         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59999         not int.
60000         (%union.intval): Now long int, not int.
60001         New member timespec.
60002         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60003         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60004         (spec): Now is a timespec or an item list.
60005         (timespec, items): New nonterminals.
60006         (time, rel, relunit, number, get_date):
60007         Add support for fractional seconds.
60008         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60009         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60010         (to_hour): First arg is now long int, not int.
60011         (to_year): Returns long int, not int.
60012         Don't treat year -70 like 70.
60013         (tm_diff): Returns long int, not int.
60014         (lookup_word): Use bool instead of int when appropriate.
60015         (yylex): Use size_t for count, not int.
60016         Detect overflow when parsing large integer constants.
60017         Add support for fractions.
60018         (get_date): Make pointers 'const' if possible.
60019         Use more-portable code to detect integer overflow.
60020         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60021         Don't use ctime; it's not reliable if the year has >4 digits.
60022
60023         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60024         This is for compatibility with BSD.
60025
60026         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60027         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60028         From coreutils' system.h.
60029
60030         * lib/userspec.c: Don't include "posixver.h".
60031         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60032         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60033         compatible extension.  Simplify code by removing a boolean int
60034         that was always nonzero if a string was nonnull.
60035
60036 2004-03-30  Jim Meyering  <jim@meyering.net>
60037
60038         Merge from coreutils.
60039
60040         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60041         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60042         on some systems one must include <grp.h> before it.
60043         Reported by Christian Krackowizer.
60044
60045 2004-03-30  Jim Meyering  <jim@meyering.net>
60046
60047         Merge from coreutils.
60048
60049         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60050
60051         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60052         an empty input stream.
60053
60054         * lib/readtokens.c: Include <stdbool.h>.
60055         (readtoken): Use `size_t' rather than int/long.
60056         All callers adjusted.
60057         Use `bool' rather than `int' where appropriate.
60058         Use memset rather than an explicit loop.
60059         Use x2nrealloc rather than xrealloc.
60060         Allow the use of `\0' as a delimiter.
60061         (readtokens): Likewise.
60062         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60063
60064 2004-03-30  Jim Meyering  <jim@meyering.net>
60065
60066         * m4/realloc.m4: Remove file, since now it does no more than
60067         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60068         the `configure.ac' section of module/realloc.
60069         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60070
60071 2004-03-30  Bruno Haible  <bruno@clisp.org>
60072
60073         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60074         nonnull.
60075
60076 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60077
60078         Merge changes to getloadavg.c from coreutils and Emacs.
60079
60080         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60081         Define to an expression, not to the empty string.
60082         Include cloexec.h and xalloc.h.
60083         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60084         Use set_cloexec_flag rather than rolling our own.
60085         * lib/cloexec.c, lib/cloexec.h: New files.
60086
60087 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60088
60089         * m4/cloexec.m4: New file.
60090
60091 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60092
60093         * lib/getopt.h: Sync with libc CVS.
60094
60095 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60096             Bruno Haible  <bruno@clisp.org>
60097
60098         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60099         mbswidth.
60100
60101 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60102             Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/mbswidth.h: Include <wchar.h> only if
60105         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60106         <wchar.h>.
60107         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60108
60109 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60110
60111         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60112         Sync with libc CVS.
60113         * lib/getopt_int.h: New file, also synced from libc.
60114
60115 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60116
60117         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60118         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60119         Bring back getopt.c, getopt.h, getopt1.c.
60120
60121 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60122
60123         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60124         All uses changed.  Check for sa_sigaction member; this fixes
60125         a bug first reported by Jason Andrade in
60126         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60127
60128 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60129
60130         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60131         '#if' expressions.  Unlike the code it replaces, it does not
60132         depend on (defined _SC_PAGESIZE).  However, it does depend on
60133         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60134         first reported by Jason Andrade in
60135         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60136
60137 2004-02-25  Simon Josefsson  <jas@extundo.com>
60138
60139         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60140
60141 2004-02-25  Simon Josefsson  <jas@extundo.com>
60142
60143         * lib/strdup.h: New file.
60144         * lib/strdup.c: Include it.
60145         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60146         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60147
60148 2004-02-23  Karl Berry  <karl@gnu.org>
60149
60150         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60151         (from fencepost.gnu.org:/gd/gnuorg).
60152
60153 2004-02-23  Karl Berry  <karl@gnu.org>
60154
60155         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60156         * config/srclist.txt: add maintain/standards documents.
60157
60158 2004-02-18  Bruno Haible  <bruno@clisp.org>
60159
60160         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60161         Reported by Derek Robert Price <derek@ximbiot.com>.
60162
60163 2004-02-16  Karl Berry  <karl@gnu.org>
60164
60165         * config/mkinstalldirs, install-sh: update from automake.
60166
60167 2004-02-06  Karl Berry  <karl@gnu.org>
60168
60169         * m4/po.m4: update from gettext 0.14.1.
60170
60171 2004-02-06  Karl Berry  <karl@gnu.org>
60172
60173         * lib/config.charset: update from gettext 0.14.1.
60174
60175 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60176
60177         Add comments and code, prompted by suggestions from Bruno Haible
60178         for sh-quote.
60179         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60180         describing the enum quoting_style values.
60181         * lib/quotearg.c (quotearg_alloc): New function.
60182         (quotearg_buffer_restyled): Treat lone { and } as special.
60183         Treat = as special.  Work around bug with older shells
60184         that "see" a '\' that is really the 2nd byte of a multibyte char.
60185         Quote empty string with shell_quoting_style.
60186
60187 2004-02-03  Bruno Haible  <bruno@clisp.org>
60188
60189         * m4/pipe.m4: New file, from GNU gettext.
60190
60191 2004-02-03  Bruno Haible  <bruno@clisp.org>
60192
60193         * lib/pipe.h: New file, from GNU gettext.
60194         * lib/pipe.c: New file, from GNU gettext.
60195
60196 2004-01-27  Bruno Haible  <bruno@clisp.org>
60197
60198         * m4/execute.m4: New file, from GNU gettext.
60199
60200 2004-01-27  Bruno Haible  <bruno@clisp.org>
60201
60202         * lib/execute.h: New file, from GNU gettext.
60203         * lib/execute.c: New file, from GNU gettext.
60204         * lib/w32spawn.h: New file, from GNU gettext.
60205
60206 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60207
60208         Merge from diffutils.
60209
60210         * lib/file-type.c (file_type): Add typed memory objects.
60211         * lib/file-type.h (S_TYPEISTMO): New macro.
60212
60213         * lib/c-stack.h (c_stack_action): Remove argv argument.
60214         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60215         (die): Don't calculate message unless segv_action returns.
60216         (get_stack_location, min_address_from_argv, max_address_from_argv,
60217         volatile stack_base, volatile_stack_size): Remove.
60218         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60219         that every segmentation violation is a stack overflow.  (Ouch!)
60220         See Debian bug 136249 (still outstanding) for more info about why
60221         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60222
60223 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60224
60225         Exit-status fix from coreutils.
60226
60227         Use exit_failure consistently in place of EXIT_FAILURE,
60228         so that program exit statuses are consistent on failure.
60229
60230         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60231         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60232         * lib/argmatch.h: Comment fix to match the above.
60233         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60234         Now a macro referring to exit_failure, instead of a separate
60235         variable.  Include "exitfail.h" to get it.
60236         * lib/xstrtol.h: Include "exitfail.h".
60237         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60238
60239         * lib/long-options.c (parse_long_options): Use prototype
60240         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60241         for clarity.
60242
60243 2004-01-21  Jim Meyering  <jim@meyering.net>
60244
60245         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60246         so as not to conflict with a different-sized __mktime_internal
60247         function in GNU libc.
60248         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60249         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60250
60251 2004-01-20  Karl Berry  <karl@gnu.org>
60252
60253         * config/config.guess: update from config.
60254
60255         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60256
60257 2004-01-20  Bruno Haible  <bruno@clisp.org>
60258
60259         Safer stack allocation.
60260         * lib/setenv.c: Include allocsa.h.
60261         (alloca): Remove fallback definition.
60262         (freea): Remove macro.
60263         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60264         instead of freea.
60265
60266 2004-01-20  Bruno Haible  <bruno@clisp.org>
60267
60268         * m4/eealloc.m4: New file, from GNU gettext.
60269
60270 2004-01-20  Bruno Haible  <bruno@clisp.org>
60271
60272         * m4/allocsa.m4: New file, from GNU gettext.
60273
60274 2004-01-20  Bruno Haible  <bruno@clisp.org>
60275
60276         * lib/xallocsa.h: New file, from GNU gettext.
60277         * lib/xallocsa.c: New file, from GNU gettext.
60278
60279 2004-01-20  Bruno Haible  <bruno@clisp.org>
60280
60281         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60282
60283 2004-01-20  Bruno Haible  <bruno@clisp.org>
60284
60285         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60286         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60287         specially.
60288
60289 2004-01-20  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60292         patch.
60293
60294 2004-01-20  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60297
60298 2004-01-20  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/eealloc.h: New file.
60301
60302 2004-01-20  Bruno Haible  <bruno@clisp.org>
60303
60304         * lib/binary-io.h: Avoid warnings on Cygwin.
60305
60306 2004-01-20  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/allocsa.h: New file, from GNU gettext.
60309         * lib/allocsa.c: New file, from GNU gettext.
60310
60311 2004-01-18  Karl Berry  <karl@gnu.org>
60312
60313         * doc/gpl.texi, doc/lgpl.texi: new files.
60314
60315 2004-01-18  Karl Berry  <karl@gnu.org>
60316
60317         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60318         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60319
60320 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60321
60322         Merge from coreutils.
60323
60324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60325         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60326         (gl_DEFAULT_POSIX2_VERSION): Move
60327         the documentation from 'configure' into 'config.hin',
60328         so that 'configure --help' isn't burdened by it and
60329         we don't have to worry about its formatting there.
60330         Reword the documentation so that it's more succinct
60331         and can be run together into a single paragraph.
60332         * m4/same.m4 (gl_SAME): Check for pathconf.
60333
60334 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60335
60336         Merge from coreutils.
60337
60338         * lib/posixver.c: Include posixver.h.
60339
60340         * lib/same.c: Include <stdbool.h>, <limits.h>.
60341         (_POSIX_NAME_MAX): Define if not defined.
60342         (MIN): New macro.
60343         (same_name): If file names are silently truncated, report
60344         that the file names are the same if they are the same after
60345         the silent truncation.
60346
60347         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60348         conversion function.
60349         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60350         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60351         longer needed.
60352
60353 2004-01-15  Jim Meyering  <jim@meyering.net>
60354
60355         Merge from coreutils.
60356
60357         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60358         if no library is required.
60359         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60360         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60361         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60362         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60363         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60364         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60365         value, $ac_cv_search_crypt, if it's "none required".
60366         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60367         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60368         not gl_FUNC_GETLOADAVG.
60369         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60370         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60371
60372 2004-01-15  Jim Meyering  <jim@meyering.net>
60373
60374         Merge from coreutils.
60375
60376         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60377         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60378         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60379
60380         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60381         optional configure-time default.
60382
60383         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60384
60385         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60386
60387 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60388
60389         Merge from coreutils.
60390
60391         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60392         value, $ac_cv_search_nanosleep, if it's "none required".
60393
60394 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60395
60396         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60397         with like-named macro in fnmatch.c.
60398         (EXT): Use an internal constant instead.
60399
60400         Merge fnmatch patches from glibc.
60401         * lib/fnmatch.c (mbsinit): Remove define.
60402         Add libc_hidden_ver (__fnmatch, fnmatch).
60403         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
60404         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
60405
60406 2004-01-14  Karl Berry  <karl@gnu.org>
60407
60408         * config/install-sh: update from automake.
60409
60410 2004-01-13  Karl Berry  <karl@gnu.org>
60411
60412         * config/install-sh: update from automake.
60413
60414 2004-01-09  Karl Berry  <karl@gnu.org>
60415
60416         * config/install-sh: update from automake.
60417
60418 2004-01-05  Karl Berry  <karl@gnu.org>
60419
60420         * config/config.{sub,guess}: update from config.
60421
60422 2003-12-31  Karl Berry  <karl@gnu.org>
60423
60424         * config/depcomp: update from automake.
60425
60426 2003-12-14  Karl Berry  <karl@gnu.org>
60427
60428         * lib/config.charset: update from gettext-runtime.
60429
60430 2003-12-03  Paul Eggert  <eggert@twinsun.com>
60431
60432         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
60433         Bug reported by Alfred M. Szmidt.
60434
60435 2003-12-03  Bruno Haible  <bruno@clisp.org>
60436
60437         * m4/gettext.m4: Upgrade from gettext-0.13.
60438         * m4/po.m4: Upgrade from gettext-0.13.
60439         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
60440         * m4/intmax.m4: New file, from gettext-0.13.
60441         * m4/printf-posix.m4: New file, from gettext-0.13.
60442
60443 2003-11-29  Karl Berry  <karl@gnu.org>
60444
60445         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
60446
60447 2003-11-25  Paul Eggert  <eggert@twinsun.com>
60448             Bruno Haible  <bruno@clisp.org>
60449
60450         * lib/printf-parse.h: Don't include sys/types.h.
60451         (ARG_NONE): New macro.
60452         (char_directive): Change type of *arg_index fields to size_t.
60453         * lib/printf-parse.c: Don't include sys/types.h.
60454         (SSIZE_MAX): Remove macro.
60455         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
60456         Remove unnecessary overflow check.
60457         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
60458         fields.
60459
60460 2003-11-25  Bruno Haible  <bruno@clisp.org>
60461
60462         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
60463
60464 2003-11-25  Bruno Haible  <bruno@clisp.org>
60465
60466         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
60467         gt_TYPE_SSIZE_T.
60468
60469 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60470
60471         * modules/alloca: Remove dependency on xalloc.
60472
60473 2003-11-24  Paul Eggert  <eggert@twinsun.com>
60474
60475         * lib/alloca.c: Remove dependency on xalloc module.
60476         (xalloc_die): Remove.
60477         (memory_full) [!defined emacs]: New macro.
60478         [!defined emacs]: Don't include xalloc.h.
60479         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
60480         address arithmetic overflows.  Change datatypes a bit to avoid
60481         unnecessary casts.
60482
60483 2003-11-22  Jim Meyering  <jim@meyering.net>
60484
60485         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
60486         s/size/size_t/.
60487
60488 2003-11-21  Karl Berry  <karl@gnu.org>
60489
60490         * config/config.{sub,guess}: update from config.
60491
60492 2003-11-18  Karl Berry  <karl@gnu.org>
60493
60494         * config/config.{sub,guess}: update from config.
60495
60496         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
60497
60498 2003-11-17  Paul Eggert  <eggert@twinsun.com>
60499
60500         * README: Mention that S+T cannot overflow if S is the size of
60501         an existing object and T is sufficiently small.
60502
60503 2003-11-17  Jim Meyering  <jim@meyering.net>
60504
60505         On systems without utime and without a utimes function capable of
60506         dealing with a NULL struct utimbuf* argument, this utime replacement
60507         could -- in unusual circumstances -- leak a file descriptor.
60508         * lib/utime.c: Include <unistd.h> and <errno.h>.
60509         (utime_null): Be sure to close `fd' and to preserve errno.
60510         Reported by Geoff Collyer via Arnold Robbins.
60511
60512 2003-11-17  Bruno Haible  <bruno@clisp.org>
60513
60514         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
60515         (Depends-on): Add xsize.
60516
60517 2003-11-17  Bruno Haible  <bruno@clisp.org>
60518
60519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
60520
60521 2003-11-17  Bruno Haible  <bruno@clisp.org>
60522
60523         * lib/vasnprintf.c (alloca): Remove fallback definition.
60524         (freea): Remove definition.
60525         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
60526         Reported by Paul Eggert.
60527
60528 2003-11-16  Paul Eggert  <eggert@twinsun.com>
60529             Bruno Haible  <bruno@clisp.org>
60530
60531         Protect against address arithmetic overflow.
60532         * lib/printf-args.h: Include stddef.h.
60533         (arguments): Change type of field 'count' to size_t.
60534         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
60535         'unsigned int' where appropriate.
60536         * lib/printf-parse.h: Include sys/types.h.
60537         (char_directive): Change type of *arg_index fields to ssize_t.
60538         (char_directives): Change type of fields 'count', max_*_length to
60539         size_t.
60540         * lib/printf-parse.c: Include sys/types.h and xsize.h.
60541         (SSIZE_MAX): Define fallback value.
60542         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
60543         instead of 'int' where appropriate. Check a_allocated, d_allocated
60544         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
60545         * lib/vasnprintf.c: Include xsize.h.
60546         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
60547         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
60548         overflow. Avoid wraparound when converting a width or precision from
60549         decimal to binary.
60550
60551 2003-11-16  Bruno Haible  <bruno@clisp.org>
60552
60553         Update from GNU gettext.
60554         * lib/printf-parse.c: Generalize to it can be compiled for wide
60555         strings.
60556         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
60557         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
60558         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
60559         SNPRINTF): New macros.
60560         Don't include <alloca.h> if the file is used inside libintl.
60561         (local_wcslen): New function, for Solaris 2.5.1.
60562         (VASNPRINTF): Use it instead of wcslen.
60563
60564 2003-11-16  Bruno Haible  <bruno@clisp.org>
60565
60566         * lib/xsize.h (xmax): New function.
60567         (xsum, xsum3, xsum4): Declare as "pure" functions.
60568
60569 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60570
60571         * modules/xalloc (Files): Undo latest change, since xalloc.h
60572         no longer needs SIZE_MAX or PTRDIFF_MAX.
60573
60574 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60575
60576         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
60577         gl_PTRDIFF_MAX.
60578
60579 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60580
60581         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
60582         "return", to pacify some unknown compiler.  Problem reported
60583         by Joerg Schilling.
60584
60585 2003-11-12  Paul Eggert  <eggert@twinsun.com>
60586
60587         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
60588         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
60589         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
60590         heuristic is just as accurate as far as we know, and it removes a
60591         dependency on size_max.m4 and ptrdiff_max.m4.
60592
60593 2003-11-11  Bruno Haible  <bruno@clisp.org>
60594
60595         * modules/xsize (Files): Add m4/size_max.m4.
60596         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
60597
60598 2003-11-11  Bruno Haible  <bruno@clisp.org>
60599
60600         * m4/size_max.m4: New file.
60601         * m4/ptrdiff_max.m4: New file.
60602         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
60603         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
60604         (gl_XALLOC): Invoke it.
60605
60606 2003-11-11  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
60609         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
60610         defined.
60611
60612 2003-11-10  Paul Eggert  <eggert@twinsun.com>
60613
60614         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
60615         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
60616         rejected some allocations of exactly SIZE_MAX - 2 bytes.
60617         From Bruno Haible.
60618         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
60619         not (size_t) -1, since it's defined here.
60620
60621 2003-11-09  Karl Berry  <karl@gnu.org>
60622
60623         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
60624
60625 2003-11-06  Paul Eggert  <eggert@twinsun.com>
60626
60627         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
60628         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
60629         Reject sizes of exactly SIZE_MAX bytes.
60630         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
60631         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
60632
60633 2003-11-05  Bruno Haible  <bruno@clisp.org>
60634
60635         * lib/xsize.h: Include limits.h, to avoid a possible collision with
60636         SIZE_MAX defined in <limits.h> on Solaris.
60637
60638 2003-11-04  Jim Meyering  <jim@meyering.net>
60639
60640         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
60641         variable names, rather than @VAR@.
60642         * modules/poll: Likewise.
60643
60644 2003-11-04  Bruno Haible  <bruno@clisp.org>
60645
60646         * modules/xsize: New file.
60647         * modules/linebreak: Depend on xsize.
60648         * MODULES.html.sh (func_all_modules): Add xsize.
60649
60650 2003-11-04  Bruno Haible  <bruno@clisp.org>
60651
60652         * m4/xsize.m4: New file.
60653
60654 2003-11-04  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/xsize.h: New file.
60657         * lib/linebreak.c: Include xsize.h.
60658         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
60659         argument for overflow.
60660         Suggested by Paul Eggert.
60661
60662 2003-11-03  Karl Berry  <karl@gnu.org>
60663
60664         * config/config.{guess,sub}: update from config.
60665
60666 2003-11-03  Jim Meyering  <jim@meyering.net>
60667
60668         * modules/userspec (lib_SOURCES): Add userspec.h.
60669         (Include): Add "userspec.h".
60670         Improve description.
60671
60672 2003-11-03  Jim Meyering  <jim@meyering.net>
60673
60674         * lib/userspec.c: Include "userspec.h".
60675         * lib/userspec.h: New file.
60676
60677 2003-11-03  Bruno Haible  <bruno@clisp.org>
60678
60679         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
60680
60681 2003-11-03  Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
60684         available, to avoid (extremely rare) race condition.
60685         Suggested by Paul Eggert.
60686
60687 2003-11-02  Karl Berry  <karl@gnu.org>
60688
60689         * config/srclist.txt (vasprintf.c): sync broken, sigh.
60690
60691 2003-10-31  Paul Eggert  <eggert@twinsun.com>
60692
60693         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
60694         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
60695         (read_filesystem_list): Set and use me_type_malloced.
60696         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
60697         whatever the type happens to be), for brevity and consistency.
60698         Check for size calculation overflow on Alphas running OSF/1.
60699
60700 2003-10-31  Jim Meyering  <jim@meyering.net>
60701
60702         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
60703
60704         * lib/linebuffer.c: Include <string.h> for declaration of memset.
60705
60706 2003-10-30  Paul Eggert  <eggert@twinsun.com>
60707             Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
60710         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
60711
60712 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
60715         netbsd*-gnu*.  Suggested by Robert Millan.
60716
60717 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60718
60719         * modules/group-member: Depend on stdbool.
60720
60721 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60722
60723         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
60724
60725 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60726
60727         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
60728         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
60729         after the 'gnu' in these cases.  This fixes some bugs in the
60730         previous change, and is based on suggestions by Robert Millan.
60731
60732 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60733
60734         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
60735         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
60736         no longer needed.
60737         * lib/quotearg.c (quotearg_n_options): Use it.
60738         * lib/group-member.c: Include <stdbool.h>.
60739         (free_group_info): Arg is now const *; don't free arg.
60740         (get_group_info): Now returns bool and accepts struct group_info *,
60741         rather than returning a malloc'ed struct group_info *.
60742         All uses changed.  Check for overflow in internal size calculation.
60743
60744         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
60745         rather than xmalloc/xrealloc.
60746         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
60747         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
60748         conformance bug: the old code used a pointer after freeing the
60749         storage that it addressed.
60750         * lib/hash.c (hash_initialize): Simplify the code by using
60751         xalloc_oversized rather than doing it by hand.
60752         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
60753         the buffer preserved.  Use free and xmalloc instead.
60754         * lib/quotearg.c (quotearg_n_options): Likewise.
60755         Use a simpler test for size overflow.  Don't use xalloc_oversized
60756         because unsigned int might be wider than size_t (!); this suggests
60757         that we should switch from unsigned int to size_t for slot numbers.
60758
60759 2003-10-28  Paul Eggert  <eggert@twinsun.com>
60760
60761         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
60762         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
60763         NetBSD kernels.  Requested by Richard Stallman.
60764
60765 2003-10-27  Paul Eggert  <eggert@twinsun.com>
60766
60767         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
60768         to allocate the returned structure.  Do not allocate a subarray,
60769         as x2nrealloc will do that.
60770         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
60771         instead of xnrealloc.
60772         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
60773
60774 2003-10-27  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/stdbool_.h: Better support for BeOS.
60777
60778 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60779
60780         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
60781         now uses inline.
60782
60783 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60784
60785         * lib/xalloc.h (xalloc_oversized): New static inline function, for
60786         callers that want to do their own size-overflow checking.  Include
60787         <stdbool.h>, since xalloc_oversized returns bool.
60788         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
60789         to use xalloc_oversized.
60790
60791         Add two functions x2realloc, x2nrealloc, for programs that grow
60792         arrays dynamically by doubling their sizes.
60793         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
60794         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
60795         New functions.
60796
60797         Port to C99 semantics for 'inline' of external functions.
60798         Bug reported by Bruno Haible.
60799         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
60800         with the old contents of xnmalloc.
60801         (xnmalloc, xmalloc): Use it.
60802         (xnrealloc_inline): New static inline function,
60803         with the old contents of xnrealloc.
60804         (xnrealloc, xrealloc): Use it.
60805
60806         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
60807         that.
60808
60809 2003-10-26  Karl Berry  <karl@gnu.org>
60810
60811         * config/srclist.txt (COPYING.DOC): no longer available from
60812         /gd/gnuorg; don't know where the ultimate source is.
60813
60814 2003-10-25  Paul Eggert  <eggert@twinsun.com>
60815
60816         Fix several address-calculation bugs in the hash modules,
60817         plus some minor code cleanup.
60818
60819         * lib/hash.h: Include <stdbool.h>, for bool.
60820         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
60821         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
60822         hash_get_n_entries, hash_get_max_bucket_length,
60823         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
60824         hash_rehash): Use size_t rather than unsigned.
60825         * lib/hash.c (struct hash_table, hash_get_n_buckets,
60826         hash_get_n_buckets_used, hash_get_n_entries,
60827         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
60828         hash_get_entries, hash_do_for_each, hash_string, is_prime,
60829         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
60830         Likewise.
60831         (SIZE_MAX): Define if not defined.
60832         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
60833         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
60834         hash_print):
60835         Use const * when possible.
60836         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
60837         (check_tuning): Fix bug: if tuning parameters were very close to
60838         0 or 1, rounding errors could have caused subscript violations.
60839         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
60840         (hash_initialize): Add 'fail:' label
60841         to free table and return NULL, and use it to simplify code.
60842         Use calloc rather than clearing the storage ourself.
60843         (hash_initialize, hash_rehash): Check for arithmetic overflow in
60844         buffer size calculations.
60845         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
60846         Include <stddef.h>, for size_t.
60847         * lib/hash-pjw.c (hash_pjw): Likewise.
60848         Switch to method described by Bruno Haible.
60849         Include <limits.h>, for CHAR_BIT.
60850         (SIZE_BITS): New macro.
60851
60852 2003-10-23  Paul Eggert  <eggert@twinsun.com>
60853
60854         * m4/getline.m4 (AM_FUNC_GETLINE):
60855         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
60856         hosts.  Problem reported by Derek Robert Price in
60857         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
60858         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
60859         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
60860
60861 2003-10-21  Paul Eggert  <eggert@twinsun.com>
60862
60863         * lib/getndelim2.c (getndelim2): When size calculation overflows,
60864         ceiling the allocation at NMAX bytes rather than silently
60865         discarding input bytes before NMAX is reached.  This makes
60866         a difference only if NMAX exceeds SIZE_MAX / 2.
60867
60868         * lib/obstack.c: Merge from glibc.
60869         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
60870         Add libc_hidden_def (_obstack_newchunk).
60871         (_obstack_free) [! defined _LIBC]: Remove.
60872         [defined _LIBC]: Make a strong alias from obstack_free, rather than
60873         a clone of the function body.
60874         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
60875         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
60876
60877         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
60878         glibc.
60879         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
60880         arg to memcpy.
60881
60882         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
60883         (obstack_ptr_grow_fast, obstack_int_grow_fast):
60884         Don't use lvalue casts, as GCC plans to remove support for them
60885         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
60886         was also present in the non-GCC version, indicating that this
60887         code had always been buggy and had never been widely used.
60888         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
60889         Use the fast variant of each macro, rather than copying the
60890         definiens of the fast variant; that way, we'll be more likely to
60891         catch future bugs in the fast variants.
60892
60893 2003-10-20  Bruno Haible  <bruno@clisp.org>
60894
60895         * modules/wait-process: New file.
60896         * MODULES.html.sh (func_all_modules): Add wait-process.
60897
60898 2003-10-20  Bruno Haible  <bruno@clisp.org>
60899
60900         * m4/wait-process.m4: New file.
60901
60902 2003-10-20  Bruno Haible  <bruno@clisp.org>
60903
60904         * lib/wait-process.h: New file, from GNU gettext.
60905         * lib/wait-process.c: New file, from GNU gettext.
60906
60907 2003-10-19  Jim Meyering  <jim@meyering.net>
60908
60909         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
60910         HPUX 10.20.
60911
60912 2003-10-18  Karl Berry  <karl@gnu.org>
60913
60914         * config/config.guess: update from config.
60915
60916 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60917
60918         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
60919         (getgroups): First arg is int, not size_t.
60920         Don't let 'free' mangle errno.
60921
60922 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60923
60924         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
60925
60926 2003-10-16  Karl Berry  <karl@gnu.org>
60927
60928         * config/config.{guess,sub}: update from config.
60929
60930 2003-10-16  Jim Meyering  <jim@meyering.net>
60931
60932         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
60933         memcpy.
60934
60935 2003-10-15  Paul Eggert  <eggert@twinsun.com>
60936
60937         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
60938         (SIZE_MAX): Remove.
60939         (new_exclude, add_exclude_file): Initial size no longer needs to
60940         be a power of 2.
60941         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
60942         our own address arithmetic overflow checking.
60943
60944         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
60945         (fnmatch): Do not alloca more than 2000 wide characters;
60946         instead, use malloc for large buffers.
60947         Check for address arithmetic overflow, and return -1
60948         with errno set to ENOMEM in that case.
60949         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
60950         (NEW_PATTERN): Do not alloca more than 8000 bytes;
60951         instead, return -1.  Check for address arithmetic overflow.
60952
60953 2003-10-14  Paul Eggert  <eggert@twinsun.com>
60954
60955         Handle invalid suffixes and overflow independently, so that
60956         callers can treat them independently as needed.  Fix some bugs in
60957         suffix handling, e.g., "100k@" was not diagnosed as an invalid
60958         suffix for a human-readable blocksize.  The major caller-visible
60959         change is the addition of a new
60960         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
60961         that both overflow and suffix chars were found.
60962
60963         * lib/human.c (humblock): Don't check separately for invalid suffix
60964         char; that is xstrtoumax's job (now that its bug is fixed).
60965         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60966         INTMAX_MAX]: New macros.
60967         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60968         TYPE_MAXIMUM): New macros.
60969         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60970         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60971         if overflow occurs, as it's what __strtol does and it's more useful
60972         in practice.
60973         (__xstrtol): If __strtol reports some error other than ERANGE,
60974         reflect it to the caller as LONGINT_INVALID.  If it reports
60975         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60976         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60977         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60978         value.
60979         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60980         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60981         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60982         [defined UINTMAX_MAX]: New macros.
60983
60984 2003-10-14  Bruno Haible  <bruno@clisp.org>
60985
60986         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60987
60988 2003-10-14  Bruno Haible  <bruno@clisp.org>
60989
60990         * m4/sig_atomic_t: New file, from GNU gettext.
60991         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60992
60993 2003-10-14  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60996         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60997         Also use volatile where needed.
60998
60999 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61000
61001         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61002         Change maintainer from Bruno Haible to 'all'.
61003
61004 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61005
61006         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61007
61008 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61009
61010         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61011         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61012         and define in terms of the other primitives.
61013         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61014         (SIZE_MAX): Define if not already defined.
61015         (array_size_overflow): New function.
61016         (xalloc_die): Abort instead of exiting if 'error' returns.
61017         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61018         (xmalloc, xrealloc): Use them.
61019         (xcalloc): Check for address arithmetic overflow.
61020         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61021         a bit faster than strcpy.
61022
61023 2003-10-10  Simon Josefsson  <jas@extundo.com>
61024
61025         * modules/argp (Depends-on): Add restrict and strcase.
61026
61027 2003-10-10  Simon Josefsson  <jas@extundo.com>
61028
61029         * m4/argp.m4: Add AC_C_INLINE.
61030
61031 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61032
61033         Merge getpass from libc, plus a few fixes.
61034
61035         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61036         Include <stdbool.h>.
61037         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61038         __fsetlocking to empty.
61039         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61040         do include <bits/libc-lock.h>.
61041         Do not include <fcntl.h>; not needed.
61042         [_LIBC]: Include <wchar.h>.
61043         (NOTCANCEL_MODE): New macro.
61044         (flockfile, funlockfile) [_LIBC]: New macros.
61045         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61046         [!_LIBC]: New macros.
61047         (call_fclose): New function.
61048         (getpass): Use it.  Save tty stream separately; this simplifies the
61049         code and makes it more reliable if stdin happens to equal stdout.
61050         Invoke __fsetlocking on tty.
61051         Handle thread cancellation if needed.
61052         Namespace cleanup (use __tcgetattr, __getline).
61053         Use bool for Booleans.
61054         [USE_IN_LIBIO]: Handle wide streams.
61055         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61056         stream might go where.
61057
61058         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61059         doesn't have to include <stdio.h> before us.
61060         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61061         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61062         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61063         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61064         if not declared, so that we can use getpass.c code from libc without
61065         rewriting it.
61066         (flockfile, ftrylockfile, funlockfile): New macros.
61067
61068 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61069
61070         * modules/getpass: Depend on stdbool.
61071
61072 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61073
61074         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61075
61076 2003-10-07  Karl Berry  <karl@gnu.org>
61077
61078         * config/config.{guess,sub}: update from config.
61079
61080 2003-10-06  Jim Meyering  <jim@meyering.net>
61081             Bruno Haible  <bruno@clisp.org>
61082
61083         This lets translators provide better translations for the
61084         "Written by ..." part of --version output.
61085         * lib/version-etc.h: Include stdarg.h.
61086         (version_etc_copyright): Declare as readonly.
61087         (version_etc): Make this function variadic with a NULL-terminated list
61088         of author name strings.
61089         (version_etc_va): New declaration.
61090         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61091         (version_etc_copyright): Declare as readonly.
61092         (version_etc_va): New function. Provide a different translatable string
61093         for each possible number of authors < 10. Abbreviate when there are 10
61094         authors or more.
61095         (version_etc): Make this function variadic. Call version_etc_va.
61096         Suggestion from Gary V. Vaughan.
61097
61098         * lib/long-options.h (parse_long_options): Change prototype: the
61099         authors string is moved to the end and becomes variadic.
61100         * lib/long-options.c: Include stdarg.h.
61101         (parse_long_options): Make this function variadic, too.
61102         Call version_etc_va, not version_etc.
61103
61104 2003-10-06  Bruno Haible  <bruno@clisp.org>
61105
61106         * modules/version-etc-2: Remove file.
61107         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61108
61109 2003-10-06  Bruno Haible  <bruno@clisp.org>
61110
61111         * modules/fatal-signal: New file.
61112         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61113
61114 2003-10-06  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/fatal-signal.m4: New file.
61117         * m4/signalblocking.m4: New file, from GNU gettext.
61118
61119 2003-10-06  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/version-etc-2.h: Remove file.
61122         * lib/version-etc-2.c: Remove file.
61123
61124 2003-10-06  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/fatal-signal.h: New file, from GNU gettext.
61127         * lib/fatal-signal.c: New file, from GNU gettext.
61128
61129 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61130
61131         * README: Rework advice for preventing empty .o files.
61132         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61133         not <sys/types.h>.
61134
61135 2003-10-04  Karl Berry  <karl@gnu.org>
61136
61137         * lib/argp*: update from libc.
61138
61139 2003-10-04  Karl Berry  <karl@gnu.org>
61140
61141         * config/config.{guess,sub}: update from config.
61142
61143 2003-10-02  Bruno Haible  <bruno@clisp.org>
61144
61145         * modules/lchown (Include): Add lchown.h.
61146         * modules/time_r (Include): Use "..." syntax.
61147         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61148
61149 2003-10-01  Simon Josefsson  <jas@extundo.com>
61150
61151         * MODULES.html.sh (func_all_modules): Move gethostname from section
61152         'based on' to section 'lacking' POSIX:2001.
61153
61154 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61155
61156         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61157         to output mode on the same stream.
61158
61159 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61160
61161         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61162         Fix arg typo in previous patch.
61163
61164 2003-09-28  Jim Meyering  <jim@meyering.net>
61165
61166         * lib/error.c: Correct cpp indentation.
61167
61168 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61169
61170         * modules/free: New file.
61171
61172 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61173
61174         * m4/free.m4: New file.
61175
61176 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61177
61178         * lib/minmax.h (MIN, MAX)
61179         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61180         Omit the special code that used __typeof__, since we worry that
61181         it could be more trouble than it's worth.  See:
61182         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61183         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61184
61185         * lib/free.c: New file.
61186
61187 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61188
61189         Trivial fixes to Makefile.am parts of module listings.
61190         * modules/strstr: Append strstr.h to lib_SOURCES.
61191         * modules/strcase: Likewise, for strcase.h.
61192
61193 2003-09-27  Karl Berry  <karl@gnu.org>
61194
61195         * config/mkinstalldirs: update from automake.
61196
61197 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61198
61199         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61200         (error_tail): Do not loop, reallocating temporary buffer, since
61201         the output cannot contain more wide characters than the input
61202         contains bytes, the size must be big enough already.  This avoids
61203         one potential size overflow calculation.  Check for size overflow
61204         when calculating temporary buffer size.  Free temporary buffer
61205         when done, if it was allocated with malloc; this plugs a memory
61206         leak.  Remove casts from void * to pointers, that are no longer
61207         needed now that we're assuming C89 or better.
61208
61209         Merge error changes from glibc.
61210
61211         * lib/error.c, error.h: Update copyright notice header to match glibc.
61212         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61213         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61214         Disable cancellation while printing error.
61215         * lib/error.h: Prepend __ to parameter names.
61216
61217 2003-09-26  Jim Meyering  <jim@meyering.net>
61218
61219         * lib/error.c (error_tail): Move some declarations
61220         into inner scope where the local variables are used.
61221
61222 2003-09-26  Bruno Haible  <bruno@clisp.org>
61223
61224         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61225         stpncpy().
61226         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61227
61228 2003-09-26  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61231         (stpncpy): Define as alias for gnu_stpncpy.
61232         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61233
61234 2003-09-25  Simon Josefsson  <jas@extundo.com>
61235
61236         * lib/xgetdomainname.h: New file.
61237         * lib/xgetdomainname.c: New file.
61238
61239 2003-09-25  Simon Josefsson  <jas@extundo.com>
61240             Bruno Haible  <bruno@clisp.org>
61241
61242         * modules/getdomainname: New file.
61243         * modules/xgetdomainname: New file.
61244         * MODULES.html.sh (func_all_modules): Add getdomainname,
61245         xgetdomainname.
61246
61247 2003-09-25  Simon Josefsson  <jas@extundo.com>
61248             Bruno Haible  <bruno@clisp.org>
61249
61250         * m4/getdomainname.m4: New file.
61251
61252 2003-09-25  Simon Josefsson  <jas@extundo.com>
61253             Bruno Haible  <bruno@clisp.org>
61254
61255         * lib/getdomainname.h: New file.
61256         * lib/getdomainname.c: New file.
61257
61258 2003-09-25  Karl Berry  <karl@gnu.org>
61259
61260         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61261
61262 2003-09-25  Karl Berry  <karl@gnu.org>
61263
61264         * config/install-sh: update from automake.
61265
61266 2003-09-25  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/version-etc-2: New file, from modules/version-etc with
61269         modifications.
61270         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61271
61272 2003-09-25  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61275         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61276
61277 2003-09-24  Simon Josefsson  <jas@extundo.com>
61278
61279         * modules/xgethostname: Add xgethostname.h.
61280
61281 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61282
61283         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61284         the buffer associated with the argument.  Bug reported by
61285         Simon Josefsson.
61286
61287 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61288
61289         * README: Document assumptions that 'int' is at least 32 bits
61290         wide, that integer arithmetic is 2's complement without overflow,
61291         that there are no holes in integer values, that adding sizes of
61292         two nonoverlapping objects can't overflow, and that all-bits-zero
61293         yields scalar zero.  Fix spelling and capitalization typos.
61294
61295 2003-09-19  Karl Berry  <karl@gnu.org>
61296
61297         * lib/argp.h: update from libc.
61298
61299 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61300
61301         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61302         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61303         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61304
61305 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61306
61307         * gnulib-tool: Use "test -h", not "test -L", for portability
61308         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61309         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61310         (sed_extract_prog): Issue s commands one-by-one, rather than
61311         using \| in one s command.
61312
61313 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61314
61315         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61316         input error, instead of returning NULL the next time we are called
61317         (and therefore losing track of errno).
61318
61319 2003-09-16  Bruno Haible  <bruno@clisp.org>
61320
61321         * gnulib-tool (func_create_testdir): Warn about duplicated
61322         dependencies.
61323
61324 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61325
61326         * modules/argmatch, modules/fatal, modules/obstack,
61327         modules/xalloc, modules/xgethostname: Sort dependencies by
61328         importance, not alphabetically.
61329
61330 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61331
61332         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61333         fails, so that the caller gets the proper errno.
61334
61335         * lib/readutmp.c (read_utmp): Likewise.
61336         Check for fstat error.  Close stream and free storage
61337         when failing.
61338
61339 2003-09-14  Karl Berry  <karl@gnu.org>
61340
61341         * config/srclist.txt (strdup.c): disable for c89 changes.
61342
61343 2003-09-14  Jim Meyering  <jim@meyering.net>
61344
61345         * lib/getloadavg.c: Correct cpp indentation.
61346         * lib/strdup.c: Likewise.
61347         * lib/vasnprintf.c: Likewise.
61348
61349 2003-09-14  Bruno Haible  <bruno@clisp.org>
61350
61351         * modules/fwriteerror: New file.
61352         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61353
61354 2003-09-14  Bruno Haible  <bruno@clisp.org>
61355
61356         * lib/fwriteerror.h: New file.
61357         * lib/fwriteerror.c: New file.
61358
61359 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61360
61361         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61362         modules/xgethostname, modules/xalloc: Depend on exit.
61363
61364 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61365
61366         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61367
61368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61369         and AC_MINIX, too, so that their extensions are available.
61370
61371         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61372         This macro has been superseded by gl_BACKUPFILE.
61373
61374         More patches to assume C89 or better.
61375
61376         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61377
61378         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61379         unconditionally.
61380         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61381         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61382         Include <string.h>, <stdlib.h> unconditionally.
61383         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61384         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61385         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61386         headers or for string.h.
61387         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61388         or strtoul.
61389
61390         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61391         headers.
61392         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61393         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61394         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61395         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61396         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61397         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61398         memcpy, memset.
61399         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61400         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61401         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61402         strtol.
61403         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
61404         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
61405         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
61406         strtoul.
61407
61408 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61409
61410         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
61411         * lib/obstack.c [!defined _LIBC]: Likewise.
61412         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
61413         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
61414         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
61415
61416         More changes to assume C89 or better.
61417
61418         * lib/error.c (error_tail): Assume vprintf.
61419
61420         * lib/argmatch.c (getenv): Remove decl.
61421         * lib/progreloc.c (get_full_program_name): Define via prototype.
61422         * lib/setenv.c (clearenv): Likewise.
61423         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
61424         needed.
61425         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
61426         (malloc, memcpy): Remove decls.
61427         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
61428         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
61429         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61430         (memcpy): Remove macro.
61431         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
61432         (__P): Remove.  All uses removed.
61433         (PTR): Remove.  All uses changed to void *.
61434         (CHAR_BIT, NULL): Remove.
61435         (spaces, zeros, memset_space, memset_zero)
61436         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
61437         Remove.
61438         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
61439         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
61440         Define with prototype.
61441         Remove now-unnecessary prototype decl.
61442         (extra_args_spec): Assume ANSI C.  All uses changed.
61443         (extra_args_spec_iso): Remove.
61444         (my_strftime, emacs_strftimeu): Define via prototype.
61445         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
61446         unconditionally.
61447         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
61448         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
61449         (strtoul, strtol): Remove decls.
61450         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
61451         LONG_MAX): Remove.
61452         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
61453         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
61454         (LOCALE_PARAM_PROTO): New macro.
61455         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
61456         (INTERNAL (strtol), strtol): Define with a prototype.
61457         (PARAMS): Remove.  All uses removed.
61458         * lib/tempname.c: Include <string.h> unconditionally.
61459         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
61460         * lib/xgethostname.c (main): Define with a prototype.
61461         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
61462         Include <stdlib.h> unconditionally.
61463         (calloc, malloc, realloc, free): Remove decls.
61464         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
61465         Include <stdlib.h> unconditionally.  Sort include file names.
61466         (strtod): Remove.
61467         (xstrtod): Define with a prototype.
61468         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
61469         (strtol, strtoul): Remove decls.
61470
61471 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61472
61473         More patches to assume C89 or better.
61474         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
61475         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
61476         string.h, memchr, STDC_HEADERS.
61477
61478 2003-09-11  Paul Eggert  <eggert@twinsun.com>
61479
61480         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
61481         Include <stdlib.h>, <string.h> unconditionally.
61482         Remove now-unnecessary cast to char *.
61483         * lib/strnlen.c: Include <string.h> unconditionally.
61484         * lib/yesno.c (yesno): Define with a prototype.
61485
61486 2003-09-11  Bruno Haible  <bruno@clisp.org>
61487
61488         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
61489
61490 2003-09-10  Jim Meyering  <jim@meyering.net>
61491
61492         * lib/error.c: Correct indentation of cpp directives.
61493
61494 2003-09-10  Bruno Haible  <bruno@clisp.org>
61495
61496         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
61497         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
61498         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
61499         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
61500         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
61501         <stdlib.h> and <string.h> checks.
61502         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
61503         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
61504
61505 2003-09-10  Bruno Haible  <bruno@clisp.org>
61506
61507         * lib/strcspn.c: Include <string.h> unconditionally.
61508         * lib/strpbrk.c: Include <string.h> unconditionally.
61509         * lib/strstr.c: Include <string.h> unconditionally.
61510         * lib/unicodeio.c: Include <string.h> unconditionally.
61511         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
61512         * lib/unsetenv.c: Likewise.
61513         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
61514         * lib/yesno.c: Include <stdlib.h> unconditionally.
61515         (rpmatch): Add prototype.
61516
61517 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61518
61519         More patches to assume C89 or better.
61520         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
61521         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
61522         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
61523         or for string.h.
61524         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
61525         stdlib.h.
61526         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
61527         C headers.
61528         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
61529         string.h.
61530         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
61531         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
61532         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
61533         or for string.h.
61534         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
61535         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
61536         C headers.
61537         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
61538         memcpy.
61539         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
61540         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
61541         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
61542         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
61543         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
61544         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
61545         string.h, free.
61546         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
61547         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
61548         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
61549         C headers, or for string.h.
61550         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
61551         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
61552         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
61553         headers, memory.h, stdlib.h, string.h, strings.h.
61554         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
61555         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
61556         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
61557         strchr.
61558         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
61559         headers, memory.h, string.h.
61560         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
61561         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
61562         free.
61563         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
61564         headers.
61565         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
61566         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
61567         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
61568         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
61569         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
61570
61571 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61572
61573         More K&R removal.
61574
61575         * lib/acosl.c (main): Use a prototype.
61576         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
61577         tanl.c: Likewise.
61578
61579         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
61580
61581         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
61582         (getopt, etopt_long, getopt_long_only, _getopt_internal)
61583         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
61584         with a prototype.
61585         * lib/getopt.c (const): Remove macro.
61586         Include <string.h> unconditionally.
61587         (my_index): Remove; all uses changed to strchr.
61588         (strlen): Remove decl.
61589         (exchange): Remove forward decl; no longer needed.
61590         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
61591         Define with prototype.
61592         * lib/getopt1.c (const): Remove macro.
61593         (getopt_long, getopt_long_only, main): Define with prototype.
61594
61595         * lib/getugroups.c: Include <string.h> unconditionally.
61596
61597         * lib/getusershell.c: Include <stdlib.h> unconditionally.
61598         (getusershell, setusershell, endusershell, readname, main):
61599         Define with prototypes.
61600
61601         * lib/group-member.c: Include group-member.h first.
61602         Include <stdlib.h> unconditionally.
61603
61604         * lib/hard-locale.c: Include hard-locale.h first.
61605         Include <stdlib.h>, <string.h> unconditionally.
61606
61607         * lib/hash.c (free, malloc): Remove decls.
61608         Include <stdlib.h> unconditionally.
61609
61610         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
61611         (getenv): Do not declare.
61612
61613         * lib/idcache.c: Include <string.h> unconditionally.
61614
61615         * lib/long-options.c: Include long-options.h first, to test interface.
61616         Include <stdlib.h> unconditionally.
61617
61618         * lib/makepath.c: Include makepath.h first, to test interface.
61619         Include <stdlib.h> and <string.h> unconditionally.
61620
61621         * lib/linebuffer.c: Include <stdlib.h>.
61622         (free): Remove decl.
61623
61624         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
61625         stddef.h. rpl_malloc returns void *, not char *.
61626         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
61627         prototype.
61628
61629         * lib/md5.h: Include <limits.h> unconditionally.
61630         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
61631         (__P): Remove; all uses removed.
61632         * lib/md5.c: Include "md5.h" first.
61633         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
61634         md5_buffer, md5_process_bytes, md5_process_block):
61635         Define with prototypes.
61636         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
61637         * lib/sha.c: Include "sha.h" first.
61638         Include <stdlib.h>, <string.h> unconditionally.
61639
61640         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
61641         * lib/memcmp.c (__ptr_t): Likewise.
61642         * lib/memrchr.c (__ptr_t): Likewise.
61643         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
61644         Include <string.h> unconditionally.
61645         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
61646         * lib/memchr.c: Include <stdlib.h> unconditionally.
61647         * lib/memchr.c (LONG_MAX): Remove.
61648         * lib/memrchr.c (LONG_MAX): Likewise.
61649         * lib/memchr.c (__memchr): Define via a prototype.
61650         * lib/memrchr.c (__memrchr): Likewise.
61651         * lib/memcmp.c (__P): Remove, and remove all uses.
61652         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
61653         Remove forward decls; no longer needed.
61654         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
61655         Use types required by C89 in prototype.
61656
61657         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
61658         * lib/savedir.c: Likewise.
61659         * lib/mkdir.c (free): Remove decl.
61660         * lib/rmdir.c (rmdir): Define with a prototype.
61661         * lib/savedir.c: Include savedir.h first, to test interface.
61662
61663         * lib/mktime.c (STDC_HEADERS): Remove.
61664         Include <stdlib.h>, <string.h> unconditionally.
61665
61666         * lib/modechange.c: Include <stdlib.h> unconditionally.
61667         (malloc): Remove decl.
61668
61669         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
61670         (free): Remove decl.
61671
61672         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
61673         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
61674         (This type really should be intptr_t, but that's a C99ism.)
61675         (_obstack_memcpy): Remove: all uses changed to memcpy.
61676         Include <string.h> unconditionally.
61677         (struct obstack): Assume __STDC__ for types of members
61678         chunkfun, freefun, extra_arg.
61679         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
61680         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
61681         obstack_begin, obstack_specify_allocation,
61682         obstack_specify_allocation_with_arg, obstack_chunkfun,
61683         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
61684         Remove unprototyped decls and the macros that use them.
61685         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
61686         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
61687         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
61688         (defined __STDC__ && __STDC__)]:
61689         Remove nonprototyped code.
61690         Include <stdlib.h> unconditionally.
61691         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
61692         _obstack_allocated_p, _obstack_free, obstack_free,
61693         _obstack_memory_used, print_and_abort):
61694         Define using prototypes.
61695         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
61696         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
61697         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
61698         obstack_next_free, obstack_object_size, obstack_room) [0]:
61699         Remove unused, unprototyped code.
61700
61701         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
61702
61703         * lib/physmem.c (physmem_total, physmem_available, main): Define
61704         with prototypes.
61705
61706         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
61707         (main): Define with a prototype.
61708
61709         * lib/posixver.c (getenv): Remove decl.
61710
61711         * lib/putenv.c (malloc): Returns void *, not char *.
61712         Include <string.h> unconditionally.
61713         (strchr, memcpy, NULL): Do not define.
61714
61715         * lib/readtokens.c: Include readtokens.h first, to test interface.
61716         Include <stdlib.h>, <string.h> unconditionally.
61717         (init_tokenbuffer): Define with a prototype.
61718
61719         * lib/regex.c (PARAMS): Remove.  All uses removed.
61720         All uses of _RE_ARGS removed, too.
61721         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61722         unconditionally.
61723         (bzero): Assume memset exists.
61724         (memcmp, memcpy, NULL): Remove.
61725         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
61726         char, or assignments to local vars of type signed char.
61727         (init_syntax_once, PREFIX(extract_number_and_incr),
61728         PREFIX(print_partial_compiled_pattern),
61729         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
61730         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
61731         PREFIX(regex_grow_registers), PREFIX(regex_compile),
61732         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
61733         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
61734         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
61735         wcs_compile_range, byte_compile_range, truncate_wchar,
61736         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
61737         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
61738         count_mbs_length, wcs_re_match_2_internal,
61739         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
61740         PREFIX(alt_match_null_string_p),
61741         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
61742         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
61743         regfree, PREFIX(extract_number)): Define with prototype.  Remove
61744         now-unnecessary declaration, if any.
61745         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
61746         regcomp, regexec):
61747         Remove now-unnecessary casts among pointer types.
61748         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
61749
61750         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
61751         (free): Remove decl.
61752
61753         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
61754
61755         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
61756         (free): Remove decl.
61757
61758         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
61759         * lib/xgetcwd.c: Likewise.
61760
61761         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
61762         (free): Remove decl.
61763
61764         * lib/strchrnul.c (strchrnul): Define with a prototype.
61765         Fix bug: c_in was not converted to char before searching.
61766
61767         The following changes are not K&R related:
61768
61769         * lib/group-member.h: Include <sys/types.h>, so that this file is
61770         self-contained.
61771         * lib/makepath.h: Likewise.
61772
61773         * lib/getusershell.c (readname, default_index, line_size, readname):
61774         Use size_t, not int, for sizes.
61775         (readname): If the size overflows, report an error instead of
61776         looping forever.
61777
61778 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61779
61780         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
61781         libc.
61782
61783 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61784
61785         * README: New section: portability guidelines.
61786
61787 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61788
61789         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
61790         C89 spec.
61791
61792 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61793
61794         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
61795
61796 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61797
61798         Assume C89 or better; remove K&R cruft.
61799         A few of these changes were first proposed by Derek Robert Price
61800         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
61801
61802         * lib/addext.c: Include <string.h> unconditionally.
61803         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
61804         Don't declare getenv or malloc.
61805
61806         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
61807         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
61808         (NULL): Remove.
61809         (find_stack_direction, alloca): Use prototypes.
61810
61811         * lib/atexit.c (atexit): Define using a prototype.
61812
61813         * lib/basename.c, dirname.c, stripslash.c:
61814         Include <string.h> unconditionally.
61815
61816         * lib/bcopy.c: Include <stddef.h>.
61817         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
61818
61819         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
61820
61821         * lib/error.h (error, error_at_line, error_print_progname)
61822         [! (defined (__STDC__) && __STDC__)]: Remove decls.
61823         * lib/error.c: Include error.h first, to check interface.
61824         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61825         (VA_START): Remove; all uses changeed to va_start.
61826         (exit, strerror): Remove decls.
61827         (error_print_progname): Prototype uncondionally.
61828         Don't include <errno.h>; no longer needed.
61829         (private_strerror): Remove.
61830         (error_tail): Always define.
61831         (error, error_at_line): Assume C89 or better; always use prototypes.
61832         * lib/fatal.c: Include "fatal.h" first, to test interface.
61833         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61834         (VA_START): Remove; all uses changed to va_start.
61835         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
61836         this case.
61837         (exit): Remove decl.
61838         (fatal): Prototype unconditionally.  Assume va_start works.
61839         Abort at end, to pacify gcc.
61840
61841         * lib/euidaccess.c (main): Define with a prototype.
61842
61843         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
61844
61845         * lib/exitfail.c: Include <stdlib.h> unconditionally.
61846
61847         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
61848         prototypes.
61849         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
61850         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
61851         (getenv): Remove decl.
61852         (fnmatch): Define using a prototype.
61853         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
61854         (FCT): Define using a prototype.
61855
61856         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
61857
61858         * lib/gethostname.c: Include <stddef.h>.
61859         (gethostname): Define with prototype.  Length is size_t, not int.
61860
61861 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61862
61863         Assume C89 or better; remove K&R cruft.
61864         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
61865         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
61866         string.h, getenv, malloc.
61867         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
61868         headers.
61869         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
61870         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
61871         do not check for strerror.
61872         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
61873         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
61874         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
61875         do not check for doprnt or vprintf.
61876         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
61877         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
61878
61879 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61880
61881         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
61882         getversion.c should have been removed then, but was accidentally
61883         preserved.
61884
61885         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
61886         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
61887
61888 2003-09-08  Karl Berry  <karl@gnu.org>
61889
61890         * config/config.sub, config.guess, srclistvars.sh: update from savannah
61891                 config, forget about prep.
61892
61893         * config/depcomp, missing: update from automake.
61894
61895 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61896
61897         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
61898         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61899
61900 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61901
61902         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
61903         copy_tm_result.  Bug reported by Simon Josefsson in
61904         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61905
61906 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61907
61908         * m4/time_r.m4: New file.
61909         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
61910         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
61911         is. Check for timegm declaration.
61912         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
61913         Do not check for gmtime_r.
61914         Replace mktime if __mktime_internal does not exist and if mktime
61915         hasn't been replaced already.
61916
61917 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61918
61919         * lib/time_r.c, lib/time_r.h: New files.
61920
61921         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
61922         __localtime_r.
61923         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
61924         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
61925
61926         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
61927         __gmtime_r.
61928         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
61929         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
61930         Include <time_r.h>.
61931
61932         * lib/timegm.c: Switch to glibc implementation, with the following
61933         changes:
61934         [defined HAVE_CONFIG_H]: Include <config.h>.
61935         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
61936         (__mktime_internal) [!defined _LIBC]: New decl.
61937         (__gmtime_r) [!defined _LIBC]: New macro and function.
61938         (timegm): Use a prototype, since gnulib assumes C89.
61939         Do not bother declaring tmp to be const, as it's not really usefu.
61940         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
61941         (timegm): Declare only if HAVE_DECL_TIMEGM.
61942
61943 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61944
61945         * MODULES.html.sh (func_all_modules): Add time_r.
61946         * modules/time_r: New file.
61947         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
61948         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
61949
61950 2003-09-03  Paul Eggert  <eggert@twinsun.com>
61951
61952         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
61953         Bug reported by Lute Kamstra in
61954         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
61955
61956         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
61957         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
61958         course with correspondingly smaller numbers for tomorrow and
61959         yesterday.  From Tadayoshi Funaba.  Originally installed into
61960         sh-utils on 1999-08-07, but the patch got lost (I guess during the
61961         coreutils merge?).
61962
61963 2003-08-31  Simon Josefsson  <jas@extundo.com>
61964
61965         * modules/timegm: New file.
61966         * MODULES.html.sh (func_all_modules): Add timegm.
61967
61968 2003-08-31  Simon Josefsson  <jas@extundo.com>
61969
61970         * m4/timegm.m4: New file.
61971
61972 2003-08-31  Simon Josefsson  <jas@extundo.com>
61973
61974         * lib/timegm.h: New file.
61975         * lib/timegm.c: New file.  Based on
61976         wget-1.8.2/src/http.c:mktime_from_utc.
61977
61978 2003-08-31  Karl Berry  <karl@gnu.org>
61979
61980         * lib/argp.h: update from libc.
61981
61982 2003-08-28  Bruno Haible  <bruno@clisp.org>
61983
61984         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61985         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61986         followed by '#define fnmatch fnmatch_posix' gives an error.
61987
61988 2003-08-28  Bruno Haible  <bruno@clisp.org>
61989
61990         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61991         warning on QNX, which defines O_BINARY to 000000.
61992
61993 2003-08-27  Jim Meyering  <jim@meyering.net>
61994
61995         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61996         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61997         would fail after 32.  Reported by Danny Levinson.  Details here:
61998         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61999
62000 2003-08-24  Bruno Haible  <bruno@clisp.org>
62001
62002         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62003         MSVC7 <stdio.h> is included later.
62004
62005 2003-08-22  Simon Josefsson  <jas@extundo.com>
62006
62007         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62008
62009 2003-08-20  Karl Berry  <karl@gnu.org>
62010
62011         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62012
62013 2003-08-20  Bruno Haible  <bruno@clisp.org>
62014
62015         * modules/progname: New file.
62016         * MODULES.html.sh (func_all_modules): Add progname.
62017
62018 2003-08-20  Bruno Haible  <bruno@clisp.org>
62019
62020         * lib/progname.h: New file, from GNU gettext.
62021         * lib/progname.c: New file, from GNU gettext.
62022         * lib/progreloc.c: New file, from GNU gettext.
62023
62024 2003-08-19  Jim Meyering  <jim@meyering.net>
62025
62026         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62027         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62028
62029 2003-08-19  Bruno Haible  <bruno@clisp.org>
62030
62031         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62032         more.
62033
62034 2003-08-19  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/xstrdup.c: Assume <string.h> exists.
62037
62038 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62039
62040         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62041         in makefile rules.
62042
62043 2003-08-18  Jim Meyering  <jim@meyering.net>
62044
62045         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62046         * m4/lib-ld.m4: Likewise.
62047
62048 2003-08-18  Jim Meyering  <jim@meyering.net>
62049
62050         * lib/setenv.h: Indent nested cpp directive.
62051         * lib/vasnprintf.c: Remove trailing blanks.
62052
62053 2003-08-17  Simon Josefsson  <jas@extundo.com>
62054
62055         * modules/xstrndup: New file.
62056         * MODULES.html.sh (func_all_modules): Add xstrndup.
62057
62058 2003-08-17  Simon Josefsson  <jas@extundo.com>
62059
62060         * modules/argp: Fix autoconf macro name. Add more dependencies.
62061
62062 2003-08-17  Simon Josefsson  <jas@extundo.com>
62063
62064         * m4/xstrndup.m4: New file.
62065
62066 2003-08-17  Simon Josefsson  <jas@extundo.com>
62067
62068         * m4/argp.m4: New file.
62069
62070 2003-08-17  Simon Josefsson  <jas@extundo.com>
62071             Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/xstrndup.h: New file.
62074         * lib/xstrndup.c: New file.
62075
62076 2003-08-17  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/strndup (Files, Include): Add lib/strndup.h.
62079
62080 2003-08-17  Bruno Haible  <bruno@clisp.org>
62081
62082         * modules/euidaccess (Files): Add lib/euidaccess.h.
62083
62084 2003-08-17  Bruno Haible  <bruno@clisp.org>
62085
62086         * lib/strndup.h: New file.
62087
62088 2003-08-17  Bruno Haible  <bruno@clisp.org>
62089
62090         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62091         like AC_GNU_SOURCE.
62092         * modules/extensions (configure.ac): Comment out the invocation of
62093         gl_USE_SYSTEM_EXTENSIONS.
62094
62095 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62096
62097         Merges from coreutils, etc.
62098         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62099         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62100         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62101         fixing a typo.
62102         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62103         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62104
62105 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62106
62107         Document merge from coreutils.
62108         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62109         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62110         * modules/utime: Add m4/utimes-null.m4.
62111
62112 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62113
62114         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62115         space, undoing this 2003-08-12 change:
62116         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62117
62118 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62119
62120         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62121         strtoul.c from libc, undoing this 2003-08-12 change:
62122         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62123
62124 2003-08-16  Jim Meyering  <jim@meyering.net>
62125
62126         Merges from coreutils.
62127         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62128         prefix.  Adjust cache variables similarly.  Create 500 rather than
62129         just 300 files, to exercise bug on Darwin6.5, too.
62130         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62131         $missing_dir.
62132         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62133         AM_SYS_POSIX_TERMIOS.
62134         Reported by mkc@mathdogs.com.
62135         Also change use of $am_cv_sys_posix_termios
62136         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62137         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62138         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62139         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62140         in /proc/mounts until it finds one with matching device number.  This
62141         is unnecessary when the FILE argument *is* a mount point.  No stat call
62142         is necessary in that case.  So, disable the statvfs-testing code on
62143         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62144         as RedHat bug# 84846.
62145         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62146         to 1MB, so as not to render systems with no stack size limit (e.g.,
62147         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62148         Include <unistd.h>.  On some systems,
62149         it is required for the definition of _SC_PAGESIZE.
62150
62151 2003-08-16  Jim Meyering  <jim@meyering.net>
62152
62153         Merge from coreutils.
62154         * lib/xstrtoimax.c: #else #if -> #elif.
62155         * lib/xstrtoumax.c: Likewise.
62156
62157 2003-08-16  Jim Meyering  <jim@meyering.net>
62158
62159         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62160         * m4/utimes.m4: Removed.
62161         * m4/utimes-null.m4: Renamed from utimes.m4.
62162
62163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62164         to 1MB, so as not to render systems with no stack size limit (e.g.,
62165         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62166         Include <unistd.h>.  On some systems,
62167         it is required for the definition of _SC_PAGESIZE.
62168
62169 2003-08-16  Jim Meyering  <jim@meyering.net>
62170         and Paul Eggert  <eggert@cs.ucla.edu>
62171
62172         Merges from coreutils, etc.
62173
62174         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62175         using the latest version from cvs.  This avoids problems with #line
62176         directives using a vendor (Sun) compiler.
62177         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62178         Don't set GETGROUPS_LIB here; now it's
62179         done via getgroups.m4's wrapper function.
62180         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62181         rather than just in sh-util/configure.in, so that the
62182         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62183         same.
62184         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62185         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62186         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62187         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62188         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62189         Remove code that is now done by the newly-required macros.
62190         Append $(EXEEXT) to DF_PROG.
62191         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62192         Do not invoke or require the following here,
62193         since prereq.m4 or some gnulib .m4 now does this for us:
62194         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62195         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62196         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62197         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62198         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62199         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62200         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62201         AC_FUNC_OBSTACK.
62202         Do not replace the following functions, as this is now the job
62203         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62204         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62205         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62206         atexit getpass, strdup, getpagesize.
62207         Replace 'raise'.
62208         Do not check for the following functions, as this is now the job
62209         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62210         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62211         setregid.
62212         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62213         Check for sys/sysctl.h.
62214         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62215         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62216         of checking for ssize_t ourselves.
62217
62218         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62219         Require every macro that gnulib/modules/* suggests for us.
62220         (jm_PREREQ_ADDEXT): New macro.
62221         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62222         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62223
62224         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62225         (gl_PHYSMEM): Use it.
62226         Also check for `table' function.
62227         Check for new headers and functions.
62228         Add check for sys/sysmp.h.
62229         With suggestions from Kaveh Ghazi.
62230         Ignore headers that are present but cannot be compiled.  This
62231         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62232         C 5.4.
62233
62234 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62235
62236         Document merge from coreutils.
62237         * modules/userspec: Depend on posixver.
62238         * modules/strftime: Depend on tzset.
62239
62240 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62241
62242         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62243         rather than tab, after '#' in shell-script copyright notices.
62244         Suggested by Bruno Haible.
62245
62246 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62247
62248         * config/srclist-update: Use three spaces, rather than tab, after '#'
62249         in shell-script copyright notices.  Suggested by Bruno Haible.
62250         Remove unnecessary parenthesization in regular expression.
62251
62252 2003-08-15  Jim Meyering  <jim@meyering.net>
62253
62254         Merge from coreutils.
62255         * lib/xgethostname.c: Include <stdlib.h>.
62256         (xghostname): Don't exit for anything other than memory-related
62257         failure; just return NULL.
62258         * lib/userspec.c: Include "posixver.h".
62259         (parse_user_spec): Accept `.' as a separator only
62260         in pre-POSIX-200112 mode.
62261         * lib/strtoimax.c: Use #elif rather than #else #if.
62262         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62263         Remove function, now that we can rely on a working tzset function.
62264         [!_LIBC]: Ensure that the required autoconf test has been run.
62265         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62266         Use underlying_strftime for %r.
62267         * lib/sha.c: Merge in some clean-up and optimization changes from
62268         glibc.
62269         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62270         Ensure that it is a multiple of 64.
62271         Rearrange loop exit tests so as to avoid performing an
62272         additional fread after encountering an error or EOF.
62273         * lib/realloc.c: Update copyright date.
62274
62275 2003-08-15  Jim Meyering  <jim@meyering.net>
62276         and Paul Eggert  <eggert@twinsun.com>
62277
62278         Merge from coreutils.
62279         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62280         member but strut utmpx does not.  Needed for AIX 4.3.3.
62281         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62282
62283 2003-08-15  Jim Meyering  <jim@meyering.net>
62284         and Paul Eggert  <eggert@cs.ucla.edu>
62285
62286         Merges from coreutils, etc.
62287         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62288         Require gl_FUNC_TZSET_CLOBBER.
62289         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62290         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62291         members.
62292
62293 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62294
62295         Help the merge from coreutils.
62296         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62297         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62298         * m4/tzset.m4: Use it too.
62299
62300 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62301
62302         * modules/tzset: New file.
62303
62304 2003-08-14  Jim Meyering  <jim@meyering.net>
62305
62306         Merges from coreutils.
62307         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62308         variable names, rather than @FNMATCH_H@.
62309         * modules/alloca: Likewise for $(ALLOCA_H).
62310
62311         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62312         the three copies of the literal target, `fnmatch.h'.
62313         * modules/alloca (alloca.h): Likewise.
62314
62315 2003-08-14  Jim Meyering  <jim@meyering.net>
62316
62317         Merge from coreutils.
62318         * m4/tzset.m4: New file.
62319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62320         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62321         otherwise, AIX 5.1 systems would end up using the latter.
62322         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62323         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62324         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62325         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62326
62327 2003-08-14  Jim Meyering  <jim@meyering.net>
62328
62329         Merge from coreutils.
62330         * lib/obstack.h: Whitespace changes.
62331         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62332         and xcalloc return values.
62333         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62334         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62335         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62336         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62337         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62338         error from mntctl.
62339         Use mntctl's return value to drive the entry-processing loop, since
62340         we can't rely on the value of the vmt_length member in the last
62341         entry.  On some systems doing so could result in exhausting
62342         virtual memory.  Based in part on a patch from Mike Jetzer.
62343
62344 2003-08-14  Jim Meyering  <jim@meyering.net>
62345         and Paul Eggert  <eggert@twinsun.com>
62346
62347         Merges from coreutils, plus other fixes.
62348         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62349         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62350         for credits and details.  Thanks to Kaveh Ghazi for helping
62351         to keep these files in sync.
62352         (ARRAY_SIZE): Define it.
62353         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62354         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62355         (memcasecmp): Don't assume size_t fits in unsigned int.
62356         Remove casts and duplicate code.
62357         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62358         (memcpy): Remove definition.
62359         Merge in some clean-up and optimization changes from glibc.
62360         [BLOCKSIZE]: Move definition to top of file.
62361         Ensure that it is a multiple of 64.
62362         Rearrange loop exit tests so as to avoid performing an
62363         additional fread after encountering an error or EOF.
62364         * lib/md5.h (md5_uintptr): Define.
62365         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62366         return to the initial working directory.  Preserve errno
62367         for caller.
62368         * lib/idcache.c: Include "xalloc.h".
62369         (xmalloc, xrealloc): Remove decls.
62370         (getuser): Remove casts no longer required in C89.
62371         * lib/human.c: Include stdio.h, for sprintf.
62372         * lib/group-member.c: Include "xalloc.h".
62373         (xmalloc, xrealloc): Remove decls.
62374         (get_group_info): Remove casts no longer required in C89.
62375         * lib/getusershell.c (readname): Remove casts no longer required in
62376         C89.
62377         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62378         * lib/getline.c: Whitespace fix, from coreutils.
62379
62380 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62381
62382         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62383         Check for isascii.
62384
62385         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62386         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62387         Undo previous (whitespace-only) change.
62388
62389 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62390
62391         * lib/exclude.c: Include <ctype.h>
62392         (IN_CTYPE_DOMAIN): New macro.
62393         (is_space): New fn.
62394         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62395         and empty lines.
62396
62397         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62398         Undo previous (whitespace-only) change.
62399
62400 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62401
62402         * config/srclist-update: Change update back to the old behavior,
62403         leaving whitespace alone.  Use one 'sed' command rather than a
62404         pipeline.
62405         (fixlicense): Now a variable, not a function.
62406         (remove_trailing_blanks): Remove.
62407         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
62408         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62409         Undo previous (whitespace-only) change.
62410
62411 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62412
62413         Merge from coreutils.
62414         * modules/euidaccess: Add lib_SOURCES, include for new
62415         file euidaccess.h
62416
62417 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62418
62419         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62420         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62421         Normalize leading white space and remove trailing white space.
62422
62423         Merge from coreutils
62424         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
62425
62426         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
62427         0.12.1.  These files are now being upgraded automatically by
62428         ../config/srclist-update.
62429
62430 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62431
62432         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62433         Normalize leading white space and remove trailing white space.
62434         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
62435         notice, as per ../config/srclist-update.
62436
62437         Merge from coreutils.
62438         * lib/euidaccess.h: New file.
62439         * lib/euidaccess.c: Include it.
62440         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
62441         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
62442         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
62443
62444 2003-08-12  Paul Eggert  <eggert@twinsun.com>
62445
62446         * config/srclist-update: Add copyright notice.
62447         (remove_id_lines, remove_trailing_blanks): New constants.
62448         (fixfile): Use them to normalize spacing a bit in copied files.
62449         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
62450         Normalize leading white space and remove trailing white space.
62451
62452         * config/texinfo.tex: Sync with texinfo.
62453
62454         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
62455         strtoul.c from libc, to merge coreutils whitespace changes.
62456
62457         * config/srclist.txt: Get the following m4 files from gettext:
62458         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
62459         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
62460         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
62461         wint_t.m4.
62462
62463 2003-08-12  Karl Berry  <karl@gnu.org>
62464
62465         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
62466         been made.
62467
62468 2003-08-11  Paul Eggert  <eggert@twinsun.com>
62469
62470         * modules/gnu-source, m4/gnu-source.m4:
62471         Remove; we're assuming Autoconf 2.54 or later now.
62472         Suggested by Bruno Haible.
62473         * MODULES.html.sh (func_all_modules): Remove gnu-source.
62474
62475 2003-08-11  Bruno Haible  <bruno@clisp.org>
62476
62477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
62478
62479 2003-08-11  Bruno Haible  <bruno@clisp.org>
62480
62481         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
62482         (vasnprintf): Use it instead of wcslen.
62483
62484 2003-08-11  Bruno Haible  <bruno@clisp.org>
62485
62486         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
62487         value to ensure that _Bool promotes to int. Use #define for _Bool when
62488         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
62489
62490 2003-08-10  Karl Berry  <karl@gnu.org>
62491
62492         * lib/regex.h: update from libc (whitespace fix).
62493
62494 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62495
62496         Merge some files from coreutils.  These changes were
62497         originally made by Jim Meyering.
62498         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
62499         many older Unixes require this.
62500         * lib/alloca.c (alloca): Remove cast to argument of free;
62501         no longer needed in C89.
62502         * lib/alloca_.h, regex.h: Fix white space to match
62503         what GNU indent does.
62504
62505 2003-08-09  Paul Eggert  <eggert@twinsun.com>
62506
62507         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
62508         apparently Emacs's Unicode mode got confused before my 2003-08-05
62509         checkin.
62510
62511 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62512
62513         * m4/extensions.m4: New file.
62514         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
62515         Require gl_USE_SYSTEM_EXTENSIONS.
62516         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
62517         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
62518
62519 2003-08-08  Paul Eggert  <eggert@twinsun.com>
62520
62521         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
62522         * modules/extensions, modules/gnu-source: New files.
62523         * modules/timespec, modules/unlocked-io: Depend on extensions.
62524
62525 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62526
62527         * modules/restrict: New file.
62528         * MODULES.html.sh (func_all_modules): Add restrict.
62529         * modules/regex: Depend on restrict.
62530
62531 2003-08-07  Paul Eggert  <eggert@twinsun.com>
62532
62533         * m4/restrict.m4: New file.
62534         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
62535
62536 2003-08-07  Bruno Haible  <bruno@clisp.org>
62537
62538         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
62539         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
62540
62541 2003-08-07  Bruno Haible  <bruno@clisp.org>
62542
62543         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
62544         makes the module 'getndelim2' compatible with the module 'getline'.
62545
62546 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62547
62548         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
62549         byte with "\201" to avoid glitches when editing that source file
62550         with multi-gnome-terminal.
62551
62552 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62553
62554         * lib/bumpalloc.h: Remove.
62555
62556 2003-08-05  Paul Eggert  <eggert@twinsun.com>
62557
62558         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
62559         * modules/bumpalloc: Remove.
62560
62561 2003-08-04  Paul Eggert  <eggert@twinsun.com>
62562
62563         * lib/getloadavg.c: Change copyright notice and spacing to conform to
62564         GNU coding style.
62565
62566         Merge from coreutils.
62567         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
62568         1. From glibc.
62569         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
62570         from Karl Berry, implemented by Jim Meyering.
62571         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
62572         from Dmitry V. Levin.
62573         Remove anachronistic cast of xrealloc.
62574         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
62575         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
62576         type. Otherwise, it wouldn't compile with at least /bin/cc on
62577         ymp-cray-unicos9.0.2.X.
62578         Combine two mostly-identical uses of alloca into one.
62579         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
62580
62581 2003-08-04  Dave Love  <d.love@dl.ac.uk>
62582
62583         [From Emacs.]
62584
62585         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
62586         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
62587         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
62588         obsolete NLIST_NAME_UNION.
62589         [__GNU__]: Undef BSD and FSCALE.
62590         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
62591
62592 2003-08-03  Paul Eggert  <eggert@twinsun.com>
62593
62594         * lib/stdbool_.h (_Bool): Make it signed char, instead of
62595         an enum type, so that it's guaranteed to promote to int.  See:
62596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
62597
62598 2003-08-03  Karl Berry  <karl@gnu.org>
62599
62600         * config/depcomp: update from automake.
62601
62602 2003-07-31  Paul Eggert  <eggert@twinsun.com>
62603
62604         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
62605         (strerror): Don't assume that a printable int fits in 14 bytes.
62606
62607 2003-07-31  Bruno Haible  <bruno@clisp.org>
62608
62609         * modules/getpass-gnu: New file.
62610         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
62611
62612 2003-07-31  Bruno Haible  <bruno@clisp.org>
62613
62614         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
62615
62616 2003-07-24  Karl Berry  <karl@gnu.org>
62617
62618         * config/missing: update from automake.
62619
62620 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
62621             Bruno Haible  <bruno@clisp.org>
62622
62623         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
62624         * lib/getline.c (getline, getdelim): Likewise.
62625         Remove _GNU_SOURCE define; now it's defined in config.h through
62626         m4/getline.m4.
62627
62628 2003-07-23  Karl Berry  <karl@gnu.org>
62629
62630         * config/config.sub: update from prep.
62631
62632 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62633
62634         * modules/xalloc (Depends-on): Add exitfail.
62635         * modules/xmemcoll: Likewise.
62636
62637 2003-07-22  Paul Eggert  <eggert@twinsun.com>
62638
62639         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
62640         over-parenthesization in macros.
62641
62642         Sync with coreutils.
62643
62644         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
62645         required by C99.
62646
62647         Use `exit_failure' for xalloc and xmemcoll instead of their own
62648         private exit-failure variables.
62649         * lib/xalloc.h (xalloc_exit_failure): Remove.
62650         * lib/xmalloc.c: Likewise.  Include exitfail.h.
62651         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
62652         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
62653         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
62654         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
62655
62656 2003-07-20  Jim Meyering  <jim@meyering.net>
62657
62658         * modules/closeout (Depends-on): Add exitfail.
62659         Suggestion from Bruno Haible.
62660
62661 2003-07-19  Karl Berry  <karl@gnu.org>
62662
62663         * config/config.sub: update from prep.
62664
62665 2003-07-18  Paul Eggert  <eggert@twinsun.com>
62666
62667         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
62668         Remove.
62669         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
62670         to test that it can stand by itself.  Include "exitfail.h".
62671         Clients should set exit_failure instead.
62672         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
62673
62674 2003-07-18  Bruno Haible  <bruno@clisp.org>
62675
62676         * modules/getndelim2: New file.
62677         * modules/getline: Share files with module getndelim2.
62678         * modules/getnline: Depend on getndelim2 instead of sharing files with
62679         it. Add getnline.c to lib_SOURCES.
62680         * MODULES.html.sh (func_all_modules): Add getndelim2.
62681
62682 2003-07-18  Bruno Haible  <bruno@clisp.org>
62683
62684         * m4/getndelim2.m4: New file.
62685         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
62686         invoke gl_PREREQ_GETNDELIM2.
62687         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
62688         gl_PREREQ_GETNDELIM2.
62689         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
62690         gl_GETNDELIM2.
62691
62692 2003-07-18  Bruno Haible  <bruno@clisp.org>
62693
62694         * lib/getndelim2.h: New file.
62695         * lib/getndelim2.c: Make into a module of its own. Include config.h,
62696         getndelim2.h.
62697         (getndelim2): Make non-static. Change return type to ssize_t.
62698         * lib/getline.h: Change argument names.
62699         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
62700         * lib/getnline.c: Include getndelim2.h.
62701
62702 2003-07-18  Andreas Schwab  <schwab@suse.de>
62703
62704         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
62705
62706 2003-07-17  Karl Berry  <karl@gnu.org>
62707
62708         * config/config.sub: update from prep.
62709
62710 2003-07-17  Bruno Haible  <bruno@clisp.org>
62711
62712         * modules/getnline: New file.
62713         * modules/getline: Add lib/getndelim2.c to source file list.
62714         * MODULES.html.sh (func_all_modules): Add getnline.
62715
62716 2003-07-17  Bruno Haible  <bruno@clisp.org>
62717
62718         * m4/getnline.m4: New file.
62719
62720 2003-07-17  Bruno Haible  <bruno@clisp.org>
62721
62722         * m4/Makefile.am.in: Remove file.
62723         * m4/Makefile.am: Remove file.
62724         * m4/Makefile.in: Remove file.
62725
62726 2003-07-17  Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/getnline.h: New file.
62729         * lib/getnline.c: New file.
62730         * lib/getndelim2.c: New file, extracted from getline.c.
62731         (getndelim2): Renamed from getdelim2, with added nmax argument.
62732         * lib/getline.c: Include getndelim2.c.
62733         (getdelim2): Moved out to getndelim2.c.
62734         (getline, getdelim): Update.
62735
62736 2003-07-17  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/Makefile.am: Remove file.
62739         * lib/Makefile.in: Remove file.
62740
62741 2003-07-17  Bruno Haible  <bruno@clisp.org>
62742
62743         * configure.in: Remove file.
62744         * Makefile.in: Remove file.
62745
62746 2003-07-17  Bruno Haible  <bruno@clisp.org>
62747
62748         * MODULES.html.sh: Put the </BODY> right before </HTML>.
62749
62750 2003-07-16  Karl Berry  <karl@gnu.org>
62751
62752         * config/srclist-update: was running fixlicense twice, which caused
62753                 texinfo.tex to be nullified for some reason.  Simplify,
62754                 $gplsrc is no longer needed as far as I can see?
62755
62756 2003-07-16  Jim Meyering  <jim@meyering.net>
62757
62758         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
62759
62760 2003-07-15  Paul Eggert  <eggert@twinsun.com>
62761
62762         * config/srclist.txt: Get the following files from gettext-runtime/intl
62763         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
62764         ref-del.sin.  From Bruno Haible.
62765         * config/srclist-update (fixfile): Change grep pattern again, since the
62766         previous fix didn't work (there was another trailing $).  Use
62767         '[$]' to escape the $s.
62768
62769 2003-07-15  Karl Berry  <karl@gnu.org>
62770
62771         * lib/vasnprintf.c: update from gettext.
62772
62773 2003-07-15  Karl Berry  <karl@gnu.org>
62774
62775         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
62776         gets expanded when surrounded by '$'.
62777
62778 2003-07-15  Jim Meyering  <jim@meyering.net>
62779
62780         * modules/save-cwd: Don't depend on error.  From Derek Price.
62781
62782 2003-07-15  Jim Meyering  <jim@meyering.net>
62783
62784         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
62785
62786 2003-07-14  Simon Josefsson  <jas@extundo.com>
62787
62788         * modules/mempcpy: New file.
62789         * MODULES.html.sh (func_all_modules): Add mempcpy.
62790
62791 2003-07-14  Simon Josefsson  <jas@extundo.com>
62792
62793         * m4/mempcpy.m4: New file.
62794
62795 2003-07-14  Simon Josefsson  <jas@extundo.com>
62796
62797         * lib/mempcpy.h: New file.
62798         * lib/mempcpy.c: New file.
62799
62800 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62801
62802         * modules/getdate, modules/posixtm: Depend on mktime.
62803
62804 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62805
62806         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
62807         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
62808         unicodeio.c, unicodeio.h, unlocked-io.h:
62809         Switch from LGPL to GPL.
62810
62811 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62812
62813         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
62814         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
62815         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
62816         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
62817         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
62818         updated automatically by ../config/srclist-update.  This changes
62819         their license from LPGL to GPL.
62820
62821 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62822
62823         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
62824         assumed to refer to the root of the most recent stable gettext version.
62825         * config/srclistvars.sh: Add defaults for eggert.
62826         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
62827         Match "This program" as well as "The program".  This is needed
62828         for gettext.
62829
62830 2003-07-14  Jim Meyering  <jim@meyering.net>
62831
62832         Don't emit diagnostics.  Let callers do that.
62833         * lib/save-cwd.c: Don't include "error.h".
62834         (save_cwd): Don't call error.  Ensure that errno is valid
62835         when returning nonzero.
62836
62837         * lib/save-cwd.h (restore_cwd): Update prototype.
62838         * lib/save-cwd.c (restore_cwd): Remove two parameters.
62839         Simplify.  Don't call error upon failure.  Let callers do that.
62840         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
62841         when auditing is enabled.  But don't bother updating the #if.
62842
62843 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
62844
62845         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
62846         it breaks C++ compilation.
62847         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
62848
62849 2003-07-10  Simon Josefsson  <jas@extundo.com>
62850
62851         * modules/strchrnul (Makefile.am): Add strchrnul.h.
62852
62853 2003-07-10  Jim Meyering  <jim@meyering.net>
62854
62855         * m4/clock_time.m4: Remove trailing blank.
62856         * m4/intmax_t.m4: Likewise.
62857
62858 2003-07-10  Jim Meyering  <jim@meyering.net>
62859
62860         * lib/vasnprintf.c: Remove trailing blanks.
62861         Make cpp indentation consistent.
62862
62863 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62864
62865         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
62866         posixver.c, strftime.c, strnlen.c, strverscmp.c:
62867         Switch from LGPL to GPL.
62868
62869 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62870
62871         * config/srclist.txt: Sort sublists.  Add
62872         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
62873         that differ from gnulib for one reason or another; we'd like this list
62874         to be smaller but for now let's document what we have.
62875
62876 2003-07-08  Paul Eggert  <eggert@twinsun.com>
62877
62878         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
62879         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
62880         and sweeter "eval x=$x".
62881         * config/srclist.txt: Get lib/argp* from glibc.
62882
62883 2003-07-07  Paul Eggert  <eggert@twinsun.com>
62884
62885         * lib/mktime.c: Fix some boundary cases and remove need for floating
62886         point.
62887
62888         Issue a compile-time diagnostic if time_t is floating point, or if
62889         two's complement arithmetic is not in effect, or if arithmetic
62890         right shift does not propagate the sign.  These assumptions were
62891         all in the original code but they weren't checked.
62892
62893         (TIME_T_MIDPOINT, verify): New macros.
62894         (__isleap): Remove; it has integer overflow problems.
62895         (leapyear): New function, without those problems.
62896         (ydhms_tm_diff): Remove; splitting into two parts.
62897         (ydhms_diff): New function, containing the arithmetic part of
62898         the old ydhms_tm_diff function.  Issue a compile-time
62899         diagnostic if we are not using C99 integer division.
62900         Avoid casts when possible.
62901         (guess_time_tm): New function, containing the checking part of
62902         the old ydhms_tm_diff function.  Return the new value, rather than
62903         the difference between it and the old.  Accept a new argument T
62904         so that *T specifies the old value.  Check for overflow in the result.
62905
62906         (__mktime_internal): Use a time_t offset, not a long int offset.
62907         This undoes the 2003-06-04 change, which is no longer needed now
62908         that we have better overflow checking.
62909         (localtime_offset): Likewise.
62910
62911         (__mktime_internal): Avoid harmful overflow on hosts where time_t
62912         and long are 64-bit but int is only 32-bit.
62913         (ydhms_diff): Use long int to store year1 and yday1.
62914         Issue a compile-time diagnostic if long int is not wide enough.
62915
62916         (__mktime_internal): Use long int to store adjusted year and yday.
62917         Use plain C rather than preprocessor commands, if that doesn't
62918         affect efficiency.
62919         Check for overflow (and try to repair) after each probe
62920         rather than checking only at the very end.  This avoids some bugs
62921         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
62922         does not equal GMT offset at maximum time).
62923         Use integer to check for overflow rather than floating point; this
62924         is more portable to non-IEEE hosts, and is a tad faster.
62925         When we detect that we are oscillating between two values,
62926         don't check whether tm_isdst has the requested value, since
62927         we already know the answer.  When tm_isdst has the wrong value,
62928         use a different heuristic to find the right one, based on the
62929         extreme values actually observed in practice in tz2003a,
62930         rather than the (overly optimistic) "previous 3 calendar quarters".
62931
62932         (not_equal_tm, print_tm, check_result): Use "const T" rather than
62933         "T const" to accommodate glibc style.
62934         (check_result): Use less-confusing report format.  "long" -> "long int.
62935         (main): Likewise.
62936         Don't loop if the iteration overflows time_t.
62937         Allow a negative step in the iteration.
62938
62939 2003-07-06  Karl Berry  <karl@gnu.org>
62940
62941         * config/depcomp: update from automake.
62942         * config/config.sub: update from prep.
62943
62944 2003-07-03  Karl Berry  <karl@gnu.org>
62945
62946         * config/config.guess: update from prep.
62947
62948 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62949
62950         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
62951         xreadlink.c now includes it unconditionally.
62952
62953 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62954
62955         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
62956         having it depend on HAVE_SYS_TYPES_H.
62957
62958 2003-07-01  Bruno Haible  <bruno@clisp.org>
62959
62960         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
62961         <sys/types.h> should be sufficient.
62962         Reported by Paul Eggert.
62963
62964 2003-06-26  Karl Berry  <karl@gnu.org>
62965
62966         * config/depcomp: update from automake.
62967
62968 2003-06-26  Bruno Haible  <bruno@clisp.org>
62969
62970         * modules/human: Depend on module stdbool.
62971
62972 2003-06-25  Bruno Haible  <bruno@clisp.org>
62973
62974         * modules/readlink: New file.
62975         * modules/xreadlink: Depend on it.
62976         * MODULES.html.sh (func_all_modules): Add readlink.
62977
62978 2003-06-25  Bruno Haible  <bruno@clisp.org>
62979
62980         * m4/readlink.m4: New file.
62981
62982 2003-06-25  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/readlink.c: New file.
62985
62986 2003-06-22  Karl Berry  <karl@gnu.org>
62987
62988         * config/srclist.txt: update mkinstalldirs from automake.
62989         * config/mkinstalldirs: update.
62990
62991 2003-06-22  Bruno Haible  <bruno@clisp.org>
62992
62993         Portability to mingw32.
62994         * m4/ssize_t.m4: New file, from GNU gettext.
62995         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62996         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62997
62998 2003-06-22  Bruno Haible  <bruno@clisp.org>
62999
63000         * modules/safe-read: Add m4/ssize_t.m4.
63001         * modules/xreadlink: Add m4/ssize_t.m4.
63002
63003 2003-06-20  Bruno Haible  <bruno@clisp.org>
63004
63005         Assume C89, so PARAMS isn't needed.
63006         * lib/unicodeio.h (PARAMS): Remove.
63007         * lib/unicodeio.c: Don't use PARAMS.
63008
63009 2003-06-18  Karl Berry  <karl@gnu.org>
63010
63011         * config/config.{guess,sub}: update from prep.
63012
63013 2003-06-18  Jim Meyering  <jim@meyering.net>
63014
63015         Merge changes from coreutils.
63016         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63017         Remove explicit declarations of xmalloc and realloc.
63018         Include xalloc.h.
63019         (read_utmp): Remove anachronistic cast of xmalloc.
63020
63021 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63022
63023         Assume C89, so PARAMS isn't needed.
63024         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63025         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63026         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63027         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63028         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63029         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63030         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63031         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63032         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63033         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63034         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63035         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63036         no longer needed. Anyway, config.h should always be included before any
63037         other file.
63038
63039 2003-06-11  Simon Josefsson  <jas@extundo.com>
63040
63041         * modules/sysexits: New file.
63042         * MODULES.html.sh (func_all_modules): Add sysexits.
63043
63044 2003-06-11  Simon Josefsson  <jas@extundo.com>
63045
63046         * lib/sysexit_.h: New file.
63047
63048 2003-06-11  Derek Price  <derek@ximbiot.com>
63049
63050         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63051         necessary.
63052
63053 2003-06-11  Bruno Haible  <bruno@clisp.org>
63054
63055         * m4/sysexits.m4: New file.
63056
63057 2003-06-10  Simon Josefsson  <jas@extundo.com>
63058
63059         * lib/argp.h: New file, from glibc.
63060         * lib/argp-ba.c: New file, from glibc.
63061         * lib/argp-eexst.c: New file, from glibc.
63062         * lib/argp-fmtstream.c: New file, from glibc.
63063         * lib/argp-fmtstream.h: New file, from glibc.
63064         * lib/argp-fs-xinl.c: New file, from glibc.
63065         * lib/argp-help.c: New file, from glibc.
63066         * lib/argp-namefrob.h: New file, from glibc.
63067         * lib/argp-parse.c: New file, from glibc.
63068         * lib/argp-pv.c: New file, from glibc.
63069         * lib/argp-pvh.c: New file, from glibc.
63070         * lib/argp-xinl.c: New file, from glibc.
63071
63072 2003-06-10  Simon Josefsson  <jas@extundo.com>
63073
63074         * modules/strchrnul: New file.
63075
63076 2003-06-10  Simon Josefsson  <jas@extundo.com>
63077
63078         * modules/argp: New file.
63079
63080 2003-06-10  Simon Josefsson  <jas@extundo.com>
63081
63082         * m4/strchrnul.m4: New file.
63083
63084 2003-06-10  Simon Josefsson  <jas@extundo.com>
63085
63086         * lib/strchrnul.h: New file.
63087         * lib/strchrnul.c: New file.
63088
63089 2003-06-10  Bruno Haible  <bruno@clisp.org>
63090
63091         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63092
63093 2003-06-07  Karl Berry  <karl@gnu.org>
63094
63095         * config/config.{guess,sub}: update from prep.
63096
63097 2003-06-07  Jim Meyering  <jim@meyering.net>
63098
63099         * modules/strtod: Use $(...) notation, not @...@ for
63100         AC_REPLACE'd variables.
63101         * modules/localcharset: Likewise.
63102
63103 2003-06-07  Jim Meyering  <jim@meyering.net>
63104
63105         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63106         in place of my name in the copyright comment.
63107         Remove definition and uses of __P.
63108
63109         From coreutils.
63110         * lib/stat.c: Don't declare xmalloc explicitly.
63111         Instead, include "xalloc.h".
63112         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63113         xrealloc, and xcalloc return values.
63114         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63115         Improve comment.
63116         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63117
63118 2003-06-07  Bruno Haible  <bruno@clisp.org>
63119
63120         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63121         avoid AC_CONFIG_LINKS.
63122         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63123         fnmatch.h, to avoid AC_CONFIG_LINKS.
63124         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63125
63126 2003-06-07  Bruno Haible  <bruno@clisp.org>
63127
63128         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63129         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63130         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63131         directory.
63132         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63133         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63134         directory.
63135
63136 2003-06-06  Jim Meyering  <jim@meyering.net>
63137
63138         Merge from coreutils.
63139         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63140         Consolidate declarations and initializations of *_base* locals.
63141
63142         Merge from coreutils.
63143         This avoids a core dump on systems without GNU putenv,
63144         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63145         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63146         (unsetenv): New static function, from GNU libc.
63147         (rpl_putenv): Use it.
63148
63149         * lib/modechange.c: Remove trailing blanks.
63150
63151         Merge from coreutils.
63152         * lib/fsusage.c: Remove declaration of statfs.
63153         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63154
63155         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63156
63157 2003-06-06  Jim Meyering  <jim@meyering.net>
63158
63159         * lib/stdbool_.h: Renamed from stdbool.h.in.
63160
63161 2003-06-06  Jim Meyering  <jim@meyering.net>
63162             Bruno Haible  <bruno@clisp.org>
63163
63164         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63165         Adjust Makefile.am snippet not to redirect directly to target.
63166         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63167
63168 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63169
63170         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63171         mismatch, look in future quarters as well as past.  This fixes a
63172         bug when processing fall-backwards gaps immediately after a long
63173         period of daylight-saving time.
63174
63175         * lib/mktime.c: Assume freestanding C89 or better.
63176         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63177         (__P): Remove; not used.
63178         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63179         (mktime, not_equal_tm, print_tm, check_result,
63180         main): Use prototypes.  Use const * where appropriate.
63181         (main): Fix typo in testing code that uncovered by above changes.
63182         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63183
63184 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63185
63186         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63187         locale.h, localeconv.  This merges changes from coreutils.
63188
63189         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63190         It can be removed after the next Autoconf is released.
63191         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63192         needed.
63193
63194 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63195
63196         * lib/mktime.c: Fix Debian bug 177940
63197         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63198         (localtime_offset): Now long int, not time_t, because we want it
63199         to be guaranteed to be signed.  All uses changed.
63200         (__mktime_internal): If overflow would occur when adding offset,
63201         don't add it.
63202
63203         Merge 'human' changes from coreutils.  Rewrite to support
63204         locale-specific notations like thousands separators.
63205         * lib/human.c: Simplify authorship notice.
63206         Include human.h immediately after config.h.
63207         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63208         <limits.h>: Do not include, since human.h does.
63209         (SIZE_MAX, UINTMAX_MAX): New macros.
63210         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63211         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63212         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63213         (power_letter): Renamed from suffixes.
63214         (generate_suffix_backwards): Remove.
63215         (adjust_value): Now takes int style (because of human.h changes)
63216         and long double value (for greater precision on some platforms).
63217         (group_number): New function.
63218         (human_readable): Use it.  Use integer options, not enum.
63219         Put the options before the sizes in the arg list.
63220         Support all the new options.
63221         The old human_readable function has been removed;
63222         use inttostr.h instead.
63223         (human_readable, default_block_size, humblock):
63224         Use uintmax_t, not int, for block sizes.
63225         (human_readable_inexact, block_size_types): Remove.
63226         (block_size_opts): New constant.
63227         (human_options): Renamed from human_block_size, with new signature
63228         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63229         * lib/human.h: Add copyright and authorship notice.
63230         Include <limits.h> and <stdbool.h> unconditionally.
63231         (PARAMS): Remove.  All uses removed.
63232         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63233         (enum human_inexact_style): Remove tag; now a nameless enum.
63234         (human_floor, human_ceiling, human_round_to_even): Now have
63235         values 2, 0, 1 rather than -1, 1, 0.
63236         (human_group_digits, human_suppress_point_zero, human_autoscale,
63237         human_base_1024, human_SI, human_B): New constants.
63238         (human_readable_inexact, human_block_size): Remove.
63239         (human_readable): Size args are now uintmax_t, not int.
63240         (human_options): New decl.
63241
63242         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63243         unnecessary now that we assume C89 or better.  This change
63244         imported from coreutils.
63245
63246         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63247         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63248         in the 2003-05-30 sync from glibc.
63249
63250         .h files should stand alone, but we shouldn't include <sys/types.h>
63251         if we can get away with just <stddef.h>.
63252
63253         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63254         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63255         rather than <sys/types.h>, as we merely need size_t.
63256         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63257         to get size_t.
63258         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63259         Include <stdio.h>, to get FILE.
63260         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63261         memcasecmp.h has included <stddef.h> and all we need is size_t.
63262         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63263         our interface, instead of including <sys/types.h>
63264
63265 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63266
63267         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63268         now, as glibc mktime is buggy on non-glibc systems.
63269
63270 2003-06-03  Karl Berry  <karl@gnu.org>
63271
63272         * config/config.sub: update from prep.
63273
63274 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63275
63276         [from coreutils]
63277         Fix some minor time-related bugs with POSIX time arguments.
63278         Some valid time stamps were being rejected (notably -1, and
63279         time stamps before 1900 on 64-bit hosts).  And some invalid
63280         time stamps were being accepted, e.g. September 31.
63281
63282         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63283         that we can return (time_t) -1 successfully.
63284         * lib/posixtm.c: Likewise.
63285         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63286         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63287         (t): Remove static var.
63288         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63289         of static var.  All uses changed.
63290         (year): Do not reject years before 1900; they can occur with
63291         64-bit time_t.
63292         (posix_time_parse): Do not check for out-of-range components;
63293         that is now the caller's responsibility, since our checks were
63294         only approximations.
63295         (posixtime): Use mktime to check for out-of-range components,
63296         since it knows them exactly.
63297         If mktime returns (time_t) -1, check whether an error actually occurred
63298         by invoking localtime on -1.
63299         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63300         posixtime failures better.
63301         Improve the test data (in comments only).
63302
63303 2003-06-02  Karl Berry  <karl@gnu.org>
63304
63305         * config/mkinstalldirs (version): new variable.
63306         (--version): new option.
63307         (usage): improve message.
63308
63309 2003-05-30  Karl Berry  <karl@gnu.org>
63310
63311         * lib/mktime.c: update from libc.
63312
63313 2003-05-30  Bruno Haible  <bruno@clisp.org>
63314
63315         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63316         * config/config.rpath: Upgrade to gettext-0.12.1.
63317
63318 2003-05-30  Bruno Haible  <bruno@clisp.org>
63319
63320         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63321         * m4/nls.m4: New file, from gettext-0.12.1.
63322         * m4/po.m4: New file, from gettext-0.12.1.
63323         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63324
63325 2003-05-30  Bruno Haible  <bruno@clisp.org>
63326
63327         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63328         * lib/localcharset.h: Likewise.
63329         * lib/localcharset.c: Likewise.
63330
63331 2003-05-29  Karl Berry  <karl@gnu.org>
63332
63333         * config/config.rpath: update from gettext.
63334
63335 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63336
63337         Assume the headers required for C89 freestanding compilers.
63338         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63339         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63340         * m4/human.m4 (gl_HUMAN): Likewise.
63341         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63342         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63343         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63344         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63345         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63346         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63347
63348 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63349
63350         Assume the headers required for C89 freestanding compilers.
63351         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63352         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63353         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63354         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63355         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63356         define, since <limits.h> is guaranteed to do that.
63357         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63358         * lib/exclude.c: Include <stdbool.h> unconditionally.
63359         * lib/tempname.c: Include <stddef.h> unconditionally.
63360         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63361         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63362         <stddef.h> does that.
63363         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63364         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63365         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63366         needed.
63367         * lib/xstrtol.c: Likewise.
63368         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63369         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63370
63371         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63372         warnings on some platforms.
63373
63374         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63375         arbitrarily.
63376
63377 2003-05-26  Jim Meyering  <jim@meyering.net>
63378
63379         Merge in a change from coreutils:
63380         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63381         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63382         that condition, rather than `-1' which is slightly misleading.
63383         Change the name of the cache variable to have the gl_ prefix.
63384         Prompted by a patch from Richard Dawe for DJGPP.
63385
63386 2003-05-24  Karl Berry  <karl@gnu.org>
63387
63388         * config/config.guess: update from prep.
63389
63390 2003-05-22  Karl Berry  <karl@gnu.org>
63391
63392         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63393
63394 2003-05-20  Karl Berry  <karl@gnu.org>
63395
63396         * config/config.guess: update from prep.
63397
63398 2003-05-18  Karl Berry  <karl@gnu.org>
63399
63400         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63401         might actually be set by the user.
63402
63403         * config/depcomp, install-sh, mdate-sh: update from automake.
63404
63405 2003-05-17  Bruno Haible  <bruno@clisp.org>
63406
63407         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
63408         invalid expansion for AC_EGREP_CPP.
63409         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63410         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63411         Suggested by Akim Demaille <akim@epita.fr> in
63412         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
63413
63414 2003-05-12  Jim Meyering  <jim@meyering.net>
63415
63416         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
63417         the space-padded-by-default conversion specifiers, %e, %k, %l.
63418
63419 2003-05-12  Bruno Haible  <bruno@clisp.org>
63420
63421         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
63422         the string is longer than 4 KB.
63423
63424 2003-05-11  Karl Berry  <karl@gnu.org>
63425
63426         * config/config.{guess,sub}: update from prep.
63427
63428 2003-05-09  Bruno Haible  <bruno@clisp.org>
63429
63430         * modules/error: Add m4/strerror_r.m4 to file list.
63431
63432 2003-05-03  Bruno Haible  <bruno@clisp.org>
63433
63434         Upgrade to Unicode-4.0.
63435         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
63436         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
63437         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
63438         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
63439         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
63440         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
63441         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
63442         Change width of U+E0100..U+E01EF from 1 to 0.
63443
63444 2003-04-25  Jim Meyering  <jim@meyering.net>
63445
63446         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
63447         of type size_t, not int.
63448
63449 2003-04-25  Bruno Haible  <bruno@clisp.org>
63450
63451         * lib/copy-file.c: Include <stddef.h>, for size_t.
63452
63453 2003-04-21  Paul Eggert  <eggert@twinsun.com>
63454
63455         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
63456         code which expansion is under static control.  Patch imported from
63457         Akim Demaille's patch to Bison; see
63458         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
63459
63460 2003-04-14  Bruno Haible  <bruno@clisp.org>
63461
63462         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
63463
63464 2003-04-11  Jim Meyering  <jim@meyering.net>
63465
63466         Merge changes from Coreutils.
63467
63468         2003-03-22  Jim Meyering  <jim@meyering.net>
63469
63470         * lib/strftime.c (widen): Cast alloca return value to proper type.
63471
63472         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
63473
63474         From GNU libc.
63475         * lib/strftime.c (my_strftime): Handle very large width
63476         specifications for numeric values correctly.  Improve checks for
63477         overflow.
63478
63479         2003-01-19  Jim Meyering  <jim@meyering.net>
63480
63481         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
63482         definitions.
63483         (nl_get_alt_digit) [! defined my_strftime]: Define.
63484         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
63485         _nl_get_alt_digit and _nl_get_walt_digit.
63486
63487         * lib/strftime.c (my_strftime): Merge in locale-related changes from
63488         libc. These changes have no effect outside of _LIBC.
63489
63490 2003-04-10  Bruno Haible  <bruno@clisp.org>
63491
63492         * modules/findprog: New file.
63493         * MODULES.html.sh (func_all_modules): Add it.
63494
63495 2003-04-10  Bruno Haible  <bruno@clisp.org>
63496
63497         * m4/findprog.m4: New file.
63498         * m4/eaccess.m4: New file.
63499
63500 2003-04-10  Bruno Haible  <bruno@clisp.org>
63501
63502         * lib/findprog.h: New file, from GNU gettext.
63503         * lib/findprog.c: New file, from GNU gettext.
63504
63505 2003-04-05  Jim Meyering  <jim@meyering.net>
63506
63507         Merge changes from Coreutils.
63508
63509         * lib/exclude.h (PARAMS): Remove definition and uses.
63510         * lib/exclude.c: Remove uses of `PARAMS'.
63511
63512         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
63513         Add test-cases for DOS filenames. Declare program_name.
63514         (main): Set up program_name.  Patch by Rich Dawe.
63515
63516         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63517         error from mntctl.
63518         Use mntctl's return value to drive the entry-processing loop, since
63519         we can't rely on the value of the vmt_length member in the last
63520         entry.  On some systems doing so could result in exhausting
63521         virtual memory.  Based in part on a patch from Mike Jetzer.
63522
63523 2003-04-04  Bruno Haible  <bruno@clisp.org>
63524
63525         * modules/linebreak: New file.
63526         * MODULES.html.sh (func_all_modules): Add it.
63527
63528 2003-04-04  Bruno Haible  <bruno@clisp.org>
63529
63530         * m4/linebreak.m4: New file.
63531
63532 2003-04-04  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/linebreak.h: New file, from GNU gettext.
63535         * lib/linebreak.c: New file, from GNU gettext with slight
63536         modifications.
63537         * lib/lbrkprop.h: New file, from GNU gettext.
63538
63539 2003-04-03  Bruno Haible  <bruno@clisp.org>
63540
63541         * modules/utf8-ucs4: New file.
63542         * modules/utf16-ucs4: New file.
63543         * modules/ucs4-utf8: New file.
63544         * modules/ucs4-utf16: New file.
63545         * MODULES.html.sh (func_all_modules): Add them.
63546
63547 2003-04-03  Bruno Haible  <bruno@clisp.org>
63548
63549         * m4/utf-ucs4.m4: New file.
63550         * m4/ucs4-utf.m4: New file.
63551
63552 2003-04-03  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/utf8-ucs4.h: New file, from GNU gettext.
63555         * lib/utf16-ucs4.h: New file, from GNU gettext.
63556         * lib/ucs4-utf8.h: New file, from GNU gettext.
63557         * lib/ucs4-utf16.h: New file, from GNU gettext.
63558
63559 2003-04-02  Bruno Haible  <bruno@clisp.org>
63560
63561         * modules/binary-io: New file.
63562         * MODULES.html.sh (func_all_modules): Add it.
63563
63564 2003-04-02  Bruno Haible  <bruno@clisp.org>
63565
63566         * lib/binary-io.h: New file, from GNU gettext.
63567
63568 2003-04-01  Bruno Haible  <bruno@clisp.org>
63569
63570         * modules/pathname: New file.
63571         * MODULES.html.sh (func_all_modules): Add it.
63572
63573 2003-04-01  Bruno Haible  <bruno@clisp.org>
63574
63575         * lib/pathname.h: New file, from GNU gettext.
63576         * lib/concatpath.c: New file, from GNU gettext.
63577
63578 2003-03-30  Bruno Haible  <bruno@clisp.org>
63579
63580         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
63581
63582 2003-03-30  Bruno Haible  <bruno@clisp.org>
63583
63584         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
63585         function chown() doesn't exist.
63586
63587 2003-03-28  Bruno Haible  <bruno@clisp.org>
63588
63589         * modules/copy-file: New file.
63590         * MODULES.html.sh (func_all_modules): Add it.
63591
63592 2003-03-28  Bruno Haible  <bruno@clisp.org>
63593
63594         * m4/copy-file.m4: New file.
63595
63596 2003-03-28  Bruno Haible  <bruno@clisp.org>
63597
63598         * lib/copy-file.h: New file, from GNU gettext.
63599         * lib/copy-file.c: New file, from GNU gettext.
63600
63601 2003-03-18  Jim Meyering  <jim@meyering.net>
63602
63603         * lib/quote.c (quote_n): Fix typo in comment.
63604
63605 2003-03-18  Bruno Haible  <bruno@clisp.org>
63606
63607         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
63608         checking.
63609         * m4/onceonly_2_57.m4: Likewise.
63610
63611 2003-03-17  Bruno Haible  <bruno@clisp.org>
63612
63613         * m4/onceonly.m4: Require autoconf 2.54 or newer.
63614         (m4_quote): Remove macro.
63615         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
63616
63617 2003-03-14  Jim Meyering  <jim@meyering.net>
63618
63619         Merge changes from Coreutils.
63620         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
63621         to be const, in order to avoid warnings.
63622         (obstack_room): Likewise.
63623         (obstack_empty_p): Likewise.
63624
63625 2003-03-14  Bruno Haible  <bruno@clisp.org>
63626
63627         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
63628         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
63629
63630 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63631
63632         Merge changes from Bison.
63633         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
63634         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
63635         when compiling Bison 1.875's `bitset bset = obstack_alloc
63636         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
63637         * lib/hash.c: Include <stdbool.h> unconditionally.
63638
63639 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63640
63641         * m4/onceonly.m4 (m4_quote): New macro.
63642         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
63643         Quote AC_FOREACH variable-expansions properly.
63644
63645 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63646
63647         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
63648
63649 2003-03-09  Paul Eggert  <eggert@twinsun.com>
63650
63651         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
63652         Reported by Bruce Becker; see:
63653         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
63654
63655 2003-03-03  Paul Eggert  <eggert@twinsun.com>
63656             Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
63659         Reported by John Hughes, see
63660         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
63661
63662 2003-02-20  Bruno Haible  <bruno@clisp.org>
63663
63664         * MODULES.html.sh (func_all_modules): Add poll.
63665
63666 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63667
63668         * modules/poll: New file.
63669
63670 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63671
63672         * lib/poll_.h: New file.
63673         * lib/poll.c: New file.
63674
63675 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63676
63677         * m4/poll.m4: New file.
63678
63679 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63680
63681         * modules/mathl: New file.
63682
63683 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63684
63685         * lib/mathl.h: New file.
63686         * lib/acosl.c: New file.
63687         * lib/asinl.c: New file.
63688         * lib/atanl.c: New file.
63689         * lib/ceill.c: New file.
63690         * lib/cosl.c: New file.
63691         * lib/expl.c: New file.
63692         * lib/floorl.c: New file.
63693         * lib/frexpl.c: New file.
63694         * lib/ldexpl.c: New file.
63695         * lib/logl.c: New file.
63696         * lib/sincosl.c: New file.
63697         * lib/sinl.c: New file.
63698         * lib/sqrtl.c: New file.
63699         * lib/tanl.c: New file.
63700         * lib/trigl.c: New file.
63701         * lib/trigl.h: New file.
63702
63703 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63704
63705         * m4/mathl.m4: New file.
63706
63707 2003-02-18  Bruno Haible  <bruno@clisp.org>
63708
63709         * MODULES.html.sh (func_all_modules): Add mathl.
63710
63711 2003-02-17  Bruno Haible  <bruno@clisp.org>
63712
63713         * modules/mkdtemp: New module.
63714         * MODULES.html.sh (func_all_modules): Add it.
63715
63716 2003-02-17  Bruno Haible  <bruno@clisp.org>
63717
63718         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
63719
63720 2003-02-17  Bruno Haible  <bruno@clisp.org>
63721
63722         * lib/mkdtemp.h: New file, from GNU gettext.
63723         * lib/mkdtemp.c: New file, from GNU gettext.
63724
63725 2003-02-02  Jim Meyering  <jim@meyering.net>
63726
63727         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
63728         e.g. glibc-2.2.93.
63729
63730 2003-01-31  Bruno Haible  <bruno@clisp.org>
63731
63732         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
63733         'rpl_rename'.
63734         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
63735         'rpl_strnlen'.
63736         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
63737         'rpl_strtod'.
63738         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
63739         'rpl_utime'.
63740
63741 2003-01-31  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/rename.c: #undef rename before defining rpl_rename.
63744         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
63745
63746 2003-01-30  Bruno Haible  <bruno@clisp.org>
63747
63748         * modules/vasnprintf, modules/vasprintf: New modules.
63749         * MODULES.html.sh (func_all_modules): Add them.
63750
63751 2003-01-30  Bruno Haible  <bruno@clisp.org>
63752
63753         * m4/signed.m4: New file, from GNU gettext.
63754         * m4/longdouble.m4: New file, from GNU gettext.
63755         * m4/wchar_t.m4: New file, from GNU gettext.
63756         * m4/wint_t.m4: New file, from GNU gettext.
63757         * m4/vasnprintf.m4: New file.
63758         * m4/vasprintf.m4: New file.
63759
63760 2003-01-30  Bruno Haible  <bruno@clisp.org>
63761
63762         * lib/printf-args.h: New file, from GNU gettext.
63763         * lib/printf-args.c: New file, from GNU gettext.
63764         * lib/printf-parse.h: New file, from GNU gettext.
63765         * lib/printf-parse.c: New file, from GNU gettext.
63766         * lib/vasnprintf.h: New file, from GNU gettext.
63767         * lib/vasnprintf.c: New file, from GNU gettext.
63768         * lib/asnprintf.c: New file, from GNU gettext.
63769         * lib/vasprintf.h: New file, from GNU gettext with modifications.
63770         * lib/vasprintf.c: New file, from GNU gettext.
63771         * lib/asprintf.c: New file, from GNU gettext.
63772
63773 2003-01-29  Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/stpncpy: New module.
63776         * MODULES.html.sh (func_all_modules): Add it.
63777
63778 2003-01-29  Bruno Haible  <bruno@clisp.org>
63779
63780         * m4/stpncpy.m4: New file.
63781
63782 2003-01-29  Bruno Haible  <bruno@clisp.org>
63783
63784         * lib/stpncpy.h: New file, from GNU gettext with modifications.
63785         * lib/stpncpy.c: New file, from GNU gettext with modifications.
63786
63787 2003-01-28  Bruno Haible  <bruno@clisp.org>
63788
63789         * modules/c-ctype: New module.
63790         * MODULES.html.sh (func_all_modules): Add it.
63791
63792 2003-01-28  Bruno Haible  <bruno@clisp.org>
63793
63794         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
63795         Paul Eggert.
63796         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
63797         Paul Eggert.
63798
63799 2003-01-27  Bruno Haible  <bruno@clisp.org>
63800
63801         * modules/xsetenv: New module.
63802         * MODULES.html.sh (func_all_modules): Add it.
63803
63804 2003-01-27  Bruno Haible  <bruno@clisp.org>
63805
63806         * lib/xsetenv.h: New file, from GNU gettext.
63807         * lib/xsetenv.c: New file, from GNU gettext.
63808
63809 2003-01-23  Jim Meyering  <jim@meyering.net>
63810
63811         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
63812         from working on systems without dirfd (at least Irix and OSF1/Tru64).
63813
63814 2003-01-23  Bruno Haible  <bruno@clisp.org>
63815
63816         * modules/minmax: New module.
63817         * MODULES.html.sh (func_all_modules): Add it.
63818
63819 2003-01-23  Bruno Haible  <bruno@clisp.org>
63820
63821         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
63822         Eggert.
63823
63824 2003-01-22  Bruno Haible  <bruno@clisp.org>
63825
63826         * modules/exit: New module.
63827         * MODULES.html.sh (func_all_modules): Add it.
63828
63829 2003-01-22  Bruno Haible  <bruno@clisp.org>
63830
63831         * lib/exit.h: New file, from GNU gettext.
63832
63833 2003-01-19  Bruno Haible  <bruno@clisp.org>
63834
63835         * gnulib-tool: Recognize option --extract-maintainer.
63836         (func_get_maintainer): New function.
63837         * modules/*: Add Maintainer entry.
63838
63839 2003-01-16  Jim Meyering  <jim@meyering.net>
63840
63841         * m4/regex.m4: The `regex' struct is both input and output.
63842         Initialize it before each use.  Patch by Tim Waugh.
63843
63844 2003-01-16  Bruno Haible  <bruno@clisp.org>
63845
63846         * MODULES.html.sh: Add a table of contents. Add the module name as
63847         leftmost column. Add hyperlinks.
63848
63849 2003-01-15  Bruno Haible  <bruno@clisp.org>
63850
63851         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
63852
63853 2003-01-15  Bruno Haible  <bruno@clisp.org>
63854
63855         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
63856         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
63857         suffix.
63858
63859 2003-01-15  Bruno Haible  <bruno@clisp.org>
63860
63861         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
63862
63863 2003-01-15  Bruno Haible  <bruno@clisp.org>
63864
63865         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
63866         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
63867
63868 2003-01-14  Jim Meyering  <jim@meyering.net>
63869
63870         * lib/same.c (same_name): Tweak a comment.
63871
63872 2003-01-14  Bruno Haible  <bruno@clisp.org>
63873
63874         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
63875         when a string comparison is sufficient.
63876
63877 2003-01-14  Bruno Haible  <bruno@clisp.org>
63878
63879         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
63880         'unsigned int'.
63881
63882 2003-01-14  Bruno Haible  <bruno@clisp.org>
63883
63884         * lib/hash-pjw.c: Add comment about low quality of this function.
63885
63886 2003-01-13  Bruno Haible  <bruno@clisp.org>
63887
63888         * modules/stpcpy: Distribute lib/stpcpy.h.
63889         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
63890
63891 2003-01-13  Bruno Haible  <bruno@clisp.org>
63892
63893         * modules/*: Add a description.
63894         * modules/strpbrk: Fix Makefile.am snippet.
63895         * modules/strtoimax: Fix dependencies.
63896         * modules/strtoumax: Likewise.
63897
63898 2003-01-13  Bruno Haible  <bruno@clisp.org>
63899
63900         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
63901         * modules/alloca (Makefile.am): All object files depend on alloca.h.
63902         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
63903
63904 2003-01-13  Bruno Haible  <bruno@clisp.org>
63905
63906         * gnulib-tool (func_create_testdir): Store config/* files in the main
63907         directory.
63908         * config.rpath: Move to ...
63909         * config/config.rpath: ... here.
63910         * modules/gettext: Contains config/config.rpath, not config.rpath.
63911         * modules/iconv: Likewise.
63912
63913 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63914
63915         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63916         to avoid collisions with libcurses and libreadline.
63917
63918         * m4/getstr.m4: Remove.
63919         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
63920
63921 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63922
63923         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63924         to avoid collisions with libcurses and libreadline.
63925
63926         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
63927         * lib/getstr.h, getstr.c: Remove.
63928         * lib/getline.c: Include "getline.h", to check interface.
63929         Move body of old getstr.c here: this defines MIN_CHUNK and
63930         declares getdelim2, which is renamed from getstr.
63931         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
63932
63933         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
63934         All uses changed.
63935         * lib/linebuffer.h: Likewise.
63936         (readline): Remove backward-compatibility macro.
63937
63938 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63939
63940         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63941         to avoid collisions with libcurses and libreadline.
63942         * getstr: Remove.
63943         * MODULES.html.sh: Remove getstr.
63944         * modules/getline: Depend on unlocked-io, not getstr.
63945
63946 2003-01-12  Jim Meyering  <jim@meyering.net>
63947
63948         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
63949
63950 2003-01-10  Bruno Haible  <bruno@clisp.org>
63951
63952         * modules/alloca: Change Makefile.am requirements. Simplify Include
63953         requirements. Add lib/alloca_.h to file list.
63954
63955 2003-01-10  Bruno Haible  <bruno@clisp.org>
63956
63957         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
63958
63959 2003-01-10  Bruno Haible  <bruno@clisp.org>
63960
63961         * lib/alloca_.h: New file.
63962         * lib/getdate.y: Unconditionally include alloca.h.
63963         * lib/makepath.c: Likewise.
63964         * lib/setenv.c: Likewise.
63965         * lib/userspec.c: Likewise.
63966
63967 2003-01-09  Karl Berry  <karl@gnu.org>
63968
63969         * MODULES.html.sh: include `dirname $0` in PATH, to find
63970         gnulib-tool.
63971
63972 2003-01-09  Bruno Haible  <bruno@clisp.org>
63973
63974         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63975         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63976
63977 2003-01-09  Bruno Haible  <bruno@clisp.org>
63978
63979         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63980
63981 2003-01-09  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/stdbool.h.in: New file.
63984
63985 2003-01-09  Bruno Haible  <bruno@clisp.org>
63986
63987         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63988         * MODULES.html.sh: Likewise.
63989
63990 2003-01-08  Jim Meyering  <jim@meyering.net>
63991
63992         * lib/full-write.c: Undefine and define-away `const' after inclusion
63993         of errno.h, not before.  Suggestion from Bruno Haible.
63994
63995 2003-01-08  Bruno Haible  <bruno@clisp.org>
63996
63997         * modules/full-read: Depend on full-write.
63998
63999 2003-01-08  Bruno Haible  <bruno@clisp.org>
64000
64001         * lib/safe-read.c: Include specification header first, to ensure its
64002         selfcontainedness.
64003         * lib/full-write.c: Likewise.
64004
64005 2003-01-07  Jim Meyering  <jim@meyering.net>
64006
64007         * lib/full-write.c: Rework so that it may serve to define full_read,
64008         too.
64009         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64010
64011 2003-01-07  Bruno Haible  <bruno@clisp.org>
64012
64013         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64014         <inttypes.h>.
64015         * lib/xstrtol.h: Likewise.
64016         * lib/xstrtoimax.c: Likewise.
64017         * lib/xstrtoumax.c: Likewise.
64018         * lib/human.h: Likewise.
64019
64020         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64021         on systems that have <inttypes.h> but not <stdint.h>.
64022
64023 2003-01-07  Bruno Haible  <bruno@clisp.org>
64024
64025         * MODULES.html.sh: Add copyright notice.
64026         (missed_files): Omit CVS directory entries.
64027         (func_module): Make it work with sed-3.02.
64028         * MODULES.txt: Remove file.
64029
64030 2003-01-06  Jim Meyering  <jim@meyering.net>
64031
64032         * lib/version-etc.c: Update year in translatable copyright string.
64033
64034 2003-01-03  Karl Berry  <karl@gnu.org>
64035
64036         * config/config.{guess,sub}: update from prep.
64037
64038 2003-01-02  Karl Berry  <karl@gnu.org>
64039
64040         * doc/COPYING.DOC: belatedly updated to 1.2.
64041
64042 2003-01-01  Karl Berry  <karl@gnu.org>
64043
64044         * gnulib-tool (func_verify_module): report module name $module in
64045         error message, not $1.
64046         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64047         be created, only if it doesn't exist.
64048         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64049
64050 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64051
64052         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64053
64054 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64055
64056         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64057         memcmp if strcoll doesn't work.
64058
64059 2002-12-31  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64062         nonempty.
64063
64064 2002-12-31  Bruno Haible  <bruno@clisp.org>
64065
64066         * lib/memcoll.c (STRCOLL): New macro.
64067         (memcoll): Use it.
64068
64069 2002-12-31  Bruno Haible  <bruno@clisp.org>
64070
64071         * lib/localcharset.h: New file.
64072         * lib/localcharset.c: Include it.
64073         * lib/unicodeio.c: Likewise.
64074
64075 2002-12-31  Bruno Haible  <bruno@clisp.org>
64076
64077         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64078         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64079
64080 2002-12-31  Bruno Haible  <bruno@clisp.org>
64081
64082         * lib/getline.h: Include <stddef.h>, for size_t.
64083
64084         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64085         * lib/unicodeio.c: Don't include <stddef.h>.
64086
64087 2002-12-31  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64090         HAVE_TM_ZONE.
64091
64092 2002-12-24  Karl Berry  <karl@gnu.org>
64093
64094         * config/config.guess: update from prep.
64095
64096 2002-12-24  Bruno Haible  <bruno@clisp.org>
64097
64098         General infrasructure.
64099         * m4/README: Rewritten.
64100         * m4/onceonly.m4: New file.
64101         * m4/onceonly_2_57.m4: New file.
64102
64103         Module atexit.
64104         * m4/atexit.m4: New file.
64105
64106         Module strtod.
64107         * m4/strtod.m4: New file.
64108
64109         Module strtol.
64110         * m4/strtol.m4: New file.
64111
64112         Module strtoul.
64113         * m4/strtoul.m4: New file.
64114
64115         Module memchr.
64116         * m4/memchr.m4: New file.
64117
64118         Module memcmp.
64119         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64120         (jm_FUNC_MEMCMP): Invoke it.
64121
64122         Module memcpy.
64123         * m4/memcpy.m4: New file.
64124
64125         Module memmove.
64126         * m4/memmove.m4: New file.
64127
64128         Module memset.
64129         * m4/memset.m4: New file.
64130
64131         Module strcspn.
64132         * m4/strcspn.m4: New file.
64133
64134         Module strpbrk.
64135         * m4/strpbrk.m4: New file.
64136
64137         Module strstr.
64138         * m4/strstr.m4: New file.
64139
64140         Module strerror.
64141         * m4/strerror.m4: New file.
64142
64143         Module mktime.
64144         * m4/mktime.m4: Renamed from jm-mktime.m4.
64145         (gl_PREREQ_MKTIME): New macro.
64146         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64147
64148         Module malloc.
64149         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64150         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64151         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64152
64153         Module realloc.
64154         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64155         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64156         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64157
64158         Module strftime.
64159         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64160         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64161         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64162         gl_TM_GMTOFF.
64163         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64164
64165         Module xalloc.
64166         * m4/xalloc.m4: New file.
64167
64168         Module alloca.
64169         * m4/alloca.m4: New file.
64170
64171         Module putenv.
64172         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64173         (jm_FUNC_PUTENV): Invoke it.
64174
64175         Module setenv.
64176         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64177         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64178         when invoked twice.
64179         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64180         gt_FUNC_SETENV.
64181
64182         Module memrchr.
64183         * m4/memrchr.m4: New file.
64184
64185         Module stpcpy.
64186         * m4/stpcpy.m4: New file.
64187
64188         Module strcase.
64189         * m4/strcase.m4: New file.
64190
64191         Module strdup.
64192         * m4/strdup.m4: New file.
64193
64194         Module strnlen.
64195         * m4/strnlen.m4: New file.
64196
64197         Module strndup.
64198         * m4/strndup.m4: New file.
64199
64200         Module xstrtod.
64201         * m4/xstrtod.m4: New file.
64202
64203         Module xstrtol.
64204         * m4/xstrtol.m4: New file.
64205
64206         Module getdate.
64207         * m4/getdate.m4: New file.
64208
64209         Module unlocked-io.
64210         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64211         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64212         * m4/jm-glibc-io.m4n: Remove file.
64213
64214         Module long-options.
64215         * m4/long-options.m4: New file.
64216
64217         Module md5.
64218         * m4/md5.m4: New file.
64219
64220         Module sha.
64221         * m4/sha.m4: New file.
64222
64223         Module getstr.
64224         * m4/getstr.m4: New file.
64225
64226         Module getline.
64227         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64228         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64229         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64230         simply getline. Infoke gl_PREREQ_GETLINE.
64231
64232         Module obstack.
64233         * m4/obstack.m4: New file.
64234
64235         Module hash.
64236         * m4/hash.m4: New file.
64237
64238         Module readtokens.
64239         * m4/readtokens.m4: New file.
64240
64241         Module strverscmp.
64242         * m4/strverscmp.m4: New file.
64243
64244         Module stdbool.
64245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64246         OSF/1.
64247
64248         Module strtoll.
64249         * m4/strtoll.m4: New file.
64250
64251         Module strtoull.
64252         * m4/strtoull.m4: New file.
64253
64254         Module strtoimax.
64255         * m4/strtoimax.m4: New file.
64256
64257         Module strtoumax.
64258         * m4/strtoumax.m4: New file.
64259
64260         Module xstrtoimax.
64261         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64262         jm_AC_PREREQ_XSTRTOIMAX.
64263         Moved the strtol prerequisites to strtol.m4.
64264         Moved the strtoll prerequisites to strtoll.m4.
64265         Moved the strtoimax prerequisites to strtoimax.m4.
64266
64267         Module xstrtoumax.
64268         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64269         jm_AC_PREREQ_XSTRTOUMAX.
64270         Moved the strtoul prerequisites to strtoul.m4.
64271         Moved the strtoull prerequisites to strtoull.m4.
64272         Moved the strtoumax prerequisites to strtoumax.m4.
64273
64274         Module chown.
64275         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64276         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64277
64278         Module dup2.
64279         * m4/dup2.m4: New file.
64280
64281         Module ftruncate.
64282         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64283         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64284
64285         Module getgroups.
64286         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64287         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64288
64289         Module gettimeofday.
64290         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64291         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64292         gl_PREREQ_GETTIMEOFDAY.
64293
64294         Module mkdir.
64295         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64296         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64297
64298         Module mkstemp.
64299         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64300         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64301         jm_AC_TYPE_UINTMAX_T.
64302         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64303
64304         Module stat.
64305         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64306         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64307
64308         Module lstat.
64309         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64310         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64311
64312         Module timespec.
64313         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64314         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64315         * m4/st_mtim.m4: Indentation.
64316
64317         Module nanosleep.
64318         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64319         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64320         gl_PREREQ_NANOSLEEP.
64321
64322         Module regex.
64323         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64324         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64325         (gl_REGEX): New macro.
64326
64327         Module rename.
64328         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64329         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64330
64331         Module rmdir.
64332         * m4/rmdir.m4: New file.
64333
64334         Module utime.
64335         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64336         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64337         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64338
64339         Module dirname.
64340         * m4/dirname.m4: New file.
64341
64342         Module getopt.
64343         * m4/getopt.m4: New file.
64344
64345         Module unistd-safer.
64346         * m4/unistd-safer.m4: New file.
64347
64348         Module fnmatch.
64349         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64350         declaration.
64351         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64352         (gl_FUNC_FNMATCH_POSIX): New macro.
64353         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64354         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64355         simply fnmatch.
64356
64357         Module exclude.
64358         * m4/exclude.m4: New file.
64359
64360         Module human.
64361         * m4/human.m4: New file.
64362
64363         Module acl.
64364         * m4/acl.m4: Nop.
64365
64366         Module backupfile.
64367         * m4/backupfile.m4: New file.
64368         * m4/d-ino.m4: Indentation.
64369
64370         Module fsusage.
64371         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64372         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64373         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64374
64375         Module dirfd.
64376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64377         requirements.
64378
64379         Module euidaccess.
64380         * m4/euidaccess.m4: New file.
64381
64382         Module file-type.
64383         * m4/file-type.m4: New file.
64384
64385         Module fileblocks.
64386         * m4/fileblocks.m4: New file.
64387
64388         Module filemode.
64389         * m4/filemode.m4: New file.
64390
64391         Module isdir.
64392         * m4/isdir.m4: New file.
64393
64394         Module lchown.
64395         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64396         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64397
64398         Module makepath.
64399         * m4/makepath.m4: New file.
64400
64401         Module modechange.
64402         * m4/modechange.m4: New file.
64403
64404         Module mountlist.
64405         * m4/mountlist.m4: New file.
64406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
64407         Indentation.
64408
64409         Module path-concat.
64410         * m4/path-concat.m4: New file.
64411
64412         Module pathmax.
64413         * m4/pathmax.m4: New file.
64414
64415         Module same.
64416         * m4/same.m4: New file.
64417
64418         Module save-cwd.
64419         * m4/save-cwd.m4: New file.
64420
64421         Module savedir.
64422         * m4/savedir.m4: New file.
64423
64424         Module xgetcwd.
64425         * m4/xgetcwd.m4: New file.
64426         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
64427
64428         Module xreadlink.
64429         * m4/xreadlink.m4: New file.
64430
64431         Module safe-read.
64432         * m4/safe-read.m4: New file.
64433
64434         Module safe-write.
64435         * m4/safe-write.m4: New file.
64436
64437         Module closeout.
64438         * m4/closeout.m4: New file.
64439
64440         Module stdio-safer.
64441         * m4/stdio-safer.m4: New file.
64442
64443         Module getpass.
64444         * m4/getpass.m4: New file.
64445
64446         Module getugroups.
64447         * m4/getugroups.m4: New file.
64448
64449         Module group-member.
64450         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
64451         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
64452
64453         Module idcache.
64454         * m4/idcache.m4: New file.
64455
64456         Module userspec.
64457         * m4/userspec.m4: New file.
64458
64459         Module gettime.
64460         * m4/clock_time.m4: New file.
64461         * m4/gettime.m4: New file.
64462
64463         Module settime.
64464         * m4/settime.m4: New file.
64465
64466         Module posixtm.
64467         * m4/posixtm.m4: New file.
64468
64469         Module gethostname.
64470         * m4/gethostname.m4: New file.
64471
64472         Module canon-host.
64473         * m4/canon-host.m4: New file.
64474
64475         Module gettext.
64476         * m4/codeset.m4: New file, from gettext-0.11.5.
64477         * m4/gettext.m4: New file, from gettext-0.11.5.
64478         * m4/glibc21.m4: New file, from gettext-0.11.5.
64479         * m4/iconv.m4: New file, from gettext-0.11.5.
64480         * m4/intdiv0.m4: New file, from gettext-0.11.5.
64481         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
64482         * m4/inttypes.m4: New file, from gettext-0.11.5.
64483         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
64484         * m4/isc-posix.m4: New file, from gettext-0.11.5.
64485         * m4/lcmessage.m4: New file, from gettext-0.11.5.
64486         * m4/lib-ld.m4: New file, from gettext-0.11.5.
64487         * m4/lib-link.m4: New file, from gettext-0.11.5.
64488         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
64489         * m4/progtest.m4: New file, from gettext-0.11.5.
64490         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
64491         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
64492         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
64493
64494         Module localcharset.
64495         * m4/localcharset.m4: New file.
64496
64497         Module hard-locale.
64498         * m4/hard-locale.m4: New file.
64499
64500         Module mbswidth.
64501         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
64502         onceonly macros.
64503         * m4/mbrtowc.m4: Add comment.
64504
64505         Module memcasecmp.
64506         * m4/memcasecmp.m4: New file.
64507
64508         Module memcoll.
64509         * m4/memcoll.m4: New file.
64510
64511         Module unicodeio.
64512         * m4/unicodeio.m4: New file.
64513
64514         Module rpmatch.
64515         * m4/rpmatch.m4: New file.
64516
64517         Module yesno.
64518         * m4/yesno.m4: New file.
64519
64520         Module exitfail.
64521         * m4/exitfail.m4: New file.
64522
64523         Module c-stack.
64524         * m4/c-stack.m4 (gl_C_STACK): New macro.
64525         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
64526
64527         Module error.
64528         * m4/error.m4 (gl_ERROR): New macro.
64529         (jm_PREREQ_ERROR): Use onceonly macros.
64530
64531         Module fatal.
64532         * m4/fatal.m4: New file.
64533
64534         Module getloadavg.
64535         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
64536         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
64537
64538         Module getpagesize.
64539         * m4/getpagesize.m4: New file.
64540
64541         Module getusershell.
64542         * m4/getusershell.m4: New file.
64543
64544         Module physmem.
64545         * m4/physmem.m4: New file.
64546
64547         Module posixver.
64548         * m4/posixver.m4: New file.
64549
64550         Module quotearg.
64551         * m4/quotearg.m4: New file.
64552
64553         Module quote.
64554         * m4/quote.m4: New file.
64555
64556         Module readutmp.
64557         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
64558
64559         Module sig2str.
64560         * m4/sig2str.m4: New file.
64561
64562         Other.
64563         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
64564         ulonglong.m4.
64565         * m4/intmax_t.m4: New file.
64566         * m4/d-type.m4: Indentation.
64567         * m4/jm-macros.m4: Update.
64568         * m4/prereq.m4 (jm_PREREQ): Update.
64569         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
64570         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
64571         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
64572         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
64573         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
64574         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
64575         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
64576         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
64577         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
64578         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
64579         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
64580         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
64581         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
64582         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
64583         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
64584         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
64585         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
64586         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
64587         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
64588
64589 2002-12-24  Bruno Haible  <bruno@clisp.org>
64590
64591         * MODULES.txt: Update according to m4/ changes.
64592
64593         Module gettext.
64594         * config.rpath: New file, from gettext-0.11.5.
64595
64596         * modules/*: New module descriptions.
64597         * gnulib-tool: New file.
64598         * MODULES.html.sh: New file.
64599
64600 2002-12-21  Karl Berry  <karl@gnu.org>
64601
64602         * doc/fdl.texi: update to version 1.2.
64603
64604 2002-12-19  Karl Berry  <karl@gnu.org>
64605
64606         * config/config.guess: update from prep.
64607
64608 2002-12-18  Bruno Haible  <bruno@clisp.org>
64609
64610         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
64611         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
64612
64613 2002-12-17  Bruno Haible  <bruno@clisp.org>
64614
64615         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
64616         stdlib.h, string.h.
64617
64618 2002-12-17  Bruno Haible  <bruno@clisp.org>
64619
64620         * lib/canon-host.c (strdup): Remove unused declaration.
64621
64622         * lib/fsusage.c: Include full_read.h.
64623         (get_fs_usage): Use full_read instead of safe_read.
64624
64625         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
64626
64627 2002-12-12  Karl Berry  <karl@gnu.org>
64628
64629         * config/config.guess: update from prep.
64630
64631 2002-12-11  Bruno Haible  <bruno@clisp.org>
64632
64633         * m4/setenv.m4: New file, from gettext-0.11.5.
64634
64635 2002-12-11  Bruno Haible  <bruno@clisp.org>
64636
64637         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
64638         not unsetenv().
64639         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
64640         modifications:
64641
64642         2002-12-11  Bruno Haible  <bruno@clisp.org>
64643
64644                 * setenv.c (alloca): Fall back to malloc.
64645                 (freea): New macro.
64646                 (setenv): Use freea() to free memory allocated with alloca().
64647
64648         2002-11-13  Bruno Haible  <bruno@clisp.org>
64649
64650                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
64651                 function declarations.
64652                 * unsetenv.c (unsetenv): Likewise.
64653
64654         2002-03-04  Bruno Haible  <bruno@clisp.org>
64655
64656                 Portability to AIX 4.3.3.
64657                 * unsetenv.c: New file, extracted from setenv.c.
64658                 * setenv.c: Move the unsetenv() function to unsetenv.c.
64659
64660         2001-12-20  Bruno Haible  <bruno@clisp.org>
64661
64662                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
64663                 use malloc instead. For SunOS 4.
64664
64665         2001-12-11  Bruno Haible  <bruno@clisp.org>
64666
64667                 * setenv.c: Declare alloca.
64668                 (compar_fn_t): New typedef.
64669                 (KNOWN_VALUE, STORE_VALUE): Use it.
64670
64671         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
64672         setenv.h.
64673
64674 2002-12-10  Paul Eggert  <eggert@twinsun.com>
64675
64676         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
64677         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
64678         Choose values that are less likely to collide with system fnmatch
64679         options.
64680         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
64681         defined (e.g., a pure POSIX system).
64682         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
64683         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
64684
64685 2002-12-06  Paul Eggert  <eggert@twinsun.com>
64686
64687         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
64688         a pain in practice to deal with generated m4 files.  This change
64689         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
64690
64691         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
64692         and jm-glibc-io.m4, as they are no longer a special case.
64693         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
64694         kludge and the auto-generation stuff.  Check only whether the
64695         functions are declared, not whether they exist, since older hosts
64696         that don't declare the functions can't use the optimization anyway.
64697
64698 2002-12-06  Jim Meyering  <jim@meyering.net>
64699
64700         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
64701
64702         Merge in changes from libc's misc/error.c, in preparation
64703         for the merge of gnulib's changes back into libc.
64704
64705         * lib/error.c (_): Define only if not already defined.
64706         Move definition to follow all #include directives.
64707         Include unlocked-io.h only if !_LIBC.
64708         [_LIBC]: Include <libio/libioP.h>.
64709         [USE_IN_LIBIO]: Include <libio/iolibio.h>
64710         (fflush): Tweak definition to use INTUSE.
64711         (putc): Define.
64712
64713 2002-12-05  Paul Eggert  <eggert@twinsun.com>
64714
64715         * lib/alloca.c [defined emacs]: Include "lisp.h".
64716         (xalloc_die) [defined emacs]: New macro.
64717         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
64718         [! defined emacs]: Include <xalloc.h>.
64719         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
64720         (pointer): Typedef to POINTER_TYPE *.
64721         (malloc): Remove decl; we now always use xmalloc.
64722         (alloca): Use old-style definition, since Emacs needs this.
64723         Check for arithmetic overflow when computing combined size.
64724
64725 2002-12-04  Paul Eggert  <eggert@twinsun.com>
64726
64727         Do not generate unlocked-io.h automatically, since it's easier to
64728         maintain it by hand.
64729
64730         * lib/unlocked-io.h: New file, from GNU diffutils,
64731         but with proper copyright notice and attribution.
64732         * lib/gen-uio: Remove.
64733         * lib/Makefile.am: Add copyright notice.
64734         (libfetish_a_SOURCES): Add unlocked-io.h.
64735         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
64736         (DISTCLEANFILES, io_functions): Remove macros.
64737         (EXTRA_DIST): Remove gen_uio.
64738         (unlocked-io.h): Remove rule.
64739
64740 2002-12-04  Jim Meyering  <jim@meyering.net>
64741
64742         Reflect the fact that stat.c and lstat.c are no longer generated.
64743         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
64744         (DISTCLEANFILES): Likewise.
64745         (EXTRA_DIST): Likewise.
64746         (all_local): Don't depend on stat.c or lstat.c.
64747         (stat.c, lstat.c): Remove rules.
64748         (EXTRA_DIST): Remove xstat.in.
64749
64750         * lib/xstat.in: Remove file.  Contents moved into stat.c.
64751         * lib/stat.c: New file.  Contents mostly from xstat.in.
64752         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
64753         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
64754
64755         * lib/safe-read.c: Rework so that it may serve to define safe_write,
64756         too.
64757         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
64758
64759 2002-12-03  Jim Meyering  <jim@meyering.net>
64760
64761         * lib/safe-read.c, safe-write.c: Change variable names and comments,
64762         but not semantics, to minimize the differences between these two files.
64763         (safe_read): Change comment to mention SAFE_READ_ERROR.
64764
64765         * lib/safe-read.c (IS_EINTR): Define.
64766         (safe_read): Use IS_EINTR in place of in-function cpp directives.
64767
64768 2002-12-02  Jim Meyering  <jim@meyering.net>
64769
64770         * lib/safe-read.c (EINTR): Define.
64771         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64772         (INT_MAX): Provide fallback.
64773         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
64774
64775         * lib/safe-read.h (SAFE_READ_ERROR): Define.
64776
64777 2002-12-02  Bruno Haible  <bruno@clisp.org>
64778
64779         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
64780         Define, taken from safe-read.c.
64781         (INT_MAX): Provide fallback.
64782         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
64783         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
64784
64785         * lib/safe-read.c (EINTR): Remove definition.
64786         (safe_read): Don't use EINTR if it is absent.
64787
64788 2002-12-01  Jim Meyering  <jim@meyering.net>
64789
64790         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
64791         zero.
64792         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
64793
64794 2002-11-27  Paul Eggert  <eggert@twinsun.com>
64795
64796         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
64797         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
64798         with `if (! (value < limit)) abort ();', for readability.
64799
64800 2002-11-26  Karl Berry  <karl@gnu.org>
64801
64802         * lib/strdup.c: copy from libc again, with jim's ok.
64803         * lib/.cppi-disable: re-add strdup.c
64804
64805 2002-11-25  Karl Berry  <karl@gnu.org>
64806
64807         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
64808         instead of "strtol.c".
64809
64810 2002-11-25  Karl Berry  <karl@gnu.org>
64811
64812         * config/install-sh: update from automake for variable quoting, $0 in
64813         error msgs, etc.
64814
64815         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
64816         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
64817         entry.
64818
64819 2002-11-25  Jim Meyering  <jim@meyering.net>
64820
64821         * lib/mktime.c: Sync from libc, now that it has the latest fix.
64822
64823 2002-11-24  Karl Berry  <karl@gnu.org>
64824
64825         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
64826         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
64827
64828 2002-11-24  Jim Meyering  <jim@meyering.net>
64829
64830         Update from coreutils:
64831
64832         * lib/mktime.c: Merge in changes from libc.
64833
64834         Avoid a link-time failure on some Linux systems.
64835         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
64836         (otherwise).
64837         (__mon_yday): Declare with the STATIC attribute.
64838         (__mktime_internal): Likewise.
64839         Based on a report from Greg Schafer.
64840
64841 2002-11-23  Jim Meyering  <jim@meyering.net>
64842
64843         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
64844         Use `unsigned', not `int', as type of index.
64845
64846         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
64847
64848         * lib/fsusage.c: Remove unneeded parentheses around operands of
64849         `defined'.
64850
64851 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64852
64853         * lib/quotearg.h: Allow multiple inclusion by surrounding with
64854         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
64855         so that we can be included first.
64856         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
64857         * lib/quotearg.c: Include quotearg.h immediately after config.h.
64858         No need to include stddef.h or sys/types.h any more.
64859         Surround local include files with "", not "<>".
64860         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
64861         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
64862         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
64863         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
64864         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
64865         (ISPRINT): Remove; no longer needed now that we assume C89.
64866
64867         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
64868         Preserve errno.
64869
64870         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
64871         quotearg_char): Use SIZE_MAX rather than
64872         (size_t) -1 when we are talking about "infinity".
64873
64874         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
64875
64876 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64877
64878         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
64879         hint that one should use `if (! x) abort ();' rather than `assert
64880         (x);', and anyway it's one less thing to worry about configuring.
64881         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
64882         hash_rehash, hash_insert): Use abort rather than assert.
64883
64884 2002-11-22  Bruno Haible  <bruno@clisp.org>
64885
64886         * lib/safe-read.h: Assume C89. Add comments.
64887         (safe_read): Change return type to size_t.
64888         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
64889         byte counts > SSIZE_MAX correctly.
64890         * lib/safe-write.h: New file.
64891         * lib/safe-write.c: New file.
64892         * lib/full-read.h: New file.
64893         * lib/full-read.c: New file.
64894         * lib/full-write.h: Assume C89. Add comments.
64895         * lib/full-write.c: Include safe-write.h.
64896         (full_write): Rewritten to use safe_write.
64897         Suggested by Jim Meyering and Paul Eggert.
64898
64899 2002-11-21  Jim Meyering  <jim@meyering.net>
64900
64901         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
64902
64903         Merge in changes from the coreutils.
64904
64905         2002-09-25  Paul Eggert  <eggert@twinsun.com>
64906         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
64907         <stdint.h>.
64908         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
64909         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
64910         int.  Work more efficiently if X is the same width as uintmax_t.
64911         Do not compare X to -1, to avoid bogus compiler warning.
64912         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
64913         Don't assume that f_frsize and f_bsize are the same type.
64914
64915         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
64916         warning on FreeBSD.
64917
64918         * lib/makepath.c (make_path): Restore umask *before* creating the final
64919         component.
64920         (make_path): Minor reformatting.
64921
64922         * lib/xmalloc.c: Adjust to work with new autoconf macros,
64923         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
64924         HAVE_MALLOC/HAVE_REALLOC.
64925
64926         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
64927         dummy ones.  At least on GNU/Linux systems, `auto' means something
64928         else.
64929         From Michael Stone.
64930
64931 2002-11-21  Bruno Haible  <bruno@clisp.org>
64932
64933         Remove case insensitive option matching.
64934         * lib/argmatch.h (argcasematch): Remove declaration.
64935         (ARGCASEMATCH): Remove macro.
64936         (__xargmatch_internal): Remove case_sensitive argument.
64937         (XARGMATCH): Update.
64938         (XARGCASEMATCH): Remove macro.
64939         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
64940         case_sensitive argument.
64941         (argcasematch): Remove function.
64942         (__xargmatch_internal): Remove case_sensitive argument.
64943         (main): Use XARGMATCH instead of XARGCASEMATCH.
64944
64945         * lib/xmalloc.c: Change compile-time error message. Add comment about
64946         required autoconf version.
64947
64948 2002-11-20  Paul Eggert  <eggert@twinsun.com>
64949
64950         Merge argmatch cleanups from Bison.  Assume C89.
64951
64952         * lib/argmatch.c: Include config.h here, not in argmatch.h.
64953         Include stdlib.h, for EXIT_FAILURE.
64954         Always include <string.h>, since we assume C89.
64955         (EXIT_FAILURE): Remove pre-C89 bug workaround.
64956         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
64957         Include <stddef.h> instead, since it's all we need for size_t.
64958         (PARAMS): Remove.  All uses removed.
64959         (ARRAY_CARDINALITY): Do not bother to #undef.
64960         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
64961         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64962         Remove unnecessary parentheses.
64963         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64964         Insert necessary parentheses.
64965         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64966         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64967
64968 2002-11-19  Bruno Haible  <bruno@clisp.org>
64969
64970         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64971         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64972
64973         * lib/mbswidth.h (PARAMS): Remove macro.
64974         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64975         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64976
64977         * lib/gcd.h (PARAMS): Remove macro.
64978         (gcd): Use ANSI C function declarations.
64979         * lib/gcd.c (gcd): Likewise.
64980
64981 2002-11-15  Bruno Haible  <bruno@clisp.org>
64982
64983         * lib/strcspn.c: Include <stddef.h>.
64984         (strcspn): Use ANSI C function declaration. Change return type to
64985         size_t. Use NULL.
64986         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64987         (strpbrk): Use NULL.
64988         * lib/strpbrk.h (PARAMS): Remove macro.
64989         (strpbrk): Use ANSI C function declaration.
64990         * lib/strstr.c: Don't include <sys/types.h>.
64991         * lib/strstr.h (PARAMS): Remove macro.
64992         (strstr): Use ANSI C function declarations.
64993
64994 2002-11-14  Karl Berry  <karl@gnu.org>
64995
64996         * config/mkinstalldirs: `do' on separate line, instead of
64997         `for var; do'.
64998
64999 2002-11-06  Bruno Haible  <bruno@clisp.org>
65000
65001         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65002         * lib/gcd.c (gcd): Likewise.
65003
65004 2002-11-05  Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/gcd.h: New file, from gettext-0.11.5.
65007         * lib/gcd.c: New file, from gettext-0.11.5.
65008
65009 2002-11-05  Bruno Haible  <bruno@clisp.org>
65010
65011         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65012         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65013         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65014         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65015
65016         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65017         <libintl.h>.
65018         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65019         <libintl.h>.
65020
65021         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65022         * lib/human.c: Include gettext.h instead of <libintl.h>.
65023         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65024         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65025         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65026         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65027         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65028         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65029         (textdomain): Remove definition.
65030         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65031
65032         * lib/long-options.c: Remove include of <libintl.h> and definition of
65033         _.
65034         * lib/same.c: Remove include of <libintl.h> and definition of _.
65035
65036 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65037
65038         * lib/config.charset: A few additions for Solaris.
65039
65040 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65041
65042         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65043         * lib/localcharset.c (locale_charset): Declare as extern "C".
65044
65045 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65046
65047         * lib/config.charset: msdos in uk_UA uses CP1125.
65048
65049 2002-11-04  Bruno Haible  <bruno@clisp.org>
65050
65051         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65052         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65053         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65054         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65055         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65056
65057 2002-11-04  Bruno Haible  <bruno@clisp.org>
65058
65059         * lib/localcharset.c (locale_charset): Don't return an empty string.
65060
65061 2002-11-04  Bruno Haible  <bruno@clisp.org>
65062
65063         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65064         aliases.
65065
65066 2002-11-04  Bruno Haible  <bruno@clisp.org>
65067
65068         * lib/config.charset: Update for newest glibc. Add canonical names
65069         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65070
65071 2002-11-04  Bruno Haible  <bruno@clisp.org>
65072
65073         * lib/config.charset: Add support for NetBSD.
65074
65075 2002-11-04  Bruno Haible  <bruno@clisp.org>
65076
65077         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65078
65079 2002-11-01  Bruno Haible  <bruno@clisp.org>
65080
65081         * configure.in: Add AC_CONFIG_AUX_DIR call.
65082         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65083         test/Makefile.
65084         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65085
65086 2002-09-28  Karl Berry  <karl@gnu.org>
65087
65088         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65089         installed automake until the next release, since changes have been
65090         made.
65091
65092 2002-09-25  Karl Berry  <karl@gnu.org>
65093
65094         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65095         * lib/getopt*: copy from libc/posix.
65096         * lib/gettext.h: copy from gettext.
65097         * lib/.cppi-disable: add strdup.c, gettext.h.
65098
65099 2002-09-25  Karl Berry  <karl@gnu.org>
65100
65101         * config/srclist.txt: enable gettext.h check.
65102         * config/config.{guess,sub}: update from prep.
65103         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65104                 from automake 1.6.3.
65105         See srclist*.
65106
65107 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65108
65109         * regex.c (PATFETCH): Remove the translating fetch.
65110         (PATFETCH_RAW): Rename to PATFETCH.
65111         (set_image_of_range): New fun.
65112         (SET_RANGE_TABLE_WORK_AREA): Use it.
65113         (regex_compile): Don't translate the pattern chars so eagerly.
65114         Only do it when inserting an `exactn' bytecode or when handling
65115         a char-range.
65116         (mutually_exclusive_p): Avoid empty statement.
65117
65118 2002-07-06  Jim Meyering  <meyering@lucent.com>
65119
65120         * m4/README: Don't mention Makefile.am.in.
65121         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65122
65123 2002-07-01  Jim Meyering  <meyering@lucent.com>
65124
65125         * lib/c-stack.c: Include sys/time.h.
65126         From Volker Borchert.
65127
65128 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65129
65130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65131
65132 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65133
65134         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65135         New macro.  Use it uniformly instead of
65136         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65137         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65138         reported by Vin Shelton.
65139
65140 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65141
65142         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65143         Do not assume SA_SIGINFO behavior.
65144         Bug reported by Jim Meyering on NetBSD 1.5.2.
65145
65146 2002-06-22  Jim Meyering  <meyering@lucent.com>
65147
65148         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65150
65151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65152         now that configure.ac uses AC_GNU_SOURCE.
65153         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65154         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65155
65156         Update to latest tools.  Suggestions from Paul Eggert.
65157         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65158         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65159         * m4/fnmatch.m4: Likewise.
65160         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65161         to AC_HEADER_STDBOOL
65162
65163 2002-06-22  Jim Meyering  <meyering@lucent.com>
65164
65165         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65166         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65167
65168 2002-06-22  Jim Meyering  <meyering@lucent.com>
65169
65170         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65171
65172         * lib/exitfail.c, exitfail.h: Likewise.
65173         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65174
65175         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65176         of fnmatch.h.
65177         (EXTRA_DIST): Add fnmatch_loop.c.
65178         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65179
65180         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65181         * lib/fnmatch.c: Update from diffutils-2.8.2.
65182         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65183         * lib/fnmatch.h: Remove file.
65184
65185 2002-06-21  Jim Meyering  <meyering@lucent.com>
65186
65187         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65188         * m4/mbrtowc.m4: Likewise.
65189
65190         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65191         * m4/mbswidth.m4: Reflect name change:
65192         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65193         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65194
65195         * m4/lib-link.m4: Update from gettext-0.11.2.
65196         * m4/gettext.m4: Likewise.
65197
65198         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65199         From Alfred M. Szmidt.
65200
65201 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65202
65203         * lib/file-type.h: Report an error if neither S_ISREG nor
65204         S_IFREG is defined, instead of using a test specific to glibc
65205         2.2.  This should be safe, since POSIX requires S_ISREG and
65206         Unix Version 7 had S_IFREG.  We don't need to check for
65207         <sys/types.h> since we don't use any symbols that it defines.
65208
65209 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65210
65211         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65212         $@-t, so that each temporary file name is unique and valid in the first
65213         8 characters, for operation under DOS.
65214
65215 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65216
65217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65218
65219 2002-06-15  Jim Meyering  <meyering@lucent.com>
65220
65221         Work even with DJGPP 2.03, which lacks support for symlinks.
65222         From Richard Dawe.
65223         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65224         is defined.
65225         * lib/lchown.c (S_ISLNK): Likewise.
65226
65227 2002-06-15  Jim Meyering  <meyering@lucent.com>
65228
65229         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65230         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65231         have been included before this file.
65232
65233 2002-06-14  Jim Meyering  <meyering@lucent.com>
65234
65235         * lib/file-type.h: Use the version from diffutils-2.8.2.
65236         * lib/file-type.c: Likewise.
65237
65238 2002-06-07  Jim Meyering  <meyering@lucent.com>
65239
65240         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65241         They're needed at least for NetBSD 1.5.2.
65242         ($statxfs_includes): Include those same headers.
65243         ($statxfs_includes): Include sys/vfs.h if available.
65244         ($statxfs_includes): Likewise for sys/statvfs.h.
65245         Check for the following members in both structs statfs and statvfs:
65246         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65247
65248 2002-06-01  Jim Meyering  <meyering@lucent.com>
65249
65250         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65251         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65252
65253 2002-05-28  Jim Meyering  <meyering@lucent.com>
65254
65255         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65256         Reported by Volker Borchert.
65257
65258 2002-05-27  Jim Meyering  <meyering@lucent.com>
65259
65260         Fix a problem seen only on nonconforming systems whereby ls.c's
65261         use of localtime, and then of gettimeofday would cause trouble:
65262         the localtime call used to initialize rpl_gettimeofday's save
65263         mechanism would clobber ls's current local time information so
65264         that in any long listing the first file would always be listed
65265         with date 1970-01-01.  Analysis by Volker Borchert.
65266
65267         * lib/gettimeofday.c (localtime): Undefine.
65268         (rpl_localtime): New function.
65269
65270 2002-05-27  Jim Meyering  <meyering@lucent.com>
65271
65272         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65273         localtime.
65274
65275         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65276         use the replacement function; it wouldn't resolve at link time.
65277         Reported by Volker Borchert.
65278
65279 2002-05-22  Jim Meyering  <meyering@lucent.com>
65280
65281         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65282         file-type.h.
65283         * lib/file-type.h: New file.
65284         * lib/file-type.c (file_type): New file/function.  Extracted from
65285         diffutils.
65286
65287 2002-04-30  Jim Meyering  <meyering@lucent.com>
65288
65289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65290
65291 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65292
65293         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65294
65295 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65296
65297         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65298         Do not check for alloca.h (no longer used) or stdbool.h (was never
65299         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65300
65301 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65302
65303         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65304
65305 2002-04-29  Jim Meyering  <meyering@lucent.com>
65306
65307         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65308         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65309         Use AC_FUNC_STRNLEN here instead.
65310
65311         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65312         With autoconf-2.53a, it's part of AC_PROG_CC.
65313
65314 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65315
65316         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65317         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65318
65319 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65320
65321         * lib/sig2str.h, lib/sig2str.c: New files.
65322         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65323
65324 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65325
65326         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65327         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65328         of 127, since 64 is the largest conceivable number for ancient
65329         nonstandard hosts.
65330         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65331
65332 2002-04-28  Jim Meyering  <meyering@lucent.com>
65333
65334         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65335
65336 2002-04-24  Jim Meyering  <meyering@lucent.com>
65337
65338         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65339         (jm_PREREQ): Use it.
65340
65341         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65342         mach/mach.h fcntl.h.
65343         Check for this function: setlocale.
65344
65345 2002-04-24  Jim Meyering  <meyering@lucent.com>
65346
65347         * lib/gettext.h: New file, from Gettext.
65348         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65349         (libfetish_a_SOURCES): Add gettext.h.
65350
65351 2002-04-16  Jim Meyering  <meyering@lucent.com>
65352
65353         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65354         ut_pid, ut_id, ut_exit.
65355
65356 2002-04-16  Jim Meyering  <meyering@lucent.com>
65357
65358         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65359         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65360         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65361
65362 2002-04-12  Jim Meyering  <meyering@lucent.com>
65363
65364         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65365         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65366         existence of the getmntinfo function.  Needed for Darwin 5.3.
65367
65368         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65369         This is necessary at least on Darwin 5.3.
65370
65371         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65372         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65373         strnlen.o in the library, and that makes some versions of ranlib
65374         object.
65375
65376 2002-04-12  Jim Meyering  <meyering@lucent.com>
65377
65378         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65379
65380 2002-04-09  Jim Meyering  <meyering@lucent.com>
65381
65382         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65383         to be more precise.  Rather than saying we're checking whether the
65384         function `works', say what we're testing.
65385         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65386         Reported by Bruno Haible.
65387
65388 2002-03-10  Jim Meyering  <meyering@lucent.com>
65389
65390         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65391         Suggestion from Santiago Vila.
65392
65393 2002-03-08  Jim Meyering  <meyering@lucent.com>
65394
65395         * lib/rename.c: Mention that this wrapper is needed also on
65396         mips-dec-ultrix4.4 systems.
65397
65398 2002-03-02  Jim Meyering  <meyering@lucent.com>
65399
65400         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65401         not HAVE_CLOCK_SETTIME.
65402
65403 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65404
65405         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
65406         Check for clock_settime.
65407
65408 2002-02-27  Paul Eggert  <eggert@twinsun.com>
65409
65410         * lib/nanosleep.h: Rename to....
65411         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
65412
65413         * lib/gettime.c: New file.
65414         * lib/settime.c: New file.
65415         * lib/stime.c: Remove.
65416
65417         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
65418         timespec.h.  Remove nanosleep.h.
65419
65420 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65421
65422         * m4/acl.m4: New file.
65423         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
65424         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
65425
65426 2002-02-25  Paul Eggert  <eggert@twinsun.com>
65427
65428         * lib/acl.c, lib/acl.h: New files.
65429         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
65430
65431 2002-02-24  Jim Meyering  <meyering@lucent.com>
65432
65433         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
65434         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
65435         cause trouble.  Reported by Nelson Beebe.
65436
65437 2002-02-23  Paul Eggert  <eggert@twinsun.com>
65438
65439         * lib/path-concat.c (xpath_concat): Reorder code to pacify
65440         compilers that don't know that xalloc_die never returns.
65441
65442 2002-02-20  Jim Meyering  <meyering@lucent.com>
65443
65444         * lib/getdate.c: Regenerate using bison-1.33.
65445
65446 2002-02-17  Jim Meyering  <meyering@lucent.com>
65447
65448         * config/config.guess (main): Don't use `head -1'; it's no longer
65449         portable. Use `sed 1q' instead.
65450
65451 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
65452
65453         * m4/codeset.m4: Upgrade to gettext-0.11.
65454         * m4/gettext.m4: Upgrade to gettext-0.11.
65455         * m4/glibc21.m4: Upgrade to gettext-0.11.
65456         * m4/iconv.m4: Upgrade to gettext-0.11.
65457         * m4/isc-posix.m4: Upgrade to gettext-0.11.
65458         * m4/lcmessage.m4: Upgrade to gettext-0.11.
65459         * m4/lib-ld.m4: New file, from gettext-0.11.
65460         * m4/lib-link.m4: New file, from gettext-0.11.
65461         * m4/lib-prefix.m4: New file, from gettext-0.11.
65462         * m4/progtest.m4: Upgrade to gettext-0.11.
65463
65464 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65465
65466         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
65467         (jm_PREREQ): Use it.
65468
65469 2002-02-15  Paul Eggert  <eggert@twinsun.com>
65470
65471         * lib/posixver.c, lib/posixver.h: New files.
65472         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65473
65474 2002-02-02  Paul Eggert  <eggert@twinsun.com>
65475             Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
65478         (fwrite_success_callback): New declaration.
65479         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
65480         print_unicode_char. Call failure callback instead of error.
65481         (fwrite_success_callback): New function.
65482         (exit_failure_callback): New function.
65483         (fallback_failure_callback): New function.
65484         (print_unicode_char): Call unicode_to_mb.
65485
65486 2002-01-26  Jim Meyering  <meyering@lucent.com>
65487
65488         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
65489         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
65490
65491 2002-01-26  Jim Meyering  <meyering@lucent.com>
65492
65493         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
65494
65495 2002-01-22  Paul Eggert  <eggert@twinsun.com>
65496
65497         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
65498
65499 2002-01-22  Jim Meyering  <meyering@lucent.com>
65500
65501         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
65502         Otherwise, some versions of automake would omit the rule that makes
65503         Makefile from Makefile.in.
65504
65505 2002-01-21  Paul Eggert  <eggert@twinsun.com>
65506
65507         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
65508         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
65509         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
65510         (memcoll): Set errno to zero if there is no error.
65511
65512         * lib/quotearg.c (quotearg_buffer_restyled):
65513         Fix bug with quoting buffers containing NUL when backslashing escapes.
65514         This bug was exposed by the other changes in this patch.
65515         (quotearg_n_options): New arg ARGSIZE.
65516         All callers changed.
65517         (quoting_options_from_style): New function.
65518         (quotearg_n_style): Use it.
65519         (quotearg_n_style_mem): New function.
65520
65521         * lib/quotearg.h (quotearg_n_style_mem): New function.
65522
65523 2002-01-19  Jim Meyering  <meyering@lucent.com>
65524
65525         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
65526         Remove useless quotes: DF_PROG="df".
65527         * m4/strnlen.m4: New file.
65528
65529 2002-01-16  Paul Eggert  <eggert@twinsun.com>
65530
65531         * lib/backupfile.c (ISDIGIT): Comment fix.
65532         * lib/getdate.y (ISDIGIT): Likewise.
65533         * lib/posixtm.c (ISDIGIT, year): Likewise.
65534         * lib/strverscmp.c (ISDIGIT): Likewise.
65535         * lib/userspec.c (ISDIGIT): Likewise.
65536
65537 2002-01-16  Jim Meyering  <meyering@lucent.com>
65538
65539         * lib/getdate.y: Add three semicolons, each just before a closing
65540         brace. Bison (as of version 1.31) no longer papers over that mistake.
65541
65542 2002-01-05  Jim Meyering  <meyering@lucent.com>
65543
65544         * lib/version-etc.c (version_etc_copyright): Update copyright year.
65545
65546 2001-12-19  Paul Eggert  <eggert@twinsun.com>
65547
65548         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
65549         not silently exit merely because the output buffer happens to
65550         have nothing pending.
65551
65552 2001-12-18  Paul Eggert  <eggert@twinsun.com>
65553
65554         See the big note in ../ChangeLog.
65555         * lib/human.c (suffixes): Prefer K to k for 1024.
65556         (generate_suffix_backwards): New function.
65557         (human_readable_inexact): Use it.
65558         * lib/xstrtol.c (__xstrtol): If there is no number but there
65559         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
65560         Accept 'K' as well as 'k'.
65561
65562 2001-12-15  Jim Meyering  <meyering@lucent.com>
65563
65564         * lib/regex.h (__restrict_arr): Update from libc.
65565
65566         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
65567         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
65568         (STREQ): Define.
65569
65570 2001-12-14  Jim Meyering  <meyering@lucent.com>
65571
65572         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
65573         Suggestion from Bruno Haible.
65574
65575 2001-12-10  Jim Meyering  <meyering@lucent.com>
65576
65577         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
65578         xrealloc, Instead, include "xalloc.h".
65579         (initbuffer): Don't cast xmalloc return value to char*.
65580         (readline): Reword comment.
65581         Don't cast xrealloc return value to char*
65582         Return NULL, not 0.
65583
65584 2001-12-09  Jim Meyering  <meyering@lucent.com>
65585
65586         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
65587         about `signed and unsigned type in conditional expression'.
65588         * lib/posixtm.c (posix_time_parse): Likewise.
65589
65590         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
65591
65592         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
65593         to avoid a pedantic warning.
65594
65595         * lib/getstr.c: Don't include assert.h.
65596         (getstr): Remove warning-evoking assertions.
65597         Return -1 if offset parameter is out of bounds.
65598         Change the type of a local from int to size_t.
65599
65600         * lib/strftime.c (my_strftime_localtime_r): Include this function
65601         definition in the `#if ! HAVE_TM_GMTOFF' block.
65602
65603         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
65604         Include xalloc.h instead.
65605
65606 2001-12-02  Jim Meyering  <meyering@lucent.com>
65607
65608         * lib/tempname.c: Don't declare getenv, thus reverting the change of
65609         2001-11-18.  It's no longer necessary, now that stdlib.h is always
65610         included.
65611
65612         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
65613         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
65614
65615 2001-11-30  Akim Demaille  <akim@epita.fr>
65616
65617         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
65618         before being defined.
65619
65620 2001-11-27  Paul Eggert  <eggert@twinsun.com>
65621
65622         * lib/quotearg.h (quotearg_n, quotearg_n_style):
65623         First arg is int, not unsigned.
65624         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
65625         (SIZE_MAX, UINT_MAX): New macros.
65626         (quotearg_n_options): Abort if N is negative.
65627         Avoid overflow check on hosts where size_t is 64 bits and int
65628         is 32 bits, as overflow is impossible there.
65629         Fix off-by-one typo that caused unnecessary reallocation.
65630
65631 2001-11-27  Jim Meyering  <meyering@lucent.com>
65632
65633         * lib/tempname.c: Merge with version from libc.
65634         * lib/regex.c: Likewise.
65635
65636         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
65637         systems for which STDC_HEADERS is 0, it was not included, resulting in
65638         a warning about an integer-to-pointer conversion problem with getenv.
65639         Reported by Volker Borchert.
65640
65641 2001-11-26  Jim Meyering  <meyering@lucent.com>
65642
65643         * lib/gtod.h: Remove file.
65644         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
65645         * lib/gettimeofday.c: Don't include gtod.h.
65646         (GTOD_init): Remove function.
65647         (rpl_gettimeofday): Do its job here instead, rather than aborting.
65648         Suggestion from Volker Borchert.
65649
65650 2001-11-23  Jim Meyering  <meyering@lucent.com>
65651
65652         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
65653         it.
65654         * lib/hash.c (struct hash_table): Define it here instead.
65655
65656 2001-11-22  Jim Meyering  <meyering@lucent.com>
65657
65658         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
65659
65660 2001-11-20  Jim Meyering  <meyering@lucent.com>
65661
65662         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
65663         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
65664
65665 2001-11-19  Jim Meyering  <meyering@lucent.com>
65666
65667         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
65668         directory.  Use "conftestXXXXXX" as the template.
65669         Suggestion from Paul Eggert.
65670
65671         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
65672         immediately, so the test doesn't mistakenly hit the max-open-files
65673         limit.
65674
65675 2001-11-18  Paul Eggert  <eggert@twinsun.com>
65676
65677         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
65678         (TEMPORARIES): New macro.
65679         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
65680         removes an artificial limitation (e.g. HP-UX 10.20, where
65681         TMP_MAX is 17576).
65682
65683 2001-11-18  Jim Meyering  <meyering@lucent.com>
65684
65685         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
65686
65687 2001-11-18  Jim Meyering  <meyering@lucent.com>
65688
65689         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
65690         on SunOS 4.
65691
65692         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
65693         files will be created before anything else.
65694
65695 2001-11-17  Paul Eggert  <eggert@twinsun.com>
65696
65697         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
65698         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
65699
65700 2001-11-17  Jim Meyering  <meyering@lucent.com>
65701
65702         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
65703         Prompted by a report from Bob Proulx.
65704
65705         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
65706         Instead, require UTILS_FUNC_MKSTEMP.
65707
65708 2001-11-17  Jim Meyering  <meyering@lucent.com>
65709
65710         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
65711         Now, that's done as part of AC_FUNC_STRTOD.
65712
65713 2001-11-17  Jim Meyering  <meyering@lucent.com>
65714
65715         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
65716         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
65717         rather than group writable.  Patch by Juan F. Codagnone.
65718
65719         * lib/readtokens.c: Remove explicit declarations of xmalloc and
65720         xrealloc, Instead, include "xalloc.h".
65721
65722         * lib/mountlist.c: Include unlocked-io.h after all system headers.
65723         Remove explicit declarations of xmalloc, xrealloc,
65724         and xstrdup.  Instead, include "xalloc.h".
65725
65726         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
65727         unlocked-io.h.
65728         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
65729         Likewise.
65730         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
65731
65732         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
65733         Reported by Padraig Brady.
65734
65735         * lib/mkstemp.c: #undef mkstemp.
65736         Include config.h.
65737         (rpl_mkstemp): Rename from mkstemp.
65738         Protoize.
65739
65740 2001-11-16  Jim Meyering  <meyering@lucent.com>
65741
65742         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
65743         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
65744         determine the amount of total physical memory, use pstat_getstatic.
65745         HPUX-11 doesn't define _SC_PHYS_PAGES.
65746         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
65747         If sysconf couldn't be used to determine the amount of available
65748         physical memory, use both pstat_getstatic and pstat_getdynamic.
65749         Based on a patch from Bob Proulx.
65750
65751 2001-11-10  Jim Meyering  <meyering@lucent.com>
65752
65753         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
65754         (jm_PREREQ): Use it.
65755
65756 2001-11-09  Jim Meyering  <meyering@lucent.com>
65757
65758         * m4/jm-macros.m4: Require autoconf-2.52f.
65759         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
65760         Use these AC_-prefixed names, not the AM_-prefixed ones.
65761
65762         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
65763
65764 2001-11-05  Jim Meyering  <meyering@lucent.com>
65765
65766         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
65767
65768 2001-11-04  Jim Meyering  <meyering@lucent.com>
65769
65770         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
65771         $DEFS.
65772
65773 2001-11-03  Jim Meyering  <meyering@lucent.com>
65774
65775         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
65776         of AC_DEFUN.
65777
65778         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
65779         know the name of the variable in the macro definition.
65780
65781 2001-11-03  Jim Meyering  <meyering@lucent.com>
65782
65783         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
65784         in argmatch_to_argument call.
65785
65786         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
65787         argument.
65788
65789         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
65790         e.g., a fault due to an attempt to free a NULL pointer.
65791
65792 2001-11-01  Jim Meyering  <meyering@lucent.com>
65793
65794         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
65795         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
65796
65797 2001-11-01  Jim Meyering  <meyering@lucent.com>
65798
65799         * lib/dirfd.c, lib/dirfd.h: New files.
65800         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
65801
65802         * lib/hash.c (hash_print) [TESTING]: Clean up.
65803
65804 2001-10-22  Paul Eggert  <eggert@twinsun.com>
65805
65806         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
65807         to avoid a warning if -Wall.
65808
65809 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
65810
65811         * README: New file
65812         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
65813         (per RMS's instructions, this is now the canonical source)
65814         * lgpl/, gpl/: New directories.
65815
65816 2001-10-21  Paul Eggert  <eggert@twinsun.com>
65817
65818         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
65819
65820 2001-10-21  Jim Meyering  <meyering@lucent.com>
65821
65822         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
65823         this code would end up calling gettext even in packages built
65824         with --disable-nls.
65825         * lib/getopt.c (_): Likewise.
65826         * lib/regex.c (_): Likewise.
65827
65828 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65829
65830         * m4/error.m4 (jm_PREREQ_ERROR):
65831         Do not invoke AC_CHECK_FUNCS with strerror_r, as
65832         AC_FUNC_STRERROR_R does that.
65833         Check for strerror declaration.
65834
65835         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
65836         are supposed to have them these days.
65837         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
65838         Merge changes from latest Autoconf CVS.
65839         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
65840         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
65841         POSIX decided to standardize on the int flavor of strerror_r.
65842
65843 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65844
65845         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
65846         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
65847         Use strerror_r that is only a macro, even if it is not a function.
65848         (strerror): Check for HAVE_DECL_STRERROR before declaring.
65849         (private_strerror): Use prototypes, not old-style function definition.
65850         (print_errno_message): New function.
65851         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
65852         char*-flavored one.
65853         (error_tail, error, error_at_line): Use it.
65854
65855 2001-10-11  Jim Meyering  <meyering@lucent.com>
65856
65857         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
65858         and quote_n (1, ... to avoid clobbering a buffer.
65859
65860 2001-10-05  Jim Meyering  <meyering@lucent.com>
65861
65862         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
65863         hash-pjw.h.
65864         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
65865         * lib/hash-pjw.h: New file.
65866
65867 2001-09-30  Jim Meyering  <meyering@lucent.com>
65868
65869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
65870         `struct fsstat' has the `f_fstypename' member.
65871         Use that to define FS_TYPE, which is now used to make
65872         the getfsstat link test tighter.
65873
65874 2001-09-30  Jim Meyering  <meyering@lucent.com>
65875
65876         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
65877         Include <sys/ucred.h>, for Apple Darwin.
65878         Include sys/mount.h and sys/fs_types.h only if available.
65879         (FS_TYPE): Define.
65880         (read_filesystem_list): Use FS_TYPE.
65881
65882 2001-09-29  Paul Eggert  <eggert@twinsun.com>
65883
65884         * lib/exclude.c (excluded_filename): 0 -> false, since it's
65885         a boolean context.
65886
65887 2001-09-29  Jim Meyering  <meyering@lucent.com>
65888
65889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65890         [one-argument getmntent function]): Include stdio.h before mntent.h.
65891         SunOS 4.1.x needs it for the declaration of `FILE'.
65892         Patch by Volker Borchert.
65893
65894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65895         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
65896         sys/fs_types.h, and make the link-test for getfsstat guard #include
65897         directives with appropriate #if HAVE_*_H tests so that we can
65898         detect getfsstat on Apple Darwin1.3.7 systems.
65899         Reported by Nelson Beebe.
65900         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
65901
65902 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65903
65904         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65905         #defines strtoimax.  Also treat the other strto* functions
65906         like strtoimax.
65907
65908         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65909         Check for strtoul and strtoumax,
65910         as those declarations are made even in the signed case.
65911         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
65912         Likewise, for strtol and strtoimax.
65913
65914 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65915
65916         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65917         #defines strtoimax.  Also treat the other strto* functions
65918         like strtoimax.
65919
65920         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
65921         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
65922         (strtoimax, strtoumax): Do not declare if already defined as a macro.
65923
65924 2001-09-26  Jim Meyering  <meyering@lucent.com>
65925
65926         Most macros in unlocked-io.h had the wrong number of arguments.
65927         * lib/gen-uio: New script.
65928         (USE_UNLOCKED_IO): Define to 1 if not already defined.
65929         * lib/unlocked-io.hin: Remove file.
65930         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
65931         rather than trying to embed it here.
65932         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
65933         Reported by Padraig Brady.
65934
65935 2001-09-25  Volker Borchert  <bt@teknon.de>
65936
65937         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
65938         `result'.
65939
65940 2001-09-24  Jim Meyering  <meyering@lucent.com>
65941
65942         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
65943
65944 2001-09-23  Jim Meyering  <meyering@lucent.com>
65945
65946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
65947         instead of the mere test for existence of mntent.h.  The latter
65948         would get a false-positive on AIX 3.4 systems.
65949         In the outer getmntent if-block, don't die if neither of the getmntent
65950         tests succeeds.  Instead, just fall through and continue with the
65951         remaining tests.
65952
65953 2001-09-23  Jim Meyering  <meyering@lucent.com>
65954
65955         * lib/mountlist.c: Remove useless parentheses in #if directives.
65956         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
65957         the deprecated MOUNTED symbol is no longer defined in mntent.h.
65958
65959 2001-09-22  Jim Meyering  <meyering@lucent.com>
65960
65961         * m4/gettext.m4: New file.  From gettext.
65962         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
65963         * m4/progtest.m4: Likewise
65964         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65965         * m4/glibc21.m4: Likewise.
65966
65967         * m4/libintl.m4: Remove.  No longer used.
65968
65969 2001-09-22  Jim Meyering  <meyering@lucent.com>
65970
65971         * lib/localcharset.c: Update from latest gettext.
65972         * lib/config.charset: Likewise.
65973
65974 2001-09-20  Jim Meyering  <meyering@lucent.com>
65975
65976         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65977         strtoimax.
65978         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65979         strtoumax.
65980
65981 2001-09-20  Jim Meyering  <meyering@lucent.com>
65982
65983         * lib/xstrtol.c (strtoimax): Guard declaration with
65984         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65985         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65986         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65987         (strtoumax): Likewise, for completeness (it wasn't necessary).
65988
65989 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65990
65991         * lib/strtoimax.c (HAVE_LONG_LONG):
65992         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65993         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65994         to work around bug in IBM C compiler.
65995
65996 2001-09-17  Jim Meyering  <meyering@lucent.com>
65997
65998         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65999         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66000         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66001         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66002         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66003         whenever the right hand side need not be expanded by the shell.
66004
66005 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66006
66007         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66008         library.  It's not correct, as some older glibcs are buggy.
66009         fnmatch wasn't fixed until glibc 2.2.
66010
66011         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66012         special shell magic here.
66013
66014 2001-09-16  Jim Meyering  <meyering@lucent.com>
66015
66016         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66017         * m4/jm-macros.m4: Require it.
66018
66019 2001-09-16  Jim Meyering  <meyering@lucent.com>
66020
66021         * lib/mkdir.c: New file.
66022
66023 2001-09-15  Jim Meyering  <meyering@lucent.com>
66024
66025         * m4/jm-macros.m4: Check for help2man.
66026
66027 2001-09-11  Jim Meyering  <meyering@lucent.com>
66028
66029         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66030         The body, by Paul Eggert, was moved here from configure.in.
66031         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66032
66033 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66034
66035         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66036         (jm_PREREQ): Use it.
66037
66038 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66039
66040         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66041         Use ssize_t, not int, to store result of readlink.
66042         Check for ssize_t overflow as well as size_t overflow,
66043         as POSIX says the result of readlink is implementation-defined
66044         when ssize_t overflows.
66045         Remove unnecessary cast to char*.
66046         Use free+malloc instead of realloc, as the storage doesn't need
66047         to be preserved and it's clearer and can be more efficient that way.
66048         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66049         * lib/xreadlink.h (xreadlink): Update prototype.
66050
66051 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66052
66053         * lib/xgetcwd.c: Revert some of the previous change; intead,
66054         fix the HAVE_GETCWD_NULL code to behave more like the
66055         !HAVE_GETCWD_NULL code used to.
66056
66057         Include "xalloc.h".
66058         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66059         invoke xalloc_die.
66060
66061 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66062
66063         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66064         sys/param.h, as pathmax.h includes them.
66065
66066 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66067
66068         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66069         (jm_PREREQ_XGETCWD): New macro.
66070
66071         * m4/getcwd.m4: New file.
66072
66073 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66074
66075         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66076         like the HAVE_GETCWD_NULL code.
66077         Include pathmax.h if not HAVE_GETCWD.
66078         Do not include xalloc.h.
66079         (INITIAL_BUFFER_SIZE): New symbol.
66080         Do not use xmalloc / xrealloc, since the caller is responsible for
66081         handling errors.  Preserve errno around `free' during failure.
66082         Do not overrun buffer when using getwd.
66083
66084 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66085
66086         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66087         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66088         getcwd (NULL, 0).
66089
66090 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66091
66092         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66093         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66094         spotted by Jim Meyering.
66095
66096 2001-09-03  Jim Meyering  <meyering@lucent.com>
66097
66098         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66099         failure.
66100
66101 2001-09-02  Jim Meyering  <meyering@lucent.com>
66102
66103         * lib/error.c: Update from GNU libc.
66104
66105 2001-09-01  Jim Meyering  <meyering@lucent.com>
66106
66107         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66108         Used by df.
66109
66110 2001-09-01  Jim Meyering  <meyering@lucent.com>
66111
66112         * lib/xreadlink.c: New file.
66113         * lib/xreadlink.h: New file.
66114         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66115         xreadlink.h.
66116
66117         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66118         doesn't conflict with sparc Solaris 7's definition in
66119         /usr/include/sys/int_types.h.
66120
66121         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66122         files.
66123         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66124         and strncasecmp as r-values.  Unixware didn't have declarations.
66125
66126 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66127
66128         * lib/xstrtol.h: Add copyright notice.
66129         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66130         LONGINT_INVALID_SUFFIX_CHAR.
66131
66132 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66133
66134         * lib/xstrtol.c (strtoimax): New decl.
66135
66136 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66137
66138         * lib/xgetcwd.c: Don't include pathmax.h.
66139         Include stdlib.h and unistd.h if available.
66140         Include xalloc.h.
66141         (xmalloc, xstrdup, free): Remove decls.
66142         (xgetcwd): Don't assume sizes fit in unsigned.
66143         Check for overflow when computing sizes.
66144         Simplify reallocation code.
66145
66146 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66147
66148         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66149         a directory's st_size can have an arbitrary value, so the old
66150         usage could waste an arbitrary amount of memory.  All uses
66151         changed.
66152         * lib/savedir.h: Update prototype.
66153
66154 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66155
66156         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66157
66158         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66159         old strtoimax.c.
66160
66161         Also, make the following further changes to make this file's
66162         configuration more similar to that of strtol.c:
66163         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66164         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66165         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66166         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66167         changed to signed values.
66168
66169         And make the following changes as well:
66170         Fix copyright notice, as 1999 was missing.
66171         (verify): New macro.
66172         (strtoimax): Check sizes at compile-time, not run-time.
66173         Prefer strtol to strtoll if both work.
66174         (main): Remove; it was not that useful and was a pain to maintain.
66175
66176         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66177
66178 2001-08-31  Jim Meyering  <meyering@lucent.com>
66179
66180         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66181         Use an initial, malloc'd, buffer of length 128 rather than
66182         a statically allocated one of length 1024.
66183
66184 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66185
66186         Simplify code, partly by assuming autoconf 2.52 semantics.
66187
66188         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66189
66190         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66191         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66192         All uses removed.
66193         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66194         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66195         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66196         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66197         jm_AC_HEADER_INTTYPES_H.
66198         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66199
66200         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66201
66202         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66203         Quote first arg of AC_DEFUN.
66204         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66205         since they are needed to parse the include file even if we need
66206         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66208         but with opposite signedness.
66209
66210 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66211
66212         Merge 'exclude' changes from tar 1.13.22.
66213         This fixes one or two unlikely storage allocation overflow bugs,
66214         but doesn't change user-visible behavior otherwise.
66215
66216 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66217
66218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66219         (jm_PREREQ_EXCLUDE): New macro.
66220
66221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66222
66223         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66224         tm to be declared.
66225
66226 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66227
66228         * lib/hash.c: Remove '2001' from copyright notice.
66229
66230 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66231
66232         * lib/full-write.h: New file.
66233         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66234         * lib/full-write.c: Correct credits, as cccp.c no longer
66235         exists and anyway it was so heavily changed from the old cccp
66236         code as to be unrecognizable.  Include full-write.h.
66237         (full_write) Return size_t, with short writes meaning failure.
66238         All callers changed.  This fixes a bug with large buffers
66239         on 64-bit hosts.
66240         * lib/utime.c: Include full-write.h.
66241
66242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66243
66244         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66245         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66246         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66247         Include if available.
66248         (<xalloc.h>): Include
66249         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66250         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66251         collide with FNM macros.
66252         (struct patopts): New struct.
66253         (struct exclude): Use it, as exclude patterns now come with options.
66254         (new_exclude): Support above changes.
66255         (new_exclude, add_exclude_file):
66256         Initial size must now be a power of two to simplify overflow checking.
66257         (free_exclude, fnmatch_no_wildcards): New function.
66258         (excluded_filename): No longer requires options arg, as the options
66259         are determined by add_exclude.  Now returns bool, not int.
66260         (excluded_filename, add_exclude):
66261         Add support for the fancy new exclusion options.
66262         (add_exclude, add_exclude_file): Now takes int options arg.
66263         Check for arithmetic overflow when computing sizes.
66264         (add_exclude_file): xrealloc might modify errno, so don't
66265         realloc until after errno might be used.
66266
66267         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66268         New macros.
66269         (free_exclude): New decl.
66270         (add_exclude, add_exclude_file): Now takes int options arg.
66271         (excluded_filename): No longer requires options arg, as the options
66272         are determined by add_exclude.  Now returns bool, not int.
66273
66274 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66275
66276         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66277
66278 2001-08-27  Jim Meyering  <meyering@lucent.com>
66279
66280         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66281
66282         * lib/version-etc.c (N_): Remove definition.
66283         Revert most of last change.
66284         Instead, simply don't mark the `Copyright...' string for translation.
66285         Based on advice from Paul Eggert.
66286
66287         * lib/strtoxmax.c: Tweak comment.
66288
66289 2001-08-26  Jim Meyering  <meyering@lucent.com>
66290
66291         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66292
66293         * m4/xstrtoimax.m4: New file.
66294         * m4/xstrtoumax.m4: Add comments explaining why we
66295         AC_REPLACE_FUNCS(strtol).
66296
66297 2001-08-26  Jim Meyering  <meyering@lucent.com>
66298
66299         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66300         of copyright with `%s' so translators don't get an untranslated
66301         message in 2002.
66302         (COPYRIGHT_YEAR): Define.
66303         (version_etc): Use fprintf rather than fputs.
66304         Suggestion from Ulrich Drepper.
66305
66306         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66307
66308         * lib/strtoll.c: New file, from GNU libc.
66309         * lib/xstrtoimax.c: New file.
66310
66311         * lib/xstrtol.h: Add xstrtoimax.
66312         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66313         * lib/strtoimax.c: New file.  Likewise, but first define
66314         STRTOUXMAX_SIGNED.
66315
66316         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66317         ...
66318         * lib/strtoxmax.c: ... then renamed to this.
66319
66320 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66321
66322         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66323         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66324         (jm_AC_TYPE_INTMAX_T): New macro.
66325         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66326
66327         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66328
66329         * m4/longlong.m4: Renamed from ulonglong.m4.
66330         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66331         * m4/uintmax_t.m4: Removed.
66332
66333 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66334
66335         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66336         Port to Solaris 8, where 'sed' requires a space after the 'r'
66337         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66338         Redirect output to $tmp just once.
66339
66340 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66341
66342         * lib/addext.c (<errno.h>): Include.
66343         (errno): Declare if not defined.
66344         (addext): Work correctly when pathconf returns -1 and leaves
66345         errno alone because there is no limit.  Also, work even if
66346         pathconf returns a value greater than SIZE_MAX.
66347
66348 2001-08-12  Jim Meyering  <meyering@lucent.com>
66349
66350         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66351         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66352         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66353         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66354         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66355         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66356         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66357         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66358         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66359         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66360         utime.m4, utimes.m4, xstrtoumax.m4:
66361         Quote the first argument in each use of AC_DEFUN.
66362
66363 2001-08-12  Jim Meyering  <meyering@lucent.com>
66364
66365         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66366         Simply `return getcwd (NULL, 0);'.
66367         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66368         Use 1300 as initial value for length, not PATH_MAX.
66369
66370         * lib/pathmax.h: Clean up cpp syntax.
66371
66372 2001-08-12  Jim Meyering  <meyering@lucent.com>
66373
66374         * lib/gettimeofday.c: New file.
66375         * lib/gtod.h: New file.
66376         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66377
66378 2001-08-05  Jim Meyering  <meyering@lucent.com>
66379
66380         * m4/jm-macros.m4: Require autoconf-2.52.
66381
66382 2001-08-04  Jim Meyering  <meyering@lucent.com>
66383
66384         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66385         stmt, to get in sync with glibc.
66386
66387 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66388
66389         The following changes are from gettext 0.10.39 as maintained by
66390         Bruno Haible.
66391
66392         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66393         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66394         with inverted sense.  All uses changed.
66395
66396         * lib/mbswidth.c: Don't include <limits.h>.
66397         Include <stdlib.h> and <string.h> unconditionally.
66398         (iswcntrl, mbsinit, ISCNTRL): New macros.
66399         (mbsnwidth): Use K&R style function declarations.
66400         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66401         can optimize it when MB_CUR_MAX == 1.
66402         The width of control characters is zero, not 1.
66403
66404 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66405
66406         The following changes are from gettext 0.10.39 as maintained by
66407         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
66408
66409         * m4/codeset.m4: Upgrade to serial AM1.
66410         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
66411         all uses changed.  Quote first arg of AC_DEFUN.
66412         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
66413
66414         * m4/iconv.m4: Upgrade to serial AM2.
66415         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
66416         Add --with-libconv-prefix.
66417         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
66418         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
66419         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
66420         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
66421         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
66422
66423         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
66424         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
66425         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
66426         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
66427         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
66428         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
66429         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66430         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
66431         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66432
66433         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
66434         string.h any more.
66435
66436         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
66437         not the default value.
66438
66439         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
66440         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
66441         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
66442         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
66443         Also check for iswcntrl, used for wcwidth fallback.
66444         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
66445         to Autoconf 2.13.
66446
66447 2001-08-03  Jim Meyering  <meyering@lucent.com>
66448
66449         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
66450         as it was in the original.  Reported by Paul Eggert.
66451
66452 2001-07-16  Jim Meyering  <meyering@lucent.com>
66453
66454         * m4/gettimeofday.m4: New file.
66455         Prompted by a report from Bernhard Baehr.
66456
66457 2001-07-15  Jim Meyering  <meyering@lucent.com>
66458
66459         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
66460         stuff. Now it's in ../Makefile.cfg.
66461
66462 2001-07-15  Jim Meyering  <meyering@lucent.com>
66463
66464         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
66465         (BUILT_SOURCES): Add unlocked-io.h.
66466         (io_functions): Define.
66467         (unlocked-io.h): New rule.
66468         (DISTCLEANFILES): Add unlocked-io.h.
66469         (all-local): Depend on unlocked-io.h, to ensure it is created.
66470
66471         * lib/unlocked-io.hin: New file
66472
66473         * lib/regex.c: Update from glibc.
66474
66475 2001-07-05  Jim Meyering  <meyering@lucent.com>
66476
66477         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
66478         recommendation.
66479         (libfetish_a_SOURCES): Put all .h files here instead.
66480         Remove a thus-exposed (better checks in automake) duplicate and
66481         two unnecessary .h files.
66482
66483 2001-07-04  Jim Meyering  <meyering@lucent.com>
66484
66485         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
66486         that generates jm-glibc-io.m4 so that it doesn't trigger any make
66487         distcheck failure.
66488
66489 2001-07-02  Jim Meyering  <meyering@lucent.com>
66490
66491         The following changes were prompted by suggestions from Bruno Haible.
66492
66493         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
66494         is now generated.
66495         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
66496         definition of EXTRA_DIST.
66497         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
66498         ensure that the generated file is created/updated whenever the list
66499         of $(unlocked_functions) is changed.
66500         (jm-glibc-io.m4): New rule.
66501         (unlocked-io.h): New rule -- currently unused.
66502
66503 2001-06-24  Jim Meyering  <meyering@lucent.com>
66504
66505         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
66506         unmatched right bracket, rather than kludging it with an extra,
66507         falsely-matching quote in a comment.  Patch by Akim Demaille.
66508
66509 2001-06-11  Jim Meyering  <meyering@lucent.com>
66510
66511         * lib/regex.c: Update from GNU libc.
66512
66513 2001-05-27  Jim Meyering  <meyering@lucent.com>
66514
66515         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
66516         Check for ut_type in struct utmp.
66517
66518 2001-05-27  Jim Meyering  <meyering@lucent.com>
66519
66520         * lib/readutmp.h (UT_TYPE): Define.
66521
66522 2001-05-24  Jim Meyering  <meyering@lucent.com>
66523
66524         * lib/argmatch.c: Include "quote.h".
66525         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
66526         quote function.  Reported by Göran Uddeborg.
66527
66528 2001-05-22  Jim Meyering  <meyering@lucent.com>
66529
66530         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
66531         now that we use the package-supplied version unconditionally.
66532         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
66533
66534 2001-05-21  Jim Meyering  <meyering@lucent.com>
66535
66536         * m4/regex.m4: Change a couple backticks to single quotes to avoid
66537         shell syntax errors.
66538
66539 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66540
66541         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
66542
66543 2001-05-20  Paul Eggert  <eggert@twinsun.com>
66544
66545         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
66546         Don't bother to check library strftime, since
66547         we'll be using our own my_strftime function anyway.
66548         Define my_strftime instead of strftime.
66549
66550 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
66551
66552         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
66553         which is not yet declared.
66554
66555 2001-05-15  Jim Meyering  <meyering@lucent.com>
66556
66557         * m4/regex.m4: Use proper quoting so brackets appear in the test
66558         program.
66559         Reported by, and with help from, Bruno Haible.
66560
66561 2001-05-13  Jim Meyering  <meyering@lucent.com>
66562
66563         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
66564         undefined.
66565
66566 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66567
66568         dirname code cleanup.  base_name now behaves more compatibly
66569         with POSIX basename when given file names that have trailing
66570         slashes, and similarly for dir_name.  Add new primitives
66571         base_len and dir_len.  Put the directory-name-related decls
66572         into dirname.h.
66573
66574         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
66575         * lib/backupfile.c (base_name): Likewise.
66576         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
66577         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
66578         * lib/makepath.c (strip_trailing_slashes): Likewise.
66579         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
66580         ISSLASH): Likewise.
66581         * lib/rename.c (strip_trailing_slashes): Likewise.
66582         * lib/same.c (base_name): Likewise.
66583         * lib/stripslash.c (ISSLASH): Likewise.
66584
66585         * lib/addext.c: Include <dirname.h> after size_t is defined.
66586         * lib/backupfile.c: Likewise.
66587
66588         * lib/addext.c (addext): Use base_len to trim redundant
66589         trailing slashes instead of doing it ourselves.
66590         But do not trim the last slash if it is not redundant.
66591
66592         * lib/backupfile.c (find_backup_file_name,
66593         max_backup_version): Use base_len instead of rolling it ourselves.
66594         Handle the case of "" and (on DOS) "C:" correctly.
66595
66596         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
66597         needed. Include <string.h>, <dirname.h>.
66598         (base_name): Allow file names ending in slashes, other than names
66599         that are all slashes.  In this case, return the basename followed
66600         by the slashes.  This is more general, and can be used in places
66601         where the original base_name purposely had an assertion failure.
66602         (base_len): New function.
66603
66604         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
66605         Do not include <assert.h>; no longer needed.
66606         Include xalloc.h.
66607         (memrchr): Remove decl.
66608         (dir_name_r): Remove.
66609         (dir_len): Renamed from dirlen.  All callers changed.
66610         Rewrite in terms of base_name, for simplicity and consistency.
66611         (dir_name): Never return NULL.  All callers changed.
66612         Do not include <stdlib.h> in test program; no longer needed.
66613         return 0; is fine for test program.
66614
66615         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
66616         New macros.
66617         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
66618
66619         * lib/path-concat.c (path_concat): Use base_len to compute
66620         base length, not strlen; this means we cannot rely on memcpy
66621         to null-terminate.
66622
66623         * lib/same.c (STREQ): Remove.
66624         (same_name): Handle the case where the basename ends in trailing '/'.
66625
66626         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
66627         a slash was stripped.  Do not strip the last slash after a
66628         file system prefix.
66629
66630 2001-05-11  Paul Eggert  <eggert@twinsun.com>
66631
66632         * lib/Makefile.am (libfetish_a_SOURCES):
66633         Add strftime.c, since we now compile it on all hosts.
66634
66635         * lib/strftime.c (my_strftime):
66636         Define to nstrftime if emacs, but only if my_strftime is not defined.
66637         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
66638         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
66639         Add one more extra argument: a nanoseconds value.
66640         All uses changed.
66641         (ns): New macro.
66642         (my_strftime function): Add %N format.
66643         (emacs_strftimeu): Renamed from emacs_strftime,
66644         with extra ut argument.
66645
66646 2001-05-09  Paul Eggert  <eggert@twinsun.com>
66647
66648         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
66649
66650 2001-04-21  Jim Meyering  <meyering@lucent.com>
66651
66652         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
66653         doesn't interfere.
66654
66655 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66656
66657         * m4/ftruncate.m4: Check for chsize.
66658         Link with ftruncate.o unconditionally if ftruncate is missing.
66659         This was required when cross-compiling to i586-mingw32msvc.
66660
66661 2001-04-08  Jim Meyering  <meyering@lucent.com>
66662
66663         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
66664         recomputed; that's necessary when the offset spans a DST transition.
66665         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
66666
66667 2001-04-02  Jim Meyering  <meyering@lucent.com>
66668
66669         * lib/regex.h, regex.c: Update from GNU libc.
66670
66671 2001-03-24  Jim Meyering  <meyering@lucent.com>
66672
66673         * m4/jm-macros.m4: Require autoconf-2.49d.
66674
66675 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
66676
66677         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
66678
66679 2001-03-19  Paul Eggert  <eggert@twinsun.com>
66680
66681         * lib/version-etc.c (version_etc_copyright): Update to 2001.
66682
66683 2001-03-17  Jim Meyering  <meyering@lucent.com>
66684
66685         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
66686         now that the version in autoconf is equivalent.
66687         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
66688
66689         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
66690         Suggestion from Akim Demaille.
66691
66692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
66693         (jm_PREREQ_TEMPNAME): New function.
66694
66695 2001-03-16  Paul Eggert  <eggert@twinsun.com>
66696
66697         * lib/tempname.c (uint64_t): Define to uintmax_t if
66698         not defined, and if UINT64_MAX is not defined.
66699         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
66700         Reported by John David Anglin.
66701
66702 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
66703
66704         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
66705         resolve alias if codeset is empty.
66706         * lib/config.charset (BeOS): Use wildcard syntax.
66707
66708 2001-03-13  Jim Meyering  <meyering@lucent.com>
66709
66710         * lib/path-concat.c (path_concat)
66711         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
66712         concatenating e.g., `C:' and `foo'.
66713         From Bruno Haible.
66714
66715 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66716
66717         * lib/localcharset.c (locale_charset): Don't use
66718         setlocale(LC_CTYPE,NULL). Don't return NULL.
66719         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
66720
66721 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66722
66723         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
66724         support for DOS/DJGPP.
66725
66726 2001-03-01  Paul Eggert  <eggert@twinsun.com>
66727
66728         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
66729         lacks mkstemp.  Compile our own tempname.c if we compile our own
66730         mkstemp.c, as mkstemp relies on tempname.
66731
66732 2001-03-01  Jim Meyering  <meyering@lucent.com>
66733
66734         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
66735         AH_VERBATIM really does output its argument verbatim.
66736
66737 2001-02-28  Paul Eggert  <eggert@twinsun.com>
66738
66739         * lib/Makefile.am (libfetish_a_SOURCES):
66740         Add dup-safer.c, fopen-safer.c.
66741         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
66742
66743         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
66744         * lib/unistd-safer.h: New files.
66745
66746 2001-02-25  Paul Eggert  <eggert@twinsun.com>
66747
66748         The mkstemp replacement is taken from glibc 2.2.2, with some
66749         portability fixes for use outside glibc, as follows:
66750
66751         * lib/tempname.c (struct_stat64): New macro.
66752         (direxists, __gen_tempname): Use it.
66753         This avoids a portability problem with Solaris 8.
66754
66755         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
66756         (<stddef.h>, <stdint.h>, <string.h>):
66757         Include only if STDC_HEADERS || _LIBC.
66758         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
66759         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
66760         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
66761         (__set_errno): Define this macro if <errno.h> doesn't.
66762         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
66763         Define these macros if <stdio.h> doesn't.
66764         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
66765         Define these macros if <sys/stat.h>
66766         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
66767         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
66768         __xstat64): Define if not _LIBC.
66769         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
66770         (__gen_tempname): Invoke gettimeofday only if
66771         HAVE_GETTIMEOFDAY || _LIBC;
66772         otherwise, fall back on plain "time".
66773         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
66774
66775         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
66776
66777         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
66778
66779 2001-02-18  Paul Eggert  <eggert@twinsun.com>
66780
66781         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
66782
66783 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66784
66785         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
66786         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
66787         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
66788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66789
66790 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66791
66792         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
66793         Remove workaround macros for hosts that have mbrtowc but not
66794         mbstate_t, as we now insist on proper declarations for both
66795         before using mbrtowc.
66796
66797 2001-02-17  Jim Meyering  <meyering@lucent.com>
66798
66799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
66800         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
66801         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
66802         UnixWare 7.1.1.
66803
66804         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
66805         rather than AC_CACHE_VAL.
66806
66807 2001-02-17  Jim Meyering  <meyering@lucent.com>
66808
66809         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
66810         around included file name.
66811
66812         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
66813
66814         * lib/strftime.c: Update from GNU libc (the only changes were to
66815         comments).
66816
66817 2001-02-17  Jim Meyering  <meyering@lucent.com>
66818
66819         * lib/regex.c: Update from libc.
66820
66821 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
66822
66823         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
66824         clash.
66825
66826 2001-02-16  Paul Eggert  <eggert@twinsun.com>
66827
66828         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
66829         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
66830         Reported by Mark Hounschell via Paul Eggert.
66831
66832 2001-02-07  Jim Meyering  <meyering@lucent.com>
66833
66834         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
66835
66836 2001-02-05  Jim Meyering  <meyering@lucent.com>
66837
66838         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
66839         it includes the patch required for `large file' support with at least
66840         HP-UX's 10.20 /bin/cc.
66841
66842 2001-02-03  Jim Meyering  <meyering@lucent.com>
66843
66844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
66845         AS_IF, now that it works once again (mysteriously).
66846         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66847
66848 2001-01-30  Jim Meyering  <meyering@lucent.com>
66849
66850         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
66851         * m4/chown.m4: Rename conftestchown to conftest.chown.
66852         * m4/rename.m4: s/conftestdir/conftest.d1/ and
66853         s/conftestdir2/conftest.d2/.
66854         * m4/utimes.m4: s/conftestdata/conftest.data/
66855         Inspired by Pavel Roskin's change in autoconf.
66856
66857 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
66858
66859         * lib/config.charset: Update for FreeBSD 4.2.
66860
66861 2001-01-27  Jim Meyering  <meyering@lucent.com>
66862
66863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
66864         a use of AS_IF.
66865         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66866
66867 2001-01-26  Jim Meyering  <meyering@lucent.com>
66868
66869         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
66870         quotearg.c includes it.
66871
66872 2001-01-26  Jim Meyering  <meyering@lucent.com>
66873
66874         * lib/quotearg.c: Include stddef.h.
66875         * lib/quote.c: Include stddef.h.
66876         Reported by Axel Kittenberger.
66877
66878         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
66879         line in double quotes so that it evokes a better diagnostic.
66880         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
66881         Reported by Axel Kittenberger.
66882
66883 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
66884
66885         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
66886         as if it was a `charset'.
66887
66888 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66889
66890         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
66891         has const.
66892
66893 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66894
66895         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
66896         to avoid a warning.  Add back 'const' to inptr.
66897
66898 2001-01-20  Jim Meyering  <meyering@lucent.com>
66899
66900         Be sure that headers are checked before used in code compiled
66901         for the type checks.
66902         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
66903         In place of that, invoke jm_CHECK_ALL_TYPES.
66904         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
66905         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
66906         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
66907         The check for ssize_t was mistakenly run before the test for unistd.h.
66908
66909         The configure-time check for stdbool.h was missing.
66910         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
66911         (jm_PREREQ_HASH): New function.
66912
66913 2001-01-17  Jim Meyering  <meyering@lucent.com>
66914
66915         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
66916         for autoconf-2.49c.
66917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
66918
66919 2001-01-16  Jim Meyering  <meyering@lucent.com>
66920
66921         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
66922         From Bruno Haible.
66923
66924 2001-01-14  Jim Meyering  <meyering@lucent.com>
66925
66926         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
66927         foo and bar.  Create conftestdir/ in the script, not in the C code.
66928         Remove directories in the script, not in the C code.
66929         Remove conftestdir{,2} before trying to create the directory.
66930         Make the entire configure script fail if the mkdir fails.
66931
66932 2001-01-14  Jim Meyering  <meyering@lucent.com>
66933
66934         * lib/rename.c: New file.  From Volker Borchert.
66935         Include stdlib.h, string.h or strings.h, and xalloc.h.
66936         Use strip_trailing_slashes rather than open-coding it.
66937
66938 2001-01-03  Paul Eggert  <eggert@twinsun.com>
66939
66940         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
66941
66942 2001-01-03  Jim Meyering  <meyering@lucent.com>
66943
66944         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
66945         of local `inptr' to avoid warning with some system declarations of
66946         iconv.
66947
66948 2001-01-02  Volker Borchert  <bt@teknon.de>
66949
66950         * m4/rename.m4: New file.
66951         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
66952
66953 2001-01-01  Jim Meyering  <meyering@lucent.com>
66954
66955         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
66956         even on systems with utmpx.h.  It's necessary for the declaration of
66957         utmp's ut_user member.  Reported by Andreas Jaeger.
66958
66959         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
66960         available. They are required for the declarations of getgrgid and
66961         getpwuid resp.
66962         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
66963         Reported by Andreas Jaeger.
66964
66965 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66966
66967         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66968         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66969         so `make install' also works in VPATH builds.
66970
66971 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66972
66973         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66974         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66975         can be used in subdirectories.
66976
66977 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66978
66979         * lib/modechange.c: Do not assume that mode_t uses the
66980         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66981         the other-execute bit of FOO even if S_IXOTH != 1.
66982
66983         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66984         WOTH, XOTH, ALLM): New macros.
66985         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66986          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66987         Use them.
66988         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66989         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66990         (mode_compile):
66991         No need to use uintmax_t; unsigned long is long enough.
66992         Don't bother to get suffix since we don't use it.
66993
66994 2000-12-26  Jim Meyering  <meyering@lucent.com>
66995
66996         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66997         better with autoheader.
66998
66999 2000-12-24  Jim Meyering  <meyering@lucent.com>
67000
67001         * lib/hash.c (is_prime): Return explicit boolean values.
67002         (hash_get_first): Return NULL to appease Irix5.6's 89.
67003         Reported by Nelson Beebe.
67004
67005 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67006
67007         * lib/localcharset.c (locale_charset): Add support for Win32.
67008
67009 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67010
67011         * lib/physmem.h, lib/physmem.c: New files.
67012
67013         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67014         (noinst_HEADERS): Add physmem.h.
67015
67016         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67017         't' for compatibility with Solaris 8 sort.
67018
67019 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67020
67021         * lib/config.charset: Add support for BeOS.
67022
67023 2000-12-17  Jim Meyering  <meyering@lucent.com>
67024
67025         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67026         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67027
67028 2000-12-16  Jim Meyering  <meyering@lucent.com>
67029
67030         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67031         N and M) would have treated it like `chown N:N FILE'.
67032
67033         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67034
67035 2000-12-16  Jim Meyering  <meyering@lucent.com>
67036
67037         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67038         SHELLS_FILE to a file name that's useful on djgpp systems.
67039         Include stdlib.h.
67040         (ADDITIONAL_DEFAULT_SHELLS): Define.
67041         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67042         Based mostly on a patch from Prashant TR.
67043
67044 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67045
67046         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67047         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67048         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67049
67050 2000-12-08  Andreas Schwab  <schwab@suse.de>
67051
67052         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67053         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67054
67055 2000-12-07  Jim Meyering  <meyering@lucent.com>
67056
67057         * lib/stripslash.c (ISSLASH): Define.
67058         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67059         `/'.
67060         From Prashant TR.
67061
67062         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67063         (dir_name_r): Declare this function as static.
67064         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67065         manifest itself on a name containing a mix of slashes and
67066         backslashes.
67067         Make this function work with names starting with a DOS-style
67068         drive letter and colon prefix.
67069         (dir_name): Append `.' if necessary.
67070         Based mostly on patches from Prashant TR and Eli Zaretskii.
67071
67072         * lib/dirname.h (dir_name_r): Remove prototype.
67073
67074 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67075
67076         * m4/off_t-format.m4: Remove this file.
67077         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67078
67079 2000-12-06  Jim Meyering  <meyering@lucent.com>
67080
67081         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67082         replacement strtoull, we may well need the replacement strtoul, too.
67083         Check for declarations of strtoul and strtoull.
67084         Check for strtol.  Mainly as a cue to cause automake to include
67085         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67086         Check for limits.h -- strtol.c needs it.
67087
67088 2000-12-05  Jim Meyering  <meyering@lucent.com>
67089
67090         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67091
67092 2000-12-04  Jim Meyering  <meyering@lucent.com>
67093
67094         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67095         Also include memory.h, stdlib.h, unistd.h if appropriate.
67096         Reported by Andreas Jaeger (conflicting declaration of malloc).
67097
67098 2000-12-02  Jim Meyering  <meyering@lucent.com>
67099
67100         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67101         * m4/jm-macros.m4 (jm_MACROS): require it.
67102
67103 2000-12-02  Jim Meyering  <meyering@lucent.com>
67104
67105         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67106
67107 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67108
67109         * lib/memrchr.c: Include <config.h> before any system include file.
67110
67111 2000-11-30  Jim Meyering  <meyering@lucent.com>
67112
67113         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67114
67115 2000-11-30  Jim Meyering  <meyering@lucent.com>
67116
67117         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67118
67119 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67120
67121         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67122
67123 2000-11-26  Jim Meyering  <meyering@lucent.com>
67124
67125         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67126
67127 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67128
67129         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67130         size of (size_t) -1; it's not portable.
67131
67132 2000-11-17  Jim Meyering  <meyering@lucent.com>
67133
67134         * lib/strstr.c: Update from GNU libc.
67135
67136 2000-11-17  Akim Demaille  <akim@epita.fr>
67137
67138         * lib/obstack.h: Formatting changes.
67139         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67140         prevent type checking.
67141         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67142         cast the value to (void *): assigning a `foo *' to a `void *'
67143         variable is valid.
67144         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67145
67146 2000-11-16  Jim Meyering  <meyering@lucent.com>
67147
67148         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67149
67150 2000-11-11  Jim Meyering  <meyering@lucent.com>
67151
67152         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67153
67154 2000-11-10  Jim Meyering  <meyering@lucent.com>
67155
67156         * lib/obstack.h: Update from GNU libc.
67157         * lib/obstack.c: Likewise.
67158
67159 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67160
67161         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67162
67163 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67164
67165         * lib/getusershell.c (setusershell): Use rewind rather than
67166         fseek/fseeko, to avoid configuration hassles with fseeko.
67167         Don't bother opening SHELLS_FILE if shellstream is NULL;
67168         it's not necessary.
67169
67170 2000-11-05  Jim Meyering  <meyering@lucent.com>
67171
67172         * lib/makepath.h (make_dir): Declare.
67173         * lib/makepath.c (make_dir): Remove `static' attribute.
67174         Tweak a comment.
67175
67176 2000-11-04  Jim Meyering  <meyering@lucent.com>
67177
67178         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67179
67180 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67181
67182         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67183         last one in a bucket, advance to the next bucket.
67184
67185 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67186
67187         * lib/fnmatch.c: Do not comment out all the code if we are using
67188         the GNU C library, because in some cases we are replacing buggy
67189         code in the GNU C library itself.
67190
67191 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67192
67193         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67194         (regex_compile): Catch bogus \(\1\).
67195
67196 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67197
67198         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67199         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67200         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67201
67202 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67203
67204         * lib/error.h, getline.h, modechange.h:
67205         Remove "2000" from Copyright line, as the file hasn't been
67206         changed this year other than in the copyright notice.
67207
67208         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67209         was changed this year.
67210
67211 2000-10-29  Jim Meyering  <meyering@lucent.com>
67212
67213         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67214         renaming.
67215         * m4/ls-mntd-fs.m4: Likewise
67216
67217 2000-10-29  Jim Meyering  <meyering@lucent.com>
67218
67219         * lib/xstat.in: Fix grammar in comment.
67220
67221 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67222
67223         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67224         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67225         doesn't define __restrict_arr.
67226
67227 2000-10-28  Jim Meyering  <meyering@lucent.com>
67228
67229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67230         (jm_PREREQ_MEMCHR): New function.
67231
67232 2000-10-28  Jim Meyering  <meyering@lucent.com>
67233
67234         * lib/memchr.c: Update from libc.
67235         Adjust for portability:
67236         [HAVE_STDLIB_H]: Include stdlib.h.
67237         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67238         Undef __memchr, too.
67239         [!weak_alias]: Define __memchr to memchr.
67240
67241         * lib/regex.c: Update from libc.
67242         * lib/regex.h: Likewise.
67243         * lib/getopt1.c: Likewise.
67244         * lib/memcmp.c: Likewise.
67245
67246         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67247         Avoid using fseek, when possible -- it's broken by design.
67248         Patch by Ulrich Drepper.
67249
67250 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67251
67252         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67253         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67254         Giving in to popular pressure to shut up the compiler with casts.
67255
67256 2000-10-26  Jim Meyering  <meyering@lucent.com>
67257
67258         * lib/strftime.c: Update from libc.
67259
67260 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67261
67262         * regex.c: More `unsigned char' -> `re_char' changes.
67263         Also change several `int' into `re_wchar_t'.
67264         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67265         (PUSH_FAILURE_POINTER): Don't cast any more.
67266         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67267         We want GCC to complain, since this piece of code makes
67268         re_match non-reentrant, which *should* be fixed.
67269         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67270         (EXTEND_BUFFER): Use RETALLOC.
67271         (SET_LIST_BIT): Don't cast.
67272         (re_wchar_t): New type.
67273         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67274         that those two functions will always properly return.
67275         (IMMEDIATE_QUIT_CHECK): Cast to void.
67276         (analyse_first): Use recursion rather than an explicit stack.
67277         (re_compile_fastmap): Can't fail anymore.
67278         (re_search_2): Don't check re_compile_fastmap for failure.
67279         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67280         Now also sets the new value (passed in a new argument).
67281         (re_match_2_internal): Use it.
67282         Also, use a new var `reg' of type size_t when looping through regs
67283         rather than reuse the inappropriate `mcnt'.
67284
67285 2000-10-25  Jim Meyering  <meyering@lucent.com>
67286
67287         * lib/obstack.c: Update from libc.
67288
67289 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67290
67291         * regex.c (regex_compile): Change the way of handling a range from
67292         a char less than 256 to a char not less than 256.
67293
67294 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67295
67296         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67297         NT-Emacs only.
67298         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67299         so that re_search functions only quit when callers expect them to.
67300
67301 2000-10-23  Jim Meyering  <meyering@lucent.com>
67302
67303         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67304         wrong.  That set_locale call must not have any side effects.
67305         From Paul Eggert.
67306
67307 2000-10-22  Jim Meyering  <meyering@lucent.com>
67308
67309         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67310         [CYCLIC]: Remove now-unused definition.
67311
67312         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67313         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67314         Suggestion from Ulrich Drepper.
67315
67316 2000-10-21  Jim Meyering  <meyering@lucent.com>
67317
67318         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67319         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67321
67322 2000-10-21  Jim Meyering  <meyering@lucent.com>
67323
67324         * lib/dirname.c (memrchr): Declare if necessary.
67325         (dir_name): Remove the restriction that there be no
67326         trailing slashes.  Now, this code skips past them, effectively
67327         ignoring them.
67328         [TEST_DIRNAME] (main): New unit tests.
67329
67330         * lib/memrchr.c: New file from GNU libc.
67331         Undef __memrchr, too.
67332         [!weak_alias]: Define __memrchr to memrchr.
67333         Guard weak_alias use with `#ifdef weak_alias'.
67334
67335 2000-10-21  Jim Meyering  <meyering@lucent.com>
67336
67337         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67338         (dir_name): Use dir_name_r.
67339         * lib/dirname.h (dir_name_r): Declare it.
67340
67341 2000-10-17  Jim Meyering  <meyering@lucent.com>
67342
67343         * lib/quote.h (PARAMS): Define and use.
67344         Reported by Akim Demaille.
67345
67346         * lib/getopt.c: Update from libc.
67347
67348 2000-10-16  Jim Meyering  <meyering@lucent.com>
67349
67350         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67351         setlocale.
67352         From Jan Fedak.
67353
67354 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67355
67356         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67357
67358 2000-09-25  Jim Meyering  <meyering@lucent.com>
67359
67360         * lib/md5.h (rol): Define (from GnuPG).
67361
67362         * lib/sha.c: Give credit (GnuPG) where due.
67363         (M): Use rol rather than open-coding it.
67364         Add a FIXME comment.
67365
67366 2000-09-21  Jim Meyering  <meyering@lucent.com>
67367
67368         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67369         Reported by Michael Stone.
67370
67371 2000-09-20  Jim Meyering  <meyering@lucent.com>
67372
67373         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67374         (noinst_HEADERS): Add sha.h.
67375         Based on code from Scott G. Miller and from GnuPG.
67376
67377 2000-09-18  Jim Meyering  <meyering@lucent.com>
67378
67379         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67380         LIBS. Otherwise, everyone ends up linking with -lelf for some
67381         configurations.
67382         Reported by Mike Stone.
67383
67384 2000-09-15  Jim Meyering  <meyering@lucent.com>
67385
67386         * lib/regex.c: Update from libc.
67387
67388 2000-09-10  Jim Meyering  <meyering@lucent.com>
67389
67390         * lib/getopt.c (_getopt_internal): Update from glibc.
67391
67392 2000-09-09  Jim Meyering  <meyering@lucent.com>
67393
67394         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67395         think it should be used as a general replacement for isascii.
67396         * lib/fnmatch.c: Likewise.
67397         * lib/mbswidth.c: Likewise
67398         * lib/regex.c: Likewise.
67399
67400         Don't use atoi.
67401         * lib/userspec.c: Include sys/param.h and limits.h.
67402         Include xstrtol.h.
67403         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67404         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
67405         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
67406         UID, GID.  Check range.
67407
67408 2000-09-06  Jim Meyering  <meyering@lucent.com>
67409
67410         * lib/getopt.c (_getopt_internal): Update from glibc.
67411
67412 2000-08-30  Jim Meyering  <meyering@lucent.com>
67413
67414         * lib/strftime.c: Merge in changes from GNU libc.
67415
67416 2000-08-26  Jim Meyering  <meyering@lucent.com>
67417
67418         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
67419         * m4/fpending.m4: New file.
67420
67421 2000-08-26  Jim Meyering  <meyering@lucent.com>
67422
67423         * lib/closeout.c: Include "__fpending.h".
67424         (close_stdout_status): Return right away if there's nothing to flush.
67425
67426         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
67427         * lib/__fpending.c: New file.
67428         * lib/__fpending.h: New file.
67429
67430 2000-08-20  Jim Meyering  <meyering@lucent.com>
67431
67432         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
67433         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
67434         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
67435
67436 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
67437
67438         Improve fileutils installation on systems where running
67439         programs (like install) can't be unlinked.
67440         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
67441         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
67442
67443 2000-08-07  Paul Eggert  <eggert@twinsun.com>
67444
67445         Standardize on "memory exhausted" instead of "Memory exhausted"
67446         or "virtual memory exhausted".
67447         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
67448         "virtual memory exhausted".
67449         * lib/same.c (same_name): Invoke xalloc_die instead of printing
67450         our own message.
67451         * lib/userspec.c (parse_user_spec): Likewise.
67452         * lib/bumpalloc.h: comment fix
67453         * lib/same.c, userspec.c: Include xalloc.h.
67454
67455         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
67456         not char *const and pointing to a constant array.
67457         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
67458         (xrealloc): Comment fix.
67459
67460         * lib/userspec.c (parse_user_spec):
67461         Don't translate a message until just before returning,
67462         to avoid unnecessary translation.
67463
67464 2000-08-07  Jim Meyering  <meyering@lucent.com>
67465
67466         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
67467         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
67468         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
67469         getgroups.c, gethostname.c, getopt.h, group-member.c,
67470         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
67471         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
67472         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
67473         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
67474         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
67475         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
67476         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
67477         yesno.c: Back out Copyright date changes for each file with no change
67478         this year.  This eases coordination with other programs using the same
67479         source code modules.  From Paul Eggert.
67480
67481 2000-08-06  Paul Eggert  <eggert@twinsun.com>
67482
67483         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
67484         not char, for compatibility with glibc 2.1.3 strftime.c.
67485
67486 2000-08-03  Greg McGary  <greg@mcgary.org>
67487
67488         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
67489         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
67490         (EXTEND_BUFFER): Use them.
67491
67492 2000-08-01  Jim Meyering  <meyering@lucent.com>
67493
67494         * lib/dirname.c (ISSLASH): Define.
67495         (BACKSLASH_IS_PATH_SEPARATOR): Define.
67496         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
67497         both `\' and `/' may be use as path separators.
67498         Based on a patch from Prashant TR.
67499
67500 2000-07-31  Paul Eggert  <eggert@twinsun.com>
67501
67502         * lib/quotearg.c (quotearg_n_options): Don't make the initial
67503         slot vector a constant, since it might get modified.
67504
67505 2000-07-31  Jim Meyering  <meyering@lucent.com>
67506
67507         * lib/xmalloc.c: Use `virtual memory exhausted', not
67508         `Memory exhausted'.
67509         * lib/obstack.c (print_and_abort): Likewise.
67510
67511 2000-07-30  Paul Eggert  <eggert@twinsun.com>
67512
67513         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
67514         buffer, so that the caller can always quote one small
67515         component of a "memory exhausted" message in slot 0.
67516         From a suggestion by Jim Meyering.
67517
67518 2000-07-30  Jim Meyering  <meyering@lucent.com>
67519
67520         * lib/makepath.c (make_path): Quote the other instance, too.
67521
67522         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
67523         (STATIC_BUF_SIZE): Define.
67524         (quotearg_n_options): Use only statically allocated storage when
67525         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
67526         than STATIC_BUF_SIZE.
67527
67528 2000-07-29  Jim Meyering  <meyering@lucent.com>
67529
67530         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
67531         * lib/dirname.c (dir_name): Likewise.
67532
67533         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
67534         `/'.
67535
67536         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
67537         (dir_name): Assert that there are no trailing slashes.
67538
67539 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
67540
67541         * lib/mbswidth.h (mbswidth): Add a flags argument.
67542         (mbswidth): New declaration.
67543         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
67544         * lib/mbswidth.c (mbswidth): Add a flags argument.
67545         (mbsnwidth): New function.
67546
67547 2000-07-24  Jim Meyering  <meyering@lucent.com>
67548
67549         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
67550
67551 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67552
67553         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
67554
67555 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67556
67557         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
67558         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
67559         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
67560         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
67561         invoke multibyte primitives.
67562
67563 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67564
67565         * lib/quotearg.c:
67566         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
67567         so that mbstate_t is always defined.
67568
67569         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
67570         be 1 in at least one GCC installation, and this configuration
67571         error is likely to be common.  Ignoring MB_LEN_MAX hurts
67572         performance on hosts that have mbrtowc but have only unibyte
67573         locales, but I assume these hosts are rare.
67574
67575 2000-07-23  Paul Eggert  <eggert@twinsun.com>
67576
67577         * lib/mbswidth.c (_XOPEN_SOURCE):
67578         Don't define; this causes problems on Solaris 7.
67579         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
67580
67581 2000-07-23  Jim Meyering  <meyering@lucent.com>
67582
67583         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
67584         too: getgrgid, getpwuid, getuid.
67585
67586 2000-07-23  Jim Meyering  <meyering@lucent.com>
67587
67588         * lib/basename.c (base_name): Add an assertion.
67589
67590 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
67591
67592         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
67593         shadow its mbsinit function.
67594
67595 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67596
67597         * lib/mbswidth.h: New file.
67598         * lib/mbswidth.c: New file.
67599         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
67600         (noinst_HEADERS): Add mbswidth.h.
67601
67602 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
67603
67604         * lib/config.charset: Add support for FreeBSD. Improve support for
67605         HP-UX and IRIX 6.
67606
67607 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
67608
67609         * m4/mbswidth.m4: New file.
67610         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
67611
67612 2000-07-15  Jim Meyering  <meyering@lucent.com>
67613
67614         * lib/makepath.c: Include quote.h.
67615         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
67616         corresponding argument in a `quote (...)' call.
67617         Give better diagnostics.
67618
67619         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
67620         (noinst_HEADERS): Add quote.h.
67621
67622         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
67623         from tar's src/misc.c.
67624         * lib/quote.h: New file.  Prototypes for same.
67625
67626 2000-07-14  Paul Eggert  <eggert@twinsun.com>
67627
67628         From a suggestion by Bruno Haible.
67629         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
67630         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
67631         to decide whether to define the BeOS workaround macro;
67632         this adjusts to the change to AC_MBSTATE_T.
67633
67634 2000-07-14  Jim Meyering  <meyering@lucent.com>
67635
67636         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
67637         jm_AC_TYPE_UINTMAX_T.
67638
67639 2000-07-13  Paul Eggert  <eggert@twinsun.com>
67640
67641         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
67642
67643         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
67644         quotearg_buffer_restyled): Add support for
67645         clocale_quoting_style.  Undo previous change to
67646         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
67647         and "{RIGHT QUOTATION MARK}" msgids.
67648
67649 2000-07-10  Paul Eggert  <eggert@twinsun.com>
67650
67651         From a suggestion by Bruno Haible.
67652         * m4/mbstate_t.m4 (AC_MBSTATE_T):
67653         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
67654         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
67655         and mbstate_t, to a single-part test that simply defines mbstate_t.
67656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
67657         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
67658
67659 2000-07-10  Jim Meyering  <meyering@lucent.com>
67660
67661         * m4/strerror_r.m4: Mirror the correction made in autoconf.
67662
67663         * m4/gnu-source.m4: Output to confdefs.h directly.
67664         Suggestion from Akim Demaille.
67665
67666 2000-07-09  Paul Eggert  <eggert@twinsun.com>
67667
67668         The old behavior of quoting `like this' doesn't look good with
67669         newer, ISO-style fonts.  See:
67670         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
67671
67672         Instead, quote "like this" by default.  Let the translator
67673         tailor the locale-specific quoting behavior by providing
67674         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
67675
67676         * lib/quotearg.c (N_): New macro.
67677         (gettext_default): New function.
67678         (quotearg_buffer_restyled): Use
67679         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
67680         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
67681
67682 2000-07-09  Jim Meyering  <meyering@lucent.com>
67683
67684         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
67685         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
67686
67687         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
67688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
67689
67690 2000-07-09  Jim Meyering  <meyering@lucent.com>
67691
67692         * lib/Most files: Update copyright dates to include 2000.
67693
67694 2000-07-08  Jim Meyering  <meyering@lucent.com>
67695
67696         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
67697         if not defined.
67698         (xgethostname): Remove now-unnecessary #ifdef.
67699         Move declaration of `err' into loop where it's used.
67700
67701 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67702         and Bruno Haible  <haible@clisp.cons.org>
67703
67704         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
67705         only if the test for an object-type mbstate_t fails.  This
67706         prevents us from mistakenly reporting that mbstate_t is a
67707         system object type after we "#define mbstate_t int" to work
67708         around its lack.
67709
67710 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67711         and Bruno Haible  <haible@clisp.cons.org>
67712
67713         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
67714
67715 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67716
67717         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
67718         to strerror_r.
67719         Include <ctype.h> for use of isalpha.
67720
67721 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67722
67723         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
67724         by allocating a larger buffer. Test the gethostname return value for
67725         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
67726         returns an error and ENAMETOOLONG isn't defined.
67727
67728 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67729
67730         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
67731         dimension.
67732
67733 2000-07-04  Jim Meyering  <meyering@lucent.com>
67734
67735         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
67736         of the deprecated AC_CHECKING.
67737
67738 2000-07-04  Jim Meyering  <meyering@lucent.com>
67739
67740         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
67741         Reported by Bruno Haible.
67742
67743 2000-07-04  Jim Meyering  <meyering@lucent.com>
67744
67745         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
67746         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
67747         lacks mbrtowc.
67748
67749 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67750
67751         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
67752         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
67753
67754 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67755         and Bruno Haible  <haible@clisp.cons.org>
67756
67757         * lib/quotearg.c (mbrtowc):
67758         Assign to *pwc, and return 1 only if result is nonzero.
67759         (iswprint): Use ISPRINT when substituting our own mbrtowc.
67760
67761 2000-07-03  Jim Meyering  <meyering@lucent.com>
67762
67763         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
67764
67765 2000-07-03  Jim Meyering  <meyering@lucent.com>
67766
67767         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
67768         This is necessary to get a definition of e.g., UTMP_FILE on
67769         HP-UX 10.20.
67770         From Bob Proulx.
67771
67772 2000-07-02  Jim Meyering  <meyering@lucent.com>
67773
67774         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
67775
67776         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
67777         AC_LIBOBJ(function_name).
67778         * m4/chown.m4: Likewise.
67779         * m4/fnmatch.m4: Likewise.
67780         * m4/ftruncate.m4: Likewise.
67781         * m4/getgroups.m4: Likewise.
67782         * m4/getline.m4: Likewise.
67783         * m4/group-member.m4: Likewise.
67784         * m4/jm-macros.m4: Likewise.
67785         * m4/lstat.m4: Likewise.
67786         * m4/malloc.m4: Likewise.
67787         * m4/memcmp.m4: Likewise.
67788         * m4/nanosleep.m4: Likewise.
67789         * m4/putenv.m4: Likewise.
67790         * m4/realloc.m4: Likewise.
67791         * m4/regex.m4: Likewise.
67792         * m4/stat.m4: Likewise.
67793         * m4/strftime.m4: Likewise.
67794
67795 2000-07-02  Jim Meyering  <meyering@lucent.com>
67796
67797         * lib/quotearg.c (mbstate_t): Don't define here.
67798
67799 2000-07-02  Jim Meyering  <meyering@lucent.com>
67800
67801         * lib/nanosleep.c (SIGCONT): Define if not already defined.
67802
67803 2000-07-01  Jim Meyering  <meyering@lucent.com>
67804
67805         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
67806
67807 2000-07-01  Jim Meyering  <meyering@lucent.com>
67808
67809         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
67810         problem.
67811
67812 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67813
67814         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
67815         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
67816
67817 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67818
67819         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
67820         per change in ../m4/ls-mntd-fs.m4.
67821         (read_filesystem_list): Ignore symbolic links.
67822
67823 2000-06-29  Jim Meyering  <meyering@lucent.com>
67824
67825         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
67826         for declaration of strcmp.
67827
67828         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
67829
67830         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
67831         Avoid warning by casting result to `char *' to remove `const'.
67832
67833 2000-06-28  Jim Meyering  <meyering@lucent.com>
67834
67835         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
67836         included by quotearg.c, for which we perform this test.  From
67837         Bruno Haible.
67838
67839 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67840
67841         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
67842         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
67843         <utmpx.h> exists, put readutmp.o into LIBOBJS.
67844
67845 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67846
67847         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
67848
67849 2000-06-26  Paul Eggert  <eggert@twinsun.com>
67850
67851         savedir now sets errno on failure and invokes xmalloc to get memory.
67852         Fix a couple of other minor bugs while we're at it.
67853
67854         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
67855         (NAMLEN): Remove macro.
67856         (malloc, realloc): Remove decls.
67857         (stpcpy): Likewise.
67858         ("xalloc.h"): Include.
67859         (NAME_SIZE_DEFAULT): New macro.
67860         (savedir): Use xmalloc / xrealloc to allocate memory.
67861         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
67862         Skip "" directory entries.
67863         Use strlen to calculate directory entry length, since the old method
67864         is rarely used these days and isn't worth supporting.
67865         Don't use a pointer after freeing it.
67866         Check for integer overflow when calculating allocation size.
67867         Use memcpy to copy entries, instead of stpcpy.
67868         Set errno properly when returning NULL.
67869         Check for readdir error.
67870
67871 2000-06-26  Jim Meyering  <meyering@lucent.com>
67872
67873         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
67874
67875 2000-06-25  Jim Meyering  <meyering@lucent.com>
67876
67877         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
67878         Linux header bug when _XOPEN_SOURCE is defined to 500.
67879
67880 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67881
67882         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
67883         deficiency.
67884
67885 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67886
67887         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
67888         Include xalloc.h.
67889         Don't include <stdlib.h>.  Don't declare malloc, realloc.
67890
67891 2000-06-24  Jim Meyering  <meyering@lucent.com>
67892
67893         * m4/strerror_r.m4: Revive this file -- to try out an experimental
67894         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
67895         for which strerror does return char*, but which lacks a conveniently
67896         accessible declaration of the function.  If the compile-test says
67897         strerror_r doesn't work, then resort to a `run'-test that works on
67898         BeOS and segfaults on DEC Unix.
67899
67900 2000-06-24  Jim Meyering  <meyering@lucent.com>
67901
67902         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
67903
67904 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67905
67906         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
67907         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
67908
67909 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67910
67911         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
67912         (mbrtowc, mbstate_t): Define substitutes if
67913         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
67914         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
67915         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
67916
67917 2000-06-23  Jim Meyering  <meyering@lucent.com>
67918
67919         * m4/afs.m4: Add missing AC_MSG_RESULT.
67920         Reported by Bruno Haible.
67921
67922         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
67923         Suggestion from Bruno Haible.
67924
67925 2000-06-23  Jim Meyering  <meyering@lucent.com>
67926
67927         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
67928
67929 2000-06-21  Jim Meyering  <meyering@lucent.com>
67930
67931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
67932
67933 2000-06-21  Jim Meyering  <meyering@lucent.com>
67934
67935         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
67936         (noinst_HEADERS): Add getstr.h.
67937
67938         * lib/getline.c (getstr): Move into a separate file.
67939         * lib/getstr.c (getstr): New file, extracted from getline.c, with
67940         the following changes: new parameter, delim2; both delim[12]
67941         parameters have type `int', not `char'.  The latter would lose
67942         with 8-bit delimiters.
67943         * lib/getstr.h: New file.
67944
67945 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67946
67947         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
67948         than 1024, return a memory chunk of least possible size, instead
67949         of size PATH_MAX + 2. In the loop, increment the size proportionally.
67950         Use free/xmalloc instead of xrealloc to avoid copying for very long
67951         paths.
67952
67953 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67954
67955         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
67956         the empty string.
67957
67958 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67959
67960         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
67961         address, not strdup.  Include <stdlib.h> and don't declare free().
67962
67963 2000-06-19  Jim Meyering  <meyering@lucent.com>
67964
67965         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67966
67967 2000-06-18  Jim Meyering  <meyering@lucent.com>
67968
67969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67970
67971         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67972         `checking whether...' message to be consistent with that of the
67973         lstat test.
67974
67975 2000-06-18  Jim Meyering  <meyering@lucent.com>
67976
67977         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67978         Besides, these days every porting target provides a mkdir function.
67979
67980         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67981         needed. (this snippet comes from src/system.h).
67982
67983 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67984
67985         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67986
67987 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67988
67989         * lib/human.c (adjust_value): New function.
67990         (human_readable_inexact): Apply rounding style even when
67991         printing approximate values.
67992
67993 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67994
67995         * lib/human.c (human_readable_inexact): Allow an input block
67996         size that is not a multiple of the output block size, and vice versa.
67997         Reported by Piergiorgio Sartor.
67998
67999 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68000
68001         * lib/getdate.y (get_date): Apply relative times after time
68002         zone indicator, not before.  Reported by Todd A. Jacobs.
68003
68004 2000-06-13  Jim Meyering  <meyering@lucent.com>
68005
68006         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68007
68008         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68009
68010 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68011
68012         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68013
68014 2000-06-12  Jim Meyering  <meyering@lucent.com>
68015
68016         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68017         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68018         optional argument.
68019         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68020         the optional argument, `lib'.
68021
68022 2000-06-08  Jim Meyering  <meyering@lucent.com>
68023
68024         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68025
68026 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68027
68028         Rewrite largefile configuration so that we don't need to run
68029         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68030         AC_CANONICAL_HOST in configure.in -- jmm]
68031
68032         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68033         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68034         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68035         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68036         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68037         All uses changed.
68038         Instead of inspecting the output of getconf, try to compile the
68039         test program without and with the macro definition.
68040         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68041         for getconf.  Instead, check for the needed flags by compiling
68042         test programs.
68043
68044 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68045
68046         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68047
68048 2000-06-04  Jim Meyering  <meyering@lucent.com>
68049
68050         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68051         SunOS 4.1.4 for which gid_t is an unsigned type.
68052
68053 2000-06-03  Jim Meyering  <meyering@lucent.com>
68054
68055         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68056         now that autoconf requires that.
68057
68058         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68059         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68060         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68061
68062 2000-06-03  Jim Meyering  <meyering@lucent.com>
68063
68064         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68065
68066 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68067
68068         * m4/glibc21.m4: New file.
68069         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68070
68071 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68072
68073         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68074         newer, don't install charset.alias.
68075         * lib/config.charset: Change the Linux/glibc rules so they become empty
68076         on glibc-2.1 or newer.
68077
68078 2000-06-02  Jim Meyering  <meyering@lucent.com>
68079
68080         * lib/mountlist.c: Back out last change.  Instead, do this...
68081         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68082         me_dummy member using the same `ignore'-testing code.
68083         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68084         fs_type strings.
68085         From Mark D. Roth.
68086
68087 2000-05-29  Jim Meyering  <meyering@lucent.com>
68088
68089         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68090         mounts with the `ignore' attribute.  Based on a patch from
68091         Mark D. Roth.
68092
68093 2000-05-28  Jim Meyering  <meyering@lucent.com>
68094
68095         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68096         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68097         * m4/stat.m4: Likewise.
68098         * m4/lstat.m4: Likewise.
68099         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68100
68101         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68102         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68103
68104 2000-05-26  Jim Meyering  <meyering@lucent.com>
68105
68106         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68107
68108 2000-05-24  Jim Meyering  <meyering@lucent.com>
68109
68110         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68111         autoconf requires that.
68112         * m4/lib-check.m4: Likewise.
68113         * m4/jm-macros.m4: Likewise.
68114         * m4/strftime.m4: Likewise.
68115
68116         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68117         AC_CHECK_DECLS, now that autoconf requires that.
68118
68119 2000-05-22  Jim Meyering  <meyering@lucent.com>
68120
68121         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68122         * m4/lstat.m4: Likewise.
68123
68124 2000-05-22  Jim Meyering  <meyering@lucent.com>
68125
68126         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68127
68128 2000-05-20  Jim Meyering  <meyering@lucent.com>
68129
68130         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68131         (jm_PREREQ): Use it.
68132
68133 2000-05-18  Jim Meyering  <meyering@lucent.com>
68134
68135         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68136         back, too, since it may have been modified by allocate_entry.
68137         (hash_delete): Rewrite to use neither the assignment operator
68138         nor the comma operator in an if-expression.
68139
68140 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68141
68142         * lib/closeout.c:
68143         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68144         Remove; no longer needed.
68145         "quotearg.h": Add include.
68146         (file_name): Do not bother to explicitly initialize to NULL; it's less
68147         efficient on some hosts.
68148         (close_stdout_status): Remove test as to whether stdout was already
68149         closed; it breaks for the case "echo x | sort >&-".
68150         Quote file name colons.
68151         Do not assume that _("write error") lacks format strings.
68152
68153 2000-05-15  Jim Meyering  <meyering@lucent.com>
68154
68155         * lib/version-etc.c (version_etc_copyright): Update the copyright
68156         string used in all --version output.
68157
68158 2000-05-14  Jim Meyering  <meyering@lucent.com>
68159
68160         * lib/closeout.c (close_stdout_set_file_name): New function.
68161         (close_stdout_status): Use new file-scoped global.
68162         Return right away if fstat says the stdout file descriptor is invalid.
68163         * lib/closeout.h (close_stdout_set_file_name): Declare.
68164
68165 2000-05-10  Jim Meyering  <meyering@lucent.com>
68166
68167         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68168         (close_stdout_set_status): New function.
68169         * lib/closeout.h (close_stdout_set_status): Declare.
68170
68171 2000-05-09  Jim Meyering  <meyering@lucent.com>
68172
68173         * m4/gettext.m4: Rename this...
68174         * m4/libintl.m4: ...to this.
68175
68176 2000-05-08  Jim Meyering  <meyering@lucent.com>
68177
68178         * lib/long-options.c: Don't include closeout.h.
68179         (parse_long_options): Don't call close_stdout for --version.
68180
68181 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68182
68183         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68184         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68185         2.1.3 bug.  This avoids a clash when files like regex.c define
68186         _GNU_SOURCE.
68187
68188 2000-05-06  Jim Meyering  <meyering@lucent.com>
68189
68190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68191         (AC_REPLACE_FUNCS): Add strnlen.
68192
68193         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68194         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68195
68196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68197         AC_SEARCH_LIBS call for nanosleep.
68198         (LIB_NANOSLEEP): Set and AC_SUBST.
68199
68200 2000-05-06  Jim Meyering  <meyering@lucent.com>
68201
68202         * lib/strnlen.c: Undefine __strnlen and strnlen.
68203         [!weak_alias]: Define __strnlen to strnlen.
68204
68205         * lib/atexit.c: New file, from libiberty.
68206
68207 2000-05-06  Jim Meyering  <meyering@lucent.com>
68208
68209         * lib/closeout.c (close_stdout_status): Also check for errors on the
68210         stderr stream.
68211
68212 2000-05-05  Jim Meyering  <meyering@lucent.com>
68213
68214         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68215         AC_SEARCH_LIBS call for clock_gettime.
68216         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68217
68218         * m4/search-libs.m4: Update from autoconf.
68219
68220         su doesn't work on Solaris 2.6.
68221         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68222         <shadow.h>.  Reported by Dragos Harabor.
68223
68224 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68225
68226         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68227         memcpy instead of xmalloc, xrealloc, path_concat.
68228         (locale_charset): Treat empty environment variables as absent.
68229         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68230
68231 2000-05-04  Jim Meyering  <meyering@lucent.com>
68232
68233         * lib/getopt.c: Update from glibc.
68234         * lib/obstack.c: Likewise.
68235         * lib/obstack.h: Likewise.
68236         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68237         file
68238
68239         * lib/regex.h: Likewise.
68240         * lib/strndup.c: Likewise.
68241         * lib/strnlen.c: New file, from glibc.
68242
68243 2000-05-03  Jim Meyering  <meyering@lucent.com>
68244
68245         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68246
68247 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68248
68249         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68250         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68251         compile-time test, rather than inspecting host and OS, to
68252         decide whether to define _LARGEFILE_SOURCE.
68253
68254 2000-05-01  Jim Meyering  <meyering@lucent.com>
68255
68256         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68257
68258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68259         Based on a patch from Bruno Haible.
68260
68261 2000-05-01  Jim Meyering  <meyering@lucent.com>
68262
68263         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68264
68265 2000-04-29  Jim Meyering  <meyering@lucent.com>
68266
68267         * lib/path-concat.c: Declare strdup only if it's not defined.
68268         * lib/canon-host.c: Likewise.
68269
68270 2000-04-28  Jim Meyering  <meyering@lucent.com>
68271
68272         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68273         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68274         is included first, then limits.h is included by locale.h by libintl.h.
68275         From John David Anglin.
68276
68277 2000-04-25  Jim Meyering  <meyering@lucent.com>
68278
68279         * lib/makepath.c (S_IRWXUGO): Define.
68280         (make_path): Always perform explicit chmod if MODE specifies any
68281         of the `special' permission bits.  Prompted by a bug report against
68282         install from Mate Wierdl and Joost van Baal.
68283
68284 2000-04-18  Jim Meyering  <meyering@lucent.com>
68285
68286         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68287         (jm_PREREQ): Use it.
68288
68289 2000-04-18  Jim Meyering  <meyering@lucent.com>
68290
68291         * lib/README: New file.
68292
68293         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68294         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68295
68296 2000-04-17  Jim Meyering  <meyering@lucent.com>
68297
68298         Get it right :-)
68299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68300         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68301         Suggestion from Akim Demaille.
68302
68303 2000-04-17  Jim Meyering  <meyering@lucent.com>
68304
68305         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68306         the definition of it to rpl_strftime also defined-away the system's
68307         declaration.
68308
68309 2000-04-15  Jim Meyering  <meyering@lucent.com>
68310
68311         Use `C' to denote so-called `contiguous' files, the same way
68312         that tar does.
68313         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68314         (ftypelet): Use S_ISCTG.
68315         From Michael Deutschmann.
68316
68317 2000-04-14  Jim Meyering  <meyering@lucent.com>
68318
68319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68320         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68321         clobbered.
68322
68323 2000-04-14  Jim Meyering  <meyering@lucent.com>
68324
68325         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68326
68327 2000-04-13  Jim Meyering  <meyering@lucent.com>
68328
68329         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68330         AH_VERBATIM to insert required #ifndef into config.h.in.
68331         Suggestion from Akim Demaille.
68332
68333 2000-04-12  Jim Meyering  <meyering@lucent.com>
68334
68335         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68336         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68337         Christian Krackowizer.
68338
68339         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68340         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68341         (AC_SYS_LARGEFILE): Require.
68342         (AM_C_PROTOTYPES): Require.
68343
68344 2000-04-08  Jim Meyering  <meyering@lucent.com>
68345
68346         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68347         names don't conflict.  Reported by Eli Zaretskii.
68348
68349 2000-04-07  Jim Meyering  <meyering@lucent.com>
68350
68351         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68352         sys/types.h, to work around system header problems on AIX 3.2.5.
68353         From Bruno Haible.
68354
68355 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68356
68357         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68358         bug.  Deal with the different error behavior of Irix iconv.
68359
68360 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68361
68362         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68363         IRIX if the installer said otherwise.
68364
68365 2000-04-05  Jim Meyering  <meyering@lucent.com>
68366
68367         Portability tweaks required for ultrix4.3.
68368         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68369         (jm_CHECK_DECLS): Add getutent to the list of functions.
68370         (_jm_DECL_HEADERS): Add utmpx.h.
68371         From John David Anglin.
68372
68373         * m4/strftime.m4: Back out the 2000-04-02 change.
68374         Instead of that change, simply undefine putenv in the test program.
68375
68376 2000-04-05  Jim Meyering  <meyering@lucent.com>
68377
68378         Portability tweaks required for ultrix4.3.
68379         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68380         getutent.
68381         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68382         * lib/canon-host.c: Declare strdup.
68383         * lib/path-concat.c: Likewise.
68384         From John David Anglin.
68385
68386 2000-04-04  Jim Meyering  <meyering@lucent.com>
68387
68388         Be more DOS 8.3-friendly.
68389         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68390         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68391         * lib/Makefile.am: Reflect renaming.
68392         Reported by Eli Zaretskii.
68393
68394         Use a temporary file name that won't clash with `charset.alias'
68395         in the DOS 8.3 name space.
68396         * lib/Makefile.am (charset_tmp): Define.
68397         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68398         (uninstall-local): Likewise.
68399         Reported by Eli Zaretskii.
68400
68401 2000-04-03  Jim Meyering  <meyering@lucent.com>
68402
68403         * m4/gettext.m4: Fix typo in comment.
68404
68405         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
68406         textutils/configure.in).  Suggestion from Paul Eggert.
68407         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
68408
68409 2000-04-02  Paul Eggert  <eggert@twinsun.com>
68410
68411         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
68412         variable in the shell rather than using putenv, which isn't
68413         portable.  This avoids the configure-time inter-test dependency
68414         on the potentially-renamed putenv function.
68415
68416 2000-03-30  Paul Eggert  <eggert@twinsun.com>
68417
68418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
68419         before checking struct stat.st_blksize, so that
68420         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
68421
68422 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68423
68424         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
68425         since strftime.c uses HAVE_STRFTIME to decide whether to use
68426         the underlying strftime.
68427
68428 2000-03-29  Paul Eggert  <eggert@twinsun.com>
68429
68430         * lib/time/strftime.c (my_strftime): Make sure we call the system
68431         strftime, not ourselves, when invoking the underlying strftime.
68432
68433 2000-03-24  Jim Meyering  <meyering@lucent.com>
68434
68435         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
68436         (charset_alias): Define.
68437         (install-exec-local): Factor out common code.
68438         (uninstall-local): Split lines longer than 80.
68439         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
68440         (SUFFIXES): Define.
68441         (.sed.in.sed): New rule.  Don't redirect directly to $@.
68442         (CLEANFILES): Add ref-add.sed and ref-del.sed.
68443
68444 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
68445
68446         * lib/config.charset: Output a line containing "Packages using this
68447         file".
68448         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
68449         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
68450         ref-del.sed): New rules.
68451
68452 2000-03-17  Jim Meyering  <meyering@lucent.com>
68453
68454         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
68455         Otherwise, include <strings.h>
68456
68457 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
68458
68459         * lib/unicodeio.c (utf8_wctomb): New function.
68460         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
68461         format instead of in UCS-4 with platform dependent endianness.
68462
68463 2000-03-10  Jim Meyering  <meyering@lucent.com>
68464
68465         * m4/lib-check.m4: Look for getspnam in -lgen, too.
68466         From Marco Franzen.
68467
68468 2000-03-07  Paul Eggert  <eggert@twinsun.com>
68469
68470         * lib/savedir.c (savedir): Work even if directory size is
68471         negative; this can happen with some screwy NFS configurations.
68472
68473 2000-03-06  Jim Meyering  <meyering@lucent.com>
68474
68475         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
68476         if it's NULL (because we ran out of memory).  From Bruno Haible.
68477
68478 2000-03-05  Jim Meyering  <meyering@lucent.com>
68479
68480         * lib/localcharset.c ("path-concat.h"): Include.
68481         (get_charset_aliases): Use path_concat instead of ANSI string
68482         concatenation.
68483
68484         * lib/unicodeio.h (PARAMS): Define.
68485         Use it to guard prototype.
68486
68487 2000-03-04  Jim Meyering  <meyering@lucent.com>
68488
68489         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
68490         for lib/localcharset.c.
68491
68492 2000-03-04  Jim Meyering  <meyering@lucent.com>
68493
68494         * lib/Makefile.am (install-exec-local): Create $(libdir) before
68495         installing into it.
68496         (uninstall-local): Uncomment this rule so `make distcheck' works
68497         once again.
68498
68499         * lib/unicodeio.c (<errno.h>): Include it.
68500         (errno): Declare if not defined.
68501
68502         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
68503
68504         * lib/config.charset: New version, incorporating remarks from a linux
68505         i18n mailing list.  From Bruno Haible.
68506
68507 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
68508
68509         * m4/codeset.m4: New file.
68510         * m4/iconv.m4: New file.
68511         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
68512
68513 2000-03-03  Jim Meyering  <meyering@lucent.com>
68514
68515         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
68516
68517 2000-03-02  Jim Meyering  <meyering@lucent.com>
68518
68519         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
68520         the messages come out on separate lines.
68521
68522         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
68523         rather than jm_CHECK_DECLARATIONS.
68524         * m4/decl.m4: Remove now-unused file.
68525
68526         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
68527         geteuid.
68528
68529 2000-03-02  Jim Meyering  <meyering@lucent.com>
68530
68531         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
68532
68533 2000-03-01  Jim Meyering  <meyering@lucent.com>
68534
68535         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
68536         * lib/unicodeio.c: Likewise.
68537
68538 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
68539
68540         * lib/config.charset: New file.
68541         * lib/localcharset.c: New file.
68542         * lib/unicodeio.h, lib/unicodeio.c: New files.
68543         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
68544         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
68545         (noinst_HEADERS): Add unicodeio.h.
68546         (all-local, install-exec-local, charset.alias): New targets.
68547
68548 2000-02-28  Paul Eggert  <eggert@twinsun.com>
68549
68550         * lib/quotearg.c (ALERT_CHAR): New macro.
68551         (quotearg_buffer_restyled): Use it.
68552
68553 2000-02-27  Jim Meyering  <meyering@lucent.com>
68554
68555         * m4/check-decl.m4: Add getenv to the list.
68556
68557 2000-02-27  Jim Meyering  <meyering@lucent.com>
68558
68559         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
68560         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
68561
68562         * lib/backupfile.c: Guard inclusion of stdlib.h with
68563         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
68564         Declare malloc if needed.
68565
68566         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
68567         `#ifndef HAVE_DECL..'
68568         now that autoconf always defines the HAVE_DECL_ symbols.
68569         * lib/human.c: Likewise.
68570         * lib/same.c: Likewise.
68571         * lib/strtoumax.c: Likewise.
68572
68573         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
68574         declaration check was not run.
68575         * lib/hash.c: Likewise.
68576         * lib/human.c: Likewise.
68577         * lib/same.c: Likewise.
68578         * lib/strtoumax.c: Likewise.
68579
68580         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
68581         `.', then first look up the entire `.'-containing string as a login
68582         name.
68583
68584 2000-02-23  Jim Meyering  <meyering@lucent.com>
68585
68586         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
68587         in place of my hack.
68588
68589 2000-02-18  Paul Eggert  <eggert@twinsun.com>
68590
68591         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
68592         (textint): New typedef.
68593         (parser_control): Member year changed from int to textint.
68594         All uses changed.
68595         (YYSTYPE): Removed; replaced by %union with int and textint members.
68596         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
68597         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
68598         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
68599         (tSNUMBER, tUNUMBER): Now of type <textintval>.
68600         (date, number, to_year): Use width of number in digits, not its value,
68601         to determine whether it's a 2-digit year, or a 2-digit time.
68602         (yylex): Store number of digits of numeric tokens.
68603         Reported by John Kendall.
68604
68605         (parser_control): Changed from struct parser_control to typedef (for
68606         consistency).  All uses changed.
68607
68608         (tID): Removed; not used.
68609         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
68610
68611 2000-02-14  Paul Eggert  <eggert@twinsun.com>
68612
68613         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
68614         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
68615
68616 2000-02-12  Jim Meyering  <meyering@lucent.com>
68617
68618         * lib/userspec.c (ISDIGIT): Define it.
68619         (isdigit): Remove definition.
68620         (is_number): Use ISDIGIT, not isdigit.
68621         <libintl.h>: Include.
68622         (_ and N_): Define.
68623         (parse_user_spec): Mark translatable strings.
68624
68625 2000-02-10  Jim Meyering  <meyering@lucent.com>
68626
68627         With these changes, nanosleep.[ch] are finally enough like the other
68628         lib/* replacement files to compile on a few more losing systems.
68629
68630         * lib/nanosleep.h: Don't include config.h.
68631         Remove prototype from declaration of nanosleep.
68632         (PARAMS): Remove now-unneeded definition.
68633         * lib/nanosleep.c: #undef nanosleep.
68634         (rpl_nanosleep): Rename from nanosleep.
68635
68636 2000-02-10  Jim Meyering  <meyering@lucent.com>
68637
68638         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
68639         gnu_nanosleep to rpl_nanosleep.
68640
68641 2000-02-09  Jim Meyering  <meyering@lucent.com>
68642
68643         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
68644         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
68645
68646 2000-02-08  Akim Demaille  <akim@epita.fr>
68647
68648         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
68649         `[' and `]' and remove uses of `changequote'.
68650         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
68651         (AC_SYS_LARGEFILE): Likewise.
68652         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68653         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
68654         of changequote.
68655         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
68656         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
68657         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
68658         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
68659
68660 2000-02-05  Jim Meyering  <meyering@lucent.com>
68661
68662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
68663         Remove explicit use of AC_HEADER_TIME.  It is required by
68664         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
68665         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
68666         in autoconf whereby the expansion of the latter ended up preceding
68667         the expansion of its prerequisite, AC_HEADER_TIME.
68668         Reported by Volker Borchert.
68669
68670 2000-02-03  Jim Meyering  <meyering@lucent.com>
68671
68672         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
68673
68674 2000-02-03  Jim Meyering  <meyering@lucent.com>
68675
68676         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
68677         rather than with `#if HAVE_UTMPNAME'.
68678
68679 2000-02-02  Jim Meyering  <meyering@lucent.com>
68680
68681         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
68682         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
68683         Reported by Eli Zaretskii.
68684
68685 2000-02-01  Jim Meyering  <meyering@lucent.com>
68686
68687         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
68688
68689 2000-01-31  Jim Meyering  <meyering@lucent.com>
68690
68691         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
68692         functions.  Add the time.h and sys/time.h headers along with the
68693         AC_REQUIRE'ment of AC_HEADER_TIME.
68694
68695 2000-01-31  Jim Meyering  <meyering@lucent.com>
68696
68697         * lib/nanosleep.h (nanosleep): Guard declaration with
68698         `#if ! HAVE_DECL_NANOSLEEP'.
68699         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
68700         the declaration in that vendor's sys/timers.h.
68701         Reported by Christian Krackowizer.
68702
68703         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
68704         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
68705         (ISPRINT): Likewise.
68706         Reported by Tom Tromey.
68707
68708 2000-01-30  Jim Meyering  <meyering@lucent.com>
68709
68710         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
68711
68712         * m4/prereq.m4 (utmp_includes): Define.
68713         Check for ut_user and ut_name members in both struct utmpx
68714         and struct utmp.
68715
68716 2000-01-30  Jim Meyering  <meyering@lucent.com>
68717
68718         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
68719         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
68720         header files where only utmpx.ut_user is declared.
68721
68722         * lib/readutmp.h (UT_USER): Define.
68723
68724 2000-01-29  Jim Meyering  <meyering@lucent.com>
68725
68726         * m4/lib-check.m4: New file containing library-related checks from
68727         fileutils and sh-utils (textutils had none).
68728
68729 2000-01-28  Jim Meyering  <meyering@lucent.com>
68730
68731         * m4/perl.m4: Change format of warning message to look more like that
68732         from the missing script.  Suggestion from François Pinard.
68733
68734 2000-01-25  Jim Meyering  <meyering@lucent.com>
68735
68736         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
68737         well as time.h in the compile check.
68738         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
68739         Fix typo in cross-compiling case: s/yes/no/.
68740
68741 2000-01-23  Jim Meyering  <meyering@lucent.com>
68742
68743         * m4/jm-macros.m4: Move df-related tests here from
68744         fileutils/configure.in
68745
68746         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
68747         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
68748
68749         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
68750         s/space/ac_fsusage_space/.
68751         (jm_FILE_SYSTEM_USAGE): Take two parameters.
68752
68753         * m4/ftruncate.m4: New file (derived from part of
68754         fileutils/configure.in).
68755         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
68756         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
68757
68758         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
68759         AC_SUBST these here, rather than just in sh-util/configure.in, so
68760         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
68761         all the same.
68762         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
68763         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
68764         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
68765         (AC_SUBST(POW_LIBM)): Likewise.
68766         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
68767
68768 2000-01-23  Jim Meyering  <meyering@lucent.com>
68769
68770         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
68771         obstack.c.
68772
68773 2000-01-22  Jim Meyering  <meyering@lucent.com>
68774
68775         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
68776
68777         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
68778
68779         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
68780         configure.in
68781         (AC_CHECK_HEADERS): Likewise for sh-utils.
68782         (AC_CHECK_HEADERS): Likewise for textutils.
68783         Merge the three lists of headers.
68784
68785         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
68786         from fileutils' configure.in.
68787
68788         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
68789         code. Moved tests into their own function (_jm_DECL_HEADERS) in
68790         check-decl.m4.
68791
68792         * m4/check-decl.m4: Use #if rather than #ifdef.
68793         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
68794         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
68795         (_jm_DECL_HEADERS): Define new function.
68796         (jm_CHECK_DECLARATIONS): Require it.
68797
68798 2000-01-22  Jim Meyering  <meyering@lucent.com>
68799
68800         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
68801         [! HAVE_DECL_STRTOULL]: Declare strtoull.
68802         Required for some AIX systems.  Reported by Christian Krackowizer.
68803         [TESTING] (main): New function.
68804
68805         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
68806         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
68807         letters.
68808
68809         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
68810         iswprint.
68811
68812         * lib/strverscmp.c (ISDIGIT): Define.
68813         (strverscmp): Use ISDIGIT, not isdigit.
68814
68815 2000-01-19  Jim Meyering  <meyering@lucent.com>
68816
68817         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
68818         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
68819         defines `struct timespec' in <sys/time.h>
68820
68821         * m4/c-bs-a.m4: Remove uses of changequote altogether.
68822         Thanks to Akim for explaining.
68823
68824 2000-01-17  Paul Eggert  <eggert@twinsun.com>
68825
68826         * lib/nanosleep.c (nanosleep):
68827         Don't use SA_INTERRUPT to decide whether to call sigaction, as
68828         POSIX.1 doesn't require SA_INTERRUPT and some systems
68829         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
68830         it's been part of POSIX.1 since day 1 (in 1988).
68831
68832 2000-01-17  Jim Meyering  <meyering@lucent.com>
68833
68834         * lib/interlock: Remove unused file.  Reported by François Pinard.
68835
68836 2000-01-16  Paul Eggert  <eggert@twinsun.com>
68837
68838         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
68839         alert, backslash, formfeed, and vertical tab unnecessarily in
68840         shell quoting style.
68841
68842 2000-01-16  Jim Meyering  <meyering@lucent.com>
68843
68844         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
68845         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
68846         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
68847         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
68848
68849 2000-01-16  Jim Meyering  <meyering@lucent.com>
68850
68851         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
68852         because the latter didn't work.
68853
68854 2000-01-15  Jim Meyering  <meyering@lucent.com>
68855
68856         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
68857         (AC_REPLACE_FUNCS): Add memcpy and memset.
68858         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
68859         Add strpbrk.
68860         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
68861
68862 2000-01-12  Jim Meyering  <meyering@lucent.com>
68863
68864         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
68865         (jm_PREREQ): Use it.
68866         (jm_PREREQ_READUTMP): New macro.
68867         (jm_PREREQ): Use it.
68868
68869 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68870
68871         Quote multibyte characters correctly.
68872         * m4/c-bs-a.m4: New file.
68873         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
68874         (jm_PREREQ): Use it.
68875
68876 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68877
68878         * m4/uintmax_t.m4: Port to autoconf 2.13.
68879
68880 2000-01-08  Jim Meyering  <meyering@ascend.com>
68881
68882         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
68883         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
68884
68885 2000-01-04  Jim Meyering  <meyering@ascend.com>
68886
68887         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
68888         jm_STRUCT_DIRENT_D_TYPE.
68889         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
68890         jm_STRUCT_DIRENT_D_INO.
68891         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
68892         jm_STRUCT_UTIMBUF.
68893         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
68894         renamings.
68895         * m4/utime.m4: Likewise.
68896
68897         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
68898         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
68899
68900 2000-01-03  Paul Eggert  <eggert@twinsun.com>
68901
68902         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
68903         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
68904
68905 2000-01-02  Jim Meyering  <meyering@ascend.com>
68906
68907         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
68908         remember if this is necessary.
68909
68910 1999-12-26  Jim Meyering  <meyering@ascend.com>
68911
68912         * m4/jm-macros.m4: Use it here.
68913         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
68914
68915 1999-12-23  Jim Meyering  <meyering@ascend.com>
68916
68917         * m4/jm-macros.m4: Check for clock_gettime (moved from
68918         fileutils/configure.in)
68919         Check for gettimeofday.
68920
68921 1999-12-20  Jim Meyering  <meyering@ascend.com>
68922
68923         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
68924         autoconf-2.14a-1999-12-20.
68925
68926 1999-12-19  Jim Meyering  <meyering@ascend.com>
68927
68928         * m4/lstat-slash.m4: New file.
68929         * m4/jm-macros.m4: Use the new macro:
68930         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68931
68932 1999-12-07  Jim Meyering  <meyering@ascend.com>
68933
68934         * m4/perl.m4: Require that File::Compare be available, too.
68935         Too many systems seem to lack it.
68936
68937         * m4/strftime.m4: Add checks for most of the cpp macros tested in
68938         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
68939
68940 1999-11-18  Paul Eggert  <eggert@twinsun.com>
68941
68942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
68943         problem with the QNX 4.25 shell, which doesn't propagate exit
68944         status of failed commands inside shell assignments.
68945
68946 1999-11-17  Jim Meyering  <meyering@ascend.com>
68947
68948         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
68949
68950 1999-11-07  Jim Meyering  <meyering@ascend.com>
68951
68952         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
68953
68954 1999-11-06  Jim Meyering  <meyering@ascend.com>
68955
68956         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
68957         * m4/jm-macros.m4 (jm_MACROS): Use it here.
68958
68959 1999-11-05  Jim Meyering  <meyering@ascend.com>
68960
68961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
68962         configure.in of textutils, fileutils, and sh-utils into this one
68963         (shared between those packages) file.
68964         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68965         AC_STRUCT_ST_BLKSIZE.
68966
68967 1999-11-03  Jim Meyering  <meyering@ascend.com>
68968
68969         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68970         of AC_CHECK_TYPE checks includes unistd.h.
68971         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68972         Suggestion from Akim Demaille.
68973
68974 1999-10-30  Jim Meyering  <meyering@ascend.com>
68975
68976         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68977         m4-quoted string.
68978         * m4/ls-mntd-fs.m4: Likewise.
68979         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68980         * m4/jm-winsz1.m4: Likewise.
68981
68982         * m4/const.m4: Remove file, since the fix made it into the experimental
68983         version of autoconf.
68984         * m4/mktime.m4: Likewise.
68985
68986         * m4/check-type.m4: Remove file, now that the latest version of
68987         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68988
68989         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68990         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68991         AC_CHECK_TYPE.
68992
68993 1999-10-04  Jim Meyering  <meyering@ascend.com>
68994
68995         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68996
68997 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68998
68999         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69000         2.95.1 bug with HP-UX 10.20.
69001
69002 1999-09-17  Jim Meyering  <meyering@ascend.com>
69003
69004         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69005         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69006         due to missing strdup (against sh-utils-2.0).
69007
69008 1999-08-29  Jim Meyering  <meyering@ascend.com>
69009
69010         * m4/jm-macros.m4: Require jm_BISON.
69011         * m4/bison.m4: New file.
69012
69013 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69014
69015         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69016         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69017
69018 1999-08-05  Jim Meyering  <meyering@ascend.com>
69019
69020         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69021         to avoid conflicts with `conftest' on 8+3 filesystems.
69022         Suggestion from Eli Zaretskii.
69023
69024 1999-08-04  Jim Meyering  <meyering@ascend.com>
69025
69026         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69027         fileutils and sh-utils (textutils's getline test was inadequate).
69028         (AM_FUNC_GETLINE): Run this test.
69029         (AC_CHECK_FUNCS): Check for getdelim.
69030         Reported by Bob Proulx.
69031
69032 1999-08-02  Jim Meyering  <meyering@ascend.com>
69033
69034         * m4/jm-macros.m4: Add a comment.
69035
69036 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69037
69038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69039         <inttypes.h> defines strtoumax as a macro (and not as a
69040         function).
69041
69042 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69043
69044         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69045         that we can shift, multiply and divide unsigned long long
69046         values; Ultrix cc can't do it.
69047
69048 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69049
69050         * m4/mktime.m4: New file, which is a preview of what should appear
69051         in the next public autoconf release.
69052
69053 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69054
69055         * m4/lfs.m4: Remove this file.
69056         * m4/largefile.m4: New file.  It contains the old contents of
69057         lfs.m4, except that all names with prefix AC_LFS have been
69058         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69059         compatible with future autoconf versions.  Also, some minor m4
69060         quoting problems have been fixed.
69061
69062 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69063
69064         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69065         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69066         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69067         and simplify the shell code.
69068
69069 1999-08-01  Jim Meyering  <meyering@ascend.com>
69070
69071         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69072         m4.
69073
69074 1999-07-20  Jim Meyering  <meyering@ascend.com>
69075
69076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69077
69078 1999-07-15  Jim Meyering  <meyering@ascend.com>
69079
69080         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69081
69082 1999-05-22  Jim Meyering  <meyering@ascend.com>
69083
69084         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69085
69086 1999-05-20  Jim Meyering  <meyering@ascend.com>
69087
69088         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69089         Add a colon after each `then' in case $4 is empty.
69090
69091 1999-05-16  Jim Meyering  <meyering@ascend.com>
69092
69093         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69094
69095 1999-05-10  Jim Meyering  <meyering@ascend.com>
69096
69097         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69098
69099         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69100         AC_FUNC_MKTIME.
69101
69102 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69103
69104         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69105
69106 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69107
69108         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69109         not CPPFLAGS, so that linking works correctly in IRIX.
69110
69111 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69112
69113         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69114
69115 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69116
69117         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69118         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69120         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69121         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69122
69123         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69124
69125 1999-04-20  Jim Meyering  <meyering@ascend.com>
69126
69127         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69128         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69129         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69130
69131 1999-04-18  Jim Meyering  <meyering@ascend.com>
69132
69133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69134         * m4/jm-macros.m4: Use it.
69135
69136 1999-04-06  Jim Meyering  <meyering@ascend.com>
69137
69138         * m4/strftime.m4: Remove test for %f.
69139
69140 1999-03-29  Jim Meyering  <meyering@ascend.com>
69141
69142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69143         superset of the AC_TYPE_* checks in the textutils, fileutils,
69144         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69145         AC_TYPE_PID_T.
69146
69147 1999-03-28  Jim Meyering  <meyering@ascend.com>
69148
69149         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69150         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69151         replaced e.g., in the *.sh files of the sh-utils.
69152
69153 1999-03-20  Jim Meyering  <meyering@ascend.com>
69154
69155         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69156         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69157         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69158
69159 1999-03-19  Jim Meyering  <meyering@ascend.com>
69160
69161         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69162
69163 1999-03-12  Jim Meyering  <meyering@ascend.com>
69164
69165         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69166
69167 1999-03-07  Jim Meyering  <meyering@ascend.com>
69168
69169         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69170         declared.
69171
69172 1999-02-17  Jim Meyering  <meyering@ascend.com>
69173
69174         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69175         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69176
69177 1999-02-07  Jim Meyering  <meyering@ascend.com>
69178
69179         * m4/group-member.m4: New file -- extracted from sh-utils'
69180         configure.in.
69181
69182         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69183         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69184
69185 1999-02-06  Jim Meyering  <meyering@ascend.com>
69186
69187         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69188         * m4/fnmatch.m4: Likewise.
69189         * m4/getgroups.m4: Likewise.
69190         * m4/lstat.m4: Likewise.
69191         * m4/malloc.m4: Likewise.
69192         * m4/putenv.m4: Likewise.
69193         * m4/realloc.m4: Likewise.
69194         * m4/regex.m4: Likewise.
69195         * m4/stat.m4: Likewise.
69196         * m4/strftime.m4: Likewise.
69197         Suggestion from Alain Magloire.
69198
69199         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69200         * m4/fnmatch.m4: Likewise.
69201         * m4/getgroups.m4: Likewise.
69202         * m4/getline.m4: Likewise.
69203         * m4/lstat.m4: Likewise.
69204         * m4/malloc.m4: Likewise.
69205         * m4/memcmp.m4: Likewise.
69206         * m4/putenv.m4: Likewise.
69207         * m4/realloc.m4: Likewise.
69208         * m4/regex.m4: Likewise.
69209         * m4/stat.m4: Likewise.
69210         * m4/strftime.m4: Likewise.
69211         Suggestion from Alain Magloire.
69212
69213         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69214         an argument.
69215
69216         * m4/regex.m4: Add a run-time Test for proper operation of
69217         re_compile_pattern.
69218
69219 1999-01-31  Jim Meyering  <meyering@ascend.com>
69220
69221         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69222
69223 1999-01-30  Jim Meyering  <meyering@ascend.com>
69224
69225         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69226
69227         * m4/jm-mktime.m4: Make this a wrapper around the official
69228         AM_FUNC_MKTIME rather than my private copy, now that the official one
69229         is up to date.
69230         * m4/mktime.m4: Remove file.
69231
69232         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69233         * m4/uptime.m4: Likewise.
69234         * m4/uintmax_t.m4: Likewise.
69235
69236 1999-01-28  Jim Meyering  <meyering@ascend.com>
69237
69238         * m4/jm-macros.m4: Use jm_AFS.
69239         * m4/afs.m4: New file (from fileutils' configure.in).
69240
69241         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69242         * m4/chown.m4: Likewise.
69243         * m4/d-ino.m4: Likewise.
69244         * m4/d-type.m4: Likewise.
69245         * m4/fnmatch.m4: Likewise.
69246         * m4/getgroups.m4: Likewise.
69247         * m4/gettext.m4: Likewise.
69248         * m4/jm-mktime.m4: Likewise.
69249         * m4/jm-winsz2.m4: Likewise.
69250         * m4/lcmessage.m4: Likewise.
69251         * m4/ls-mntd-fs.m4: Likewise.
69252         * m4/malloc.m4: Likewise.
69253         * m4/memcmp.m4: Likewise.
69254         * m4/putenv.m4: Likewise.
69255         * m4/realloc.m4: Likewise.
69256         * m4/st_mtim.m4: Likewise.
69257         * m4/strftime.m4: Likewise.
69258
69259 1999-01-16  Jim Meyering  <meyering@ascend.com>
69260
69261         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69262         (ARGMATCH_DIE_DECL): Define.
69263
69264 1999-01-12  Jim Meyering  <meyering@ascend.com>
69265
69266         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69267         Reported by Lars Hecking.
69268
69269 1999-01-10  Jim Meyering  <meyering@ascend.com>
69270
69271         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69272         gross kludge.
69273         * m4/inttypes_h.m4: Likewise.
69274         * m4/lstat.m4: Likewise.
69275         * m4/malloc.m4: Likewise.
69276         * m4/readdir.m4: Likewise.
69277         * m4/realloc.m4: Likewise.
69278         * m4/st_dm_mode.m4: Likewise.
69279         * m4/stat.m4: Likewise.
69280         * m4/utimbuf.m4: Likewise.
69281         * m4/utimes.m4: Likewise.
69282
69283         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69284         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69285         comments in config.h.in are meaningful.
69286
69287         * m4/jm-macros.m4: Require autoconf-2.13 here.
69288
69289         * m4/regex.m4: By default, don't use the included regex.c on systems
69290         with glibc 2.  Suggestion from Uli Drepper.
69291
69292 1999-01-02  Jim Meyering  <meyering@ascend.com>
69293
69294         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69295
69296 1998-12-18  Jim Meyering  <meyering@ascend.com>
69297
69298         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69299         Based on a suggestion from Lars Hecking.
69300
69301 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69302
69303         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69304
69305 1998-11-16  Jim Meyering  <meyering@ascend.com>
69306
69307         * m4/lfs.m4: Double-quote the `uname...` expression.
69308
69309 1998-11-14  Jim Meyering  <meyering@ascend.com>
69310
69311         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69312         * m4/stat.m4: Likewise.
69313
69314 1998-11-03  Jim Meyering  <meyering@ascend.com>
69315
69316         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69317         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69318
69319 1998-10-18  Jim Meyering  <meyering@ascend.com>
69320
69321         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69322
69323 1998-10-17  Jim Meyering  <meyering@ascend.com>
69324
69325         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69326         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69327         calls for those previously hard-coded headers.  Instead, take a new
69328         parameter.
69329         (jm_CHECK_DECLARATIONS): Reflect interface change.
69330         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69331         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69332
69333         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69334
69335 1998-10-14  Jim Meyering  <meyering@ascend.com>
69336
69337         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69338         instead of "TZ=America/Vancouver".  From Paul Eggert.
69339
69340 1998-10-11  Jim Meyering  <meyering@ascend.com>
69341
69342         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69343         This adds a test for a recently added compatibility fix for mktime.c.
69344         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69345
69346 1998-09-27  Jim Meyering  <meyering@ascend.com>
69347
69348         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69349
69350         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69351         ../configure.in, including a change from Gordon Matzigkeit to allow
69352         cross-compiling for the Hurd.
69353
69354         * m4/glibc.m4: New file/macro to test for the GNU C Library
69355         versions 1 and 2.  From Gordon Matzigkeit.
69356         Indent.
69357
69358 1998-09-21  Jim Meyering  <meyering@ascend.com>
69359
69360         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69361
69362 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69363
69364         Port nanosecond-resolution times to UnixWare 2.1.2 and
69365         pedantic Solaris 2.6.
69366
69367         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69368         AC_STRUCT_ST_MTIM.
69369         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69370         Generate name of ns member, instead of just 1 or undef.
69371         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69372
69373 1998-08-15  Jim Meyering  <meyering@ascend.com>
69374
69375         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69376         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69377         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69378         instead of jm_TYPE_SSIZE_T.
69379
69380 1998-08-12  Jim Meyering  <meyering@ascend.com>
69381
69382         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69383
69384 1998-08-02  Jim Meyering  <meyering@ascend.com>
69385
69386         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69387         in acconfig.h manually.
69388
69389 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69390
69391         * m4/st_mtim.m4: New file.
69392
69393 1998-07-28  Jim Meyering  <meyering@ascend.com>
69394
69395         * m4/utimes.m4: Undef stat.
69396
69397 1998-07-25  Jim Meyering  <meyering@ascend.com>
69398
69399         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69400         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69401
69402 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
69403
69404         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
69405         uid and gid actually remain unchanged.
69406
69407 1998-07-07  Jim Meyering  <meyering@ascend.com>
69408
69409         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
69410
69411 1998-07-04  Jim Meyering  <meyering@ascend.com>
69412
69413         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
69414         to prove that this macro can be used in packages without regex.c.
69415
69416 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
69417
69418         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
69419         is to be used.
69420
69421 1998-07-03  Jim Meyering  <meyering@ascend.com>
69422
69423         * m4/gettext.m4: Add -lintl if it's found to be necessary.
69424
69425         * m4/gettext.m4: New file -- from gettext-0.10.35.
69426         * m4/lcmessage.m4: Likewise.
69427         * m4/progtest.m4: Likewise.
69428
69429         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
69430         * m4/jm-macros.m4: Require the new macro.
69431
69432 1998-06-29  Jim Meyering  <meyering@ascend.com>
69433
69434         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
69435         for the definition of NGROUPS (used in a system header included
69436         by sys/mount.h).
69437
69438 1998-06-28  Jim Meyering  <meyering@ascend.com>
69439
69440         * m4/ls-mntd-fs.m4: New file.
69441         * m4/fstypename.m4: New file.
69442
69443         * m4/jm-macros.m4: Require the new macro.
69444         * m4/jm-glibc-io.m4: New file.
69445
69446 1998-05-19  Jim Meyering  <meyering@ascend.com>
69447
69448         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
69449         * m4/lchown.m4: New file.
69450
69451         * m4/Makefile.am.in: New file.
69452         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
69453
69454 1998-05-14  Jim Meyering  <meyering@ascend.com>
69455
69456         * m4/Makefile.am (EXTRA_DIST): Add them.
69457         * m4/jm-macros.m4: New file.
69458         * m4/utimbuf.m4: New file.
69459
69460 1998-05-12  Jim Meyering  <meyering@ascend.com>
69461
69462         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
69463
69464 1998-05-11  Jim Meyering  <meyering@ascend.com>
69465
69466         * m4/isc-posix.m4: New file.
69467
69468 1998-05-10  Jim Meyering  <meyering@ascend.com>
69469
69470         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
69471
69472 1998-05-09  Jim Meyering  <meyering@ascend.com>
69473
69474         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
69475         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
69476         with automake.
69477
69478         * m4/ssize_t.m4: New file.
69479         * m4/mktime.m4: Remove file -- the new automake has this now.
69480
69481 1998-04-26  Jim Meyering  <meyering@ascend.com>
69482
69483         * m4/assert.m4: New file.
69484         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
69485
69486 1998-04-05  Jim Meyering  <meyering@ascend.com>
69487
69488         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
69489         (jm_PREREQ): Use it here.
69490
69491 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
69492
69493         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
69494         in acconfig.h.
69495
69496 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
69497
69498         * m4/prereq.m4: New file.
69499         * m4/error.m4: New file.
69500         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
69501
69502 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
69503
69504         * m4/getline.m4: Don't set am_cv_func_working_getline before the
69505         cache-check for the same variable -- that defeated the purpose of
69506         the test; the test program was never run.  This was a problem only
69507         on systems with losing getline functions -- HP-UX 10.20 is one.
69508         Reported by Bjorn Helgaas.
69509
69510 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
69511
69512         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
69513
69514 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
69515
69516         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
69517
69518         * m4/const.m4: New file.  Use an initializer in this declaration
69519         typedef int charset[2]; const charset x;
69520         Reported by Bob Glickstein.
69521
69522 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
69523
69524         * m4/chown.m4: Fix reversed types on -1 args to chown.
69525         From Kaveh Ghazi.
69526
69527 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
69528
69529         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
69530         Add lseek and memchr.
69531
69532         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
69533         T.E.Dickey <dickey@clark.net> said that some older preprocessors
69534         have a 20-character limit on names.
69535
69536 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
69537
69538         * m4/inttypes_h.m4: New file.
69539         * m4/uintmax_t.m4: New file.
69540         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
69541
69542
69543         -----
69544
69545         Local Variables:
69546         coding: utf-8
69547         End:
69548
69549         Copyright (C) 1997-2010 Free Software Foundation, Inc.
69550
69551         Copying and distribution of this file, with or without
69552         modification, are permitted provided the copyright notice
69553         and this notice are preserved.